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
644 Definition list with empty definition and following paragraph
649 <dl><dt> term</dt><dd>
659 External links: non-bracketed
661 Non-bracketed: http://example.com
663 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
668 External links: numbered
670 Numbered: [http://example.com]
671 Numbered: [http://example.net]
672 Numbered: [http://example.com]
674 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
675 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
676 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
681 External links: specified text
683 Specified text: [http://example.com link]
685 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
690 External links: trail
692 Linktrails should not work for external links: [http://example.com link]s
694 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
699 External links: dollar sign in URL
701 http://example.com/1$2345
703 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
708 External links: dollar sign in URL (named)
710 [http://example.com/1$2345]
712 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
717 External links: open square bracket forbidden in URL (bug 4377)
719 http://example.com/1[2345
721 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
726 External links: open square bracket forbidden in URL (named) (bug 4377)
728 [http://example.com/1[2345]
730 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
735 External links: nowiki in URL link text (bug 6230)
737 [http://example.com/ <nowiki>''example site''</nowiki>]
739 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
744 External links: newline forbidden in text (bug 6230 regression check)
746 [http://example.com/ first
749 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
755 External links: protocol-relative URL in brackets
757 [//example.com/ Test]
759 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
764 External links: protocol-relative URL in brackets without text
768 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
773 External links: protocol-relative URL in free text is left alone
782 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
786 <p>foo//example.com/Foo
793 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
795 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
800 External image from https
802 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
804 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
809 Link to non-http image, no img tag
811 Link to non-http image, no img tag: ftp://example.com/test.jpg
813 <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>
818 External links: terminating separator
820 Terminating separator: http://example.com/thing,
822 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
827 External links: intervening separator
829 Intervening separator: http://example.com/1,2,3
831 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
836 External links: old bug with URL in query
838 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
840 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
845 External links: old URL-in-URL bug, mixed protocols
847 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
849 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
854 External links: URL in text
856 URL in text: [http://example.com http://example.com]
858 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
863 External links: Clickable images
865 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
867 <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>
872 External links: raw ampersand
874 Old & use: http://x&y
876 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
881 External links: encoded ampersand
883 Old & use: http://x&y
885 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
890 External links: encoded equals (bug 6102)
892 http://example.com/?foo=bar
894 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
899 External links: [raw ampersand]
901 Old & use: [http://x&y]
903 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
908 External links: [encoded ampersand]
910 Old & use: [http://x&y]
912 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
917 External links: [encoded equals] (bug 6102)
919 [http://example.com/?foo=bar]
921 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
926 External links: [IDN ignored character reference in hostname; strip it right off]
928 [http://e‌xample.com/]
930 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
935 External links: IDN ignored character reference in hostname; strip it right off
937 http://e‌xample.com/
939 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
944 External links: www.jpeg.org (bug 554)
948 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
953 External links: URL within URL (original bug 2)
955 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
957 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
962 BUG 361: URL inside bracketed URL
964 [http://www.example.com/foo http://www.example.com/bar]
966 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
971 BUG 361: URL within URL, not bracketed
973 http://www.example.com/foo?=http://www.example.com/bar
975 <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>
980 BUG 289: ">"-token in URL-tail
982 http://www.example.com/<hello>
984 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
989 BUG 289: literal ">"-token in URL-tail
991 http://www.example.com/<b>html</b>
993 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
998 BUG 289: ">"-token in bracketed URL
1000 [http://www.example.com/<hello> stuff]
1002 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
1007 BUG 289: literal ">"-token in bracketed URL
1009 [http://www.example.com/<b>html</b> stuff]
1011 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1016 BUG 289: literal double quote at end of URL
1018 http://www.example.com/"hello"
1020 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1025 BUG 289: literal double quote in bracketed URL
1027 [http://www.example.com/"hello" stuff]
1029 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1034 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1036 [http://www.example.com test]
1038 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1043 External links: wiki links within external link (Bug 3695)
1045 [http://example.com [[wikilink]] embedded in ext link]
1047 <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>
1052 BUG 787: Links with one slash after the url protocol are invalid
1056 [http:/example.com title]
1058 <p>http:/example.com
1059 </p><p>[http:/example.com title]
1064 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1066 ''[http://example.com text'']
1067 [http://example.com '''text]'''
1068 ''Something [http://example.com in italic'']
1069 ''Something [http://example.com mixed''''', even bold]'''
1070 '''''Now [http://example.com both''''']
1072 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1073 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1074 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1075 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1076 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1082 Bug 4781: %26 in URL
1084 http://www.example.com/?title=AT%26T
1086 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1090 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
1091 # % is actually legal in HTML5. Any change in output would need testing though.
1093 Bug 4781, 5267: %25 in URL
1095 http://www.example.com/?title=100%25_Bran
1097 <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>
1102 Bug 4781, 5267: %28, %29 in URL
1104 http://www.example.com/?title=Ben-Hur_%281959_film%29
1106 <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>
1112 Bug 4781: %26 in autonumber URL
1114 [http://www.example.com/?title=AT%26T]
1116 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1121 Bug 4781, 5267: %26 in autonumber URL
1123 [http://www.example.com/?title=100%25_Bran]
1125 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1130 Bug 4781, 5267: %28, %29 in autonumber URL
1132 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1134 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1140 Bug 4781: %26 in bracketed URL
1142 [http://www.example.com/?title=AT%26T link]
1144 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1149 Bug 4781, 5267: %26 in bracketed URL
1151 [http://www.example.com/?title=100%25_Bran link]
1153 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1158 Bug 4781, 5267: %28, %29 in bracketed URL
1160 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1162 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1167 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1169 Some [http://example.com/ pretty ''italics'' and stuff]!
1171 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1176 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1178 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1180 <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>
1185 External link containing double-single-quotes with no space separating the url from text in italics
1187 [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]].]
1189 <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>
1194 URL-encoding in URL functions (single parameter)
1196 {{localurl:Some page|amp=&}}
1198 <p>/index.php?title=Some_page&amp=&
1203 URL-encoding in URL functions (multiple parameters)
1205 {{localurl:Some page|q=?&=&}}
1207 <p>/index.php?title=Some_page&q=?&amp=&
1214 http://example.com/index.php?foozoid%5B%5D=bar
1216 http://example.com/index.php?foozoid[]=bar
1218 <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>
1219 </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>
1224 IPv6 urls (bug 21261)
1228 http://[2404:130:0:1000::187:2]/index.php
1230 <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>
1241 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1243 Normal text. '''''Bold italic text.''''' Normal text.
1245 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1246 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1252 Unclosed and unmatched quotes
1254 '''''Bold italic text '''with bold deactivated''' in between.'''''
1256 '''''Bold italic text ''with italic deactivated'' in between.'''''
1260 ..spanning two paragraphs (should not work).'''
1262 '''Bold tag left open
1264 ''Italic tag left open
1268 <!-- Unmatching number of opening, closing tags: -->
1269 '''This year''''s election ''should'' beat '''last year''''s.
1271 ''Tom'''s car is bigger than ''Susan'''s.
1273 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1274 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1275 </p><p><b>Bold text..</b>
1276 </p><p>..spanning two paragraphs (should not work).
1277 </p><p><b>Bold tag left open</b>
1278 </p><p><i>Italic tag left open</i>
1280 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1281 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1288 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1291 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1292 # is the bare minimun required by the spec, see:
1293 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1295 A table with no data.
1301 # A table with nothing but a caption is invalid XHTML, we might want to render
1302 # this as <p>caption</p>
1304 A table with nothing but a caption
1312 </caption><tr><td></td></tr></table>
1338 Multiplication table
1340 {| border="1" cellpadding="2"
1341 |+Multiplication table
1343 ! × !! 1 !! 2 !! 3
1361 <table border="1" cellpadding="2">
1362 <caption>Multiplication table
1413 |rowspan=2| Cell 2, row 1 (and 2)
1424 <td rowspan="2"> Cell 2, row 1 (and 2)
1442 {| bgcolor=#ABCDEF border=2
1447 |the original table again
1455 <table bgcolor="#ABCDEF" border="2">
1463 <td>the original table again
1469 Invalid attributes in table cell (bug 1830)
1484 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1487 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1491 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
1492 <td>]" onmouseover="alert(document.cookie)">test
1501 Indented table markup mixed with indented pre content (proposed in bug 6200)
1506 Text that should be rendered preformatted
1514 <pre>Text that should be rendered preformatted
1527 Plain link, capitalized
1531 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1536 Plain link, uncapitalized
1540 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1547 [[Main Page|The Main Page]]
1549 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1558 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1563 Broken link with fragment
1565 [[Zigzagzogzagzig#zug]]
1567 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1572 Special page link with fragment
1574 [[Special:Version#anchor]]
1576 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1581 Nonexistent special page link with fragment
1583 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1585 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1592 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1594 <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>
1601 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1603 <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>!!!
1608 Link with 3 brackets
1617 Piped link with 3 brackets
1619 [[[main page|the main page]]]
1621 <p>[[[main page|the main page]]]
1626 Link with multiple pipes
1628 [[Main Page|The|Main|Page]]
1630 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1637 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1639 <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>
1644 Piped link to namespace
1646 [[Meta:Disclaimers|The disclaimers]]
1648 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1655 [[Usually caused by a typo (oops}]]
1657 <p>[[Usually caused by a typo (oops}]]
1662 Link containing % (not as a hex sequence)
1666 <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>
1671 Link containing % as a single hex sequence interpreted to char
1675 <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>
1680 Link containing % as a double hex sequence interpreted to hex sequence
1684 <p>[[7%2525 Solution]]
1689 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1690 Example for such a section: == < ==
1692 [[%23%3c]][[%23%3e]]
1694 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1699 Link containing "<#" and ">#" as a hex sequences
1701 [[%3c%23]][[%3e%23]]
1703 <p>[[%3c%23]][[%3e%23]]
1708 Link containing double-single-quotes '' (bug 4598)
1710 [[Lista d''e paise d''o munno]]
1712 <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>
1717 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1719 Some [[Link|pretty ''italics'' and stuff]]!
1721 <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>!
1726 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1728 ''Some [[Link|pretty ''italics'' and stuff]]!
1730 <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>
1735 Link with double quotes in title part (literal) and alternate part (interpreted)
1737 [[File:Denys Savchenko ''Pentecoste''.jpg]]
1741 [[''Pentecoste''|Pentecoste]]
1743 [[''Pentecoste''|''Pentecoste'']]
1745 <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>
1746 </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>
1747 </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>
1748 </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>
1755 [[http://www.example.com]]
1757 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
1762 Plain link to URL with link text
1764 [[http://www.example.com Link text]]
1766 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
1771 Plain link to protocol-relative URL
1773 [[//www.example.com]]
1775 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
1780 Plain link to protocol-relative URL with link text
1782 [[//www.example.com Link text]]
1784 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
1789 # I'm fairly sure the expected result here is wrong.
1790 # We want these to be URL links, not pseudo-pages with URLs for titles....
1791 # However the current output is also pretty screwy.
1794 # I'm changing it to match the current output--it arguably makes more
1795 # sense in the light of the test above. Old expected result was:
1796 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1798 # But I think this test is bordering on "garbage in, garbage out" anyway.
1803 Piped link to URL: [[http://www.example.com|an example URL]]
1805 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
1810 BUG 2: [[page|http://url/]] should link to page, not http://url/
1812 [[Main Page|http://url/]]
1814 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1819 BUG 337: Escaped self-links should be bold
1823 [[Bug462]] [[Bug462]]
1825 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1830 Self-link to section should not be bold
1834 [[Main Page#section]]
1836 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1847 Self-link to numeric title
1853 <p><strong class="selflink">0</strong>
1858 Link to numeric-equivalent title
1864 <p><a href="/wiki/00" title="00">00</a>
1869 <nowiki> inside a link
1871 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1873 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1878 Non-breaking spaces in title
1880 [[ Main Page ]]
1882 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
1887 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
1893 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
1898 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
1904 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
1909 Internal link with en linktrail: no apostrophes (bug 27473)
1915 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
1920 Internal link with ca linktrail with apostrophes (bug 27473)
1926 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
1931 Internal link with kaa linktrail with apostrophes (bug 27473)
1937 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
1942 ### Interwiki links (see maintenance/interwiki.sql)
1946 Inline interwiki link
1948 [[MeatBall:SoftSecurity]]
1950 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1955 Inline interwiki link with empty title (bug 2372)
1959 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
1964 Interwiki link encoding conversion (bug 1636)
1966 *[[Wikipedia:ro:Olteniţa]]
1967 *[[Wikipedia:ro:Olteniţa]]
1969 <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>
1970 </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>
1976 Interwiki link with fragment (bug 2130)
1978 [[MeatBall:SoftSecurity#foo]]
1980 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1995 Double interlanguage link
2006 Interlanguage link, with prefix links
2018 Double interlanguage link, with prefix links (bug 8897)
2045 Incorrecly removing closing slashes from correctly formed XHTML
2047 <br style="clear:both;" />
2049 <p><br style="clear:both;" />
2054 Failing to transform badly formed HTML into correct XHTML
2056 <br style="clear: left;">
2057 <br style="clear: right;">
2058 <br style="clear: both;">
2060 <p><br style="clear: left;" />
2061 <br style="clear: right;" />
2062 <br style="clear: both;" />
2067 Horizontal ruler (should it add that extra space?)
2081 ### Block-level elements
2104 <ol><li>Numbered list
2121 ***#Number on level 4
2123 **#Number on level 3
2124 **#Number on level 3
2128 #** Level 3, but ordered
2131 <ol><li> with numbers
2133 <ul><li> and bullets
2135 <ol><li> and numbers
2137 </li><li>bullets again
2138 <ul><li>bullet level 2
2139 <ul><li>bullet level 3
2140 <ol><li>Number on level 4
2143 </li><li>bullet level 2
2144 <ol><li>Number on level 3
2145 </li><li>Number on level 3
2148 <ol><li>number level 2
2151 <ul><li><ul><li> Level 3
2155 <ol><li><ul><li><ul><li> Level 3, but ordered
2163 List items are not parsed correctly following a <pre> block (bug 785)
2169 <ul><li> <pre>foo</pre>
2170 </li><li> <pre>bar</pre>
2177 List items from template
2188 * notSOL{{inner list}}
2207 List interrupted by empty line or heading
2217 <ul><li><ul><li> bar
2220 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: A heading">edit</a>]</span> <span class="mw-headline" id="A_heading"> A heading </span></h2>
2221 <ul><li> Another list item
2232 Magic Word: {{CURRENTDAY}}
2241 Magic Word: {{CURRENTDAY2}}
2250 Magic Word: {{CURRENTDAYNAME}}
2259 Magic Word: {{CURRENTDOW}}
2268 Magic Word: {{CURRENTMONTH}}
2277 Magic Word: {{CURRENTMONTHABBREV}}
2279 {{CURRENTMONTHABBREV}}
2286 Magic Word: {{CURRENTMONTHNAME}}
2288 {{CURRENTMONTHNAME}}
2295 Magic Word: {{CURRENTMONTHNAMEGEN}}
2297 {{CURRENTMONTHNAMEGEN}}
2304 Magic Word: {{CURRENTTIME}}
2313 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2322 Magic Word: {{CURRENTYEAR}}
2331 Magic Word: {{FULLPAGENAME}}
2333 title=[[User:Ævar Arnfjörð Bjarmason]]
2337 <p>User:Ævar Arnfjörð Bjarmason
2342 Magic Word: {{FULLPAGENAMEE}}
2344 title=[[User:Ævar Arnfjörð Bjarmason]]
2348 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2353 Magic Word: {{NAMESPACE}}
2355 title=[[User:Ævar Arnfjörð Bjarmason]]
2364 Magic Word: {{NAMESPACEE}}
2366 title=[[User:Ævar Arnfjörð Bjarmason]]
2375 Magic Word: {{NAMESPACENUMBER}}
2377 title=[[User:Ævar Arnfjörð Bjarmason]]
2386 Magic Word: {{NUMBEROFFILES}}
2395 Magic Word: {{PAGENAME}}
2397 title=[[User:Ævar Arnfjörð Bjarmason]]
2401 <p>Ævar Arnfjörð Bjarmason
2406 Magic Word: {{PAGENAME}} with metacharacters
2408 title=[['foo & bar = baz']]
2412 <p><i>'foo & bar = baz'</i>
2417 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2419 title=[[*RFC 1234 http://example.com/]]
2423 <p>*RFC 1234 http://example.com/
2428 Magic Word: {{PAGENAMEE}}
2430 title=[[User:Ævar Arnfjörð Bjarmason]]
2434 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2439 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2441 title=[[*RFC 1234 http://example.com/]]
2445 <p>*RFC_1234_http://example.com/
2450 Magic Word: {{REVISIONID}}
2459 Magic Word: {{SCRIPTPATH}}
2468 Magic Word: {{SERVER}}
2472 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2477 Magic Word: {{SERVERNAME}}
2486 Magic Word: {{SITENAME}}
2495 Namespace 1 {{ns:1}}
2504 Namespace 1 {{ns:01}}
2513 Namespace 0 {{ns:0}} (bug 4783)
2521 Namespace 0 {{ns:00}} (bug 4783)
2529 Namespace -1 {{ns:-1}}
2538 Namespace User {{ns:User}}
2547 Namespace User talk {{ns:User_talk}}
2556 Namespace User talk {{ns:uSeR tAlK}}
2565 Namespace File {{ns:File}}
2574 Namespace File {{ns:Image}}
2583 Namespace (lang=de) Benutzer {{ns:User}}
2594 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2600 <p>Benutzer Diskussion
2608 {{urlencode:hi world?!}}
2609 {{urlencode:hi world?!|WIKI}}
2610 {{urlencode:hi world?!|PATH}}
2611 {{urlencode:hi world?!|QUERY}}
2624 Magic links: internal link to RFC (bug 479)
2628 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2633 Magic links: RFC (bug 479)
2637 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
2642 Magic links: ISBN (bug 1937)
2646 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2651 Magic links: PMID incorrectly converts space to underscore
2655 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2664 Nonexistent template
2666 {{thistemplatedoesnotexist}}
2668 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2675 This is a test template
2683 <p>This is a test template
2688 Template with explicit namespace
2692 <p>This is a test template
2700 This is a test template with parameter {{{param}}}
2706 {{paramtest|param=foo}}
2708 <p>This is a test template with parameter foo
2713 Template:paramtestnum
2719 Template unnamed parameter
2721 {{paramtestnum|Main Page|the main page}}
2723 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2728 Template:templatesimple
2734 Template:templateredirect
2736 #redirect [[Template:templatesimple]]
2740 Template:templateasargtestnum
2746 Template:templateasargtest
2748 {{template{{{templ}}}}}
2752 Template:templateasargtest2
2758 Template with template name as unnamed argument
2760 {{templateasargtestnum|templatesimple}}
2767 Template with template name as argument
2769 {{templateasargtest|templ=simple}}
2776 Template with template name as argument (2)
2778 {{templateasargtest2|templ=templatesimple}}
2785 Template:templateasargtestdefault
2787 {{{{{templ|templatesimple}}}}}
2797 Template with default value
2799 {{templateasargtestdefault}}
2806 Template with default value (value set)
2808 {{templateasargtestdefault|templ=templa}}
2817 {{templateredirect}}
2824 Template with argument in separate line
2826 {{ templateasargtest |
2834 Template with complex template as argument
2837 param ={{ templateasargtest |
2840 <p>This is a test template with parameter (test)
2845 Template with thumb image (with link in description)
2848 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2850 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>
2855 Template:complextemplate
2857 {{{1}}} {{paramtest|
2858 param ={{{param}}}}}
2862 Template with complex arguments
2865 param ={{ templateasargtest |
2866 templ = simple }}|[[Template:complextemplate|link]]}}
2868 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2873 BUG 553: link with two variables in a piped link
2876 |[[{{{1}}}|{{{2}}}]]
2881 <td>[[{{{1}}}|{{{2}}}]]
2887 Magic variable as template parameter
2889 {{paramtest|param={{SITENAME}}}}
2891 <p>This is a test template with parameter MediaWiki
2898 [[{{{param}}}|link]]
2902 Template parameter as link source
2904 {{linktest|param=Main Page}}
2906 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2914 including another template, {{paramtest|param={{{arg}}}}}
2918 Template passing argument to another template
2920 {{paramtest2|arg='hmm'}}
2922 <p>including another template, This is a test template with parameter 'hmm'
2933 Template as link source
2937 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2955 Template infinite loop
2959 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
2964 Template from main namespace
2983 BUG 529: Template with table, not included at beginning of line
3002 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3022 BUG 41: Template parameters shown as broken links
3034 ''None'' of '''this''' should be
3036 but rather passed unmodified
3040 # hmm, fix this or just deprecate msgnw and document its behavior?
3046 {{msgnw:MSGNW test}}
3048 <p>''None'' of '''this''' should be
3050 but rather passed unmodified
3058 {{int:youhavenewmessages|lots of money|not!}}
3060 <p>You have lots of money (not!).
3067 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3071 <includeonly> and <noinclude> being included
3082 <onlyinclude>Foo</onlyinclude>bar
3086 <onlyinclude> being included
3098 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3102 <onlyinclude> and <includeonly> being included
3111 <includeonly> and <noinclude> on a page
3113 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3120 <onlyinclude> on a page
3122 <onlyinclude>Foo</onlyinclude>bar
3129 Template:Includeonly section
3132 ==Includeonly section==
3138 Bug 6563: Edit link generation for section shown by <includeonly>
3140 {{includeonly section}}
3142 <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>
3143 <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>
3147 # Uses same input as the contents of [[Template:Includeonly section]]
3149 Bug 6563: Section extraction for section shown by <includeonly>
3154 ==Includeonly section==
3162 Bug 6563: Edit link generation for section suppressed by <includeonly>
3165 ==Includeonly section==
3169 <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>
3174 Bug 6563: Section extraction for section suppressed by <includeonly>
3179 ==Includeonly section==
3187 ### Pre-save transform tests
3190 pre-save transform: subst:
3196 This is a test template
3200 pre-save transform: normal template
3210 pre-save transform: nonexistent template
3214 {{thistemplatedoesnotexist}}
3216 {{thistemplatedoesnotexist}}
3221 pre-save transform: subst magic variables
3230 # This is bug 89, which I fixed. -- wtm
3232 pre-save transform: subst: templates with parameters
3236 {{subst:paramtest|param="something else"}}
3238 This is a test template with parameter "something else"
3244 <nowiki>'''not wiki'''</nowiki>
3248 pre-save transform: nowiki in subst (bug 1188)
3252 {{subst:nowikitest}}
3254 <nowiki>'''not wiki'''</nowiki>
3259 Template:commenttest
3261 This template has <!-- a comment --> in it.
3265 pre-save transform: comment in subst (bug 1936)
3269 {{subst:commenttest}}
3271 This template has <!-- a comment --> in it.
3275 pre-save transform: unclosed tag
3279 <nowiki>'''not wiki'''
3281 <nowiki>'''not wiki'''
3285 pre-save transform: mixed tag case
3289 <NOwiki>'''not wiki'''</noWIKI>
3291 <NOwiki>'''not wiki'''</noWIKI>
3295 pre-save transform: unclosed comment in <nowiki>
3299 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3301 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3307 <span onmouseover="alert('crap')">Oh no</span>
3311 (confirming safety of fix for subst bug 1936)
3313 {{Template:dangerous}}
3315 <p><span>Oh no</span>
3320 pre-save transform: comment containing gallery (bug 5024)
3324 <!-- <gallery>data</gallery> -->
3326 <!-- <gallery>data</gallery> -->
3330 pre-save transform: comment containing extension
3334 <!-- <tag>data</tag> -->
3336 <!-- <tag>data</tag> -->
3340 pre-save transform: comment containing nowiki
3344 <!-- <nowiki>data</nowiki> -->
3346 <!-- <nowiki>data</nowiki> -->
3350 pre-save transform: <noinclude> in subst (bug 3298)
3360 pre-save transform: <onlyinclude> in subst (bug 3298)
3372 {{<includeonly>subst:</includeonly>Includes}}
3376 Template:SafeSubstTest
3378 {{<includeonly>safesubst:</includeonly>Includes}}
3382 bug 22297: safesubst: works during PST
3386 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3392 bug 22297: safesubst: works during normal parse
3401 subst: does not work during normal parse
3405 <p>{{subst:Includes}}
3410 pre-save transform: context links ("pipe trick")
3414 [[Article (context)|]]
3417 [[Bar:Article (context)|]]
3418 [[:Bar:Article (context)|]]
3420 [[|Article (context)]]
3424 [[Article (context)|Article]]
3425 [[Bar:Article|Article]]
3426 [[:Bar:Article|Article]]
3427 [[Bar:Article (context)|Article]]
3428 [[:Bar:Article (context)|Article]]
3430 [[Article (context)]]
3431 [[Bar:X (Y) Z|X (Y) Z]]
3432 [[:Bar:X (Y) Z|X (Y) Z]]
3436 pre-save transform: context links ("pipe trick") with interwiki prefix
3440 [[interwiki:Article|]]
3441 [[:interwiki:Article|]]
3442 [[interwiki:Bar:Article|]]
3443 [[:interwiki:Bar:Article|]]
3445 [[interwiki:Article|Article]]
3446 [[:interwiki:Article|Article]]
3447 [[interwiki:Bar:Article|Bar:Article]]
3448 [[:interwiki:Bar:Article|Bar:Article]]
3452 pre-save transform: context links ("pipe trick") with parens in title
3454 pst title=[[Somearticle (context)]]
3458 [[Article (context)|Article]]
3462 pre-save transform: context links ("pipe trick") with comma in title
3464 pst title=[[Someplace, Somewhere]]
3467 [[Otherplace, Elsewhere|]]
3468 [[Otherplace, Elsewhere, Anywhere|]]
3470 [[Otherplace, Somewhere|Otherplace]]
3471 [[Otherplace, Elsewhere|Otherplace]]
3472 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3476 pre-save transform: context links ("pipe trick") with parens and comma
3478 pst title=[[Someplace (IGNORED), Somewhere]]
3481 [[Otherplace (place), Elsewhere|]]
3483 [[Otherplace, Somewhere|Otherplace]]
3484 [[Otherplace (place), Elsewhere|Otherplace]]
3488 pre-save transform: context links ("pipe trick") with comma and parens
3490 pst title=[[Who, me? (context)]]
3493 [[Me, Myself, and I (1937 song)|]]
3495 [[Yes, you. (context)|Yes, you.]]
3496 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3500 pre-save transform: context links ("pipe trick") with namespace
3502 pst title=[[Ns:Somearticle]]
3506 [[Ns:Article|Article]]
3510 pre-save transform: context links ("pipe trick") with namespace and parens
3512 pst title=[[Ns:Somearticle (context)]]
3516 [[Ns:Article (context)|Article]]
3520 pre-save transform: context links ("pipe trick") with namespace and comma
3522 pst title=[[Ns:Somearticle, Context, Whatever]]
3526 [[Ns:Article, Context, Whatever|Article]]
3530 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3532 pst title=[[Ns:Somearticle, Context (context)]]
3536 [[Ns:Article (context)|Article]]
3540 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3542 pst title=[[Ns:Somearticle (IGNORED), Context]]
3546 [[Ns:Article, Context|Article]]
3550 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
3554 [[Article(context)|]]
3555 [[Bar:Article(context)|]]
3556 [[:Bar:Article(context)|]]
3557 [[|Article(context)]]
3561 [[Article(context)|Article]]
3562 [[Bar:Article(context)|Article]]
3563 [[:Bar:Article(context)|Article]]
3564 [[Article(context)]]
3565 [[Bar:X (Y) Z|X (Y) Z]]
3566 [[:Bar:X (Y) Z|X (Y) Z]]
3570 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
3574 [[Article (context)|]]
3575 [[Bar:Article (context)|]]
3576 [[:Bar:Article (context)|]]
3577 [[|Article (context)]]
3581 [[Article (context)|Article]]
3582 [[Bar:Article (context)|Article]]
3583 [[:Bar:Article (context)|Article]]
3584 [[Article (context)]]
3585 [[Bar:X (Y) Z|X (Y) Z]]
3586 [[:Bar:X (Y) Z|X (Y) Z]]
3590 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
3594 [[Article(context)|]]
3595 [[Bar:Article(context)|]]
3596 [[:Bar:Article(context)|]]
3597 [[|Article(context)]]
3601 [[Article(context)|Article]]
3602 [[Bar:Article(context)|Article]]
3603 [[:Bar:Article(context)|Article]]
3604 [[Article(context)]]
3606 [[:Bar:X(Y)Z|X(Y)Z]]
3610 pre-save transform: trim trailing empty lines
3614 Empty lines are trimmed
3620 Empty lines are trimmed
3624 pre-save transform: Signature expansion
3629 * <noinclude>~~~</noinclude>
3630 * <includeonly>~~~</includeonly>
3631 * <onlyinclude>~~~</onlyinclude>
3633 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
3634 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
3635 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
3636 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
3641 pre-save transform: Signature expansion in nowiki tags (bug 93)
3647 <nowiki>~~~~</nowiki>
3649 <includeonly><nowiki>~~~~</nowiki></includeonly>
3651 <noinclude><nowiki>~~~~</nowiki></noinclude>
3653 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3655 {{subst:Foo}} shall be converted to FOO
3657 As well as inside noinclude/onlyinclude
3658 <noinclude>{{subst:Foo}}</noinclude>
3659 <onlyinclude>{{subst:Foo}}</onlyinclude>
3661 But not inside includeonly
3662 <includeonly>{{subst:Foo}}</includeonly>
3666 <nowiki>~~~~</nowiki>
3668 <includeonly><nowiki>~~~~</nowiki></includeonly>
3670 <noinclude><nowiki>~~~~</nowiki></noinclude>
3672 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3674 FOO shall be converted to FOO
3676 As well as inside noinclude/onlyinclude
3677 <noinclude>FOO</noinclude>
3678 <onlyinclude>FOO</onlyinclude>
3680 But not inside includeonly
3681 <includeonly>{{subst:Foo}}</includeonly>
3685 ### Message transform tests
3688 message transform: magic variables
3698 message transform: should not transform wiki markup
3708 message transform: <noinclude> in transcluded template (bug 4926)
3718 message transform: <onlyinclude> in transcluded template (bug 4926)
3728 {{#special:}} page name, known
3732 {{#special:Recentchanges}}
3734 Special:RecentChanges
3738 {{#special:}} page name with subpage, known
3742 {{#special:Recentchanges/param}}
3744 Special:RecentChanges/param
3748 {{#special:}} page name, unknown
3752 {{#special:foobarnonexistent}}
3754 No such special page
3758 {{#speciale:}} page name, known
3762 {{#speciale:Recentchanges}}
3764 Special:RecentChanges
3768 {{#speciale:}} page name with subpage, known
3772 {{#speciale:Recentchanges/param}}
3774 Special:RecentChanges/param
3778 {{#speciale:}} page name, unknown
3782 {{#speciale:foobarnonexistent}}
3784 No_such_special_page
3793 [[Image:foobar.jpg]]
3795 <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>
3802 [[Image:foobar.jpg|right]]
3804 <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>
3809 Simple image (using File: namespace, now canonical)
3813 <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>
3820 [[Image:foobar.jpg|right|Caption text]]
3822 <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>
3827 Image with link parameter, wiki target
3829 [[Image:foobar.jpg|link=Target page]]
3831 <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>
3836 Image with link parameter, URL target
3838 [[Image:foobar.jpg|link=http://example.com/]]
3840 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3845 Image with link parameter, wgExternalLinkTarget
3847 [[Image:foobar.jpg|link=http://example.com/]]
3849 wgExternalLinkTarget='foobar'
3851 <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>
3856 Image with link parameter, wgExternalLinkTarget, unnamed parameter
3858 [[Image:foobar.jpg|link=http://example.com/|Title]]
3860 wgExternalLinkTarget='foobar'
3862 <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>
3867 Image with empty link parameter
3869 [[Image:foobar.jpg|link=]]
3871 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3876 Image with link parameter (wiki target) and unnamed parameter
3878 [[Image:foobar.jpg|link=Target page|Title]]
3880 <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>
3885 Image with link parameter (URL target) and unnamed parameter
3887 [[Image:foobar.jpg|link=http://example.com/|Title]]
3889 <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>
3894 Thumbnail image with link parameter
3896 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
3898 <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>
3903 Image with frame and link
3905 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3907 <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>
3912 Image with frame and link and explicit alt
3914 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3916 <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>
3921 Image with wiki markup in implicit alt
3923 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3925 <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>
3930 Image with wiki markup in explicit alt
3932 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3934 <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>
3939 Link to image page- image page normally doesn't exists, hence edit link
3940 Add test with existing image page
3941 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3945 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3950 bug 18784 Link to non-existent image page with caption should use caption as link text
3952 [[:Image:test|caption]]
3954 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
3959 Frameless image caption with a free URL
3961 [[Image:foobar.jpg|http://example.com]]
3963 <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>
3968 Thumbnail image caption with a free URL
3970 [[Image:foobar.jpg|thumb|http://example.com]]
3972 <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>
3977 Thumbnail image caption with a free URL and explicit alt
3979 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3981 <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>
3986 BUG 1887: A ISBN with a thumbnail
3988 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3990 <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>
3995 BUG 1887: A RFC with a thumbnail
3997 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3999 <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>
4004 BUG 1887: A mailto link with a thumbnail
4006 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
4008 <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>
4012 # Pending resolution to bug 368
4014 BUG 648: Frameless image caption with a link
4016 [[Image:foobar.jpg|text with a [[link]] in it]]
4018 <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>
4023 BUG 648: Frameless image caption with a link (suffix)
4025 [[Image:foobar.jpg|text with a [[link]]foo in it]]
4027 <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>
4032 BUG 648: Frameless image caption with an interwiki link
4034 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4036 <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>
4041 BUG 648: Frameless image caption with a piped interwiki link
4043 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4045 <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>
4050 Escape HTML special chars in image alt text
4052 [[Image:foobar.jpg|& < > "]]
4054 <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>
4059 BUG 499: Alt text should have Ӓ, not &1234;
4061 [[Image:foobar.jpg|♀]]
4063 <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>
4068 Broken image caption with link
4070 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4072 <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.
4077 Image caption containing another image
4079 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4081 <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>
4086 Image caption containing a newline
4088 [[Image:Foobar.jpg|This
4091 <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>
4097 Bug 3090: External links other than http: in image captions
4099 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4101 <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>
4108 #REDIRECT [[File:Barfoo.jpg]]
4114 [[Image:Barfoo.jpg]]
4116 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
4121 Missing image with uploads disabled
4125 [[Image:Foobaz.jpg]]
4127 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
4136 Subpage test/subpage
4144 subpage title=[[Subpage test]]
4148 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
4153 Subpage noslash link
4155 subpage title=[[Subpage test]]
4159 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4168 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4173 BUG 561: {{/Subpage}}
4175 subpage title=[[Page]]
4179 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4187 Category:MediaWiki User's Guide
4195 [[:Category:MediaWiki User's Guide]]
4197 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
4206 [[Category:MediaWiki User's Guide]]
4208 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4212 PAGESINCATEGORY invalid title fatal (r33546 fix)
4214 {{PAGESINCATEGORY:<bogus>}}
4221 ### Inter-language links
4224 Inter-language links
4230 [[zh:食品]]
4232 es:Alimento fr:Nourriture zh:食品
4239 Basic section headings
4246 ===Smaller headline===
4249 <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>
4252 <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>
4255 <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>
4261 Section headings with TOC
4264 === Subheadline 1 ===
4265 ===== Skipping a level =====
4266 ====== Skipping a level ======
4270 ===Another headline===
4272 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4274 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4276 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4278 <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>
4280 <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>
4287 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4289 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4294 <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>
4295 <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>
4296 <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>
4297 <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>
4298 <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>
4301 <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>
4305 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4307 Handling of sections up to level 6 and beyond
4310 == Level 2 Heading==
4311 === Level 3 Heading===
4312 ==== Level 4 Heading====
4313 ===== Level 5 Heading=====
4314 ====== Level 6 Heading======
4315 ======= Level 7 Heading=======
4316 ======== Level 8 Heading========
4317 ========= Level 9 Heading=========
4318 ========== Level 10 Heading==========
4320 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4322 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4324 <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>
4326 <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>
4328 <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>
4330 <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>
4332 <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>
4333 <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>
4334 <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>
4335 <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>
4336 <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>
4349 <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>
4350 <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>
4351 <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>
4352 <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>
4353 <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>
4354 <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>
4355 <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>
4356 <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>
4357 <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>
4358 <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>
4363 TOC regression (bug 9764)
4367 ==== title 1.1.1 ====
4372 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4374 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4376 <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>
4378 <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>
4381 <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>
4384 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4386 <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>
4391 <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>
4392 <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>
4393 <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>
4394 <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>
4395 <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>
4396 <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>
4401 TOC with wgMaxTocLevel=3 (bug 6204)
4407 ==== title 1.1.1 ====
4412 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4414 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4416 <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>
4417 <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>
4420 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4422 <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>
4427 <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>
4428 <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>
4429 <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>
4430 <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>
4431 <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>
4432 <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>
4437 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4443 ====Section 1.1.1====
4444 ====Section 1.1.1.1====
4447 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4449 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4451 <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>
4454 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4457 <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>
4458 <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>
4459 <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>
4460 <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>
4461 <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>
4467 Resolving duplicate section names
4472 <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>
4473 <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>
4478 Resolving duplicate section names with differing case (bug 10721)
4483 <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>
4484 <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>
4496 Template with sections, __NOTOC__
4503 <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>
4504 <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>
4505 <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>
4506 <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>
4511 __NOEDITSECTION__ keyword
4517 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4518 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4523 Link inside a section heading
4525 ==Section with a [[Main Page|link]] in it==
4527 <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>
4532 TOC regression (bug 12077)
4539 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4541 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4543 <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>
4546 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4549 <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>
4550 <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>
4551 <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>
4556 BUG 1219 URL next to image (good)
4558 http://example.com [[Image:foobar.jpg]]
4560 <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>
4565 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4568 The line above must have a trailing space!
4571 But just in case it doesn't...
4573 <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>
4574 <p>The line above must have a trailing space!
4576 <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>
4577 <p>But just in case it doesn't...
4582 Header with special characters (bug 25462)
4584 The tooltips shall not show entities to the user (ie. be double escaped)
4601 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4603 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4605 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4606 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4607 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4608 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4609 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4612 <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>
4615 <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>
4618 <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>
4621 <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>
4624 <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>
4630 BUG 1219 URL next to image (broken)
4632 http://example.com[[Image:foobar.jpg]]
4634 <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>
4639 Bug 1186 news: in the middle of text
4641 http://en.wikinews.org/wiki/Wikinews:Workplace
4643 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4649 Namespaced link must have a title
4658 Namespaced link must have a title (bad fragment version)
4660 [[Project:#fragment]]
4662 <p>[[Project:#fragment]]
4668 div with no attributes
4670 <div>HTML rocks</div>
4672 <div>HTML rocks</div>
4677 div with double-quoted attribute
4679 <div id="rock">HTML rocks</div>
4681 <div id="rock">HTML rocks</div>
4686 div with single-quoted attribute
4688 <div id='rock'>HTML rocks</div>
4690 <div id="rock">HTML rocks</div>
4695 div with unquoted attribute
4697 <div id=rock>HTML rocks</div>
4699 <div id="rock">HTML rocks</div>
4704 div with illegal double attributes
4706 <div id="a" id="b">HTML rocks</div>
4708 <div id="b">HTML rocks</div>
4713 HTML multiple attributes correction
4715 <p class="error" class="awesome">Awesome!</p>
4717 <p class="awesome">Awesome!</p>
4722 Table multiple attributes correction
4725 !+ class="error" class="awesome"| status
4730 <th class="awesome"> status
4738 <DIV ID="x">HTML ROCKS</DIV>
4740 <div id="x">HTML ROCKS</div>
4746 text with amp in the middle of nowhere
4750 <p>Remember AT&T?
4755 text with character entity: eacute
4757 I always thought é was a cute letter.
4759 <p>I always thought é was a cute letter.
4764 text with undefined character entity: xacute
4766 I always thought &xacute; was a cute letter.
4768 <p>I always thought &xacute; was a cute letter.
4780 [[Media:Foobar.jpg]]
4782 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4787 Media link with text
4789 [[Media:Foobar.jpg|A neat file to look at]]
4791 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4795 # FIXME: this is still bad HTML tag nesting
4797 Media link with nasty text
4798 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4800 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4802 <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>
4807 Media link to nonexistent file (bug 1702)
4809 [[Media:No such.jpg]]
4811 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4816 Image link to nonexistent file (bug 1850 - good)
4818 [[Image:No such.jpg]]
4820 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4825 :Image link to nonexistent file (bug 1850 - bad)
4827 [[:Image:No such.jpg]]
4829 <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>
4836 Character reference normalization in link text (bug 1938)
4838 [[Main Page|this&that]]
4840 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4847 Test for unicode normalization
4849 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4853 (bug 19451) Links should refer to the normalized form.
4861 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4862 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4863 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4864 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4865 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4870 Empty attribute crash test (bug 2067)
4872 <font color="">foo</font>
4874 <p><font color="">foo</font>
4879 Empty attribute crash test single-quotes (bug 2067)
4881 <font color=''>foo</font>
4883 <p><font color="">foo</font>
4888 Attribute test: equals, then nothing
4890 <font color=>foo</font>
4897 Attribute test: unquoted value
4899 <font color=x>foo</font>
4901 <p><font color="x">foo</font>
4906 Attribute test: unquoted but illegal value (hash)
4908 <font color=#x>foo</font>
4910 <p><font color="#x">foo</font>
4915 Attribute test: no value
4917 <font color>foo</font>
4919 <p><font color="color">foo</font>
4924 Bug 2095: link with three closing brackets
4928 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
4933 Bug 2095: link with pipe and three closing brackets
4937 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4942 Bug 2095: link with pipe and three closing brackets, version 2
4944 [[Main Page|[http://example.com/]]]
4946 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4956 Template:Dangerous attribute
4958 " onmouseover="alert(document.cookie)
4962 Template:Dangerous style attribute
4964 border-size: expression(alert(document.cookie))
4970 <div style="float: right; {{{1}}}">Magic div</div>
4974 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4976 <div title="{{test}}"></div>
4978 <div title="This is a test template"></div>
4983 Bug 2304: HTML attribute safety (dangerous template; 2309)
4985 <div title="{{dangerous attribute}}"></div>
4987 <div title=""></div>
4992 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4994 <div style="{{dangerous style attribute}}"></div>
4996 <div style="/* insecure input */"></div>
5001 Bug 2304: HTML attribute safety (safe parameter; 2309)
5003 {{div style|width: 200px}}
5005 <div style="float: right; width: 200px">Magic div</div>
5010 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
5012 {{div style|width: expression(alert(document.cookie))}}
5014 <div style="/* insecure input */">Magic div</div>
5019 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
5021 {{div style|"><script>alert(document.cookie)</script>}}
5023 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5028 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5030 {{div style|" ><script>alert(document.cookie)</script>}}
5032 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5037 Bug 2304: HTML attribute safety (link)
5039 <div title="[[Main Page]]"></div>
5041 <div title="[[Main Page]]"></div>
5046 Bug 2304: HTML attribute safety (italics)
5048 <div title="''foobar''"></div>
5050 <div title="''foobar''"></div>
5055 Bug 2304: HTML attribute safety (bold)
5057 <div title="'''foobar'''"></div>
5059 <div title="'''foobar'''"></div>
5065 Bug 2304: HTML attribute safety (ISBN)
5067 <div title="ISBN 1234567890"></div>
5069 <div title="ISBN 1234567890"></div>
5074 Bug 2304: HTML attribute safety (RFC)
5076 <div title="RFC 1234"></div>
5078 <div title="RFC 1234"></div>
5083 Bug 2304: HTML attribute safety (PMID)
5085 <div title="PMID 1234567890"></div>
5087 <div title="PMID 1234567890"></div>
5092 Bug 2304: HTML attribute safety (web link)
5094 <div title="http://example.com/"></div>
5096 <div title="http://example.com/"></div>
5101 Bug 2304: HTML attribute safety (named web link)
5103 <div title="[http://example.com/ link]"></div>
5105 <div title="[http://example.com/ link]"></div>
5110 Bug 3244: HTML attribute safety (extension; safe)
5112 <div style="<nowiki>background:blue</nowiki>"></div>
5114 <div style="background:blue"></div>
5119 Bug 3244: HTML attribute safety (extension; unsafe)
5121 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
5123 <div style="/* insecure input */"></div>
5127 # More MSIE fun discovered by Tom Gilder
5130 MSIE CSS safety test: spurious slash
5132 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
5134 <div style="/* insecure input */">evil</div>
5139 MSIE CSS safety test: hex code
5141 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
5143 <div style="/* insecure input */">evil</div>
5148 MSIE CSS safety test: comment in url
5150 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
5152 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
5157 MSIE CSS safety test: comment in expression
5159 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
5161 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5167 Table attribute legitimate extension
5170 !+ style="<nowiki>color:blue</nowiki>"| status
5175 <th style="color:blue"> status
5181 Table attribute safety
5184 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5189 <th style="/* insecure input */"> status
5195 CSS line continuation 1
5197 <div style="background-image: u\ rl(test.jpg);"></div>
5199 <div style="/* insecure input */"></div>
5204 CSS line continuation 2
5206 <div style="background-image: u\ rl(test.jpg); "></div>
5208 <div style="/* insecure input */"></div>
5219 Expansion of multi-line templates in attribute values (bug 6255)
5221 <div style="background: {{identity|#00FF00}}">-</div>
5223 <div style="background: #00FF00">-</div>
5229 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5231 <div style="background:
5234 <div style="background: #00FF00">-</div>
5239 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5241 <div style="background: #00FF00">-</div>
5243 <div style="background: #00FF00">-</div>
5248 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5251 Parser hook: empty input
5264 Parser hook: empty input using terminated empty elements
5277 Parser hook: empty input using terminated empty elements (space before)
5290 Parser hook: basic input
5304 Parser hook: case insensitive
5318 Parser hook: case insensitive, redux
5331 Parser hook: nested tags
5335 <tag><tag></tag></tag>
5346 Parser hook: basic arguments
5348 <tag width=200 height = "100" depth = '50' square></tag>
5367 Parser hook: argument containing a forward slash (bug 5344)
5369 <tag filename='/tmp/bla'></tag>
5375 string(8) "/tmp/bla"
5382 Parser hook: empty input using terminated empty elements (bug 2374)
5396 # </tag> should be output literally since there is no matching tag that begins it
5398 Parser hook: basic arguments using terminated empty elements (bug 2374)
5400 <tag width=200 height = "100" depth = '50' square/>
5423 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5427 Parser hook: static parser hook not inside a comment
5429 <statictag>hello, world</statictag>
5430 <statictag action=flush/>
5438 Parser hook: static parser hook inside a comment
5440 <!-- <statictag>hello, world</statictag> -->
5441 <statictag action=flush/>
5447 # Nested template calls; this case was broken by Parser.php rev 1.506,
5451 Template:One-parameter
5453 (My parameter is: {{{1}}})
5457 Template:Map-one-parameter
5463 Nested template calls
5465 {{Map-one-parameter|One-parameter|param}}
5467 <p>(My parameter is: param)
5476 Sanitizer: Closing of open tags
5478 <s></s><table></table>
5480 <s></s><table></table>
5485 Sanitizer: Closing of open but not closed tags
5494 Sanitizer: Closing of closed but not open tags
5503 Sanitizer: Closing of closed but not open table tags
5505 Table not started</td></tr></table>
5507 <p>Table not started</td></tr></table>
5512 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5514 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5516 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5521 Sanitizer: Validating the contents of the id attribute (bug 4515)
5527 Something, but definitely not <br id="9" />...
5531 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5535 <br id="foo" /><br id="foo" />
5537 Something need to be done. foo-2 ?
5541 Language converter: output gets cut off unexpectedly (bug 5757)
5545 this bit is safe: }-
5547 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5549 then we get cut off here: }-
5551 all additional text is vanished
5553 <p>this bit is safe: }-
5554 </p><p>but if we add a conversion instance: xxx
5555 </p><p>then we get cut off here: }-
5556 </p><p>all additional text is vanished
5561 Self closed html pairs (bug 5487)
5564 <center><font id="bug" />Centered text</center>
5565 <div><font id="bug2" />In div text</div>
5567 <center><font id="bug" />Centered text</center>
5568 <div><font id="bug2" />In div text</div>
5577 Punctuation: nbsp before exclamation
5581 <p>C'est grave !
5586 Punctuation: CSS !important (bug 11874)
5588 <div style="width:50% !important">important</div>
5590 <div style="width:50% !important">important</div>
5595 Punctuation: CSS ! important (bug 11874; with space after)
5597 <div style="width:50% ! important">important</div>
5599 <div style="width:50% ! important">important</div>
5605 HTML bullet list, closed tags (bug 5497)
5620 HTML bullet list, unclosed tags (bug 5497)
5637 HTML ordered list, closed tags (bug 5497)
5652 HTML ordered list, unclosed tags (bug 5497)
5669 HTML nested bullet list, closed tags (bug 5497)
5694 HTML nested bullet list, open tags (bug 5497)
5719 HTML nested ordered list, closed tags (bug 5497)
5744 HTML nested ordered list, open tags (bug 5497)
5769 HTML ordered list item with parameters oddity
5771 <ol><li id="fragment">One</li></ol>
5773 <ol><li id="fragment">One</li></ol>
5778 bug 5918: autonumbering
5780 [http://first/] [http://second] [ftp://ftp]
5784 [mailto:enclosed@mail.tld With target]
5786 [mailto:enclosed@mail.tld]
5788 mailto:inline@mail.tld
5790 <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>
5791 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
5792 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
5793 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
5794 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
5800 # Security and HTML correctness
5801 # From Nick Jenkins' fuzz testing
5805 Fuzz testing: Parser13
5820 Fuzz testing: Parser14
5825 <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>
5826 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5828 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5835 Fuzz testing: Parser14-table
5840 <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>
5841 <table style="__TOC__">
5847 # Known to produce bogus xml (extra </td>)
5849 Fuzz testing: Parser16
5869 Fuzz testing: Parser21
5872 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5877 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5887 Fuzz testing: Parser22
5889 http://===r:::https://b
5893 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
5901 # Known to produce bad XML for now
5903 Fuzz testing: Parser24
5910 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5911 <br style="onmouseover='alert(document.cookie);' " />
5913 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5918 <u class="|">}}}} >
5919 <br style="onmouseover='alert(document.cookie);'" />
5921 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5930 # Note: the current result listed for this is not what the original one was,
5931 # but the original bug was JavaScript injection, which is fixed in any case.
5932 # It's not clear that the original result listed was any more correct than the
5933 # current one. Original result:
5936 # <li class="||">
5937 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5939 Fuzz testing: Parser25 (bug 6055)
5945 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5947 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5952 Fuzz testing: URL adjacent extension (with space, clean)
5955 http://example.com <nowiki>junk</nowiki>
5957 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
5962 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5965 http://example.com<nowiki>junk</nowiki>
5967 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
5972 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5975 http://example.com<pre>junk</pre>
5977 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
5982 Fuzz testing: image with bogus manual thumbnail
5984 [[Image:foobar.jpg|thumbnail= ]]
5986 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5991 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5993 <pre dir=" "></pre>
5995 <pre dir=" "></pre>
6000 Parsing optional HTML elements (Bug 6171)
6005 <td> Some tabular data</td>
6006 <td> More tabular data ...
6007 <td> And yet som tabular data</td>
6013 <td> Some tabular data</td>
6014 <td> More tabular data ...
6015 </td><td> And yet som tabular data</td>
6022 Correct handling of <td>, <tr> (Bug 6171)
6027 <td> Some tabular data</td>
6028 <td> More tabular data ...</td>
6029 <td> And yet som tabular data</td>
6035 <td> Some tabular data</td>
6036 <td> More tabular data ...</td>
6037 <td> And yet som tabular data</td>
6045 Parsing crashing regression (fr:JavaScript)
6049 <p></body></x>
6054 Inline wiki vs wiki block nesting
6060 <p><b>Bold paragraph</b>
6061 </p><p>New wiki paragraph
6066 Inline HTML vs wiki block nesting
6074 <p><b>Bold paragraph</b>
6075 </p><p>New wiki paragraph
6079 # Original result was this:
6080 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6082 # While that might be marginally more intuitive, maybe, the six-apostrophe
6083 # construct is clearly pathological and the result stated here (which is what
6084 # the parser actually does) is about as reasonable as anything.
6086 Mixing markup for italics and bold
6089 '''bold''''''bold''bolditalics'''''
6091 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
6099 Article for special page transclusion test
6103 Special page transclusion
6106 {{Special:Prefixindex/Xyzzyx}}
6108 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6113 Special page transclusion twice (bug 5021)
6116 {{Special:Prefixindex/Xyzzyx}}
6117 {{Special:Prefixindex/Xyzzyx}}
6119 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6120 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6125 Transclusion of default MediaWiki message
6127 {{MediaWiki:Mainpage}}
6134 Transclusion of nonexistent MediaWiki message
6136 {{MediaWiki:Mainpagexxx}}
6138 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6143 Transclusion of MediaWiki message with underscore
6145 {{MediaWiki:history_short}}
6152 Transclusion of MediaWiki message with space
6154 {{MediaWiki:history short}}
6161 Invalid header with following text
6171 Section extraction test (section 0)
6191 Section extraction test (section 1)
6213 Section extraction test (section 2)
6234 Section extraction test (section 3)
6254 Section extraction test (section 4)
6278 Section extraction test (section 5)
6298 Section extraction test (section 6)
6319 Section extraction test (section 7)
6339 Section extraction test (section 8)
6359 Section extraction test (section 9)
6380 Section extraction test (section 10)
6400 Section extraction test (nonexistent section 11)
6419 Section extraction test with bogus heading (section 1)
6424 ==bogus== not a legal section
6428 ==bogus== not a legal section
6432 Section extraction test with bogus heading (section 2)
6437 ==bogus== not a legal section
6444 Section extraction test with comment after heading (section 1)
6456 Section extraction test with comment after heading (section 2)
6468 Section extraction test with bogus <nowiki> heading (section 1)
6473 ==bogus== <nowiki>not a legal section</nowiki>
6477 ==bogus== <nowiki>not a legal section</nowiki>
6481 Section extraction test with bogus <nowiki> heading (section 2)
6486 ==bogus== <nowiki>not a legal section</nowiki>
6493 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6494 # instead of respecting commented sections
6496 Section extraction prefixed by comment (section 1)
6507 Section extraction prefixed by comment (section 2)
6518 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6519 # instead of respecting HTML-style headings
6521 Section extraction, mixed wiki and html (section 1)
6537 Section extraction, mixed wiki and html (section 2)
6553 # Formerly testing for bug 3342
6555 Section extraction, heading surrounded by <noinclude>
6559 <noinclude>==unmarked==</noinclude>
6565 # Test behaviour of bug 19910
6567 Sectiion with all-equals
6572 The line above must have a trailing space
6575 But just in case it doesn't...
6579 But just in case it doesn't...
6583 Section replacement test (section 0)
6614 Section replacement test (section 1)
6643 Section replacement test (section 2)
6673 Section replacement test (section 3)
6704 Section replacement test (section 4)
6731 Section replacement test (section 5)
6762 Section replacement test (section 6)
6792 Section replacement test (section 7)
6823 Section replacement test (section 8)
6854 Section replacement test (section 9)
6883 Section replacement test (section 10)
6913 Section replacement test with initial whitespace (bug 13728)
6917 Preformatted initial line
6921 Preformatted initial line
6928 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6940 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6953 Section extraction, <pre> around bogus header (bug 10309)
6970 Section replacement, <pre> around bogus header (bug 10309)
6972 noxml replace=2,"xxx"
6993 Handling of 
 in URLs
6997 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
7004 5 quotes, code coverage +1 line
7011 Special:Search page linking.
7015 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
7030 * {{SUBJECTPAGENAME}}
7031 * {{SUBJECTPAGENAMEE}}
7038 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7040 <ul><li> Parser test
7041 </li><li> Parser test
7042 </li><li> Parser test
7043 </li><li> Parser_test
7044 </li><li> Parser test
7045 </li><li> Parser_test
7046 </li><li> Talk:Parser test
7047 </li><li> Talk:Parser_test
7048 </li><li> Parser test
7049 </li><li> Parser_test
7056 </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>
7060 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
7070 image4 |300px| centre
7071 image5.svg| http://///////
7076 <ul class="gallery">
7077 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7078 <div style="height: 150px;">Image1.png</div>
7079 <div class="gallerytext">
7082 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7083 <div style="height: 150px;">Image2.gif</div>
7084 <div class="gallerytext">
7089 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7090 <div style="height: 150px;">Image3</div>
7091 <div class="gallerytext">
7094 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7095 <div style="height: 150px;">Image4</div>
7096 <div class="gallerytext">
7101 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7102 <div style="height: 150px;">Image5.svg</div>
7103 <div class="gallerytext">
7104 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
7108 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7109 <div style="height: 150px;">* image6</div>
7110 <div class="gallerytext">
7118 Gallery (with options)
7120 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
7121 File:Nonexistant.jpg|caption
7122 File:Nonexistant.jpg
7123 image:foobar.jpg|some '''caption''' [[Main Page]]
7125 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
7128 <ul class="gallery" style="max-width: 226px;_width: 226px;">
7129 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
7130 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7131 <div style="height: 70px;">Nonexistant.jpg</div>
7132 <div class="gallerytext">
7137 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7138 <div style="height: 70px;">Nonexistant.jpg</div>
7139 <div class="gallerytext">
7142 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7143 <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>
7144 <div class="gallerytext">
7145 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7149 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7150 <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>
7151 <div class="gallerytext">
7154 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7155 <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>
7156 <div class="gallerytext">
7166 Gallery with wikitext inside caption
7169 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
7170 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
7173 <ul class="gallery">
7174 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7175 <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>
7176 <div class="gallerytext">
7177 <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>
7181 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7182 <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>
7183 <div class="gallerytext">
7184 <p>This is a test template
7193 gallery (with showfilename option)
7195 <gallery showfilename>
7196 File:Nonexistant.jpg|caption
7197 File:Nonexistant.jpg
7198 image:foobar.jpg|some '''caption''' [[Main Page]]
7202 <ul class="gallery">
7203 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7204 <div style="height: 150px;">Nonexistant.jpg</div>
7205 <div class="gallerytext">
7206 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7211 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7212 <div style="height: 150px;">Nonexistant.jpg</div>
7213 <div class="gallerytext">
7214 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7218 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7219 <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>
7220 <div class="gallerytext">
7221 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7222 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7226 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7227 <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>
7228 <div class="gallerytext">
7229 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7238 Gallery (with namespace-less filenames)
7241 File:Nonexistant.jpg
7247 <ul class="gallery">
7248 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7249 <div style="height: 150px;">Nonexistant.jpg</div>
7250 <div class="gallerytext">
7253 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7254 <div style="height: 150px;">Nonexistant.jpg</div>
7255 <div class="gallerytext">
7258 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7259 <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>
7260 <div class="gallerytext">
7263 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7264 <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>
7265 <div class="gallerytext">
7273 HTML Hex character encoding (spells the word "JavaScript")
7275 JavaScript
7277 <p>JavaScript
7282 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7286 <p>&#xsee;&#XSEE;
7291 HTML Hex character encoding mixed case
7300 __FORCETOC__ override
7312 ISBN 978-0-1234-56 789
7314 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7319 ISBN followed by 5 spaces
7330 ISBN ISBN 1234567890
7332 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7337 Bug 22905: <abbr> followed by ISBN followed by </a>
7339 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7341 <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>
7350 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
7355 Double RFC with a wiki link
7359 <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>
7368 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
7373 Centre-aligned image
7375 [[Image:foobar.jpg|centre]]
7377 <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>
7384 [[Image:foobar.jpg|none]]
7386 <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>
7391 Width + Height sized image (using px) (height is ignored)
7393 [[Image:foobar.jpg|640x480px]]
7395 <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>
7400 Width-sized image (using px, no following whitespace)
7402 [[Image:foobar.jpg|640px]]
7404 <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>
7409 Width-sized image (using px, with following whitespace - test regression from r39467)
7411 [[Image:foobar.jpg|640px ]]
7413 <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>
7418 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7420 [[Image:foobar.jpg| 640px]]
7422 <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>
7427 Another italics / bold test
7435 # Note the results may be incorrect, as parserTest output included this:
7436 # XML error: Mismatched tag at byte 6120:
7437 # ...<dd> </dt></dl> </dd...
7445 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7456 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7458 Images with the "|" character in the comment
7460 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7462 <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>
7467 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7469 <html><script>alert(1);</script></html>
7471 <p><html><script>alert(1);</script></html>
7476 HTML with raw HTML ($wgRawHtml==true)
7480 <html><script>alert(1);</script></html>
7482 <p><script>alert(1);</script>
7487 Parents of subpages, one level up
7489 subpage title=[[Subpage test/L1/L2/L3]]
7493 <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>
7499 Parents of subpages, one level up, not named
7501 subpage title=[[Subpage test/L1/L2/L3]]
7505 <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>
7512 Parents of subpages, two levels up
7514 subpage title=[[Subpage test/L1/L2/L3]]
7520 <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
7521 </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>
7526 Parents of subpages, two levels up, without trailing slash or name.
7528 subpage title=[[Subpage test/L1/L2/L3]]
7537 Parents of subpages, two levels up, with lots of extra trailing slashes.
7539 subpage title=[[Subpage test/L1/L2/L3]]
7543 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7548 Definition list code coverage
7554 <dl><dt> title  </dt><dd> def
7555 </dd><dt> title </dt><dd> def
7556 </dd><dt>title</dt><dd> def
7562 Don't fall for the self-closing div
7564 <div>hello world</div/>
7566 <div>hello world</div>
7575 <p>[[:Template:Msg]]
7584 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7588 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7590 Always escape literal '>' in output, not just after '<'
7604 <p>This is a test template
7605 This is a test template
7617 Inclusion of !userCanEdit() content
7621 <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>
7627 Out-of-order TOC heading levels
7636 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7638 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7640 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7641 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7644 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7646 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7647 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7652 <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>
7653 <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>
7654 <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>
7655 <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>
7656 <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>
7657 <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>
7663 ISBN with a dummy number
7673 ISBN with space-delimited number
7677 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7683 ISBN with multiple spaces, no number
7702 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7703 </p><p>ISBN 12345678901
7709 ISBN with trailing year (bug 8110)
7711 ISBN 1-234-56789-0 - 2006
7713 ISBN 1 234 56789 0 - 2006
7715 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7716 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7724 {{anchorencode:foo bar©#%n}}
7726 <p>foo_bar.C2.A9.23.25n
7731 anchorencode trims spaces
7733 {{anchorencode: __pretty__please__}}
7740 anchorencode deals with links
7742 {{anchorencode: [[hello|world]] [[hi]]}}
7749 anchorencode deals with templates
7751 {{anchorencode: {{Foo}} }}
7758 anchorencode encodes like the TOC generator: (bug 18431)
7760 === _ +:.3A%3A&&]] ===
7761 {{anchorencode: _ +:.3A%3A&&]] }}
7764 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7765 <p>.2B:.3A.253A.26.26.5D.5D
7769 # Expected output in the following test is not necessarily expected (there
7770 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7771 # only testing for well-formedness.
7773 Bug 6200: blockquotes and paragraph formatting
7793 Bug 8293: Use of center tag ruins paragraph formatting
7815 ### Language variants related tests
7818 Self-link in language variants
7820 title=[[Dunav]] language=sr
7822 Both [[Dunav]] and [[Дунав]] are names for this river.
7824 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7830 Link to pages in language variants
7834 Main Page can be written as [[Маин Паге]]
7836 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7842 Multiple links to pages in language variants
7846 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7848 <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>.
7854 Simple template in language variants
7860 <p>This is a test template
7866 Template with explicit namespace in language variants
7872 <p>This is a test template
7878 Basic test for template parameter in language variants
7882 {{парамтест|param=foo}}
7884 <p>This is a test template with parameter foo
7890 Simple category in language variants
7894 [[Category:МедиаWики Усер'с Гуиде]]
7896 <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>
7901 Stripping -{}- tags (language variants)
7905 Latin proverb: -{Ne nuntium necare}-
7907 <p>Latin proverb: Ne nuntium necare
7913 Prevent conversion with -{}- tags (language variants)
7915 language=sr variant=sr-ec
7917 Latinski: -{Ne nuntium necare}-
7919 <p>Латински: Ne nuntium necare
7925 Prevent conversion of text with -{}- tags (language variants)
7927 language=sr variant=sr-ec
7929 Latinski: -{Ne nuntium necare}-
7931 <p>Латински: Ne nuntium necare
7937 Prevent conversion of links with -{}- tags (language variants)
7939 language=sr variant=sr-ec
7943 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7949 -{}- tags within headlines (within html for parserConvert())
7951 language=sr variant=sr-ec
7955 <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>
7961 Explicit definition of language variant alternatives
7963 language=zh variant=zh-tw
7965 -{zh:China;zh-tw:Taiwan}-, not China
7967 <p>Taiwan, not China
7973 Explicit session-wise language variant mapping (A flag and - flag)
7975 language=zh variant=zh-tw
7977 Taiwan is not China.
7978 But -{A|zh:China;zh-tw:Taiwan}- is China,
7979 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
7980 and -{China}- is China.
7982 <p>Taiwan is not China.
7983 But Taiwan is Taiwan,
7984 (This should be stripped!)
7990 Explicit session-wise language variant mapping (H flag for hide)
7992 language=zh variant=zh-tw
7994 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
7997 <p>(This should be stripped!)
8003 Adding explicit conversion rule for title (T flag)
8005 language=zh variant=zh-tw showtitle
8007 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8010 <p>Should be stripped!
8015 Testing that changing the language variant here in the tests actually works
8017 language=zh variant=zh showtitle
8019 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8022 <p>Should be stripped!
8027 Bug 24072: more test on conversion rule for title
8029 language=zh variant=zh-tw showtitle
8031 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8032 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8035 <p>This should be stripped!
8036 This won't take interferes with the title rule.
8041 Raw output of variant escape tags (R flag)
8043 language=zh variant=zh-tw
8045 Raw: -{R|zh:China;zh-tw:Taiwan}-
8047 <p>Raw: zh:China;zh-tw:Taiwan
8052 Nested using of manual convert syntax
8054 language=zh variant=zh-hk
8056 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8058 <p>Nested: Hello Hong Kong!
8063 Do not convert roman numbers to language variants
8065 language=sr variant=sr-ec
8069 <p>Фридрих IV је цар.
8074 Unclosed language converter markup "-{"
8085 Don't convert raw rule "-{R|=>}-" to "=>"
8102 Bug 529: Uncovered bullet
8113 Bug 529: Uncovered table already at line-start
8136 Bug 529: Uncovered bullet in parser function result
8138 * Foo {{lc:{{bullet}} }}
8147 Bug 5678: Double-parsed template argument
8149 {{lc:{{{1}}}|hello}}
8156 Bug 5678: Double-parsed template invocation
8158 {{lc:{{paramtest {{!}} param = hello }} }}
8160 <p>{{paramtest | param = hello }}
8165 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8191 Morwen/13: Unclosed link followed by heading
8198 <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>
8203 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8210 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8215 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8222 <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>
8237 Paragraphs inside divs (no extra line breaks)
8249 Paragraphs inside divs (extra line break on open)
8264 Paragraphs inside divs (extra line break on close)
8279 Paragraphs inside divs (extra line break on open and close)
8296 Nesting tags, paragraphs on lines which begin with <div>
8300 <div></div><strong>A
8309 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8311 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8315 <blockquote>Line one
8317 Line two</blockquote>
8319 <blockquote>Line one
8320 Line two</blockquote>
8325 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8332 Line two</blockquote>
8337 Line two</blockquote>
8342 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8346 <blockquote>Line one
8351 <blockquote>Line one
8359 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8378 Paragraphs inside blockquotes/divs (no extra line breaks)
8380 <blockquote><div>Line one
8382 Line two</div></blockquote>
8384 <blockquote><div>Line one
8385 Line two</div></blockquote>
8390 Paragraphs inside blockquotes/divs (extra line break on open)
8395 Line two</div></blockquote>
8400 Line two</div></blockquote>
8405 Paragraphs inside blockquotes/divs (extra line break on close)
8407 <blockquote><div>Line one
8412 <blockquote><div>Line one
8420 Paragraphs inside blockquotes/divs (extra line break on open and close)
8437 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8439 wgLinkHolderBatchSize=0
8445 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
8446 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
8447 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
8452 Free external link invading image caption
8454 [[Image:Foobar.jpg|thumb|http://x|hello]]
8456 <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>
8461 Bug 15196: localised external link numbers
8465 [http://en.wikipedia.org/]
8467 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8472 Multibyte character in padleft
8474 {{padleft:-Hello|7|Æ}}
8481 Multibyte character in padright
8483 {{padright:Hello-|7|Æ}}
8496 <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>
8501 formatdate parser function
8503 {{#formatdate:2009-03-24}}
8505 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8510 formatdate parser function, with default format
8512 {{#formatdate:2009-03-24|mdy}}
8514 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8519 Linked date with autoformatting disabled
8521 wgUseDynamicDates=false
8525 <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>
8530 Spacing of numbers in formatted dates
8532 {{#formatdate:January 15}}
8534 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8539 Spacing of numbers in formatted dates (linked)
8541 wgUseDynamicDates=true
8545 <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>
8558 Edit comment with link
8562 I like the [[Main Page]] a lot
8564 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
8568 Edit comment with link and link text
8572 I like the [[Main Page|best pages]] a lot
8574 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8578 Edit comment with link and link text with suffix
8582 I like the [[Main Page|best page]]s a lot
8584 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8588 Edit comment with section link (non-local, eg in history list)
8590 comment title=[[Main Page]]
8592 /* External links */ removed bogus entries
8594 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
8598 Edit comment with section link and text before it (non-local, eg in history list)
8600 comment title=[[Main Page]]
8602 pre-comment text /* External links */ removed bogus entries
8604 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>
8608 Edit comment with section link (local, eg in diff view)
8610 comment local title=[[Main Page]]
8612 /* External links */ removed bogus entries
8614 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
8618 Edit comment with subpage link (bug 14080)
8622 title=[[Subpage test]]
8624 Poked at a [[/subpage]] here...
8626 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8630 Edit comment with subpage link and link text (bug 14080)
8634 title=[[Subpage test]]
8636 Poked at a [[/subpage|neat little page]] here...
8638 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8642 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8645 title=[[Subpage test]]
8647 Poked at a [[/subpage]] here...
8649 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8653 Edit comment with bare anchor link (local, as on diff)
8661 <a href="#section">#section</a>
8665 Edit comment with bare anchor link (non-local, as on history)
8672 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8676 Anchor starting with underscore
8680 <p><a href="#_ref">One</a>
8685 Id starting with underscore
8687 <div id="_ref"></div>
8689 <div id="_ref"></div>
8694 Space normalisation on autocomment (bug 22784)
8699 /* __hello__world__ */
8701 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
8705 percent-encoding and + signs in comments (Bug 26410)
8709 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8711 <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>
8715 Bad images - basic functionality
8724 Bad images - bug 16039: text after bad image disappears
8738 Verify that displaytitle works (bug #22501) no displaytitle
8742 wgAllowDisplayTitle=true
8743 wgRestrictDisplayTitle=false
8745 this is not the the title
8748 <p>this is not the the title
8753 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8758 wgAllowDisplayTitle=true
8759 wgRestrictDisplayTitle=false
8761 this is not the the title
8762 {{DISPLAYTITLE:whatever}}
8765 <p>this is not the the title
8770 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8775 wgAllowDisplayTitle=true
8776 wgRestrictDisplayTitle=true
8778 this is not the the title
8779 {{DISPLAYTITLE:whatever}}
8782 <p>this is not the the title
8787 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8792 wgAllowDisplayTitle=true
8793 wgRestrictDisplayTitle=true
8795 this is not the the title
8796 {{DISPLAYTITLE:screen}}
8799 <p>this is not the the title
8804 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8809 wgAllowDisplayTitle=false
8811 this is not the the title
8812 {{DISPLAYTITLE:screen}}
8815 <p>this is not the the title
8816 <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>
8821 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8826 wgAllowDisplayTitle=false
8828 this is not the the title
8831 <p>this is not the the title
8836 preload: check <noinclude> and <includeonly>
8840 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8846 preload: check <onlyinclude>
8850 Goodbye <onlyinclude>Hello world</onlyinclude>
8856 preload: can pass tags through if we want to
8860 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8862 <includeonly>Hello world</includeonly>
8866 preload: check that it doesn't try to do tricks
8870 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8872 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8876 Play a bit with r67090 and bug 3158
8880 <div style="width:50% !important"> </div>
8881 <div style="width:50% !important"> </div>
8882 <div style="width:50% !important"> </div>
8883 <div style="border : solid;"> </div>
8885 <div style="width:50% !important"> </div>
8886 <div style="width:50% !important"> </div>
8887 <div style="width:50% !important"> </div>
8888 <div style="border : solid;"> </div>
8893 HTML5 data attributes
8895 <span data-foo="bar">Baz</span>
8896 <p data-abc-def_hij="">Quuz</p>
8898 <p><span data-foo="bar">Baz</span>
8900 <p data-abc-def_hij="">Quuz</p>
8905 percent-encoding and + signs in internal links (Bug 26410)
8907 [[User:+%]] [[Page+title%]]
8908 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
8909 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
8910 [[%33%45]] [[%33%45+]]
8912 <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>
8913 <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>
8914 <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>
8915 <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>
8920 Special characters in embedded file links (bug 27679)
8922 [[File:Contains & ampersand.jpg]]
8923 [[File:Does not exist.jpg|Title with & ampersand]]
8925 <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>
8926 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
8932 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
8934 Text's been normalized?
8936 <p>Text's been normalized?
8941 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
8943 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
8945 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
8950 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
8952 [http://www.example.org/ ideograms]
8954 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
8959 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
8961 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
8963 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
8987 Bug 31098 Template which includes system messages which includes the template
8991 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
8992 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
8997 Deprecated presentational attributes are converted to css
9000 | valign=top align=left width=100 height=25% | Asdf
9002 <ul type="disc"></ul>
9006 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
9008 <ul style="list-style-type: disc;"></ul>
9013 Bug31490 Turkish: ucfirst 'blah'
9024 Bug31490 Turkish: ucfirst 'ix'
9035 Bug31490 Turkish: lcfirst 'BLAH'
9046 Bug31490 Turkish: ucfırst (with a dotless i)
9052 <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>
9057 Bug31490 ucfırst (with a dotless i) with English language
9063 <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>
9068 Bug 26375: TOC with italics
9073 == ''Lost'' episodes ==
9075 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9077 <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>
9080 <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>
9085 Bug 26375: TOC with bold
9090 == '''should be bold''' then normal text ==
9092 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9094 <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>
9097 <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>
9102 Bug 33845: Headings become cursive in TOC when they contain an image
9107 == Image [[Image:foobar.jpg]] ==
9109 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9111 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
9114 <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>
9119 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
9124 == <blockquote>Quote</blockquote> ==
9126 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9128 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
9131 <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>
9136 Unclosed tags in TOC
9142 <small>Hanc marginis exiguitas non caperet.</small>
9145 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9147 <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>
9150 <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>
9151 <p><small>Hanc marginis exiguitas non caperet.</small>
9157 Multiple tags in TOC
9160 == <i>Foo</i> <b>Bar</b> ==
9162 == <i>Foo</i> <blockquote>Bar</blockquote> ==
9164 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9166 <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>
9167 <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>
9170 <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>
9171 <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>
9176 Tags with parameters in TOC
9179 == <sup class="in-h2">Hello</sup> ==
9181 == <sup class="a > b">Evilbye</sup> ==
9183 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9185 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
9186 <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>
9189 <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>
9190 <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>
9197 == {{int:headline_sample}} ==
9201 Bug 32057: Title needed when expanding <h> nodes.
9207 <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>
9212 Strip marker in urlencode
9214 {{urlencode:x<nowiki/>y}}
9215 {{urlencode:x<nowiki/>y|wiki}}
9216 {{urlencode:x<nowiki/>y|path}}
9243 Strip marker in formatNum
9245 {{formatnum:1<nowiki/>2}}
9246 {{formatnum:1<nowiki/>2|R}}
9254 Strip marker in grammar
9258 {{grammar:elative|foo<nowiki/>bar}}
9265 Strip marker in padleft
9267 {{padleft:|2|x<nowiki/>y}}
9274 Strip marker in padright
9276 {{padright:|2|x<nowiki/>y}}
9283 Strip marker in anchorencode
9285 {{anchorencode:x<nowiki/>y}}
9292 nowiki inside link inside heading (bug 18295)
9294 ==[[foo|x<nowiki>y</nowiki>z]]==
9296 <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>
9301 new support for bdi element (bug 31817)
9303 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
9305 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
9310 Ignore pipe between table row attributes
9314 |- id=foo | style='color: red'
9322 <tr id="foo" style="color: red">
9329 Gallery override link with WikiLink (bug 34852)
9332 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
9335 <ul class="gallery">
9336 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9337 <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>
9338 <div class="gallerytext">
9348 Gallery override link with absolute external link (bug 34852)
9351 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
9354 <ul class="gallery">
9355 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9356 <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>
9357 <div class="gallerytext">
9367 Gallery override link with malicious javascript (bug 34852)
9370 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
9373 <ul class="gallery">
9374 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9375 <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>
9376 <div class="gallerytext">
9386 Language parser function
9395 Padleft and padright as substr
9397 {{padleft:|3|abcde}}
9398 {{padright:|3|abcde}}
9411 Try for 100% code coverage