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)
1276 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1280 <td><a href="ftp://|x||" class="external autonumber" title="ftp://|x||" rel="nofollow">[1]</a></td><td>" onmouseover="alert(document.cookie)">test
1292 Plain link, capitalized
1296 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1301 Plain link, uncapitalized
1305 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1312 [[Main Page|The Main Page]]
1314 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1323 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1328 Broken link with fragment
1330 [[Zigzagzogzagzig#zug]]
1332 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1337 Special page link with fragment
1339 [[Special:Version#anchor]]
1341 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1346 Nonexistent special page link with fragment
1348 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1350 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1357 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1359 <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>
1366 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1368 <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>!!!
1373 Link with 3 brackets
1382 Piped link with 3 brackets
1384 [[[main page|the main page]]]
1386 <p>[[[main page|the main page]]]
1391 Link with multiple pipes
1393 [[Main Page|The|Main|Page]]
1395 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1402 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1404 <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>
1409 Piped link to namespace
1411 [[Meta:Disclaimers|The disclaimers]]
1413 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1420 [[Usually caused by a typo (oops}]]
1422 <p>[[Usually caused by a typo (oops}]]
1427 Link containing % (not as a hex sequence)
1431 <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>
1436 Link containing % as a single hex sequence interpreted to char
1440 <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>
1445 Link containing % as a double hex sequence interpreted to hex sequence
1449 <p>[[7%2525 Solution]]
1454 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1455 Example for such a section: == < ==
1457 [[%23%3c]][[%23%3e]]
1459 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1464 Link containing "<#" and ">#" as a hex sequences
1466 [[%3c%23]][[%3e%23]]
1468 <p>[[%3c%23]][[%3e%23]]
1473 Link containing double-single-quotes '' (bug 4598)
1475 [[Lista d''e paise d''o munno]]
1477 <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>
1482 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1484 Some [[Link|pretty ''italics'' and stuff]]!
1486 <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>!
1491 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1493 ''Some [[Link|pretty ''italics'' and stuff]]!
1495 <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>
1502 [[http://www.example.com]]
1504 <p>[<a href="http://www.example.com" class="external autonumber" rel="nofollow">[1]</a>]
1508 # I'm fairly sure the expected result here is wrong.
1509 # We want these to be URL links, not pseudo-pages with URLs for titles....
1510 # However the current output is also pretty screwy.
1513 # I'm changing it to match the current output--it arguably makes more
1514 # sense in the light of the test above. Old expected result was:
1515 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1517 # But I think this test is bordering on "garbage in, garbage out" anyway.
1522 Piped link to URL: [[http://www.example.com|an example URL]]
1524 <p>Piped link to URL: [<a href="http://www.example.com|an" class="external text" rel="nofollow">example URL</a>]
1529 BUG 2: [[page|http://url/]] should link to page, not http://url/
1531 [[Main Page|http://url/]]
1533 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1538 BUG 337: Escaped self-links should be bold
1542 [[Bug462]] [[Bug462]]
1544 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1549 Self-link to section should not be bold
1553 [[Main Page#section]]
1555 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1566 Self-link to numeric title
1572 <p><strong class="selflink">0</strong>
1577 Link to numeric-equivalent title
1583 <p><a href="/wiki/00" title="00">00</a>
1588 <nowiki> inside a link
1590 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1592 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1597 ### Interwiki links (see maintenance/interwiki.sql)
1601 Inline interwiki link
1603 [[MeatBall:SoftSecurity]]
1605 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1610 Inline interwiki link with empty title (bug 2372)
1614 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw" title="meatball:">MeatBall:</a>
1619 Interwiki link encoding conversion (bug 1636)
1621 *[[Wikipedia:ro:Olteniţa]]
1622 *[[Wikipedia:ro:Olteniţa]]
1624 <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>
1625 </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>
1631 Interwiki link with fragment (bug 2130)
1633 [[MeatBall:SoftSecurity#foo]]
1635 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1650 Double interlanguage link
1661 Interlanguage link, with prefix links
1673 Double interlanguage link, with prefix links (bug 8897)
1700 Incorrecly removing closing slashes from correctly formed XHTML
1702 <br style="clear:both;" />
1704 <p><br style="clear:both;" />
1709 Failing to transform badly formed HTML into correct XHTML
1715 <p><br clear="left" />
1716 <br clear="right" />
1722 Horizontal ruler (should it add that extra space?)
1736 ### Block-level elements
1759 <ol><li>Numbered list
1776 ***#Number on level 4
1778 **#Number on level 3
1779 **#Number on level 3
1784 <ol><li> with numbers
1786 <ul><li> and bullets
1788 <ol><li> and numbers
1790 </li><li>bullets again
1791 <ul><li>bullet level 2
1792 <ul><li>bullet level 3
1793 <ol><li>Number on level 4
1796 </li><li>bullet level 2
1797 <ol><li>Number on level 3
1798 </li><li>Number on level 3
1801 <ol><li>number level 2
1809 List items are not parsed correctly following a <pre> block (bug 785)
1815 <ul><li> <pre>foo</pre>
1816 </li><li> <pre>bar</pre>
1827 Magic Word: {{CURRENTDAY}}
1836 Magic Word: {{CURRENTDAY2}}
1845 Magic Word: {{CURRENTDAYNAME}}
1854 Magic Word: {{CURRENTDOW}}
1863 Magic Word: {{CURRENTMONTH}}
1872 Magic Word: {{CURRENTMONTHABBREV}}
1874 {{CURRENTMONTHABBREV}}
1881 Magic Word: {{CURRENTMONTHNAME}}
1883 {{CURRENTMONTHNAME}}
1890 Magic Word: {{CURRENTMONTHNAMEGEN}}
1892 {{CURRENTMONTHNAMEGEN}}
1899 Magic Word: {{CURRENTTIME}}
1908 Magic Word: {{CURRENTWEEK}} (@bug 4594)
1917 Magic Word: {{CURRENTYEAR}}
1926 Magic Word: {{FULLPAGENAME}}
1928 title=[[User:Ævar Arnfjörð Bjarmason]]
1932 <p>User:Ævar Arnfjörð Bjarmason
1937 Magic Word: {{FULLPAGENAMEE}}
1939 title=[[User:Ævar Arnfjörð Bjarmason]]
1943 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
1948 Magic Word: {{NAMESPACE}}
1950 title=[[User:Ævar Arnfjörð Bjarmason]]
1960 Magic Word: {{NAMESPACEE}}
1962 title=[[User:Ævar Arnfjörð Bjarmason]]
1972 Magic Word: {{NUMBEROFARTICLES}}
1974 {{NUMBEROFARTICLES}}
1981 Magic Word: {{NUMBEROFFILES}}
1990 Magic Word: {{PAGENAME}}
1992 title=[[User:Ævar Arnfjörð Bjarmason]]
1997 <p>Ævar Arnfjörð Bjarmason
2002 Magic Word: {{PAGENAMEE}}
2004 title=[[User:Ævar Arnfjörð Bjarmason]]
2008 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2013 Magic Word: {{REVISIONID}}
2022 Magic Word: {{SCRIPTPATH}}
2031 Magic Word: {{SERVER}}
2035 <p><a href="http://localhost" class="external free" rel="nofollow">http://localhost</a>
2040 Magic Word: {{SERVERNAME}}
2049 Magic Word: {{SITENAME}}
2058 Namespace 1 {{ns:1}}
2067 Namespace 1 {{ns:01}}
2076 Namespace 0 {{ns:0}} (bug 4783)
2084 Namespace 0 {{ns:00}} (bug 4783)
2092 Namespace -1 {{ns:-1}}
2101 Namespace User {{ns:User}}
2110 Namespace User talk {{ns:User_talk}}
2119 Namespace User talk {{ns:uSeR tAlK}}
2128 Namespace File {{ns:File}}
2137 Namespace File {{ns:Image}}
2146 Namespace (lang=de) Benutzer {{ns:User}}
2157 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2163 <p>Benutzer Diskussion
2172 Magic links: internal link to RFC (bug 479)
2176 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2181 Magic links: RFC (bug 479)
2185 <p><a href="http://tools.ietf.org/html/rfc822" class="external">RFC 822</a>
2190 Magic links: ISBN (bug 1937)
2194 <p><a href="/wiki/Special:BookSources/0306406152" class="internal">ISBN 0-306-40615-2</a>
2199 Magic links: PMID incorrectly converts space to underscore
2203 <p><a href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract" class="external">PMID 1234</a>
2212 Nonexistent template
2214 {{thistemplatedoesnotexist}}
2216 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2223 This is a test template
2231 <p>This is a test template
2236 Template with explicit namespace
2240 <p>This is a test template
2248 This is a test template with parameter {{{param}}}
2254 {{paramtest|param=foo}}
2256 <p>This is a test template with parameter foo
2261 Template:paramtestnum
2267 Template unnamed parameter
2269 {{paramtestnum|Main Page|the main page}}
2271 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2276 Template:templatesimple
2282 Template:templateredirect
2284 #redirect [[Template:templatesimple]]
2288 Template:templateasargtestnum
2294 Template:templateasargtest
2296 {{template{{{templ}}}}}
2300 Template:templateasargtest2
2306 Template with template name as unnamed argument
2308 {{templateasargtestnum|templatesimple}}
2315 Template with template name as argument
2317 {{templateasargtest|templ=simple}}
2324 Template with template name as argument (2)
2326 {{templateasargtest2|templ=templatesimple}}
2333 Template:templateasargtestdefault
2335 {{{{{templ|templatesimple}}}}}
2345 Template with default value
2347 {{templateasargtestdefault}}
2354 Template with default value (value set)
2356 {{templateasargtestdefault|templ=templa}}
2365 {{templateredirect}}
2372 Template with argument in separate line
2374 {{ templateasargtest |
2382 Template with complex template as argument
2385 param ={{ templateasargtest |
2388 <p>This is a test template with parameter (test)
2393 Template with thumb image (with link in description)
2396 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2398 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>
2403 Template:complextemplate
2405 {{{1}}} {{paramtest|
2406 param ={{{param}}}}}
2410 Template with complex arguments
2413 param ={{ templateasargtest |
2414 templ = simple }}|[[Template:complextemplate|link]]}}
2416 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2421 BUG 553: link with two variables in a piped link
2424 |[[{{{1}}}|{{{2}}}]]
2429 <td>[[{{{1}}}|{{{2}}}]]
2435 Magic variable as template parameter
2437 {{paramtest|param={{SITENAME}}}}
2439 <p>This is a test template with parameter MediaWiki
2446 [[{{{param}}}|link]]
2450 Template parameter as link source
2452 {{linktest|param=Main Page}}
2454 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2462 including another template, {{paramtest|param={{{arg}}}}}
2466 Template passing argument to another template
2468 {{paramtest2|arg='hmm'}}
2470 <p>including another template, This is a test template with parameter 'hmm'
2481 Template as link source
2485 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2503 Template infinite loop
2507 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
2512 Template from main namespace
2531 BUG 529: Template with table, not included at beginning of line
2548 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2566 BUG 41: Template parameters shown as broken links
2578 ''None'' of '''this''' should be
2580 but rather passed unmodified
2584 # hmm, fix this or just deprecate msgnw and document its behavior?
2590 {{msgnw:MSGNW test}}
2592 <p>''None'' of '''this''' should be
2594 but rather passed unmodified
2602 {{int:youhavenewmessages|lots of money|not!}}
2604 <p>You have lots of money (not!).
2611 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2615 <includeonly> and <noinclude> being included
2626 <onlyinclude>Foo</onlyinclude>bar
2630 <onlyinclude> being included
2642 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2646 <onlyinclude> and <includeonly> being included
2655 <includeonly> and <noinclude> on a page
2657 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2664 <onlyinclude> on a page
2666 <onlyinclude>Foo</onlyinclude>bar
2673 Template:Includeonly section
2676 ==Includeonly section==
2682 Bug 6563: Edit link generation for section shown by <includeonly>
2684 {{includeonly section}}
2686 <h2 id="Includeonly_section"><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">Includeonly section</span></h2>
2687 <h2 id="Section_T-1"><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">Section T-1</span></h2>
2691 # Uses same input as the contents of [[Template:Includeonly section]]
2693 Bug 6563: Section extraction for section shown by <includeonly>
2698 ==Includeonly section==
2706 Bug 6563: Edit link generation for section suppressed by <includeonly>
2709 ==Includeonly section==
2713 <h2 id="Section_1"><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">Section 1</span></h2>
2718 Bug 6563: Section extraction for section suppressed by <includeonly>
2723 ==Includeonly section==
2731 ### Pre-save transform tests
2734 pre-save transform: subst:
2740 This is a test template
2744 pre-save transform: normal template
2754 pre-save transform: nonexistent template
2758 {{thistemplatedoesnotexist}}
2760 {{thistemplatedoesnotexist}}
2765 pre-save transform: subst magic variables
2774 # This is bug 89, which I fixed. -- wtm
2776 pre-save transform: subst: templates with parameters
2780 {{subst:paramtest|param="something else"}}
2782 This is a test template with parameter "something else"
2788 <nowiki>'''not wiki'''</nowiki>
2792 pre-save transform: nowiki in subst (bug 1188)
2796 {{subst:nowikitest}}
2798 <nowiki>'''not wiki'''</nowiki>
2803 Template:commenttest
2805 This template has <!-- a comment --> in it.
2809 pre-save transform: comment in subst (bug 1936)
2813 {{subst:commenttest}}
2815 This template has <!-- a comment --> in it.
2819 pre-save transform: unclosed tag
2823 <nowiki>'''not wiki'''
2825 <nowiki>'''not wiki'''
2829 pre-save transform: mixed tag case
2833 <NOwiki>'''not wiki'''</noWIKI>
2835 <NOwiki>'''not wiki'''</noWIKI>
2839 pre-save transform: unclosed comment in <nowiki>
2843 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2845 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2851 <span onmouseover="alert('crap')">Oh no</span>
2855 (confirming safety of fix for subst bug 1936)
2857 {{Template:dangerous}}
2859 <p><span>Oh no</span>
2864 pre-save transform: comment containing gallery (bug 5024)
2868 <!-- <gallery>data</gallery> -->
2870 <!-- <gallery>data</gallery> -->
2874 pre-save transform: comment containing extension
2878 <!-- <tag>data</tag> -->
2880 <!-- <tag>data</tag> -->
2884 pre-save transform: comment containing nowiki
2888 <!-- <nowiki>data</nowiki> -->
2890 <!-- <nowiki>data</nowiki> -->
2894 pre-save transform: comment containing math
2898 <!-- <math>data</math> -->
2900 <!-- <math>data</math> -->
2904 pre-save transform: <noinclude> in subst (bug 3298)
2914 pre-save transform: <onlyinclude> in subst (bug 3298)
2924 pre-save transform: context links ("pipe trick")
2928 [[Article (context)|]]
2931 [[Bar:Article (context)|]]
2932 [[:Bar:Article (context)|]]
2934 [[|Article (context)]]
2938 [[Article (context)|Article]]
2939 [[Bar:Article|Article]]
2940 [[:Bar:Article|Article]]
2941 [[Bar:Article (context)|Article]]
2942 [[:Bar:Article (context)|Article]]
2944 [[Article (context)]]
2945 [[Bar:X (Y) Z|X (Y) Z]]
2946 [[:Bar:X (Y) Z|X (Y) Z]]
2950 pre-save transform: context links ("pipe trick") with interwiki prefix
2954 [[interwiki:Article|]]
2955 [[:interwiki:Article|]]
2956 [[interwiki:Bar:Article|]]
2957 [[:interwiki:Bar:Article|]]
2959 [[interwiki:Article|Article]]
2960 [[:interwiki:Article|Article]]
2961 [[interwiki:Bar:Article|Bar:Article]]
2962 [[:interwiki:Bar:Article|Bar:Article]]
2966 pre-save transform: context links ("pipe trick") with parens in title
2968 pst title=[[Somearticle (context)]]
2972 [[Article (context)|Article]]
2976 pre-save transform: context links ("pipe trick") with comma in title
2978 pst title=[[Someplace, Somewhere]]
2981 [[Otherplace, Elsewhere|]]
2982 [[Otherplace, Elsewhere, Anywhere|]]
2984 [[Otherplace, Somewhere|Otherplace]]
2985 [[Otherplace, Elsewhere|Otherplace]]
2986 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
2990 pre-save transform: context links ("pipe trick") with parens and comma
2992 pst title=[[Someplace (IGNORED), Somewhere]]
2995 [[Otherplace (place), Elsewhere|]]
2997 [[Otherplace, Somewhere|Otherplace]]
2998 [[Otherplace (place), Elsewhere|Otherplace]]
3002 pre-save transform: context links ("pipe trick") with comma and parens
3004 pst title=[[Who, me? (context)]]
3007 [[Me, Myself, and I (1937 song)|]]
3009 [[Yes, you. (context)|Yes, you.]]
3010 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3014 pre-save transform: context links ("pipe trick") with namespace
3016 pst title=[[Ns:Somearticle]]
3020 [[Ns:Article|Article]]
3024 pre-save transform: context links ("pipe trick") with namespace and parens
3026 pst title=[[Ns:Somearticle (context)]]
3030 [[Ns:Article (context)|Article]]
3034 pre-save transform: context links ("pipe trick") with namespace and comma
3036 pst title=[[Ns:Somearticle, Context, Whatever]]
3040 [[Ns:Article, Context, Whatever|Article]]
3044 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3046 pst title=[[Ns:Somearticle, Context (context)]]
3050 [[Ns:Article (context)|Article]]
3054 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3056 pst title=[[Ns:Somearticle (IGNORED), Context]]
3060 [[Ns:Article, Context|Article]]
3065 ### Message transform tests
3068 message transform: magic variables
3078 message transform: should not transform wiki markup
3088 message transform: <noinclude> in transcluded template (bug 4926)
3098 message transform: <onlyinclude> in transcluded template (bug 4926)
3108 {{#special:}} page name, known
3112 {{#special:Recentchanges}}
3114 Special:RecentChanges
3118 {{#special:}} page name, unknown
3122 {{#special:foobarnonexistent}}
3124 No such special page
3133 [[Image:foobar.jpg]]
3135 <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>
3142 [[Image:foobar.jpg|right]]
3144 <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>
3149 Simple image (using File: namespace, now canonical)
3153 <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>
3160 [[Image:foobar.jpg|right|Caption text]]
3162 <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>
3167 Image with link parameter, wiki target
3169 [[Image:foobar.jpg|link=Target page]]
3171 <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>
3176 Image with link parameter, URL target
3178 [[Image:foobar.jpg|link=http://example.com/]]
3180 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3185 Image with empty link parameter
3187 [[Image:foobar.jpg|link=]]
3189 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3194 Image with link parameter (wiki target) and unnamed parameter
3196 [[Image:foobar.jpg|link=Target page|Title]]
3198 <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>
3203 Image with link parameter (URL target) and unnamed parameter
3205 [[Image:foobar.jpg|link=http://example.com/|Title]]
3207 <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>
3214 Image with frame and link
3216 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3218 <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>
3223 Image with frame and link and explicit alt
3225 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3227 <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>
3232 Image with wiki markup in implicit alt
3234 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3236 <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>
3241 Image with wiki markup in explicit alt
3243 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3245 <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>
3250 Link to image page- image page normally doesn't exists, hence edit link
3251 Add test with existing image page
3252 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3256 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3261 Frameless image caption with a free URL
3263 [[Image:foobar.jpg|http://example.com]]
3265 <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>
3270 Thumbnail image caption with a free URL
3272 [[Image:foobar.jpg|thumb|http://example.com]]
3274 <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>
3279 Thumbnail image caption with a free URL and explicit alt
3281 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3283 <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>
3288 BUG 1887: A ISBN with a thumbnail
3290 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3292 <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>
3297 BUG 1887: A RFC with a thumbnail
3299 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3301 <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>
3306 BUG 1887: A mailto link with a thumbnail
3308 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3310 <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>
3315 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
3316 so math is not stripped and turns up as escaped <math> tags.
3318 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3320 <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>
3325 BUG 1887, part 2: A <math> with a thumbnail- math enabled
3329 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3331 <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>
3335 # Pending resolution to bug 368
3337 BUG 648: Frameless image caption with a link
3339 [[Image:foobar.jpg|text with a [[link]] in it]]
3341 <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>
3346 BUG 648: Frameless image caption with a link (suffix)
3348 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3350 <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>
3355 BUG 648: Frameless image caption with an interwiki link
3357 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3359 <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>
3364 BUG 648: Frameless image caption with a piped interwiki link
3366 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3368 <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>
3373 Escape HTML special chars in image alt text
3375 [[Image:foobar.jpg|& < > "]]
3377 <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>
3382 BUG 499: Alt text should have Ӓ, not &1234;
3384 [[Image:foobar.jpg|♀]]
3386 <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>
3391 Broken image caption with link
3393 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3395 <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.
3400 Image caption containing another image
3402 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3404 <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>
3409 Image caption containing a newline
3411 [[Image:Foobar.jpg|This
3414 <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>
3420 Bug 3090: External links other than http: in image captions
3422 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3424 <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>
3433 Subpage test/subpage
3441 subpage title=[[Subpage test]]
3445 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3450 Subpage noslash link
3452 subpage title=[[Subpage test]]
3456 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3465 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
3470 BUG 561: {{/Subpage}}
3472 subpage title=[[Page]]
3476 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
3484 Category:MediaWiki User's Guide
3492 [[:Category:MediaWiki User's Guide]]
3494 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
3503 [[Category:MediaWiki User's Guide]]
3505 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3509 PAGESINCATEGORY invalid title fatal (r33546 fix)
3511 {{PAGESINCATEGORY:<bogus>}}
3518 ### Inter-language links
3521 Inter-language links
3527 [[zh:食品]]
3529 es:Alimento fr:Nourriture zh:食品
3536 Basic section headings
3543 ===Smaller headline===
3546 <h2 id="Headline_1"><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"> Headline 1 </span></h2>
3549 <h2 id="Headline_2"><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">Headline 2</span></h2>
3552 <h3 id="Smaller_headline"><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">Smaller headline</span></h3>
3558 Section headings with TOC
3561 === Subheadline 1 ===
3562 ===== Skipping a level =====
3563 ====== Skipping a level ======
3567 ===Another headline===
3569 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3571 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3573 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3575 <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>
3577 <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>
3584 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
3586 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
3590 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3591 <h2 id="Headline_1"><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"> Headline 1 </span></h2>
3592 <h3 id="Subheadline_1"><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"> Subheadline 1 </span></h3>
3593 <h5 id="Skipping_a_level"><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"> Skipping a level </span></h5>
3594 <h6 id="Skipping_a_level_2"><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"> Skipping a level </span></h6>
3595 <h2 id="Headline_2"><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"> Headline 2 </span></h2>
3598 <h3 id="Another_headline"><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">Another headline</span></h3>
3602 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
3604 Handling of sections up to level 6 and beyond
3607 == Level 2 Heading==
3608 === Level 3 Heading===
3609 ==== Level 4 Heading====
3610 ===== Level 5 Heading=====
3611 ====== Level 6 Heading======
3612 ======= Level 7 Heading=======
3613 ======== Level 8 Heading========
3614 ========= Level 9 Heading=========
3615 ========== Level 10 Heading==========
3617 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3619 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
3621 <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>
3623 <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>
3625 <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>
3627 <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>
3629 <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>
3630 <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>
3631 <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>
3632 <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>
3633 <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>
3645 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3646 <h1 id="Level_1_Heading"><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"> Level 1 Heading</span></h1>
3647 <h2 id="Level_2_Heading"><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"> Level 2 Heading</span></h2>
3648 <h3 id="Level_3_Heading"><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"> Level 3 Heading</span></h3>
3649 <h4 id="Level_4_Heading"><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"> Level 4 Heading</span></h4>
3650 <h5 id="Level_5_Heading"><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"> Level 5 Heading</span></h5>
3651 <h6 id="Level_6_Heading"><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"> Level 6 Heading</span></h6>
3652 <h6 id=".3D_Level_7_Heading.3D"><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">= Level 7 Heading=</span></h6>
3653 <h6 id=".3D.3D_Level_8_Heading.3D.3D"><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">== Level 8 Heading==</span></h6>
3654 <h6 id=".3D.3D.3D_Level_9_Heading.3D.3D.3D"><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">=== Level 9 Heading===</span></h6>
3655 <h6 id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D"><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">==== Level 10 Heading====</span></h6>
3660 TOC regression (bug 9764)
3664 ==== title 1.1.1 ====
3669 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3671 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3673 <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>
3675 <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>
3678 <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>
3681 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3683 <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>
3687 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3688 <h2 id="title_1"><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"> title 1 </span></h2>
3689 <h3 id="title_1.1"><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"> title 1.1 </span></h3>
3690 <h4 id="title_1.1.1"><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"> title 1.1.1 </span></h4>
3691 <h3 id="title_1.2"><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"> title 1.2 </span></h3>
3692 <h2 id="title_2"><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"> title 2 </span></h2>
3693 <h3 id="title_2.1"><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"> title 2.1 </span></h3>
3698 TOC with wgMaxTocLevel=3 (bug 6204)
3704 ==== title 1.1.1 ====
3709 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3711 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3713 <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>
3714 <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>
3717 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3719 <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>
3723 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3724 <h2 id="title_1"><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"> title 1 </span></h2>
3725 <h3 id="title_1.1"><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"> title 1.1 </span></h3>
3726 <h4 id="title_1.1.1"><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"> title 1.1.1 </span></h4>
3727 <h3 id="title_1.2"><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"> title 1.2 </span></h3>
3728 <h2 id="title_2"><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"> title 2 </span></h2>
3729 <h3 id="title_2.1"><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"> title 2.1 </span></h3>
3734 Resolving duplicate section names
3739 <h2 id="Foo_bar"><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"> Foo bar </span></h2>
3740 <h2 id="Foo_bar_2"><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"> Foo bar </span></h2>
3745 Resolving duplicate section names with differing case (bug 10721)
3750 <h2 id="Foo_bar"><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"> Foo bar </span></h2>
3751 <h2 id="Foo_Bar_2"><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"> Foo Bar </span></h2>
3763 Template with sections, __NOTOC__
3770 <h2 id="Section_0"><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">Section 0</span></h2>
3771 <h3 id="Section_1"><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">Section 1</span></h3>
3772 <h2 id="Section_2"><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">Section 2</span></h2>
3773 <h2 id="Section_4"><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">Section 4</span></h2>
3778 __NOEDITSECTION__ keyword
3784 <h2 id="Section_1"> <span class="mw-headline">Section 1</span></h2>
3785 <h2 id="Section_2"> <span class="mw-headline">Section 2</span></h2>
3790 Link inside a section heading
3792 ==Section with a [[Main Page|link]] in it==
3794 <h2 id="Section_with_a_link_in_it"><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">Section with a <a href="/wiki/Main_Page" title="Main Page">link</a> in it</span></h2>
3799 TOC regression (bug 12077)
3806 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3808 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3810 <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>
3813 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
3815 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3816 <h2 id="title_1"><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"> title 1 </span></h2>
3817 <h3 id="title_1.1"><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"> title 1.1 </span></h3>
3818 <h2 id="title_2"><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"> title 2 </span></h2>
3823 BUG 1219 URL next to image (good)
3825 http://example.com [[Image:foobar.jpg]]
3827 <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>
3832 BUG 1219 URL next to image (broken)
3834 http://example.com[[Image:foobar.jpg]]
3836 <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>
3841 Bug 1186 news: in the middle of text
3843 http://en.wikinews.org/wiki/Wikinews:Workplace
3845 <p><a href="http://en.wikinews.org/wiki/Wikinews:Workplace" class="external free" rel="nofollow">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
3851 Namespaced link must have a title
3860 Namespaced link must have a title (bad fragment version)
3862 [[Project:#fragment]]
3864 <p>[[Project:#fragment]]
3870 div with no attributes
3872 <div>HTML rocks</div>
3874 <div>HTML rocks</div>
3879 div with double-quoted attribute
3881 <div id="rock">HTML rocks</div>
3883 <div id="rock">HTML rocks</div>
3888 div with single-quoted attribute
3890 <div id='rock'>HTML rocks</div>
3892 <div id="rock">HTML rocks</div>
3897 div with unquoted attribute
3899 <div id=rock>HTML rocks</div>
3901 <div id="rock">HTML rocks</div>
3906 div with illegal double attributes
3908 <div align="center" align="right">HTML rocks</div>
3910 <div align="right">HTML rocks</div>
3915 HTML multiple attributes correction
3917 <p class="error" class="awesome">Awesome!</p>
3919 <p class="awesome">Awesome!</p>
3924 Table multiple attributes correction
3927 !+ class="error" class="awesome"| status
3932 <th class="awesome"> status
3940 <DIV ALIGN="center">HTML ROCKS</DIV>
3942 <div align="center">HTML ROCKS</div>
3948 text with amp in the middle of nowhere
3952 <p>Remember AT&T?
3957 text with character entity: eacute
3959 I always thought é was a cute letter.
3961 <p>I always thought é was a cute letter.
3966 text with undefined character entity: xacute
3968 I always thought &xacute; was a cute letter.
3970 <p>I always thought &xacute; was a cute letter.
3982 [[Media:Foobar.jpg]]
3984 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
3989 Media link with text
3991 [[Media:Foobar.jpg|A neat file to look at]]
3993 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
3997 # FIXME: this is still bad HTML tag nesting
3999 Media link with nasty text
4000 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4002 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4004 <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>
4009 Media link to nonexistent file (bug 1702)
4011 [[Media:No such.jpg]]
4013 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4018 Image link to nonexistent file (bug 1850 - good)
4020 [[Image:No such.jpg]]
4022 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4027 :Image link to nonexistent file (bug 1850 - bad)
4029 [[:Image:No such.jpg]]
4031 <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>
4038 Character reference normalization in link text (bug 1938)
4040 [[Main Page|this&that]]
4042 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4047 Empty attribute crash test (bug 2067)
4049 <font color="">foo</font>
4051 <p><font color="">foo</font>
4056 Empty attribute crash test single-quotes (bug 2067)
4058 <font color=''>foo</font>
4060 <p><font color="">foo</font>
4065 Attribute test: equals, then nothing
4067 <font color=>foo</font>
4074 Attribute test: unquoted value
4076 <font color=x>foo</font>
4078 <p><font color="x">foo</font>
4083 Attribute test: unquoted but illegal value (hash)
4085 <font color=#x>foo</font>
4087 <p><font color="#x">foo</font>
4092 Attribute test: no value
4094 <font color>foo</font>
4096 <p><font color="color">foo</font>
4101 Bug 2095: link with three closing brackets
4105 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
4110 Bug 2095: link with pipe and three closing brackets
4114 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4119 Bug 2095: link with pipe and three closing brackets, version 2
4121 [[Main Page|[http://example.com/]]]
4123 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4133 Template:Dangerous attribute
4135 " onmouseover="alert(document.cookie)
4139 Template:Dangerous style attribute
4141 border-size: expression(alert(document.cookie))
4147 <div style="float: right; {{{1}}}">Magic div</div>
4151 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4153 <div title="{{test}}"></div>
4155 <div title="This is a test template"></div>
4160 Bug 2304: HTML attribute safety (dangerous template; 2309)
4162 <div title="{{dangerous attribute}}"></div>
4164 <div title=""></div>
4169 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4171 <div style="{{dangerous style attribute}}"></div>
4178 Bug 2304: HTML attribute safety (safe parameter; 2309)
4180 {{div style|width: 200px}}
4182 <div style="float: right; width: 200px">Magic div</div>
4187 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4189 {{div style|width: expression(alert(document.cookie))}}
4191 <div>Magic div</div>
4196 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4198 {{div style|"><script>alert(document.cookie)</script>}}
4200 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4205 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4207 {{div style|" ><script>alert(document.cookie)</script>}}
4209 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4214 Bug 2304: HTML attribute safety (link)
4216 <div title="[[Main Page]]"></div>
4218 <div title="[[Main Page]]"></div>
4223 Bug 2304: HTML attribute safety (italics)
4225 <div title="''foobar''"></div>
4227 <div title="''foobar''"></div>
4232 Bug 2304: HTML attribute safety (bold)
4234 <div title="'''foobar'''"></div>
4236 <div title="'''foobar'''"></div>
4242 Bug 2304: HTML attribute safety (ISBN)
4244 <div title="ISBN 1234567890"></div>
4246 <div title="ISBN 1234567890"></div>
4251 Bug 2304: HTML attribute safety (RFC)
4253 <div title="RFC 1234"></div>
4255 <div title="RFC 1234"></div>
4260 Bug 2304: HTML attribute safety (PMID)
4262 <div title="PMID 1234567890"></div>
4264 <div title="PMID 1234567890"></div>
4269 Bug 2304: HTML attribute safety (web link)
4271 <div title="http://example.com/"></div>
4273 <div title="http://example.com/"></div>
4278 Bug 2304: HTML attribute safety (named web link)
4280 <div title="[http://example.com/ link]"></div>
4282 <div title="[http://example.com/ link]"></div>
4287 Bug 3244: HTML attribute safety (extension; safe)
4289 <div style="<nowiki>background:blue</nowiki>"></div>
4291 <div style="background:blue"></div>
4296 Bug 3244: HTML attribute safety (extension; unsafe)
4298 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4305 Math section safety when disabled
4307 <math><script>alert(document.cookies);</script></math>
4309 <p><math><script>alert(document.cookies);</script></math>
4313 # More MSIE fun discovered by Tom Gilder
4316 MSIE CSS safety test: spurious slash
4318 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4325 MSIE CSS safety test: hex code
4327 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4334 MSIE CSS safety test: comment in url
4336 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4338 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4343 MSIE CSS safety test: comment in expression
4345 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4347 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4353 Table attribute legitimate extension
4356 !+ style="<nowiki>color:blue</nowiki>"| status
4361 <th style="color:blue"> status
4367 Table attribute safety
4370 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4388 Expansion of multi-line templates in attribute values (bug 6255)
4390 <div style="background: {{identity|#00FF00}}">-</div>
4392 <div style="background: #00FF00">-</div>
4398 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
4400 <div style="background:
4403 <div style="background: #00FF00">-</div>
4408 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
4410 <div style="background: #00FF00">-</div>
4412 <div style="background: #00FF00">-</div>
4417 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
4420 Parser hook: empty input
4433 Parser hook: empty input using terminated empty elements
4446 Parser hook: empty input using terminated empty elements (space before)
4459 Parser hook: basic input
4473 Parser hook: case insensitive
4487 Parser hook: case insensitive, redux
4500 Parser hook: nested tags
4504 <tag><tag></tag></tag>
4515 Parser hook: basic arguments
4517 <tag width=200 height = "100" depth = '50' square></tag>
4536 Parser hook: argument containing a forward slash (bug 5344)
4538 <tag filename='/tmp/bla'></tag>
4544 string(8) "/tmp/bla"
4551 Parser hook: empty input using terminated empty elements (bug 2374)
4565 # </tag> should be output literally since there is no matching tag that begins it
4567 Parser hook: basic arguments using terminated empty elements (bug 2374)
4569 <tag width=200 height = "100" depth = '50' square/>
4592 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
4596 Parser hook: static parser hook not inside a comment
4598 <statictag>hello, world</statictag>
4599 <statictag action=flush/>
4607 Parser hook: static parser hook inside a comment
4609 <!-- <statictag>hello, world</statictag> -->
4610 <statictag action=flush/>
4616 # Nested template calls; this case was broken by Parser.php rev 1.506,
4620 Template:One-parameter
4622 (My parameter is: {{{1}}})
4626 Template:Map-one-parameter
4632 Nested template calls
4634 {{Map-one-parameter|One-parameter|param}}
4636 <p>(My parameter is: param)
4645 Sanitizer: Closing of open tags
4647 <s></s><table></table>
4649 <s></s><table></table>
4654 Sanitizer: Closing of open but not closed tags
4663 Sanitizer: Closing of closed but not open tags
4672 Sanitizer: Closing of closed but not open table tags
4674 Table not started</td></tr></table>
4676 <p>Table not started</td></tr></table>
4681 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
4683 <span id="æ: v">byte</span>[[#æ: v|backlink]]
4685 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
4690 Sanitizer: Validating the contents of the id attribute (bug 4515)
4696 Something, but defenetly not <br id="9" />...
4700 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
4704 <br id="foo" /><br id="foo" />
4706 Something need to be done. foo-2 ?
4710 Language converter: output gets cut off unexpectedly (bug 5757)
4714 this bit is safe: }-
4716 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
4718 then we get cut off here: }-
4720 all additional text is vanished
4722 <p>this bit is safe: }-
4723 </p><p>but if we add a conversion instance: xxx
4724 </p><p>then we get cut off here: }-
4725 </p><p>all additional text is vanished
4730 Self closed html pairs (bug 5487)
4733 <center><font id="bug" />Centered text</center>
4734 <div><font id="bug2" />In div text</div>
4736 <center><font id="bug" />Centered text</center>
4737 <div><font id="bug2" />In div text</div>
4746 Punctuation: nbsp before exclamation
4750 <p>C'est grave !
4755 Punctuation: CSS !important (bug 11874)
4757 <div style="width:50% !important">important</div>
4759 <div style="width:50% !important">important</div>
4764 Punctuation: CSS ! important (bug 11874; with space after)
4766 <div style="width:50% ! important">important</div>
4768 <div style="width:50% ! important">important</div>
4774 HTML bullet list, closed tags (bug 5497)
4789 HTML bullet list, unclosed tags (bug 5497)
4804 HTML ordered list, closed tags (bug 5497)
4819 HTML ordered list, unclosed tags (bug 5497)
4834 HTML nested bullet list, closed tags (bug 5497)
4859 HTML nested bullet list, open tags (bug 5497)
4882 HTML nested ordered list, closed tags (bug 5497)
4907 HTML nested ordered list, open tags (bug 5497)
4930 HTML ordered list item with parameters oddity
4932 <ol><li id="fragment">One</li></ol>
4934 <ol><li id="fragment">One</li></ol>
4939 bug 5918: autonumbering
4941 [http://first/] [http://second] [ftp://ftp]
4945 [mailto:enclosed@mail.tld With target]
4947 [mailto:enclosed@mail.tld]
4949 mailto:inline@mail.tld
4951 <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>
4952 </p><p><a href="ftp://inlineftp" class="external free" rel="nofollow">ftp://inlineftp</a>
4953 </p><p><a href="mailto:enclosed@mail.tld" class="external text" rel="nofollow">With target</a>
4954 </p><p><a href="mailto:enclosed@mail.tld" class="external autonumber" rel="nofollow">[4]</a>
4955 </p><p><a href="mailto:inline@mail.tld" class="external free" rel="nofollow">mailto:inline@mail.tld</a>
4961 # Security and HTML correctness
4962 # From Nick Jenkins' fuzz testing
4966 Fuzz testing: Parser13
4981 Fuzz testing: Parser14
4986 <h2 id="onmouseover.3D"><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"> onmouseover= </span></h2>
4987 http://<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4989 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
4991 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
4996 Fuzz testing: Parser14-table
5001 <h2 id="a"><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">a</span></h2>
5002 <table style="__TOC__">
5008 # Known to produce bogus xml (extra </td>)
5010 Fuzz testing: Parser16
5019 <th>https://</th><th></th><th></th><th>
5027 Fuzz testing: Parser21
5030 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5035 <th> <a href="irc://{{ftp://a" class="external free" rel="nofollow">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5044 Fuzz testing: Parser22
5046 http://===r:::https://b
5050 <p><a href="http://===r:::https://b" class="external free" rel="nofollow">http://===r:::https://b</a>
5058 # Known to produce bad XML for now
5060 Fuzz testing: Parser24
5067 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5068 <br style="onmouseover='alert(document.cookie);' " />
5070 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5075 <u class="|">}}}} >
5076 <br style="onmouseover='alert(document.cookie);'" />
5078 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5087 # Note: the current result listed for this is not what the original one was,
5088 # but the original bug was JavaScript injection, which is fixed in any case.
5089 # It's not clear that the original result listed was any more correct than the
5090 # current one. Original result:
5093 # <li class="||">
5094 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5096 Fuzz testing: Parser25 (bug 6055)
5102 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5104 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5109 Fuzz testing: URL adjacent extension (with space, clean)
5112 http://example.com <nowiki>junk</nowiki>
5114 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a> junk
5119 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5122 http://example.com<nowiki>junk</nowiki>
5124 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>junk
5129 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5132 http://example.com<pre>junk</pre>
5134 <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a><pre>junk</pre>
5139 Fuzz testing: image with bogus manual thumbnail
5141 [[Image:foobar.jpg|thumbnail= ]]
5143 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5148 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5150 <pre dir=" "></pre>
5152 <pre dir=" "></pre>
5157 Parsing optional HTML elements (Bug 6171)
5162 <td> Some tabular data</td>
5163 <td> More tabular data ...
5164 <td> And yet som tabular data</td>
5170 <td> Some tabular data</td>
5171 <td> More tabular data ...
5172 </td><td> And yet som tabular data</td>
5179 Correct handling of <td>, <tr> (Bug 6171)
5184 <td> Some tabular data</td>
5185 <td> More tabular data ...</td>
5186 <td> And yet som tabular data</td>
5192 <td> Some tabular data</td>
5193 <td> More tabular data ...</td>
5194 <td> And yet som tabular data</td>
5202 Parsing crashing regression (fr:JavaScript)
5206 <p></body></x>
5211 Inline wiki vs wiki block nesting
5217 <p><b>Bold paragraph</b>
5218 </p><p>New wiki paragraph
5223 Inline HTML vs wiki block nesting
5229 <p><b>Bold paragraph</b>
5230 </p><p>New wiki paragraph
5234 # Original result was this:
5235 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5237 # While that might be marginally more intuitive, maybe, the six-apostrophe
5238 # construct is clearly pathological and the result stated here (which is what
5239 # the parser actually does) is about as reasonable as anything.
5241 Mixing markup for italics and bold
5244 '''bold''''''bold''bolditalics'''''
5246 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5254 Article for special page transclusion test
5258 Special page transclusion
5261 {{Special:Prefixindex/Xyzzyx}}
5265 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5270 Special page transclusion twice (bug 5021)
5273 {{Special:Prefixindex/Xyzzyx}}
5274 {{Special:Prefixindex/Xyzzyx}}
5278 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5281 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5286 Transclusion of default MediaWiki message
5288 {{MediaWiki:Mainpage}}
5295 Transclusion of nonexistent MediaWiki message
5297 {{MediaWiki:Mainpagexxx}}
5299 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
5304 Transclusion of MediaWiki message with underscore
5306 {{MediaWiki:history_short}}
5313 Transclusion of MediaWiki message with space
5315 {{MediaWiki:history short}}
5322 Invalid header with following text
5332 Section extraction test (section 0)
5352 Section extraction test (section 1)
5374 Section extraction test (section 2)
5395 Section extraction test (section 3)
5415 Section extraction test (section 4)
5439 Section extraction test (section 5)
5459 Section extraction test (section 6)
5480 Section extraction test (section 7)
5500 Section extraction test (section 8)
5520 Section extraction test (section 9)
5541 Section extraction test (section 10)
5561 Section extraction test (nonexistent section 11)
5580 Section extraction test with bogus heading (section 1)
5585 ==bogus== not a legal section
5589 ==bogus== not a legal section
5593 Section extraction test with bogus heading (section 2)
5598 ==bogus== not a legal section
5605 Section extraction test with comment after heading (section 1)
5617 Section extraction test with comment after heading (section 2)
5629 Section extraction test with bogus <nowiki> heading (section 1)
5634 ==bogus== <nowiki>not a legal section</nowiki>
5638 ==bogus== <nowiki>not a legal section</nowiki>
5642 Section extraction test with bogus <nowiki> heading (section 2)
5647 ==bogus== <nowiki>not a legal section</nowiki>
5654 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
5655 # instead of respecting commented sections
5657 Section extraction prefixed by comment (section 1)
5668 Section extraction prefixed by comment (section 2)
5679 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
5680 # instead of respecting HTML-style headings
5682 Section extraction, mixed wiki and html (section 1)
5698 Section extraction, mixed wiki and html (section 2)
5714 # Formerly testing for bug 3342
5716 Section extraction, heading surrounded by <noinclude>
5720 <noinclude>==unmarked==</noinclude>
5728 Section replacement test (section 0)
5759 Section replacement test (section 1)
5788 Section replacement test (section 2)
5818 Section replacement test (section 3)
5849 Section replacement test (section 4)
5876 Section replacement test (section 5)
5907 Section replacement test (section 6)
5937 Section replacement test (section 7)
5968 Section replacement test (section 8)
5999 Section replacement test (section 9)
6028 Section replacement test (section 10)
6058 Section replacement test with initial whitespace (bug 13728)
6062 Preformatted initial line
6066 Preformatted initial line
6073 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6085 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6098 Section extraction, <pre> around bogus header (bug 10309)
6115 Section replacement, <pre> around bogus header (bug 10309)
6117 noxml replace=2,"xxx"
6138 Handling of 
 in URLs
6142 <ul><li><ul><li><a href="irc://%0Aa" class="external free" rel="nofollow">irc://%0Aa</a>
6149 5 quotes, code coverage +1 line
6156 Special:Search page linking.
6160 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
6175 * {{SUBJECTPAGENAME}}
6176 * {{SUBJECTPAGENAMEE}}
6183 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6185 <ul><li> Parser test
6186 </li><li> Parser test
6187 </li><li> Parser test
6188 </li><li> Parser_test
6189 </li><li> Parser test
6190 </li><li> Parser_test
6191 </li><li> Talk:Parser test
6192 </li><li> Talk:Parser_test
6193 </li><li> Parser test
6194 </li><li> Parser_test
6201 </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>
6205 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6215 image4 |300px| centre
6216 image5.svg| http://///////
6221 <table class="gallery" cellspacing="0" cellpadding="0">
6223 <td><div class="gallerybox" style="width: 155px;">
6224 <div style="height: 152px;">Image1.png</div>
6225 <div class="gallerytext">
6228 <td><div class="gallerybox" style="width: 155px;">
6229 <div style="height: 152px;">Image2.gif</div>
6230 <div class="gallerytext">
6235 <td><div class="gallerybox" style="width: 155px;">
6236 <div style="height: 152px;">Image3</div>
6237 <div class="gallerytext">
6240 <td><div class="gallerybox" style="width: 155px;">
6241 <div style="height: 152px;">Image4</div>
6242 <div class="gallerytext">
6249 <td><div class="gallerybox" style="width: 155px;">
6250 <div style="height: 152px;">Image5.svg</div>
6251 <div class="gallerytext">
6252 <p><a href="http://///////" class="external free" rel="nofollow">http://///////</a>
6256 <td><div class="gallerybox" style="width: 155px;">
6257 <div style="height: 152px;">* image6</div>
6258 <div class="gallerytext">
6267 HTML Hex character encoding (spells the word "JavaScript")
6269 JavaScript
6271 <p>JavaScript
6276 __FORCETOC__ override
6288 ISBN 978-0-1234-56 789
6290 <p><a href="/wiki/Special:BookSources/9780123456" class="internal">ISBN 978-0-1234-56</a> 789
6295 ISBN followed by 5 spaces
6306 ISBN ISBN 1234567890
6308 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1234567890</a>
6317 <p>RFC <a href="http://tools.ietf.org/html/rfc1234" class="external">RFC 1234</a>
6322 Double RFC with a wiki link
6326 <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>
6335 <p><a href="http://tools.ietf.org/html/rfc983" class="external">RFC 983</a> 987
6340 Centre-aligned image
6342 [[Image:foobar.jpg|centre]]
6344 <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>
6351 [[Image:foobar.jpg|none]]
6353 <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>
6358 Width + Height sized image (using px) (height is ignored)
6360 [[Image:foobar.jpg|640x480px]]
6362 <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>
6367 Width-sized image (using px, no following whitespace)
6369 [[Image:foobar.jpg|640px]]
6371 <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>
6376 Width-sized image (using px, with following whitespace - test regression from r39467)
6378 [[Image:foobar.jpg|640px ]]
6380 <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>
6385 Width-sized image (using px, with preceding whitespace - test regression from r39467)
6387 [[Image:foobar.jpg| 640px]]
6389 <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>
6394 Another italics / bold test
6402 # Note the results may be incorrect, as parserTest output included this:
6403 # XML error: Mismatched tag at byte 6120:
6404 # ...<dd> </dt></dl> </dd...
6410 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
6421 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
6423 Images with the "|" character in the comment
6425 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
6427 <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>
6432 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
6434 <html><script>alert(1);</script></html>
6436 <p><html><script>alert(1);</script></html>
6441 HTML with raw HTML ($wgRawHtml==true)
6445 <html><script>alert(1);</script></html>
6447 <p><script>alert(1);</script>
6452 Parents of subpages, one level up
6454 subpage title=[[Subpage test/L1/L2/L3]]
6458 <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>
6464 Parents of subpages, one level up, not named
6466 subpage title=[[Subpage test/L1/L2/L3]]
6470 <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>
6477 Parents of subpages, two levels up
6480 subpage title=[[Subpage test/L1/L2/L3]]
6484 <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>
6489 Parents of subpages, two levels up, without trailing slash or name.
6491 subpage title=[[Subpage test/L1/L2/L3]]
6500 Parents of subpages, two levels up, with lots of extra trailing slashes.
6502 subpage title=[[Subpage test/L1/L2/L3]]
6506 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
6511 Definition list code coverage
6517 <dl><dt> title </dt><dd> def
6518 </dd><dt> title </dt><dd> def
6519 </dd><dt>title</dt><dd> def
6525 Don't fall for the self-closing div
6527 <div>hello world</div/>
6529 <div>hello world</div>
6538 <p>[[:Template:Msg]]
6547 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
6551 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
6553 Always escape literal '>' in output, not just after '<'
6557 <p>test ><>
6567 <p>This is a test template
6568 This is a test template
6580 Inclusion of !userCanEdit() content
6584 <h2 id="header"><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">header</span></h2>
6590 Out-of-order TOC heading levels
6599 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6601 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
6603 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
6604 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
6607 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
6609 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
6610 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
6614 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
6615 <h2 id="2"><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">2</span></h2>
6616 <h6 id="6"><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">6</span></h6>
6617 <h3 id="3"><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">3</span></h3>
6618 <h1 id="1"><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">1</span></h1>
6619 <h5 id="5"><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">5</span></h5>
6620 <h2 id="2_2"><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">2</span></h2>
6626 ISBN with a dummy number
6636 ISBN with space-delimited number
6640 <p><a href="/wiki/Special:BookSources/9290170328" class="internal">ISBN 92 9017 032 8</a>
6646 ISBN with multiple spaces, no number
6665 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1234567890</a>
6666 </p><p>ISBN 12345678901
6672 ISBN with trailing year (bug 8110)
6674 ISBN 1-234-56789-0 - 2006
6676 ISBN 1 234 56789 0 - 2006
6678 <p><a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1-234-56789-0</a> - 2006
6679 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1 234 56789 0</a> - 2006
6687 {{anchorencode:foo bar©#%n}}
6689 <p>foo_bar.C2.A9.23.25n
6695 Bug 8293: Use of center tag ruins paragraph formatting
6717 ### Language variants related tests
6720 Self-link in language variants
6722 title=[[Dunav]] language=sr
6724 Both [[Dunav]] and [[Дунав]] are names for this river.
6726 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
6732 Link to pages in language variants
6736 Main Page can be written as [[Маин Паге]]
6738 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
6744 Multiple links to pages in language variants
6748 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
6750 <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>.
6756 Simple template in language variants
6762 <p>This is a test template
6768 Template with explicit namespace in language variants
6774 <p>This is a test template
6780 Basic test for template parameter in language variants
6784 {{парамтест|param=foo}}
6786 <p>This is a test template with parameter foo
6792 Simple category in language variants
6796 [[:Category:МедиаWики Усер'с Гуиде]]
6798 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6803 Stripping -{}- tags (language variants)
6807 Latin proverb: -{Ne nuntium necare}-
6809 <p>Latin proverb: Ne nuntium necare
6815 Prevent conversion with -{}- tags (language variants)
6817 language=sr variant=sr-ec
6819 Latinski: -{Ne nuntium necare}-
6821 <p>Латински: Ne nuntium necare
6827 Prevent conversion of text with -{}- tags (language variants)
6829 language=sr variant=sr-ec
6831 Latinski: -{Ne nuntium necare}-
6833 <p>Латински: Ne nuntium necare
6839 Prevent conversion of links with -{}- tags (language variants)
6841 language=sr variant=sr-ec
6845 <p><a href="/index.php?title=Main_Page&variant=sr-ec" title="Main Page">Main Page</a>
6851 -{}- tags within headlines (within html for parserConvert())
6853 language=sr variant=sr-ec
6857 <h2 id="-.7BNaslov.7D-"><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Уреди део: Naslov">уреди</a>]</span> <span class="mw-headline"> Naslov </span></h2>
6863 Explicit definition of language variant alternatives
6865 language=zh variant=zh-tw
6867 -{zh:China;zh-tw:Taiwan}-, not China
6869 <p>Taiwan, not China
6875 Adding explicit session-wise language variant mapping (A flag)
6877 language=zh variant=zh-tw
6879 -{A|zh:China;zh-tw:Taiwan}- is China
6887 Adding explicit conversion rule for title (T flag)
6889 language=zh variant=zh-tw
6891 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
6893 <p>Should be stripped!
6899 Raw output of variant escape tags (R flag)
6901 language=zh variant=zh-tw
6903 Raw: -{R|zh:China;zh-tw:Taiwan}-
6905 <p>Raw: zh:China;zh-tw:Taiwan
6911 Do not convert roman numbers to language variants
6913 language=sr variant=sr-ec
6917 <p>Фридрих IV је цар.
6928 Bug 529: Uncovered bullet
6939 Bug 529: Uncovered table already at line-start
6960 Bug 529: Uncovered bullet in parser function result
6962 * Foo {{lc:{{bullet}} }}
6971 Bug 5678: Double-parsed template argument
6973 {{lc:{{{1}}}|hello}}
6980 Bug 5678: Double-parsed template invocation
6982 {{lc:{{paramtest {{!}} param = hello }} }}
6984 <p>{{paramtest | param = hello }}
6989 Morwen/13: Unclosed link followed by heading
6996 <h2 id="heading"><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">heading</span></h2>
7001 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
7008 <h1 id="heading"> <span class="mw-headline">heading</span></h1>
7013 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
7020 <h2 id="heading"><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">heading</span></h2>
7035 Paragraphs inside divs (no extra line breaks)
7047 Paragraphs inside divs (extra line break on open)
7062 Paragraphs inside divs (extra line break on close)
7077 Paragraphs inside divs (extra line break on open and close)
7093 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
7095 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
7097 <blockquote>Line one
7099 Line two</blockquote>
7101 <blockquote>Line one
7102 Line two</blockquote>
7107 Bug 6200: paragraphs inside blockquotes (extra line break on open)
7112 Line two</blockquote>
7117 Line two</blockquote>
7122 Bug 6200: paragraphs inside blockquotes (extra line break on close)
7124 <blockquote>Line one
7129 <blockquote>Line one
7137 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
7154 Paragraphs inside blockquotes/divs (no extra line breaks)
7156 <blockquote><div>Line one
7158 Line two</div></blockquote>
7160 <blockquote><div>Line one
7161 Line two</div></blockquote>
7166 Paragraphs inside blockquotes/divs (extra line break on open)
7171 Line two</div></blockquote>
7176 Line two</div></blockquote>
7181 Paragraphs inside blockquotes/divs (extra line break on close)
7183 <blockquote><div>Line one
7188 <blockquote><div>Line one
7196 Paragraphs inside blockquotes/divs (extra line break on open and close)
7213 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
7215 wgLinkHolderBatchSize=0
7221 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
7222 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
7223 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
7228 Free external link invading image caption
7230 [[Image:Foobar.jpg|thumb|http://x|hello]]
7232 <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>
7237 Bug 15196: localised external link numbers
7241 [http://en.wikipedia.org/]
7243 <p><a href="http://en.wikipedia.org/" class="external autonumber" rel="nofollow">[۱]</a>
7248 Multibyte character in padleft
7250 {{padleft:-Hello|7|Æ}}
7257 Multibyte character in padright
7259 {{padright:Hello-|7|Æ}}
7272 <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>
7277 formatdate parser function
7279 {{#formatdate:2009-03-24}}
7281 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
7286 formatdate parser function, with default format
7288 {{#formatdate:2009-03-24|mdy}}
7290 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
7295 Linked date with autoformatting disabled
7297 wgUseDynamicDates=false
7301 <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>
7306 Spacing of numbers in formatted dates
7308 {{#formatdate:January 15}}
7310 <p><span class="mw-formatted-date" title="01-15">January 15</span>
7315 Spacing of numbers in formatted dates (linked)
7317 wgUseDynamicDates=true
7321 <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>
7326 Leading > blockquote syntax
7352 Edit comment with link
7356 I like the [[Main Page]] a lot
7358 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
7362 Edit comment with link and link text
7366 I like the [[Main Page|best pages]] a lot
7368 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
7372 Edit comment with link and link text with suffix
7376 I like the [[Main Page|best page]]s a lot
7378 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
7382 Edit comment with section link (non-local, eg in history list)
7384 comment title=[[Main Page]]
7386 /* External links */ removed bogus entries
7388 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
7392 Edit comment with section link (local, eg in diff view)
7394 comment local title=[[Main Page]]
7396 /* External links */ removed bogus entries
7398 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
7402 Edit comment with subpage link (bug 14080)
7406 title=[[Subpage test]]
7408 Poked at a [[/subpage]] here...
7410 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
7414 Edit comment with subpage link and link text (bug 14080)
7418 title=[[Subpage test]]
7420 Poked at a [[/subpage|neat little page]] here...
7422 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
7426 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
7429 title=[[Subpage test]]
7431 Poked at a [[/subpage]] here...
7433 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
7443 Try for 100% code coverage