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 # comment run through Linker::formatComment() instead of main parser
25 # local format section links in edit comment text as local links
27 # For testing purposes, temporary articles can created:
28 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
29 # where '/' denotes a newline.
31 # This is the standard article assumed to exist.
68 This is a simple paragraph.
70 <p>This is a simple paragraph.
90 * plain''italic''plain
91 * plain''italic''plain''italic''plain
92 * plain'''bold'''plain
93 * plain'''bold'''plain'''bold'''plain
94 * plain''italic''plain'''bold'''plain
95 * plain'''bold'''plain''italic''plain
96 * plain''italic'''bold-italic'''italic''plain
97 * plain'''bold''bold-italic''bold'''plain
98 * plain'''''bold-italic'''italic''plain
99 * plain'''''bold-italic''bold'''plain
100 * plain''italic'''bold-italic'''''plain
101 * plain'''bold''bold-italic'''''plain
102 * plain l'''italic''plain
103 * plain l''''bold''' plain
106 </li><li> plain<i>italic</i>plain
107 </li><li> plain<i>italic</i>plain<i>italic</i>plain
108 </li><li> plain<b>bold</b>plain
109 </li><li> plain<b>bold</b>plain<b>bold</b>plain
110 </li><li> plain<i>italic</i>plain<b>bold</b>plain
111 </li><li> plain<b>bold</b>plain<i>italic</i>plain
112 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
113 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
114 </li><li> plain<i><b>bold-italic</b>italic</i>plain
115 </li><li> plain<b><i>bold-italic</i>bold</b>plain
116 </li><li> plain<i>italic<b>bold-italic</b></i>plain
117 </li><li> plain<b>bold<i>bold-italic</i></b>plain
118 </li><li> plain l'<i>italic</i>plain
119 </li><li> plain l'<b>bold</b> plain
125 ### <nowiki> test cases
129 <nowiki> unordered list
131 <nowiki>* This is not an unordered list item.</nowiki>
133 <p>* This is not an unordered list item.
140 <nowiki>Lorem ipsum dolor
161 :There is not nowiki.
162 :There is <nowiki>nowiki</nowiki>.
164 #There is not nowiki.
165 #There is <nowiki>nowiki</nowiki>.
167 *There is not nowiki.
168 *There is <nowiki>nowiki</nowiki>.
170 <dl><dd>There is not nowiki.
171 </dd><dd>There is nowiki.
173 <ol><li>There is not nowiki.
174 </li><li>There is nowiki.
176 <ul><li>There is not nowiki.
177 </li><li>There is nowiki.
189 <!-- comment 1 --> asdf
225 asdf<!-- comment 1 -->jkl
235 <!-- foo --> b <!-- bar -->
249 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
255 Comment semantics and delimiters
257 <!-- --><!----><!-----><!------>
263 Comment semantics and delimiters, redux
265 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
266 -- foo -- funky huh? ... -->
272 Comment semantics and delimiters: directors cut
274 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
275 everything starting with < followed by !-- until the first -- and > we see,
276 that wouldn't be valid XML however, since in XML -- has to terminate a comment
284 Comment semantics: nesting
286 <!--<!-- no, we're not going to do anything fancy here -->-->
293 Comment semantics: unclosed comment at end
295 <!--This comment will run out to the end of the document
301 Comment in template title
310 Comment on its own line post-expand
322 ### Preformatted text
331 And a [[Main Page|link]]
337 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
342 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
359 Regression with preformatted in <center>
373 <pre> with attributes (bug 3202)
375 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
377 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
382 <pre> with width attribute (bug 3202)
384 <pre width="8">Narrow screen goodies</pre>
386 <pre width="8">Narrow screen goodies</pre>
391 <pre> with forbidden attribute (bug 3202)
393 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
395 <pre width="8">Narrow screen goodies</pre>
400 <pre> with forbidden attribute values (bug 3202)
402 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
404 <pre width="8">Narrow screen goodies</pre>
416 <dl><dt> name </dt><dd> Definition
422 Definition list for indentation only
426 <dl><dd> Indented text
432 Definition list with no space
436 <dl><dt>name</dt><dd>Definition
442 Definition list with URL link
444 ; http://example.com/ : definition
446 <dl><dt> <a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a> </dt><dd> definition
452 Definition list with bracketed URL link
454 ;[http://www.example.com/ Example]:Something about it
456 <dl><dt><a href="http://www.example.com/" class="external text" rel="nofollow">Example</a></dt><dd>Something about it
462 Definition list with wikilink containing colon
464 ; [[Help:FAQ]]: The least-read page on Wikipedia
466 <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
471 # At Brion's and JeLuF's insistence... :)
473 Definition list with news link containing colon
475 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
477 <dl><dt> <a href="news:alt.wikipedia.rox" class="external free" rel="nofollow">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
483 Malformed definition list with colon
485 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
487 <dl><dt> <a href="news:alt.wikipedia.rox" class="external free" rel="nofollow">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
493 Definition lists: colon in external link text
495 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
497 <dl><dt> <a href="http://www.wikipedia2.org/" class="external text" rel="nofollow">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
503 Definition lists: colon in HTML attribute
505 ;<b style="display: inline">bold</b>
507 <dl><dt><b style="display: inline">bold</b>
514 Definition lists: self-closed tag
516 ;one<br/>two : two-line fun
518 <dl><dt>one<br />two </dt><dd> two-line fun
528 External links: non-bracketed
530 Non-bracketed: http://example.com
532 <p>Non-bracketed: <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>
537 External links: numbered
539 Numbered: [http://example.com]
540 Numbered: [http://example.net]
541 Numbered: [http://example.com]
543 <p>Numbered: <a href="http://example.com" class="external autonumber" rel="nofollow">[1]</a>
544 Numbered: <a href="http://example.net" class="external autonumber" rel="nofollow">[2]</a>
545 Numbered: <a href="http://example.com" class="external autonumber" rel="nofollow">[3]</a>
550 External links: specified text
552 Specified text: [http://example.com link]
554 <p>Specified text: <a href="http://example.com" class="external text" rel="nofollow">link</a>
559 External links: trail
561 Linktrails should not work for external links: [http://example.com link]s
563 <p>Linktrails should not work for external links: <a href="http://example.com" class="external text" rel="nofollow">link</a>s
568 External links: dollar sign in URL
570 http://example.com/1$2345
572 <p><a href="http://example.com/1$2345" class="external free" rel="nofollow">http://example.com/1$2345</a>
577 External links: dollar sign in URL (named)
579 [http://example.com/1$2345]
581 <p><a href="http://example.com/1$2345" class="external autonumber" rel="nofollow">[1]</a>
586 External links: open square bracket forbidden in URL (bug 4377)
588 http://example.com/1[2345
590 <p><a href="http://example.com/1" class="external free" rel="nofollow">http://example.com/1</a>[2345
595 External links: open square bracket forbidden in URL (named) (bug 4377)
597 [http://example.com/1[2345]
599 <p><a href="http://example.com/1" class="external text" rel="nofollow">[2345</a>
604 External links: nowiki in URL link text (bug 6230)
606 [http://example.com/ <nowiki>''example site''</nowiki>]
608 <p><a href="http://example.com/" class="external text" rel="nofollow">''example site''</a>
613 External links: newline forbidden in text (bug 6230 regression check)
615 [http://example.com/ first
618 <p>[<a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a> first
626 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
628 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
633 External image from https
635 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
637 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
642 Link to non-http image, no img tag
644 Link to non-http image, no img tag: ftp://example.com/test.jpg
646 <p>Link to non-http image, no img tag: <a href="ftp://example.com/test.jpg" class="external free" rel="nofollow">ftp://example.com/test.jpg</a>
651 External links: terminating separator
653 Terminating separator: http://example.com/thing,
655 <p>Terminating separator: <a href="http://example.com/thing" class="external free" rel="nofollow">http://example.com/thing</a>,
660 External links: intervening separator
662 Intervening separator: http://example.com/1,2,3
664 <p>Intervening separator: <a href="http://example.com/1,2,3" class="external free" rel="nofollow">http://example.com/1,2,3</a>
669 External links: old bug with URL in query
671 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
673 <p>Old bug with URL in query: <a href="http://example.com/thing?url=http://example.com" class="external text" rel="nofollow">link</a>
678 External links: old URL-in-URL bug, mixed protocols
680 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
682 <p>And again with mixed protocols: <a href="ftp://example.com?url=http://example.com" class="external text" rel="nofollow">link</a>
687 External links: URL in text
689 URL in text: [http://example.com http://example.com]
691 <p>URL in text: <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>
696 External links: Clickable images
698 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
700 <p>ja-style clickable images: <a href="http://example.com" class="external text" rel="nofollow"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
705 External links: raw ampersand
707 Old & use: http://x&y
709 <p>Old & use: <a href="http://x&y" class="external free" rel="nofollow">http://x&y</a>
714 External links: encoded ampersand
716 Old & use: http://x&y
718 <p>Old & use: <a href="http://x&y" class="external free" rel="nofollow">http://x&y</a>
723 External links: encoded equals (bug 6102)
725 http://example.com/?foo=bar
727 <p><a href="http://example.com/?foo=bar" class="external free" rel="nofollow">http://example.com/?foo=bar</a>
732 External links: [raw ampersand]
734 Old & use: [http://x&y]
736 <p>Old & use: <a href="http://x&y" class="external autonumber" rel="nofollow">[1]</a>
741 External links: [encoded ampersand]
743 Old & use: [http://x&y]
745 <p>Old & use: <a href="http://x&y" class="external autonumber" rel="nofollow">[1]</a>
750 External links: [encoded equals] (bug 6102)
752 [http://example.com/?foo=bar]
754 <p><a href="http://example.com/?foo=bar" class="external autonumber" rel="nofollow">[1]</a>
759 External links: [IDN ignored character reference in hostname; strip it right off]
761 [http://e‌xample.com/]
763 <p><a href="http://example.com/" class="external autonumber" rel="nofollow">[1]</a>
768 External links: IDN ignored character reference in hostname; strip it right off
770 http://e‌xample.com/
772 <p><a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a>
777 External links: www.jpeg.org (bug 554)
781 <p><a href="http://www.jpeg.org" class="external free" rel="nofollow">http://www.jpeg.org</a>
786 External links: URL within URL (original bug 2)
788 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
790 <p><a href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp" class="external autonumber" rel="nofollow">[1]</a>
795 BUG 361: URL inside bracketed URL
797 [http://www.example.com/foo http://www.example.com/bar]
799 <p><a href="http://www.example.com/foo" class="external text" rel="nofollow">http://www.example.com/bar</a>
804 BUG 361: URL within URL, not bracketed
806 http://www.example.com/foo?=http://www.example.com/bar
808 <p><a href="http://www.example.com/foo?=http://www.example.com/bar" class="external free" rel="nofollow">http://www.example.com/foo?=http://www.example.com/bar</a>
813 BUG 289: ">"-token in URL-tail
815 http://www.example.com/<hello>
817 <p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a><hello>
822 BUG 289: literal ">"-token in URL-tail
824 http://www.example.com/<b>html</b>
826 <p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a><b>html</b>
831 BUG 289: ">"-token in bracketed URL
833 [http://www.example.com/<hello> stuff]
835 <p><a href="http://www.example.com/" class="external text" rel="nofollow"><hello> stuff</a>
840 BUG 289: literal ">"-token in bracketed URL
842 [http://www.example.com/<b>html</b> stuff]
844 <p><a href="http://www.example.com/" class="external text" rel="nofollow"><b>html</b> stuff</a>
849 BUG 289: literal double quote at end of URL
851 http://www.example.com/"hello"
853 <p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a>"hello"
858 BUG 289: literal double quote in bracketed URL
860 [http://www.example.com/"hello" stuff]
862 <p><a href="http://www.example.com/" class="external text" rel="nofollow">"hello" stuff</a>
867 External links: invalid character
868 Fixme: the missing char seems to have gone missing
872 [http://www.example.com test]
874 <p>[<a href="http://www.example.com" class="external free" rel="nofollow">http://www.example.com</a> test]
879 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
881 [http://www.example.com test]
883 <p><a href="http://www.example.com" class="external text" rel="nofollow">test</a>
888 External links: wiki links within external link (Bug 3695)
890 [http://example.com [[wikilink]] embedded in ext link]
892 <p><a href="http://example.com" class="external text" rel="nofollow"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a href="http://example.com" class="external text" rel="nofollow"> embedded in ext link</a>
897 BUG 787: Links with one slash after the url protocol are invalid
901 [http:/example.com title]
904 </p><p>[http:/example.com title]
909 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
911 ''[http://example.com text'']
912 [http://example.com '''text]'''
913 ''Something [http://example.com in italic'']
914 ''Something [http://example.com mixed''''', even bold]'''
915 '''''Now [http://example.com both''''']
917 <p><a href="http://example.com" class="external text" rel="nofollow"><i>text</i></a>
918 <a href="http://example.com" class="external text" rel="nofollow"><b>text</b></a>
919 <i>Something </i><a href="http://example.com" class="external text" rel="nofollow"><i>in italic</i></a>
920 <i>Something </i><a href="http://example.com" class="external text" rel="nofollow"><i>mixed</i><b>, even bold</b></a>
921 <i><b>Now </b></i><a href="http://example.com" class="external text" rel="nofollow"><i><b>both</b></i></a>
929 http://www.example.com/?title=AT%26T
931 <p><a href="http://www.example.com/?title=AT%26T" class="external free" rel="nofollow">http://www.example.com/?title=AT%26T</a>
936 Bug 4781, 5267: %26 in URL
938 http://www.example.com/?title=100%25_Bran
940 <p><a href="http://www.example.com/?title=100%25_Bran" class="external free" rel="nofollow">http://www.example.com/?title=100%25_Bran</a>
945 Bug 4781, 5267: %28, %29 in URL
947 http://www.example.com/?title=Ben-Hur_%281959_film%29
949 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external free" rel="nofollow">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
955 Bug 4781: %26 in autonumber URL
957 [http://www.example.com/?title=AT%26T]
959 <p><a href="http://www.example.com/?title=AT%26T" class="external autonumber" rel="nofollow">[1]</a>
964 Bug 4781, 5267: %26 in autonumber URL
966 [http://www.example.com/?title=100%25_Bran]
968 <p><a href="http://www.example.com/?title=100%25_Bran" class="external autonumber" rel="nofollow">[1]</a>
973 Bug 4781, 5267: %28, %29 in autonumber URL
975 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
977 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external autonumber" rel="nofollow">[1]</a>
983 Bug 4781: %26 in bracketed URL
985 [http://www.example.com/?title=AT%26T link]
987 <p><a href="http://www.example.com/?title=AT%26T" class="external text" rel="nofollow">link</a>
992 Bug 4781, 5267: %26 in bracketed URL
994 [http://www.example.com/?title=100%25_Bran link]
996 <p><a href="http://www.example.com/?title=100%25_Bran" class="external text" rel="nofollow">link</a>
1001 Bug 4781, 5267: %28, %29 in bracketed URL
1003 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1005 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external text" rel="nofollow">link</a>
1010 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1012 Some [http://example.com/ pretty ''italics'' and stuff]!
1014 <p>Some <a href="http://example.com/" class="external text" rel="nofollow">pretty <i>italics</i> and stuff</a>!
1019 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1021 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1023 <p><i>Some </i><a href="http://example.com/" class="external text" rel="nofollow"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1028 URL-encoding in URL functions (single parameter)
1030 {{localurl:Some page|amp=&}}
1032 <p>/index.php?title=Some_page&amp=&
1037 URL-encoding in URL functions (multiple parameters)
1039 {{localurl:Some page|q=?&=&}}
1041 <p>/index.php?title=Some_page&q=?&amp=&
1052 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1054 Normal text. '''''Bold italic text.''''' Normal text.
1056 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1057 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1063 Unclosed and unmatched quotes
1065 '''''Bold italic text '''with bold deactivated''' in between.'''''
1067 '''''Bold italic text ''with italic deactivated'' in between.'''''
1071 ..spanning two paragraphs (should not work).'''
1073 '''Bold tag left open
1075 ''Italic tag left open
1079 <!-- Unmatching number of opening, closing tags: -->
1080 '''This year''''s election ''should'' beat '''last year''''s.
1082 ''Tom'''s car is bigger than ''Susan'''s.
1084 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1085 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1086 </p><p><b>Bold text..</b>
1087 </p><p>..spanning two paragraphs (should not work).
1088 </p><p><b>Bold tag left open</b>
1089 </p><p><i>Italic tag left open</i>
1091 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1092 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1099 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1102 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1103 # is the bare minimun required by the spec, see:
1104 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1106 A table with no data.
1112 # A table with nothing but a caption is invalid XHTML, we might want to render
1113 # this as <p>caption</p>
1115 A table with nothing but a caption
1123 </caption><tr><td></td></tr></table>
1147 Multiplication table
1149 {| border="1" cellpadding="2"
1150 |+Multiplication table
1152 ! × !! 1 !! 2 !! 3
1170 <table border="1" cellpadding="2">
1171 <caption>Multiplication table
1174 <th> × </th><th> 1 </th><th> 2 </th><th> 3
1178 </th><td> 1 </td><td> 2 </td><td> 3
1182 </th><td> 2 </td><td> 4 </td><td> 6
1186 </th><td> 3 </td><td> 6 </td><td> 9
1190 </th><td> 4 </td><td> 8 </td><td> 12
1194 </th><td> 5 </td><td> 10 </td><td> 15
1202 {| align=right border=1
1204 |rowspan=2| Cell 2, row 1 (and 2)
1211 <table align="right" border="1">
1214 </td><td rowspan="2"> Cell 2, row 1 (and 2)
1215 </td><td> Cell 3, row 1
1219 </td><td> Cell 3, row 2
1230 {| bgcolor=#ABCDEF border=2
1235 |the original table again
1242 <table bgcolor="#ABCDEF" border="2">
1249 </td><td>the original table again
1255 Invalid attributes in table cell (bug 1830)
1269 # FIXME: It's not clear at all that this is the result we want, but the actual
1270 # output right now is invalid XML, so clearly something is wrong. The result
1271 # specified here is now valid XML, which is an improvement . . .
1273 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1278 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1282 <td><a href="ftp://|x||" class="external autonumber" title="ftp://|x||" rel="nofollow">[1]</a></td><td>" onmouseover="alert(document.cookie)">test
1294 Plain link, capitalized
1298 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1303 Plain link, uncapitalized
1307 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1314 [[Main Page|The Main Page]]
1316 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1325 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1330 Broken link with fragment
1332 [[Zigzagzogzagzig#zug]]
1334 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1339 Special page link with fragment
1341 [[Special:Version#anchor]]
1343 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1348 Nonexistent special page link with fragment
1350 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1352 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1359 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1361 <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>
1368 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1370 <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>!!!
1375 Link with 3 brackets
1384 Piped link with 3 brackets
1386 [[[main page|the main page]]]
1388 <p>[[[main page|the main page]]]
1393 Link with multiple pipes
1395 [[Main Page|The|Main|Page]]
1397 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1404 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1406 <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>
1411 Piped link to namespace
1413 [[Meta:Disclaimers|The disclaimers]]
1415 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1422 [[Usually caused by a typo (oops}]]
1424 <p>[[Usually caused by a typo (oops}]]
1429 Link containing % (not as a hex sequence)
1433 <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>
1438 Link containing % as a single hex sequence interpreted to char
1442 <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>
1447 Link containing % as a double hex sequence interpreted to hex sequence
1451 <p>[[7%2525 Solution]]
1456 Link containing "#<" and "#>" % as hex sequences- these are valid section anchors
1457 Example for such a section: == < ==
1459 [[%23%3c]][[%23%3e]]
1461 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1466 Link containing "<#" and ">#" as hex sequences
1468 [[%3c%23]][[%3e%23]]
1470 <p>[[%3c%23]]<a href="/index.php?title=%3E&action=edit&redlink=1" class="new" title="> (page does not exist)">>#</a>
1475 Link containing double-single-quotes '' (bug 4598)
1479 [[Lista d''e paise d''o munno]]
1481 <p><a href="/index.php?title=Lista_d%27%27e_paise_d%27%27o_munno&action=edit" class="new" title="Lista d''e paise d''o munno">Lista d''e paise d''o munno</a>
1486 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1488 Some [[Link|pretty ''italics'' and stuff]]!
1490 <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>!
1495 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1497 ''Some [[Link|pretty ''italics'' and stuff]]!
1499 <p><i>Some </i><a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1506 [[http://www.example.com]]
1508 <p>[<a href="http://www.example.com" class="external autonumber" rel="nofollow">[1]</a>]
1512 # I'm fairly sure the expected result here is wrong.
1513 # We want these to be URL links, not pseudo-pages with URLs for titles....
1514 # However the current output is also pretty screwy.
1517 # I'm changing it to match the current output--it arguably makes more
1518 # sense in the light of the test above. Old expected result was:
1519 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1521 # But I think this test is bordering on "garbage in, garbage out" anyway.
1526 Piped link to URL: [[http://www.example.com|an example URL]]
1528 <p>Piped link to URL: [<a href="http://www.example.com|an" class="external text" rel="nofollow">example URL</a>]
1533 BUG 2: [[page|http://url/]] should link to page, not http://url/
1535 [[Main Page|http://url/]]
1537 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1542 BUG 337: Escaped self-links should be bold
1546 [[Bug462]] [[Bug462]]
1548 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1553 Self-link to section should not be bold
1557 [[Main Page#section]]
1559 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1570 Self-link to numeric title
1576 <p><strong class="selflink">0</strong>
1581 Link to numeric-equivalent title
1587 <p><a href="/wiki/00" title="00">00</a>
1592 <nowiki> inside a link
1594 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1596 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1601 ### Interwiki links (see maintenance/interwiki.sql)
1605 Inline interwiki link
1607 [[MeatBall:SoftSecurity]]
1609 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1614 Inline interwiki link with empty title (bug 2372)
1618 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw" title="meatball:">MeatBall:</a>
1623 Interwiki link encoding conversion (bug 1636)
1625 *[[Wikipedia:ro:Olteniţa]]
1626 *[[Wikipedia:ro:Olteniţa]]
1628 <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>
1629 </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>
1635 Interwiki link with fragment (bug 2130)
1637 [[MeatBall:SoftSecurity#foo]]
1639 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1654 Double interlanguage link
1665 Interlanguage link, with prefix links
1677 Double interlanguage link, with prefix links (bug 8897)
1704 Incorrecly removing closing slashes from correctly formed XHTML
1706 <br style="clear:both;" />
1708 <p><br style="clear:both;" />
1713 Failing to transform badly formed HTML into correct XHTML
1719 <p><br clear="left" />
1720 <br clear="right" />
1726 Horizontal ruler (should it add that extra space?)
1740 ### Block-level elements
1763 <ol><li>Numbered list
1780 ***#Number on level 4
1782 **#Number on level 3
1783 **#Number on level 3
1788 <ol><li> with numbers
1790 <ul><li> and bullets
1792 <ol><li> and numbers
1794 </li><li>bullets again
1795 <ul><li>bullet level 2
1796 <ul><li>bullet level 3
1797 <ol><li>Number on level 4
1800 </li><li>bullet level 2
1801 <ol><li>Number on level 3
1802 </li><li>Number on level 3
1805 <ol><li>number level 2
1813 List items are not parsed correctly following a <pre> block (bug 785)
1819 <ul><li> <pre>foo</pre>
1820 </li><li> <pre>bar</pre>
1831 Magic Word: {{CURRENTDAY}}
1840 Magic Word: {{CURRENTDAY2}}
1849 Magic Word: {{CURRENTDAYNAME}}
1858 Magic Word: {{CURRENTDOW}}
1867 Magic Word: {{CURRENTMONTH}}
1876 Magic Word: {{CURRENTMONTHABBREV}}
1878 {{CURRENTMONTHABBREV}}
1885 Magic Word: {{CURRENTMONTHNAME}}
1887 {{CURRENTMONTHNAME}}
1894 Magic Word: {{CURRENTMONTHNAMEGEN}}
1896 {{CURRENTMONTHNAMEGEN}}
1903 Magic Word: {{CURRENTTIME}}
1912 Magic Word: {{CURRENTWEEK}} (@bug 4594)
1921 Magic Word: {{CURRENTYEAR}}
1930 Magic Word: {{FULLPAGENAME}}
1932 title=[[User:Ævar Arnfjörð Bjarmason]]
1936 <p>User:Ævar Arnfjörð Bjarmason
1941 Magic Word: {{FULLPAGENAMEE}}
1943 title=[[User:Ævar Arnfjörð Bjarmason]]
1947 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
1952 Magic Word: {{NAMESPACE}}
1954 title=[[User:Ævar Arnfjörð Bjarmason]]
1963 Magic Word: {{NAMESPACEE}}
1965 title=[[User:Ævar Arnfjörð Bjarmason]]
1974 Magic Word: {{NUMBEROFARTICLES}}
1976 {{NUMBEROFARTICLES}}
1983 Magic Word: {{NUMBEROFFILES}}
1992 Magic Word: {{PAGENAME}}
1994 title=[[User:Ævar Arnfjörð Bjarmason]]
1998 <p>Ævar Arnfjörð Bjarmason
2003 Magic Word: {{PAGENAMEE}}
2005 title=[[User:Ævar Arnfjörð Bjarmason]]
2009 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2014 Magic Word: {{REVISIONID}}
2023 Magic Word: {{SCRIPTPATH}}
2032 Magic Word: {{SERVER}}
2036 <p><a href="http://localhost" class="external free" rel="nofollow">http://localhost</a>
2041 Magic Word: {{SERVERNAME}}
2050 Magic Word: {{SITENAME}}
2059 Namespace 1 {{ns:1}}
2068 Namespace 1 {{ns:01}}
2077 Namespace 0 {{ns:0}} (bug 4783)
2085 Namespace 0 {{ns:00}} (bug 4783)
2093 Namespace -1 {{ns:-1}}
2102 Namespace User {{ns:User}}
2111 Namespace User talk {{ns:User_talk}}
2120 Namespace User talk {{ns:uSeR tAlK}}
2129 Namespace File {{ns:File}}
2138 Namespace File {{ns:Image}}
2147 Namespace (lang=de) Benutzer {{ns:User}}
2158 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2164 <p>Benutzer Diskussion
2173 Magic links: internal link to RFC (bug 479)
2177 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2182 Magic links: RFC (bug 479)
2186 <p><a href="http://tools.ietf.org/html/rfc822" class="external">RFC 822</a>
2191 Magic links: ISBN (bug 1937)
2195 <p><a href="/wiki/Special:BookSources/0306406152" class="internal">ISBN 0-306-40615-2</a>
2200 Magic links: PMID incorrectly converts space to underscore
2204 <p><a href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract" class="external">PMID 1234</a>
2213 Nonexistent template
2215 {{thistemplatedoesnotexist}}
2217 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2224 This is a test template
2232 <p>This is a test template
2237 Template with explicit namespace
2241 <p>This is a test template
2249 This is a test template with parameter {{{param}}}
2255 {{paramtest|param=foo}}
2257 <p>This is a test template with parameter foo
2262 Template:paramtestnum
2268 Template unnamed parameter
2270 {{paramtestnum|Main Page|the main page}}
2272 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2277 Template:templatesimple
2283 Template:templateredirect
2285 #redirect [[Template:templatesimple]]
2289 Template:templateasargtestnum
2295 Template:templateasargtest
2297 {{template{{{templ}}}}}
2301 Template:templateasargtest2
2307 Template with template name as unnamed argument
2309 {{templateasargtestnum|templatesimple}}
2316 Template with template name as argument
2318 {{templateasargtest|templ=simple}}
2325 Template with template name as argument (2)
2327 {{templateasargtest2|templ=templatesimple}}
2334 Template:templateasargtestdefault
2336 {{{{{templ|templatesimple}}}}}
2346 Template with default value
2348 {{templateasargtestdefault}}
2355 Template with default value (value set)
2357 {{templateasargtestdefault|templ=templa}}
2366 {{templateredirect}}
2373 Template with argument in separate line
2375 {{ templateasargtest |
2383 Template with complex template as argument
2386 param ={{ templateasargtest |
2389 <p>This is a test template with parameter (test)
2394 Template with thumb image (with link in description)
2397 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2399 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>
2404 Template:complextemplate
2406 {{{1}}} {{paramtest|
2407 param ={{{param}}}}}
2411 Template with complex arguments
2414 param ={{ templateasargtest |
2415 templ = simple }}|[[Template:complextemplate|link]]}}
2417 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2422 BUG 553: link with two variables in a piped link
2425 |[[{{{1}}}|{{{2}}}]]
2430 <td>[[{{{1}}}|{{{2}}}]]
2436 Magic variable as template parameter
2438 {{paramtest|param={{SITENAME}}}}
2440 <p>This is a test template with parameter MediaWiki
2447 [[{{{param}}}|link]]
2451 Template parameter as link source
2453 {{linktest|param=Main Page}}
2455 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2463 including another template, {{paramtest|param={{{arg}}}}}
2467 Template passing argument to another template
2469 {{paramtest2|arg='hmm'}}
2471 <p>including another template, This is a test template with parameter 'hmm'
2482 Template as link source
2486 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2504 Template infinite loop
2508 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
2513 Template from main namespace
2532 BUG 529: Template with table, not included at beginning of line
2549 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2567 BUG 41: Template parameters shown as broken links
2579 ''None'' of '''this''' should be
2581 but rather passed unmodified
2585 # hmm, fix this or just deprecate msgnw and document its behavior?
2591 {{msgnw:MSGNW test}}
2593 <p>''None'' of '''this''' should be
2595 but rather passed unmodified
2603 {{int:youhavenewmessages|lots of money|not!}}
2605 <p>You have lots of money (not!).
2612 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2616 <includeonly> and <noinclude> being included
2627 <onlyinclude>Foo</onlyinclude>bar
2631 <onlyinclude> being included
2643 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2647 <onlyinclude> and <includeonly> being included
2656 <includeonly> and <noinclude> on a page
2658 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2665 <onlyinclude> on a page
2667 <onlyinclude>Foo</onlyinclude>bar
2674 Template:Includeonly section
2677 ==Includeonly section==
2683 Bug 6563: Edit link generation for section shown by <includeonly>
2685 {{includeonly section}}
2687 <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>
2688 <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>
2692 # Uses same input as the contents of [[Template:Includeonly section]]
2694 Bug 6563: Section extraction for section shown by <includeonly>
2699 ==Includeonly section==
2707 Bug 6563: Edit link generation for section suppressed by <includeonly>
2710 ==Includeonly section==
2714 <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>
2719 Bug 6563: Section extraction for section suppressed by <includeonly>
2724 ==Includeonly section==
2732 ### Pre-save transform tests
2735 pre-save transform: subst:
2741 This is a test template
2745 pre-save transform: normal template
2755 pre-save transform: nonexistent template
2759 {{thistemplatedoesnotexist}}
2761 {{thistemplatedoesnotexist}}
2766 pre-save transform: subst magic variables
2775 # This is bug 89, which I fixed. -- wtm
2777 pre-save transform: subst: templates with parameters
2781 {{subst:paramtest|param="something else"}}
2783 This is a test template with parameter "something else"
2789 <nowiki>'''not wiki'''</nowiki>
2793 pre-save transform: nowiki in subst (bug 1188)
2797 {{subst:nowikitest}}
2799 <nowiki>'''not wiki'''</nowiki>
2804 Template:commenttest
2806 This template has <!-- a comment --> in it.
2810 pre-save transform: comment in subst (bug 1936)
2814 {{subst:commenttest}}
2816 This template has <!-- a comment --> in it.
2820 pre-save transform: unclosed tag
2824 <nowiki>'''not wiki'''
2826 <nowiki>'''not wiki'''
2830 pre-save transform: mixed tag case
2834 <NOwiki>'''not wiki'''</noWIKI>
2836 <NOwiki>'''not wiki'''</noWIKI>
2840 pre-save transform: unclosed comment in <nowiki>
2844 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2846 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2852 <span onmouseover="alert('crap')">Oh no</span>
2856 (confirming safety of fix for subst bug 1936)
2858 {{Template:dangerous}}
2860 <p><span>Oh no</span>
2865 pre-save transform: comment containing gallery (bug 5024)
2869 <!-- <gallery>data</gallery> -->
2871 <!-- <gallery>data</gallery> -->
2875 pre-save transform: comment containing extension
2879 <!-- <tag>data</tag> -->
2881 <!-- <tag>data</tag> -->
2885 pre-save transform: comment containing nowiki
2889 <!-- <nowiki>data</nowiki> -->
2891 <!-- <nowiki>data</nowiki> -->
2895 pre-save transform: comment containing math
2899 <!-- <math>data</math> -->
2901 <!-- <math>data</math> -->
2905 pre-save transform: <noinclude> in subst (bug 3298)
2915 pre-save transform: <onlyinclude> in subst (bug 3298)
2925 pre-save transform: context links ("pipe trick")
2929 [[Article (context)|]]
2932 [[Bar:Article (context)|]]
2933 [[:Bar:Article (context)|]]
2935 [[|Article (context)]]
2939 [[Article (context)|Article]]
2940 [[Bar:Article|Article]]
2941 [[:Bar:Article|Article]]
2942 [[Bar:Article (context)|Article]]
2943 [[:Bar:Article (context)|Article]]
2945 [[Article (context)]]
2946 [[Bar:X (Y) Z|X (Y) Z]]
2947 [[:Bar:X (Y) Z|X (Y) Z]]
2951 pre-save transform: context links ("pipe trick") with interwiki prefix
2955 [[interwiki:Article|]]
2956 [[:interwiki:Article|]]
2957 [[interwiki:Bar:Article|]]
2958 [[:interwiki:Bar:Article|]]
2960 [[interwiki:Article|Article]]
2961 [[:interwiki:Article|Article]]
2962 [[interwiki:Bar:Article|Bar:Article]]
2963 [[:interwiki:Bar:Article|Bar:Article]]
2967 pre-save transform: context links ("pipe trick") with parens in title
2969 pst title=[[Somearticle (context)]]
2973 [[Article (context)|Article]]
2977 pre-save transform: context links ("pipe trick") with comma in title
2979 pst title=[[Someplace, Somewhere]]
2982 [[Otherplace, Elsewhere|]]
2983 [[Otherplace, Elsewhere, Anywhere|]]
2985 [[Otherplace, Somewhere|Otherplace]]
2986 [[Otherplace, Elsewhere|Otherplace]]
2987 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
2991 pre-save transform: context links ("pipe trick") with parens and comma
2993 pst title=[[Someplace (IGNORED), Somewhere]]
2996 [[Otherplace (place), Elsewhere|]]
2998 [[Otherplace, Somewhere|Otherplace]]
2999 [[Otherplace (place), Elsewhere|Otherplace]]
3003 pre-save transform: context links ("pipe trick") with comma and parens
3005 pst title=[[Who, me? (context)]]
3008 [[Me, Myself, and I (1937 song)|]]
3010 [[Yes, you. (context)|Yes, you.]]
3011 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3015 pre-save transform: context links ("pipe trick") with namespace
3017 pst title=[[Ns:Somearticle]]
3021 [[Ns:Article|Article]]
3025 pre-save transform: context links ("pipe trick") with namespace and parens
3027 pst title=[[Ns:Somearticle (context)]]
3031 [[Ns:Article (context)|Article]]
3035 pre-save transform: context links ("pipe trick") with namespace and comma
3037 pst title=[[Ns:Somearticle, Context, Whatever]]
3041 [[Ns:Article, Context, Whatever|Article]]
3045 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3047 pst title=[[Ns:Somearticle, Context (context)]]
3051 [[Ns:Article (context)|Article]]
3055 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3057 pst title=[[Ns:Somearticle (IGNORED), Context]]
3061 [[Ns:Article, Context|Article]]
3066 ### Message transform tests
3069 message transform: magic variables
3079 message transform: should not transform wiki markup
3089 message transform: <noinclude> in transcluded template (bug 4926)
3099 message transform: <onlyinclude> in transcluded template (bug 4926)
3109 {{#special:}} page name, known
3113 {{#special:Recentchanges}}
3115 Special:RecentChanges
3119 {{#special:}} page name, unknown
3123 {{#special:foobarnonexistent}}
3125 No such special page
3134 [[Image:foobar.jpg]]
3136 <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>
3143 [[Image:foobar.jpg|right]]
3145 <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>
3150 Simple image (using File: namespace, now canonical)
3154 <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>
3161 [[Image:foobar.jpg|right|Caption text]]
3163 <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>
3168 Image with link parameter, wiki target
3170 [[Image:foobar.jpg|link=Target page]]
3172 <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>
3177 Image with link parameter, URL target
3179 [[Image:foobar.jpg|link=http://example.com/]]
3181 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3186 Image with empty link parameter
3188 [[Image:foobar.jpg|link=]]
3190 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3195 Image with link parameter (wiki target) and unnamed parameter
3197 [[Image:foobar.jpg|link=Target page|Title]]
3199 <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>
3204 Image with link parameter (URL target) and unnamed parameter
3206 [[Image:foobar.jpg|link=http://example.com/|Title]]
3208 <p><a href="http://example.com/" title="Title"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3215 Image with frame and link
3217 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3219 <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>
3224 Image with frame and link and explicit alt
3226 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3228 <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>
3233 Image with wiki markup in implicit alt
3235 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3237 <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>
3242 Image with wiki markup in explicit alt
3244 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3246 <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>
3251 Link to image page- image page normally doesn't exists, hence edit link
3252 Add test with existing image page
3253 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3257 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3262 Frameless image caption with a free URL
3264 [[Image:foobar.jpg|http://example.com]]
3266 <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>
3271 Thumbnail image caption with a free URL
3273 [[Image:foobar.jpg|thumb|http://example.com]]
3275 <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/thumb/3/3a/Foobar.jpg/180px-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="http://example.com" class="external free" rel="nofollow">http://example.com</a></div></div></div>
3280 Thumbnail image caption with a free URL and explicit alt
3282 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3284 <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/thumb/3/3a/Foobar.jpg/180px-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="http://example.com" class="external free" rel="nofollow">http://example.com</a></div></div></div>
3289 BUG 1887: A ISBN with a thumbnail
3291 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3293 <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/thumb/3/3a/Foobar.jpg/180px-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">ISBN 1235467890</a></div></div></div>
3298 BUG 1887: A RFC with a thumbnail
3300 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3302 <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/thumb/3/3a/Foobar.jpg/180px-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 href="http://tools.ietf.org/html/rfc12354" class="external">RFC 12354</a></div></div></div>
3307 BUG 1887: A mailto link with a thumbnail
3309 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3311 <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/thumb/3/3a/Foobar.jpg/180px-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 href="mailto:nobody@example.com" class="external free" rel="nofollow">mailto:nobody@example.com</a></div></div></div>
3316 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
3317 so math is not stripped and turns up as escaped <math> tags.
3319 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3321 <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/thumb/3/3a/Foobar.jpg/180px-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><math>2+2</math></div></div></div>
3326 BUG 1887, part 2: A <math> with a thumbnail- math enabled
3330 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3332 <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/thumb/3/3a/Foobar.jpg/180px-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><span class="texhtml">2 + 2</span></div></div></div>
3336 # Pending resolution to bug 368
3338 BUG 648: Frameless image caption with a link
3340 [[Image:foobar.jpg|text with a [[link]] in it]]
3342 <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>
3347 BUG 648: Frameless image caption with a link (suffix)
3349 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3351 <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>
3356 BUG 648: Frameless image caption with an interwiki link
3358 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3360 <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>
3365 BUG 648: Frameless image caption with a piped interwiki link
3367 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3369 <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>
3374 Escape HTML special chars in image alt text
3376 [[Image:foobar.jpg|& < > "]]
3378 <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>
3383 BUG 499: Alt text should have Ӓ, not &1234;
3385 [[Image:foobar.jpg|♀]]
3387 <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>
3392 Broken image caption with link
3394 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3396 <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.
3401 Image caption containing another image
3403 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3405 <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/thumb/3/3a/Foobar.jpg/180px-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">File:Icon.png</a> inside it!</div></div></div>
3410 Image caption containing a newline
3412 [[Image:Foobar.jpg|This
3415 <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>
3421 Bug 3090: External links other than http: in image captions
3423 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3425 <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/thumb/3/3a/Foobar.jpg/200px-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 href="irc://example.net" class="external text" rel="nofollow">irc</a> and <a href="https://example.com" class="external text" rel="nofollow">Secure</a> ext links in it.</div></div></div>
3434 Subpage test/subpage
3442 subpage title=[[Subpage test]]
3446 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3451 Subpage noslash link
3453 subpage title=[[Subpage test]]
3457 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3466 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
3471 BUG 561: {{/Subpage}}
3473 subpage title=[[Page]]
3477 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
3485 Category:MediaWiki User's Guide
3493 [[:Category:MediaWiki User's Guide]]
3495 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
3504 [[Category:MediaWiki User's Guide]]
3506 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3510 PAGESINCATEGORY invalid title fatal (r33546 fix)
3512 {{PAGESINCATEGORY:<bogus>}}
3519 ### Inter-language links
3522 Inter-language links
3528 [[zh:食品]]
3530 es:Alimento fr:Nourriture zh:食品
3537 Basic section headings
3544 ===Smaller headline===
3547 <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>
3550 <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>
3553 <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>
3559 Section headings with TOC
3562 === Subheadline 1 ===
3563 ===== Skipping a level =====
3564 ====== Skipping a level ======
3568 ===Another headline===
3570 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3572 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3574 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3576 <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>
3578 <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>
3585 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
3587 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
3591 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3592 <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>
3593 <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>
3594 <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>
3595 <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>
3596 <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>
3599 <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>
3603 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
3605 Handling of sections up to level 6 and beyond
3608 == Level 2 Heading==
3609 === Level 3 Heading===
3610 ==== Level 4 Heading====
3611 ===== Level 5 Heading=====
3612 ====== Level 6 Heading======
3613 ======= Level 7 Heading=======
3614 ======== Level 8 Heading========
3615 ========= Level 9 Heading=========
3616 ========== Level 10 Heading==========
3618 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3620 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
3622 <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>
3624 <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>
3626 <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>
3628 <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>
3630 <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>
3631 <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>
3632 <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>
3633 <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>
3634 <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>
3646 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3647 <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>
3648 <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>
3649 <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>
3650 <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>
3651 <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>
3652 <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>
3653 <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>
3654 <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>
3655 <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>
3656 <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>
3661 TOC regression (bug 9764)
3665 ==== title 1.1.1 ====
3670 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3672 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3674 <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>
3676 <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>
3679 <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>
3682 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3684 <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>
3688 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3689 <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>
3690 <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>
3691 <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>
3692 <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>
3693 <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>
3694 <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>
3699 TOC with wgMaxTocLevel=3 (bug 6204)
3705 ==== title 1.1.1 ====
3710 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3712 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3714 <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>
3715 <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>
3718 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3720 <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>
3724 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3725 <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>
3726 <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>
3727 <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>
3728 <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>
3729 <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>
3730 <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>
3735 Resolving duplicate section names
3740 <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>
3741 <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>
3746 Resolving duplicate section names with differing case (bug 10721)
3751 <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>
3752 <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>
3764 Template with sections, __NOTOC__
3771 <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>
3772 <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>
3773 <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>
3774 <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>
3779 __NOEDITSECTION__ keyword
3785 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
3786 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
3791 Link inside a section heading
3793 ==Section with a [[Main Page|link]] in it==
3795 <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>
3800 TOC regression (bug 12077)
3807 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3809 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3811 <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>
3814 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
3816 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3817 <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>
3818 <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>
3819 <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>
3824 BUG 1219 URL next to image (good)
3826 http://example.com [[Image:foobar.jpg]]
3828 <p><a href="http://example.com" class="external free" rel="nofollow">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>
3833 BUG 1219 URL next to image (broken)
3835 http://example.com[[Image:foobar.jpg]]
3837 <p><a href="http://example.com" class="external free" rel="nofollow">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>
3842 Bug 1186 news: in the middle of text
3844 http://en.wikinews.org/wiki/Wikinews:Workplace
3846 <p><a href="http://en.wikinews.org/wiki/Wikinews:Workplace" class="external free" rel="nofollow">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
3852 Namespaced link must have a title
3861 Namespaced link must have a title (bad fragment version)
3863 [[Project:#fragment]]
3865 <p>[[Project:#fragment]]
3871 div with no attributes
3873 <div>HTML rocks</div>
3875 <div>HTML rocks</div>
3880 div with double-quoted attribute
3882 <div id="rock">HTML rocks</div>
3884 <div id="rock">HTML rocks</div>
3889 div with single-quoted attribute
3891 <div id='rock'>HTML rocks</div>
3893 <div id="rock">HTML rocks</div>
3898 div with unquoted attribute
3900 <div id=rock>HTML rocks</div>
3902 <div id="rock">HTML rocks</div>
3907 div with illegal double attributes
3909 <div align="center" align="right">HTML rocks</div>
3911 <div align="right">HTML rocks</div>
3916 HTML multiple attributes correction
3918 <p class="error" class="awesome">Awesome!</p>
3920 <p class="awesome">Awesome!</p>
3925 Table multiple attributes correction
3928 !+ class="error" class="awesome"| status
3933 <th class="awesome"> status
3941 <DIV ALIGN="center">HTML ROCKS</DIV>
3943 <div align="center">HTML ROCKS</div>
3949 text with amp in the middle of nowhere
3953 <p>Remember AT&T?
3958 text with character entity: eacute
3960 I always thought é was a cute letter.
3962 <p>I always thought é was a cute letter.
3967 text with undefined character entity: xacute
3969 I always thought &xacute; was a cute letter.
3971 <p>I always thought &xacute; was a cute letter.
3983 [[Media:Foobar.jpg]]
3985 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
3990 Media link with text
3992 [[Media:Foobar.jpg|A neat file to look at]]
3994 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
3998 # FIXME: this is still bad HTML tag nesting
4000 Media link with nasty text
4001 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4003 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4005 <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>
4010 Media link to nonexistent file (bug 1702)
4012 [[Media:No such.jpg]]
4014 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4019 Image link to nonexistent file (bug 1850 - good)
4021 [[Image:No such.jpg]]
4023 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4028 :Image link to nonexistent file (bug 1850 - bad)
4030 [[:Image:No such.jpg]]
4032 <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>
4039 Character reference normalization in link text (bug 1938)
4041 [[Main Page|this&that]]
4043 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4048 Empty attribute crash test (bug 2067)
4050 <font color="">foo</font>
4052 <p><font color="">foo</font>
4057 Empty attribute crash test single-quotes (bug 2067)
4059 <font color=''>foo</font>
4061 <p><font color="">foo</font>
4066 Attribute test: equals, then nothing
4068 <font color=>foo</font>
4075 Attribute test: unquoted value
4077 <font color=x>foo</font>
4079 <p><font color="x">foo</font>
4084 Attribute test: unquoted but illegal value (hash)
4086 <font color=#x>foo</font>
4088 <p><font color="#x">foo</font>
4093 Attribute test: no value
4095 <font color>foo</font>
4097 <p><font color="color">foo</font>
4102 Bug 2095: link with three closing brackets
4106 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
4111 Bug 2095: link with pipe and three closing brackets
4115 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4120 Bug 2095: link with pipe and three closing brackets, version 2
4122 [[Main Page|[http://example.com/]]]
4124 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4134 Template:Dangerous attribute
4136 " onmouseover="alert(document.cookie)
4140 Template:Dangerous style attribute
4142 border-size: expression(alert(document.cookie))
4148 <div style="float: right; {{{1}}}">Magic div</div>
4152 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4154 <div title="{{test}}"></div>
4156 <div title="This is a test template"></div>
4161 Bug 2304: HTML attribute safety (dangerous template; 2309)
4163 <div title="{{dangerous attribute}}"></div>
4165 <div title=""></div>
4170 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4172 <div style="{{dangerous style attribute}}"></div>
4179 Bug 2304: HTML attribute safety (safe parameter; 2309)
4181 {{div style|width: 200px}}
4183 <div style="float: right; width: 200px">Magic div</div>
4188 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4190 {{div style|width: expression(alert(document.cookie))}}
4192 <div>Magic div</div>
4197 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4199 {{div style|"><script>alert(document.cookie)</script>}}
4201 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4206 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4208 {{div style|" ><script>alert(document.cookie)</script>}}
4210 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4215 Bug 2304: HTML attribute safety (link)
4217 <div title="[[Main Page]]"></div>
4219 <div title="[[Main Page]]"></div>
4224 Bug 2304: HTML attribute safety (italics)
4226 <div title="''foobar''"></div>
4228 <div title="''foobar''"></div>
4233 Bug 2304: HTML attribute safety (bold)
4235 <div title="'''foobar'''"></div>
4237 <div title="'''foobar'''"></div>
4243 Bug 2304: HTML attribute safety (ISBN)
4245 <div title="ISBN 1234567890"></div>
4247 <div title="ISBN 1234567890"></div>
4252 Bug 2304: HTML attribute safety (RFC)
4254 <div title="RFC 1234"></div>
4256 <div title="RFC 1234"></div>
4261 Bug 2304: HTML attribute safety (PMID)
4263 <div title="PMID 1234567890"></div>
4265 <div title="PMID 1234567890"></div>
4270 Bug 2304: HTML attribute safety (web link)
4272 <div title="http://example.com/"></div>
4274 <div title="http://example.com/"></div>
4279 Bug 2304: HTML attribute safety (named web link)
4281 <div title="[http://example.com/ link]"></div>
4283 <div title="[http://example.com/ link]"></div>
4288 Bug 3244: HTML attribute safety (extension; safe)
4290 <div style="<nowiki>background:blue</nowiki>"></div>
4292 <div style="background:blue"></div>
4297 Bug 3244: HTML attribute safety (extension; unsafe)
4299 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4306 Math section safety when disabled
4308 <math><script>alert(document.cookies);</script></math>
4310 <p><math><script>alert(document.cookies);</script></math>
4314 # More MSIE fun discovered by Tom Gilder
4317 MSIE CSS safety test: spurious slash
4319 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4326 MSIE CSS safety test: hex code
4328 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4335 MSIE CSS safety test: comment in url
4337 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4339 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4344 MSIE CSS safety test: comment in expression
4346 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4348 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4354 Table attribute legitimate extension
4357 !+ style="<nowiki>color:blue</nowiki>"| status
4362 <th style="color:blue"> status
4368 Table attribute safety
4371 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4389 Expansion of multi-line templates in attribute values (bug 6255)
4391 <div style="background: {{identity|#00FF00}}">-</div>
4393 <div style="background: #00FF00">-</div>
4399 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
4401 <div style="background:
4404 <div style="background: #00FF00">-</div>
4409 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
4411 <div style="background: #00FF00">-</div>
4413 <div style="background: #00FF00">-</div>
4418 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
4421 Parser hook: empty input
4434 Parser hook: empty input using terminated empty elements
4447 Parser hook: empty input using terminated empty elements (space before)
4460 Parser hook: basic input
4474 Parser hook: case insensitive
4488 Parser hook: case insensitive, redux
4501 Parser hook: nested tags
4505 <tag><tag></tag></tag>
4516 Parser hook: basic arguments
4518 <tag width=200 height = "100" depth = '50' square></tag>
4537 Parser hook: argument containing a forward slash (bug 5344)
4539 <tag filename='/tmp/bla'></tag>
4545 string(8) "/tmp/bla"
4552 Parser hook: empty input using terminated empty elements (bug 2374)
4566 # </tag> should be output literally since there is no matching tag that begins it
4568 Parser hook: basic arguments using terminated empty elements (bug 2374)
4570 <tag width=200 height = "100" depth = '50' square/>
4593 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
4597 Parser hook: static parser hook not inside a comment
4599 <statictag>hello, world</statictag>
4600 <statictag action=flush/>
4608 Parser hook: static parser hook inside a comment
4610 <!-- <statictag>hello, world</statictag> -->
4611 <statictag action=flush/>
4617 # Nested template calls; this case was broken by Parser.php rev 1.506,
4621 Template:One-parameter
4623 (My parameter is: {{{1}}})
4627 Template:Map-one-parameter
4633 Nested template calls
4635 {{Map-one-parameter|One-parameter|param}}
4637 <p>(My parameter is: param)
4646 Sanitizer: Closing of open tags
4648 <s></s><table></table>
4650 <s></s><table></table>
4655 Sanitizer: Closing of open but not closed tags
4664 Sanitizer: Closing of closed but not open tags
4673 Sanitizer: Closing of closed but not open table tags
4675 Table not started</td></tr></table>
4677 <p>Table not started</td></tr></table>
4682 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
4684 <span id="æ: v">byte</span>[[#æ: v|backlink]]
4686 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
4691 Sanitizer: Validating the contents of the id attribute (bug 4515)
4697 Something, but defenetly not <br id="9" />...
4701 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
4705 <br id="foo" /><br id="foo" />
4707 Something need to be done. foo-2 ?
4711 Language converter: output gets cut off unexpectedly (bug 5757)
4715 this bit is safe: }-
4717 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
4719 then we get cut off here: }-
4721 all additional text is vanished
4723 <p>this bit is safe: }-
4724 </p><p>but if we add a conversion instance: xxx
4725 </p><p>then we get cut off here: }-
4726 </p><p>all additional text is vanished
4731 Self closed html pairs (bug 5487)
4734 <center><font id="bug" />Centered text</center>
4735 <div><font id="bug2" />In div text</div>
4737 <center><font id="bug" />Centered text</center>
4738 <div><font id="bug2" />In div text</div>
4747 Punctuation: nbsp before exclamation
4751 <p>C'est grave !
4756 Punctuation: CSS !important (bug 11874)
4758 <div style="width:50% !important">important</div>
4760 <div style="width:50% !important">important</div>
4765 Punctuation: CSS ! important (bug 11874; with space after)
4767 <div style="width:50% ! important">important</div>
4769 <div style="width:50% ! important">important</div>
4775 HTML bullet list, closed tags (bug 5497)
4790 HTML bullet list, unclosed tags (bug 5497)
4807 HTML ordered list, closed tags (bug 5497)
4822 HTML ordered list, unclosed tags (bug 5497)
4839 HTML nested bullet list, closed tags (bug 5497)
4864 HTML nested bullet list, open tags (bug 5497)
4889 HTML nested ordered list, closed tags (bug 5497)
4914 HTML nested ordered list, open tags (bug 5497)
4939 HTML ordered list item with parameters oddity
4941 <ol><li id="fragment">One</li></ol>
4943 <ol><li id="fragment">One</li></ol>
4948 bug 5918: autonumbering
4950 [http://first/] [http://second] [ftp://ftp]
4954 [mailto:enclosed@mail.tld With target]
4956 [mailto:enclosed@mail.tld]
4958 mailto:inline@mail.tld
4960 <p><a href="http://first/" class="external autonumber" rel="nofollow">[1]</a> <a href="http://second" class="external autonumber" rel="nofollow">[2]</a> <a href="ftp://ftp" class="external autonumber" rel="nofollow">[3]</a>
4961 </p><p><a href="ftp://inlineftp" class="external free" rel="nofollow">ftp://inlineftp</a>
4962 </p><p><a href="mailto:enclosed@mail.tld" class="external text" rel="nofollow">With target</a>
4963 </p><p><a href="mailto:enclosed@mail.tld" class="external autonumber" rel="nofollow">[4]</a>
4964 </p><p><a href="mailto:inline@mail.tld" class="external free" rel="nofollow">mailto:inline@mail.tld</a>
4970 # Security and HTML correctness
4971 # From Nick Jenkins' fuzz testing
4975 Fuzz testing: Parser13
4990 Fuzz testing: Parser14
4995 <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>
4996 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4998 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5000 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
5005 Fuzz testing: Parser14-table
5010 <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>
5011 <table style="__TOC__">
5017 # Known to produce bogus xml (extra </td>)
5019 Fuzz testing: Parser16
5028 <th>https://</th><th></th><th></th><th>
5036 Fuzz testing: Parser21
5039 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5044 <th> <a href="irc://{{ftp://a" class="external free" rel="nofollow">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5053 Fuzz testing: Parser22
5055 http://===r:::https://b
5059 <p><a href="http://===r:::https://b" class="external free" rel="nofollow">http://===r:::https://b</a>
5067 # Known to produce bad XML for now
5069 Fuzz testing: Parser24
5076 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5077 <br style="onmouseover='alert(document.cookie);' " />
5079 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5084 <u class="|">}}}} >
5085 <br style="onmouseover='alert(document.cookie);'" />
5087 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5096 # Note: the current result listed for this is not what the original one was,
5097 # but the original bug was JavaScript injection, which is fixed in any case.
5098 # It's not clear that the original result listed was any more correct than the
5099 # current one. Original result:
5102 # <li class="||">
5103 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5105 Fuzz testing: Parser25 (bug 6055)
5111 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5113 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5118 Fuzz testing: URL adjacent extension (with space, clean)
5121 http://example.com <nowiki>junk</nowiki>
5123 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a> junk
5128 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5131 http://example.com<nowiki>junk</nowiki>
5133 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>junk
5138 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5141 http://example.com<pre>junk</pre>
5143 <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a><pre>junk</pre>
5148 Fuzz testing: image with bogus manual thumbnail
5150 [[Image:foobar.jpg|thumbnail= ]]
5152 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5157 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5159 <pre dir=" "></pre>
5161 <pre dir=" "></pre>
5166 Parsing optional HTML elements (Bug 6171)
5171 <td> Some tabular data</td>
5172 <td> More tabular data ...
5173 <td> And yet som tabular data</td>
5179 <td> Some tabular data</td>
5180 <td> More tabular data ...
5181 </td><td> And yet som tabular data</td>
5188 Correct handling of <td>, <tr> (Bug 6171)
5193 <td> Some tabular data</td>
5194 <td> More tabular data ...</td>
5195 <td> And yet som tabular data</td>
5201 <td> Some tabular data</td>
5202 <td> More tabular data ...</td>
5203 <td> And yet som tabular data</td>
5211 Parsing crashing regression (fr:JavaScript)
5215 <p></body></x>
5220 Inline wiki vs wiki block nesting
5226 <p><b>Bold paragraph</b>
5227 </p><p>New wiki paragraph
5232 Inline HTML vs wiki block nesting
5240 <p><b>Bold paragraph</b>
5241 </p><p>New wiki paragraph
5245 # Original result was this:
5246 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5248 # While that might be marginally more intuitive, maybe, the six-apostrophe
5249 # construct is clearly pathological and the result stated here (which is what
5250 # the parser actually does) is about as reasonable as anything.
5252 Mixing markup for italics and bold
5255 '''bold''''''bold''bolditalics'''''
5257 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5265 Article for special page transclusion test
5269 Special page transclusion
5272 {{Special:Prefixindex/Xyzzyx}}
5276 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5281 Special page transclusion twice (bug 5021)
5284 {{Special:Prefixindex/Xyzzyx}}
5285 {{Special:Prefixindex/Xyzzyx}}
5289 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5292 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5297 Transclusion of default MediaWiki message
5299 {{MediaWiki:Mainpage}}
5306 Transclusion of nonexistent MediaWiki message
5308 {{MediaWiki:Mainpagexxx}}
5310 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
5315 Transclusion of MediaWiki message with underscore
5317 {{MediaWiki:history_short}}
5324 Transclusion of MediaWiki message with space
5326 {{MediaWiki:history short}}
5333 Invalid header with following text
5343 Section extraction test (section 0)
5363 Section extraction test (section 1)
5385 Section extraction test (section 2)
5406 Section extraction test (section 3)
5426 Section extraction test (section 4)
5450 Section extraction test (section 5)
5470 Section extraction test (section 6)
5491 Section extraction test (section 7)
5511 Section extraction test (section 8)
5531 Section extraction test (section 9)
5552 Section extraction test (section 10)
5572 Section extraction test (nonexistent section 11)
5591 Section extraction test with bogus heading (section 1)
5596 ==bogus== not a legal section
5600 ==bogus== not a legal section
5604 Section extraction test with bogus heading (section 2)
5609 ==bogus== not a legal section
5616 Section extraction test with comment after heading (section 1)
5628 Section extraction test with comment after heading (section 2)
5640 Section extraction test with bogus <nowiki> heading (section 1)
5645 ==bogus== <nowiki>not a legal section</nowiki>
5649 ==bogus== <nowiki>not a legal section</nowiki>
5653 Section extraction test with bogus <nowiki> heading (section 2)
5658 ==bogus== <nowiki>not a legal section</nowiki>
5665 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
5666 # instead of respecting commented sections
5668 Section extraction prefixed by comment (section 1)
5679 Section extraction prefixed by comment (section 2)
5690 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
5691 # instead of respecting HTML-style headings
5693 Section extraction, mixed wiki and html (section 1)
5709 Section extraction, mixed wiki and html (section 2)
5725 # Formerly testing for bug 3342
5727 Section extraction, heading surrounded by <noinclude>
5731 <noinclude>==unmarked==</noinclude>
5739 Section replacement test (section 0)
5770 Section replacement test (section 1)
5799 Section replacement test (section 2)
5829 Section replacement test (section 3)
5860 Section replacement test (section 4)
5887 Section replacement test (section 5)
5918 Section replacement test (section 6)
5948 Section replacement test (section 7)
5979 Section replacement test (section 8)
6010 Section replacement test (section 9)
6039 Section replacement test (section 10)
6069 Section replacement test with initial whitespace (bug 13728)
6073 Preformatted initial line
6077 Preformatted initial line
6084 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6096 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6109 Section extraction, <pre> around bogus header (bug 10309)
6126 Section replacement, <pre> around bogus header (bug 10309)
6128 noxml replace=2,"xxx"
6149 Handling of 
 in URLs
6153 <ul><li><ul><li><a href="irc://%0Aa" class="external free" rel="nofollow">irc://%0Aa</a>
6160 5 quotes, code coverage +1 line
6167 Special:Search page linking.
6171 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
6186 * {{SUBJECTPAGENAME}}
6187 * {{SUBJECTPAGENAMEE}}
6194 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6196 <ul><li> Parser test
6197 </li><li> Parser test
6198 </li><li> Parser test
6199 </li><li> Parser_test
6200 </li><li> Parser test
6201 </li><li> Parser_test
6202 </li><li> Talk:Parser test
6203 </li><li> Talk:Parser_test
6204 </li><li> Parser test
6205 </li><li> Parser_test
6212 </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>
6216 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6226 image4 |300px| centre
6227 image5.svg| http://///////
6232 <table class="gallery" cellspacing="0" cellpadding="0">
6234 <td><div class="gallerybox" style="width: 155px;">
6235 <div style="height: 152px;">Image1.png</div>
6236 <div class="gallerytext">
6239 <td><div class="gallerybox" style="width: 155px;">
6240 <div style="height: 152px;">Image2.gif</div>
6241 <div class="gallerytext">
6246 <td><div class="gallerybox" style="width: 155px;">
6247 <div style="height: 152px;">Image3</div>
6248 <div class="gallerytext">
6251 <td><div class="gallerybox" style="width: 155px;">
6252 <div style="height: 152px;">Image4</div>
6253 <div class="gallerytext">
6260 <td><div class="gallerybox" style="width: 155px;">
6261 <div style="height: 152px;">Image5.svg</div>
6262 <div class="gallerytext">
6263 <p><a href="http://///////" class="external free" rel="nofollow">http://///////</a>
6267 <td><div class="gallerybox" style="width: 155px;">
6268 <div style="height: 152px;">* image6</div>
6269 <div class="gallerytext">
6278 HTML Hex character encoding (spells the word "JavaScript")
6280 JavaScript
6282 <p>JavaScript
6287 __FORCETOC__ override
6299 ISBN 978-0-1234-56 789
6301 <p><a href="/wiki/Special:BookSources/9780123456" class="internal">ISBN 978-0-1234-56</a> 789
6306 ISBN followed by 5 spaces
6317 ISBN ISBN 1234567890
6319 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1234567890</a>
6328 <p>RFC <a href="http://tools.ietf.org/html/rfc1234" class="external">RFC 1234</a>
6333 Double RFC with a wiki link
6337 <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>
6346 <p><a href="http://tools.ietf.org/html/rfc983" class="external">RFC 983</a> 987
6351 Centre-aligned image
6353 [[Image:foobar.jpg|centre]]
6355 <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>
6362 [[Image:foobar.jpg|none]]
6364 <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>
6369 Width + Height sized image (using px) (height is ignored)
6371 [[Image:foobar.jpg|640x480px]]
6373 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" /></a>
6378 Width-sized image (using px, no following whitespace)
6380 [[Image:foobar.jpg|640px]]
6382 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" /></a>
6387 Width-sized image (using px, with following whitespace - test regression from r39467)
6389 [[Image:foobar.jpg|640px ]]
6391 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" /></a>
6396 Width-sized image (using px, with preceding whitespace - test regression from r39467)
6398 [[Image:foobar.jpg| 640px]]
6400 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" /></a>
6405 Another italics / bold test
6413 # Note the results may be incorrect, as parserTest output included this:
6414 # XML error: Mismatched tag at byte 6120:
6415 # ...<dd> </dt></dl> </dd...
6423 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
6434 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
6436 Images with the "|" character in the comment
6440 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
6442 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="An external URL" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-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 href="http://test/?param1=|left|&param2=|x" class="external text" rel="nofollow">external</a> URL</div></div></div>
6447 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
6449 <html><script>alert(1);</script></html>
6451 <p><html><script>alert(1);</script></html>
6456 HTML with raw HTML ($wgRawHtml==true)
6460 <html><script>alert(1);</script></html>
6462 <p><script>alert(1);</script>
6467 Parents of subpages, one level up
6469 subpage title=[[Subpage test/L1/L2/L3]]
6473 <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>
6479 Parents of subpages, one level up, not named
6481 subpage title=[[Subpage test/L1/L2/L3]]
6485 <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>
6492 Parents of subpages, two levels up
6495 subpage title=[[Subpage test/L1/L2/L3]]
6499 <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>
6504 Parents of subpages, two levels up, without trailing slash or name.
6506 subpage title=[[Subpage test/L1/L2/L3]]
6515 Parents of subpages, two levels up, with lots of extra trailing slashes.
6517 subpage title=[[Subpage test/L1/L2/L3]]
6521 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
6526 Definition list code coverage
6532 <dl><dt> title </dt><dd> def
6533 </dd><dt> title </dt><dd> def
6534 </dd><dt>title</dt><dd> def
6540 Don't fall for the self-closing div
6542 <div>hello world</div/>
6544 <div>hello world</div>
6553 <p>[[:Template:Msg]]
6562 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
6566 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
6568 Always escape literal '>' in output, not just after '<'
6572 <p>test ><>
6582 <p>This is a test template
6583 This is a test template
6595 Inclusion of !userCanEdit() content
6599 <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>
6605 Out-of-order TOC heading levels
6614 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6616 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
6618 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
6619 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
6622 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
6624 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
6625 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
6629 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
6630 <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>
6631 <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>
6632 <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>
6633 <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>
6634 <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>
6635 <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>
6641 ISBN with a dummy number
6651 ISBN with space-delimited number
6655 <p><a href="/wiki/Special:BookSources/9290170328" class="internal">ISBN 92 9017 032 8</a>
6661 ISBN with multiple spaces, no number
6680 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1234567890</a>
6681 </p><p>ISBN 12345678901
6687 ISBN with trailing year (bug 8110)
6689 ISBN 1-234-56789-0 - 2006
6691 ISBN 1 234 56789 0 - 2006
6693 <p><a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1-234-56789-0</a> - 2006
6694 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1 234 56789 0</a> - 2006
6702 {{anchorencode:foo bar©#%n}}
6704 <p>foo_bar.C2.A9.23.25n
6710 Bug 8293: Use of center tag ruins paragraph formatting
6732 ### Language variants related tests
6735 Self-link in language variants
6737 title=[[Dunav]] language=sr
6739 Both [[Dunav]] and [[Дунав]] are names for this river.
6741 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
6747 Link to pages in language variants
6751 Main Page can be written as [[Маин Паге]]
6753 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
6759 Multiple links to pages in language variants
6763 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
6765 <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>.
6771 Simple template in language variants
6777 <p>This is a test template
6783 Template with explicit namespace in language variants
6789 <p>This is a test template
6795 Basic test for template parameter in language variants
6799 {{парамтест|param=foo}}
6801 <p>This is a test template with parameter foo
6807 Simple category in language variants
6811 [[:Category:МедиаWики Усер'с Гуиде]]
6813 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6818 Stripping -{}- tags (language variants)
6822 Latin proverb: -{Ne nuntium necare}-
6824 <p>Latin proverb: Ne nuntium necare
6830 Prevent conversion with -{}- tags (language variants)
6832 language=sr variant=sr-ec
6834 Latinski: -{Ne nuntium necare}-
6836 <p>Латински: Ne nuntium necare
6842 Prevent conversion of text with -{}- tags (language variants)
6844 language=sr variant=sr-ec
6846 Latinski: -{Ne nuntium necare}-
6848 <p>Латински: Ne nuntium necare
6854 Prevent conversion of links with -{}- tags (language variants)
6856 language=sr variant=sr-ec
6860 <p><a href="/index.php?title=Main_Page&variant=sr-ec" title="Main Page">Main Page</a>
6866 -{}- tags within headlines (within html for parserConvert())
6868 language=sr variant=sr-ec
6872 <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>
6878 Explicit definition of language variant alternatives
6880 language=zh variant=zh-tw
6882 -{zh:China;zh-tw:Taiwan}-, not China
6884 <p>Taiwan, not China
6890 Adding explicit session-wise language variant mapping (A flag)
6892 language=zh variant=zh-tw
6894 -{A|zh:China;zh-tw:Taiwan}- is China
6902 Adding explicit conversion rule for title (T flag)
6904 language=zh variant=zh-tw
6906 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
6908 <p>Should be stripped!
6914 Raw output of variant escape tags (R flag)
6916 language=zh variant=zh-tw
6918 Raw: -{R|zh:China;zh-tw:Taiwan}-
6920 <p>Raw: zh:China;zh-tw:Taiwan
6926 Do not convert roman numbers to language variants
6928 language=sr variant=sr-ec
6932 <p>Фридрих IV је цар.
6943 Bug 529: Uncovered bullet
6954 Bug 529: Uncovered table already at line-start
6975 Bug 529: Uncovered bullet in parser function result
6977 * Foo {{lc:{{bullet}} }}
6986 Bug 5678: Double-parsed template argument
6988 {{lc:{{{1}}}|hello}}
6995 Bug 5678: Double-parsed template invocation
6997 {{lc:{{paramtest {{!}} param = hello }} }}
6999 <p>{{paramtest | param = hello }}
7004 Morwen/13: Unclosed link followed by heading
7011 <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>
7016 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
7023 <h1> <span class="mw-headline" id="heading">heading</span></h1>
7028 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
7035 <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>
7050 Paragraphs inside divs (no extra line breaks)
7062 Paragraphs inside divs (extra line break on open)
7077 Paragraphs inside divs (extra line break on close)
7092 Paragraphs inside divs (extra line break on open and close)
7108 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
7110 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
7114 <blockquote>Line one
7116 Line two</blockquote>
7118 <blockquote>Line one
7119 Line two</blockquote>
7124 Bug 6200: paragraphs inside blockquotes (extra line break on open)
7131 Line two</blockquote>
7136 Line two</blockquote>
7141 Bug 6200: paragraphs inside blockquotes (extra line break on close)
7145 <blockquote>Line one
7150 <blockquote>Line one
7158 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
7177 Paragraphs inside blockquotes/divs (no extra line breaks)
7179 <blockquote><div>Line one
7181 Line two</div></blockquote>
7183 <blockquote><div>Line one
7184 Line two</div></blockquote>
7189 Paragraphs inside blockquotes/divs (extra line break on open)
7194 Line two</div></blockquote>
7199 Line two</div></blockquote>
7204 Paragraphs inside blockquotes/divs (extra line break on close)
7206 <blockquote><div>Line one
7211 <blockquote><div>Line one
7219 Paragraphs inside blockquotes/divs (extra line break on open and close)
7236 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
7238 wgLinkHolderBatchSize=0
7244 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
7245 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
7246 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
7251 Free external link invading image caption
7253 [[Image:Foobar.jpg|thumb|http://x|hello]]
7255 <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/thumb/3/3a/Foobar.jpg/180px-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>
7260 Bug 15196: localised external link numbers
7264 [http://en.wikipedia.org/]
7266 <p><a href="http://en.wikipedia.org/" class="external autonumber" rel="nofollow">[۱]</a>
7271 Multibyte character in padleft
7273 {{padleft:-Hello|7|Æ}}
7280 Multibyte character in padright
7282 {{padright:Hello-|7|Æ}}
7295 <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>
7300 formatdate parser function
7302 {{#formatdate:2009-03-24}}
7304 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
7309 formatdate parser function, with default format
7311 {{#formatdate:2009-03-24|mdy}}
7313 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
7318 Linked date with autoformatting disabled
7320 wgUseDynamicDates=false
7324 <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>
7329 Spacing of numbers in formatted dates
7331 {{#formatdate:January 15}}
7333 <p><span class="mw-formatted-date" title="01-15">January 15</span>
7338 Spacing of numbers in formatted dates (linked)
7340 wgUseDynamicDates=true
7344 <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>
7349 Leading > blockquote syntax
7375 Edit comment with link
7379 I like the [[Main Page]] a lot
7381 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
7385 Edit comment with link and link text
7389 I like the [[Main Page|best pages]] a lot
7391 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
7395 Edit comment with link and link text with suffix
7399 I like the [[Main Page|best page]]s a lot
7401 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
7405 Edit comment with section link (non-local, eg in history list)
7407 comment title=[[Main Page]]
7409 /* External links */ removed bogus entries
7411 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
7415 Edit comment with section link (local, eg in diff view)
7417 comment local title=[[Main Page]]
7419 /* External links */ removed bogus entries
7421 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
7425 Edit comment with subpage link (bug 14080)
7429 title=[[Subpage test]]
7431 Poked at a [[/subpage]] here...
7433 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
7437 Edit comment with subpage link and link text (bug 14080)
7441 title=[[Subpage test]]
7443 Poked at a [[/subpage|neat little page]] here...
7445 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
7449 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
7452 title=[[Subpage test]]
7454 Poked at a [[/subpage]] here...
7456 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
7460 Edit comment with bare anchor link (local, as on diff)
7468 <a href="#section">#section</a>
7472 Edit comment with bare anchor link (non-local, as on history)
7479 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
7483 Edit comment with mismatched brackets (bug 15745)
7488 Some text, a [[broken link|bad and a [[good link|good]]
7490 Some text, a [[broken link|bad and a <a href="/index.php?title=Good_link&action=edit&redlink=1" class="new" title="Good link (page does not exist)">good</a>
7499 Try for 100% code coverage