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]]
1964 Magic Word: {{NAMESPACEE}}
1966 title=[[User:Ævar Arnfjörð Bjarmason]]
1976 Magic Word: {{NUMBEROFARTICLES}}
1978 {{NUMBEROFARTICLES}}
1985 Magic Word: {{NUMBEROFFILES}}
1994 Magic Word: {{PAGENAME}}
1996 title=[[User:Ævar Arnfjörð Bjarmason]]
2001 <p>Ævar Arnfjörð Bjarmason
2006 Magic Word: {{PAGENAMEE}}
2008 title=[[User:Ævar Arnfjörð Bjarmason]]
2012 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2017 Magic Word: {{REVISIONID}}
2026 Magic Word: {{SCRIPTPATH}}
2035 Magic Word: {{SERVER}}
2039 <p><a href="http://localhost" class="external free" rel="nofollow">http://localhost</a>
2044 Magic Word: {{SERVERNAME}}
2053 Magic Word: {{SITENAME}}
2062 Namespace 1 {{ns:1}}
2071 Namespace 1 {{ns:01}}
2080 Namespace 0 {{ns:0}} (bug 4783)
2088 Namespace 0 {{ns:00}} (bug 4783)
2096 Namespace -1 {{ns:-1}}
2105 Namespace User {{ns:User}}
2114 Namespace User talk {{ns:User_talk}}
2123 Namespace User talk {{ns:uSeR tAlK}}
2132 Namespace File {{ns:File}}
2141 Namespace File {{ns:Image}}
2150 Namespace (lang=de) Benutzer {{ns:User}}
2161 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2167 <p>Benutzer Diskussion
2176 Magic links: internal link to RFC (bug 479)
2180 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2185 Magic links: RFC (bug 479)
2189 <p><a href="http://tools.ietf.org/html/rfc822" class="external">RFC 822</a>
2194 Magic links: ISBN (bug 1937)
2198 <p><a href="/wiki/Special:BookSources/0306406152" class="internal">ISBN 0-306-40615-2</a>
2203 Magic links: PMID incorrectly converts space to underscore
2207 <p><a href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract" class="external">PMID 1234</a>
2216 Nonexistent template
2218 {{thistemplatedoesnotexist}}
2220 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2227 This is a test template
2235 <p>This is a test template
2240 Template with explicit namespace
2244 <p>This is a test template
2252 This is a test template with parameter {{{param}}}
2258 {{paramtest|param=foo}}
2260 <p>This is a test template with parameter foo
2265 Template:paramtestnum
2271 Template unnamed parameter
2273 {{paramtestnum|Main Page|the main page}}
2275 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2280 Template:templatesimple
2286 Template:templateredirect
2288 #redirect [[Template:templatesimple]]
2292 Template:templateasargtestnum
2298 Template:templateasargtest
2300 {{template{{{templ}}}}}
2304 Template:templateasargtest2
2310 Template with template name as unnamed argument
2312 {{templateasargtestnum|templatesimple}}
2319 Template with template name as argument
2321 {{templateasargtest|templ=simple}}
2328 Template with template name as argument (2)
2330 {{templateasargtest2|templ=templatesimple}}
2337 Template:templateasargtestdefault
2339 {{{{{templ|templatesimple}}}}}
2349 Template with default value
2351 {{templateasargtestdefault}}
2358 Template with default value (value set)
2360 {{templateasargtestdefault|templ=templa}}
2369 {{templateredirect}}
2376 Template with argument in separate line
2378 {{ templateasargtest |
2386 Template with complex template as argument
2389 param ={{ templateasargtest |
2392 <p>This is a test template with parameter (test)
2397 Template with thumb image (with link in description)
2400 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2402 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>
2407 Template:complextemplate
2409 {{{1}}} {{paramtest|
2410 param ={{{param}}}}}
2414 Template with complex arguments
2417 param ={{ templateasargtest |
2418 templ = simple }}|[[Template:complextemplate|link]]}}
2420 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2425 BUG 553: link with two variables in a piped link
2428 |[[{{{1}}}|{{{2}}}]]
2433 <td>[[{{{1}}}|{{{2}}}]]
2439 Magic variable as template parameter
2441 {{paramtest|param={{SITENAME}}}}
2443 <p>This is a test template with parameter MediaWiki
2450 [[{{{param}}}|link]]
2454 Template parameter as link source
2456 {{linktest|param=Main Page}}
2458 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2466 including another template, {{paramtest|param={{{arg}}}}}
2470 Template passing argument to another template
2472 {{paramtest2|arg='hmm'}}
2474 <p>including another template, This is a test template with parameter 'hmm'
2485 Template as link source
2489 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2507 Template infinite loop
2511 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
2516 Template from main namespace
2535 BUG 529: Template with table, not included at beginning of line
2552 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2570 BUG 41: Template parameters shown as broken links
2582 ''None'' of '''this''' should be
2584 but rather passed unmodified
2588 # hmm, fix this or just deprecate msgnw and document its behavior?
2594 {{msgnw:MSGNW test}}
2596 <p>''None'' of '''this''' should be
2598 but rather passed unmodified
2606 {{int:youhavenewmessages|lots of money|not!}}
2608 <p>You have lots of money (not!).
2615 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2619 <includeonly> and <noinclude> being included
2630 <onlyinclude>Foo</onlyinclude>bar
2634 <onlyinclude> being included
2646 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2650 <onlyinclude> and <includeonly> being included
2659 <includeonly> and <noinclude> on a page
2661 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2668 <onlyinclude> on a page
2670 <onlyinclude>Foo</onlyinclude>bar
2677 Template:Includeonly section
2680 ==Includeonly section==
2686 Bug 6563: Edit link generation for section shown by <includeonly>
2688 {{includeonly section}}
2690 <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>
2691 <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>
2695 # Uses same input as the contents of [[Template:Includeonly section]]
2697 Bug 6563: Section extraction for section shown by <includeonly>
2702 ==Includeonly section==
2710 Bug 6563: Edit link generation for section suppressed by <includeonly>
2713 ==Includeonly section==
2717 <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>
2722 Bug 6563: Section extraction for section suppressed by <includeonly>
2727 ==Includeonly section==
2735 ### Pre-save transform tests
2738 pre-save transform: subst:
2744 This is a test template
2748 pre-save transform: normal template
2758 pre-save transform: nonexistent template
2762 {{thistemplatedoesnotexist}}
2764 {{thistemplatedoesnotexist}}
2769 pre-save transform: subst magic variables
2778 # This is bug 89, which I fixed. -- wtm
2780 pre-save transform: subst: templates with parameters
2784 {{subst:paramtest|param="something else"}}
2786 This is a test template with parameter "something else"
2792 <nowiki>'''not wiki'''</nowiki>
2796 pre-save transform: nowiki in subst (bug 1188)
2800 {{subst:nowikitest}}
2802 <nowiki>'''not wiki'''</nowiki>
2807 Template:commenttest
2809 This template has <!-- a comment --> in it.
2813 pre-save transform: comment in subst (bug 1936)
2817 {{subst:commenttest}}
2819 This template has <!-- a comment --> in it.
2823 pre-save transform: unclosed tag
2827 <nowiki>'''not wiki'''
2829 <nowiki>'''not wiki'''
2833 pre-save transform: mixed tag case
2837 <NOwiki>'''not wiki'''</noWIKI>
2839 <NOwiki>'''not wiki'''</noWIKI>
2843 pre-save transform: unclosed comment in <nowiki>
2847 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2849 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2855 <span onmouseover="alert('crap')">Oh no</span>
2859 (confirming safety of fix for subst bug 1936)
2861 {{Template:dangerous}}
2863 <p><span>Oh no</span>
2868 pre-save transform: comment containing gallery (bug 5024)
2872 <!-- <gallery>data</gallery> -->
2874 <!-- <gallery>data</gallery> -->
2878 pre-save transform: comment containing extension
2882 <!-- <tag>data</tag> -->
2884 <!-- <tag>data</tag> -->
2888 pre-save transform: comment containing nowiki
2892 <!-- <nowiki>data</nowiki> -->
2894 <!-- <nowiki>data</nowiki> -->
2898 pre-save transform: comment containing math
2902 <!-- <math>data</math> -->
2904 <!-- <math>data</math> -->
2908 pre-save transform: <noinclude> in subst (bug 3298)
2918 pre-save transform: <onlyinclude> in subst (bug 3298)
2928 pre-save transform: context links ("pipe trick")
2932 [[Article (context)|]]
2935 [[Bar:Article (context)|]]
2936 [[:Bar:Article (context)|]]
2938 [[|Article (context)]]
2942 [[Article (context)|Article]]
2943 [[Bar:Article|Article]]
2944 [[:Bar:Article|Article]]
2945 [[Bar:Article (context)|Article]]
2946 [[:Bar:Article (context)|Article]]
2948 [[Article (context)]]
2949 [[Bar:X (Y) Z|X (Y) Z]]
2950 [[:Bar:X (Y) Z|X (Y) Z]]
2954 pre-save transform: context links ("pipe trick") with interwiki prefix
2958 [[interwiki:Article|]]
2959 [[:interwiki:Article|]]
2960 [[interwiki:Bar:Article|]]
2961 [[:interwiki:Bar:Article|]]
2963 [[interwiki:Article|Article]]
2964 [[:interwiki:Article|Article]]
2965 [[interwiki:Bar:Article|Bar:Article]]
2966 [[:interwiki:Bar:Article|Bar:Article]]
2970 pre-save transform: context links ("pipe trick") with parens in title
2972 pst title=[[Somearticle (context)]]
2976 [[Article (context)|Article]]
2980 pre-save transform: context links ("pipe trick") with comma in title
2982 pst title=[[Someplace, Somewhere]]
2985 [[Otherplace, Elsewhere|]]
2986 [[Otherplace, Elsewhere, Anywhere|]]
2988 [[Otherplace, Somewhere|Otherplace]]
2989 [[Otherplace, Elsewhere|Otherplace]]
2990 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
2994 pre-save transform: context links ("pipe trick") with parens and comma
2996 pst title=[[Someplace (IGNORED), Somewhere]]
2999 [[Otherplace (place), Elsewhere|]]
3001 [[Otherplace, Somewhere|Otherplace]]
3002 [[Otherplace (place), Elsewhere|Otherplace]]
3006 pre-save transform: context links ("pipe trick") with comma and parens
3008 pst title=[[Who, me? (context)]]
3011 [[Me, Myself, and I (1937 song)|]]
3013 [[Yes, you. (context)|Yes, you.]]
3014 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3018 pre-save transform: context links ("pipe trick") with namespace
3020 pst title=[[Ns:Somearticle]]
3024 [[Ns:Article|Article]]
3028 pre-save transform: context links ("pipe trick") with namespace and parens
3030 pst title=[[Ns:Somearticle (context)]]
3034 [[Ns:Article (context)|Article]]
3038 pre-save transform: context links ("pipe trick") with namespace and comma
3040 pst title=[[Ns:Somearticle, Context, Whatever]]
3044 [[Ns:Article, Context, Whatever|Article]]
3048 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3050 pst title=[[Ns:Somearticle, Context (context)]]
3054 [[Ns:Article (context)|Article]]
3058 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3060 pst title=[[Ns:Somearticle (IGNORED), Context]]
3064 [[Ns:Article, Context|Article]]
3069 ### Message transform tests
3072 message transform: magic variables
3082 message transform: should not transform wiki markup
3092 message transform: <noinclude> in transcluded template (bug 4926)
3102 message transform: <onlyinclude> in transcluded template (bug 4926)
3112 {{#special:}} page name, known
3116 {{#special:Recentchanges}}
3118 Special:RecentChanges
3122 {{#special:}} page name, unknown
3126 {{#special:foobarnonexistent}}
3128 No such special page
3137 [[Image:foobar.jpg]]
3139 <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>
3146 [[Image:foobar.jpg|right]]
3148 <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>
3153 Simple image (using File: namespace, now canonical)
3157 <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>
3164 [[Image:foobar.jpg|right|Caption text]]
3166 <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>
3171 Image with link parameter, wiki target
3173 [[Image:foobar.jpg|link=Target page]]
3175 <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>
3180 Image with link parameter, URL target
3182 [[Image:foobar.jpg|link=http://example.com/]]
3184 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3189 Image with empty link parameter
3191 [[Image:foobar.jpg|link=]]
3193 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3198 Image with link parameter (wiki target) and unnamed parameter
3200 [[Image:foobar.jpg|link=Target page|Title]]
3202 <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>
3207 Image with link parameter (URL target) and unnamed parameter
3209 [[Image:foobar.jpg|link=http://example.com/|Title]]
3211 <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>
3218 Image with frame and link
3220 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3222 <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>
3227 Image with frame and link and explicit alt
3229 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3231 <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>
3236 Image with wiki markup in implicit alt
3238 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3240 <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>
3245 Image with wiki markup in explicit alt
3247 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3249 <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>
3254 Link to image page- image page normally doesn't exists, hence edit link
3255 Add test with existing image page
3256 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3260 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3265 Frameless image caption with a free URL
3267 [[Image:foobar.jpg|http://example.com]]
3269 <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>
3274 Thumbnail image caption with a free URL
3276 [[Image:foobar.jpg|thumb|http://example.com]]
3278 <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>
3283 Thumbnail image caption with a free URL and explicit alt
3285 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3287 <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>
3292 BUG 1887: A ISBN with a thumbnail
3294 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3296 <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>
3301 BUG 1887: A RFC with a thumbnail
3303 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3305 <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>
3310 BUG 1887: A mailto link with a thumbnail
3312 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3314 <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>
3319 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
3320 so math is not stripped and turns up as escaped <math> tags.
3322 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3324 <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>
3329 BUG 1887, part 2: A <math> with a thumbnail- math enabled
3333 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3335 <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>
3339 # Pending resolution to bug 368
3341 BUG 648: Frameless image caption with a link
3343 [[Image:foobar.jpg|text with a [[link]] in it]]
3345 <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>
3350 BUG 648: Frameless image caption with a link (suffix)
3352 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3354 <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>
3359 BUG 648: Frameless image caption with an interwiki link
3361 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3363 <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>
3368 BUG 648: Frameless image caption with a piped interwiki link
3370 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3372 <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>
3377 Escape HTML special chars in image alt text
3379 [[Image:foobar.jpg|& < > "]]
3381 <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>
3386 BUG 499: Alt text should have Ӓ, not &1234;
3388 [[Image:foobar.jpg|♀]]
3390 <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>
3395 Broken image caption with link
3397 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3399 <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.
3404 Image caption containing another image
3406 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3408 <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>
3413 Image caption containing a newline
3415 [[Image:Foobar.jpg|This
3418 <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>
3424 Bug 3090: External links other than http: in image captions
3426 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3428 <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>
3437 Subpage test/subpage
3445 subpage title=[[Subpage test]]
3449 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3454 Subpage noslash link
3456 subpage title=[[Subpage test]]
3460 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3469 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
3474 BUG 561: {{/Subpage}}
3476 subpage title=[[Page]]
3480 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
3488 Category:MediaWiki User's Guide
3496 [[:Category:MediaWiki User's Guide]]
3498 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
3507 [[Category:MediaWiki User's Guide]]
3509 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3513 PAGESINCATEGORY invalid title fatal (r33546 fix)
3515 {{PAGESINCATEGORY:<bogus>}}
3522 ### Inter-language links
3525 Inter-language links
3531 [[zh:食品]]
3533 es:Alimento fr:Nourriture zh:食品
3540 Basic section headings
3547 ===Smaller headline===
3550 <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>
3553 <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>
3556 <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>
3562 Section headings with TOC
3565 === Subheadline 1 ===
3566 ===== Skipping a level =====
3567 ====== Skipping a level ======
3571 ===Another headline===
3573 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3575 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3577 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3579 <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>
3581 <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>
3588 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
3590 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
3594 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3595 <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>
3596 <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>
3597 <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>
3598 <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>
3599 <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>
3602 <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>
3606 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
3608 Handling of sections up to level 6 and beyond
3611 == Level 2 Heading==
3612 === Level 3 Heading===
3613 ==== Level 4 Heading====
3614 ===== Level 5 Heading=====
3615 ====== Level 6 Heading======
3616 ======= Level 7 Heading=======
3617 ======== Level 8 Heading========
3618 ========= Level 9 Heading=========
3619 ========== Level 10 Heading==========
3621 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3623 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
3625 <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>
3627 <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>
3629 <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>
3631 <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>
3633 <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>
3634 <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>
3635 <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>
3636 <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>
3637 <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>
3649 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3650 <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>
3651 <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>
3652 <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>
3653 <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>
3654 <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>
3655 <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>
3656 <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>
3657 <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>
3658 <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>
3659 <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>
3664 TOC regression (bug 9764)
3668 ==== title 1.1.1 ====
3673 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3675 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3677 <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>
3679 <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>
3682 <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>
3685 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3687 <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>
3691 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3692 <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>
3693 <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>
3694 <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>
3695 <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>
3696 <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>
3697 <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>
3702 TOC with wgMaxTocLevel=3 (bug 6204)
3708 ==== title 1.1.1 ====
3713 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3715 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3717 <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>
3718 <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>
3721 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3723 <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>
3727 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3728 <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>
3729 <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>
3730 <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>
3731 <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>
3732 <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>
3733 <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>
3738 Resolving duplicate section names
3743 <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>
3744 <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>
3749 Resolving duplicate section names with differing case (bug 10721)
3754 <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>
3755 <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>
3767 Template with sections, __NOTOC__
3774 <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>
3775 <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>
3776 <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>
3777 <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>
3782 __NOEDITSECTION__ keyword
3788 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
3789 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
3794 Link inside a section heading
3796 ==Section with a [[Main Page|link]] in it==
3798 <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>
3803 TOC regression (bug 12077)
3810 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3812 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3814 <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>
3817 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
3819 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3820 <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>
3821 <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>
3822 <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>
3827 BUG 1219 URL next to image (good)
3829 http://example.com [[Image:foobar.jpg]]
3831 <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>
3836 BUG 1219 URL next to image (broken)
3838 http://example.com[[Image:foobar.jpg]]
3840 <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>
3845 Bug 1186 news: in the middle of text
3847 http://en.wikinews.org/wiki/Wikinews:Workplace
3849 <p><a href="http://en.wikinews.org/wiki/Wikinews:Workplace" class="external free" rel="nofollow">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
3855 Namespaced link must have a title
3864 Namespaced link must have a title (bad fragment version)
3866 [[Project:#fragment]]
3868 <p>[[Project:#fragment]]
3874 div with no attributes
3876 <div>HTML rocks</div>
3878 <div>HTML rocks</div>
3883 div with double-quoted attribute
3885 <div id="rock">HTML rocks</div>
3887 <div id="rock">HTML rocks</div>
3892 div with single-quoted attribute
3894 <div id='rock'>HTML rocks</div>
3896 <div id="rock">HTML rocks</div>
3901 div with unquoted attribute
3903 <div id=rock>HTML rocks</div>
3905 <div id="rock">HTML rocks</div>
3910 div with illegal double attributes
3912 <div align="center" align="right">HTML rocks</div>
3914 <div align="right">HTML rocks</div>
3919 HTML multiple attributes correction
3921 <p class="error" class="awesome">Awesome!</p>
3923 <p class="awesome">Awesome!</p>
3928 Table multiple attributes correction
3931 !+ class="error" class="awesome"| status
3936 <th class="awesome"> status
3944 <DIV ALIGN="center">HTML ROCKS</DIV>
3946 <div align="center">HTML ROCKS</div>
3952 text with amp in the middle of nowhere
3956 <p>Remember AT&T?
3961 text with character entity: eacute
3963 I always thought é was a cute letter.
3965 <p>I always thought é was a cute letter.
3970 text with undefined character entity: xacute
3972 I always thought &xacute; was a cute letter.
3974 <p>I always thought &xacute; was a cute letter.
3986 [[Media:Foobar.jpg]]
3988 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
3993 Media link with text
3995 [[Media:Foobar.jpg|A neat file to look at]]
3997 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4001 # FIXME: this is still bad HTML tag nesting
4003 Media link with nasty text
4004 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4006 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4008 <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>
4013 Media link to nonexistent file (bug 1702)
4015 [[Media:No such.jpg]]
4017 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4022 Image link to nonexistent file (bug 1850 - good)
4024 [[Image:No such.jpg]]
4026 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4031 :Image link to nonexistent file (bug 1850 - bad)
4033 [[:Image:No such.jpg]]
4035 <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>
4042 Character reference normalization in link text (bug 1938)
4044 [[Main Page|this&that]]
4046 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4051 Empty attribute crash test (bug 2067)
4053 <font color="">foo</font>
4055 <p><font color="">foo</font>
4060 Empty attribute crash test single-quotes (bug 2067)
4062 <font color=''>foo</font>
4064 <p><font color="">foo</font>
4069 Attribute test: equals, then nothing
4071 <font color=>foo</font>
4078 Attribute test: unquoted value
4080 <font color=x>foo</font>
4082 <p><font color="x">foo</font>
4087 Attribute test: unquoted but illegal value (hash)
4089 <font color=#x>foo</font>
4091 <p><font color="#x">foo</font>
4096 Attribute test: no value
4098 <font color>foo</font>
4100 <p><font color="color">foo</font>
4105 Bug 2095: link with three closing brackets
4109 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
4114 Bug 2095: link with pipe and three closing brackets
4118 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4123 Bug 2095: link with pipe and three closing brackets, version 2
4125 [[Main Page|[http://example.com/]]]
4127 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4137 Template:Dangerous attribute
4139 " onmouseover="alert(document.cookie)
4143 Template:Dangerous style attribute
4145 border-size: expression(alert(document.cookie))
4151 <div style="float: right; {{{1}}}">Magic div</div>
4155 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4157 <div title="{{test}}"></div>
4159 <div title="This is a test template"></div>
4164 Bug 2304: HTML attribute safety (dangerous template; 2309)
4166 <div title="{{dangerous attribute}}"></div>
4168 <div title=""></div>
4173 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4175 <div style="{{dangerous style attribute}}"></div>
4182 Bug 2304: HTML attribute safety (safe parameter; 2309)
4184 {{div style|width: 200px}}
4186 <div style="float: right; width: 200px">Magic div</div>
4191 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4193 {{div style|width: expression(alert(document.cookie))}}
4195 <div>Magic div</div>
4200 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4202 {{div style|"><script>alert(document.cookie)</script>}}
4204 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4209 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4211 {{div style|" ><script>alert(document.cookie)</script>}}
4213 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4218 Bug 2304: HTML attribute safety (link)
4220 <div title="[[Main Page]]"></div>
4222 <div title="[[Main Page]]"></div>
4227 Bug 2304: HTML attribute safety (italics)
4229 <div title="''foobar''"></div>
4231 <div title="''foobar''"></div>
4236 Bug 2304: HTML attribute safety (bold)
4238 <div title="'''foobar'''"></div>
4240 <div title="'''foobar'''"></div>
4246 Bug 2304: HTML attribute safety (ISBN)
4248 <div title="ISBN 1234567890"></div>
4250 <div title="ISBN 1234567890"></div>
4255 Bug 2304: HTML attribute safety (RFC)
4257 <div title="RFC 1234"></div>
4259 <div title="RFC 1234"></div>
4264 Bug 2304: HTML attribute safety (PMID)
4266 <div title="PMID 1234567890"></div>
4268 <div title="PMID 1234567890"></div>
4273 Bug 2304: HTML attribute safety (web link)
4275 <div title="http://example.com/"></div>
4277 <div title="http://example.com/"></div>
4282 Bug 2304: HTML attribute safety (named web link)
4284 <div title="[http://example.com/ link]"></div>
4286 <div title="[http://example.com/ link]"></div>
4291 Bug 3244: HTML attribute safety (extension; safe)
4293 <div style="<nowiki>background:blue</nowiki>"></div>
4295 <div style="background:blue"></div>
4300 Bug 3244: HTML attribute safety (extension; unsafe)
4302 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4309 Math section safety when disabled
4311 <math><script>alert(document.cookies);</script></math>
4313 <p><math><script>alert(document.cookies);</script></math>
4317 # More MSIE fun discovered by Tom Gilder
4320 MSIE CSS safety test: spurious slash
4322 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4329 MSIE CSS safety test: hex code
4331 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4338 MSIE CSS safety test: comment in url
4340 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4342 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4347 MSIE CSS safety test: comment in expression
4349 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4351 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4357 Table attribute legitimate extension
4360 !+ style="<nowiki>color:blue</nowiki>"| status
4365 <th style="color:blue"> status
4371 Table attribute safety
4374 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4392 Expansion of multi-line templates in attribute values (bug 6255)
4394 <div style="background: {{identity|#00FF00}}">-</div>
4396 <div style="background: #00FF00">-</div>
4402 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
4404 <div style="background:
4407 <div style="background: #00FF00">-</div>
4412 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
4414 <div style="background: #00FF00">-</div>
4416 <div style="background: #00FF00">-</div>
4421 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
4424 Parser hook: empty input
4437 Parser hook: empty input using terminated empty elements
4450 Parser hook: empty input using terminated empty elements (space before)
4463 Parser hook: basic input
4477 Parser hook: case insensitive
4491 Parser hook: case insensitive, redux
4504 Parser hook: nested tags
4508 <tag><tag></tag></tag>
4519 Parser hook: basic arguments
4521 <tag width=200 height = "100" depth = '50' square></tag>
4540 Parser hook: argument containing a forward slash (bug 5344)
4542 <tag filename='/tmp/bla'></tag>
4548 string(8) "/tmp/bla"
4555 Parser hook: empty input using terminated empty elements (bug 2374)
4569 # </tag> should be output literally since there is no matching tag that begins it
4571 Parser hook: basic arguments using terminated empty elements (bug 2374)
4573 <tag width=200 height = "100" depth = '50' square/>
4596 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
4600 Parser hook: static parser hook not inside a comment
4602 <statictag>hello, world</statictag>
4603 <statictag action=flush/>
4611 Parser hook: static parser hook inside a comment
4613 <!-- <statictag>hello, world</statictag> -->
4614 <statictag action=flush/>
4620 # Nested template calls; this case was broken by Parser.php rev 1.506,
4624 Template:One-parameter
4626 (My parameter is: {{{1}}})
4630 Template:Map-one-parameter
4636 Nested template calls
4638 {{Map-one-parameter|One-parameter|param}}
4640 <p>(My parameter is: param)
4649 Sanitizer: Closing of open tags
4651 <s></s><table></table>
4653 <s></s><table></table>
4658 Sanitizer: Closing of open but not closed tags
4667 Sanitizer: Closing of closed but not open tags
4676 Sanitizer: Closing of closed but not open table tags
4678 Table not started</td></tr></table>
4680 <p>Table not started</td></tr></table>
4685 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
4687 <span id="æ: v">byte</span>[[#æ: v|backlink]]
4689 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
4694 Sanitizer: Validating the contents of the id attribute (bug 4515)
4700 Something, but defenetly not <br id="9" />...
4704 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
4708 <br id="foo" /><br id="foo" />
4710 Something need to be done. foo-2 ?
4714 Language converter: output gets cut off unexpectedly (bug 5757)
4718 this bit is safe: }-
4720 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
4722 then we get cut off here: }-
4724 all additional text is vanished
4726 <p>this bit is safe: }-
4727 </p><p>but if we add a conversion instance: xxx
4728 </p><p>then we get cut off here: }-
4729 </p><p>all additional text is vanished
4734 Self closed html pairs (bug 5487)
4737 <center><font id="bug" />Centered text</center>
4738 <div><font id="bug2" />In div text</div>
4740 <center><font id="bug" />Centered text</center>
4741 <div><font id="bug2" />In div text</div>
4750 Punctuation: nbsp before exclamation
4754 <p>C'est grave !
4759 Punctuation: CSS !important (bug 11874)
4761 <div style="width:50% !important">important</div>
4763 <div style="width:50% !important">important</div>
4768 Punctuation: CSS ! important (bug 11874; with space after)
4770 <div style="width:50% ! important">important</div>
4772 <div style="width:50% ! important">important</div>
4778 HTML bullet list, closed tags (bug 5497)
4793 HTML bullet list, unclosed tags (bug 5497)
4810 HTML ordered list, closed tags (bug 5497)
4825 HTML ordered list, unclosed tags (bug 5497)
4842 HTML nested bullet list, closed tags (bug 5497)
4867 HTML nested bullet list, open tags (bug 5497)
4892 HTML nested ordered list, closed tags (bug 5497)
4917 HTML nested ordered list, open tags (bug 5497)
4942 HTML ordered list item with parameters oddity
4944 <ol><li id="fragment">One</li></ol>
4946 <ol><li id="fragment">One</li></ol>
4951 bug 5918: autonumbering
4953 [http://first/] [http://second] [ftp://ftp]
4957 [mailto:enclosed@mail.tld With target]
4959 [mailto:enclosed@mail.tld]
4961 mailto:inline@mail.tld
4963 <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>
4964 </p><p><a href="ftp://inlineftp" class="external free" rel="nofollow">ftp://inlineftp</a>
4965 </p><p><a href="mailto:enclosed@mail.tld" class="external text" rel="nofollow">With target</a>
4966 </p><p><a href="mailto:enclosed@mail.tld" class="external autonumber" rel="nofollow">[4]</a>
4967 </p><p><a href="mailto:inline@mail.tld" class="external free" rel="nofollow">mailto:inline@mail.tld</a>
4973 # Security and HTML correctness
4974 # From Nick Jenkins' fuzz testing
4978 Fuzz testing: Parser13
4993 Fuzz testing: Parser14
4998 <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>
4999 http://<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5001 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5003 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
5008 Fuzz testing: Parser14-table
5013 <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>
5014 <table style="__TOC__">
5020 # Known to produce bogus xml (extra </td>)
5022 Fuzz testing: Parser16
5031 <th>https://</th><th></th><th></th><th>
5039 Fuzz testing: Parser21
5042 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5047 <th> <a href="irc://{{ftp://a" class="external free" rel="nofollow">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5056 Fuzz testing: Parser22
5058 http://===r:::https://b
5062 <p><a href="http://===r:::https://b" class="external free" rel="nofollow">http://===r:::https://b</a>
5070 # Known to produce bad XML for now
5072 Fuzz testing: Parser24
5079 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5080 <br style="onmouseover='alert(document.cookie);' " />
5082 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5087 <u class="|">}}}} >
5088 <br style="onmouseover='alert(document.cookie);'" />
5090 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5099 # Note: the current result listed for this is not what the original one was,
5100 # but the original bug was JavaScript injection, which is fixed in any case.
5101 # It's not clear that the original result listed was any more correct than the
5102 # current one. Original result:
5105 # <li class="||">
5106 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5108 Fuzz testing: Parser25 (bug 6055)
5114 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5116 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5121 Fuzz testing: URL adjacent extension (with space, clean)
5124 http://example.com <nowiki>junk</nowiki>
5126 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a> junk
5131 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5134 http://example.com<nowiki>junk</nowiki>
5136 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>junk
5141 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5144 http://example.com<pre>junk</pre>
5146 <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a><pre>junk</pre>
5151 Fuzz testing: image with bogus manual thumbnail
5153 [[Image:foobar.jpg|thumbnail= ]]
5155 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5160 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5162 <pre dir=" "></pre>
5164 <pre dir=" "></pre>
5169 Parsing optional HTML elements (Bug 6171)
5174 <td> Some tabular data</td>
5175 <td> More tabular data ...
5176 <td> And yet som tabular data</td>
5182 <td> Some tabular data</td>
5183 <td> More tabular data ...
5184 </td><td> And yet som tabular data</td>
5191 Correct handling of <td>, <tr> (Bug 6171)
5196 <td> Some tabular data</td>
5197 <td> More tabular data ...</td>
5198 <td> And yet som tabular data</td>
5204 <td> Some tabular data</td>
5205 <td> More tabular data ...</td>
5206 <td> And yet som tabular data</td>
5214 Parsing crashing regression (fr:JavaScript)
5218 <p></body></x>
5223 Inline wiki vs wiki block nesting
5229 <p><b>Bold paragraph</b>
5230 </p><p>New wiki paragraph
5235 Inline HTML vs wiki block nesting
5243 <p><b>Bold paragraph</b>
5244 </p><p>New wiki paragraph
5248 # Original result was this:
5249 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5251 # While that might be marginally more intuitive, maybe, the six-apostrophe
5252 # construct is clearly pathological and the result stated here (which is what
5253 # the parser actually does) is about as reasonable as anything.
5255 Mixing markup for italics and bold
5258 '''bold''''''bold''bolditalics'''''
5260 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5268 Article for special page transclusion test
5272 Special page transclusion
5275 {{Special:Prefixindex/Xyzzyx}}
5279 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5284 Special page transclusion twice (bug 5021)
5287 {{Special:Prefixindex/Xyzzyx}}
5288 {{Special:Prefixindex/Xyzzyx}}
5292 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5295 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5300 Transclusion of default MediaWiki message
5302 {{MediaWiki:Mainpage}}
5309 Transclusion of nonexistent MediaWiki message
5311 {{MediaWiki:Mainpagexxx}}
5313 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
5318 Transclusion of MediaWiki message with underscore
5320 {{MediaWiki:history_short}}
5327 Transclusion of MediaWiki message with space
5329 {{MediaWiki:history short}}
5336 Invalid header with following text
5346 Section extraction test (section 0)
5366 Section extraction test (section 1)
5388 Section extraction test (section 2)
5409 Section extraction test (section 3)
5429 Section extraction test (section 4)
5453 Section extraction test (section 5)
5473 Section extraction test (section 6)
5494 Section extraction test (section 7)
5514 Section extraction test (section 8)
5534 Section extraction test (section 9)
5555 Section extraction test (section 10)
5575 Section extraction test (nonexistent section 11)
5594 Section extraction test with bogus heading (section 1)
5599 ==bogus== not a legal section
5603 ==bogus== not a legal section
5607 Section extraction test with bogus heading (section 2)
5612 ==bogus== not a legal section
5619 Section extraction test with comment after heading (section 1)
5631 Section extraction test with comment after heading (section 2)
5643 Section extraction test with bogus <nowiki> heading (section 1)
5648 ==bogus== <nowiki>not a legal section</nowiki>
5652 ==bogus== <nowiki>not a legal section</nowiki>
5656 Section extraction test with bogus <nowiki> heading (section 2)
5661 ==bogus== <nowiki>not a legal section</nowiki>
5668 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
5669 # instead of respecting commented sections
5671 Section extraction prefixed by comment (section 1)
5682 Section extraction prefixed by comment (section 2)
5693 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
5694 # instead of respecting HTML-style headings
5696 Section extraction, mixed wiki and html (section 1)
5712 Section extraction, mixed wiki and html (section 2)
5728 # Formerly testing for bug 3342
5730 Section extraction, heading surrounded by <noinclude>
5734 <noinclude>==unmarked==</noinclude>
5742 Section replacement test (section 0)
5773 Section replacement test (section 1)
5802 Section replacement test (section 2)
5832 Section replacement test (section 3)
5863 Section replacement test (section 4)
5890 Section replacement test (section 5)
5921 Section replacement test (section 6)
5951 Section replacement test (section 7)
5982 Section replacement test (section 8)
6013 Section replacement test (section 9)
6042 Section replacement test (section 10)
6072 Section replacement test with initial whitespace (bug 13728)
6076 Preformatted initial line
6080 Preformatted initial line
6087 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6099 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6112 Section extraction, <pre> around bogus header (bug 10309)
6129 Section replacement, <pre> around bogus header (bug 10309)
6131 noxml replace=2,"xxx"
6152 Handling of 
 in URLs
6156 <ul><li><ul><li><a href="irc://%0Aa" class="external free" rel="nofollow">irc://%0Aa</a>
6163 5 quotes, code coverage +1 line
6170 Special:Search page linking.
6174 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
6189 * {{SUBJECTPAGENAME}}
6190 * {{SUBJECTPAGENAMEE}}
6197 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6199 <ul><li> Parser test
6200 </li><li> Parser test
6201 </li><li> Parser test
6202 </li><li> Parser_test
6203 </li><li> Parser test
6204 </li><li> Parser_test
6205 </li><li> Talk:Parser test
6206 </li><li> Talk:Parser_test
6207 </li><li> Parser test
6208 </li><li> Parser_test
6215 </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>
6219 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6229 image4 |300px| centre
6230 image5.svg| http://///////
6235 <table class="gallery" cellspacing="0" cellpadding="0">
6237 <td><div class="gallerybox" style="width: 155px;">
6238 <div style="height: 152px;">Image1.png</div>
6239 <div class="gallerytext">
6242 <td><div class="gallerybox" style="width: 155px;">
6243 <div style="height: 152px;">Image2.gif</div>
6244 <div class="gallerytext">
6249 <td><div class="gallerybox" style="width: 155px;">
6250 <div style="height: 152px;">Image3</div>
6251 <div class="gallerytext">
6254 <td><div class="gallerybox" style="width: 155px;">
6255 <div style="height: 152px;">Image4</div>
6256 <div class="gallerytext">
6263 <td><div class="gallerybox" style="width: 155px;">
6264 <div style="height: 152px;">Image5.svg</div>
6265 <div class="gallerytext">
6266 <p><a href="http://///////" class="external free" rel="nofollow">http://///////</a>
6270 <td><div class="gallerybox" style="width: 155px;">
6271 <div style="height: 152px;">* image6</div>
6272 <div class="gallerytext">
6281 HTML Hex character encoding (spells the word "JavaScript")
6283 JavaScript
6285 <p>JavaScript
6290 __FORCETOC__ override
6302 ISBN 978-0-1234-56 789
6304 <p><a href="/wiki/Special:BookSources/9780123456" class="internal">ISBN 978-0-1234-56</a> 789
6309 ISBN followed by 5 spaces
6320 ISBN ISBN 1234567890
6322 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1234567890</a>
6331 <p>RFC <a href="http://tools.ietf.org/html/rfc1234" class="external">RFC 1234</a>
6336 Double RFC with a wiki link
6340 <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>
6349 <p><a href="http://tools.ietf.org/html/rfc983" class="external">RFC 983</a> 987
6354 Centre-aligned image
6356 [[Image:foobar.jpg|centre]]
6358 <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>
6365 [[Image:foobar.jpg|none]]
6367 <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>
6372 Width + Height sized image (using px) (height is ignored)
6374 [[Image:foobar.jpg|640x480px]]
6376 <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>
6381 Width-sized image (using px, no following whitespace)
6383 [[Image:foobar.jpg|640px]]
6385 <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>
6390 Width-sized image (using px, with following whitespace - test regression from r39467)
6392 [[Image:foobar.jpg|640px ]]
6394 <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>
6399 Width-sized image (using px, with preceding whitespace - test regression from r39467)
6401 [[Image:foobar.jpg| 640px]]
6403 <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>
6408 Another italics / bold test
6416 # Note the results may be incorrect, as parserTest output included this:
6417 # XML error: Mismatched tag at byte 6120:
6418 # ...<dd> </dt></dl> </dd...
6426 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
6437 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
6439 Images with the "|" character in the comment
6443 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
6445 <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>
6450 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
6452 <html><script>alert(1);</script></html>
6454 <p><html><script>alert(1);</script></html>
6459 HTML with raw HTML ($wgRawHtml==true)
6463 <html><script>alert(1);</script></html>
6465 <p><script>alert(1);</script>
6470 Parents of subpages, one level up
6472 subpage title=[[Subpage test/L1/L2/L3]]
6476 <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>
6482 Parents of subpages, one level up, not named
6484 subpage title=[[Subpage test/L1/L2/L3]]
6488 <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>
6495 Parents of subpages, two levels up
6498 subpage title=[[Subpage test/L1/L2/L3]]
6502 <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>
6507 Parents of subpages, two levels up, without trailing slash or name.
6509 subpage title=[[Subpage test/L1/L2/L3]]
6518 Parents of subpages, two levels up, with lots of extra trailing slashes.
6520 subpage title=[[Subpage test/L1/L2/L3]]
6524 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
6529 Definition list code coverage
6535 <dl><dt> title </dt><dd> def
6536 </dd><dt> title </dt><dd> def
6537 </dd><dt>title</dt><dd> def
6543 Don't fall for the self-closing div
6545 <div>hello world</div/>
6547 <div>hello world</div>
6556 <p>[[:Template:Msg]]
6565 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
6569 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
6571 Always escape literal '>' in output, not just after '<'
6575 <p>test ><>
6585 <p>This is a test template
6586 This is a test template
6598 Inclusion of !userCanEdit() content
6602 <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>
6608 Out-of-order TOC heading levels
6617 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6619 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
6621 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
6622 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
6625 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
6627 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
6628 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
6632 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
6633 <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>
6634 <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>
6635 <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>
6636 <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>
6637 <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>
6638 <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>
6644 ISBN with a dummy number
6654 ISBN with space-delimited number
6658 <p><a href="/wiki/Special:BookSources/9290170328" class="internal">ISBN 92 9017 032 8</a>
6664 ISBN with multiple spaces, no number
6683 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1234567890</a>
6684 </p><p>ISBN 12345678901
6690 ISBN with trailing year (bug 8110)
6692 ISBN 1-234-56789-0 - 2006
6694 ISBN 1 234 56789 0 - 2006
6696 <p><a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1-234-56789-0</a> - 2006
6697 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1 234 56789 0</a> - 2006
6705 {{anchorencode:foo bar©#%n}}
6707 <p>foo_bar.C2.A9.23.25n
6713 Bug 8293: Use of center tag ruins paragraph formatting
6735 ### Language variants related tests
6738 Self-link in language variants
6740 title=[[Dunav]] language=sr
6742 Both [[Dunav]] and [[Дунав]] are names for this river.
6744 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
6750 Link to pages in language variants
6754 Main Page can be written as [[Маин Паге]]
6756 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
6762 Multiple links to pages in language variants
6766 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
6768 <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>.
6774 Simple template in language variants
6780 <p>This is a test template
6786 Template with explicit namespace in language variants
6792 <p>This is a test template
6798 Basic test for template parameter in language variants
6802 {{парамтест|param=foo}}
6804 <p>This is a test template with parameter foo
6810 Simple category in language variants
6814 [[:Category:МедиаWики Усер'с Гуиде]]
6816 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6821 Stripping -{}- tags (language variants)
6825 Latin proverb: -{Ne nuntium necare}-
6827 <p>Latin proverb: Ne nuntium necare
6833 Prevent conversion with -{}- tags (language variants)
6835 language=sr variant=sr-ec
6837 Latinski: -{Ne nuntium necare}-
6839 <p>Латински: Ne nuntium necare
6845 Prevent conversion of text with -{}- tags (language variants)
6847 language=sr variant=sr-ec
6849 Latinski: -{Ne nuntium necare}-
6851 <p>Латински: Ne nuntium necare
6857 Prevent conversion of links with -{}- tags (language variants)
6859 language=sr variant=sr-ec
6863 <p><a href="/index.php?title=Main_Page&variant=sr-ec" title="Main Page">Main Page</a>
6869 -{}- tags within headlines (within html for parserConvert())
6871 language=sr variant=sr-ec
6875 <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>
6881 Explicit definition of language variant alternatives
6883 language=zh variant=zh-tw
6885 -{zh:China;zh-tw:Taiwan}-, not China
6887 <p>Taiwan, not China
6893 Adding explicit session-wise language variant mapping (A flag)
6895 language=zh variant=zh-tw
6897 -{A|zh:China;zh-tw:Taiwan}- is China
6905 Adding explicit conversion rule for title (T flag)
6907 language=zh variant=zh-tw
6909 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
6911 <p>Should be stripped!
6917 Raw output of variant escape tags (R flag)
6919 language=zh variant=zh-tw
6921 Raw: -{R|zh:China;zh-tw:Taiwan}-
6923 <p>Raw: zh:China;zh-tw:Taiwan
6929 Do not convert roman numbers to language variants
6931 language=sr variant=sr-ec
6935 <p>Фридрих IV је цар.
6946 Bug 529: Uncovered bullet
6957 Bug 529: Uncovered table already at line-start
6978 Bug 529: Uncovered bullet in parser function result
6980 * Foo {{lc:{{bullet}} }}
6989 Bug 5678: Double-parsed template argument
6991 {{lc:{{{1}}}|hello}}
6998 Bug 5678: Double-parsed template invocation
7000 {{lc:{{paramtest {{!}} param = hello }} }}
7002 <p>{{paramtest | param = hello }}
7007 Morwen/13: Unclosed link followed by heading
7014 <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>
7019 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
7026 <h1> <span class="mw-headline" id="heading">heading</span></h1>
7031 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
7038 <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>
7053 Paragraphs inside divs (no extra line breaks)
7065 Paragraphs inside divs (extra line break on open)
7080 Paragraphs inside divs (extra line break on close)
7095 Paragraphs inside divs (extra line break on open and close)
7111 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
7113 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
7117 <blockquote>Line one
7119 Line two</blockquote>
7121 <blockquote>Line one
7122 Line two</blockquote>
7127 Bug 6200: paragraphs inside blockquotes (extra line break on open)
7134 Line two</blockquote>
7139 Line two</blockquote>
7144 Bug 6200: paragraphs inside blockquotes (extra line break on close)
7148 <blockquote>Line one
7153 <blockquote>Line one
7161 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
7180 Paragraphs inside blockquotes/divs (no extra line breaks)
7182 <blockquote><div>Line one
7184 Line two</div></blockquote>
7186 <blockquote><div>Line one
7187 Line two</div></blockquote>
7192 Paragraphs inside blockquotes/divs (extra line break on open)
7197 Line two</div></blockquote>
7202 Line two</div></blockquote>
7207 Paragraphs inside blockquotes/divs (extra line break on close)
7209 <blockquote><div>Line one
7214 <blockquote><div>Line one
7222 Paragraphs inside blockquotes/divs (extra line break on open and close)
7239 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
7241 wgLinkHolderBatchSize=0
7247 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
7248 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
7249 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
7254 Free external link invading image caption
7256 [[Image:Foobar.jpg|thumb|http://x|hello]]
7258 <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>
7263 Bug 15196: localised external link numbers
7267 [http://en.wikipedia.org/]
7269 <p><a href="http://en.wikipedia.org/" class="external autonumber" rel="nofollow">[۱]</a>
7274 Multibyte character in padleft
7276 {{padleft:-Hello|7|Æ}}
7283 Multibyte character in padright
7285 {{padright:Hello-|7|Æ}}
7298 <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>
7303 formatdate parser function
7305 {{#formatdate:2009-03-24}}
7307 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
7312 formatdate parser function, with default format
7314 {{#formatdate:2009-03-24|mdy}}
7316 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
7321 Linked date with autoformatting disabled
7323 wgUseDynamicDates=false
7327 <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>
7332 Spacing of numbers in formatted dates
7334 {{#formatdate:January 15}}
7336 <p><span class="mw-formatted-date" title="01-15">January 15</span>
7341 Spacing of numbers in formatted dates (linked)
7343 wgUseDynamicDates=true
7347 <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>
7352 Leading > blockquote syntax
7378 Edit comment with link
7382 I like the [[Main Page]] a lot
7384 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
7388 Edit comment with link and link text
7392 I like the [[Main Page|best pages]] a lot
7394 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
7398 Edit comment with link and link text with suffix
7402 I like the [[Main Page|best page]]s a lot
7404 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
7408 Edit comment with section link (non-local, eg in history list)
7410 comment title=[[Main Page]]
7412 /* External links */ removed bogus entries
7414 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
7418 Edit comment with section link (local, eg in diff view)
7420 comment local title=[[Main Page]]
7422 /* External links */ removed bogus entries
7424 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
7428 Edit comment with subpage link (bug 14080)
7432 title=[[Subpage test]]
7434 Poked at a [[/subpage]] here...
7436 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
7440 Edit comment with subpage link and link text (bug 14080)
7444 title=[[Subpage test]]
7446 Poked at a [[/subpage|neat little page]] here...
7448 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
7452 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
7455 title=[[Subpage test]]
7457 Poked at a [[/subpage]] here...
7459 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
7463 Edit comment with bare anchor link (local, as on diff)
7471 <a href="#section">#section</a>
7475 Edit comment with bare anchor link (non-local, as on history)
7482 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
7486 Edit comment with mismatched brackets (bug 15745)
7491 Some text, a [[broken link|bad and a [[good link|good]]
7493 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>
7502 Try for 100% code coverage