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>
2448 [[http://www.example.com]]
2450 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2455 Plain link to URL with link text
2457 [[http://www.example.com Link text]]
2459 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2464 Plain link to protocol-relative URL
2466 [[//www.example.com]]
2468 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2473 Plain link to protocol-relative URL with link text
2475 [[//www.example.com Link text]]
2477 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2482 # I'm fairly sure the expected result here is wrong.
2483 # We want these to be URL links, not pseudo-pages with URLs for titles....
2484 # However the current output is also pretty screwy.
2487 # I'm changing it to match the current output--it arguably makes more
2488 # sense in the light of the test above. Old expected result was:
2489 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2491 # But I think this test is bordering on "garbage in, garbage out" anyway.
2496 Piped link to URL: [[http://www.example.com|an example URL]]
2498 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2503 BUG 2: [[page|http://url/]] should link to page, not http://url/
2505 [[Main Page|http://url/]]
2507 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2512 BUG 337: Escaped self-links should be bold
2516 [[Bug462]] [[Bug462]]
2518 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2523 Self-link to section should not be bold
2527 [[Main Page#section]]
2529 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2540 Self-link to numeric title
2546 <p><strong class="selflink">0</strong>
2551 Link to numeric-equivalent title
2557 <p><a href="/wiki/00" title="00">00</a>
2562 <nowiki> inside a link
2564 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2566 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2571 Non-breaking spaces in title
2573 [[ Main Page ]]
2575 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2580 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2586 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2591 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2597 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2602 Internal link with en linktrail: no apostrophes (bug 27473)
2608 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2613 Internal link with ca linktrail with apostrophes (bug 27473)
2619 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2624 Internal link with kaa linktrail with apostrophes (bug 27473)
2630 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2635 ### Interwiki links (see maintenance/interwiki.sql)
2639 Inline interwiki link
2641 [[MeatBall:SoftSecurity]]
2643 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2648 Inline interwiki link with empty title (bug 2372)
2652 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
2657 Interwiki link encoding conversion (bug 1636)
2659 *[[Wikipedia:ro:Olteniţa]]
2660 *[[Wikipedia:ro:Olteniţa]]
2662 <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>
2663 </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>
2669 Interwiki link with fragment (bug 2130)
2671 [[MeatBall:SoftSecurity#foo]]
2673 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2688 Double interlanguage link
2699 Interlanguage link, with prefix links
2711 Double interlanguage link, with prefix links (bug 8897)
2738 Incorrecly removing closing slashes from correctly formed XHTML
2740 <br style="clear:both;" />
2742 <p><br style="clear:both;" />
2747 Failing to transform badly formed HTML into correct XHTML
2749 <br style="clear: left;">
2750 <br style="clear: right;">
2751 <br style="clear: both;">
2753 <p><br style="clear: left;" />
2754 <br style="clear: right;" />
2755 <br style="clear: both;" />
2760 Horizontal ruler (should it add that extra space?)
2774 Horizontal ruler -- 4+ dashes render hr
2783 Horizontal ruler -- eats additional dashes on the same line
2792 Horizontal ruler -- does not collaps dashes on consecutive lines
2803 Horizontal ruler -- <4 dashes render as plain text
2812 ### Block-level elements
2835 <ol><li>Numbered list
2852 ***#Number on level 4
2854 **#Number on level 3
2855 **#Number on level 3
2859 #** Level 3, but ordered
2862 <ol><li> with numbers
2864 <ul><li> and bullets
2866 <ol><li> and numbers
2868 </li><li>bullets again
2869 <ul><li>bullet level 2
2870 <ul><li>bullet level 3
2871 <ol><li>Number on level 4
2874 </li><li>bullet level 2
2875 <ol><li>Number on level 3
2876 </li><li>Number on level 3
2879 <ol><li>number level 2
2882 <ul><li><ul><li> Level 3
2886 <ol><li><ul><li><ul><li> Level 3, but ordered
2920 Nested lists 3 (first element empty)
2933 Nested lists 4 (first element empty)
2946 Nested lists 5 (both elements empty)
2959 Nested lists 6 (both elements empty)
2972 Nested lists 7 (skip initial nesting levels)
2976 <ul><li><ul><li><ul><li> foo
2984 Nested lists 8 (multiple nesting transitions)
2992 <ul><li><ul><li> bar
3003 List items are not parsed correctly following a <pre> block (bug 785)
3009 <ul><li> <pre>foo</pre>
3010 </li><li> <pre>bar</pre>
3017 List items from template
3028 * notSOL{{inner list}}
3047 List interrupted by empty line or heading
3057 <ul><li><ul><li> bar
3060 <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>
3061 <ul><li> Another list item
3072 Magic Word: {{CURRENTDAY}}
3081 Magic Word: {{CURRENTDAY2}}
3090 Magic Word: {{CURRENTDAYNAME}}
3099 Magic Word: {{CURRENTDOW}}
3108 Magic Word: {{CURRENTMONTH}}
3117 Magic Word: {{CURRENTMONTHABBREV}}
3119 {{CURRENTMONTHABBREV}}
3126 Magic Word: {{CURRENTMONTHNAME}}
3128 {{CURRENTMONTHNAME}}
3135 Magic Word: {{CURRENTMONTHNAMEGEN}}
3137 {{CURRENTMONTHNAMEGEN}}
3144 Magic Word: {{CURRENTTIME}}
3153 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3162 Magic Word: {{CURRENTYEAR}}
3171 Magic Word: {{FULLPAGENAME}}
3173 title=[[User:Ævar Arnfjörð Bjarmason]]
3177 <p>User:Ævar Arnfjörð Bjarmason
3182 Magic Word: {{FULLPAGENAMEE}}
3184 title=[[User:Ævar Arnfjörð Bjarmason]]
3188 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3193 Magic Word: {{NAMESPACE}}
3195 title=[[User:Ævar Arnfjörð Bjarmason]]
3204 Magic Word: {{NAMESPACEE}}
3206 title=[[User:Ævar Arnfjörð Bjarmason]]
3215 Magic Word: {{NAMESPACENUMBER}}
3217 title=[[User:Ævar Arnfjörð Bjarmason]]
3226 Magic Word: {{NUMBEROFFILES}}
3235 Magic Word: {{PAGENAME}}
3237 title=[[User:Ævar Arnfjörð Bjarmason]]
3241 <p>Ævar Arnfjörð Bjarmason
3246 Magic Word: {{PAGENAME}} with metacharacters
3248 title=[['foo & bar = baz']]
3252 <p><i>'foo & bar = baz'</i>
3257 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3259 title=[[*RFC 1234 http://example.com/]]
3263 <p>*RFC 1234 http://example.com/
3268 Magic Word: {{PAGENAMEE}}
3270 title=[[User:Ævar Arnfjörð Bjarmason]]
3274 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3279 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3281 title=[[*RFC 1234 http://example.com/]]
3285 <p>*RFC_1234_http://example.com/
3290 Magic Word: {{REVISIONID}}
3299 Magic Word: {{SCRIPTPATH}}
3308 Magic Word: {{SERVER}}
3312 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3317 Magic Word: {{SERVERNAME}}
3326 Magic Word: {{SITENAME}}
3335 Namespace 1 {{ns:1}}
3344 Namespace 1 {{ns:01}}
3353 Namespace 0 {{ns:0}} (bug 4783)
3361 Namespace 0 {{ns:00}} (bug 4783)
3369 Namespace -1 {{ns:-1}}
3378 Namespace User {{ns:User}}
3387 Namespace User talk {{ns:User_talk}}
3396 Namespace User talk {{ns:uSeR tAlK}}
3405 Namespace File {{ns:File}}
3414 Namespace File {{ns:Image}}
3423 Namespace (lang=de) Benutzer {{ns:User}}
3434 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3440 <p>Benutzer Diskussion
3448 {{urlencode:hi world?!}}
3449 {{urlencode:hi world?!|WIKI}}
3450 {{urlencode:hi world?!|PATH}}
3451 {{urlencode:hi world?!|QUERY}}
3464 Magic links: internal link to RFC (bug 479)
3468 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3473 Magic links: RFC (bug 479)
3477 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3482 Magic links: ISBN (bug 1937)
3486 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3491 Magic links: PMID incorrectly converts space to underscore
3495 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3504 Nonexistent template
3506 {{thistemplatedoesnotexist}}
3508 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3515 This is a test template
3523 <p>This is a test template
3528 Template with explicit namespace
3532 <p>This is a test template
3540 This is a test template with parameter {{{param}}}
3546 {{paramtest|param=foo}}
3548 <p>This is a test template with parameter foo
3553 Template:paramtestnum
3559 Template unnamed parameter
3561 {{paramtestnum|Main Page|the main page}}
3563 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3568 Template:templatesimple
3574 Template:templateredirect
3576 #redirect [[Template:templatesimple]]
3580 Template:templateasargtestnum
3586 Template:templateasargtest
3588 {{template{{{templ}}}}}
3592 Template:templateasargtest2
3598 Template with template name as unnamed argument
3600 {{templateasargtestnum|templatesimple}}
3607 Template with template name as argument
3609 {{templateasargtest|templ=simple}}
3616 Template with template name as argument (2)
3618 {{templateasargtest2|templ=templatesimple}}
3625 Template:templateasargtestdefault
3627 {{{{{templ|templatesimple}}}}}
3637 Template with default value
3639 {{templateasargtestdefault}}
3646 Template with default value (value set)
3648 {{templateasargtestdefault|templ=templa}}
3657 {{templateredirect}}
3664 Template with argument in separate line
3666 {{ templateasargtest |
3674 Template with complex template as argument
3677 param ={{ templateasargtest |
3680 <p>This is a test template with parameter (test)
3685 Template with thumb image (with link in description)
3688 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3690 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>
3695 Template:complextemplate
3697 {{{1}}} {{paramtest|
3698 param ={{{param}}}}}
3702 Template with complex arguments
3705 param ={{ templateasargtest |
3706 templ = simple }}|[[Template:complextemplate|link]]}}
3708 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3713 BUG 553: link with two variables in a piped link
3716 |[[{{{1}}}|{{{2}}}]]
3721 <td>[[{{{1}}}|{{{2}}}]]
3727 Magic variable as template parameter
3729 {{paramtest|param={{SITENAME}}}}
3731 <p>This is a test template with parameter MediaWiki
3738 [[{{{param}}}|link]]
3742 Template parameter as link source
3744 {{linktest|param=Main Page}}
3746 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3754 including another template, {{paramtest|param={{{arg}}}}}
3758 Template passing argument to another template
3760 {{paramtest2|arg='hmm'}}
3762 <p>including another template, This is a test template with parameter 'hmm'
3773 Template as link source
3777 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3795 Template infinite loop
3799 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
3804 Template from main namespace
3823 BUG 529: Template with table, not included at beginning of line
3842 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3862 BUG 41: Template parameters shown as broken links
3874 ''None'' of '''this''' should be
3876 but rather passed unmodified
3880 # hmm, fix this or just deprecate msgnw and document its behavior?
3886 {{msgnw:MSGNW test}}
3888 <p>''None'' of '''this''' should be
3890 but rather passed unmodified
3898 {{int:youhavenewmessages|lots of money|not!}}
3900 <p>You have lots of money (not!).
3907 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3911 <includeonly> and <noinclude> being included
3922 <onlyinclude>Foo</onlyinclude>bar
3926 <onlyinclude> being included
3938 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3942 <onlyinclude> and <includeonly> being included
3951 <includeonly> and <noinclude> on a page
3953 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3960 <onlyinclude> on a page
3962 <onlyinclude>Foo</onlyinclude>bar
3969 Template:Includeonly section
3972 ==Includeonly section==
3978 Bug 6563: Edit link generation for section shown by <includeonly>
3980 {{includeonly section}}
3982 <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>
3983 <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>
3987 # Uses same input as the contents of [[Template:Includeonly section]]
3989 Bug 6563: Section extraction for section shown by <includeonly>
3994 ==Includeonly section==
4002 Bug 6563: Edit link generation for section suppressed by <includeonly>
4005 ==Includeonly section==
4009 <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>
4014 Bug 6563: Section extraction for section suppressed by <includeonly>
4019 ==Includeonly section==
4027 ### Pre-save transform tests
4030 pre-save transform: subst:
4036 This is a test template
4040 pre-save transform: normal template
4050 pre-save transform: nonexistent template
4054 {{thistemplatedoesnotexist}}
4056 {{thistemplatedoesnotexist}}
4061 pre-save transform: subst magic variables
4070 # This is bug 89, which I fixed. -- wtm
4072 pre-save transform: subst: templates with parameters
4076 {{subst:paramtest|param="something else"}}
4078 This is a test template with parameter "something else"
4084 <nowiki>'''not wiki'''</nowiki>
4088 pre-save transform: nowiki in subst (bug 1188)
4092 {{subst:nowikitest}}
4094 <nowiki>'''not wiki'''</nowiki>
4099 Template:commenttest
4101 This template has <!-- a comment --> in it.
4105 pre-save transform: comment in subst (bug 1936)
4109 {{subst:commenttest}}
4111 This template has <!-- a comment --> in it.
4115 pre-save transform: unclosed tag
4119 <nowiki>'''not wiki'''
4121 <nowiki>'''not wiki'''
4125 pre-save transform: mixed tag case
4129 <NOwiki>'''not wiki'''</noWIKI>
4131 <NOwiki>'''not wiki'''</noWIKI>
4135 pre-save transform: unclosed comment in <nowiki>
4139 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4141 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4147 <span onmouseover="alert('crap')">Oh no</span>
4151 (confirming safety of fix for subst bug 1936)
4153 {{Template:dangerous}}
4155 <p><span>Oh no</span>
4160 pre-save transform: comment containing gallery (bug 5024)
4164 <!-- <gallery>data</gallery> -->
4166 <!-- <gallery>data</gallery> -->
4170 pre-save transform: comment containing extension
4174 <!-- <tag>data</tag> -->
4176 <!-- <tag>data</tag> -->
4180 pre-save transform: comment containing nowiki
4184 <!-- <nowiki>data</nowiki> -->
4186 <!-- <nowiki>data</nowiki> -->
4190 pre-save transform: <noinclude> in subst (bug 3298)
4200 pre-save transform: <onlyinclude> in subst (bug 3298)
4212 {{<includeonly>subst:</includeonly>Includes}}
4216 Template:SafeSubstTest
4218 {{<includeonly>safesubst:</includeonly>Includes}}
4222 bug 22297: safesubst: works during PST
4226 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
4232 bug 22297: safesubst: works during normal parse
4241 subst: does not work during normal parse
4245 <p>{{subst:Includes}}
4250 pre-save transform: context links ("pipe trick")
4254 [[Article (context)|]]
4257 [[Bar:Article (context)|]]
4258 [[:Bar:Article (context)|]]
4260 [[|Article (context)]]
4264 [[Article (context)|Article]]
4265 [[Bar:Article|Article]]
4266 [[:Bar:Article|Article]]
4267 [[Bar:Article (context)|Article]]
4268 [[:Bar:Article (context)|Article]]
4270 [[Article (context)]]
4271 [[Bar:X (Y) Z|X (Y) Z]]
4272 [[:Bar:X (Y) Z|X (Y) Z]]
4276 pre-save transform: context links ("pipe trick") with interwiki prefix
4280 [[interwiki:Article|]]
4281 [[:interwiki:Article|]]
4282 [[interwiki:Bar:Article|]]
4283 [[:interwiki:Bar:Article|]]
4285 [[interwiki:Article|Article]]
4286 [[:interwiki:Article|Article]]
4287 [[interwiki:Bar:Article|Bar:Article]]
4288 [[:interwiki:Bar:Article|Bar:Article]]
4292 pre-save transform: context links ("pipe trick") with parens in title
4294 pst title=[[Somearticle (context)]]
4298 [[Article (context)|Article]]
4302 pre-save transform: context links ("pipe trick") with comma in title
4304 pst title=[[Someplace, Somewhere]]
4307 [[Otherplace, Elsewhere|]]
4308 [[Otherplace, Elsewhere, Anywhere|]]
4310 [[Otherplace, Somewhere|Otherplace]]
4311 [[Otherplace, Elsewhere|Otherplace]]
4312 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
4316 pre-save transform: context links ("pipe trick") with parens and comma
4318 pst title=[[Someplace (IGNORED), Somewhere]]
4321 [[Otherplace (place), Elsewhere|]]
4323 [[Otherplace, Somewhere|Otherplace]]
4324 [[Otherplace (place), Elsewhere|Otherplace]]
4328 pre-save transform: context links ("pipe trick") with comma and parens
4330 pst title=[[Who, me? (context)]]
4333 [[Me, Myself, and I (1937 song)|]]
4335 [[Yes, you. (context)|Yes, you.]]
4336 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
4340 pre-save transform: context links ("pipe trick") with namespace
4342 pst title=[[Ns:Somearticle]]
4346 [[Ns:Article|Article]]
4350 pre-save transform: context links ("pipe trick") with namespace and parens
4352 pst title=[[Ns:Somearticle (context)]]
4356 [[Ns:Article (context)|Article]]
4360 pre-save transform: context links ("pipe trick") with namespace and comma
4362 pst title=[[Ns:Somearticle, Context, Whatever]]
4366 [[Ns:Article, Context, Whatever|Article]]
4370 pre-save transform: context links ("pipe trick") with namespace, comma and parens
4372 pst title=[[Ns:Somearticle, Context (context)]]
4376 [[Ns:Article (context)|Article]]
4380 pre-save transform: context links ("pipe trick") with namespace, parens and comma
4382 pst title=[[Ns:Somearticle (IGNORED), Context]]
4386 [[Ns:Article, Context|Article]]
4390 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
4394 [[Article(context)|]]
4395 [[Bar:Article(context)|]]
4396 [[:Bar:Article(context)|]]
4397 [[|Article(context)]]
4401 [[Article(context)|Article]]
4402 [[Bar:Article(context)|Article]]
4403 [[:Bar:Article(context)|Article]]
4404 [[Article(context)]]
4406 [[:Bar:X(Y)Z|X(Y)Z]]
4410 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
4414 [[Article (context)|]]
4415 [[Bar:Article (context)|]]
4416 [[:Bar:Article (context)|]]
4417 [[|Article (context)]]
4421 [[Article (context)|Article]]
4422 [[Bar:Article (context)|Article]]
4423 [[:Bar:Article (context)|Article]]
4424 [[Article (context)]]
4425 [[Bar:X (Y) Z|X (Y) Z]]
4426 [[:Bar:X (Y) Z|X (Y) Z]]
4430 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
4434 [[Article(context)|]]
4435 [[Bar:Article(context)|]]
4436 [[:Bar:Article(context)|]]
4437 [[|Article(context)]]
4441 [[Article(context)|Article]]
4442 [[Bar:Article(context)|Article]]
4443 [[:Bar:Article(context)|Article]]
4444 [[Article(context)]]
4446 [[:Bar:X(Y)Z|X(Y)Z]]
4450 pre-save transform: context links ("pipe trick") with commas (bug 21660)
4454 [[Article (context), context|]]
4455 [[Article (context),context|]]
4456 [[Bar:Article (context), context|]]
4457 [[Bar:Article (context),context|]]
4458 [[:Bar:Article (context), context|]]
4459 [[:Bar:Article (context),context|]]
4461 [[Article (context), context|Article]]
4462 [[Article (context),context|Article]]
4463 [[Bar:Article (context), context|Article]]
4464 [[Bar:Article (context),context|Article]]
4465 [[:Bar:Article (context), context|Article]]
4466 [[:Bar:Article (context),context|Article]]
4470 pre-save transform: trim trailing empty lines
4474 Empty lines are trimmed
4480 Empty lines are trimmed
4484 pre-save transform: Signature expansion
4489 * <noinclude>~~~</noinclude>
4490 * <includeonly>~~~</includeonly>
4491 * <onlyinclude>~~~</onlyinclude>
4493 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
4494 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
4495 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
4496 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
4501 pre-save transform: Signature expansion in nowiki tags (bug 93)
4507 <nowiki>~~~~</nowiki>
4509 <includeonly><nowiki>~~~~</nowiki></includeonly>
4511 <noinclude><nowiki>~~~~</nowiki></noinclude>
4513 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4515 {{subst:Foo}} shall be converted to FOO
4517 As well as inside noinclude/onlyinclude
4518 <noinclude>{{subst:Foo}}</noinclude>
4519 <onlyinclude>{{subst:Foo}}</onlyinclude>
4521 But not inside includeonly
4522 <includeonly>{{subst:Foo}}</includeonly>
4526 <nowiki>~~~~</nowiki>
4528 <includeonly><nowiki>~~~~</nowiki></includeonly>
4530 <noinclude><nowiki>~~~~</nowiki></noinclude>
4532 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4534 FOO shall be converted to FOO
4536 As well as inside noinclude/onlyinclude
4537 <noinclude>FOO</noinclude>
4538 <onlyinclude>FOO</onlyinclude>
4540 But not inside includeonly
4541 <includeonly>{{subst:Foo}}</includeonly>
4545 ### Message transform tests
4548 message transform: magic variables
4558 message transform: should not transform wiki markup
4568 message transform: <noinclude> in transcluded template (bug 4926)
4578 message transform: <onlyinclude> in transcluded template (bug 4926)
4588 {{#special:}} page name, known
4592 {{#special:Recentchanges}}
4594 Special:RecentChanges
4598 {{#special:}} page name with subpage, known
4602 {{#special:Recentchanges/param}}
4604 Special:RecentChanges/param
4608 {{#special:}} page name, unknown
4612 {{#special:foobarnonexistent}}
4614 No such special page
4618 {{#speciale:}} page name, known
4622 {{#speciale:Recentchanges}}
4624 Special:RecentChanges
4628 {{#speciale:}} page name with subpage, known
4632 {{#speciale:Recentchanges/param}}
4634 Special:RecentChanges/param
4638 {{#speciale:}} page name, unknown
4642 {{#speciale:foobarnonexistent}}
4644 No_such_special_page
4653 [[Image:foobar.jpg]]
4655 <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>
4662 [[Image:foobar.jpg|right]]
4664 <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>
4669 Simple image (using File: namespace, now canonical)
4673 <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>
4680 [[Image:foobar.jpg|right|Caption text]]
4682 <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>
4687 Image with link parameter, wiki target
4689 [[Image:foobar.jpg|link=Target page]]
4691 <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>
4696 Image with link parameter, URL target
4698 [[Image:foobar.jpg|link=http://example.com/]]
4700 <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>
4705 Image with link parameter, wgExternalLinkTarget
4707 [[Image:foobar.jpg|link=http://example.com/]]
4709 wgExternalLinkTarget='foobar'
4711 <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>
4716 Image with link parameter, wgNoFollowLinks set to false
4718 [[Image:foobar.jpg|link=http://example.com/]]
4720 wgNoFollowLinks=false
4722 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4727 Image with link parameter, wgNoFollowDomainExceptions
4729 [[Image:foobar.jpg|link=http://example.com/]]
4731 wgNoFollowDomainExceptions='example.com'
4733 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4738 Image with link parameter, wgExternalLinkTarget, unnamed parameter
4740 [[Image:foobar.jpg|link=http://example.com/|Title]]
4742 wgExternalLinkTarget='foobar'
4744 <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>
4749 Image with empty link parameter
4751 [[Image:foobar.jpg|link=]]
4753 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
4758 Image with link parameter (wiki target) and unnamed parameter
4760 [[Image:foobar.jpg|link=Target page|Title]]
4762 <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>
4767 Image with link parameter (URL target) and unnamed parameter
4769 [[Image:foobar.jpg|link=http://example.com/|Title]]
4771 <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>
4776 Thumbnail image with link parameter
4778 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
4780 <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>
4785 Image with frame and link
4787 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
4789 <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>
4794 Image with frame and link and explicit alt
4796 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
4798 <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>
4803 Image with wiki markup in implicit alt
4805 [[Image:Foobar.jpg|testing '''bold''' in alt]]
4807 <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>
4812 Image with wiki markup in explicit alt
4814 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
4816 <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>
4821 Link to image page- image page normally doesn't exists, hence edit link
4822 Add test with existing image page
4823 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
4827 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
4832 bug 18784 Link to non-existent image page with caption should use caption as link text
4834 [[:Image:test|caption]]
4836 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
4841 Frameless image caption with a free URL
4843 [[Image:foobar.jpg|http://example.com]]
4845 <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>
4850 Thumbnail image caption with a free URL
4852 [[Image:foobar.jpg|thumb|http://example.com]]
4854 <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>
4859 Thumbnail image caption with a free URL and explicit alt
4861 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
4863 <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>
4868 BUG 1887: A ISBN with a thumbnail
4870 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
4872 <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>
4877 BUG 1887: A RFC with a thumbnail
4879 [[Image:foobar.jpg|thumb|This is RFC 12354]]
4881 <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>
4886 BUG 1887: A mailto link with a thumbnail
4888 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
4890 <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>
4894 # Pending resolution to bug 368
4896 BUG 648: Frameless image caption with a link
4898 [[Image:foobar.jpg|text with a [[link]] in it]]
4900 <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>
4905 BUG 648: Frameless image caption with a link (suffix)
4907 [[Image:foobar.jpg|text with a [[link]]foo in it]]
4909 <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>
4914 BUG 648: Frameless image caption with an interwiki link
4916 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4918 <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>
4923 BUG 648: Frameless image caption with a piped interwiki link
4925 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4927 <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>
4932 Escape HTML special chars in image alt text
4934 [[Image:foobar.jpg|& < > "]]
4936 <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>
4941 BUG 499: Alt text should have Ӓ, not &1234;
4943 [[Image:foobar.jpg|♀]]
4945 <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>
4950 Broken image caption with link
4952 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4954 <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.
4959 Image caption containing another image
4961 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4963 <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>
4968 Image caption containing a newline
4970 [[Image:Foobar.jpg|This
4973 <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>
4979 Bug 3090: External links other than http: in image captions
4981 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4983 <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>
4990 #REDIRECT [[File:Barfoo.jpg]]
4996 [[Image:Barfoo.jpg]]
4998 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
5003 Missing image with uploads disabled
5007 [[Image:Foobaz.jpg]]
5009 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
5018 Subpage test/subpage
5026 subpage title=[[Subpage test]]
5030 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
5035 Subpage noslash link
5037 subpage title=[[Subpage test]]
5041 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
5050 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
5055 BUG 561: {{/Subpage}}
5057 subpage title=[[Page]]
5061 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
5069 Category:MediaWiki User's Guide
5077 [[:Category:MediaWiki User's Guide]]
5079 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
5088 [[Category:MediaWiki User's Guide]]
5090 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5094 PAGESINCATEGORY invalid title fatal (r33546 fix)
5096 {{PAGESINCATEGORY:<bogus>}}
5103 ### Inter-language links
5106 Inter-language links
5112 [[zh:食品]]
5114 es:Alimento fr:Nourriture zh:食品
5121 Basic section headings
5128 ===Smaller headline===
5131 <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>
5134 <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>
5137 <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>
5143 Section headings with TOC
5146 === Subheadline 1 ===
5147 ===== Skipping a level =====
5148 ====== Skipping a level ======
5152 ===Another headline===
5154 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5156 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
5158 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
5160 <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>
5162 <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>
5169 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
5171 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
5176 <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>
5177 <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>
5178 <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>
5179 <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>
5180 <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>
5183 <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>
5187 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
5189 Handling of sections up to level 6 and beyond
5192 == Level 2 Heading==
5193 === Level 3 Heading===
5194 ==== Level 4 Heading====
5195 ===== Level 5 Heading=====
5196 ====== Level 6 Heading======
5197 ======= Level 7 Heading=======
5198 ======== Level 8 Heading========
5199 ========= Level 9 Heading=========
5200 ========== Level 10 Heading==========
5202 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5204 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
5206 <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>
5208 <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>
5210 <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>
5212 <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>
5214 <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>
5215 <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>
5216 <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>
5217 <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>
5218 <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>
5231 <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>
5232 <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>
5233 <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>
5234 <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>
5235 <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>
5236 <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>
5237 <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>
5238 <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>
5239 <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>
5240 <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>
5245 TOC regression (bug 9764)
5249 ==== title 1.1.1 ====
5254 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5256 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5258 <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>
5260 <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>
5263 <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>
5266 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5268 <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>
5273 <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>
5274 <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>
5275 <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>
5276 <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>
5277 <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>
5278 <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>
5283 TOC with wgMaxTocLevel=3 (bug 6204)
5289 ==== title 1.1.1 ====
5294 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5296 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5298 <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>
5299 <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>
5302 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
5304 <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>
5309 <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>
5310 <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>
5311 <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>
5312 <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>
5313 <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>
5314 <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>
5319 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
5325 ====Section 1.1.1====
5326 ====Section 1.1.1.1====
5329 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5331 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
5333 <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>
5336 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
5339 <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>
5340 <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>
5341 <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>
5342 <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>
5343 <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>
5349 Resolving duplicate section names
5354 <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>
5355 <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>
5360 Resolving duplicate section names with differing case (bug 10721)
5365 <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>
5366 <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>
5378 Template with sections, __NOTOC__
5385 <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>
5386 <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>
5387 <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>
5388 <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>
5393 __NOEDITSECTION__ keyword
5399 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
5400 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
5405 Link inside a section heading
5407 ==Section with a [[Main Page|link]] in it==
5409 <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>
5414 TOC regression (bug 12077)
5421 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5423 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
5425 <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>
5428 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
5431 <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>
5432 <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>
5433 <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>
5438 BUG 1219 URL next to image (good)
5440 http://example.com [[Image:foobar.jpg]]
5442 <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>
5447 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
5450 The line above must have a trailing space!
5453 But just in case it doesn't...
5455 <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>
5456 <p>The line above must have a trailing space!
5458 <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>
5459 <p>But just in case it doesn't...
5464 Header with special characters (bug 25462)
5466 The tooltips shall not show entities to the user (ie. be double escaped)
5483 <p>The tooltips shall not show entities to the user (ie. be double escaped)
5485 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5487 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
5488 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
5489 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
5490 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
5491 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
5494 <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>
5497 <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>
5500 <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>
5503 <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>
5506 <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>
5512 Headers with excess '=' characters
5513 (Are similar tests necessary beyond the 1st level?)
5517 =''italic'' heading==
5518 ==''italic'' heading=
5520 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5522 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
5523 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
5524 <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>
5525 <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>
5528 <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>
5529 <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>
5530 <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>
5531 <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>
5536 BUG 1219 URL next to image (broken)
5538 http://example.com[[Image:foobar.jpg]]
5540 <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>
5545 Bug 1186 news: in the middle of text
5547 http://en.wikinews.org/wiki/Wikinews:Workplace
5549 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
5555 Namespaced link must have a title
5564 Namespaced link must have a title (bad fragment version)
5566 [[Project:#fragment]]
5568 <p>[[Project:#fragment]]
5574 div with no attributes
5576 <div>HTML rocks</div>
5578 <div>HTML rocks</div>
5583 div with double-quoted attribute
5585 <div id="rock">HTML rocks</div>
5587 <div id="rock">HTML rocks</div>
5592 div with single-quoted attribute
5594 <div id='rock'>HTML rocks</div>
5596 <div id="rock">HTML rocks</div>
5601 div with unquoted attribute
5603 <div id=rock>HTML rocks</div>
5605 <div id="rock">HTML rocks</div>
5610 div with illegal double attributes
5612 <div id="a" id="b">HTML rocks</div>
5614 <div id="b">HTML rocks</div>
5619 HTML multiple attributes correction
5621 <p class="error" class="awesome">Awesome!</p>
5623 <p class="awesome">Awesome!</p>
5628 Table multiple attributes correction
5631 !+ class="error" class="awesome"| status
5636 <th class="awesome"> status
5644 <DIV ID="x">HTML ROCKS</DIV>
5646 <div id="x">HTML ROCKS</div>
5652 text with amp in the middle of nowhere
5656 <p>Remember AT&T?
5661 text with character entity: eacute
5663 I always thought é was a cute letter.
5665 <p>I always thought é was a cute letter.
5670 text with undefined character entity: xacute
5672 I always thought &xacute; was a cute letter.
5674 <p>I always thought &xacute; was a cute letter.
5686 [[Media:Foobar.jpg]]
5688 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
5693 Media link with text
5695 [[Media:Foobar.jpg|A neat file to look at]]
5697 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
5701 # FIXME: this is still bad HTML tag nesting
5703 Media link with nasty text
5704 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
5706 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
5708 <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>
5713 Media link to nonexistent file (bug 1702)
5715 [[Media:No such.jpg]]
5717 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
5722 Image link to nonexistent file (bug 1850 - good)
5724 [[Image:No such.jpg]]
5726 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
5731 :Image link to nonexistent file (bug 1850 - bad)
5733 [[:Image:No such.jpg]]
5735 <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>
5742 Character reference normalization in link text (bug 1938)
5744 [[Main Page|this&that]]
5746 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
5753 Test for unicode normalization
5755 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
5759 (bug 19451) Links should refer to the normalized form.
5767 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5768 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5769 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5770 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5771 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5776 Empty attribute crash test (bug 2067)
5778 <font color="">foo</font>
5780 <p><font color="">foo</font>
5785 Empty attribute crash test single-quotes (bug 2067)
5787 <font color=''>foo</font>
5789 <p><font color="">foo</font>
5794 Attribute test: equals, then nothing
5796 <font color=>foo</font>
5803 Attribute test: unquoted value
5805 <font color=x>foo</font>
5807 <p><font color="x">foo</font>
5812 Attribute test: unquoted but illegal value (hash)
5814 <font color=#x>foo</font>
5816 <p><font color="#x">foo</font>
5821 Attribute test: no value
5823 <font color>foo</font>
5825 <p><font color="color">foo</font>
5830 Bug 2095: link with three closing brackets
5834 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
5839 Bug 2095: link with pipe and three closing brackets
5843 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
5848 Bug 2095: link with pipe and three closing brackets, version 2
5850 [[Main Page|[http://example.com/]]]
5852 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
5862 Template:Dangerous attribute
5864 " onmouseover="alert(document.cookie)
5868 Template:Dangerous style attribute
5870 border-size: expression(alert(document.cookie))
5876 <div style="float: right; {{{1}}}">Magic div</div>
5880 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
5882 <div title="{{test}}"></div>
5884 <div title="This is a test template"></div>
5889 Bug 2304: HTML attribute safety (dangerous template; 2309)
5891 <div title="{{dangerous attribute}}"></div>
5893 <div title=""></div>
5898 Bug 2304: HTML attribute safety (dangerous style template; 2309)
5900 <div style="{{dangerous style attribute}}"></div>
5902 <div style="/* insecure input */"></div>
5907 Bug 2304: HTML attribute safety (safe parameter; 2309)
5909 {{div style|width: 200px}}
5911 <div style="float: right; width: 200px">Magic div</div>
5916 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
5918 {{div style|width: expression(alert(document.cookie))}}
5920 <div style="/* insecure input */">Magic div</div>
5925 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
5927 {{div style|"><script>alert(document.cookie)</script>}}
5929 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5934 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5936 {{div style|" ><script>alert(document.cookie)</script>}}
5938 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5943 Bug 2304: HTML attribute safety (link)
5945 <div title="[[Main Page]]"></div>
5947 <div title="[[Main Page]]"></div>
5952 Bug 2304: HTML attribute safety (italics)
5954 <div title="''foobar''"></div>
5956 <div title="''foobar''"></div>
5961 Bug 2304: HTML attribute safety (bold)
5963 <div title="'''foobar'''"></div>
5965 <div title="'''foobar'''"></div>
5971 Bug 2304: HTML attribute safety (ISBN)
5973 <div title="ISBN 1234567890"></div>
5975 <div title="ISBN 1234567890"></div>
5980 Bug 2304: HTML attribute safety (RFC)
5982 <div title="RFC 1234"></div>
5984 <div title="RFC 1234"></div>
5989 Bug 2304: HTML attribute safety (PMID)
5991 <div title="PMID 1234567890"></div>
5993 <div title="PMID 1234567890"></div>
5998 Bug 2304: HTML attribute safety (web link)
6000 <div title="http://example.com/"></div>
6002 <div title="http://example.com/"></div>
6007 Bug 2304: HTML attribute safety (named web link)
6009 <div title="[http://example.com/ link]"></div>
6011 <div title="[http://example.com/ link]"></div>
6016 Bug 3244: HTML attribute safety (extension; safe)
6018 <div style="<nowiki>background:blue</nowiki>"></div>
6020 <div style="background:blue"></div>
6025 Bug 3244: HTML attribute safety (extension; unsafe)
6027 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
6029 <div style="/* insecure input */"></div>
6033 # More MSIE fun discovered by Tom Gilder
6036 MSIE CSS safety test: spurious slash
6038 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
6040 <div style="/* insecure input */">evil</div>
6045 MSIE CSS safety test: hex code
6047 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
6049 <div style="/* insecure input */">evil</div>
6054 MSIE CSS safety test: comment in url
6056 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
6058 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
6063 MSIE CSS safety test: comment in expression
6065 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
6067 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
6073 Table attribute legitimate extension
6076 !+ style="<nowiki>color:blue</nowiki>"| status
6081 <th style="color:blue"> status
6087 Table attribute safety
6090 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6095 <th style="/* insecure input */"> status
6101 CSS line continuation 1
6103 <div style="background-image: u\ rl(test.jpg);"></div>
6105 <div style="/* insecure input */"></div>
6110 CSS line continuation 2
6112 <div style="background-image: u\ rl(test.jpg); "></div>
6114 <div style="/* insecure input */"></div>
6125 Expansion of multi-line templates in attribute values (bug 6255)
6127 <div style="background: {{identity|#00FF00}}">-</div>
6129 <div style="background: #00FF00">-</div>
6135 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
6137 <div style="background:
6140 <div style="background: #00FF00">-</div>
6145 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
6147 <div style="background: #00FF00">-</div>
6149 <div style="background: #00FF00">-</div>
6154 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
6157 Parser hook: empty input
6170 Parser hook: empty input using terminated empty elements
6183 Parser hook: empty input using terminated empty elements (space before)
6196 Parser hook: basic input
6210 Parser hook: case insensitive
6224 Parser hook: case insensitive, redux
6237 Parser hook: nested tags
6241 <tag><tag></tag></tag>
6252 Parser hook: basic arguments
6254 <tag width=200 height = "100" depth = '50' square></tag>
6273 Parser hook: argument containing a forward slash (bug 5344)
6275 <tag filename='/tmp/bla'></tag>
6281 string(8) "/tmp/bla"
6288 Parser hook: empty input using terminated empty elements (bug 2374)
6302 # </tag> should be output literally since there is no matching tag that begins it
6304 Parser hook: basic arguments using terminated empty elements (bug 2374)
6306 <tag width=200 height = "100" depth = '50' square/>
6329 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
6333 Parser hook: static parser hook not inside a comment
6335 <statictag>hello, world</statictag>
6336 <statictag action=flush/>
6344 Parser hook: static parser hook inside a comment
6346 <!-- <statictag>hello, world</statictag> -->
6347 <statictag action=flush/>
6353 # Nested template calls; this case was broken by Parser.php rev 1.506,
6357 Template:One-parameter
6359 (My parameter is: {{{1}}})
6363 Template:Map-one-parameter
6369 Nested template calls
6371 {{Map-one-parameter|One-parameter|param}}
6373 <p>(My parameter is: param)
6382 Sanitizer: Closing of open tags
6384 <s></s><table></table>
6386 <s></s><table></table>
6391 Sanitizer: Closing of open but not closed tags
6400 Sanitizer: Closing of closed but not open tags
6409 Sanitizer: Closing of closed but not open table tags
6411 Table not started</td></tr></table>
6413 <p>Table not started</td></tr></table>
6418 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
6420 <span id="æ: v">byte</span>[[#æ: v|backlink]]
6422 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
6427 Sanitizer: Validating the contents of the id attribute (bug 4515)
6433 Something, but definitely not <br id="9" />...
6437 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
6441 <br id="foo" /><br id="foo" />
6443 Something need to be done. foo-2 ?
6447 Language converter: output gets cut off unexpectedly (bug 5757)
6451 this bit is safe: }-
6453 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
6455 then we get cut off here: }-
6457 all additional text is vanished
6459 <p>this bit is safe: }-
6460 </p><p>but if we add a conversion instance: xxx
6461 </p><p>then we get cut off here: }-
6462 </p><p>all additional text is vanished
6467 Self closed html pairs (bug 5487)
6470 <center><font id="bug" />Centered text</center>
6471 <div><font id="bug2" />In div text</div>
6473 <center><font id="bug" />Centered text</center>
6474 <div><font id="bug2" />In div text</div>
6483 Punctuation: nbsp before exclamation
6487 <p>C'est grave !
6492 Punctuation: CSS !important (bug 11874)
6494 <div style="width:50% !important">important</div>
6496 <div style="width:50% !important">important</div>
6501 Punctuation: CSS ! important (bug 11874; with space after)
6503 <div style="width:50% ! important">important</div>
6505 <div style="width:50% ! important">important</div>
6511 HTML bullet list, closed tags (bug 5497)
6526 HTML bullet list, unclosed tags (bug 5497)
6543 HTML ordered list, closed tags (bug 5497)
6558 HTML ordered list, unclosed tags (bug 5497)
6575 HTML nested bullet list, closed tags (bug 5497)
6600 HTML nested bullet list, open tags (bug 5497)
6625 HTML nested ordered list, closed tags (bug 5497)
6650 HTML nested ordered list, open tags (bug 5497)
6675 HTML ordered list item with parameters oddity
6677 <ol><li id="fragment">One</li></ol>
6679 <ol><li id="fragment">One</li></ol>
6684 bug 5918: autonumbering
6686 [http://first/] [http://second] [ftp://ftp]
6690 [mailto:enclosed@mail.tld With target]
6692 [mailto:enclosed@mail.tld]
6694 mailto:inline@mail.tld
6696 <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>
6697 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
6698 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
6699 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
6700 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
6706 # Security and HTML correctness
6707 # From Nick Jenkins' fuzz testing
6711 Fuzz testing: Parser13
6726 Fuzz testing: Parser14
6731 <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>
6732 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6734 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
6741 Fuzz testing: Parser14-table
6746 <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>
6747 <table style="__TOC__">
6753 # Known to produce bogus xml (extra </td>)
6755 Fuzz testing: Parser16
6775 Fuzz testing: Parser21
6778 ! irc://{{ftp://a" onmouseover="alert('hello world');"
6783 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
6793 Fuzz testing: Parser22
6795 http://===r:::https://b
6799 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
6807 # Known to produce bad XML for now
6809 Fuzz testing: Parser24
6816 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
6817 <br style="onmouseover='alert(document.cookie);' " />
6819 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6824 <u class="|">}}}} >
6825 <br style="onmouseover='alert(document.cookie);'" />
6827 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6836 # Note: the current result listed for this is not what the original one was,
6837 # but the original bug was JavaScript injection, which is fixed in any case.
6838 # It's not clear that the original result listed was any more correct than the
6839 # current one. Original result:
6842 # <li class="||">
6843 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6845 Fuzz testing: Parser25 (bug 6055)
6851 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
6853 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6858 Fuzz testing: URL adjacent extension (with space, clean)
6861 http://example.com <nowiki>junk</nowiki>
6863 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
6868 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
6871 http://example.com<nowiki>junk</nowiki>
6873 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
6878 Fuzz testing: URL adjacent extension (no space, dirty; pre)
6881 http://example.com<pre>junk</pre>
6883 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
6888 Fuzz testing: image with bogus manual thumbnail
6890 [[Image:foobar.jpg|thumbnail= ]]
6892 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
6897 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
6899 <pre dir=" "></pre>
6901 <pre dir=" "></pre>
6906 Parsing optional HTML elements (Bug 6171)
6911 <td> Some tabular data</td>
6912 <td> More tabular data ...
6913 <td> And yet som tabular data</td>
6919 <td> Some tabular data</td>
6920 <td> More tabular data ...
6921 </td><td> And yet som tabular data</td>
6928 Correct handling of <td>, <tr> (Bug 6171)
6933 <td> Some tabular data</td>
6934 <td> More tabular data ...</td>
6935 <td> And yet som tabular data</td>
6941 <td> Some tabular data</td>
6942 <td> More tabular data ...</td>
6943 <td> And yet som tabular data</td>
6951 Parsing crashing regression (fr:JavaScript)
6955 <p></body></x>
6960 Inline wiki vs wiki block nesting
6966 <p><b>Bold paragraph</b>
6967 </p><p>New wiki paragraph
6972 Inline HTML vs wiki block nesting
6980 <p><b>Bold paragraph</b>
6981 </p><p>New wiki paragraph
6985 # Original result was this:
6986 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6988 # While that might be marginally more intuitive, maybe, the six-apostrophe
6989 # construct is clearly pathological and the result stated here (which is what
6990 # the parser actually does) is about as reasonable as anything.
6992 Mixing markup for italics and bold
6995 '''bold''''''bold''bolditalics'''''
6997 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
7005 Article for special page transclusion test
7009 Special page transclusion
7012 {{Special:Prefixindex/Xyzzyx}}
7014 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7019 Special page transclusion twice (bug 5021)
7022 {{Special:Prefixindex/Xyzzyx}}
7023 {{Special:Prefixindex/Xyzzyx}}
7025 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7026 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7031 Transclusion of default MediaWiki message
7033 {{MediaWiki:Mainpage}}
7040 Transclusion of nonexistent MediaWiki message
7042 {{MediaWiki:Mainpagexxx}}
7044 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
7049 Transclusion of MediaWiki message with underscore
7051 {{MediaWiki:history_short}}
7058 Transclusion of MediaWiki message with space
7060 {{MediaWiki:history short}}
7067 Invalid header with following text
7077 Section extraction test (section 0)
7097 Section extraction test (section 1)
7119 Section extraction test (section 2)
7140 Section extraction test (section 3)
7160 Section extraction test (section 4)
7184 Section extraction test (section 5)
7204 Section extraction test (section 6)
7225 Section extraction test (section 7)
7245 Section extraction test (section 8)
7265 Section extraction test (section 9)
7286 Section extraction test (section 10)
7306 Section extraction test (nonexistent section 11)
7325 Section extraction test with bogus heading (section 1)
7330 ==bogus== not a legal section
7334 ==bogus== not a legal section
7338 Section extraction test with bogus heading (section 2)
7343 ==bogus== not a legal section
7350 Section extraction test with comment after heading (section 1)
7362 Section extraction test with comment after heading (section 2)
7374 Section extraction test with bogus <nowiki> heading (section 1)
7379 ==bogus== <nowiki>not a legal section</nowiki>
7383 ==bogus== <nowiki>not a legal section</nowiki>
7387 Section extraction test with bogus <nowiki> heading (section 2)
7392 ==bogus== <nowiki>not a legal section</nowiki>
7399 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
7400 # instead of respecting commented sections
7402 Section extraction prefixed by comment (section 1)
7413 Section extraction prefixed by comment (section 2)
7424 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
7425 # instead of respecting HTML-style headings
7427 Section extraction, mixed wiki and html (section 1)
7443 Section extraction, mixed wiki and html (section 2)
7459 # Formerly testing for bug 3342
7461 Section extraction, heading surrounded by <noinclude>
7465 <noinclude>==unmarked==</noinclude>
7471 # Test behaviour of bug 19910
7473 Sectiion with all-equals
7478 The line above must have a trailing space
7481 But just in case it doesn't...
7485 But just in case it doesn't...
7489 Section replacement test (section 0)
7520 Section replacement test (section 1)
7549 Section replacement test (section 2)
7579 Section replacement test (section 3)
7610 Section replacement test (section 4)
7637 Section replacement test (section 5)
7668 Section replacement test (section 6)
7698 Section replacement test (section 7)
7729 Section replacement test (section 8)
7760 Section replacement test (section 9)
7789 Section replacement test (section 10)
7819 Section replacement test with initial whitespace (bug 13728)
7823 Preformatted initial line
7827 Preformatted initial line
7834 Section extraction, heading followed by pre with 20 spaces (bug 6398)
7846 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
7859 Section extraction, <pre> around bogus header (bug 10309)
7876 Section replacement, <pre> around bogus header (bug 10309)
7878 noxml replace=2,"xxx"
7899 Handling of 
 in URLs
7903 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
7910 5 quotes, code coverage +1 line
7917 Special:Search page linking.
7921 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
7936 * {{SUBJECTPAGENAME}}
7937 * {{SUBJECTPAGENAMEE}}
7944 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7946 <ul><li> Parser test
7947 </li><li> Parser test
7948 </li><li> Parser test
7949 </li><li> Parser_test
7950 </li><li> Parser test
7951 </li><li> Parser_test
7952 </li><li> Talk:Parser test
7953 </li><li> Talk:Parser_test
7954 </li><li> Parser test
7955 </li><li> Parser_test
7962 </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>
7966 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
7976 image4 |300px| centre
7977 image5.svg| http://///////
7982 <ul class="gallery">
7983 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7984 <div style="height: 150px;">Image1.png</div>
7985 <div class="gallerytext">
7988 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7989 <div style="height: 150px;">Image2.gif</div>
7990 <div class="gallerytext">
7995 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7996 <div style="height: 150px;">Image3</div>
7997 <div class="gallerytext">
8000 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8001 <div style="height: 150px;">Image4</div>
8002 <div class="gallerytext">
8007 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8008 <div style="height: 150px;">Image5.svg</div>
8009 <div class="gallerytext">
8010 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
8014 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8015 <div style="height: 150px;">* image6</div>
8016 <div class="gallerytext">
8024 Gallery (with options)
8026 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
8027 File:Nonexistant.jpg|caption
8028 File:Nonexistant.jpg
8029 image:foobar.jpg|some '''caption''' [[Main Page]]
8031 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
8034 <ul class="gallery" style="max-width: 226px;_width: 226px;">
8035 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
8036 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8037 <div style="height: 70px;">Nonexistant.jpg</div>
8038 <div class="gallerytext">
8043 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8044 <div style="height: 70px;">Nonexistant.jpg</div>
8045 <div class="gallerytext">
8048 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8049 <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>
8050 <div class="gallerytext">
8051 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8055 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8056 <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>
8057 <div class="gallerytext">
8060 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8061 <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>
8062 <div class="gallerytext">
8072 Gallery with wikitext inside caption
8075 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
8076 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
8079 <ul class="gallery">
8080 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8081 <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>
8082 <div class="gallerytext">
8083 <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>
8087 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8088 <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>
8089 <div class="gallerytext">
8090 <p>This is a test template
8099 gallery (with showfilename option)
8101 <gallery showfilename>
8102 File:Nonexistant.jpg|caption
8103 File:Nonexistant.jpg
8104 image:foobar.jpg|some '''caption''' [[Main Page]]
8108 <ul class="gallery">
8109 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8110 <div style="height: 150px;">Nonexistant.jpg</div>
8111 <div class="gallerytext">
8112 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8117 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8118 <div style="height: 150px;">Nonexistant.jpg</div>
8119 <div class="gallerytext">
8120 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8124 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8125 <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>
8126 <div class="gallerytext">
8127 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8128 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8132 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8133 <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>
8134 <div class="gallerytext">
8135 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8144 Gallery (with namespace-less filenames)
8147 File:Nonexistant.jpg
8153 <ul class="gallery">
8154 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8155 <div style="height: 150px;">Nonexistant.jpg</div>
8156 <div class="gallerytext">
8159 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8160 <div style="height: 150px;">Nonexistant.jpg</div>
8161 <div class="gallerytext">
8164 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8165 <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>
8166 <div class="gallerytext">
8169 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8170 <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>
8171 <div class="gallerytext">
8179 HTML Hex character encoding (spells the word "JavaScript")
8181 JavaScript
8183 <p>JavaScript
8188 HTML Hex character encoding bogus encoding (bug 26437 regression check)
8192 <p>&#xsee;&#XSEE;
8197 HTML Hex character encoding mixed case
8206 __FORCETOC__ override
8218 ISBN 978-0-1234-56 789
8220 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
8225 ISBN followed by 5 spaces
8236 ISBN ISBN 1234567890
8238 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8243 Bug 22905: <abbr> followed by ISBN followed by </a>
8245 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
8247 <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>
8256 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
8261 Double RFC with a wiki link
8265 <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>
8274 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
8279 Centre-aligned image
8281 [[Image:foobar.jpg|centre]]
8283 <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>
8290 [[Image:foobar.jpg|none]]
8292 <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>
8297 Width + Height sized image (using px) (height is ignored)
8299 [[Image:foobar.jpg|640x480px]]
8301 <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>
8306 Width-sized image (using px, no following whitespace)
8308 [[Image:foobar.jpg|640px]]
8310 <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>
8315 Width-sized image (using px, with following whitespace - test regression from r39467)
8317 [[Image:foobar.jpg|640px ]]
8319 <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>
8324 Width-sized image (using px, with preceding whitespace - test regression from r39467)
8326 [[Image:foobar.jpg| 640px]]
8328 <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>
8333 Another italics / bold test
8341 # Note the results may be incorrect, as parserTest output included this:
8342 # XML error: Mismatched tag at byte 6120:
8343 # ...<dd> </dt></dl> </dd...
8351 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
8362 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
8364 Images with the "|" character in the comment
8366 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
8368 <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>
8373 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
8375 <html><script>alert(1);</script></html>
8377 <p><html><script>alert(1);</script></html>
8382 HTML with raw HTML ($wgRawHtml==true)
8386 <html><script>alert(1);</script></html>
8388 <p><script>alert(1);</script>
8393 Parents of subpages, one level up
8395 subpage title=[[Subpage test/L1/L2/L3]]
8399 <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>
8405 Parents of subpages, one level up, not named
8407 subpage title=[[Subpage test/L1/L2/L3]]
8411 <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>
8418 Parents of subpages, two levels up
8420 subpage title=[[Subpage test/L1/L2/L3]]
8426 <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
8427 </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>
8432 Parents of subpages, two levels up, without trailing slash or name.
8434 subpage title=[[Subpage test/L1/L2/L3]]
8443 Parents of subpages, two levels up, with lots of extra trailing slashes.
8445 subpage title=[[Subpage test/L1/L2/L3]]
8449 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
8454 Definition list code coverage
8460 <dl><dt> title  </dt><dd> def
8461 </dd><dt> title </dt><dd> def
8462 </dd><dt>title</dt><dd> def
8468 Don't fall for the self-closing div
8470 <div>hello world</div/>
8472 <div>hello world</div>
8481 <p>[[:Template:Msg]]
8490 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
8494 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
8496 Always escape literal '>' in output, not just after '<'
8510 <p>This is a test template
8511 This is a test template
8523 Inclusion of !userCanEdit() content
8527 <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>
8533 Out-of-order TOC heading levels
8542 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8544 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
8546 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
8547 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
8550 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
8552 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
8553 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
8558 <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>
8559 <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>
8560 <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>
8561 <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>
8562 <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>
8563 <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>
8569 ISBN with a dummy number
8579 ISBN with space-delimited number
8583 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
8589 ISBN with multiple spaces, no number
8608 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8609 </p><p>ISBN 12345678901
8615 ISBN with trailing year (bug 8110)
8617 ISBN 1-234-56789-0 - 2006
8619 ISBN 1 234 56789 0 - 2006
8621 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
8622 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
8630 {{anchorencode:foo bar©#%n}}
8632 <p>foo_bar.C2.A9.23.25n
8637 anchorencode trims spaces
8639 {{anchorencode: __pretty__please__}}
8646 anchorencode deals with links
8648 {{anchorencode: [[hello|world]] [[hi]]}}
8655 anchorencode deals with templates
8657 {{anchorencode: {{Foo}} }}
8664 anchorencode encodes like the TOC generator: (bug 18431)
8666 === _ +:.3A%3A&&]] ===
8667 {{anchorencode: _ +:.3A%3A&&]] }}
8670 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
8671 <p>.2B:.3A.253A.26.26.5D.5D
8675 # Expected output in the following test is not necessarily expected (there
8676 # should probably be <p> tags inside the <blockquote> in the output) -- it's
8677 # only testing for well-formedness.
8679 Bug 6200: blockquotes and paragraph formatting
8699 Bug 8293: Use of center tag ruins paragraph formatting
8721 ### Language variants related tests
8724 Self-link in language variants
8726 title=[[Dunav]] language=sr
8728 Both [[Dunav]] and [[Дунав]] are names for this river.
8730 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
8736 Link to pages in language variants
8740 Main Page can be written as [[Маин Паге]]
8742 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
8748 Multiple links to pages in language variants
8752 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
8754 <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>.
8760 Simple template in language variants
8766 <p>This is a test template
8772 Template with explicit namespace in language variants
8778 <p>This is a test template
8784 Basic test for template parameter in language variants
8788 {{парамтест|param=foo}}
8790 <p>This is a test template with parameter foo
8796 Simple category in language variants
8800 [[Category:МедиаWики Усер'с Гуиде]]
8802 <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>
8807 Stripping -{}- tags (language variants)
8811 Latin proverb: -{Ne nuntium necare}-
8813 <p>Latin proverb: Ne nuntium necare
8819 Prevent conversion with -{}- tags (language variants)
8821 language=sr variant=sr-ec
8823 Latinski: -{Ne nuntium necare}-
8825 <p>Латински: Ne nuntium necare
8831 Prevent conversion of text with -{}- tags (language variants)
8833 language=sr variant=sr-ec
8835 Latinski: -{Ne nuntium necare}-
8837 <p>Латински: Ne nuntium necare
8843 Prevent conversion of links with -{}- tags (language variants)
8845 language=sr variant=sr-ec
8849 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8855 -{}- tags within headlines (within html for parserConvert())
8857 language=sr variant=sr-ec
8861 <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>
8867 Explicit definition of language variant alternatives
8869 language=zh variant=zh-tw
8871 -{zh:China;zh-tw:Taiwan}-, not China
8873 <p>Taiwan, not China
8879 Explicit session-wise language variant mapping (A flag and - flag)
8881 language=zh variant=zh-tw
8883 Taiwan is not China.
8884 But -{A|zh:China;zh-tw:Taiwan}- is China,
8885 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
8886 and -{China}- is China.
8888 <p>Taiwan is not China.
8889 But Taiwan is Taiwan,
8890 (This should be stripped!)
8896 Explicit session-wise language variant mapping (H flag for hide)
8898 language=zh variant=zh-tw
8900 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
8903 <p>(This should be stripped!)
8909 Adding explicit conversion rule for title (T flag)
8911 language=zh variant=zh-tw showtitle
8913 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8916 <p>Should be stripped!
8921 Testing that changing the language variant here in the tests actually works
8923 language=zh variant=zh showtitle
8925 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8928 <p>Should be stripped!
8933 Bug 24072: more test on conversion rule for title
8935 language=zh variant=zh-tw showtitle
8937 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8938 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8941 <p>This should be stripped!
8942 This won't take interferes with the title rule.
8947 Raw output of variant escape tags (R flag)
8949 language=zh variant=zh-tw
8951 Raw: -{R|zh:China;zh-tw:Taiwan}-
8953 <p>Raw: zh:China;zh-tw:Taiwan
8958 Nested using of manual convert syntax
8960 language=zh variant=zh-hk
8962 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8964 <p>Nested: Hello Hong Kong!
8969 Do not convert roman numbers to language variants
8971 language=sr variant=sr-ec
8975 <p>Фридрих IV је цар.
8980 Unclosed language converter markup "-{"
8991 Don't convert raw rule "-{R|=>}-" to "=>"
9008 Bug 529: Uncovered bullet
9019 Bug 529: Uncovered table already at line-start
9042 Bug 529: Uncovered bullet in parser function result
9044 * Foo {{lc:{{bullet}} }}
9053 Bug 5678: Double-parsed template argument
9055 {{lc:{{{1}}}|hello}}
9062 Bug 5678: Double-parsed template invocation
9064 {{lc:{{paramtest {{!}} param = hello }} }}
9066 <p>{{paramtest | param = hello }}
9071 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9097 Morwen/13: Unclosed link followed by heading
9104 <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>
9109 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9116 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9121 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
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>
9143 Paragraphs inside divs (no extra line breaks)
9155 Paragraphs inside divs (extra line break on open)
9170 Paragraphs inside divs (extra line break on close)
9185 Paragraphs inside divs (extra line break on open and close)
9202 Nesting tags, paragraphs on lines which begin with <div>
9206 <div></div><strong>A
9215 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
9217 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
9221 <blockquote>Line one
9223 Line two</blockquote>
9225 <blockquote>Line one
9226 Line two</blockquote>
9231 Bug 6200: paragraphs inside blockquotes (extra line break on open)
9238 Line two</blockquote>
9243 Line two</blockquote>
9248 Bug 6200: paragraphs inside blockquotes (extra line break on close)
9252 <blockquote>Line one
9257 <blockquote>Line one
9265 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
9284 Paragraphs inside blockquotes/divs (no extra line breaks)
9286 <blockquote><div>Line one
9288 Line two</div></blockquote>
9290 <blockquote><div>Line one
9291 Line two</div></blockquote>
9296 Paragraphs inside blockquotes/divs (extra line break on open)
9301 Line two</div></blockquote>
9306 Line two</div></blockquote>
9311 Paragraphs inside blockquotes/divs (extra line break on close)
9313 <blockquote><div>Line one
9318 <blockquote><div>Line one
9326 Paragraphs inside blockquotes/divs (extra line break on open and close)
9343 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
9345 wgLinkHolderBatchSize=0
9351 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
9352 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
9353 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
9358 Free external link invading image caption
9360 [[Image:Foobar.jpg|thumb|http://x|hello]]
9362 <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>
9367 Bug 15196: localised external link numbers
9371 [http://en.wikipedia.org/]
9373 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
9378 Multibyte character in padleft
9380 {{padleft:-Hello|7|Æ}}
9387 Multibyte character in padright
9389 {{padright:Hello-|7|Æ}}
9402 <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>
9407 formatdate parser function
9409 {{#formatdate:2009-03-24}}
9411 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
9416 formatdate parser function, with default format
9418 {{#formatdate:2009-03-24|mdy}}
9420 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
9425 Linked date with autoformatting disabled
9427 wgUseDynamicDates=false
9431 <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>
9436 Spacing of numbers in formatted dates
9438 {{#formatdate:January 15}}
9440 <p><span class="mw-formatted-date" title="01-15">January 15</span>
9445 Spacing of numbers in formatted dates (linked)
9447 wgUseDynamicDates=true
9451 <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>
9456 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
9458 language=nl title=[[MediaWiki:Common.css]]
9460 {{#formatdate:2009-03-24|dmy}}
9462 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
9475 Edit comment with link
9479 I like the [[Main Page]] a lot
9481 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
9485 Edit comment with link and link text
9489 I like the [[Main Page|best pages]] a lot
9491 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9495 Edit comment with link and link text with suffix
9499 I like the [[Main Page|best page]]s a lot
9501 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9505 Edit comment with section link (non-local, eg in history list)
9507 comment title=[[Main Page]]
9509 /* External links */ removed bogus entries
9511 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
9515 Edit comment with section link and text before it (non-local, eg in history list)
9517 comment title=[[Main Page]]
9519 pre-comment text /* External links */ removed bogus entries
9521 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>
9525 Edit comment with section link (local, eg in diff view)
9527 comment local title=[[Main Page]]
9529 /* External links */ removed bogus entries
9531 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
9535 Edit comment with subpage link (bug 14080)
9539 title=[[Subpage test]]
9541 Poked at a [[/subpage]] here...
9543 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
9547 Edit comment with subpage link and link text (bug 14080)
9551 title=[[Subpage test]]
9553 Poked at a [[/subpage|neat little page]] here...
9555 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
9559 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
9562 title=[[Subpage test]]
9564 Poked at a [[/subpage]] here...
9566 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
9570 Edit comment with bare anchor link (local, as on diff)
9578 <a href="#section">#section</a>
9582 Edit comment with bare anchor link (non-local, as on history)
9589 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
9593 Anchor starting with underscore
9597 <p><a href="#_ref">One</a>
9602 Id starting with underscore
9604 <div id="_ref"></div>
9606 <div id="_ref"></div>
9611 Space normalisation on autocomment (bug 22784)
9616 /* __hello__world__ */
9618 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
9622 percent-encoding and + signs in comments (Bug 26410)
9626 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
9628 <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>
9632 Bad images - basic functionality
9641 Bad images - bug 16039: text after bad image disappears
9655 Verify that displaytitle works (bug #22501) no displaytitle
9659 wgAllowDisplayTitle=true
9660 wgRestrictDisplayTitle=false
9662 this is not the the title
9665 <p>this is not the the title
9670 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
9675 wgAllowDisplayTitle=true
9676 wgRestrictDisplayTitle=false
9678 this is not the the title
9679 {{DISPLAYTITLE:whatever}}
9682 <p>this is not the the title
9687 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
9692 wgAllowDisplayTitle=true
9693 wgRestrictDisplayTitle=true
9695 this is not the the title
9696 {{DISPLAYTITLE:whatever}}
9699 <p>this is not the the title
9704 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
9709 wgAllowDisplayTitle=true
9710 wgRestrictDisplayTitle=true
9712 this is not the the title
9713 {{DISPLAYTITLE:screen}}
9716 <p>this is not the the title
9721 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
9726 wgAllowDisplayTitle=false
9728 this is not the the title
9729 {{DISPLAYTITLE:screen}}
9732 <p>this is not the the title
9733 <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>
9738 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
9743 wgAllowDisplayTitle=false
9745 this is not the the title
9748 <p>this is not the the title
9753 preload: check <noinclude> and <includeonly>
9757 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
9763 preload: check <onlyinclude>
9767 Goodbye <onlyinclude>Hello world</onlyinclude>
9773 preload: can pass tags through if we want to
9777 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
9779 <includeonly>Hello world</includeonly>
9783 preload: check that it doesn't try to do tricks
9787 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9789 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9793 Play a bit with r67090 and bug 3158
9797 <div style="width:50% !important"> </div>
9798 <div style="width:50% !important"> </div>
9799 <div style="width:50% !important"> </div>
9800 <div style="border : solid;"> </div>
9802 <div style="width:50% !important"> </div>
9803 <div style="width:50% !important"> </div>
9804 <div style="width:50% !important"> </div>
9805 <div style="border : solid;"> </div>
9810 HTML5 data attributes
9812 <span data-foo="bar">Baz</span>
9813 <p data-abc-def_hij="">Quuz</p>
9815 <p><span data-foo="bar">Baz</span>
9817 <p data-abc-def_hij="">Quuz</p>
9822 percent-encoding and + signs in internal links (Bug 26410)
9824 [[User:+%]] [[Page+title%]]
9825 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
9826 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
9827 [[%33%45]] [[%33%45+]]
9829 <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>
9830 <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>
9831 <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>
9832 <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>
9837 Special characters in embedded file links (bug 27679)
9839 [[File:Contains & ampersand.jpg]]
9840 [[File:Does not exist.jpg|Title with & ampersand]]
9842 <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>
9843 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
9849 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
9851 Text's been normalized?
9853 <p>Text's been normalized?
9858 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
9860 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
9862 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
9867 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
9869 [http://www.example.org/ ideograms]
9871 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
9876 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
9878 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
9880 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
9904 Bug 31098 Template which includes system messages which includes the template
9908 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
9909 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
9914 Deprecated presentational attributes are converted to css
9917 | valign=top align=left width=100 height=25% | Asdf
9919 <ul type="disc"></ul>
9923 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
9925 <ul style="list-style-type: disc;"></ul>
9930 Bug31490 Turkish: ucfirst 'blah'
9941 Bug31490 Turkish: ucfirst 'ix'
9952 Bug31490 Turkish: lcfirst 'BLAH'
9963 Bug31490 Turkish: ucfırst (with a dotless i)
9969 <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>
9974 Bug31490 ucfırst (with a dotless i) with English language
9980 <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>
9985 Bug 26375: TOC with italics
9990 == ''Lost'' episodes ==
9992 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9994 <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>
9997 <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>
10002 Bug 26375: TOC with bold
10004 title=[[Main Page]]
10007 == '''should be bold''' then normal text ==
10009 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10011 <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>
10014 <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>
10019 Bug 33845: Headings become cursive in TOC when they contain an image
10021 title=[[Main Page]]
10024 == Image [[Image:foobar.jpg]] ==
10026 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10028 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
10031 <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>
10036 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
10038 title=[[Main Page]]
10041 == <blockquote>Quote</blockquote> ==
10043 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10045 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
10048 <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>
10053 Unclosed tags in TOC
10055 title=[[Main Page]]
10059 <small>Hanc marginis exiguitas non caperet.</small>
10062 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10064 <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>
10067 <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>
10068 <p><small>Hanc marginis exiguitas non caperet.</small>
10074 Multiple tags in TOC
10077 == <i>Foo</i> <b>Bar</b> ==
10079 == <i>Foo</i> <blockquote>Bar</blockquote> ==
10081 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10083 <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>
10084 <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>
10087 <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>
10088 <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>
10093 Tags with parameters in TOC
10096 == <sup class="in-h2">Hello</sup> ==
10098 == <sup class="a > b">Evilbye</sup> ==
10100 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10102 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10103 <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>
10106 <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>
10107 <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>
10114 == {{int:headline_sample}} ==
10118 Bug 32057: Title needed when expanding <h> nodes.
10120 title=[[Main Page]]
10124 <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>
10129 Strip marker in urlencode
10131 {{urlencode:x<nowiki/>y}}
10132 {{urlencode:x<nowiki/>y|wiki}}
10133 {{urlencode:x<nowiki/>y|path}}
10160 Strip marker in formatNum
10162 {{formatnum:1<nowiki/>2}}
10163 {{formatnum:1<nowiki/>2|R}}
10171 Strip marker in grammar
10175 {{grammar:elative|foo<nowiki/>bar}}
10182 Strip marker in padleft
10184 {{padleft:|2|x<nowiki/>y}}
10191 Strip marker in padright
10193 {{padright:|2|x<nowiki/>y}}
10200 Strip marker in anchorencode
10202 {{anchorencode:x<nowiki/>y}}
10209 nowiki inside link inside heading (bug 18295)
10211 ==[[foo|x<nowiki>y</nowiki>z]]==
10213 <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>
10218 new support for bdi element (bug 31817)
10220 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10222 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
10227 Ignore pipe between table row attributes
10231 |- id=foo | style='color: red'
10239 <tr id="foo" style="color: red">
10246 Gallery override link with WikiLink (bug 34852)
10249 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
10252 <ul class="gallery">
10253 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10254 <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>
10255 <div class="gallerytext">
10265 Gallery override link with absolute external link (bug 34852)
10268 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
10271 <ul class="gallery">
10272 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10273 <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>
10274 <div class="gallerytext">
10284 Gallery override link with malicious javascript (bug 34852)
10287 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
10290 <ul class="gallery">
10291 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10292 <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>
10293 <div class="gallerytext">
10303 Language parser function
10312 Padleft and padright as substr
10314 {{padleft:|3|abcde}}
10315 {{padright:|3|abcde}}
10328 Try for 100% code coverage