1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # comment run through Linker::formatComment() instead of main parser
25 # local format section links in edit comment text as local links
27 # For testing purposes, temporary articles can created:
28 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
29 # where '/' denotes a newline.
31 # This is the standard article assumed to exist.
68 This is a simple paragraph.
70 <p>This is a simple paragraph.
90 * plain''italic''plain
91 * plain''italic''plain''italic''plain
92 * plain'''bold'''plain
93 * plain'''bold'''plain'''bold'''plain
94 * plain''italic''plain'''bold'''plain
95 * plain'''bold'''plain''italic''plain
96 * plain''italic'''bold-italic'''italic''plain
97 * plain'''bold''bold-italic''bold'''plain
98 * plain'''''bold-italic'''italic''plain
99 * plain'''''bold-italic''bold'''plain
100 * plain''italic'''bold-italic'''''plain
101 * plain'''bold''bold-italic'''''plain
102 * plain l'''italic''plain
103 * plain l''''bold''' plain
106 </li><li> plain<i>italic</i>plain
107 </li><li> plain<i>italic</i>plain<i>italic</i>plain
108 </li><li> plain<b>bold</b>plain
109 </li><li> plain<b>bold</b>plain<b>bold</b>plain
110 </li><li> plain<i>italic</i>plain<b>bold</b>plain
111 </li><li> plain<b>bold</b>plain<i>italic</i>plain
112 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
113 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
114 </li><li> plain<i><b>bold-italic</b>italic</i>plain
115 </li><li> plain<b><i>bold-italic</i>bold</b>plain
116 </li><li> plain<i>italic<b>bold-italic</b></i>plain
117 </li><li> plain<b>bold<i>bold-italic</i></b>plain
118 </li><li> plain l'<i>italic</i>plain
119 </li><li> plain l'<b>bold</b> plain
125 ### <nowiki> test cases
129 <nowiki> unordered list
131 <nowiki>* This is not an unordered list item.</nowiki>
133 <p>* This is not an unordered list item.
140 <nowiki>Lorem ipsum dolor
161 :There is not nowiki.
162 :There is <nowiki>nowiki</nowiki>.
164 #There is not nowiki.
165 #There is <nowiki>nowiki</nowiki>.
167 *There is not nowiki.
168 *There is <nowiki>nowiki</nowiki>.
170 <dl><dd>There is not nowiki.
171 </dd><dd>There is nowiki.
173 <ol><li>There is not nowiki.
174 </li><li>There is nowiki.
176 <ul><li>There is not nowiki.
177 </li><li>There is nowiki.
189 <!-- comment 1 --> asdf
225 asdf<!-- comment 1 -->jkl
235 <!-- foo --> b <!-- bar -->
249 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
255 Comment semantics and delimiters
257 <!-- --><!----><!-----><!------>
263 Comment semantics and delimiters, redux
265 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
266 -- foo -- funky huh? ... -->
272 Comment semantics and delimiters: directors cut
274 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
275 everything starting with < followed by !-- until the first -- and > we see,
276 that wouldn't be valid XML however, since in XML -- has to terminate a comment
284 Comment semantics: nesting
286 <!--<!-- no, we're not going to do anything fancy here -->-->
293 Comment semantics: unclosed comment at end
295 <!--This comment will run out to the end of the document
301 Comment in template title
310 Comment on its own line post-expand
322 ### Preformatted text
331 And a [[Main Page|link]]
337 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
342 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
359 Regression with preformatted in <center>
373 <pre> with attributes (bug 3202)
375 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
377 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
382 <pre> with width attribute (bug 3202)
384 <pre width="8">Narrow screen goodies</pre>
386 <pre width="8">Narrow screen goodies</pre>
391 <pre> with forbidden attribute (bug 3202)
393 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
395 <pre width="8">Narrow screen goodies</pre>
400 <pre> with forbidden attribute values (bug 3202)
402 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
404 <pre width="8">Narrow screen goodies</pre>
416 <dl><dt> name </dt><dd> Definition
422 Definition list for indentation only
426 <dl><dd> Indented text
432 Definition list with no space
436 <dl><dt>name</dt><dd>Definition
442 Definition list with URL link
444 ; http://example.com/ : definition
446 <dl><dt> <a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a> </dt><dd> definition
452 Definition list with bracketed URL link
454 ;[http://www.example.com/ Example]:Something about it
456 <dl><dt><a href="http://www.example.com/" class="external text" rel="nofollow">Example</a></dt><dd>Something about it
462 Definition list with wikilink containing colon
464 ; [[Help:FAQ]]: The least-read page on Wikipedia
466 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
471 # At Brion's and JeLuF's insistence... :)
473 Definition list with news link containing colon
475 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
477 <dl><dt> <a href="news:alt.wikipedia.rox" class="external free" rel="nofollow">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
483 Malformed definition list with colon
485 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
487 <dl><dt> <a href="news:alt.wikipedia.rox" class="external free" rel="nofollow">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
493 Definition lists: colon in external link text
495 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
497 <dl><dt> <a href="http://www.wikipedia2.org/" class="external text" rel="nofollow">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
503 Definition lists: colon in HTML attribute
505 ;<b style="display: inline">bold</b>
507 <dl><dt><b style="display: inline">bold</b>
514 Definition lists: self-closed tag
516 ;one<br/>two : two-line fun
518 <dl><dt>one<br />two </dt><dd> two-line fun
528 External links: non-bracketed
530 Non-bracketed: http://example.com
532 <p>Non-bracketed: <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>
537 External links: numbered
539 Numbered: [http://example.com]
540 Numbered: [http://example.net]
541 Numbered: [http://example.com]
543 <p>Numbered: <a href="http://example.com" class="external autonumber" rel="nofollow">[1]</a>
544 Numbered: <a href="http://example.net" class="external autonumber" rel="nofollow">[2]</a>
545 Numbered: <a href="http://example.com" class="external autonumber" rel="nofollow">[3]</a>
550 External links: specified text
552 Specified text: [http://example.com link]
554 <p>Specified text: <a href="http://example.com" class="external text" rel="nofollow">link</a>
559 External links: trail
561 Linktrails should not work for external links: [http://example.com link]s
563 <p>Linktrails should not work for external links: <a href="http://example.com" class="external text" rel="nofollow">link</a>s
568 External links: dollar sign in URL
570 http://example.com/1$2345
572 <p><a href="http://example.com/1$2345" class="external free" rel="nofollow">http://example.com/1$2345</a>
577 External links: dollar sign in URL (named)
579 [http://example.com/1$2345]
581 <p><a href="http://example.com/1$2345" class="external autonumber" rel="nofollow">[1]</a>
586 External links: open square bracket forbidden in URL (bug 4377)
588 http://example.com/1[2345
590 <p><a href="http://example.com/1" class="external free" rel="nofollow">http://example.com/1</a>[2345
595 External links: open square bracket forbidden in URL (named) (bug 4377)
597 [http://example.com/1[2345]
599 <p><a href="http://example.com/1" class="external text" rel="nofollow">[2345</a>
604 External links: nowiki in URL link text (bug 6230)
606 [http://example.com/ <nowiki>''example site''</nowiki>]
608 <p><a href="http://example.com/" class="external text" rel="nofollow">''example site''</a>
613 External links: newline forbidden in text (bug 6230 regression check)
615 [http://example.com/ first
618 <p>[<a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a> first
626 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
628 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
633 External image from https
635 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
637 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
642 Link to non-http image, no img tag
644 Link to non-http image, no img tag: ftp://example.com/test.jpg
646 <p>Link to non-http image, no img tag: <a href="ftp://example.com/test.jpg" class="external free" rel="nofollow">ftp://example.com/test.jpg</a>
651 External links: terminating separator
653 Terminating separator: http://example.com/thing,
655 <p>Terminating separator: <a href="http://example.com/thing" class="external free" rel="nofollow">http://example.com/thing</a>,
660 External links: intervening separator
662 Intervening separator: http://example.com/1,2,3
664 <p>Intervening separator: <a href="http://example.com/1,2,3" class="external free" rel="nofollow">http://example.com/1,2,3</a>
669 External links: old bug with URL in query
671 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
673 <p>Old bug with URL in query: <a href="http://example.com/thing?url=http://example.com" class="external text" rel="nofollow">link</a>
678 External links: old URL-in-URL bug, mixed protocols
680 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
682 <p>And again with mixed protocols: <a href="ftp://example.com?url=http://example.com" class="external text" rel="nofollow">link</a>
687 External links: URL in text
689 URL in text: [http://example.com http://example.com]
691 <p>URL in text: <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>
696 External links: Clickable images
698 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
700 <p>ja-style clickable images: <a href="http://example.com" class="external text" rel="nofollow"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
705 External links: raw ampersand
707 Old & use: http://x&y
709 <p>Old & use: <a href="http://x&y" class="external free" rel="nofollow">http://x&y</a>
714 External links: encoded ampersand
716 Old & use: http://x&y
718 <p>Old & use: <a href="http://x&y" class="external free" rel="nofollow">http://x&y</a>
723 External links: encoded equals (bug 6102)
725 http://example.com/?foo=bar
727 <p><a href="http://example.com/?foo=bar" class="external free" rel="nofollow">http://example.com/?foo=bar</a>
732 External links: [raw ampersand]
734 Old & use: [http://x&y]
736 <p>Old & use: <a href="http://x&y" class="external autonumber" rel="nofollow">[1]</a>
741 External links: [encoded ampersand]
743 Old & use: [http://x&y]
745 <p>Old & use: <a href="http://x&y" class="external autonumber" rel="nofollow">[1]</a>
750 External links: [encoded equals] (bug 6102)
752 [http://example.com/?foo=bar]
754 <p><a href="http://example.com/?foo=bar" class="external autonumber" rel="nofollow">[1]</a>
759 External links: [IDN ignored character reference in hostname; strip it right off]
761 [http://e‌xample.com/]
763 <p><a href="http://example.com/" class="external autonumber" rel="nofollow">[1]</a>
768 External links: IDN ignored character reference in hostname; strip it right off
770 http://e‌xample.com/
772 <p><a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a>
777 External links: www.jpeg.org (bug 554)
781 <p><a href="http://www.jpeg.org" class="external free" rel="nofollow">http://www.jpeg.org</a>
786 External links: URL within URL (original bug 2)
788 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
790 <p><a href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp" class="external autonumber" rel="nofollow">[1]</a>
795 BUG 361: URL inside bracketed URL
797 [http://www.example.com/foo http://www.example.com/bar]
799 <p><a href="http://www.example.com/foo" class="external text" rel="nofollow">http://www.example.com/bar</a>
804 BUG 361: URL within URL, not bracketed
806 http://www.example.com/foo?=http://www.example.com/bar
808 <p><a href="http://www.example.com/foo?=http://www.example.com/bar" class="external free" rel="nofollow">http://www.example.com/foo?=http://www.example.com/bar</a>
813 BUG 289: ">"-token in URL-tail
815 http://www.example.com/<hello>
817 <p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a><hello>
822 BUG 289: literal ">"-token in URL-tail
824 http://www.example.com/<b>html</b>
826 <p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a><b>html</b>
831 BUG 289: ">"-token in bracketed URL
833 [http://www.example.com/<hello> stuff]
835 <p><a href="http://www.example.com/" class="external text" rel="nofollow"><hello> stuff</a>
840 BUG 289: literal ">"-token in bracketed URL
842 [http://www.example.com/<b>html</b> stuff]
844 <p><a href="http://www.example.com/" class="external text" rel="nofollow"><b>html</b> stuff</a>
849 BUG 289: literal double quote at end of URL
851 http://www.example.com/"hello"
853 <p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a>"hello"
858 BUG 289: literal double quote in bracketed URL
860 [http://www.example.com/"hello" stuff]
862 <p><a href="http://www.example.com/" class="external text" rel="nofollow">"hello" stuff</a>
867 External links: invalid character
868 Fixme: the missing char seems to have gone missing
872 [http://www.example.com test]
874 <p>[<a href="http://www.example.com" class="external free" rel="nofollow">http://www.example.com</a> test]
879 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
881 [http://www.example.com test]
883 <p><a href="http://www.example.com" class="external text" rel="nofollow">test</a>
888 External links: wiki links within external link (Bug 3695)
890 [http://example.com [[wikilink]] embedded in ext link]
892 <p><a href="http://example.com" class="external text" rel="nofollow"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a href="http://example.com" class="external text" rel="nofollow"> embedded in ext link</a>
897 BUG 787: Links with one slash after the url protocol are invalid
901 [http:/example.com title]
904 </p><p>[http:/example.com title]
909 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
911 ''[http://example.com text'']
912 [http://example.com '''text]'''
913 ''Something [http://example.com in italic'']
914 ''Something [http://example.com mixed''''', even bold]'''
915 '''''Now [http://example.com both''''']
917 <p><a href="http://example.com" class="external text" rel="nofollow"><i>text</i></a>
918 <a href="http://example.com" class="external text" rel="nofollow"><b>text</b></a>
919 <i>Something </i><a href="http://example.com" class="external text" rel="nofollow"><i>in italic</i></a>
920 <i>Something </i><a href="http://example.com" class="external text" rel="nofollow"><i>mixed</i><b>, even bold</b></a>
921 <i><b>Now </b></i><a href="http://example.com" class="external text" rel="nofollow"><i><b>both</b></i></a>
929 http://www.example.com/?title=AT%26T
931 <p><a href="http://www.example.com/?title=AT%26T" class="external free" rel="nofollow">http://www.example.com/?title=AT%26T</a>
936 Bug 4781, 5267: %26 in URL
938 http://www.example.com/?title=100%25_Bran
940 <p><a href="http://www.example.com/?title=100%25_Bran" class="external free" rel="nofollow">http://www.example.com/?title=100%25_Bran</a>
945 Bug 4781, 5267: %28, %29 in URL
947 http://www.example.com/?title=Ben-Hur_%281959_film%29
949 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external free" rel="nofollow">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
955 Bug 4781: %26 in autonumber URL
957 [http://www.example.com/?title=AT%26T]
959 <p><a href="http://www.example.com/?title=AT%26T" class="external autonumber" rel="nofollow">[1]</a>
964 Bug 4781, 5267: %26 in autonumber URL
966 [http://www.example.com/?title=100%25_Bran]
968 <p><a href="http://www.example.com/?title=100%25_Bran" class="external autonumber" rel="nofollow">[1]</a>
973 Bug 4781, 5267: %28, %29 in autonumber URL
975 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
977 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external autonumber" rel="nofollow">[1]</a>
983 Bug 4781: %26 in bracketed URL
985 [http://www.example.com/?title=AT%26T link]
987 <p><a href="http://www.example.com/?title=AT%26T" class="external text" rel="nofollow">link</a>
992 Bug 4781, 5267: %26 in bracketed URL
994 [http://www.example.com/?title=100%25_Bran link]
996 <p><a href="http://www.example.com/?title=100%25_Bran" class="external text" rel="nofollow">link</a>
1001 Bug 4781, 5267: %28, %29 in bracketed URL
1003 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1005 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external text" rel="nofollow">link</a>
1010 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1012 Some [http://example.com/ pretty ''italics'' and stuff]!
1014 <p>Some <a href="http://example.com/" class="external text" rel="nofollow">pretty <i>italics</i> and stuff</a>!
1019 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1021 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1023 <p><i>Some </i><a href="http://example.com/" class="external text" rel="nofollow"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1028 URL-encoding in URL functions (single parameter)
1030 {{localurl:Some page|amp=&}}
1032 <p>/index.php?title=Some_page&amp=&
1037 URL-encoding in URL functions (multiple parameters)
1039 {{localurl:Some page|q=?&=&}}
1041 <p>/index.php?title=Some_page&q=?&amp=&
1052 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1054 Normal text. '''''Bold italic text.''''' Normal text.
1056 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1057 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1063 Unclosed and unmatched quotes
1065 '''''Bold italic text '''with bold deactivated''' in between.'''''
1067 '''''Bold italic text ''with italic deactivated'' in between.'''''
1071 ..spanning two paragraphs (should not work).'''
1073 '''Bold tag left open
1075 ''Italic tag left open
1079 <!-- Unmatching number of opening, closing tags: -->
1080 '''This year''''s election ''should'' beat '''last year''''s.
1082 ''Tom'''s car is bigger than ''Susan'''s.
1084 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1085 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1086 </p><p><b>Bold text..</b>
1087 </p><p>..spanning two paragraphs (should not work).
1088 </p><p><b>Bold tag left open</b>
1089 </p><p><i>Italic tag left open</i>
1091 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1092 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1099 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1102 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1103 # is the bare minimun required by the spec, see:
1104 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1106 A table with no data.
1112 # A table with nothing but a caption is invalid XHTML, we might want to render
1113 # this as <p>caption</p>
1115 A table with nothing but a caption
1123 </caption><tr><td></td></tr></table>
1147 Multiplication table
1149 {| border="1" cellpadding="2"
1150 |+Multiplication table
1152 ! × !! 1 !! 2 !! 3
1170 <table border="1" cellpadding="2">
1171 <caption>Multiplication table
1174 <th> × </th><th> 1 </th><th> 2 </th><th> 3
1178 </th><td> 1 </td><td> 2 </td><td> 3
1182 </th><td> 2 </td><td> 4 </td><td> 6
1186 </th><td> 3 </td><td> 6 </td><td> 9
1190 </th><td> 4 </td><td> 8 </td><td> 12
1194 </th><td> 5 </td><td> 10 </td><td> 15
1202 {| align=right border=1
1204 |rowspan=2| Cell 2, row 1 (and 2)
1211 <table align="right" border="1">
1214 </td><td rowspan="2"> Cell 2, row 1 (and 2)
1215 </td><td> Cell 3, row 1
1219 </td><td> Cell 3, row 2
1230 {| bgcolor=#ABCDEF border=2
1235 |the original table again
1242 <table bgcolor="#ABCDEF" border="2">
1249 </td><td>the original table again
1255 Invalid attributes in table cell (bug 1830)
1269 # FIXME: It's not clear at all that this is the result we want, but the actual
1270 # output right now is invalid XML, so clearly something is wrong. The result
1271 # specified here is now valid XML, which is an improvement . . .
1273 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1278 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1282 <td><a href="ftp://|x||" class="external autonumber" title="ftp://|x||" rel="nofollow">[1]</a></td><td>" onmouseover="alert(document.cookie)">test
1294 Plain link, capitalized
1298 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1303 Plain link, uncapitalized
1307 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1314 [[Main Page|The Main Page]]
1316 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1325 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1330 Broken link with fragment
1332 [[Zigzagzogzagzig#zug]]
1334 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1339 Special page link with fragment
1341 [[Special:Version#anchor]]
1343 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1348 Nonexistent special page link with fragment
1350 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1352 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1359 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1361 <p>xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a>, xxx<a href="/wiki/Main_Page" title="Main Page">Main Page</a>, Xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a> XXX<a href="/wiki/Main_Page" title="Main Page">main Page</a>, XXX<a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1368 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1370 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>!!!
1375 Link with 3 brackets
1384 Piped link with 3 brackets
1386 [[[main page|the main page]]]
1388 <p>[[[main page|the main page]]]
1393 Link with multiple pipes
1395 [[Main Page|The|Main|Page]]
1397 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1404 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1406 <p><a href="/index.php?title=Talk:Parser_testing&action=edit&redlink=1" class="new" title="Talk:Parser testing (page does not exist)">Talk:Parser testing</a>, <a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">Meta:Disclaimers</a>
1411 Piped link to namespace
1413 [[Meta:Disclaimers|The disclaimers]]
1415 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1422 [[Usually caused by a typo (oops}]]
1424 <p>[[Usually caused by a typo (oops}]]
1429 Link containing % (not as a hex sequence)
1433 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
1438 Link containing % as a single hex sequence interpreted to char
1442 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
1447 Link containing % as a double hex sequence interpreted to hex sequence
1451 <p>[[7%2525 Solution]]
1456 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1457 Example for such a section: == < ==
1459 [[%23%3c]][[%23%3e]]
1461 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1466 Link containing "<#" and ">#" as a hex sequences
1468 [[%3c%23]][[%3e%23]]
1470 <p>[[%3c%23]][[%3e%23]]
1475 Link containing double-single-quotes '' (bug 4598)
1479 [[Lista d''e paise d''o munno]]
1481 <p><a href="/index.php?title=Lista_d%27%27e_paise_d%27%27o_munno&action=edit" class="new" title="Lista d''e paise d''o munno">Lista d''e paise d''o munno</a>
1486 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1488 Some [[Link|pretty ''italics'' and stuff]]!
1490 <p>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!
1495 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1497 ''Some [[Link|pretty ''italics'' and stuff]]!
1499 <p><i>Some </i><a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1506 [[http://www.example.com]]
1508 <p>[<a href="http://www.example.com" class="external autonumber" rel="nofollow">[1]</a>]
1512 # I'm fairly sure the expected result here is wrong.
1513 # We want these to be URL links, not pseudo-pages with URLs for titles....
1514 # However the current output is also pretty screwy.
1517 # I'm changing it to match the current output--it arguably makes more
1518 # sense in the light of the test above. Old expected result was:
1519 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1521 # But I think this test is bordering on "garbage in, garbage out" anyway.
1526 Piped link to URL: [[http://www.example.com|an example URL]]
1528 <p>Piped link to URL: [<a href="http://www.example.com|an" class="external text" rel="nofollow">example URL</a>]
1533 BUG 2: [[page|http://url/]] should link to page, not http://url/
1535 [[Main Page|http://url/]]
1537 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1542 BUG 337: Escaped self-links should be bold
1546 [[Bug462]] [[Bug462]]
1548 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1553 Self-link to section should not be bold
1557 [[Main Page#section]]
1559 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1570 Self-link to numeric title
1576 <p><strong class="selflink">0</strong>
1581 Link to numeric-equivalent title
1587 <p><a href="/wiki/00" title="00">00</a>
1592 <nowiki> inside a link
1594 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1596 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1601 Non-breaking spaces in title
1603 [[ Main Page ]]
1605 <p><a href="/wiki/Main_Page" title="Main Page"> Main Page </a>
1611 ### Interwiki links (see maintenance/interwiki.sql)
1615 Inline interwiki link
1617 [[MeatBall:SoftSecurity]]
1619 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1624 Inline interwiki link with empty title (bug 2372)
1628 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw" title="meatball:">MeatBall:</a>
1633 Interwiki link encoding conversion (bug 1636)
1635 *[[Wikipedia:ro:Olteniţa]]
1636 *[[Wikipedia:ro:Olteniţa]]
1638 <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>
1639 </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>
1645 Interwiki link with fragment (bug 2130)
1647 [[MeatBall:SoftSecurity#foo]]
1649 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1664 Double interlanguage link
1675 Interlanguage link, with prefix links
1687 Double interlanguage link, with prefix links (bug 8897)
1714 Incorrecly removing closing slashes from correctly formed XHTML
1716 <br style="clear:both;" />
1718 <p><br style="clear:both;" />
1723 Failing to transform badly formed HTML into correct XHTML
1729 <p><br clear="left" />
1730 <br clear="right" />
1736 Horizontal ruler (should it add that extra space?)
1750 ### Block-level elements
1773 <ol><li>Numbered list
1790 ***#Number on level 4
1792 **#Number on level 3
1793 **#Number on level 3
1798 <ol><li> with numbers
1800 <ul><li> and bullets
1802 <ol><li> and numbers
1804 </li><li>bullets again
1805 <ul><li>bullet level 2
1806 <ul><li>bullet level 3
1807 <ol><li>Number on level 4
1810 </li><li>bullet level 2
1811 <ol><li>Number on level 3
1812 </li><li>Number on level 3
1815 <ol><li>number level 2
1823 List items are not parsed correctly following a <pre> block (bug 785)
1829 <ul><li> <pre>foo</pre>
1830 </li><li> <pre>bar</pre>
1841 Magic Word: {{CURRENTDAY}}
1850 Magic Word: {{CURRENTDAY2}}
1859 Magic Word: {{CURRENTDAYNAME}}
1868 Magic Word: {{CURRENTDOW}}
1877 Magic Word: {{CURRENTMONTH}}
1886 Magic Word: {{CURRENTMONTHABBREV}}
1888 {{CURRENTMONTHABBREV}}
1895 Magic Word: {{CURRENTMONTHNAME}}
1897 {{CURRENTMONTHNAME}}
1904 Magic Word: {{CURRENTMONTHNAMEGEN}}
1906 {{CURRENTMONTHNAMEGEN}}
1913 Magic Word: {{CURRENTTIME}}
1922 Magic Word: {{CURRENTWEEK}} (@bug 4594)
1931 Magic Word: {{CURRENTYEAR}}
1940 Magic Word: {{FULLPAGENAME}}
1942 title=[[User:Ævar Arnfjörð Bjarmason]]
1946 <p>User:Ævar Arnfjörð Bjarmason
1951 Magic Word: {{FULLPAGENAMEE}}
1953 title=[[User:Ævar Arnfjörð Bjarmason]]
1957 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
1962 Magic Word: {{NAMESPACE}}
1964 title=[[User:Ævar Arnfjörð Bjarmason]]
1973 Magic Word: {{NAMESPACEE}}
1975 title=[[User:Ævar Arnfjörð Bjarmason]]
1984 Magic Word: {{NUMBEROFARTICLES}}
1986 {{NUMBEROFARTICLES}}
1993 Magic Word: {{NUMBEROFFILES}}
2002 Magic Word: {{PAGENAME}}
2004 title=[[User:Ævar Arnfjörð Bjarmason]]
2008 <p>Ævar Arnfjörð Bjarmason
2013 Magic Word: {{PAGENAMEE}}
2015 title=[[User:Ævar Arnfjörð Bjarmason]]
2019 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2024 Magic Word: {{REVISIONID}}
2033 Magic Word: {{SCRIPTPATH}}
2042 Magic Word: {{SERVER}}
2046 <p><a href="http://localhost" class="external free" rel="nofollow">http://localhost</a>
2051 Magic Word: {{SERVERNAME}}
2060 Magic Word: {{SITENAME}}
2069 Namespace 1 {{ns:1}}
2078 Namespace 1 {{ns:01}}
2087 Namespace 0 {{ns:0}} (bug 4783)
2095 Namespace 0 {{ns:00}} (bug 4783)
2103 Namespace -1 {{ns:-1}}
2112 Namespace User {{ns:User}}
2121 Namespace User talk {{ns:User_talk}}
2130 Namespace User talk {{ns:uSeR tAlK}}
2139 Namespace File {{ns:File}}
2148 Namespace File {{ns:Image}}
2157 Namespace (lang=de) Benutzer {{ns:User}}
2168 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2174 <p>Benutzer Diskussion
2183 Magic links: internal link to RFC (bug 479)
2187 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2192 Magic links: RFC (bug 479)
2196 <p><a href="http://tools.ietf.org/html/rfc822" class="external mw-magiclink-rfc">RFC 822</a>
2201 Magic links: ISBN (bug 1937)
2205 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2210 Magic links: PMID incorrectly converts space to underscore
2214 <p><a href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract" class="external mw-magiclink-pmid">PMID 1234</a>
2223 Nonexistent template
2225 {{thistemplatedoesnotexist}}
2227 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2234 This is a test template
2242 <p>This is a test template
2247 Template with explicit namespace
2251 <p>This is a test template
2259 This is a test template with parameter {{{param}}}
2265 {{paramtest|param=foo}}
2267 <p>This is a test template with parameter foo
2272 Template:paramtestnum
2278 Template unnamed parameter
2280 {{paramtestnum|Main Page|the main page}}
2282 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2287 Template:templatesimple
2293 Template:templateredirect
2295 #redirect [[Template:templatesimple]]
2299 Template:templateasargtestnum
2305 Template:templateasargtest
2307 {{template{{{templ}}}}}
2311 Template:templateasargtest2
2317 Template with template name as unnamed argument
2319 {{templateasargtestnum|templatesimple}}
2326 Template with template name as argument
2328 {{templateasargtest|templ=simple}}
2335 Template with template name as argument (2)
2337 {{templateasargtest2|templ=templatesimple}}
2344 Template:templateasargtestdefault
2346 {{{{{templ|templatesimple}}}}}
2356 Template with default value
2358 {{templateasargtestdefault}}
2365 Template with default value (value set)
2367 {{templateasargtestdefault|templ=templa}}
2376 {{templateredirect}}
2383 Template with argument in separate line
2385 {{ templateasargtest |
2393 Template with complex template as argument
2396 param ={{ templateasargtest |
2399 <p>This is a test template with parameter (test)
2404 Template with thumb image (with link in description)
2407 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2409 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>
2414 Template:complextemplate
2416 {{{1}}} {{paramtest|
2417 param ={{{param}}}}}
2421 Template with complex arguments
2424 param ={{ templateasargtest |
2425 templ = simple }}|[[Template:complextemplate|link]]}}
2427 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2432 BUG 553: link with two variables in a piped link
2435 |[[{{{1}}}|{{{2}}}]]
2440 <td>[[{{{1}}}|{{{2}}}]]
2446 Magic variable as template parameter
2448 {{paramtest|param={{SITENAME}}}}
2450 <p>This is a test template with parameter MediaWiki
2457 [[{{{param}}}|link]]
2461 Template parameter as link source
2463 {{linktest|param=Main Page}}
2465 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2473 including another template, {{paramtest|param={{{arg}}}}}
2477 Template passing argument to another template
2479 {{paramtest2|arg='hmm'}}
2481 <p>including another template, This is a test template with parameter 'hmm'
2492 Template as link source
2496 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2514 Template infinite loop
2518 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
2523 Template from main namespace
2542 BUG 529: Template with table, not included at beginning of line
2559 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2577 BUG 41: Template parameters shown as broken links
2589 ''None'' of '''this''' should be
2591 but rather passed unmodified
2595 # hmm, fix this or just deprecate msgnw and document its behavior?
2601 {{msgnw:MSGNW test}}
2603 <p>''None'' of '''this''' should be
2605 but rather passed unmodified
2613 {{int:youhavenewmessages|lots of money|not!}}
2615 <p>You have lots of money (not!).
2622 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2626 <includeonly> and <noinclude> being included
2637 <onlyinclude>Foo</onlyinclude>bar
2641 <onlyinclude> being included
2653 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2657 <onlyinclude> and <includeonly> being included
2666 <includeonly> and <noinclude> on a page
2668 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2675 <onlyinclude> on a page
2677 <onlyinclude>Foo</onlyinclude>bar
2684 Template:Includeonly section
2687 ==Includeonly section==
2693 Bug 6563: Edit link generation for section shown by <includeonly>
2695 {{includeonly section}}
2697 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Includeonly_section">Includeonly section</span></h2>
2698 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Section_T-1">Section T-1</span></h2>
2702 # Uses same input as the contents of [[Template:Includeonly section]]
2704 Bug 6563: Section extraction for section shown by <includeonly>
2709 ==Includeonly section==
2717 Bug 6563: Edit link generation for section suppressed by <includeonly>
2720 ==Includeonly section==
2724 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2>
2729 Bug 6563: Section extraction for section suppressed by <includeonly>
2734 ==Includeonly section==
2742 ### Pre-save transform tests
2745 pre-save transform: subst:
2751 This is a test template
2755 pre-save transform: normal template
2765 pre-save transform: nonexistent template
2769 {{thistemplatedoesnotexist}}
2771 {{thistemplatedoesnotexist}}
2776 pre-save transform: subst magic variables
2785 # This is bug 89, which I fixed. -- wtm
2787 pre-save transform: subst: templates with parameters
2791 {{subst:paramtest|param="something else"}}
2793 This is a test template with parameter "something else"
2799 <nowiki>'''not wiki'''</nowiki>
2803 pre-save transform: nowiki in subst (bug 1188)
2807 {{subst:nowikitest}}
2809 <nowiki>'''not wiki'''</nowiki>
2814 Template:commenttest
2816 This template has <!-- a comment --> in it.
2820 pre-save transform: comment in subst (bug 1936)
2824 {{subst:commenttest}}
2826 This template has <!-- a comment --> in it.
2830 pre-save transform: unclosed tag
2834 <nowiki>'''not wiki'''
2836 <nowiki>'''not wiki'''
2840 pre-save transform: mixed tag case
2844 <NOwiki>'''not wiki'''</noWIKI>
2846 <NOwiki>'''not wiki'''</noWIKI>
2850 pre-save transform: unclosed comment in <nowiki>
2854 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2856 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2862 <span onmouseover="alert('crap')">Oh no</span>
2866 (confirming safety of fix for subst bug 1936)
2868 {{Template:dangerous}}
2870 <p><span>Oh no</span>
2875 pre-save transform: comment containing gallery (bug 5024)
2879 <!-- <gallery>data</gallery> -->
2881 <!-- <gallery>data</gallery> -->
2885 pre-save transform: comment containing extension
2889 <!-- <tag>data</tag> -->
2891 <!-- <tag>data</tag> -->
2895 pre-save transform: comment containing nowiki
2899 <!-- <nowiki>data</nowiki> -->
2901 <!-- <nowiki>data</nowiki> -->
2905 pre-save transform: comment containing math
2909 <!-- <math>data</math> -->
2911 <!-- <math>data</math> -->
2915 pre-save transform: <noinclude> in subst (bug 3298)
2925 pre-save transform: <onlyinclude> in subst (bug 3298)
2935 pre-save transform: context links ("pipe trick")
2939 [[Article (context)|]]
2942 [[Bar:Article (context)|]]
2943 [[:Bar:Article (context)|]]
2945 [[|Article (context)]]
2949 [[Article (context)|Article]]
2950 [[Bar:Article|Article]]
2951 [[:Bar:Article|Article]]
2952 [[Bar:Article (context)|Article]]
2953 [[:Bar:Article (context)|Article]]
2955 [[Article (context)]]
2956 [[Bar:X (Y) Z|X (Y) Z]]
2957 [[:Bar:X (Y) Z|X (Y) Z]]
2961 pre-save transform: context links ("pipe trick") with interwiki prefix
2965 [[interwiki:Article|]]
2966 [[:interwiki:Article|]]
2967 [[interwiki:Bar:Article|]]
2968 [[:interwiki:Bar:Article|]]
2970 [[interwiki:Article|Article]]
2971 [[:interwiki:Article|Article]]
2972 [[interwiki:Bar:Article|Bar:Article]]
2973 [[:interwiki:Bar:Article|Bar:Article]]
2977 pre-save transform: context links ("pipe trick") with parens in title
2979 pst title=[[Somearticle (context)]]
2983 [[Article (context)|Article]]
2987 pre-save transform: context links ("pipe trick") with comma in title
2989 pst title=[[Someplace, Somewhere]]
2992 [[Otherplace, Elsewhere|]]
2993 [[Otherplace, Elsewhere, Anywhere|]]
2995 [[Otherplace, Somewhere|Otherplace]]
2996 [[Otherplace, Elsewhere|Otherplace]]
2997 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3001 pre-save transform: context links ("pipe trick") with parens and comma
3003 pst title=[[Someplace (IGNORED), Somewhere]]
3006 [[Otherplace (place), Elsewhere|]]
3008 [[Otherplace, Somewhere|Otherplace]]
3009 [[Otherplace (place), Elsewhere|Otherplace]]
3013 pre-save transform: context links ("pipe trick") with comma and parens
3015 pst title=[[Who, me? (context)]]
3018 [[Me, Myself, and I (1937 song)|]]
3020 [[Yes, you. (context)|Yes, you.]]
3021 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3025 pre-save transform: context links ("pipe trick") with namespace
3027 pst title=[[Ns:Somearticle]]
3031 [[Ns:Article|Article]]
3035 pre-save transform: context links ("pipe trick") with namespace and parens
3037 pst title=[[Ns:Somearticle (context)]]
3041 [[Ns:Article (context)|Article]]
3045 pre-save transform: context links ("pipe trick") with namespace and comma
3047 pst title=[[Ns:Somearticle, Context, Whatever]]
3051 [[Ns:Article, Context, Whatever|Article]]
3055 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3057 pst title=[[Ns:Somearticle, Context (context)]]
3061 [[Ns:Article (context)|Article]]
3065 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3067 pst title=[[Ns:Somearticle (IGNORED), Context]]
3071 [[Ns:Article, Context|Article]]
3076 ### Message transform tests
3079 message transform: magic variables
3089 message transform: should not transform wiki markup
3099 message transform: <noinclude> in transcluded template (bug 4926)
3109 message transform: <onlyinclude> in transcluded template (bug 4926)
3119 {{#special:}} page name, known
3123 {{#special:Recentchanges}}
3125 Special:RecentChanges
3129 {{#special:}} page name, unknown
3133 {{#special:foobarnonexistent}}
3135 No such special page
3144 [[Image:foobar.jpg]]
3146 <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>
3153 [[Image:foobar.jpg|right]]
3155 <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>
3160 Simple image (using File: namespace, now canonical)
3164 <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>
3171 [[Image:foobar.jpg|right|Caption text]]
3173 <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>
3178 Image with link parameter, wiki target
3180 [[Image:foobar.jpg|link=Target page]]
3182 <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>
3187 Image with link parameter, URL target
3189 [[Image:foobar.jpg|link=http://example.com/]]
3191 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3196 Image with empty link parameter
3198 [[Image:foobar.jpg|link=]]
3200 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3205 Image with link parameter (wiki target) and unnamed parameter
3207 [[Image:foobar.jpg|link=Target page|Title]]
3209 <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>
3214 Image with link parameter (URL target) and unnamed parameter
3216 [[Image:foobar.jpg|link=http://example.com/|Title]]
3218 <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>
3225 Image with frame and link
3227 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3229 <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>
3234 Image with frame and link and explicit alt
3236 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3238 <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>
3243 Image with wiki markup in implicit alt
3245 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3247 <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>
3252 Image with wiki markup in explicit alt
3254 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3256 <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>
3261 Link to image page- image page normally doesn't exists, hence edit link
3262 Add test with existing image page
3263 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3267 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3272 Frameless image caption with a free URL
3274 [[Image:foobar.jpg|http://example.com]]
3276 <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>
3281 Thumbnail image caption with a free URL
3283 [[Image:foobar.jpg|thumb|http://example.com]]
3285 <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>
3290 Thumbnail image caption with a free URL and explicit alt
3292 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3294 <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>
3299 BUG 1887: A ISBN with a thumbnail
3301 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3303 <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 mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
3308 BUG 1887: A RFC with a thumbnail
3310 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3312 <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 mw-magiclink-rfc">RFC 12354</a></div></div></div>
3317 BUG 1887: A mailto link with a thumbnail
3319 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3321 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a href="mailto:nobody@example.com" class="external free" rel="nofollow">mailto:nobody@example.com</a></div></div></div>
3326 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
3327 so math is not stripped and turns up as escaped <math> tags.
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><math>2+2</math></div></div></div>
3336 BUG 1887, part 2: A <math> with a thumbnail- math enabled
3340 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3342 <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>
3346 # Pending resolution to bug 368
3348 BUG 648: Frameless image caption with a link
3350 [[Image:foobar.jpg|text with a [[link]] in it]]
3352 <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>
3357 BUG 648: Frameless image caption with a link (suffix)
3359 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3361 <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>
3366 BUG 648: Frameless image caption with an interwiki link
3368 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3370 <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>
3375 BUG 648: Frameless image caption with a piped interwiki link
3377 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3379 <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>
3384 Escape HTML special chars in image alt text
3386 [[Image:foobar.jpg|& < > "]]
3388 <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>
3393 BUG 499: Alt text should have Ӓ, not &1234;
3395 [[Image:foobar.jpg|♀]]
3397 <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>
3402 Broken image caption with link
3404 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3406 <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.
3411 Image caption containing another image
3413 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3415 <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>
3420 Image caption containing a newline
3422 [[Image:Foobar.jpg|This
3425 <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>
3431 Bug 3090: External links other than http: in image captions
3433 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3435 <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>
3444 Subpage test/subpage
3452 subpage title=[[Subpage test]]
3456 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3461 Subpage noslash link
3463 subpage title=[[Subpage test]]
3467 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3476 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
3481 BUG 561: {{/Subpage}}
3483 subpage title=[[Page]]
3487 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
3495 Category:MediaWiki User's Guide
3503 [[:Category:MediaWiki User's Guide]]
3505 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
3514 [[Category:MediaWiki User's Guide]]
3516 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3520 PAGESINCATEGORY invalid title fatal (r33546 fix)
3522 {{PAGESINCATEGORY:<bogus>}}
3529 ### Inter-language links
3532 Inter-language links
3538 [[zh:食品]]
3540 es:Alimento fr:Nourriture zh:食品
3547 Basic section headings
3554 ===Smaller headline===
3557 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
3560 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2">Headline 2</span></h2>
3563 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a>]</span> <span class="mw-headline" id="Smaller_headline">Smaller headline</span></h3>
3569 Section headings with TOC
3572 === Subheadline 1 ===
3573 ===== Skipping a level =====
3574 ====== Skipping a level ======
3578 ===Another headline===
3580 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3582 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3584 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3586 <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>
3588 <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>
3595 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
3597 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
3601 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3602 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
3603 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a>]</span> <span class="mw-headline" id="Subheadline_1"> Subheadline 1 </span></h3>
3604 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level"> Skipping a level </span></h5>
3605 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level_2"> Skipping a level </span></h6>
3606 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2"> Headline 2 </span></h2>
3609 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a>]</span> <span class="mw-headline" id="Another_headline">Another headline</span></h3>
3613 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
3615 Handling of sections up to level 6 and beyond
3618 == Level 2 Heading==
3619 === Level 3 Heading===
3620 ==== Level 4 Heading====
3621 ===== Level 5 Heading=====
3622 ====== Level 6 Heading======
3623 ======= Level 7 Heading=======
3624 ======== Level 8 Heading========
3625 ========= Level 9 Heading=========
3626 ========== Level 10 Heading==========
3628 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3630 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
3632 <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>
3634 <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>
3636 <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>
3638 <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>
3640 <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>
3641 <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>
3642 <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>
3643 <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>
3644 <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>
3656 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3657 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a>]</span> <span class="mw-headline" id="Level_1_Heading"> Level 1 Heading</span></h1>
3658 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a>]</span> <span class="mw-headline" id="Level_2_Heading"> Level 2 Heading</span></h2>
3659 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a>]</span> <span class="mw-headline" id="Level_3_Heading"> Level 3 Heading</span></h3>
3660 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a>]</span> <span class="mw-headline" id="Level_4_Heading"> Level 4 Heading</span></h4>
3661 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a>]</span> <span class="mw-headline" id="Level_5_Heading"> Level 5 Heading</span></h5>
3662 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a>]</span> <span class="mw-headline" id="Level_6_Heading"> Level 6 Heading</span></h6>
3663 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a>]</span> <span class="mw-headline" id=".3D_Level_7_Heading.3D">= Level 7 Heading=</span></h6>
3664 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a>]</span> <span class="mw-headline" id=".3D.3D_Level_8_Heading.3D.3D">== Level 8 Heading==</span></h6>
3665 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D">=== Level 9 Heading===</span></h6>
3666 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D">==== Level 10 Heading====</span></h6>
3671 TOC regression (bug 9764)
3675 ==== title 1.1.1 ====
3680 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3682 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3684 <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>
3686 <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>
3689 <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>
3692 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3694 <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>
3698 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3699 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
3700 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
3701 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4>
3702 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2"> title 1.2 </span></h3>
3703 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
3704 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1"> title 2.1 </span></h3>
3709 TOC with wgMaxTocLevel=3 (bug 6204)
3715 ==== title 1.1.1 ====
3720 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3722 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3724 <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>
3725 <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>
3728 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3730 <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>
3734 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3735 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
3736 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
3737 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4>
3738 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2"> title 1.2 </span></h3>
3739 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
3740 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1"> title 2.1 </span></h3>
3745 Resolving duplicate section names
3750 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar"> Foo bar </span></h2>
3751 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar_2"> Foo bar </span></h2>
3756 Resolving duplicate section names with differing case (bug 10721)
3761 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar"> Foo bar </span></h2>
3762 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2"> Foo Bar </span></h2>
3774 Template with sections, __NOTOC__
3781 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a>]</span> <span class="mw-headline" id="Section_0">Section 0</span></h2>
3782 <h3><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-1" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h3>
3783 <h2><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-2" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
3784 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a>]</span> <span class="mw-headline" id="Section_4">Section 4</span></h2>
3789 __NOEDITSECTION__ keyword
3795 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
3796 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
3801 Link inside a section heading
3803 ==Section with a [[Main Page|link]] in it==
3805 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a>]</span> <span class="mw-headline" id="Section_with_a_link_in_it">Section with a <a href="/wiki/Main_Page" title="Main Page">link</a> in it</span></h2>
3810 TOC regression (bug 12077)
3817 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3819 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3821 <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>
3824 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
3826 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3827 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
3828 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
3829 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
3834 BUG 1219 URL next to image (good)
3836 http://example.com [[Image:foobar.jpg]]
3838 <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>
3843 BUG 1219 URL next to image (broken)
3845 http://example.com[[Image:foobar.jpg]]
3847 <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>
3852 Bug 1186 news: in the middle of text
3854 http://en.wikinews.org/wiki/Wikinews:Workplace
3856 <p><a href="http://en.wikinews.org/wiki/Wikinews:Workplace" class="external free" rel="nofollow">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
3862 Namespaced link must have a title
3871 Namespaced link must have a title (bad fragment version)
3873 [[Project:#fragment]]
3875 <p>[[Project:#fragment]]
3881 div with no attributes
3883 <div>HTML rocks</div>
3885 <div>HTML rocks</div>
3890 div with double-quoted attribute
3892 <div id="rock">HTML rocks</div>
3894 <div id="rock">HTML rocks</div>
3899 div with single-quoted attribute
3901 <div id='rock'>HTML rocks</div>
3903 <div id="rock">HTML rocks</div>
3908 div with unquoted attribute
3910 <div id=rock>HTML rocks</div>
3912 <div id="rock">HTML rocks</div>
3917 div with illegal double attributes
3919 <div align="center" align="right">HTML rocks</div>
3921 <div align="right">HTML rocks</div>
3926 HTML multiple attributes correction
3928 <p class="error" class="awesome">Awesome!</p>
3930 <p class="awesome">Awesome!</p>
3935 Table multiple attributes correction
3938 !+ class="error" class="awesome"| status
3943 <th class="awesome"> status
3951 <DIV ALIGN="center">HTML ROCKS</DIV>
3953 <div align="center">HTML ROCKS</div>
3959 text with amp in the middle of nowhere
3963 <p>Remember AT&T?
3968 text with character entity: eacute
3970 I always thought é was a cute letter.
3972 <p>I always thought é was a cute letter.
3977 text with undefined character entity: xacute
3979 I always thought &xacute; was a cute letter.
3981 <p>I always thought &xacute; was a cute letter.
3993 [[Media:Foobar.jpg]]
3995 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4000 Media link with text
4002 [[Media:Foobar.jpg|A neat file to look at]]
4004 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4008 # FIXME: this is still bad HTML tag nesting
4010 Media link with nasty text
4011 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4013 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4015 <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>
4020 Media link to nonexistent file (bug 1702)
4022 [[Media:No such.jpg]]
4024 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4029 Image link to nonexistent file (bug 1850 - good)
4031 [[Image:No such.jpg]]
4033 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4038 :Image link to nonexistent file (bug 1850 - bad)
4040 [[:Image:No such.jpg]]
4042 <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>
4049 Character reference normalization in link text (bug 1938)
4051 [[Main Page|this&that]]
4053 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4058 Empty attribute crash test (bug 2067)
4060 <font color="">foo</font>
4062 <p><font color="">foo</font>
4067 Empty attribute crash test single-quotes (bug 2067)
4069 <font color=''>foo</font>
4071 <p><font color="">foo</font>
4076 Attribute test: equals, then nothing
4078 <font color=>foo</font>
4085 Attribute test: unquoted value
4087 <font color=x>foo</font>
4089 <p><font color="x">foo</font>
4094 Attribute test: unquoted but illegal value (hash)
4096 <font color=#x>foo</font>
4098 <p><font color="#x">foo</font>
4103 Attribute test: no value
4105 <font color>foo</font>
4107 <p><font color="color">foo</font>
4112 Bug 2095: link with three closing brackets
4116 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
4121 Bug 2095: link with pipe and three closing brackets
4125 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4130 Bug 2095: link with pipe and three closing brackets, version 2
4132 [[Main Page|[http://example.com/]]]
4134 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4144 Template:Dangerous attribute
4146 " onmouseover="alert(document.cookie)
4150 Template:Dangerous style attribute
4152 border-size: expression(alert(document.cookie))
4158 <div style="float: right; {{{1}}}">Magic div</div>
4162 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4164 <div title="{{test}}"></div>
4166 <div title="This is a test template"></div>
4171 Bug 2304: HTML attribute safety (dangerous template; 2309)
4173 <div title="{{dangerous attribute}}"></div>
4175 <div title=""></div>
4180 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4182 <div style="{{dangerous style attribute}}"></div>
4189 Bug 2304: HTML attribute safety (safe parameter; 2309)
4191 {{div style|width: 200px}}
4193 <div style="float: right; width: 200px">Magic div</div>
4198 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4200 {{div style|width: expression(alert(document.cookie))}}
4202 <div>Magic div</div>
4207 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4209 {{div style|"><script>alert(document.cookie)</script>}}
4211 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4216 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4218 {{div style|" ><script>alert(document.cookie)</script>}}
4220 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4225 Bug 2304: HTML attribute safety (link)
4227 <div title="[[Main Page]]"></div>
4229 <div title="[[Main Page]]"></div>
4234 Bug 2304: HTML attribute safety (italics)
4236 <div title="''foobar''"></div>
4238 <div title="''foobar''"></div>
4243 Bug 2304: HTML attribute safety (bold)
4245 <div title="'''foobar'''"></div>
4247 <div title="'''foobar'''"></div>
4253 Bug 2304: HTML attribute safety (ISBN)
4255 <div title="ISBN 1234567890"></div>
4257 <div title="ISBN 1234567890"></div>
4262 Bug 2304: HTML attribute safety (RFC)
4264 <div title="RFC 1234"></div>
4266 <div title="RFC 1234"></div>
4271 Bug 2304: HTML attribute safety (PMID)
4273 <div title="PMID 1234567890"></div>
4275 <div title="PMID 1234567890"></div>
4280 Bug 2304: HTML attribute safety (web link)
4282 <div title="http://example.com/"></div>
4284 <div title="http://example.com/"></div>
4289 Bug 2304: HTML attribute safety (named web link)
4291 <div title="[http://example.com/ link]"></div>
4293 <div title="[http://example.com/ link]"></div>
4298 Bug 3244: HTML attribute safety (extension; safe)
4300 <div style="<nowiki>background:blue</nowiki>"></div>
4302 <div style="background:blue"></div>
4307 Bug 3244: HTML attribute safety (extension; unsafe)
4309 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4316 Math section safety when disabled
4318 <math><script>alert(document.cookies);</script></math>
4320 <p><math><script>alert(document.cookies);</script></math>
4324 # More MSIE fun discovered by Tom Gilder
4327 MSIE CSS safety test: spurious slash
4329 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4336 MSIE CSS safety test: hex code
4338 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4345 MSIE CSS safety test: comment in url
4347 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4349 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4354 MSIE CSS safety test: comment in expression
4356 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4358 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4364 Table attribute legitimate extension
4367 !+ style="<nowiki>color:blue</nowiki>"| status
4372 <th style="color:blue"> status
4378 Table attribute safety
4381 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4399 Expansion of multi-line templates in attribute values (bug 6255)
4401 <div style="background: {{identity|#00FF00}}">-</div>
4403 <div style="background: #00FF00">-</div>
4409 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
4411 <div style="background:
4414 <div style="background: #00FF00">-</div>
4419 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
4421 <div style="background: #00FF00">-</div>
4423 <div style="background: #00FF00">-</div>
4428 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
4431 Parser hook: empty input
4444 Parser hook: empty input using terminated empty elements
4457 Parser hook: empty input using terminated empty elements (space before)
4470 Parser hook: basic input
4484 Parser hook: case insensitive
4498 Parser hook: case insensitive, redux
4511 Parser hook: nested tags
4515 <tag><tag></tag></tag>
4526 Parser hook: basic arguments
4528 <tag width=200 height = "100" depth = '50' square></tag>
4547 Parser hook: argument containing a forward slash (bug 5344)
4549 <tag filename='/tmp/bla'></tag>
4555 string(8) "/tmp/bla"
4562 Parser hook: empty input using terminated empty elements (bug 2374)
4576 # </tag> should be output literally since there is no matching tag that begins it
4578 Parser hook: basic arguments using terminated empty elements (bug 2374)
4580 <tag width=200 height = "100" depth = '50' square/>
4603 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
4607 Parser hook: static parser hook not inside a comment
4609 <statictag>hello, world</statictag>
4610 <statictag action=flush/>
4618 Parser hook: static parser hook inside a comment
4620 <!-- <statictag>hello, world</statictag> -->
4621 <statictag action=flush/>
4627 # Nested template calls; this case was broken by Parser.php rev 1.506,
4631 Template:One-parameter
4633 (My parameter is: {{{1}}})
4637 Template:Map-one-parameter
4643 Nested template calls
4645 {{Map-one-parameter|One-parameter|param}}
4647 <p>(My parameter is: param)
4656 Sanitizer: Closing of open tags
4658 <s></s><table></table>
4660 <s></s><table></table>
4665 Sanitizer: Closing of open but not closed tags
4674 Sanitizer: Closing of closed but not open tags
4683 Sanitizer: Closing of closed but not open table tags
4685 Table not started</td></tr></table>
4687 <p>Table not started</td></tr></table>
4692 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
4694 <span id="æ: v">byte</span>[[#æ: v|backlink]]
4696 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
4701 Sanitizer: Validating the contents of the id attribute (bug 4515)
4707 Something, but defenetly not <br id="9" />...
4711 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
4715 <br id="foo" /><br id="foo" />
4717 Something need to be done. foo-2 ?
4721 Language converter: output gets cut off unexpectedly (bug 5757)
4725 this bit is safe: }-
4727 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
4729 then we get cut off here: }-
4731 all additional text is vanished
4733 <p>this bit is safe: }-
4734 </p><p>but if we add a conversion instance: xxx
4735 </p><p>then we get cut off here: }-
4736 </p><p>all additional text is vanished
4741 Self closed html pairs (bug 5487)
4744 <center><font id="bug" />Centered text</center>
4745 <div><font id="bug2" />In div text</div>
4747 <center><font id="bug" />Centered text</center>
4748 <div><font id="bug2" />In div text</div>
4757 Punctuation: nbsp before exclamation
4761 <p>C'est grave !
4766 Punctuation: CSS !important (bug 11874)
4768 <div style="width:50% !important">important</div>
4770 <div style="width:50% !important">important</div>
4775 Punctuation: CSS ! important (bug 11874; with space after)
4777 <div style="width:50% ! important">important</div>
4779 <div style="width:50% ! important">important</div>
4785 HTML bullet list, closed tags (bug 5497)
4800 HTML bullet list, unclosed tags (bug 5497)
4817 HTML ordered list, closed tags (bug 5497)
4832 HTML ordered list, unclosed tags (bug 5497)
4849 HTML nested bullet list, closed tags (bug 5497)
4874 HTML nested bullet list, open tags (bug 5497)
4899 HTML nested ordered list, closed tags (bug 5497)
4924 HTML nested ordered list, open tags (bug 5497)
4949 HTML ordered list item with parameters oddity
4951 <ol><li id="fragment">One</li></ol>
4953 <ol><li id="fragment">One</li></ol>
4958 bug 5918: autonumbering
4960 [http://first/] [http://second] [ftp://ftp]
4964 [mailto:enclosed@mail.tld With target]
4966 [mailto:enclosed@mail.tld]
4968 mailto:inline@mail.tld
4970 <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>
4971 </p><p><a href="ftp://inlineftp" class="external free" rel="nofollow">ftp://inlineftp</a>
4972 </p><p><a href="mailto:enclosed@mail.tld" class="external text" rel="nofollow">With target</a>
4973 </p><p><a href="mailto:enclosed@mail.tld" class="external autonumber" rel="nofollow">[4]</a>
4974 </p><p><a href="mailto:inline@mail.tld" class="external free" rel="nofollow">mailto:inline@mail.tld</a>
4980 # Security and HTML correctness
4981 # From Nick Jenkins' fuzz testing
4985 Fuzz testing: Parser13
5000 Fuzz testing: Parser14
5005 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a>]</span> <span class="mw-headline" id="onmouseover.3D"> onmouseover= </span></h2>
5006 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5008 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5010 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
5015 Fuzz testing: Parser14-table
5020 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a>]</span> <span class="mw-headline" id="a">a</span></h2>
5021 <table style="__TOC__">
5027 # Known to produce bogus xml (extra </td>)
5029 Fuzz testing: Parser16
5038 <th>https://</th><th></th><th></th><th>
5046 Fuzz testing: Parser21
5049 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5054 <th> <a href="irc://{{ftp://a" class="external free" rel="nofollow">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5063 Fuzz testing: Parser22
5065 http://===r:::https://b
5069 <p><a href="http://===r:::https://b" class="external free" rel="nofollow">http://===r:::https://b</a>
5077 # Known to produce bad XML for now
5079 Fuzz testing: Parser24
5086 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5087 <br style="onmouseover='alert(document.cookie);' " />
5089 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5094 <u class="|">}}}} >
5095 <br style="onmouseover='alert(document.cookie);'" />
5097 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5106 # Note: the current result listed for this is not what the original one was,
5107 # but the original bug was JavaScript injection, which is fixed in any case.
5108 # It's not clear that the original result listed was any more correct than the
5109 # current one. Original result:
5112 # <li class="||">
5113 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5115 Fuzz testing: Parser25 (bug 6055)
5121 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5123 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5128 Fuzz testing: URL adjacent extension (with space, clean)
5131 http://example.com <nowiki>junk</nowiki>
5133 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a> junk
5138 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5141 http://example.com<nowiki>junk</nowiki>
5143 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>junk
5148 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5151 http://example.com<pre>junk</pre>
5153 <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a><pre>junk</pre>
5158 Fuzz testing: image with bogus manual thumbnail
5160 [[Image:foobar.jpg|thumbnail= ]]
5162 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5167 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5169 <pre dir=" "></pre>
5171 <pre dir=" "></pre>
5176 Parsing optional HTML elements (Bug 6171)
5181 <td> Some tabular data</td>
5182 <td> More tabular data ...
5183 <td> And yet som tabular data</td>
5189 <td> Some tabular data</td>
5190 <td> More tabular data ...
5191 </td><td> And yet som tabular data</td>
5198 Correct handling of <td>, <tr> (Bug 6171)
5203 <td> Some tabular data</td>
5204 <td> More tabular data ...</td>
5205 <td> And yet som tabular data</td>
5211 <td> Some tabular data</td>
5212 <td> More tabular data ...</td>
5213 <td> And yet som tabular data</td>
5221 Parsing crashing regression (fr:JavaScript)
5225 <p></body></x>
5230 Inline wiki vs wiki block nesting
5236 <p><b>Bold paragraph</b>
5237 </p><p>New wiki paragraph
5242 Inline HTML vs wiki block nesting
5250 <p><b>Bold paragraph</b>
5251 </p><p>New wiki paragraph
5255 # Original result was this:
5256 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5258 # While that might be marginally more intuitive, maybe, the six-apostrophe
5259 # construct is clearly pathological and the result stated here (which is what
5260 # the parser actually does) is about as reasonable as anything.
5262 Mixing markup for italics and bold
5265 '''bold''''''bold''bolditalics'''''
5267 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5275 Article for special page transclusion test
5279 Special page transclusion
5282 {{Special:Prefixindex/Xyzzyx}}
5286 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5291 Special page transclusion twice (bug 5021)
5294 {{Special:Prefixindex/Xyzzyx}}
5295 {{Special:Prefixindex/Xyzzyx}}
5299 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5302 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5307 Transclusion of default MediaWiki message
5309 {{MediaWiki:Mainpage}}
5316 Transclusion of nonexistent MediaWiki message
5318 {{MediaWiki:Mainpagexxx}}
5320 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
5325 Transclusion of MediaWiki message with underscore
5327 {{MediaWiki:history_short}}
5334 Transclusion of MediaWiki message with space
5336 {{MediaWiki:history short}}
5343 Invalid header with following text
5353 Section extraction test (section 0)
5373 Section extraction test (section 1)
5395 Section extraction test (section 2)
5416 Section extraction test (section 3)
5436 Section extraction test (section 4)
5460 Section extraction test (section 5)
5480 Section extraction test (section 6)
5501 Section extraction test (section 7)
5521 Section extraction test (section 8)
5541 Section extraction test (section 9)
5562 Section extraction test (section 10)
5582 Section extraction test (nonexistent section 11)
5601 Section extraction test with bogus heading (section 1)
5606 ==bogus== not a legal section
5610 ==bogus== not a legal section
5614 Section extraction test with bogus heading (section 2)
5619 ==bogus== not a legal section
5626 Section extraction test with comment after heading (section 1)
5638 Section extraction test with comment after heading (section 2)
5650 Section extraction test with bogus <nowiki> heading (section 1)
5655 ==bogus== <nowiki>not a legal section</nowiki>
5659 ==bogus== <nowiki>not a legal section</nowiki>
5663 Section extraction test with bogus <nowiki> heading (section 2)
5668 ==bogus== <nowiki>not a legal section</nowiki>
5675 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
5676 # instead of respecting commented sections
5678 Section extraction prefixed by comment (section 1)
5689 Section extraction prefixed by comment (section 2)
5700 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
5701 # instead of respecting HTML-style headings
5703 Section extraction, mixed wiki and html (section 1)
5719 Section extraction, mixed wiki and html (section 2)
5735 # Formerly testing for bug 3342
5737 Section extraction, heading surrounded by <noinclude>
5741 <noinclude>==unmarked==</noinclude>
5749 Section replacement test (section 0)
5780 Section replacement test (section 1)
5809 Section replacement test (section 2)
5839 Section replacement test (section 3)
5870 Section replacement test (section 4)
5897 Section replacement test (section 5)
5928 Section replacement test (section 6)
5958 Section replacement test (section 7)
5989 Section replacement test (section 8)
6020 Section replacement test (section 9)
6049 Section replacement test (section 10)
6079 Section replacement test with initial whitespace (bug 13728)
6083 Preformatted initial line
6087 Preformatted initial line
6094 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6106 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6119 Section extraction, <pre> around bogus header (bug 10309)
6136 Section replacement, <pre> around bogus header (bug 10309)
6138 noxml replace=2,"xxx"
6159 Handling of 
 in URLs
6163 <ul><li><ul><li><a href="irc://%0Aa" class="external free" rel="nofollow">irc://%0Aa</a>
6170 5 quotes, code coverage +1 line
6177 Special:Search page linking.
6181 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
6196 * {{SUBJECTPAGENAME}}
6197 * {{SUBJECTPAGENAMEE}}
6204 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6206 <ul><li> Parser test
6207 </li><li> Parser test
6208 </li><li> Parser test
6209 </li><li> Parser_test
6210 </li><li> Parser test
6211 </li><li> Parser_test
6212 </li><li> Talk:Parser test
6213 </li><li> Talk:Parser_test
6214 </li><li> Parser test
6215 </li><li> Parser_test
6222 </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>
6226 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6236 image4 |300px| centre
6237 image5.svg| http://///////
6242 <table class="gallery" cellspacing="0" cellpadding="0">
6244 <td><div class="gallerybox" style="width: 155px;">
6245 <div style="height: 152px;">Image1.png</div>
6246 <div class="gallerytext">
6249 <td><div class="gallerybox" style="width: 155px;">
6250 <div style="height: 152px;">Image2.gif</div>
6251 <div class="gallerytext">
6256 <td><div class="gallerybox" style="width: 155px;">
6257 <div style="height: 152px;">Image3</div>
6258 <div class="gallerytext">
6261 <td><div class="gallerybox" style="width: 155px;">
6262 <div style="height: 152px;">Image4</div>
6263 <div class="gallerytext">
6270 <td><div class="gallerybox" style="width: 155px;">
6271 <div style="height: 152px;">Image5.svg</div>
6272 <div class="gallerytext">
6273 <p><a href="http://///////" class="external free" rel="nofollow">http://///////</a>
6277 <td><div class="gallerybox" style="width: 155px;">
6278 <div style="height: 152px;">* image6</div>
6279 <div class="gallerytext">
6288 HTML Hex character encoding (spells the word "JavaScript")
6290 JavaScript
6292 <p>JavaScript
6297 __FORCETOC__ override
6309 ISBN 978-0-1234-56 789
6311 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
6316 ISBN followed by 5 spaces
6327 ISBN ISBN 1234567890
6329 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
6338 <p>RFC <a href="http://tools.ietf.org/html/rfc1234" class="external mw-magiclink-rfc">RFC 1234</a>
6343 Double RFC with a wiki link
6347 <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>
6356 <p><a href="http://tools.ietf.org/html/rfc983" class="external mw-magiclink-rfc">RFC 983</a> 987
6361 Centre-aligned image
6363 [[Image:foobar.jpg|centre]]
6365 <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>
6372 [[Image:foobar.jpg|none]]
6374 <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>
6379 Width + Height sized image (using px) (height is ignored)
6381 [[Image:foobar.jpg|640x480px]]
6383 <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>
6388 Width-sized image (using px, no following whitespace)
6390 [[Image:foobar.jpg|640px]]
6392 <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>
6397 Width-sized image (using px, with following whitespace - test regression from r39467)
6399 [[Image:foobar.jpg|640px ]]
6401 <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>
6406 Width-sized image (using px, with preceding whitespace - test regression from r39467)
6408 [[Image:foobar.jpg| 640px]]
6410 <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>
6415 Another italics / bold test
6423 # Note the results may be incorrect, as parserTest output included this:
6424 # XML error: Mismatched tag at byte 6120:
6425 # ...<dd> </dt></dl> </dd...
6433 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
6444 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
6446 Images with the "|" character in the comment
6450 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
6452 <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>
6457 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
6459 <html><script>alert(1);</script></html>
6461 <p><html><script>alert(1);</script></html>
6466 HTML with raw HTML ($wgRawHtml==true)
6470 <html><script>alert(1);</script></html>
6472 <p><script>alert(1);</script>
6477 Parents of subpages, one level up
6479 subpage title=[[Subpage test/L1/L2/L3]]
6483 <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>
6489 Parents of subpages, one level up, not named
6491 subpage title=[[Subpage test/L1/L2/L3]]
6495 <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>
6502 Parents of subpages, two levels up
6505 subpage title=[[Subpage test/L1/L2/L3]]
6509 <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>
6514 Parents of subpages, two levels up, without trailing slash or name.
6516 subpage title=[[Subpage test/L1/L2/L3]]
6525 Parents of subpages, two levels up, with lots of extra trailing slashes.
6527 subpage title=[[Subpage test/L1/L2/L3]]
6531 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
6536 Definition list code coverage
6542 <dl><dt> title </dt><dd> def
6543 </dd><dt> title </dt><dd> def
6544 </dd><dt>title</dt><dd> def
6550 Don't fall for the self-closing div
6552 <div>hello world</div/>
6554 <div>hello world</div>
6563 <p>[[:Template:Msg]]
6572 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
6576 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
6578 Always escape literal '>' in output, not just after '<'
6592 <p>This is a test template
6593 This is a test template
6605 Inclusion of !userCanEdit() content
6609 <h2><span class="editsection">[<a href="/index.php?title=MediaWiki:Fake&action=edit&section=T-1" title="MediaWiki:Fake">edit</a>]</span> <span class="mw-headline" id="header">header</span></h2>
6615 Out-of-order TOC heading levels
6624 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6626 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
6628 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
6629 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
6632 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
6634 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
6635 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
6639 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
6640 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2">2</span></h2>
6641 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a>]</span> <span class="mw-headline" id="6">6</span></h6>
6642 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a>]</span> <span class="mw-headline" id="3">3</span></h3>
6643 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a>]</span> <span class="mw-headline" id="1">1</span></h1>
6644 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: 5">edit</a>]</span> <span class="mw-headline" id="5">5</span></h5>
6645 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2_2">2</span></h2>
6651 ISBN with a dummy number
6661 ISBN with space-delimited number
6665 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
6671 ISBN with multiple spaces, no number
6690 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
6691 </p><p>ISBN 12345678901
6697 ISBN with trailing year (bug 8110)
6699 ISBN 1-234-56789-0 - 2006
6701 ISBN 1 234 56789 0 - 2006
6703 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
6704 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
6712 {{anchorencode:foo bar©#%n}}
6714 <p>foo_bar.C2.A9.23.25n
6720 Bug 8293: Use of center tag ruins paragraph formatting
6742 ### Language variants related tests
6745 Self-link in language variants
6747 title=[[Dunav]] language=sr
6749 Both [[Dunav]] and [[Дунав]] are names for this river.
6751 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
6757 Link to pages in language variants
6761 Main Page can be written as [[Маин Паге]]
6763 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
6769 Multiple links to pages in language variants
6773 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
6775 <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>.
6781 Simple template in language variants
6787 <p>This is a test template
6793 Template with explicit namespace in language variants
6799 <p>This is a test template
6805 Basic test for template parameter in language variants
6809 {{парамтест|param=foo}}
6811 <p>This is a test template with parameter foo
6817 Simple category in language variants
6821 [[Category:МедиаWики Усер'с Гуиде]]
6823 <a href="/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%98%D0%B0:MediaWiki_User%27s_Guide" title="Категорија:MediaWiki User's Guide">MediaWiki User's Guide</a>
6828 Stripping -{}- tags (language variants)
6832 Latin proverb: -{Ne nuntium necare}-
6834 <p>Latin proverb: Ne nuntium necare
6840 Prevent conversion with -{}- tags (language variants)
6842 language=sr variant=sr-ec
6844 Latinski: -{Ne nuntium necare}-
6846 <p>Латински: Ne nuntium necare
6852 Prevent conversion of text with -{}- tags (language variants)
6854 language=sr variant=sr-ec
6856 Latinski: -{Ne nuntium necare}-
6858 <p>Латински: Ne nuntium necare
6864 Prevent conversion of links with -{}- tags (language variants)
6866 language=sr variant=sr-ec
6870 <p><a href="/index.php?title=Main_Page&variant=sr-ec" title="Main Page">Main Page</a>
6876 -{}- tags within headlines (within html for parserConvert())
6878 language=sr variant=sr-ec
6882 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Уреди део: Naslov">уреди</a>]</span> <span class="mw-headline" id="-.7BNaslov.7D-"> Naslov </span></h2>
6888 Explicit definition of language variant alternatives
6890 language=zh variant=zh-tw
6892 -{zh:China;zh-tw:Taiwan}-, not China
6894 <p>Taiwan, not China
6900 Explicit session-wise language variant mapping (A flag and - flag)
6902 language=zh variant=zh-tw
6904 Taiwan is not China.
6905 But -{A|zh:China;zh-tw:Taiwan}- is China,
6906 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
6907 and -{China}- is China.
6909 <p>Taiwan is not China.
6910 But Taiwan is Taiwan,
6911 (This should be stripped!)
6917 Explicit session-wise language variant mapping (H flag for hide)
6919 language=zh variant=zh-tw
6921 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
6924 <p>(This should be stripped!)
6930 Adding explicit conversion rule for title (T flag)
6932 language=zh variant=zh-tw
6934 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
6936 <p>Should be stripped!
6942 Raw output of variant escape tags (R flag)
6944 language=zh variant=zh-tw
6946 Raw: -{R|zh:China;zh-tw:Taiwan}-
6948 <p>Raw: zh:China;zh-tw:Taiwan
6954 Do not convert roman numbers to language variants
6956 language=sr variant=sr-ec
6960 <p>Фридрих IV је цар.
6971 Bug 529: Uncovered bullet
6982 Bug 529: Uncovered table already at line-start
7003 Bug 529: Uncovered bullet in parser function result
7005 * Foo {{lc:{{bullet}} }}
7014 Bug 5678: Double-parsed template argument
7016 {{lc:{{{1}}}|hello}}
7023 Bug 5678: Double-parsed template invocation
7025 {{lc:{{paramtest {{!}} param = hello }} }}
7027 <p>{{paramtest | param = hello }}
7032 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
7058 Morwen/13: Unclosed link followed by heading
7065 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
7070 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
7077 <h1> <span class="mw-headline" id="heading">heading</span></h1>
7082 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
7089 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
7104 Paragraphs inside divs (no extra line breaks)
7116 Paragraphs inside divs (extra line break on open)
7131 Paragraphs inside divs (extra line break on close)
7146 Paragraphs inside divs (extra line break on open and close)
7162 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
7164 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
7168 <blockquote>Line one
7170 Line two</blockquote>
7172 <blockquote>Line one
7173 Line two</blockquote>
7178 Bug 6200: paragraphs inside blockquotes (extra line break on open)
7185 Line two</blockquote>
7190 Line two</blockquote>
7195 Bug 6200: paragraphs inside blockquotes (extra line break on close)
7199 <blockquote>Line one
7204 <blockquote>Line one
7212 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
7231 Paragraphs inside blockquotes/divs (no extra line breaks)
7233 <blockquote><div>Line one
7235 Line two</div></blockquote>
7237 <blockquote><div>Line one
7238 Line two</div></blockquote>
7243 Paragraphs inside blockquotes/divs (extra line break on open)
7248 Line two</div></blockquote>
7253 Line two</div></blockquote>
7258 Paragraphs inside blockquotes/divs (extra line break on close)
7260 <blockquote><div>Line one
7265 <blockquote><div>Line one
7273 Paragraphs inside blockquotes/divs (extra line break on open and close)
7290 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
7292 wgLinkHolderBatchSize=0
7298 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
7299 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
7300 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
7305 Free external link invading image caption
7307 [[Image:Foobar.jpg|thumb|http://x|hello]]
7309 <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>
7314 Bug 15196: localised external link numbers
7318 [http://en.wikipedia.org/]
7320 <p><a href="http://en.wikipedia.org/" class="external autonumber" rel="nofollow">[۱]</a>
7325 Multibyte character in padleft
7327 {{padleft:-Hello|7|Æ}}
7334 Multibyte character in padright
7336 {{padright:Hello-|7|Æ}}
7349 <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>
7354 formatdate parser function
7356 {{#formatdate:2009-03-24}}
7358 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
7363 formatdate parser function, with default format
7365 {{#formatdate:2009-03-24|mdy}}
7367 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
7372 Linked date with autoformatting disabled
7374 wgUseDynamicDates=false
7378 <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>
7383 Spacing of numbers in formatted dates
7385 {{#formatdate:January 15}}
7387 <p><span class="mw-formatted-date" title="01-15">January 15</span>
7392 Spacing of numbers in formatted dates (linked)
7394 wgUseDynamicDates=true
7398 <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>
7411 Edit comment with link
7415 I like the [[Main Page]] a lot
7417 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
7421 Edit comment with link and link text
7425 I like the [[Main Page|best pages]] a lot
7427 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
7431 Edit comment with link and link text with suffix
7435 I like the [[Main Page|best page]]s a lot
7437 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
7441 Edit comment with section link (non-local, eg in history list)
7443 comment title=[[Main Page]]
7445 /* External links */ removed bogus entries
7447 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
7451 Edit comment with section link (local, eg in diff view)
7453 comment local title=[[Main Page]]
7455 /* External links */ removed bogus entries
7457 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
7461 Edit comment with subpage link (bug 14080)
7465 title=[[Subpage test]]
7467 Poked at a [[/subpage]] here...
7469 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
7473 Edit comment with subpage link and link text (bug 14080)
7477 title=[[Subpage test]]
7479 Poked at a [[/subpage|neat little page]] here...
7481 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
7485 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
7488 title=[[Subpage test]]
7490 Poked at a [[/subpage]] here...
7492 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
7496 Edit comment with bare anchor link (local, as on diff)
7504 <a href="#section">#section</a>
7508 Edit comment with bare anchor link (non-local, as on history)
7515 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
7524 Try for 100% code coverage