1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
81 This is a simple paragraph.
83 <p>This is a simple paragraph.
103 * plain''italic''plain
104 * plain''italic''plain''italic''plain
105 * plain'''bold'''plain
106 * plain'''bold'''plain'''bold'''plain
107 * plain''italic''plain'''bold'''plain
108 * plain'''bold'''plain''italic''plain
109 * plain''italic'''bold-italic'''italic''plain
110 * plain'''bold''bold-italic''bold'''plain
111 * plain'''''bold-italic'''italic''plain
112 * plain'''''bold-italic''bold'''plain
113 * plain''italic'''bold-italic'''''plain
114 * plain'''bold''bold-italic'''''plain
115 * plain l'''italic''plain
116 * plain l''''bold''' plain
119 </li><li> plain<i>italic</i>plain
120 </li><li> plain<i>italic</i>plain<i>italic</i>plain
121 </li><li> plain<b>bold</b>plain
122 </li><li> plain<b>bold</b>plain<b>bold</b>plain
123 </li><li> plain<i>italic</i>plain<b>bold</b>plain
124 </li><li> plain<b>bold</b>plain<i>italic</i>plain
125 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
126 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
127 </li><li> plain<i><b>bold-italic</b>italic</i>plain
128 </li><li> plain<b><i>bold-italic</i>bold</b>plain
129 </li><li> plain<i>italic<b>bold-italic</b></i>plain
130 </li><li> plain<b>bold<i>bold-italic</i></b>plain
131 </li><li> plain l'<i>italic</i>plain
132 </li><li> plain l'<b>bold</b> plain
138 ### <nowiki> test cases
142 <nowiki> unordered list
144 <nowiki>* This is not an unordered list item.</nowiki>
146 <p>* This is not an unordered list item.
153 <nowiki>Lorem ipsum dolor
174 :There is not nowiki.
175 :There is <nowiki>nowiki</nowiki>.
177 #There is not nowiki.
178 #There is <nowiki>nowiki</nowiki>.
180 *There is not nowiki.
181 *There is <nowiki>nowiki</nowiki>.
183 <dl><dd>There is not nowiki.
184 </dd><dd>There is nowiki.
186 <ol><li>There is not nowiki.
187 </li><li>There is nowiki.
189 <ul><li>There is not nowiki.
190 </li><li>There is nowiki.
202 <!-- comment 1 --> asdf
238 asdf<!-- comment 1 -->jkl
248 <!-- foo --> b <!-- bar -->
262 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
268 Comment semantics and delimiters
270 <!-- --><!----><!-----><!------>
276 Comment semantics and delimiters, redux
278 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
279 -- foo -- funky huh? ... -->
285 Comment semantics and delimiters: directors cut
287 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
288 everything starting with < followed by !-- until the first -- and > we see,
289 that wouldn't be valid XML however, since in XML -- has to terminate a comment
297 Comment semantics: nesting
299 <!--<!-- no, we're not going to do anything fancy here -->-->
306 Comment semantics: unclosed comment at end
308 <!--This comment will run out to the end of the document
314 Comment in template title
323 Comment on its own line post-expand
335 ### Preformatted text
344 And a [[Main Page|link]]
350 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
355 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
372 Regression with preformatted in <center>
385 # Expected output in the following test is not really expected (there should be
386 # <pre> in the output) -- it's only testing for well-formedness.
388 Bug 6200: Preformatted in <blockquote>
401 <pre> with attributes (bug 3202)
403 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
405 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
410 <pre> with width attribute (bug 3202)
412 <pre width="8">Narrow screen goodies</pre>
414 <pre width="8">Narrow screen goodies</pre>
419 <pre> with forbidden attribute (bug 3202)
421 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
423 <pre width="8">Narrow screen goodies</pre>
428 <pre> with forbidden attribute values (bug 3202)
430 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
432 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
437 <nowiki> inside <pre> (bug 13238)
445 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
453 <pre><nowiki>Foo</nowiki></pre>
458 <nowiki> and <pre> preference (first one wins)
497 <dl><dt> name </dt><dd> Definition
503 Definition list for indentation only
507 <dl><dd> Indented text
513 Definition list with no space
517 <dl><dt>name</dt><dd>Definition
523 Definition list with URL link
525 ; http://example.com/ : definition
527 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
533 Definition list with bracketed URL link
535 ;[http://www.example.com/ Example]:Something about it
537 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
543 Definition list with wikilink containing colon
545 ; [[Help:FAQ]]: The least-read page on Wikipedia
547 <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
552 # At Brion's and JeLuF's insistence... :)
554 Definition list with news link containing colon
556 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
558 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
564 Malformed definition list with colon
566 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
568 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
574 Definition lists: colon in external link text
576 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
578 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
584 Definition lists: colon in HTML attribute
586 ;<b style="display: inline">bold</b>
588 <dl><dt><b style="display: inline">bold</b>
595 Definition lists: self-closed tag
597 ;one<br/>two : two-line fun
599 <dl><dt>one<br />two </dt><dd> two-line fun
605 Bug 11748: Literal closing tags
611 <dd>test test test test test</dd>
613 <dd>test test test test test</dd>
618 <dd>test test test test test</dd>
620 <dd>test test test test test</dd>
625 Definition and unordered list using wiki syntax nested in unordered list using html tags.
634 <dl><dt> term </dt><dd> description
648 External links: non-bracketed
650 Non-bracketed: http://example.com
652 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
657 External links: numbered
659 Numbered: [http://example.com]
660 Numbered: [http://example.net]
661 Numbered: [http://example.com]
663 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
664 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
665 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
670 External links: specified text
672 Specified text: [http://example.com link]
674 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
679 External links: trail
681 Linktrails should not work for external links: [http://example.com link]s
683 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
688 External links: dollar sign in URL
690 http://example.com/1$2345
692 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
697 External links: dollar sign in URL (named)
699 [http://example.com/1$2345]
701 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
706 External links: open square bracket forbidden in URL (bug 4377)
708 http://example.com/1[2345
710 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
715 External links: open square bracket forbidden in URL (named) (bug 4377)
717 [http://example.com/1[2345]
719 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
724 External links: nowiki in URL link text (bug 6230)
726 [http://example.com/ <nowiki>''example site''</nowiki>]
728 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
733 External links: newline forbidden in text (bug 6230 regression check)
735 [http://example.com/ first
738 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
744 External links: protocol-relative URL in brackets
746 [//example.com/ Test]
748 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
753 External links: protocol-relative URL in brackets without text
757 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
762 External links: protocol-relative URL in free text is left alone
771 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
775 <p>foo//example.com/Foo
782 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
784 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
789 External image from https
791 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
793 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
798 Link to non-http image, no img tag
800 Link to non-http image, no img tag: ftp://example.com/test.jpg
802 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
807 External links: terminating separator
809 Terminating separator: http://example.com/thing,
811 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
816 External links: intervening separator
818 Intervening separator: http://example.com/1,2,3
820 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
825 External links: old bug with URL in query
827 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
829 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
834 External links: old URL-in-URL bug, mixed protocols
836 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
838 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
843 External links: URL in text
845 URL in text: [http://example.com http://example.com]
847 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
852 External links: Clickable images
854 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
856 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
861 External links: raw ampersand
863 Old & use: http://x&y
865 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
870 External links: encoded ampersand
872 Old & use: http://x&y
874 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
879 External links: encoded equals (bug 6102)
881 http://example.com/?foo=bar
883 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
888 External links: [raw ampersand]
890 Old & use: [http://x&y]
892 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
897 External links: [encoded ampersand]
899 Old & use: [http://x&y]
901 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
906 External links: [encoded equals] (bug 6102)
908 [http://example.com/?foo=bar]
910 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
915 External links: [IDN ignored character reference in hostname; strip it right off]
917 [http://e‌xample.com/]
919 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
924 External links: IDN ignored character reference in hostname; strip it right off
926 http://e‌xample.com/
928 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
933 External links: www.jpeg.org (bug 554)
937 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
942 External links: URL within URL (original bug 2)
944 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
946 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
951 BUG 361: URL inside bracketed URL
953 [http://www.example.com/foo http://www.example.com/bar]
955 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
960 BUG 361: URL within URL, not bracketed
962 http://www.example.com/foo?=http://www.example.com/bar
964 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
969 BUG 289: ">"-token in URL-tail
971 http://www.example.com/<hello>
973 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
978 BUG 289: literal ">"-token in URL-tail
980 http://www.example.com/<b>html</b>
982 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
987 BUG 289: ">"-token in bracketed URL
989 [http://www.example.com/<hello> stuff]
991 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
996 BUG 289: literal ">"-token in bracketed URL
998 [http://www.example.com/<b>html</b> stuff]
1000 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1005 BUG 289: literal double quote at end of URL
1007 http://www.example.com/"hello"
1009 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1014 BUG 289: literal double quote in bracketed URL
1016 [http://www.example.com/"hello" stuff]
1018 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1023 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1025 [http://www.example.com test]
1027 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1032 External links: wiki links within external link (Bug 3695)
1034 [http://example.com [[wikilink]] embedded in ext link]
1036 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
1041 BUG 787: Links with one slash after the url protocol are invalid
1045 [http:/example.com title]
1047 <p>http:/example.com
1048 </p><p>[http:/example.com title]
1053 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1055 ''[http://example.com text'']
1056 [http://example.com '''text]'''
1057 ''Something [http://example.com in italic'']
1058 ''Something [http://example.com mixed''''', even bold]'''
1059 '''''Now [http://example.com both''''']
1061 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1062 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1063 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1064 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1065 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1071 Bug 4781: %26 in URL
1073 http://www.example.com/?title=AT%26T
1075 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1079 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
1080 # % is actually legal in HTML5. Any change in output would need testing though.
1082 Bug 4781, 5267: %25 in URL
1084 http://www.example.com/?title=100%25_Bran
1086 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
1091 Bug 4781, 5267: %28, %29 in URL
1093 http://www.example.com/?title=Ben-Hur_%281959_film%29
1095 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
1101 Bug 4781: %26 in autonumber URL
1103 [http://www.example.com/?title=AT%26T]
1105 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1110 Bug 4781, 5267: %26 in autonumber URL
1112 [http://www.example.com/?title=100%25_Bran]
1114 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1119 Bug 4781, 5267: %28, %29 in autonumber URL
1121 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1123 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1129 Bug 4781: %26 in bracketed URL
1131 [http://www.example.com/?title=AT%26T link]
1133 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1138 Bug 4781, 5267: %26 in bracketed URL
1140 [http://www.example.com/?title=100%25_Bran link]
1142 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1147 Bug 4781, 5267: %28, %29 in bracketed URL
1149 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1151 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1156 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1158 Some [http://example.com/ pretty ''italics'' and stuff]!
1160 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1165 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1167 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1169 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1174 External link containing double-single-quotes with no space separating the url from text in italics
1176 [http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]
1178 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
1183 URL-encoding in URL functions (single parameter)
1185 {{localurl:Some page|amp=&}}
1187 <p>/index.php?title=Some_page&amp=&
1192 URL-encoding in URL functions (multiple parameters)
1194 {{localurl:Some page|q=?&=&}}
1196 <p>/index.php?title=Some_page&q=?&amp=&
1203 http://example.com/index.php?foozoid%5B%5D=bar
1205 http://example.com/index.php?foozoid[]=bar
1207 <p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
1208 </p><p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
1213 IPv6 urls (bug 21261)
1217 http://[2404:130:0:1000::187:2]/index.php
1219 <p><a rel="nofollow" class="external free" href="http://[2404:130:0:1000::187:2]/index.php">http://[2404:130:0:1000::187:2]/index.php</a>
1230 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1232 Normal text. '''''Bold italic text.''''' Normal text.
1234 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1235 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1241 Unclosed and unmatched quotes
1243 '''''Bold italic text '''with bold deactivated''' in between.'''''
1245 '''''Bold italic text ''with italic deactivated'' in between.'''''
1249 ..spanning two paragraphs (should not work).'''
1251 '''Bold tag left open
1253 ''Italic tag left open
1257 <!-- Unmatching number of opening, closing tags: -->
1258 '''This year''''s election ''should'' beat '''last year''''s.
1260 ''Tom'''s car is bigger than ''Susan'''s.
1262 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1263 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1264 </p><p><b>Bold text..</b>
1265 </p><p>..spanning two paragraphs (should not work).
1266 </p><p><b>Bold tag left open</b>
1267 </p><p><i>Italic tag left open</i>
1269 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1270 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1277 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1280 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1281 # is the bare minimun required by the spec, see:
1282 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1284 A table with no data.
1290 # A table with nothing but a caption is invalid XHTML, we might want to render
1291 # this as <p>caption</p>
1293 A table with nothing but a caption
1301 </caption><tr><td></td></tr></table>
1327 Multiplication table
1329 {| border="1" cellpadding="2"
1330 |+Multiplication table
1332 ! × !! 1 !! 2 !! 3
1350 <table border="1" cellpadding="2">
1351 <caption>Multiplication table
1402 |rowspan=2| Cell 2, row 1 (and 2)
1413 <td rowspan="2"> Cell 2, row 1 (and 2)
1431 {| bgcolor=#ABCDEF border=2
1436 |the original table again
1444 <table bgcolor="#ABCDEF" border="2">
1452 <td>the original table again
1458 Invalid attributes in table cell (bug 1830)
1473 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1476 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1480 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
1481 <td>]" onmouseover="alert(document.cookie)">test
1490 Indented table markup mixed with indented pre content (proposed in bug 6200)
1495 Text that should be rendered preformatted
1503 <pre>Text that should be rendered preformatted
1516 Plain link, capitalized
1520 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1525 Plain link, uncapitalized
1529 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1536 [[Main Page|The Main Page]]
1538 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1547 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1552 Broken link with fragment
1554 [[Zigzagzogzagzig#zug]]
1556 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1561 Special page link with fragment
1563 [[Special:Version#anchor]]
1565 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1570 Nonexistent special page link with fragment
1572 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1574 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1581 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1583 <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>
1590 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1592 <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>!!!
1597 Link with 3 brackets
1606 Piped link with 3 brackets
1608 [[[main page|the main page]]]
1610 <p>[[[main page|the main page]]]
1615 Link with multiple pipes
1617 [[Main Page|The|Main|Page]]
1619 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1626 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1628 <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>
1633 Piped link to namespace
1635 [[Meta:Disclaimers|The disclaimers]]
1637 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1644 [[Usually caused by a typo (oops}]]
1646 <p>[[Usually caused by a typo (oops}]]
1651 Link containing % (not as a hex sequence)
1655 <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>
1660 Link containing % as a single hex sequence interpreted to char
1664 <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>
1669 Link containing % as a double hex sequence interpreted to hex sequence
1673 <p>[[7%2525 Solution]]
1678 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1679 Example for such a section: == < ==
1681 [[%23%3c]][[%23%3e]]
1683 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1688 Link containing "<#" and ">#" as a hex sequences
1690 [[%3c%23]][[%3e%23]]
1692 <p>[[%3c%23]][[%3e%23]]
1697 Link containing double-single-quotes '' (bug 4598)
1699 [[Lista d''e paise d''o munno]]
1701 <p><a href="/index.php?title=Lista_d%27%27e_paise_d%27%27o_munno&action=edit&redlink=1" class="new" title="Lista d''e paise d''o munno (page does not exist)">Lista d''e paise d''o munno</a>
1706 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1708 Some [[Link|pretty ''italics'' and stuff]]!
1710 <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>!
1715 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1717 ''Some [[Link|pretty ''italics'' and stuff]]!
1719 <p><i>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!</i>
1724 Link with double quotes in title part (literal) and alternate part (interpreted)
1726 [[File:Denys Savchenko ''Pentecoste''.jpg]]
1730 [[''Pentecoste''|Pentecoste]]
1732 [[''Pentecoste''|''Pentecoste'']]
1734 <p><a href="/index.php?title=Special:Upload&wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg" class="new" title="File:Denys Savchenko ''Pentecoste''.jpg">File:Denys Savchenko <i>Pentecoste</i>.jpg</a>
1735 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">''Pentecoste''</a>
1736 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">Pentecoste</a>
1737 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)"><i>Pentecoste</i></a>
1744 [[http://www.example.com]]
1746 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
1751 Plain link to URL with link text
1753 [[http://www.example.com Link text]]
1755 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
1760 Plain link to protocol-relative URL
1762 [[//www.example.com]]
1764 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
1769 Plain link to protocol-relative URL with link text
1771 [[//www.example.com Link text]]
1773 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
1778 # I'm fairly sure the expected result here is wrong.
1779 # We want these to be URL links, not pseudo-pages with URLs for titles....
1780 # However the current output is also pretty screwy.
1783 # I'm changing it to match the current output--it arguably makes more
1784 # sense in the light of the test above. Old expected result was:
1785 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1787 # But I think this test is bordering on "garbage in, garbage out" anyway.
1792 Piped link to URL: [[http://www.example.com|an example URL]]
1794 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
1799 BUG 2: [[page|http://url/]] should link to page, not http://url/
1801 [[Main Page|http://url/]]
1803 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1808 BUG 337: Escaped self-links should be bold
1812 [[Bug462]] [[Bug462]]
1814 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1819 Self-link to section should not be bold
1823 [[Main Page#section]]
1825 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1836 Self-link to numeric title
1842 <p><strong class="selflink">0</strong>
1847 Link to numeric-equivalent title
1853 <p><a href="/wiki/00" title="00">00</a>
1858 <nowiki> inside a link
1860 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1862 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1867 Non-breaking spaces in title
1869 [[ Main Page ]]
1871 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
1876 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
1882 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
1887 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
1893 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
1898 Internal link with en linktrail: no apostrophes (bug 27473)
1904 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
1909 Internal link with ca linktrail with apostrophes (bug 27473)
1915 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
1920 Internal link with kaa linktrail with apostrophes (bug 27473)
1926 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
1931 ### Interwiki links (see maintenance/interwiki.sql)
1935 Inline interwiki link
1937 [[MeatBall:SoftSecurity]]
1939 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1944 Inline interwiki link with empty title (bug 2372)
1948 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
1953 Interwiki link encoding conversion (bug 1636)
1955 *[[Wikipedia:ro:Olteniţa]]
1956 *[[Wikipedia:ro:Olteniţa]]
1958 <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>
1959 </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>
1965 Interwiki link with fragment (bug 2130)
1967 [[MeatBall:SoftSecurity#foo]]
1969 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1984 Double interlanguage link
1995 Interlanguage link, with prefix links
2007 Double interlanguage link, with prefix links (bug 8897)
2034 Incorrecly removing closing slashes from correctly formed XHTML
2036 <br style="clear:both;" />
2038 <p><br style="clear:both;" />
2043 Failing to transform badly formed HTML into correct XHTML
2045 <br style="clear: left;">
2046 <br style="clear: right;">
2047 <br style="clear: both;">
2049 <p><br style="clear: left;" />
2050 <br style="clear: right;" />
2051 <br style="clear: both;" />
2056 Horizontal ruler (should it add that extra space?)
2070 ### Block-level elements
2093 <ol><li>Numbered list
2110 ***#Number on level 4
2112 **#Number on level 3
2113 **#Number on level 3
2118 <ol><li> with numbers
2120 <ul><li> and bullets
2122 <ol><li> and numbers
2124 </li><li>bullets again
2125 <ul><li>bullet level 2
2126 <ul><li>bullet level 3
2127 <ol><li>Number on level 4
2130 </li><li>bullet level 2
2131 <ol><li>Number on level 3
2132 </li><li>Number on level 3
2135 <ol><li>number level 2
2143 List items are not parsed correctly following a <pre> block (bug 785)
2149 <ul><li> <pre>foo</pre>
2150 </li><li> <pre>bar</pre>
2157 List items from template
2168 * notSOL{{inner list}}
2191 Magic Word: {{CURRENTDAY}}
2200 Magic Word: {{CURRENTDAY2}}
2209 Magic Word: {{CURRENTDAYNAME}}
2218 Magic Word: {{CURRENTDOW}}
2227 Magic Word: {{CURRENTMONTH}}
2236 Magic Word: {{CURRENTMONTHABBREV}}
2238 {{CURRENTMONTHABBREV}}
2245 Magic Word: {{CURRENTMONTHNAME}}
2247 {{CURRENTMONTHNAME}}
2254 Magic Word: {{CURRENTMONTHNAMEGEN}}
2256 {{CURRENTMONTHNAMEGEN}}
2263 Magic Word: {{CURRENTTIME}}
2272 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2281 Magic Word: {{CURRENTYEAR}}
2290 Magic Word: {{FULLPAGENAME}}
2292 title=[[User:Ævar Arnfjörð Bjarmason]]
2296 <p>User:Ævar Arnfjörð Bjarmason
2301 Magic Word: {{FULLPAGENAMEE}}
2303 title=[[User:Ævar Arnfjörð Bjarmason]]
2307 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2312 Magic Word: {{NAMESPACE}}
2314 title=[[User:Ævar Arnfjörð Bjarmason]]
2323 Magic Word: {{NAMESPACEE}}
2325 title=[[User:Ævar Arnfjörð Bjarmason]]
2334 Magic Word: {{NAMESPACENUMBER}}
2336 title=[[User:Ævar Arnfjörð Bjarmason]]
2345 Magic Word: {{NUMBEROFFILES}}
2354 Magic Word: {{PAGENAME}}
2356 title=[[User:Ævar Arnfjörð Bjarmason]]
2360 <p>Ævar Arnfjörð Bjarmason
2365 Magic Word: {{PAGENAME}} with metacharacters
2367 title=[['foo & bar = baz']]
2371 <p><i>'foo & bar = baz'</i>
2376 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2378 title=[[*RFC 1234 http://example.com/]]
2382 <p>*RFC 1234 http://example.com/
2387 Magic Word: {{PAGENAMEE}}
2389 title=[[User:Ævar Arnfjörð Bjarmason]]
2393 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2398 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2400 title=[[*RFC 1234 http://example.com/]]
2404 <p>*RFC_1234_http://example.com/
2409 Magic Word: {{REVISIONID}}
2418 Magic Word: {{SCRIPTPATH}}
2427 Magic Word: {{SERVER}}
2431 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2436 Magic Word: {{SERVERNAME}}
2445 Magic Word: {{SITENAME}}
2454 Namespace 1 {{ns:1}}
2463 Namespace 1 {{ns:01}}
2472 Namespace 0 {{ns:0}} (bug 4783)
2480 Namespace 0 {{ns:00}} (bug 4783)
2488 Namespace -1 {{ns:-1}}
2497 Namespace User {{ns:User}}
2506 Namespace User talk {{ns:User_talk}}
2515 Namespace User talk {{ns:uSeR tAlK}}
2524 Namespace File {{ns:File}}
2533 Namespace File {{ns:Image}}
2542 Namespace (lang=de) Benutzer {{ns:User}}
2553 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2559 <p>Benutzer Diskussion
2567 {{urlencode:hi world?!}}
2568 {{urlencode:hi world?!|WIKI}}
2569 {{urlencode:hi world?!|PATH}}
2570 {{urlencode:hi world?!|QUERY}}
2583 Magic links: internal link to RFC (bug 479)
2587 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2592 Magic links: RFC (bug 479)
2596 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
2601 Magic links: ISBN (bug 1937)
2605 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2610 Magic links: PMID incorrectly converts space to underscore
2614 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2623 Nonexistent template
2625 {{thistemplatedoesnotexist}}
2627 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2634 This is a test template
2642 <p>This is a test template
2647 Template with explicit namespace
2651 <p>This is a test template
2659 This is a test template with parameter {{{param}}}
2665 {{paramtest|param=foo}}
2667 <p>This is a test template with parameter foo
2672 Template:paramtestnum
2678 Template unnamed parameter
2680 {{paramtestnum|Main Page|the main page}}
2682 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2687 Template:templatesimple
2693 Template:templateredirect
2695 #redirect [[Template:templatesimple]]
2699 Template:templateasargtestnum
2705 Template:templateasargtest
2707 {{template{{{templ}}}}}
2711 Template:templateasargtest2
2717 Template with template name as unnamed argument
2719 {{templateasargtestnum|templatesimple}}
2726 Template with template name as argument
2728 {{templateasargtest|templ=simple}}
2735 Template with template name as argument (2)
2737 {{templateasargtest2|templ=templatesimple}}
2744 Template:templateasargtestdefault
2746 {{{{{templ|templatesimple}}}}}
2756 Template with default value
2758 {{templateasargtestdefault}}
2765 Template with default value (value set)
2767 {{templateasargtestdefault|templ=templa}}
2776 {{templateredirect}}
2783 Template with argument in separate line
2785 {{ templateasargtest |
2793 Template with complex template as argument
2796 param ={{ templateasargtest |
2799 <p>This is a test template with parameter (test)
2804 Template with thumb image (with link in description)
2807 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2809 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>
2814 Template:complextemplate
2816 {{{1}}} {{paramtest|
2817 param ={{{param}}}}}
2821 Template with complex arguments
2824 param ={{ templateasargtest |
2825 templ = simple }}|[[Template:complextemplate|link]]}}
2827 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2832 BUG 553: link with two variables in a piped link
2835 |[[{{{1}}}|{{{2}}}]]
2840 <td>[[{{{1}}}|{{{2}}}]]
2846 Magic variable as template parameter
2848 {{paramtest|param={{SITENAME}}}}
2850 <p>This is a test template with parameter MediaWiki
2857 [[{{{param}}}|link]]
2861 Template parameter as link source
2863 {{linktest|param=Main Page}}
2865 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2873 including another template, {{paramtest|param={{{arg}}}}}
2877 Template passing argument to another template
2879 {{paramtest2|arg='hmm'}}
2881 <p>including another template, This is a test template with parameter 'hmm'
2892 Template as link source
2896 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2914 Template infinite loop
2918 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
2923 Template from main namespace
2942 BUG 529: Template with table, not included at beginning of line
2961 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2981 BUG 41: Template parameters shown as broken links
2993 ''None'' of '''this''' should be
2995 but rather passed unmodified
2999 # hmm, fix this or just deprecate msgnw and document its behavior?
3005 {{msgnw:MSGNW test}}
3007 <p>''None'' of '''this''' should be
3009 but rather passed unmodified
3017 {{int:youhavenewmessages|lots of money|not!}}
3019 <p>You have lots of money (not!).
3026 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3030 <includeonly> and <noinclude> being included
3041 <onlyinclude>Foo</onlyinclude>bar
3045 <onlyinclude> being included
3057 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3061 <onlyinclude> and <includeonly> being included
3070 <includeonly> and <noinclude> on a page
3072 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3079 <onlyinclude> on a page
3081 <onlyinclude>Foo</onlyinclude>bar
3088 Template:Includeonly section
3091 ==Includeonly section==
3097 Bug 6563: Edit link generation for section shown by <includeonly>
3099 {{includeonly section}}
3101 <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>
3102 <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>
3106 # Uses same input as the contents of [[Template:Includeonly section]]
3108 Bug 6563: Section extraction for section shown by <includeonly>
3113 ==Includeonly section==
3121 Bug 6563: Edit link generation for section suppressed by <includeonly>
3124 ==Includeonly section==
3128 <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>
3133 Bug 6563: Section extraction for section suppressed by <includeonly>
3138 ==Includeonly section==
3146 ### Pre-save transform tests
3149 pre-save transform: subst:
3155 This is a test template
3159 pre-save transform: normal template
3169 pre-save transform: nonexistent template
3173 {{thistemplatedoesnotexist}}
3175 {{thistemplatedoesnotexist}}
3180 pre-save transform: subst magic variables
3189 # This is bug 89, which I fixed. -- wtm
3191 pre-save transform: subst: templates with parameters
3195 {{subst:paramtest|param="something else"}}
3197 This is a test template with parameter "something else"
3203 <nowiki>'''not wiki'''</nowiki>
3207 pre-save transform: nowiki in subst (bug 1188)
3211 {{subst:nowikitest}}
3213 <nowiki>'''not wiki'''</nowiki>
3218 Template:commenttest
3220 This template has <!-- a comment --> in it.
3224 pre-save transform: comment in subst (bug 1936)
3228 {{subst:commenttest}}
3230 This template has <!-- a comment --> in it.
3234 pre-save transform: unclosed tag
3238 <nowiki>'''not wiki'''
3240 <nowiki>'''not wiki'''
3244 pre-save transform: mixed tag case
3248 <NOwiki>'''not wiki'''</noWIKI>
3250 <NOwiki>'''not wiki'''</noWIKI>
3254 pre-save transform: unclosed comment in <nowiki>
3258 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3260 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3266 <span onmouseover="alert('crap')">Oh no</span>
3270 (confirming safety of fix for subst bug 1936)
3272 {{Template:dangerous}}
3274 <p><span>Oh no</span>
3279 pre-save transform: comment containing gallery (bug 5024)
3283 <!-- <gallery>data</gallery> -->
3285 <!-- <gallery>data</gallery> -->
3289 pre-save transform: comment containing extension
3293 <!-- <tag>data</tag> -->
3295 <!-- <tag>data</tag> -->
3299 pre-save transform: comment containing nowiki
3303 <!-- <nowiki>data</nowiki> -->
3305 <!-- <nowiki>data</nowiki> -->
3309 pre-save transform: <noinclude> in subst (bug 3298)
3319 pre-save transform: <onlyinclude> in subst (bug 3298)
3331 {{<includeonly>subst:</includeonly>Includes}}
3335 Template:SafeSubstTest
3337 {{<includeonly>safesubst:</includeonly>Includes}}
3341 bug 22297: safesubst: works during PST
3345 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3351 bug 22297: safesubst: works during normal parse
3360 subst: does not work during normal parse
3364 <p>{{subst:Includes}}
3369 pre-save transform: context links ("pipe trick")
3373 [[Article (context)|]]
3376 [[Bar:Article (context)|]]
3377 [[:Bar:Article (context)|]]
3379 [[|Article (context)]]
3383 [[Article (context)|Article]]
3384 [[Bar:Article|Article]]
3385 [[:Bar:Article|Article]]
3386 [[Bar:Article (context)|Article]]
3387 [[:Bar:Article (context)|Article]]
3389 [[Article (context)]]
3390 [[Bar:X (Y) Z|X (Y) Z]]
3391 [[:Bar:X (Y) Z|X (Y) Z]]
3395 pre-save transform: context links ("pipe trick") with interwiki prefix
3399 [[interwiki:Article|]]
3400 [[:interwiki:Article|]]
3401 [[interwiki:Bar:Article|]]
3402 [[:interwiki:Bar:Article|]]
3404 [[interwiki:Article|Article]]
3405 [[:interwiki:Article|Article]]
3406 [[interwiki:Bar:Article|Bar:Article]]
3407 [[:interwiki:Bar:Article|Bar:Article]]
3411 pre-save transform: context links ("pipe trick") with parens in title
3413 pst title=[[Somearticle (context)]]
3417 [[Article (context)|Article]]
3421 pre-save transform: context links ("pipe trick") with comma in title
3423 pst title=[[Someplace, Somewhere]]
3426 [[Otherplace, Elsewhere|]]
3427 [[Otherplace, Elsewhere, Anywhere|]]
3429 [[Otherplace, Somewhere|Otherplace]]
3430 [[Otherplace, Elsewhere|Otherplace]]
3431 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3435 pre-save transform: context links ("pipe trick") with parens and comma
3437 pst title=[[Someplace (IGNORED), Somewhere]]
3440 [[Otherplace (place), Elsewhere|]]
3442 [[Otherplace, Somewhere|Otherplace]]
3443 [[Otherplace (place), Elsewhere|Otherplace]]
3447 pre-save transform: context links ("pipe trick") with comma and parens
3449 pst title=[[Who, me? (context)]]
3452 [[Me, Myself, and I (1937 song)|]]
3454 [[Yes, you. (context)|Yes, you.]]
3455 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3459 pre-save transform: context links ("pipe trick") with namespace
3461 pst title=[[Ns:Somearticle]]
3465 [[Ns:Article|Article]]
3469 pre-save transform: context links ("pipe trick") with namespace and parens
3471 pst title=[[Ns:Somearticle (context)]]
3475 [[Ns:Article (context)|Article]]
3479 pre-save transform: context links ("pipe trick") with namespace and comma
3481 pst title=[[Ns:Somearticle, Context, Whatever]]
3485 [[Ns:Article, Context, Whatever|Article]]
3489 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3491 pst title=[[Ns:Somearticle, Context (context)]]
3495 [[Ns:Article (context)|Article]]
3499 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3501 pst title=[[Ns:Somearticle (IGNORED), Context]]
3505 [[Ns:Article, Context|Article]]
3509 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
3513 [[Article(context)|]]
3514 [[Bar:Article(context)|]]
3515 [[:Bar:Article(context)|]]
3516 [[|Article(context)]]
3520 [[Article(context)|Article]]
3521 [[Bar:Article(context)|Article]]
3522 [[:Bar:Article(context)|Article]]
3523 [[Article(context)]]
3525 [[:Bar:X(Y)Z|X(Y)Z]]
3529 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
3533 [[Article (context)|]]
3534 [[Bar:Article (context)|]]
3535 [[:Bar:Article (context)|]]
3536 [[|Article (context)]]
3540 [[Article (context)|Article]]
3541 [[Bar:Article (context)|Article]]
3542 [[:Bar:Article (context)|Article]]
3543 [[Article (context)]]
3544 [[Bar:X (Y) Z|X (Y) Z]]
3545 [[:Bar:X (Y) Z|X (Y) Z]]
3549 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
3553 [[Article(context)|]]
3554 [[Bar:Article(context)|]]
3555 [[:Bar:Article(context)|]]
3556 [[|Article(context)]]
3560 [[Article(context)|Article]]
3561 [[Bar:Article(context)|Article]]
3562 [[:Bar:Article(context)|Article]]
3563 [[Article(context)]]
3565 [[:Bar:X(Y)Z|X(Y)Z]]
3569 pre-save transform: context links ("pipe trick") with commas (bug 21660)
3573 [[Article (context), context|]]
3574 [[Article (context),context|]]
3575 [[Bar:Article (context), context|]]
3576 [[Bar:Article (context),context|]]
3577 [[:Bar:Article (context), context|]]
3578 [[:Bar:Article (context),context|]]
3580 [[Article (context), context|Article]]
3581 [[Article (context),context|Article]]
3582 [[Bar:Article (context), context|Article]]
3583 [[Bar:Article (context),context|Article]]
3584 [[:Bar:Article (context), context|Article]]
3585 [[:Bar:Article (context),context|Article]]
3589 pre-save transform: trim trailing empty lines
3593 Empty lines are trimmed
3599 Empty lines are trimmed
3603 pre-save transform: Signature expansion
3608 * <noinclude>~~~</noinclude>
3609 * <includeonly>~~~</includeonly>
3610 * <onlyinclude>~~~</onlyinclude>
3612 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
3613 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
3614 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
3615 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
3620 pre-save transform: Signature expansion in nowiki tags (bug 93)
3626 <nowiki>~~~~</nowiki>
3628 <includeonly><nowiki>~~~~</nowiki></includeonly>
3630 <noinclude><nowiki>~~~~</nowiki></noinclude>
3632 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3634 {{subst:Foo}} shall be converted to FOO
3636 As well as inside noinclude/onlyinclude
3637 <noinclude>{{subst:Foo}}</noinclude>
3638 <onlyinclude>{{subst:Foo}}</onlyinclude>
3640 But not inside includeonly
3641 <includeonly>{{subst:Foo}}</includeonly>
3645 <nowiki>~~~~</nowiki>
3647 <includeonly><nowiki>~~~~</nowiki></includeonly>
3649 <noinclude><nowiki>~~~~</nowiki></noinclude>
3651 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3653 FOO shall be converted to FOO
3655 As well as inside noinclude/onlyinclude
3656 <noinclude>FOO</noinclude>
3657 <onlyinclude>FOO</onlyinclude>
3659 But not inside includeonly
3660 <includeonly>{{subst:Foo}}</includeonly>
3664 ### Message transform tests
3667 message transform: magic variables
3677 message transform: should not transform wiki markup
3687 message transform: <noinclude> in transcluded template (bug 4926)
3697 message transform: <onlyinclude> in transcluded template (bug 4926)
3707 {{#special:}} page name, known
3711 {{#special:Recentchanges}}
3713 Special:RecentChanges
3717 {{#special:}} page name with subpage, known
3721 {{#special:Recentchanges/param}}
3723 Special:RecentChanges/param
3727 {{#special:}} page name, unknown
3731 {{#special:foobarnonexistent}}
3733 No such special page
3737 {{#speciale:}} page name, known
3741 {{#speciale:Recentchanges}}
3743 Special:RecentChanges
3747 {{#speciale:}} page name with subpage, known
3751 {{#speciale:Recentchanges/param}}
3753 Special:RecentChanges/param
3757 {{#speciale:}} page name, unknown
3761 {{#speciale:foobarnonexistent}}
3763 No_such_special_page
3772 [[Image:foobar.jpg]]
3774 <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>
3781 [[Image:foobar.jpg|right]]
3783 <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>
3788 Simple image (using File: namespace, now canonical)
3792 <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>
3799 [[Image:foobar.jpg|right|Caption text]]
3801 <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>
3806 Image with link parameter, wiki target
3808 [[Image:foobar.jpg|link=Target page]]
3810 <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>
3815 Image with link parameter, URL target
3817 [[Image:foobar.jpg|link=http://example.com/]]
3819 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3824 Image with link parameter, wgExternalLinkTarget
3826 [[Image:foobar.jpg|link=http://example.com/]]
3828 wgExternalLinkTarget='foobar'
3830 <p><a href="http://example.com/" target="foobar"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3835 Image with link parameter, wgExternalLinkTarget, unnamed parameter
3837 [[Image:foobar.jpg|link=http://example.com/|Title]]
3839 wgExternalLinkTarget='foobar'
3841 <p><a href="http://example.com/" title="Title" target="foobar"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3846 Image with empty link parameter
3848 [[Image:foobar.jpg|link=]]
3850 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3855 Image with link parameter (wiki target) and unnamed parameter
3857 [[Image:foobar.jpg|link=Target page|Title]]
3859 <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>
3864 Image with link parameter (URL target) and unnamed parameter
3866 [[Image:foobar.jpg|link=http://example.com/|Title]]
3868 <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>
3873 Thumbnail image with link parameter
3875 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
3877 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="http://example.com/"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
3882 Image with frame and link
3884 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3886 <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>
3891 Image with frame and link and explicit alt
3893 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3895 <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>
3900 Image with wiki markup in implicit alt
3902 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3904 <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>
3909 Image with wiki markup in explicit alt
3911 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3913 <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>
3918 Link to image page- image page normally doesn't exists, hence edit link
3919 Add test with existing image page
3920 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3924 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3929 bug 18784 Link to non-existent image page with caption should use caption as link text
3931 [[:Image:test|caption]]
3933 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
3938 Frameless image caption with a free URL
3940 [[Image:foobar.jpg|http://example.com]]
3942 <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>
3947 Thumbnail image caption with a free URL
3949 [[Image:foobar.jpg|thumb|http://example.com]]
3951 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
3956 Thumbnail image caption with a free URL and explicit alt
3958 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3960 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
3965 BUG 1887: A ISBN with a thumbnail
3967 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3969 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
3974 BUG 1887: A RFC with a thumbnail
3976 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3978 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
3983 BUG 1887: A mailto link with a thumbnail
3985 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3987 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
3991 # Pending resolution to bug 368
3993 BUG 648: Frameless image caption with a link
3995 [[Image:foobar.jpg|text with a [[link]] in it]]
3997 <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>
4002 BUG 648: Frameless image caption with a link (suffix)
4004 [[Image:foobar.jpg|text with a [[link]]foo in it]]
4006 <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>
4011 BUG 648: Frameless image caption with an interwiki link
4013 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4015 <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>
4020 BUG 648: Frameless image caption with a piped interwiki link
4022 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4024 <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>
4029 Escape HTML special chars in image alt text
4031 [[Image:foobar.jpg|& < > "]]
4033 <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>
4038 BUG 499: Alt text should have Ӓ, not &1234;
4040 [[Image:foobar.jpg|♀]]
4042 <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>
4047 Broken image caption with link
4049 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4051 <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.
4056 Image caption containing another image
4058 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4060 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is a caption with another <a href="/index.php?title=Special:Upload&wpDestFile=Icon.png" class="new" title="File:Icon.png">image</a> inside it!</div></div></div>
4065 Image caption containing a newline
4067 [[Image:Foobar.jpg|This
4070 <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>
4076 Bug 3090: External links other than http: in image captions
4078 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4080 <div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="200" height="23" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This caption has <a rel="nofollow" class="external text" href="irc://example.net">irc</a> and <a rel="nofollow" class="external text" href="https://example.com">Secure</a> ext links in it.</div></div></div>
4087 #REDIRECT [[File:Barfoo.jpg]]
4093 [[Image:Barfoo.jpg]]
4095 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
4100 Missing image with uploads disabled
4104 [[Image:Foobaz.jpg]]
4106 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
4115 Subpage test/subpage
4123 subpage title=[[Subpage test]]
4127 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
4132 Subpage noslash link
4134 subpage title=[[Subpage test]]
4138 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4147 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4152 BUG 561: {{/Subpage}}
4154 subpage title=[[Page]]
4158 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4166 Category:MediaWiki User's Guide
4174 [[:Category:MediaWiki User's Guide]]
4176 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
4185 [[Category:MediaWiki User's Guide]]
4187 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4191 PAGESINCATEGORY invalid title fatal (r33546 fix)
4193 {{PAGESINCATEGORY:<bogus>}}
4200 ### Inter-language links
4203 Inter-language links
4209 [[zh:食品]]
4211 es:Alimento fr:Nourriture zh:食品
4218 Basic section headings
4225 ===Smaller headline===
4228 <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>
4231 <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>
4234 <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>
4240 Section headings with TOC
4243 === Subheadline 1 ===
4244 ===== Skipping a level =====
4245 ====== Skipping a level ======
4249 ===Another headline===
4251 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4253 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4255 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4257 <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>
4259 <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>
4266 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4268 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4273 <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>
4274 <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>
4275 <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>
4276 <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>
4277 <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>
4280 <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>
4284 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4286 Handling of sections up to level 6 and beyond
4289 == Level 2 Heading==
4290 === Level 3 Heading===
4291 ==== Level 4 Heading====
4292 ===== Level 5 Heading=====
4293 ====== Level 6 Heading======
4294 ======= Level 7 Heading=======
4295 ======== Level 8 Heading========
4296 ========= Level 9 Heading=========
4297 ========== Level 10 Heading==========
4299 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4301 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4303 <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>
4305 <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>
4307 <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>
4309 <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>
4311 <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>
4312 <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>
4313 <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>
4314 <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>
4315 <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>
4328 <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>
4329 <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>
4330 <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>
4331 <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>
4332 <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>
4333 <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>
4334 <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>
4335 <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>
4336 <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>
4337 <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>
4342 TOC regression (bug 9764)
4346 ==== title 1.1.1 ====
4351 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4353 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4355 <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>
4357 <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>
4360 <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>
4363 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4365 <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>
4370 <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>
4371 <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>
4372 <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>
4373 <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>
4374 <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>
4375 <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>
4380 TOC with wgMaxTocLevel=3 (bug 6204)
4386 ==== title 1.1.1 ====
4391 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4393 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4395 <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>
4396 <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>
4399 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4401 <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>
4406 <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>
4407 <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>
4408 <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>
4409 <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>
4410 <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>
4411 <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>
4416 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4422 ====Section 1.1.1====
4423 ====Section 1.1.1.1====
4426 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4428 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4430 <li class="toclevel-2 tocsection-2"><a href="#Section_1.1"><span class="tocnumber">1.1</span> <span class="toctext">Section 1.1</span></a></li>
4433 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4436 <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>
4437 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1">Section 1.1</span></h3>
4438 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Section 1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1">Section 1.1.1</span></h4>
4439 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Section 1.1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1.1">Section 1.1.1.1</span></h4>
4440 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Section 2">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4446 Resolving duplicate section names
4451 <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>
4452 <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>
4457 Resolving duplicate section names with differing case (bug 10721)
4462 <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>
4463 <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>
4475 Template with sections, __NOTOC__
4482 <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>
4483 <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>
4484 <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>
4485 <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>
4490 __NOEDITSECTION__ keyword
4496 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4497 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4502 Link inside a section heading
4504 ==Section with a [[Main Page|link]] in it==
4506 <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>
4511 TOC regression (bug 12077)
4518 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4520 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4522 <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>
4525 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4528 <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>
4529 <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>
4530 <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>
4535 BUG 1219 URL next to image (good)
4537 http://example.com [[Image:foobar.jpg]]
4539 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4544 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4547 The line above must have a trailing space!
4550 But just in case it doesn't...
4552 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D">=</span></h1>
4553 <p>The line above must have a trailing space!
4555 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D_2">=</span></h1>
4556 <p>But just in case it doesn't...
4561 Header with special characters (bug 25462)
4563 The tooltips shall not show entities to the user (ie. be double escaped)
4580 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4582 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4584 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4585 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4586 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4587 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4588 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4591 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: text > text">edit</a>]</span> <span class="mw-headline" id="text_.3E_text"> text > text </span></h2>
4594 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: text < text">edit</a>]</span> <span class="mw-headline" id="text_.3C_text"> text < text </span></h2>
4597 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: text & text">edit</a>]</span> <span class="mw-headline" id="text_.26_text"> text & text </span></h2>
4600 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: text ' text">edit</a>]</span> <span class="mw-headline" id="text_.27_text"> text ' text </span></h2>
4603 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: text " text">edit</a>]</span> <span class="mw-headline" id="text_.22_text"> text " text </span></h2>
4609 BUG 1219 URL next to image (broken)
4611 http://example.com[[Image:foobar.jpg]]
4613 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4618 Bug 1186 news: in the middle of text
4620 http://en.wikinews.org/wiki/Wikinews:Workplace
4622 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4628 Namespaced link must have a title
4637 Namespaced link must have a title (bad fragment version)
4639 [[Project:#fragment]]
4641 <p>[[Project:#fragment]]
4647 div with no attributes
4649 <div>HTML rocks</div>
4651 <div>HTML rocks</div>
4656 div with double-quoted attribute
4658 <div id="rock">HTML rocks</div>
4660 <div id="rock">HTML rocks</div>
4665 div with single-quoted attribute
4667 <div id='rock'>HTML rocks</div>
4669 <div id="rock">HTML rocks</div>
4674 div with unquoted attribute
4676 <div id=rock>HTML rocks</div>
4678 <div id="rock">HTML rocks</div>
4683 div with illegal double attributes
4685 <div id="a" id="b">HTML rocks</div>
4687 <div id="b">HTML rocks</div>
4692 HTML multiple attributes correction
4694 <p class="error" class="awesome">Awesome!</p>
4696 <p class="awesome">Awesome!</p>
4701 Table multiple attributes correction
4704 !+ class="error" class="awesome"| status
4709 <th class="awesome"> status
4717 <DIV ID="x">HTML ROCKS</DIV>
4719 <div id="x">HTML ROCKS</div>
4725 text with amp in the middle of nowhere
4729 <p>Remember AT&T?
4734 text with character entity: eacute
4736 I always thought é was a cute letter.
4738 <p>I always thought é was a cute letter.
4743 text with undefined character entity: xacute
4745 I always thought &xacute; was a cute letter.
4747 <p>I always thought &xacute; was a cute letter.
4759 [[Media:Foobar.jpg]]
4761 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4766 Media link with text
4768 [[Media:Foobar.jpg|A neat file to look at]]
4770 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4774 # FIXME: this is still bad HTML tag nesting
4776 Media link with nasty text
4777 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4779 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4781 <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>
4786 Media link to nonexistent file (bug 1702)
4788 [[Media:No such.jpg]]
4790 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4795 Image link to nonexistent file (bug 1850 - good)
4797 [[Image:No such.jpg]]
4799 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4804 :Image link to nonexistent file (bug 1850 - bad)
4806 [[:Image:No such.jpg]]
4808 <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>
4815 Character reference normalization in link text (bug 1938)
4817 [[Main Page|this&that]]
4819 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4826 Test for unicode normalization
4828 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4832 (bug 19451) Links should refer to the normalized form.
4840 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4841 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4842 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4843 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4844 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4849 Empty attribute crash test (bug 2067)
4851 <font color="">foo</font>
4853 <p><font color="">foo</font>
4858 Empty attribute crash test single-quotes (bug 2067)
4860 <font color=''>foo</font>
4862 <p><font color="">foo</font>
4867 Attribute test: equals, then nothing
4869 <font color=>foo</font>
4876 Attribute test: unquoted value
4878 <font color=x>foo</font>
4880 <p><font color="x">foo</font>
4885 Attribute test: unquoted but illegal value (hash)
4887 <font color=#x>foo</font>
4889 <p><font color="#x">foo</font>
4894 Attribute test: no value
4896 <font color>foo</font>
4898 <p><font color="color">foo</font>
4903 Bug 2095: link with three closing brackets
4907 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
4912 Bug 2095: link with pipe and three closing brackets
4916 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4921 Bug 2095: link with pipe and three closing brackets, version 2
4923 [[Main Page|[http://example.com/]]]
4925 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4935 Template:Dangerous attribute
4937 " onmouseover="alert(document.cookie)
4941 Template:Dangerous style attribute
4943 border-size: expression(alert(document.cookie))
4949 <div style="float: right; {{{1}}}">Magic div</div>
4953 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4955 <div title="{{test}}"></div>
4957 <div title="This is a test template"></div>
4962 Bug 2304: HTML attribute safety (dangerous template; 2309)
4964 <div title="{{dangerous attribute}}"></div>
4966 <div title=""></div>
4971 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4973 <div style="{{dangerous style attribute}}"></div>
4975 <div style="/* insecure input */"></div>
4980 Bug 2304: HTML attribute safety (safe parameter; 2309)
4982 {{div style|width: 200px}}
4984 <div style="float: right; width: 200px">Magic div</div>
4989 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4991 {{div style|width: expression(alert(document.cookie))}}
4993 <div style="/* insecure input */">Magic div</div>
4998 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
5000 {{div style|"><script>alert(document.cookie)</script>}}
5002 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5007 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5009 {{div style|" ><script>alert(document.cookie)</script>}}
5011 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5016 Bug 2304: HTML attribute safety (link)
5018 <div title="[[Main Page]]"></div>
5020 <div title="[[Main Page]]"></div>
5025 Bug 2304: HTML attribute safety (italics)
5027 <div title="''foobar''"></div>
5029 <div title="''foobar''"></div>
5034 Bug 2304: HTML attribute safety (bold)
5036 <div title="'''foobar'''"></div>
5038 <div title="'''foobar'''"></div>
5044 Bug 2304: HTML attribute safety (ISBN)
5046 <div title="ISBN 1234567890"></div>
5048 <div title="ISBN 1234567890"></div>
5053 Bug 2304: HTML attribute safety (RFC)
5055 <div title="RFC 1234"></div>
5057 <div title="RFC 1234"></div>
5062 Bug 2304: HTML attribute safety (PMID)
5064 <div title="PMID 1234567890"></div>
5066 <div title="PMID 1234567890"></div>
5071 Bug 2304: HTML attribute safety (web link)
5073 <div title="http://example.com/"></div>
5075 <div title="http://example.com/"></div>
5080 Bug 2304: HTML attribute safety (named web link)
5082 <div title="[http://example.com/ link]"></div>
5084 <div title="[http://example.com/ link]"></div>
5089 Bug 3244: HTML attribute safety (extension; safe)
5091 <div style="<nowiki>background:blue</nowiki>"></div>
5093 <div style="background:blue"></div>
5098 Bug 3244: HTML attribute safety (extension; unsafe)
5100 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
5102 <div style="/* insecure input */"></div>
5106 # More MSIE fun discovered by Tom Gilder
5109 MSIE CSS safety test: spurious slash
5111 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
5113 <div style="/* insecure input */">evil</div>
5118 MSIE CSS safety test: hex code
5120 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
5122 <div style="/* insecure input */">evil</div>
5127 MSIE CSS safety test: comment in url
5129 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
5131 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
5136 MSIE CSS safety test: comment in expression
5138 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
5140 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5146 Table attribute legitimate extension
5149 !+ style="<nowiki>color:blue</nowiki>"| status
5154 <th style="color:blue"> status
5160 Table attribute safety
5163 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5168 <th style="/* insecure input */"> status
5174 CSS line continuation 1
5176 <div style="background-image: u\ rl(test.jpg);"></div>
5178 <div style="/* insecure input */"></div>
5183 CSS line continuation 2
5185 <div style="background-image: u\ rl(test.jpg); "></div>
5187 <div style="/* insecure input */"></div>
5198 Expansion of multi-line templates in attribute values (bug 6255)
5200 <div style="background: {{identity|#00FF00}}">-</div>
5202 <div style="background: #00FF00">-</div>
5208 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5210 <div style="background:
5213 <div style="background: #00FF00">-</div>
5218 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5220 <div style="background: #00FF00">-</div>
5222 <div style="background: #00FF00">-</div>
5227 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5230 Parser hook: empty input
5243 Parser hook: empty input using terminated empty elements
5256 Parser hook: empty input using terminated empty elements (space before)
5269 Parser hook: basic input
5283 Parser hook: case insensitive
5297 Parser hook: case insensitive, redux
5310 Parser hook: nested tags
5314 <tag><tag></tag></tag>
5325 Parser hook: basic arguments
5327 <tag width=200 height = "100" depth = '50' square></tag>
5346 Parser hook: argument containing a forward slash (bug 5344)
5348 <tag filename='/tmp/bla'></tag>
5354 string(8) "/tmp/bla"
5361 Parser hook: empty input using terminated empty elements (bug 2374)
5375 # </tag> should be output literally since there is no matching tag that begins it
5377 Parser hook: basic arguments using terminated empty elements (bug 2374)
5379 <tag width=200 height = "100" depth = '50' square/>
5402 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5406 Parser hook: static parser hook not inside a comment
5408 <statictag>hello, world</statictag>
5409 <statictag action=flush/>
5417 Parser hook: static parser hook inside a comment
5419 <!-- <statictag>hello, world</statictag> -->
5420 <statictag action=flush/>
5426 # Nested template calls; this case was broken by Parser.php rev 1.506,
5430 Template:One-parameter
5432 (My parameter is: {{{1}}})
5436 Template:Map-one-parameter
5442 Nested template calls
5444 {{Map-one-parameter|One-parameter|param}}
5446 <p>(My parameter is: param)
5455 Sanitizer: Closing of open tags
5457 <s></s><table></table>
5459 <s></s><table></table>
5464 Sanitizer: Closing of open but not closed tags
5473 Sanitizer: Closing of closed but not open tags
5482 Sanitizer: Closing of closed but not open table tags
5484 Table not started</td></tr></table>
5486 <p>Table not started</td></tr></table>
5491 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5493 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5495 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5500 Sanitizer: Validating the contents of the id attribute (bug 4515)
5506 Something, but definitely not <br id="9" />...
5510 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5514 <br id="foo" /><br id="foo" />
5516 Something need to be done. foo-2 ?
5520 Language converter: output gets cut off unexpectedly (bug 5757)
5524 this bit is safe: }-
5526 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5528 then we get cut off here: }-
5530 all additional text is vanished
5532 <p>this bit is safe: }-
5533 </p><p>but if we add a conversion instance: xxx
5534 </p><p>then we get cut off here: }-
5535 </p><p>all additional text is vanished
5540 Self closed html pairs (bug 5487)
5543 <center><font id="bug" />Centered text</center>
5544 <div><font id="bug2" />In div text</div>
5546 <center><font id="bug" />Centered text</center>
5547 <div><font id="bug2" />In div text</div>
5556 Punctuation: nbsp before exclamation
5560 <p>C'est grave !
5565 Punctuation: CSS !important (bug 11874)
5567 <div style="width:50% !important">important</div>
5569 <div style="width:50% !important">important</div>
5574 Punctuation: CSS ! important (bug 11874; with space after)
5576 <div style="width:50% ! important">important</div>
5578 <div style="width:50% ! important">important</div>
5584 HTML bullet list, closed tags (bug 5497)
5599 HTML bullet list, unclosed tags (bug 5497)
5616 HTML ordered list, closed tags (bug 5497)
5631 HTML ordered list, unclosed tags (bug 5497)
5648 HTML nested bullet list, closed tags (bug 5497)
5673 HTML nested bullet list, open tags (bug 5497)
5698 HTML nested ordered list, closed tags (bug 5497)
5723 HTML nested ordered list, open tags (bug 5497)
5748 HTML ordered list item with parameters oddity
5750 <ol><li id="fragment">One</li></ol>
5752 <ol><li id="fragment">One</li></ol>
5757 bug 5918: autonumbering
5759 [http://first/] [http://second] [ftp://ftp]
5763 [mailto:enclosed@mail.tld With target]
5765 [mailto:enclosed@mail.tld]
5767 mailto:inline@mail.tld
5769 <p><a rel="nofollow" class="external autonumber" href="http://first/">[1]</a> <a rel="nofollow" class="external autonumber" href="http://second">[2]</a> <a rel="nofollow" class="external autonumber" href="ftp://ftp">[3]</a>
5770 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
5771 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
5772 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
5773 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
5779 # Security and HTML correctness
5780 # From Nick Jenkins' fuzz testing
5784 Fuzz testing: Parser13
5799 Fuzz testing: Parser14
5804 <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>
5805 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5807 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5814 Fuzz testing: Parser14-table
5819 <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>
5820 <table style="__TOC__">
5826 # Known to produce bogus xml (extra </td>)
5828 Fuzz testing: Parser16
5848 Fuzz testing: Parser21
5851 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5856 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5866 Fuzz testing: Parser22
5868 http://===r:::https://b
5872 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
5880 # Known to produce bad XML for now
5882 Fuzz testing: Parser24
5889 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5890 <br style="onmouseover='alert(document.cookie);' " />
5892 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5897 <u class="|">}}}} >
5898 <br style="onmouseover='alert(document.cookie);'" />
5900 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5909 # Note: the current result listed for this is not what the original one was,
5910 # but the original bug was JavaScript injection, which is fixed in any case.
5911 # It's not clear that the original result listed was any more correct than the
5912 # current one. Original result:
5915 # <li class="||">
5916 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5918 Fuzz testing: Parser25 (bug 6055)
5924 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5926 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5931 Fuzz testing: URL adjacent extension (with space, clean)
5934 http://example.com <nowiki>junk</nowiki>
5936 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
5941 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5944 http://example.com<nowiki>junk</nowiki>
5946 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
5951 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5954 http://example.com<pre>junk</pre>
5956 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
5961 Fuzz testing: image with bogus manual thumbnail
5963 [[Image:foobar.jpg|thumbnail= ]]
5965 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5970 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5972 <pre dir=" "></pre>
5974 <pre dir=" "></pre>
5979 Parsing optional HTML elements (Bug 6171)
5984 <td> Some tabular data</td>
5985 <td> More tabular data ...
5986 <td> And yet som tabular data</td>
5992 <td> Some tabular data</td>
5993 <td> More tabular data ...
5994 </td><td> And yet som tabular data</td>
6001 Correct handling of <td>, <tr> (Bug 6171)
6006 <td> Some tabular data</td>
6007 <td> More tabular data ...</td>
6008 <td> And yet som tabular data</td>
6014 <td> Some tabular data</td>
6015 <td> More tabular data ...</td>
6016 <td> And yet som tabular data</td>
6024 Parsing crashing regression (fr:JavaScript)
6028 <p></body></x>
6033 Inline wiki vs wiki block nesting
6039 <p><b>Bold paragraph</b>
6040 </p><p>New wiki paragraph
6045 Inline HTML vs wiki block nesting
6053 <p><b>Bold paragraph</b>
6054 </p><p>New wiki paragraph
6058 # Original result was this:
6059 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6061 # While that might be marginally more intuitive, maybe, the six-apostrophe
6062 # construct is clearly pathological and the result stated here (which is what
6063 # the parser actually does) is about as reasonable as anything.
6065 Mixing markup for italics and bold
6068 '''bold''''''bold''bolditalics'''''
6070 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
6078 Article for special page transclusion test
6082 Special page transclusion
6085 {{Special:Prefixindex/Xyzzyx}}
6087 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6092 Special page transclusion twice (bug 5021)
6095 {{Special:Prefixindex/Xyzzyx}}
6096 {{Special:Prefixindex/Xyzzyx}}
6098 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6099 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6104 Transclusion of default MediaWiki message
6106 {{MediaWiki:Mainpage}}
6113 Transclusion of nonexistent MediaWiki message
6115 {{MediaWiki:Mainpagexxx}}
6117 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6122 Transclusion of MediaWiki message with underscore
6124 {{MediaWiki:history_short}}
6131 Transclusion of MediaWiki message with space
6133 {{MediaWiki:history short}}
6140 Invalid header with following text
6150 Section extraction test (section 0)
6170 Section extraction test (section 1)
6192 Section extraction test (section 2)
6213 Section extraction test (section 3)
6233 Section extraction test (section 4)
6257 Section extraction test (section 5)
6277 Section extraction test (section 6)
6298 Section extraction test (section 7)
6318 Section extraction test (section 8)
6338 Section extraction test (section 9)
6359 Section extraction test (section 10)
6379 Section extraction test (nonexistent section 11)
6398 Section extraction test with bogus heading (section 1)
6403 ==bogus== not a legal section
6407 ==bogus== not a legal section
6411 Section extraction test with bogus heading (section 2)
6416 ==bogus== not a legal section
6423 Section extraction test with comment after heading (section 1)
6435 Section extraction test with comment after heading (section 2)
6447 Section extraction test with bogus <nowiki> heading (section 1)
6452 ==bogus== <nowiki>not a legal section</nowiki>
6456 ==bogus== <nowiki>not a legal section</nowiki>
6460 Section extraction test with bogus <nowiki> heading (section 2)
6465 ==bogus== <nowiki>not a legal section</nowiki>
6472 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6473 # instead of respecting commented sections
6475 Section extraction prefixed by comment (section 1)
6486 Section extraction prefixed by comment (section 2)
6497 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6498 # instead of respecting HTML-style headings
6500 Section extraction, mixed wiki and html (section 1)
6516 Section extraction, mixed wiki and html (section 2)
6532 # Formerly testing for bug 3342
6534 Section extraction, heading surrounded by <noinclude>
6538 <noinclude>==unmarked==</noinclude>
6544 # Test behaviour of bug 19910
6546 Sectiion with all-equals
6551 The line above must have a trailing space
6554 But just in case it doesn't...
6558 But just in case it doesn't...
6562 Section replacement test (section 0)
6593 Section replacement test (section 1)
6622 Section replacement test (section 2)
6652 Section replacement test (section 3)
6683 Section replacement test (section 4)
6710 Section replacement test (section 5)
6741 Section replacement test (section 6)
6771 Section replacement test (section 7)
6802 Section replacement test (section 8)
6833 Section replacement test (section 9)
6862 Section replacement test (section 10)
6892 Section replacement test with initial whitespace (bug 13728)
6896 Preformatted initial line
6900 Preformatted initial line
6907 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6919 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6932 Section extraction, <pre> around bogus header (bug 10309)
6949 Section replacement, <pre> around bogus header (bug 10309)
6951 noxml replace=2,"xxx"
6972 Handling of 
 in URLs
6976 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
6983 5 quotes, code coverage +1 line
6990 Special:Search page linking.
6994 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
7009 * {{SUBJECTPAGENAME}}
7010 * {{SUBJECTPAGENAMEE}}
7017 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7019 <ul><li> Parser test
7020 </li><li> Parser test
7021 </li><li> Parser test
7022 </li><li> Parser_test
7023 </li><li> Parser test
7024 </li><li> Parser_test
7025 </li><li> Talk:Parser test
7026 </li><li> Talk:Parser_test
7027 </li><li> Parser test
7028 </li><li> Parser_test
7035 </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>
7039 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
7049 image4 |300px| centre
7050 image5.svg| http://///////
7055 <ul class="gallery">
7056 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7057 <div style="height: 150px;">Image1.png</div>
7058 <div class="gallerytext">
7061 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7062 <div style="height: 150px;">Image2.gif</div>
7063 <div class="gallerytext">
7068 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7069 <div style="height: 150px;">Image3</div>
7070 <div class="gallerytext">
7073 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7074 <div style="height: 150px;">Image4</div>
7075 <div class="gallerytext">
7080 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7081 <div style="height: 150px;">Image5.svg</div>
7082 <div class="gallerytext">
7083 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
7087 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7088 <div style="height: 150px;">* image6</div>
7089 <div class="gallerytext">
7097 Gallery (with options)
7099 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
7100 File:Nonexistant.jpg|caption
7101 File:Nonexistant.jpg
7102 image:foobar.jpg|some '''caption''' [[Main Page]]
7104 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
7107 <ul class="gallery" style="max-width: 226px;_width: 226px;">
7108 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
7109 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7110 <div style="height: 70px;">Nonexistant.jpg</div>
7111 <div class="gallerytext">
7116 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7117 <div style="height: 70px;">Nonexistant.jpg</div>
7118 <div class="gallerytext">
7121 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7122 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="70" height="8" /></a></div></div>
7123 <div class="gallerytext">
7124 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7128 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7129 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="70" height="8" /></a></div></div>
7130 <div class="gallerytext">
7133 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7134 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="This is a foo-bar." src="http://example.com/images/3/3a/Foobar.jpg" width="70" height="8" /></a></div></div>
7135 <div class="gallerytext">
7145 Gallery with wikitext inside caption
7148 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
7149 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
7152 <ul class="gallery">
7153 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7154 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7155 <div class="gallerytext">
7156 <p><a href="/wiki/File:Foobar.jpg" class="image" title="desc"><img alt="inneralt" src="http://example.com/images/3/3a/Foobar.jpg" width="20" height="2" /></a>
7160 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7161 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7162 <div class="gallerytext">
7163 <p>This is a test template
7172 gallery (with showfilename option)
7174 <gallery showfilename>
7175 File:Nonexistant.jpg|caption
7176 File:Nonexistant.jpg
7177 image:foobar.jpg|some '''caption''' [[Main Page]]
7181 <ul class="gallery">
7182 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7183 <div style="height: 150px;">Nonexistant.jpg</div>
7184 <div class="gallerytext">
7185 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7190 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7191 <div style="height: 150px;">Nonexistant.jpg</div>
7192 <div class="gallerytext">
7193 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7197 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7198 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7199 <div class="gallerytext">
7200 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7201 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7205 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7206 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7207 <div class="gallerytext">
7208 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7217 Gallery (with namespace-less filenames)
7220 File:Nonexistant.jpg
7226 <ul class="gallery">
7227 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7228 <div style="height: 150px;">Nonexistant.jpg</div>
7229 <div class="gallerytext">
7232 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7233 <div style="height: 150px;">Nonexistant.jpg</div>
7234 <div class="gallerytext">
7237 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7238 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7239 <div class="gallerytext">
7242 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7243 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7244 <div class="gallerytext">
7252 HTML Hex character encoding (spells the word "JavaScript")
7254 JavaScript
7256 <p>JavaScript
7261 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7265 <p>&#xsee;&#XSEE;
7270 HTML Hex character encoding mixed case
7279 __FORCETOC__ override
7291 ISBN 978-0-1234-56 789
7293 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7298 ISBN followed by 5 spaces
7309 ISBN ISBN 1234567890
7311 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7316 Bug 22905: <abbr> followed by ISBN followed by </a>
7318 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7320 <p><abbr>(fr)</abbr> <a href="/wiki/Special:BookSources/2753300917" class="internal mw-magiclink-isbn">ISBN 2753300917</a> <a rel="nofollow" class="external text" href="http://www.example.com">example.com</a>
7329 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
7334 Double RFC with a wiki link
7338 <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>
7347 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
7352 Centre-aligned image
7354 [[Image:foobar.jpg|centre]]
7356 <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>
7363 [[Image:foobar.jpg|none]]
7365 <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>
7370 Width + Height sized image (using px) (height is ignored)
7372 [[Image:foobar.jpg|640x480px]]
7374 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="640" height="73" /></a>
7379 Width-sized image (using px, no following whitespace)
7381 [[Image:foobar.jpg|640px]]
7383 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="640" height="73" /></a>
7388 Width-sized image (using px, with following whitespace - test regression from r39467)
7390 [[Image:foobar.jpg|640px ]]
7392 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="640" height="73" /></a>
7397 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7399 [[Image:foobar.jpg| 640px]]
7401 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="640" height="73" /></a>
7406 Another italics / bold test
7414 # Note the results may be incorrect, as parserTest output included this:
7415 # XML error: Mismatched tag at byte 6120:
7416 # ...<dd> </dt></dl> </dd...
7424 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7435 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7437 Images with the "|" character in the comment
7439 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7441 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>An <a rel="nofollow" class="external text" href="http://test/?param1=%7Cleft%7C&param2=%7Cx">external</a> URL</div></div></div>
7446 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7448 <html><script>alert(1);</script></html>
7450 <p><html><script>alert(1);</script></html>
7455 HTML with raw HTML ($wgRawHtml==true)
7459 <html><script>alert(1);</script></html>
7461 <p><script>alert(1);</script>
7466 Parents of subpages, one level up
7468 subpage title=[[Subpage test/L1/L2/L3]]
7472 <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>
7478 Parents of subpages, one level up, not named
7480 subpage title=[[Subpage test/L1/L2/L3]]
7484 <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>
7491 Parents of subpages, two levels up
7493 subpage title=[[Subpage test/L1/L2/L3]]
7499 <p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">L1</a>2
7500 </p><p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">L1l</a>
7505 Parents of subpages, two levels up, without trailing slash or name.
7507 subpage title=[[Subpage test/L1/L2/L3]]
7516 Parents of subpages, two levels up, with lots of extra trailing slashes.
7518 subpage title=[[Subpage test/L1/L2/L3]]
7522 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7527 Definition list code coverage
7533 <dl><dt> title  </dt><dd> def
7534 </dd><dt> title </dt><dd> def
7535 </dd><dt>title</dt><dd> def
7541 Don't fall for the self-closing div
7543 <div>hello world</div/>
7545 <div>hello world</div>
7554 <p>[[:Template:Msg]]
7563 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7567 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7569 Always escape literal '>' in output, not just after '<'
7583 <p>This is a test template
7584 This is a test template
7596 Inclusion of !userCanEdit() content
7600 <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>
7606 Out-of-order TOC heading levels
7615 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7617 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7619 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7620 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7623 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7625 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7626 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7631 <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>
7632 <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>
7633 <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>
7634 <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>
7635 <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>
7636 <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>
7642 ISBN with a dummy number
7652 ISBN with space-delimited number
7656 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7662 ISBN with multiple spaces, no number
7681 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7682 </p><p>ISBN 12345678901
7688 ISBN with trailing year (bug 8110)
7690 ISBN 1-234-56789-0 - 2006
7692 ISBN 1 234 56789 0 - 2006
7694 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7695 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7703 {{anchorencode:foo bar©#%n}}
7705 <p>foo_bar.C2.A9.23.25n
7710 anchorencode trims spaces
7712 {{anchorencode: __pretty__please__}}
7719 anchorencode deals with links
7721 {{anchorencode: [[hello|world]] [[hi]]}}
7728 anchorencode deals with templates
7730 {{anchorencode: {{Foo}} }}
7737 anchorencode encodes like the TOC generator: (bug 18431)
7739 === _ +:.3A%3A&&]] ===
7740 {{anchorencode: _ +:.3A%3A&&]] }}
7743 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7744 <p>.2B:.3A.253A.26.26.5D.5D
7748 # Expected output in the following test is not necessarily expected (there
7749 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7750 # only testing for well-formedness.
7752 Bug 6200: blockquotes and paragraph formatting
7772 Bug 8293: Use of center tag ruins paragraph formatting
7794 ### Language variants related tests
7797 Self-link in language variants
7799 title=[[Dunav]] language=sr
7801 Both [[Dunav]] and [[Дунав]] are names for this river.
7803 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7809 Link to pages in language variants
7813 Main Page can be written as [[Маин Паге]]
7815 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7821 Multiple links to pages in language variants
7825 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7827 <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>.
7833 Simple template in language variants
7839 <p>This is a test template
7845 Template with explicit namespace in language variants
7851 <p>This is a test template
7857 Basic test for template parameter in language variants
7861 {{парамтест|param=foo}}
7863 <p>This is a test template with parameter foo
7869 Simple category in language variants
7873 [[Category:МедиаWики Усер'с Гуиде]]
7875 <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>
7880 Stripping -{}- tags (language variants)
7884 Latin proverb: -{Ne nuntium necare}-
7886 <p>Latin proverb: Ne nuntium necare
7892 Prevent conversion with -{}- tags (language variants)
7894 language=sr variant=sr-ec
7896 Latinski: -{Ne nuntium necare}-
7898 <p>Латински: Ne nuntium necare
7904 Prevent conversion of text with -{}- tags (language variants)
7906 language=sr variant=sr-ec
7908 Latinski: -{Ne nuntium necare}-
7910 <p>Латински: Ne nuntium necare
7916 Prevent conversion of links with -{}- tags (language variants)
7918 language=sr variant=sr-ec
7922 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7928 -{}- tags within headlines (within html for parserConvert())
7930 language=sr variant=sr-ec
7934 <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>
7940 Explicit definition of language variant alternatives
7942 language=zh variant=zh-tw
7944 -{zh:China;zh-tw:Taiwan}-, not China
7946 <p>Taiwan, not China
7952 Explicit session-wise language variant mapping (A flag and - flag)
7954 language=zh variant=zh-tw
7956 Taiwan is not China.
7957 But -{A|zh:China;zh-tw:Taiwan}- is China,
7958 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
7959 and -{China}- is China.
7961 <p>Taiwan is not China.
7962 But Taiwan is Taiwan,
7963 (This should be stripped!)
7969 Explicit session-wise language variant mapping (H flag for hide)
7971 language=zh variant=zh-tw
7973 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
7976 <p>(This should be stripped!)
7982 Adding explicit conversion rule for title (T flag)
7984 language=zh variant=zh-tw showtitle
7986 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7989 <p>Should be stripped!
7994 Testing that changing the language variant here in the tests actually works
7996 language=zh variant=zh showtitle
7998 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8001 <p>Should be stripped!
8006 Bug 24072: more test on conversion rule for title
8008 language=zh variant=zh-tw showtitle
8010 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8011 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8014 <p>This should be stripped!
8015 This won't take interferes with the title rule.
8020 Raw output of variant escape tags (R flag)
8022 language=zh variant=zh-tw
8024 Raw: -{R|zh:China;zh-tw:Taiwan}-
8026 <p>Raw: zh:China;zh-tw:Taiwan
8031 Nested using of manual convert syntax
8033 language=zh variant=zh-hk
8035 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8037 <p>Nested: Hello Hong Kong!
8042 Do not convert roman numbers to language variants
8044 language=sr variant=sr-ec
8048 <p>Фридрих IV је цар.
8053 Unclosed language converter markup "-{"
8064 Don't convert raw rule "-{R|=>}-" to "=>"
8081 Bug 529: Uncovered bullet
8092 Bug 529: Uncovered table already at line-start
8115 Bug 529: Uncovered bullet in parser function result
8117 * Foo {{lc:{{bullet}} }}
8126 Bug 5678: Double-parsed template argument
8128 {{lc:{{{1}}}|hello}}
8135 Bug 5678: Double-parsed template invocation
8137 {{lc:{{paramtest {{!}} param = hello }} }}
8139 <p>{{paramtest | param = hello }}
8144 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8170 Morwen/13: Unclosed link followed by heading
8177 <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>
8182 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8189 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8194 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8201 <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>
8216 Paragraphs inside divs (no extra line breaks)
8228 Paragraphs inside divs (extra line break on open)
8243 Paragraphs inside divs (extra line break on close)
8258 Paragraphs inside divs (extra line break on open and close)
8275 Nesting tags, paragraphs on lines which begin with <div>
8279 <div></div><strong>A
8288 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8290 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8294 <blockquote>Line one
8296 Line two</blockquote>
8298 <blockquote>Line one
8299 Line two</blockquote>
8304 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8311 Line two</blockquote>
8316 Line two</blockquote>
8321 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8325 <blockquote>Line one
8330 <blockquote>Line one
8338 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8357 Paragraphs inside blockquotes/divs (no extra line breaks)
8359 <blockquote><div>Line one
8361 Line two</div></blockquote>
8363 <blockquote><div>Line one
8364 Line two</div></blockquote>
8369 Paragraphs inside blockquotes/divs (extra line break on open)
8374 Line two</div></blockquote>
8379 Line two</div></blockquote>
8384 Paragraphs inside blockquotes/divs (extra line break on close)
8386 <blockquote><div>Line one
8391 <blockquote><div>Line one
8399 Paragraphs inside blockquotes/divs (extra line break on open and close)
8416 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8418 wgLinkHolderBatchSize=0
8424 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
8425 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
8426 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
8431 Free external link invading image caption
8433 [[Image:Foobar.jpg|thumb|http://x|hello]]
8435 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>hello</div></div></div>
8440 Bug 15196: localised external link numbers
8444 [http://en.wikipedia.org/]
8446 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8451 Multibyte character in padleft
8453 {{padleft:-Hello|7|Æ}}
8460 Multibyte character in padright
8462 {{padright:Hello-|7|Æ}}
8475 <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>
8480 formatdate parser function
8482 {{#formatdate:2009-03-24}}
8484 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8489 formatdate parser function, with default format
8491 {{#formatdate:2009-03-24|mdy}}
8493 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8498 Linked date with autoformatting disabled
8500 wgUseDynamicDates=false
8504 <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>
8509 Spacing of numbers in formatted dates
8511 {{#formatdate:January 15}}
8513 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8518 Spacing of numbers in formatted dates (linked)
8520 wgUseDynamicDates=true
8524 <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>
8537 Edit comment with link
8541 I like the [[Main Page]] a lot
8543 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
8547 Edit comment with link and link text
8551 I like the [[Main Page|best pages]] a lot
8553 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8557 Edit comment with link and link text with suffix
8561 I like the [[Main Page|best page]]s a lot
8563 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8567 Edit comment with section link (non-local, eg in history list)
8569 comment title=[[Main Page]]
8571 /* External links */ removed bogus entries
8573 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
8577 Edit comment with section link and text before it (non-local, eg in history list)
8579 comment title=[[Main Page]]
8581 pre-comment text /* External links */ removed bogus entries
8583 pre-comment text - <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
8587 Edit comment with section link (local, eg in diff view)
8589 comment local title=[[Main Page]]
8591 /* External links */ removed bogus entries
8593 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
8597 Edit comment with subpage link (bug 14080)
8601 title=[[Subpage test]]
8603 Poked at a [[/subpage]] here...
8605 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8609 Edit comment with subpage link and link text (bug 14080)
8613 title=[[Subpage test]]
8615 Poked at a [[/subpage|neat little page]] here...
8617 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8621 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8624 title=[[Subpage test]]
8626 Poked at a [[/subpage]] here...
8628 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8632 Edit comment with bare anchor link (local, as on diff)
8640 <a href="#section">#section</a>
8644 Edit comment with bare anchor link (non-local, as on history)
8651 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8655 Anchor starting with underscore
8659 <p><a href="#_ref">One</a>
8664 Id starting with underscore
8666 <div id="_ref"></div>
8668 <div id="_ref"></div>
8673 Space normalisation on autocomment (bug 22784)
8678 /* __hello__world__ */
8680 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
8684 percent-encoding and + signs in comments (Bug 26410)
8688 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8690 <a href="/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">ABC3D% ++</a> <a href="/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">+%20</a>
8694 Bad images - basic functionality
8703 Bad images - bug 16039: text after bad image disappears
8717 Verify that displaytitle works (bug #22501) no displaytitle
8721 wgAllowDisplayTitle=true
8722 wgRestrictDisplayTitle=false
8724 this is not the the title
8727 <p>this is not the the title
8732 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8737 wgAllowDisplayTitle=true
8738 wgRestrictDisplayTitle=false
8740 this is not the the title
8741 {{DISPLAYTITLE:whatever}}
8744 <p>this is not the the title
8749 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8754 wgAllowDisplayTitle=true
8755 wgRestrictDisplayTitle=true
8757 this is not the the title
8758 {{DISPLAYTITLE:whatever}}
8761 <p>this is not the the title
8766 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8771 wgAllowDisplayTitle=true
8772 wgRestrictDisplayTitle=true
8774 this is not the the title
8775 {{DISPLAYTITLE:screen}}
8778 <p>this is not the the title
8783 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8788 wgAllowDisplayTitle=false
8790 this is not the the title
8791 {{DISPLAYTITLE:screen}}
8794 <p>this is not the the title
8795 <a href="/index.php?title=Template:DISPLAYTITLE:screen&action=edit&redlink=1" class="new" title="Template:DISPLAYTITLE:screen (page does not exist)">Template:DISPLAYTITLE:screen</a>
8800 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8805 wgAllowDisplayTitle=false
8807 this is not the the title
8810 <p>this is not the the title
8815 preload: check <noinclude> and <includeonly>
8819 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8825 preload: check <onlyinclude>
8829 Goodbye <onlyinclude>Hello world</onlyinclude>
8835 preload: can pass tags through if we want to
8839 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8841 <includeonly>Hello world</includeonly>
8845 preload: check that it doesn't try to do tricks
8849 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8851 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8855 Play a bit with r67090 and bug 3158
8859 <div style="width:50% !important"> </div>
8860 <div style="width:50% !important"> </div>
8861 <div style="width:50% !important"> </div>
8862 <div style="border : solid;"> </div>
8864 <div style="width:50% !important"> </div>
8865 <div style="width:50% !important"> </div>
8866 <div style="width:50% !important"> </div>
8867 <div style="border : solid;"> </div>
8872 HTML5 data attributes
8874 <span data-foo="bar">Baz</span>
8875 <p data-abc-def_hij="">Quuz</p>
8877 <p><span data-foo="bar">Baz</span>
8879 <p data-abc-def_hij="">Quuz</p>
8884 percent-encoding and + signs in internal links (Bug 26410)
8886 [[User:+%]] [[Page+title%]]
8887 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
8888 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
8889 [[%33%45]] [[%33%45+]]
8891 <p><a href="/index.php?title=User:%2B%25&action=edit&redlink=1" class="new" title="User:+% (page does not exist)">User:+%</a> <a href="/index.php?title=Page%2Btitle%25&action=edit&redlink=1" class="new" title="Page+title% (page does not exist)">Page+title%</a>
8892 <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%20</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+ </a> <a href="/index.php?title=%25%2Br&action=edit&redlink=1" class="new" title="%+r (page does not exist)">%+r</a>
8893 <a href="/index.php?title=%25&action=edit&redlink=1" class="new" title="% (page does not exist)">%</a> <a href="/index.php?title=%2B&action=edit&redlink=1" class="new" title="+ (page does not exist)">+</a> <a href="/index.php?title=Special:Upload&wpDestFile=%25%2Babc9" class="new" title="File:%+abc9">bar</a>
8894 <a href="/index.php?title=3E&action=edit&redlink=1" class="new" title="3E (page does not exist)">3E</a> <a href="/index.php?title=3E%2B&action=edit&redlink=1" class="new" title="3E+ (page does not exist)">3E+</a>
8899 Special characters in embedded file links (bug 27679)
8901 [[File:Contains & ampersand.jpg]]
8902 [[File:Does not exist.jpg|Title with & ampersand]]
8904 <p><a href="/index.php?title=Special:Upload&wpDestFile=Contains_%26_ampersand.jpg" class="new" title="File:Contains & ampersand.jpg">File:Contains & ampersand.jpg</a>
8905 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
8911 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
8913 Text's been normalized?
8915 <p>Text's been normalized?
8920 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
8922 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
8924 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
8929 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
8931 [http://www.example.org/ ideograms]
8933 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
8938 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
8940 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
8942 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
8966 Bug 31098 Template which includes system messages which includes the template
8970 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
8971 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
8976 Deprecated presentational attributes are converted to css
8979 | valign=top align=left width=100 height=25% | Asdf
8981 <ul type="disc"></ul>
8985 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
8987 <ul style="list-style-type: disc;"></ul>
8992 Bug31490 Turkish: ucfirst 'blah'
9003 Bug31490 Turkish: ucfirst 'ix'
9014 Bug31490 Turkish: lcfirst 'BLAH'
9025 Bug31490 Turkish: ucfırst (with a dotless i)
9031 <p><a href="/index.php?title=%C5%9Eablon:Ucf%C4%B1rst:blah&action=edit&redlink=1" class="new" title="Şablon:Ucfırst:blah (sayfa mevcut değil)">Şablon:Ucfırst:blah</a>
9036 Bug31490 ucfırst (with a dotless i) with English language
9042 <p><a href="/index.php?title=Template:Ucf%C4%B1rst:blah&action=edit&redlink=1" class="new" title="Template:Ucfırst:blah (page does not exist)">Template:Ucfırst:blah</a>
9047 Bug 26375: TOC with italics
9052 == ''Lost'' episodes ==
9054 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9056 <li class="toclevel-1 tocsection-1"><a href="#Lost_episodes"><span class="tocnumber">1</span> <span class="toctext"><i>Lost</i> episodes</span></a></li>
9059 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Lost episodes">edit</a>]</span> <span class="mw-headline" id="Lost_episodes"> <i>Lost</i> episodes </span></h2>
9064 Bug 26375: TOC with bold
9069 == '''should be bold''' then normal text ==
9071 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9073 <li class="toclevel-1 tocsection-1"><a href="#should_be_bold_then_normal_text"><span class="tocnumber">1</span> <span class="toctext"><b>should be bold</b> then normal text</span></a></li>
9076 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: should be bold then normal text">edit</a>]</span> <span class="mw-headline" id="should_be_bold_then_normal_text"> <b>should be bold</b> then normal text </span></h2>
9081 Bug 33845: Headings become cursive in TOC when they contain an image
9086 == Image [[Image:foobar.jpg]] ==
9088 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9090 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
9093 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Image">edit</a>]</span> <span class="mw-headline" id="Image"> Image <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a> </span></h2>
9098 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
9103 == <blockquote>Quote</blockquote> ==
9105 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9107 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
9110 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Quote">edit</a>]</span> <span class="mw-headline" id="Quote"> <blockquote>Quote</blockquote> </span></h2>
9115 Unclosed tags in TOC
9121 <small>Hanc marginis exiguitas non caperet.</small>
9124 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9126 <li class="toclevel-1 tocsection-1"><a href="#Proof:_2_.3C_3"><span class="tocnumber">1</span> <span class="toctext">Proof: 2 < 3</span></a></li>
9129 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Proof: 2 < 3">edit</a>]</span> <span class="mw-headline" id="Proof:_2_.3C_3"> Proof: 2 < 3 </span></h2>
9130 <p><small>Hanc marginis exiguitas non caperet.</small>
9136 Multiple tags in TOC
9139 == <i>Foo</i> <b>Bar</b> ==
9141 == <i>Foo</i> <blockquote>Bar</blockquote> ==
9143 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9145 <li class="toclevel-1 tocsection-1"><a href="#Foo_Bar"><span class="tocnumber">1</span> <span class="toctext"><i>Foo</i> <b>Bar</b></span></a></li>
9146 <li class="toclevel-1 tocsection-2"><a href="#Foo_Bar_2"><span class="tocnumber">2</span> <span class="toctext"><i>Foo</i> Bar</span></a></li>
9149 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar"> <i>Foo</i> <b>Bar</b> </span></h2>
9150 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2"> <i>Foo</i> <blockquote>Bar</blockquote> </span></h2>
9155 Tags with parameters in TOC
9158 == <sup class="in-h2">Hello</sup> ==
9160 == <sup class="a > b">Evilbye</sup> ==
9162 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9164 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
9165 <li class="toclevel-1 tocsection-2"><a href="#b.22.3EEvilbye"><span class="tocnumber">2</span> <span class="toctext"><sup> b">Evilbye</sup></span></a></li>
9168 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Hello">edit</a>]</span> <span class="mw-headline" id="Hello"> <sup class="in-h2">Hello</sup> </span></h2>
9169 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">Evilbye">edit</a>]</span> <span class="mw-headline" id="b.22.3EEvilbye"> <sup> b">Evilbye</sup> </span></h2>
9176 == {{int:headline_sample}} ==
9180 Bug 32057: Title needed when expanding <h> nodes.
9186 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Headline text">edit</a>]</span> <span class="mw-headline" id="Headline_text"> Headline text </span></h2>
9191 Strip marker in urlencode
9193 {{urlencode:x<nowiki/>y}}
9194 {{urlencode:x<nowiki/>y|wiki}}
9195 {{urlencode:x<nowiki/>y|path}}
9222 Strip marker in formatNum
9224 {{formatnum:1<nowiki/>2}}
9225 {{formatnum:1<nowiki/>2|R}}
9233 Strip marker in grammar
9237 {{grammar:elative|foo<nowiki/>bar}}
9244 Strip marker in padleft
9246 {{padleft:|2|x<nowiki/>y}}
9253 Strip marker in padright
9255 {{padright:|2|x<nowiki/>y}}
9262 Strip marker in anchorencode
9264 {{anchorencode:x<nowiki/>y}}
9271 nowiki inside link inside heading (bug 18295)
9273 ==[[foo|x<nowiki>y</nowiki>z]]==
9275 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: xyz">edit</a>]</span> <span class="mw-headline" id="xyz"><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">xyz</a></span></h2>
9280 new support for bdi element (bug 31817)
9282 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
9284 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
9289 Ignore pipe between table row attributes
9293 |- id=foo | style='color: red'
9301 <tr id="foo" style="color: red">
9308 Gallery override link with WikiLink (bug 34852)
9311 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
9314 <ul class="gallery">
9315 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9316 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/InterWikiLink"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
9317 <div class="gallerytext">
9327 Gallery override link with absolute external link (bug 34852)
9330 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
9333 <ul class="gallery">
9334 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9335 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="http://www.example.org"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
9336 <div class="gallerytext">
9346 Gallery override link with malicious javascript (bug 34852)
9349 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
9352 <ul class="gallery">
9353 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9354 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/%22_onclick%3D%22alert(%27malicious_javascript_code!%27);"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
9355 <div class="gallerytext">
9365 Language parser function
9379 Try for 100% code coverage