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
2129 <ol><li> with numbers
2131 <ul><li> and bullets
2133 <ol><li> and numbers
2135 </li><li>bullets again
2136 <ul><li>bullet level 2
2137 <ul><li>bullet level 3
2138 <ol><li>Number on level 4
2141 </li><li>bullet level 2
2142 <ol><li>Number on level 3
2143 </li><li>Number on level 3
2146 <ol><li>number level 2
2154 List items are not parsed correctly following a <pre> block (bug 785)
2160 <ul><li> <pre>foo</pre>
2161 </li><li> <pre>bar</pre>
2168 List items from template
2179 * notSOL{{inner list}}
2202 Magic Word: {{CURRENTDAY}}
2211 Magic Word: {{CURRENTDAY2}}
2220 Magic Word: {{CURRENTDAYNAME}}
2229 Magic Word: {{CURRENTDOW}}
2238 Magic Word: {{CURRENTMONTH}}
2247 Magic Word: {{CURRENTMONTHABBREV}}
2249 {{CURRENTMONTHABBREV}}
2256 Magic Word: {{CURRENTMONTHNAME}}
2258 {{CURRENTMONTHNAME}}
2265 Magic Word: {{CURRENTMONTHNAMEGEN}}
2267 {{CURRENTMONTHNAMEGEN}}
2274 Magic Word: {{CURRENTTIME}}
2283 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2292 Magic Word: {{CURRENTYEAR}}
2301 Magic Word: {{FULLPAGENAME}}
2303 title=[[User:Ævar Arnfjörð Bjarmason]]
2307 <p>User:Ævar Arnfjörð Bjarmason
2312 Magic Word: {{FULLPAGENAMEE}}
2314 title=[[User:Ævar Arnfjörð Bjarmason]]
2318 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2323 Magic Word: {{NAMESPACE}}
2325 title=[[User:Ævar Arnfjörð Bjarmason]]
2334 Magic Word: {{NAMESPACEE}}
2336 title=[[User:Ævar Arnfjörð Bjarmason]]
2345 Magic Word: {{NAMESPACENUMBER}}
2347 title=[[User:Ævar Arnfjörð Bjarmason]]
2356 Magic Word: {{NUMBEROFFILES}}
2365 Magic Word: {{PAGENAME}}
2367 title=[[User:Ævar Arnfjörð Bjarmason]]
2371 <p>Ævar Arnfjörð Bjarmason
2376 Magic Word: {{PAGENAME}} with metacharacters
2378 title=[['foo & bar = baz']]
2382 <p><i>'foo & bar = baz'</i>
2387 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2389 title=[[*RFC 1234 http://example.com/]]
2393 <p>*RFC 1234 http://example.com/
2398 Magic Word: {{PAGENAMEE}}
2400 title=[[User:Ævar Arnfjörð Bjarmason]]
2404 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2409 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2411 title=[[*RFC 1234 http://example.com/]]
2415 <p>*RFC_1234_http://example.com/
2420 Magic Word: {{REVISIONID}}
2429 Magic Word: {{SCRIPTPATH}}
2438 Magic Word: {{SERVER}}
2442 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2447 Magic Word: {{SERVERNAME}}
2456 Magic Word: {{SITENAME}}
2465 Namespace 1 {{ns:1}}
2474 Namespace 1 {{ns:01}}
2483 Namespace 0 {{ns:0}} (bug 4783)
2491 Namespace 0 {{ns:00}} (bug 4783)
2499 Namespace -1 {{ns:-1}}
2508 Namespace User {{ns:User}}
2517 Namespace User talk {{ns:User_talk}}
2526 Namespace User talk {{ns:uSeR tAlK}}
2535 Namespace File {{ns:File}}
2544 Namespace File {{ns:Image}}
2553 Namespace (lang=de) Benutzer {{ns:User}}
2564 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2570 <p>Benutzer Diskussion
2578 {{urlencode:hi world?!}}
2579 {{urlencode:hi world?!|WIKI}}
2580 {{urlencode:hi world?!|PATH}}
2581 {{urlencode:hi world?!|QUERY}}
2594 Magic links: internal link to RFC (bug 479)
2598 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2603 Magic links: RFC (bug 479)
2607 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
2612 Magic links: ISBN (bug 1937)
2616 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2621 Magic links: PMID incorrectly converts space to underscore
2625 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2634 Nonexistent template
2636 {{thistemplatedoesnotexist}}
2638 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2645 This is a test template
2653 <p>This is a test template
2658 Template with explicit namespace
2662 <p>This is a test template
2670 This is a test template with parameter {{{param}}}
2676 {{paramtest|param=foo}}
2678 <p>This is a test template with parameter foo
2683 Template:paramtestnum
2689 Template unnamed parameter
2691 {{paramtestnum|Main Page|the main page}}
2693 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2698 Template:templatesimple
2704 Template:templateredirect
2706 #redirect [[Template:templatesimple]]
2710 Template:templateasargtestnum
2716 Template:templateasargtest
2718 {{template{{{templ}}}}}
2722 Template:templateasargtest2
2728 Template with template name as unnamed argument
2730 {{templateasargtestnum|templatesimple}}
2737 Template with template name as argument
2739 {{templateasargtest|templ=simple}}
2746 Template with template name as argument (2)
2748 {{templateasargtest2|templ=templatesimple}}
2755 Template:templateasargtestdefault
2757 {{{{{templ|templatesimple}}}}}
2767 Template with default value
2769 {{templateasargtestdefault}}
2776 Template with default value (value set)
2778 {{templateasargtestdefault|templ=templa}}
2787 {{templateredirect}}
2794 Template with argument in separate line
2796 {{ templateasargtest |
2804 Template with complex template as argument
2807 param ={{ templateasargtest |
2810 <p>This is a test template with parameter (test)
2815 Template with thumb image (with link in description)
2818 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2820 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>
2825 Template:complextemplate
2827 {{{1}}} {{paramtest|
2828 param ={{{param}}}}}
2832 Template with complex arguments
2835 param ={{ templateasargtest |
2836 templ = simple }}|[[Template:complextemplate|link]]}}
2838 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2843 BUG 553: link with two variables in a piped link
2846 |[[{{{1}}}|{{{2}}}]]
2851 <td>[[{{{1}}}|{{{2}}}]]
2857 Magic variable as template parameter
2859 {{paramtest|param={{SITENAME}}}}
2861 <p>This is a test template with parameter MediaWiki
2868 [[{{{param}}}|link]]
2872 Template parameter as link source
2874 {{linktest|param=Main Page}}
2876 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2884 including another template, {{paramtest|param={{{arg}}}}}
2888 Template passing argument to another template
2890 {{paramtest2|arg='hmm'}}
2892 <p>including another template, This is a test template with parameter 'hmm'
2903 Template as link source
2907 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2925 Template infinite loop
2929 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
2934 Template from main namespace
2953 BUG 529: Template with table, not included at beginning of line
2972 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2992 BUG 41: Template parameters shown as broken links
3004 ''None'' of '''this''' should be
3006 but rather passed unmodified
3010 # hmm, fix this or just deprecate msgnw and document its behavior?
3016 {{msgnw:MSGNW test}}
3018 <p>''None'' of '''this''' should be
3020 but rather passed unmodified
3028 {{int:youhavenewmessages|lots of money|not!}}
3030 <p>You have lots of money (not!).
3037 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3041 <includeonly> and <noinclude> being included
3052 <onlyinclude>Foo</onlyinclude>bar
3056 <onlyinclude> being included
3068 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3072 <onlyinclude> and <includeonly> being included
3081 <includeonly> and <noinclude> on a page
3083 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3090 <onlyinclude> on a page
3092 <onlyinclude>Foo</onlyinclude>bar
3099 Template:Includeonly section
3102 ==Includeonly section==
3108 Bug 6563: Edit link generation for section shown by <includeonly>
3110 {{includeonly section}}
3112 <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>
3113 <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>
3117 # Uses same input as the contents of [[Template:Includeonly section]]
3119 Bug 6563: Section extraction for section shown by <includeonly>
3124 ==Includeonly section==
3132 Bug 6563: Edit link generation for section suppressed by <includeonly>
3135 ==Includeonly section==
3139 <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>
3144 Bug 6563: Section extraction for section suppressed by <includeonly>
3149 ==Includeonly section==
3157 ### Pre-save transform tests
3160 pre-save transform: subst:
3166 This is a test template
3170 pre-save transform: normal template
3180 pre-save transform: nonexistent template
3184 {{thistemplatedoesnotexist}}
3186 {{thistemplatedoesnotexist}}
3191 pre-save transform: subst magic variables
3200 # This is bug 89, which I fixed. -- wtm
3202 pre-save transform: subst: templates with parameters
3206 {{subst:paramtest|param="something else"}}
3208 This is a test template with parameter "something else"
3214 <nowiki>'''not wiki'''</nowiki>
3218 pre-save transform: nowiki in subst (bug 1188)
3222 {{subst:nowikitest}}
3224 <nowiki>'''not wiki'''</nowiki>
3229 Template:commenttest
3231 This template has <!-- a comment --> in it.
3235 pre-save transform: comment in subst (bug 1936)
3239 {{subst:commenttest}}
3241 This template has <!-- a comment --> in it.
3245 pre-save transform: unclosed tag
3249 <nowiki>'''not wiki'''
3251 <nowiki>'''not wiki'''
3255 pre-save transform: mixed tag case
3259 <NOwiki>'''not wiki'''</noWIKI>
3261 <NOwiki>'''not wiki'''</noWIKI>
3265 pre-save transform: unclosed comment in <nowiki>
3269 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3271 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3277 <span onmouseover="alert('crap')">Oh no</span>
3281 (confirming safety of fix for subst bug 1936)
3283 {{Template:dangerous}}
3285 <p><span>Oh no</span>
3290 pre-save transform: comment containing gallery (bug 5024)
3294 <!-- <gallery>data</gallery> -->
3296 <!-- <gallery>data</gallery> -->
3300 pre-save transform: comment containing extension
3304 <!-- <tag>data</tag> -->
3306 <!-- <tag>data</tag> -->
3310 pre-save transform: comment containing nowiki
3314 <!-- <nowiki>data</nowiki> -->
3316 <!-- <nowiki>data</nowiki> -->
3320 pre-save transform: <noinclude> in subst (bug 3298)
3330 pre-save transform: <onlyinclude> in subst (bug 3298)
3342 {{<includeonly>subst:</includeonly>Includes}}
3346 Template:SafeSubstTest
3348 {{<includeonly>safesubst:</includeonly>Includes}}
3352 bug 22297: safesubst: works during PST
3356 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3362 bug 22297: safesubst: works during normal parse
3371 subst: does not work during normal parse
3375 <p>{{subst:Includes}}
3380 pre-save transform: context links ("pipe trick")
3384 [[Article (context)|]]
3387 [[Bar:Article (context)|]]
3388 [[:Bar:Article (context)|]]
3390 [[|Article (context)]]
3394 [[Article (context)|Article]]
3395 [[Bar:Article|Article]]
3396 [[:Bar:Article|Article]]
3397 [[Bar:Article (context)|Article]]
3398 [[:Bar:Article (context)|Article]]
3400 [[Article (context)]]
3401 [[Bar:X (Y) Z|X (Y) Z]]
3402 [[:Bar:X (Y) Z|X (Y) Z]]
3406 pre-save transform: context links ("pipe trick") with interwiki prefix
3410 [[interwiki:Article|]]
3411 [[:interwiki:Article|]]
3412 [[interwiki:Bar:Article|]]
3413 [[:interwiki:Bar:Article|]]
3415 [[interwiki:Article|Article]]
3416 [[:interwiki:Article|Article]]
3417 [[interwiki:Bar:Article|Bar:Article]]
3418 [[:interwiki:Bar:Article|Bar:Article]]
3422 pre-save transform: context links ("pipe trick") with parens in title
3424 pst title=[[Somearticle (context)]]
3428 [[Article (context)|Article]]
3432 pre-save transform: context links ("pipe trick") with comma in title
3434 pst title=[[Someplace, Somewhere]]
3437 [[Otherplace, Elsewhere|]]
3438 [[Otherplace, Elsewhere, Anywhere|]]
3440 [[Otherplace, Somewhere|Otherplace]]
3441 [[Otherplace, Elsewhere|Otherplace]]
3442 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3446 pre-save transform: context links ("pipe trick") with parens and comma
3448 pst title=[[Someplace (IGNORED), Somewhere]]
3451 [[Otherplace (place), Elsewhere|]]
3453 [[Otherplace, Somewhere|Otherplace]]
3454 [[Otherplace (place), Elsewhere|Otherplace]]
3458 pre-save transform: context links ("pipe trick") with comma and parens
3460 pst title=[[Who, me? (context)]]
3463 [[Me, Myself, and I (1937 song)|]]
3465 [[Yes, you. (context)|Yes, you.]]
3466 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3470 pre-save transform: context links ("pipe trick") with namespace
3472 pst title=[[Ns:Somearticle]]
3476 [[Ns:Article|Article]]
3480 pre-save transform: context links ("pipe trick") with namespace and parens
3482 pst title=[[Ns:Somearticle (context)]]
3486 [[Ns:Article (context)|Article]]
3490 pre-save transform: context links ("pipe trick") with namespace and comma
3492 pst title=[[Ns:Somearticle, Context, Whatever]]
3496 [[Ns:Article, Context, Whatever|Article]]
3500 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3502 pst title=[[Ns:Somearticle, Context (context)]]
3506 [[Ns:Article (context)|Article]]
3510 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3512 pst title=[[Ns:Somearticle (IGNORED), Context]]
3516 [[Ns:Article, Context|Article]]
3520 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
3524 [[Article(context)|]]
3525 [[Bar:Article(context)|]]
3526 [[:Bar:Article(context)|]]
3527 [[|Article(context)]]
3531 [[Article(context)|Article]]
3532 [[Bar:Article(context)|Article]]
3533 [[:Bar:Article(context)|Article]]
3534 [[Article(context)]]
3535 [[Bar:X (Y) Z|X (Y) Z]]
3536 [[:Bar:X (Y) Z|X (Y) Z]]
3540 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
3544 [[Article (context)|]]
3545 [[Bar:Article (context)|]]
3546 [[:Bar:Article (context)|]]
3547 [[|Article (context)]]
3551 [[Article (context)|Article]]
3552 [[Bar:Article (context)|Article]]
3553 [[:Bar:Article (context)|Article]]
3554 [[Article (context)]]
3555 [[Bar:X (Y) Z|X (Y) Z]]
3556 [[:Bar:X (Y) Z|X (Y) Z]]
3560 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
3564 [[Article(context)|]]
3565 [[Bar:Article(context)|]]
3566 [[:Bar:Article(context)|]]
3567 [[|Article(context)]]
3571 [[Article(context)|Article]]
3572 [[Bar:Article(context)|Article]]
3573 [[:Bar:Article(context)|Article]]
3574 [[Article(context)]]
3576 [[:Bar:X(Y)Z|X(Y)Z]]
3580 pre-save transform: trim trailing empty lines
3584 Empty lines are trimmed
3590 Empty lines are trimmed
3594 pre-save transform: Signature expansion
3599 * <noinclude>~~~</noinclude>
3600 * <includeonly>~~~</includeonly>
3601 * <onlyinclude>~~~</onlyinclude>
3603 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
3604 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
3605 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
3606 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
3611 pre-save transform: Signature expansion in nowiki tags (bug 93)
3617 <nowiki>~~~~</nowiki>
3619 <includeonly><nowiki>~~~~</nowiki></includeonly>
3621 <noinclude><nowiki>~~~~</nowiki></noinclude>
3623 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3625 {{subst:Foo}} shall be converted to FOO
3627 As well as inside noinclude/onlyinclude
3628 <noinclude>{{subst:Foo}}</noinclude>
3629 <onlyinclude>{{subst:Foo}}</onlyinclude>
3631 But not inside includeonly
3632 <includeonly>{{subst:Foo}}</includeonly>
3636 <nowiki>~~~~</nowiki>
3638 <includeonly><nowiki>~~~~</nowiki></includeonly>
3640 <noinclude><nowiki>~~~~</nowiki></noinclude>
3642 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3644 FOO shall be converted to FOO
3646 As well as inside noinclude/onlyinclude
3647 <noinclude>FOO</noinclude>
3648 <onlyinclude>FOO</onlyinclude>
3650 But not inside includeonly
3651 <includeonly>{{subst:Foo}}</includeonly>
3655 ### Message transform tests
3658 message transform: magic variables
3668 message transform: should not transform wiki markup
3678 message transform: <noinclude> in transcluded template (bug 4926)
3688 message transform: <onlyinclude> in transcluded template (bug 4926)
3698 {{#special:}} page name, known
3702 {{#special:Recentchanges}}
3704 Special:RecentChanges
3708 {{#special:}} page name with subpage, known
3712 {{#special:Recentchanges/param}}
3714 Special:RecentChanges/param
3718 {{#special:}} page name, unknown
3722 {{#special:foobarnonexistent}}
3724 No such special page
3728 {{#speciale:}} page name, known
3732 {{#speciale:Recentchanges}}
3734 Special:RecentChanges
3738 {{#speciale:}} page name with subpage, known
3742 {{#speciale:Recentchanges/param}}
3744 Special:RecentChanges/param
3748 {{#speciale:}} page name, unknown
3752 {{#speciale:foobarnonexistent}}
3754 No_such_special_page
3763 [[Image:foobar.jpg]]
3765 <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>
3772 [[Image:foobar.jpg|right]]
3774 <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>
3779 Simple image (using File: namespace, now canonical)
3783 <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>
3790 [[Image:foobar.jpg|right|Caption text]]
3792 <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>
3797 Image with link parameter, wiki target
3799 [[Image:foobar.jpg|link=Target page]]
3801 <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>
3806 Image with link parameter, URL target
3808 [[Image:foobar.jpg|link=http://example.com/]]
3810 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3815 Image with link parameter, wgExternalLinkTarget
3817 [[Image:foobar.jpg|link=http://example.com/]]
3819 wgExternalLinkTarget='foobar'
3821 <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>
3826 Image with link parameter, wgExternalLinkTarget, unnamed parameter
3828 [[Image:foobar.jpg|link=http://example.com/|Title]]
3830 wgExternalLinkTarget='foobar'
3832 <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>
3837 Image with empty link parameter
3839 [[Image:foobar.jpg|link=]]
3841 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3846 Image with link parameter (wiki target) and unnamed parameter
3848 [[Image:foobar.jpg|link=Target page|Title]]
3850 <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>
3855 Image with link parameter (URL target) and unnamed parameter
3857 [[Image:foobar.jpg|link=http://example.com/|Title]]
3859 <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>
3864 Thumbnail image with link parameter
3866 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
3868 <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>
3873 Image with frame and link
3875 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3877 <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>
3882 Image with frame and link and explicit alt
3884 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3886 <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>
3891 Image with wiki markup in implicit alt
3893 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3895 <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>
3900 Image with wiki markup in explicit alt
3902 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3904 <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>
3909 Link to image page- image page normally doesn't exists, hence edit link
3910 Add test with existing image page
3911 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3915 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3920 bug 18784 Link to non-existent image page with caption should use caption as link text
3922 [[:Image:test|caption]]
3924 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
3929 Frameless image caption with a free URL
3931 [[Image:foobar.jpg|http://example.com]]
3933 <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>
3938 Thumbnail image caption with a free URL
3940 [[Image:foobar.jpg|thumb|http://example.com]]
3942 <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>
3947 Thumbnail image caption with a free URL and explicit alt
3949 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3951 <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>
3956 BUG 1887: A ISBN with a thumbnail
3958 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3960 <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>
3965 BUG 1887: A RFC with a thumbnail
3967 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3969 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
3974 BUG 1887: A mailto link with a thumbnail
3976 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3978 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
3982 # Pending resolution to bug 368
3984 BUG 648: Frameless image caption with a link
3986 [[Image:foobar.jpg|text with a [[link]] in it]]
3988 <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>
3993 BUG 648: Frameless image caption with a link (suffix)
3995 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3997 <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>
4002 BUG 648: Frameless image caption with an interwiki link
4004 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4006 <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>
4011 BUG 648: Frameless image caption with a piped interwiki link
4013 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4015 <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>
4020 Escape HTML special chars in image alt text
4022 [[Image:foobar.jpg|& < > "]]
4024 <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>
4029 BUG 499: Alt text should have Ӓ, not &1234;
4031 [[Image:foobar.jpg|♀]]
4033 <p><a href="/wiki/File:Foobar.jpg" class="image" title="♀"><img alt="♀" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4038 Broken image caption with link
4040 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4042 <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.
4047 Image caption containing another image
4049 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4051 <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>
4056 Image caption containing a newline
4058 [[Image:Foobar.jpg|This
4061 <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>
4067 Bug 3090: External links other than http: in image captions
4069 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4071 <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>
4078 #REDIRECT [[File:Barfoo.jpg]]
4084 [[Image:Barfoo.jpg]]
4086 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
4091 Missing image with uploads disabled
4095 [[Image:Foobaz.jpg]]
4097 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
4106 Subpage test/subpage
4114 subpage title=[[Subpage test]]
4118 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
4123 Subpage noslash link
4125 subpage title=[[Subpage test]]
4129 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4138 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4143 BUG 561: {{/Subpage}}
4145 subpage title=[[Page]]
4149 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4157 Category:MediaWiki User's Guide
4165 [[:Category:MediaWiki User's Guide]]
4167 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
4176 [[Category:MediaWiki User's Guide]]
4178 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4182 PAGESINCATEGORY invalid title fatal (r33546 fix)
4184 {{PAGESINCATEGORY:<bogus>}}
4191 ### Inter-language links
4194 Inter-language links
4200 [[zh:食品]]
4202 es:Alimento fr:Nourriture zh:食品
4209 Basic section headings
4216 ===Smaller headline===
4219 <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>
4222 <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>
4225 <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>
4231 Section headings with TOC
4234 === Subheadline 1 ===
4235 ===== Skipping a level =====
4236 ====== Skipping a level ======
4240 ===Another headline===
4242 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4244 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4246 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4248 <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>
4250 <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>
4257 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4259 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4264 <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>
4265 <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>
4266 <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>
4267 <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>
4268 <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>
4271 <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>
4275 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4277 Handling of sections up to level 6 and beyond
4280 == Level 2 Heading==
4281 === Level 3 Heading===
4282 ==== Level 4 Heading====
4283 ===== Level 5 Heading=====
4284 ====== Level 6 Heading======
4285 ======= Level 7 Heading=======
4286 ======== Level 8 Heading========
4287 ========= Level 9 Heading=========
4288 ========== Level 10 Heading==========
4290 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4292 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4294 <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>
4296 <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>
4298 <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>
4300 <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>
4302 <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>
4303 <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>
4304 <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>
4305 <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>
4306 <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>
4319 <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>
4320 <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>
4321 <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>
4322 <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>
4323 <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>
4324 <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>
4325 <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>
4326 <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>
4327 <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>
4328 <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>
4333 TOC regression (bug 9764)
4337 ==== title 1.1.1 ====
4342 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4344 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4346 <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>
4348 <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>
4351 <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>
4354 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4356 <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>
4361 <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>
4362 <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>
4363 <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>
4364 <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>
4365 <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>
4366 <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>
4371 TOC with wgMaxTocLevel=3 (bug 6204)
4377 ==== title 1.1.1 ====
4382 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4384 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4386 <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>
4387 <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>
4390 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4392 <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>
4397 <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>
4398 <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>
4399 <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>
4400 <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>
4401 <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>
4402 <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>
4407 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4413 ====Section 1.1.1====
4414 ====Section 1.1.1.1====
4417 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4419 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4421 <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>
4424 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4427 <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>
4428 <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>
4429 <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>
4430 <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>
4431 <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>
4437 Resolving duplicate section names
4442 <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>
4443 <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>
4448 Resolving duplicate section names with differing case (bug 10721)
4453 <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>
4454 <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>
4466 Template with sections, __NOTOC__
4473 <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>
4474 <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>
4475 <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>
4476 <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>
4481 __NOEDITSECTION__ keyword
4487 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4488 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4493 Link inside a section heading
4495 ==Section with a [[Main Page|link]] in it==
4497 <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>
4502 TOC regression (bug 12077)
4509 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4511 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4513 <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>
4516 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4519 <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>
4520 <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>
4521 <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>
4526 BUG 1219 URL next to image (good)
4528 http://example.com [[Image:foobar.jpg]]
4530 <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>
4535 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4538 The line above must have a trailing space!
4541 But just in case it doesn't...
4543 <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>
4544 <p>The line above must have a trailing space!
4546 <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>
4547 <p>But just in case it doesn't...
4552 Header with special characters (bug 25462)
4554 The tooltips shall not show entities to the user (ie. be double escaped)
4571 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4573 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4575 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4576 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4577 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4578 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4579 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4582 <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>
4585 <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>
4588 <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>
4591 <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>
4594 <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>
4600 BUG 1219 URL next to image (broken)
4602 http://example.com[[Image:foobar.jpg]]
4604 <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>
4609 Bug 1186 news: in the middle of text
4611 http://en.wikinews.org/wiki/Wikinews:Workplace
4613 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4619 Namespaced link must have a title
4628 Namespaced link must have a title (bad fragment version)
4630 [[Project:#fragment]]
4632 <p>[[Project:#fragment]]
4638 div with no attributes
4640 <div>HTML rocks</div>
4642 <div>HTML rocks</div>
4647 div with double-quoted attribute
4649 <div id="rock">HTML rocks</div>
4651 <div id="rock">HTML rocks</div>
4656 div with single-quoted attribute
4658 <div id='rock'>HTML rocks</div>
4660 <div id="rock">HTML rocks</div>
4665 div with unquoted attribute
4667 <div id=rock>HTML rocks</div>
4669 <div id="rock">HTML rocks</div>
4674 div with illegal double attributes
4676 <div id="a" id="b">HTML rocks</div>
4678 <div id="b">HTML rocks</div>
4683 HTML multiple attributes correction
4685 <p class="error" class="awesome">Awesome!</p>
4687 <p class="awesome">Awesome!</p>
4692 Table multiple attributes correction
4695 !+ class="error" class="awesome"| status
4700 <th class="awesome"> status
4708 <DIV ID="x">HTML ROCKS</DIV>
4710 <div id="x">HTML ROCKS</div>
4716 text with amp in the middle of nowhere
4720 <p>Remember AT&T?
4725 text with character entity: eacute
4727 I always thought é was a cute letter.
4729 <p>I always thought é was a cute letter.
4734 text with undefined character entity: xacute
4736 I always thought &xacute; was a cute letter.
4738 <p>I always thought &xacute; was a cute letter.
4750 [[Media:Foobar.jpg]]
4752 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4757 Media link with text
4759 [[Media:Foobar.jpg|A neat file to look at]]
4761 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4765 # FIXME: this is still bad HTML tag nesting
4767 Media link with nasty text
4768 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4770 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4772 <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>
4777 Media link to nonexistent file (bug 1702)
4779 [[Media:No such.jpg]]
4781 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4786 Image link to nonexistent file (bug 1850 - good)
4788 [[Image:No such.jpg]]
4790 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4795 :Image link to nonexistent file (bug 1850 - bad)
4797 [[:Image:No such.jpg]]
4799 <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>
4806 Character reference normalization in link text (bug 1938)
4808 [[Main Page|this&that]]
4810 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4817 Test for unicode normalization
4819 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4823 (bug 19451) Links should refer to the normalized form.
4831 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4832 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4833 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4834 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4835 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4840 Empty attribute crash test (bug 2067)
4842 <font color="">foo</font>
4844 <p><font color="">foo</font>
4849 Empty attribute crash test single-quotes (bug 2067)
4851 <font color=''>foo</font>
4853 <p><font color="">foo</font>
4858 Attribute test: equals, then nothing
4860 <font color=>foo</font>
4867 Attribute test: unquoted value
4869 <font color=x>foo</font>
4871 <p><font color="x">foo</font>
4876 Attribute test: unquoted but illegal value (hash)
4878 <font color=#x>foo</font>
4880 <p><font color="#x">foo</font>
4885 Attribute test: no value
4887 <font color>foo</font>
4889 <p><font color="color">foo</font>
4894 Bug 2095: link with three closing brackets
4898 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
4903 Bug 2095: link with pipe and three closing brackets
4907 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4912 Bug 2095: link with pipe and three closing brackets, version 2
4914 [[Main Page|[http://example.com/]]]
4916 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4926 Template:Dangerous attribute
4928 " onmouseover="alert(document.cookie)
4932 Template:Dangerous style attribute
4934 border-size: expression(alert(document.cookie))
4940 <div style="float: right; {{{1}}}">Magic div</div>
4944 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4946 <div title="{{test}}"></div>
4948 <div title="This is a test template"></div>
4953 Bug 2304: HTML attribute safety (dangerous template; 2309)
4955 <div title="{{dangerous attribute}}"></div>
4957 <div title=""></div>
4962 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4964 <div style="{{dangerous style attribute}}"></div>
4966 <div style="/* insecure input */"></div>
4971 Bug 2304: HTML attribute safety (safe parameter; 2309)
4973 {{div style|width: 200px}}
4975 <div style="float: right; width: 200px">Magic div</div>
4980 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4982 {{div style|width: expression(alert(document.cookie))}}
4984 <div style="/* insecure input */">Magic div</div>
4989 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4991 {{div style|"><script>alert(document.cookie)</script>}}
4993 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4998 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5000 {{div style|" ><script>alert(document.cookie)</script>}}
5002 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5007 Bug 2304: HTML attribute safety (link)
5009 <div title="[[Main Page]]"></div>
5011 <div title="[[Main Page]]"></div>
5016 Bug 2304: HTML attribute safety (italics)
5018 <div title="''foobar''"></div>
5020 <div title="''foobar''"></div>
5025 Bug 2304: HTML attribute safety (bold)
5027 <div title="'''foobar'''"></div>
5029 <div title="'''foobar'''"></div>
5035 Bug 2304: HTML attribute safety (ISBN)
5037 <div title="ISBN 1234567890"></div>
5039 <div title="ISBN 1234567890"></div>
5044 Bug 2304: HTML attribute safety (RFC)
5046 <div title="RFC 1234"></div>
5048 <div title="RFC 1234"></div>
5053 Bug 2304: HTML attribute safety (PMID)
5055 <div title="PMID 1234567890"></div>
5057 <div title="PMID 1234567890"></div>
5062 Bug 2304: HTML attribute safety (web link)
5064 <div title="http://example.com/"></div>
5066 <div title="http://example.com/"></div>
5071 Bug 2304: HTML attribute safety (named web link)
5073 <div title="[http://example.com/ link]"></div>
5075 <div title="[http://example.com/ link]"></div>
5080 Bug 3244: HTML attribute safety (extension; safe)
5082 <div style="<nowiki>background:blue</nowiki>"></div>
5084 <div style="background:blue"></div>
5089 Bug 3244: HTML attribute safety (extension; unsafe)
5091 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
5093 <div style="/* insecure input */"></div>
5097 # More MSIE fun discovered by Tom Gilder
5100 MSIE CSS safety test: spurious slash
5102 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
5104 <div style="/* insecure input */">evil</div>
5109 MSIE CSS safety test: hex code
5111 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
5113 <div style="/* insecure input */">evil</div>
5118 MSIE CSS safety test: comment in url
5120 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
5122 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
5127 MSIE CSS safety test: comment in expression
5129 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
5131 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5137 Table attribute legitimate extension
5140 !+ style="<nowiki>color:blue</nowiki>"| status
5145 <th style="color:blue"> status
5151 Table attribute safety
5154 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5159 <th style="/* insecure input */"> status
5165 CSS line continuation 1
5167 <div style="background-image: u\ rl(test.jpg);"></div>
5169 <div style="/* insecure input */"></div>
5174 CSS line continuation 2
5176 <div style="background-image: u\ rl(test.jpg); "></div>
5178 <div style="/* insecure input */"></div>
5189 Expansion of multi-line templates in attribute values (bug 6255)
5191 <div style="background: {{identity|#00FF00}}">-</div>
5193 <div style="background: #00FF00">-</div>
5199 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5201 <div style="background:
5204 <div style="background: #00FF00">-</div>
5209 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5211 <div style="background: #00FF00">-</div>
5213 <div style="background: #00FF00">-</div>
5218 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5221 Parser hook: empty input
5234 Parser hook: empty input using terminated empty elements
5247 Parser hook: empty input using terminated empty elements (space before)
5260 Parser hook: basic input
5274 Parser hook: case insensitive
5288 Parser hook: case insensitive, redux
5301 Parser hook: nested tags
5305 <tag><tag></tag></tag>
5316 Parser hook: basic arguments
5318 <tag width=200 height = "100" depth = '50' square></tag>
5337 Parser hook: argument containing a forward slash (bug 5344)
5339 <tag filename='/tmp/bla'></tag>
5345 string(8) "/tmp/bla"
5352 Parser hook: empty input using terminated empty elements (bug 2374)
5366 # </tag> should be output literally since there is no matching tag that begins it
5368 Parser hook: basic arguments using terminated empty elements (bug 2374)
5370 <tag width=200 height = "100" depth = '50' square/>
5393 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5397 Parser hook: static parser hook not inside a comment
5399 <statictag>hello, world</statictag>
5400 <statictag action=flush/>
5408 Parser hook: static parser hook inside a comment
5410 <!-- <statictag>hello, world</statictag> -->
5411 <statictag action=flush/>
5417 # Nested template calls; this case was broken by Parser.php rev 1.506,
5421 Template:One-parameter
5423 (My parameter is: {{{1}}})
5427 Template:Map-one-parameter
5433 Nested template calls
5435 {{Map-one-parameter|One-parameter|param}}
5437 <p>(My parameter is: param)
5446 Sanitizer: Closing of open tags
5448 <s></s><table></table>
5450 <s></s><table></table>
5455 Sanitizer: Closing of open but not closed tags
5464 Sanitizer: Closing of closed but not open tags
5473 Sanitizer: Closing of closed but not open table tags
5475 Table not started</td></tr></table>
5477 <p>Table not started</td></tr></table>
5482 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5484 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5486 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5491 Sanitizer: Validating the contents of the id attribute (bug 4515)
5497 Something, but definitely not <br id="9" />...
5501 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5505 <br id="foo" /><br id="foo" />
5507 Something need to be done. foo-2 ?
5511 Language converter: output gets cut off unexpectedly (bug 5757)
5515 this bit is safe: }-
5517 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5519 then we get cut off here: }-
5521 all additional text is vanished
5523 <p>this bit is safe: }-
5524 </p><p>but if we add a conversion instance: xxx
5525 </p><p>then we get cut off here: }-
5526 </p><p>all additional text is vanished
5531 Self closed html pairs (bug 5487)
5534 <center><font id="bug" />Centered text</center>
5535 <div><font id="bug2" />In div text</div>
5537 <center><font id="bug" />Centered text</center>
5538 <div><font id="bug2" />In div text</div>
5547 Punctuation: nbsp before exclamation
5551 <p>C'est grave !
5556 Punctuation: CSS !important (bug 11874)
5558 <div style="width:50% !important">important</div>
5560 <div style="width:50% !important">important</div>
5565 Punctuation: CSS ! important (bug 11874; with space after)
5567 <div style="width:50% ! important">important</div>
5569 <div style="width:50% ! important">important</div>
5575 HTML bullet list, closed tags (bug 5497)
5590 HTML bullet list, unclosed tags (bug 5497)
5607 HTML ordered list, closed tags (bug 5497)
5622 HTML ordered list, unclosed tags (bug 5497)
5639 HTML nested bullet list, closed tags (bug 5497)
5664 HTML nested bullet list, open tags (bug 5497)
5689 HTML nested ordered list, closed tags (bug 5497)
5714 HTML nested ordered list, open tags (bug 5497)
5739 HTML ordered list item with parameters oddity
5741 <ol><li id="fragment">One</li></ol>
5743 <ol><li id="fragment">One</li></ol>
5748 bug 5918: autonumbering
5750 [http://first/] [http://second] [ftp://ftp]
5754 [mailto:enclosed@mail.tld With target]
5756 [mailto:enclosed@mail.tld]
5758 mailto:inline@mail.tld
5760 <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>
5761 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
5762 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
5763 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
5764 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
5770 # Security and HTML correctness
5771 # From Nick Jenkins' fuzz testing
5775 Fuzz testing: Parser13
5790 Fuzz testing: Parser14
5795 <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>
5796 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5798 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5805 Fuzz testing: Parser14-table
5810 <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>
5811 <table style="__TOC__">
5817 # Known to produce bogus xml (extra </td>)
5819 Fuzz testing: Parser16
5839 Fuzz testing: Parser21
5842 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5847 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5857 Fuzz testing: Parser22
5859 http://===r:::https://b
5863 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
5871 # Known to produce bad XML for now
5873 Fuzz testing: Parser24
5880 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5881 <br style="onmouseover='alert(document.cookie);' " />
5883 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5888 <u class="|">}}}} >
5889 <br style="onmouseover='alert(document.cookie);'" />
5891 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5900 # Note: the current result listed for this is not what the original one was,
5901 # but the original bug was JavaScript injection, which is fixed in any case.
5902 # It's not clear that the original result listed was any more correct than the
5903 # current one. Original result:
5906 # <li class="||">
5907 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5909 Fuzz testing: Parser25 (bug 6055)
5915 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5917 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5922 Fuzz testing: URL adjacent extension (with space, clean)
5925 http://example.com <nowiki>junk</nowiki>
5927 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
5932 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5935 http://example.com<nowiki>junk</nowiki>
5937 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
5942 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5945 http://example.com<pre>junk</pre>
5947 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
5952 Fuzz testing: image with bogus manual thumbnail
5954 [[Image:foobar.jpg|thumbnail= ]]
5956 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5961 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5963 <pre dir=" "></pre>
5965 <pre dir=" "></pre>
5970 Parsing optional HTML elements (Bug 6171)
5975 <td> Some tabular data</td>
5976 <td> More tabular data ...
5977 <td> And yet som tabular data</td>
5983 <td> Some tabular data</td>
5984 <td> More tabular data ...
5985 </td><td> And yet som tabular data</td>
5992 Correct handling of <td>, <tr> (Bug 6171)
5997 <td> Some tabular data</td>
5998 <td> More tabular data ...</td>
5999 <td> And yet som tabular data</td>
6005 <td> Some tabular data</td>
6006 <td> More tabular data ...</td>
6007 <td> And yet som tabular data</td>
6015 Parsing crashing regression (fr:JavaScript)
6019 <p></body></x>
6024 Inline wiki vs wiki block nesting
6030 <p><b>Bold paragraph</b>
6031 </p><p>New wiki paragraph
6036 Inline HTML vs wiki block nesting
6044 <p><b>Bold paragraph</b>
6045 </p><p>New wiki paragraph
6049 # Original result was this:
6050 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6052 # While that might be marginally more intuitive, maybe, the six-apostrophe
6053 # construct is clearly pathological and the result stated here (which is what
6054 # the parser actually does) is about as reasonable as anything.
6056 Mixing markup for italics and bold
6059 '''bold''''''bold''bolditalics'''''
6061 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
6069 Article for special page transclusion test
6073 Special page transclusion
6076 {{Special:Prefixindex/Xyzzyx}}
6078 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6083 Special page transclusion twice (bug 5021)
6086 {{Special:Prefixindex/Xyzzyx}}
6087 {{Special:Prefixindex/Xyzzyx}}
6089 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6090 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6095 Transclusion of default MediaWiki message
6097 {{MediaWiki:Mainpage}}
6104 Transclusion of nonexistent MediaWiki message
6106 {{MediaWiki:Mainpagexxx}}
6108 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6113 Transclusion of MediaWiki message with underscore
6115 {{MediaWiki:history_short}}
6122 Transclusion of MediaWiki message with space
6124 {{MediaWiki:history short}}
6131 Invalid header with following text
6141 Section extraction test (section 0)
6161 Section extraction test (section 1)
6183 Section extraction test (section 2)
6204 Section extraction test (section 3)
6224 Section extraction test (section 4)
6248 Section extraction test (section 5)
6268 Section extraction test (section 6)
6289 Section extraction test (section 7)
6309 Section extraction test (section 8)
6329 Section extraction test (section 9)
6350 Section extraction test (section 10)
6370 Section extraction test (nonexistent section 11)
6389 Section extraction test with bogus heading (section 1)
6394 ==bogus== not a legal section
6398 ==bogus== not a legal section
6402 Section extraction test with bogus heading (section 2)
6407 ==bogus== not a legal section
6414 Section extraction test with comment after heading (section 1)
6426 Section extraction test with comment after heading (section 2)
6438 Section extraction test with bogus <nowiki> heading (section 1)
6443 ==bogus== <nowiki>not a legal section</nowiki>
6447 ==bogus== <nowiki>not a legal section</nowiki>
6451 Section extraction test with bogus <nowiki> heading (section 2)
6456 ==bogus== <nowiki>not a legal section</nowiki>
6463 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6464 # instead of respecting commented sections
6466 Section extraction prefixed by comment (section 1)
6477 Section extraction prefixed by comment (section 2)
6488 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6489 # instead of respecting HTML-style headings
6491 Section extraction, mixed wiki and html (section 1)
6507 Section extraction, mixed wiki and html (section 2)
6523 # Formerly testing for bug 3342
6525 Section extraction, heading surrounded by <noinclude>
6529 <noinclude>==unmarked==</noinclude>
6535 # Test behaviour of bug 19910
6537 Sectiion with all-equals
6542 The line above must have a trailing space
6545 But just in case it doesn't...
6549 But just in case it doesn't...
6553 Section replacement test (section 0)
6584 Section replacement test (section 1)
6613 Section replacement test (section 2)
6643 Section replacement test (section 3)
6674 Section replacement test (section 4)
6701 Section replacement test (section 5)
6732 Section replacement test (section 6)
6762 Section replacement test (section 7)
6793 Section replacement test (section 8)
6824 Section replacement test (section 9)
6853 Section replacement test (section 10)
6883 Section replacement test with initial whitespace (bug 13728)
6887 Preformatted initial line
6891 Preformatted initial line
6898 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6910 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6923 Section extraction, <pre> around bogus header (bug 10309)
6940 Section replacement, <pre> around bogus header (bug 10309)
6942 noxml replace=2,"xxx"
6963 Handling of 
 in URLs
6967 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
6974 5 quotes, code coverage +1 line
6981 Special:Search page linking.
6985 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
7000 * {{SUBJECTPAGENAME}}
7001 * {{SUBJECTPAGENAMEE}}
7008 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7010 <ul><li> Parser test
7011 </li><li> Parser test
7012 </li><li> Parser test
7013 </li><li> Parser_test
7014 </li><li> Parser test
7015 </li><li> Parser_test
7016 </li><li> Talk:Parser test
7017 </li><li> Talk:Parser_test
7018 </li><li> Parser test
7019 </li><li> Parser_test
7026 </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>
7030 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
7040 image4 |300px| centre
7041 image5.svg| http://///////
7046 <ul class="gallery">
7047 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7048 <div style="height: 150px;">Image1.png</div>
7049 <div class="gallerytext">
7052 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7053 <div style="height: 150px;">Image2.gif</div>
7054 <div class="gallerytext">
7059 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7060 <div style="height: 150px;">Image3</div>
7061 <div class="gallerytext">
7064 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7065 <div style="height: 150px;">Image4</div>
7066 <div class="gallerytext">
7071 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7072 <div style="height: 150px;">Image5.svg</div>
7073 <div class="gallerytext">
7074 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
7078 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7079 <div style="height: 150px;">* image6</div>
7080 <div class="gallerytext">
7088 Gallery (with options)
7090 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
7091 File:Nonexistant.jpg|caption
7092 File:Nonexistant.jpg
7093 image:foobar.jpg|some '''caption''' [[Main Page]]
7095 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
7098 <ul class="gallery" style="max-width: 226px;_width: 226px;">
7099 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
7100 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7101 <div style="height: 70px;">Nonexistant.jpg</div>
7102 <div class="gallerytext">
7107 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7108 <div style="height: 70px;">Nonexistant.jpg</div>
7109 <div class="gallerytext">
7112 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7113 <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>
7114 <div class="gallerytext">
7115 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7119 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7120 <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>
7121 <div class="gallerytext">
7124 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7125 <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>
7126 <div class="gallerytext">
7136 Gallery with wikitext inside caption
7139 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
7140 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
7143 <ul class="gallery">
7144 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7145 <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>
7146 <div class="gallerytext">
7147 <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>
7151 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7152 <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>
7153 <div class="gallerytext">
7154 <p>This is a test template
7163 gallery (with showfilename option)
7165 <gallery showfilename>
7166 File:Nonexistant.jpg|caption
7167 File:Nonexistant.jpg
7168 image:foobar.jpg|some '''caption''' [[Main Page]]
7172 <ul class="gallery">
7173 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7174 <div style="height: 150px;">Nonexistant.jpg</div>
7175 <div class="gallerytext">
7176 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7181 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7182 <div style="height: 150px;">Nonexistant.jpg</div>
7183 <div class="gallerytext">
7184 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7188 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7189 <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>
7190 <div class="gallerytext">
7191 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7192 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7196 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7197 <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>
7198 <div class="gallerytext">
7199 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7208 Gallery (with namespace-less filenames)
7211 File:Nonexistant.jpg
7217 <ul class="gallery">
7218 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7219 <div style="height: 150px;">Nonexistant.jpg</div>
7220 <div class="gallerytext">
7223 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7224 <div style="height: 150px;">Nonexistant.jpg</div>
7225 <div class="gallerytext">
7228 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7229 <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>
7230 <div class="gallerytext">
7233 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7234 <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>
7235 <div class="gallerytext">
7243 HTML Hex character encoding (spells the word "JavaScript")
7245 JavaScript
7247 <p>JavaScript
7252 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7256 <p>&#xsee;&#XSEE;
7261 HTML Hex character encoding mixed case
7270 __FORCETOC__ override
7282 ISBN 978-0-1234-56 789
7284 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7289 ISBN followed by 5 spaces
7300 ISBN ISBN 1234567890
7302 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7307 Bug 22905: <abbr> followed by ISBN followed by </a>
7309 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7311 <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>
7320 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
7325 Double RFC with a wiki link
7329 <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>
7338 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
7343 Centre-aligned image
7345 [[Image:foobar.jpg|centre]]
7347 <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>
7354 [[Image:foobar.jpg|none]]
7356 <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>
7361 Width + Height sized image (using px) (height is ignored)
7363 [[Image:foobar.jpg|640x480px]]
7365 <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>
7370 Width-sized image (using px, no following whitespace)
7372 [[Image:foobar.jpg|640px]]
7374 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="640" height="73" /></a>
7379 Width-sized image (using px, with following whitespace - test regression from r39467)
7381 [[Image:foobar.jpg|640px ]]
7383 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="640" height="73" /></a>
7388 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7390 [[Image:foobar.jpg| 640px]]
7392 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="640" height="73" /></a>
7397 Another italics / bold test
7405 # Note the results may be incorrect, as parserTest output included this:
7406 # XML error: Mismatched tag at byte 6120:
7407 # ...<dd> </dt></dl> </dd...
7415 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7426 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7428 Images with the "|" character in the comment
7430 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7432 <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>
7437 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7439 <html><script>alert(1);</script></html>
7441 <p><html><script>alert(1);</script></html>
7446 HTML with raw HTML ($wgRawHtml==true)
7450 <html><script>alert(1);</script></html>
7452 <p><script>alert(1);</script>
7457 Parents of subpages, one level up
7459 subpage title=[[Subpage test/L1/L2/L3]]
7463 <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>
7469 Parents of subpages, one level up, not named
7471 subpage title=[[Subpage test/L1/L2/L3]]
7475 <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>
7482 Parents of subpages, two levels up
7484 subpage title=[[Subpage test/L1/L2/L3]]
7490 <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
7491 </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>
7496 Parents of subpages, two levels up, without trailing slash or name.
7498 subpage title=[[Subpage test/L1/L2/L3]]
7507 Parents of subpages, two levels up, with lots of extra trailing slashes.
7509 subpage title=[[Subpage test/L1/L2/L3]]
7513 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7518 Definition list code coverage
7524 <dl><dt> title  </dt><dd> def
7525 </dd><dt> title </dt><dd> def
7526 </dd><dt>title</dt><dd> def
7532 Don't fall for the self-closing div
7534 <div>hello world</div/>
7536 <div>hello world</div>
7545 <p>[[:Template:Msg]]
7554 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7558 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7560 Always escape literal '>' in output, not just after '<'
7574 <p>This is a test template
7575 This is a test template
7587 Inclusion of !userCanEdit() content
7591 <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>
7597 Out-of-order TOC heading levels
7606 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7608 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7610 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7611 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7614 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7616 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7617 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7622 <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>
7623 <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>
7624 <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>
7625 <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>
7626 <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>
7627 <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>
7633 ISBN with a dummy number
7643 ISBN with space-delimited number
7647 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7653 ISBN with multiple spaces, no number
7672 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7673 </p><p>ISBN 12345678901
7679 ISBN with trailing year (bug 8110)
7681 ISBN 1-234-56789-0 - 2006
7683 ISBN 1 234 56789 0 - 2006
7685 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7686 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7694 {{anchorencode:foo bar©#%n}}
7696 <p>foo_bar.C2.A9.23.25n
7701 anchorencode trims spaces
7703 {{anchorencode: __pretty__please__}}
7710 anchorencode deals with links
7712 {{anchorencode: [[hello|world]] [[hi]]}}
7719 anchorencode deals with templates
7721 {{anchorencode: {{Foo}} }}
7728 anchorencode encodes like the TOC generator: (bug 18431)
7730 === _ +:.3A%3A&&]] ===
7731 {{anchorencode: _ +:.3A%3A&&]] }}
7734 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7735 <p>.2B:.3A.253A.26.26.5D.5D
7739 # Expected output in the following test is not necessarily expected (there
7740 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7741 # only testing for well-formedness.
7743 Bug 6200: blockquotes and paragraph formatting
7763 Bug 8293: Use of center tag ruins paragraph formatting
7785 ### Language variants related tests
7788 Self-link in language variants
7790 title=[[Dunav]] language=sr
7792 Both [[Dunav]] and [[Дунав]] are names for this river.
7794 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7800 Link to pages in language variants
7804 Main Page can be written as [[Маин Паге]]
7806 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7812 Multiple links to pages in language variants
7816 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7818 <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>.
7824 Simple template in language variants
7830 <p>This is a test template
7836 Template with explicit namespace in language variants
7842 <p>This is a test template
7848 Basic test for template parameter in language variants
7852 {{парамтест|param=foo}}
7854 <p>This is a test template with parameter foo
7860 Simple category in language variants
7864 [[Category:МедиаWики Усер'с Гуиде]]
7866 <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>
7871 Stripping -{}- tags (language variants)
7875 Latin proverb: -{Ne nuntium necare}-
7877 <p>Latin proverb: Ne nuntium necare
7883 Prevent conversion with -{}- tags (language variants)
7885 language=sr variant=sr-ec
7887 Latinski: -{Ne nuntium necare}-
7889 <p>Латински: Ne nuntium necare
7895 Prevent conversion of text with -{}- tags (language variants)
7897 language=sr variant=sr-ec
7899 Latinski: -{Ne nuntium necare}-
7901 <p>Латински: Ne nuntium necare
7907 Prevent conversion of links with -{}- tags (language variants)
7909 language=sr variant=sr-ec
7913 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7919 -{}- tags within headlines (within html for parserConvert())
7921 language=sr variant=sr-ec
7925 <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>
7931 Explicit definition of language variant alternatives
7933 language=zh variant=zh-tw
7935 -{zh:China;zh-tw:Taiwan}-, not China
7937 <p>Taiwan, not China
7943 Explicit session-wise language variant mapping (A flag and - flag)
7945 language=zh variant=zh-tw
7947 Taiwan is not China.
7948 But -{A|zh:China;zh-tw:Taiwan}- is China,
7949 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
7950 and -{China}- is China.
7952 <p>Taiwan is not China.
7953 But Taiwan is Taiwan,
7954 (This should be stripped!)
7960 Explicit session-wise language variant mapping (H flag for hide)
7962 language=zh variant=zh-tw
7964 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
7967 <p>(This should be stripped!)
7973 Adding explicit conversion rule for title (T flag)
7975 language=zh variant=zh-tw showtitle
7977 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7980 <p>Should be stripped!
7985 Testing that changing the language variant here in the tests actually works
7987 language=zh variant=zh showtitle
7989 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7992 <p>Should be stripped!
7997 Bug 24072: more test on conversion rule for title
7999 language=zh variant=zh-tw showtitle
8001 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8002 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8005 <p>This should be stripped!
8006 This won't take interferes with the title rule.
8011 Raw output of variant escape tags (R flag)
8013 language=zh variant=zh-tw
8015 Raw: -{R|zh:China;zh-tw:Taiwan}-
8017 <p>Raw: zh:China;zh-tw:Taiwan
8022 Nested using of manual convert syntax
8024 language=zh variant=zh-hk
8026 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8028 <p>Nested: Hello Hong Kong!
8033 Do not convert roman numbers to language variants
8035 language=sr variant=sr-ec
8039 <p>Фридрих IV је цар.
8044 Unclosed language converter markup "-{"
8055 Don't convert raw rule "-{R|=>}-" to "=>"
8072 Bug 529: Uncovered bullet
8083 Bug 529: Uncovered table already at line-start
8106 Bug 529: Uncovered bullet in parser function result
8108 * Foo {{lc:{{bullet}} }}
8117 Bug 5678: Double-parsed template argument
8119 {{lc:{{{1}}}|hello}}
8126 Bug 5678: Double-parsed template invocation
8128 {{lc:{{paramtest {{!}} param = hello }} }}
8130 <p>{{paramtest | param = hello }}
8135 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8161 Morwen/13: Unclosed link followed by heading
8168 <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>
8173 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8180 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8185 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8192 <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>
8207 Paragraphs inside divs (no extra line breaks)
8219 Paragraphs inside divs (extra line break on open)
8234 Paragraphs inside divs (extra line break on close)
8249 Paragraphs inside divs (extra line break on open and close)
8266 Nesting tags, paragraphs on lines which begin with <div>
8270 <div></div><strong>A
8279 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8281 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8285 <blockquote>Line one
8287 Line two</blockquote>
8289 <blockquote>Line one
8290 Line two</blockquote>
8295 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8302 Line two</blockquote>
8307 Line two</blockquote>
8312 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8316 <blockquote>Line one
8321 <blockquote>Line one
8329 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8348 Paragraphs inside blockquotes/divs (no extra line breaks)
8350 <blockquote><div>Line one
8352 Line two</div></blockquote>
8354 <blockquote><div>Line one
8355 Line two</div></blockquote>
8360 Paragraphs inside blockquotes/divs (extra line break on open)
8365 Line two</div></blockquote>
8370 Line two</div></blockquote>
8375 Paragraphs inside blockquotes/divs (extra line break on close)
8377 <blockquote><div>Line one
8382 <blockquote><div>Line one
8390 Paragraphs inside blockquotes/divs (extra line break on open and close)
8407 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8409 wgLinkHolderBatchSize=0
8415 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
8416 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
8417 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
8422 Free external link invading image caption
8424 [[Image:Foobar.jpg|thumb|http://x|hello]]
8426 <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>
8431 Bug 15196: localised external link numbers
8435 [http://en.wikipedia.org/]
8437 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8442 Multibyte character in padleft
8444 {{padleft:-Hello|7|Æ}}
8451 Multibyte character in padright
8453 {{padright:Hello-|7|Æ}}
8466 <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>
8471 formatdate parser function
8473 {{#formatdate:2009-03-24}}
8475 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8480 formatdate parser function, with default format
8482 {{#formatdate:2009-03-24|mdy}}
8484 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8489 Linked date with autoformatting disabled
8491 wgUseDynamicDates=false
8495 <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>
8500 Spacing of numbers in formatted dates
8502 {{#formatdate:January 15}}
8504 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8509 Spacing of numbers in formatted dates (linked)
8511 wgUseDynamicDates=true
8515 <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>
8528 Edit comment with link
8532 I like the [[Main Page]] a lot
8534 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
8538 Edit comment with link and link text
8542 I like the [[Main Page|best pages]] a lot
8544 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8548 Edit comment with link and link text with suffix
8552 I like the [[Main Page|best page]]s a lot
8554 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8558 Edit comment with section link (non-local, eg in history list)
8560 comment title=[[Main Page]]
8562 /* External links */ removed bogus entries
8564 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
8568 Edit comment with section link and text before it (non-local, eg in history list)
8570 comment title=[[Main Page]]
8572 pre-comment text /* External links */ removed bogus entries
8574 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>
8578 Edit comment with section link (local, eg in diff view)
8580 comment local title=[[Main Page]]
8582 /* External links */ removed bogus entries
8584 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
8588 Edit comment with subpage link (bug 14080)
8592 title=[[Subpage test]]
8594 Poked at a [[/subpage]] here...
8596 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8600 Edit comment with subpage link and link text (bug 14080)
8604 title=[[Subpage test]]
8606 Poked at a [[/subpage|neat little page]] here...
8608 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8612 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8615 title=[[Subpage test]]
8617 Poked at a [[/subpage]] here...
8619 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8623 Edit comment with bare anchor link (local, as on diff)
8631 <a href="#section">#section</a>
8635 Edit comment with bare anchor link (non-local, as on history)
8642 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8646 Anchor starting with underscore
8650 <p><a href="#_ref">One</a>
8655 Id starting with underscore
8657 <div id="_ref"></div>
8659 <div id="_ref"></div>
8664 Space normalisation on autocomment (bug 22784)
8669 /* __hello__world__ */
8671 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
8675 percent-encoding and + signs in comments (Bug 26410)
8679 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8681 <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>
8685 Bad images - basic functionality
8694 Bad images - bug 16039: text after bad image disappears
8708 Verify that displaytitle works (bug #22501) no displaytitle
8712 wgAllowDisplayTitle=true
8713 wgRestrictDisplayTitle=false
8715 this is not the the title
8718 <p>this is not the the title
8723 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8728 wgAllowDisplayTitle=true
8729 wgRestrictDisplayTitle=false
8731 this is not the the title
8732 {{DISPLAYTITLE:whatever}}
8735 <p>this is not the the title
8740 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8745 wgAllowDisplayTitle=true
8746 wgRestrictDisplayTitle=true
8748 this is not the the title
8749 {{DISPLAYTITLE:whatever}}
8752 <p>this is not the the title
8757 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8762 wgAllowDisplayTitle=true
8763 wgRestrictDisplayTitle=true
8765 this is not the the title
8766 {{DISPLAYTITLE:screen}}
8769 <p>this is not the the title
8774 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8779 wgAllowDisplayTitle=false
8781 this is not the the title
8782 {{DISPLAYTITLE:screen}}
8785 <p>this is not the the title
8786 <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>
8791 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8796 wgAllowDisplayTitle=false
8798 this is not the the title
8801 <p>this is not the the title
8806 preload: check <noinclude> and <includeonly>
8810 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8816 preload: check <onlyinclude>
8820 Goodbye <onlyinclude>Hello world</onlyinclude>
8826 preload: can pass tags through if we want to
8830 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8832 <includeonly>Hello world</includeonly>
8836 preload: check that it doesn't try to do tricks
8840 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8842 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8846 Play a bit with r67090 and bug 3158
8850 <div style="width:50% !important"> </div>
8851 <div style="width:50% !important"> </div>
8852 <div style="width:50% !important"> </div>
8853 <div style="border : solid;"> </div>
8855 <div style="width:50% !important"> </div>
8856 <div style="width:50% !important"> </div>
8857 <div style="width:50% !important"> </div>
8858 <div style="border : solid;"> </div>
8863 HTML5 data attributes
8865 <span data-foo="bar">Baz</span>
8866 <p data-abc-def_hij="">Quuz</p>
8868 <p><span data-foo="bar">Baz</span>
8870 <p data-abc-def_hij="">Quuz</p>
8875 percent-encoding and + signs in internal links (Bug 26410)
8877 [[User:+%]] [[Page+title%]]
8878 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
8879 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
8880 [[%33%45]] [[%33%45+]]
8882 <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>
8883 <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>
8884 <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>
8885 <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>
8890 Special characters in embedded file links (bug 27679)
8892 [[File:Contains & ampersand.jpg]]
8893 [[File:Does not exist.jpg|Title with & ampersand]]
8895 <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>
8896 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
8902 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
8904 Text's been normalized?
8906 <p>Text's been normalized?
8911 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
8913 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
8915 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
8920 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
8922 [http://www.example.org/ ideograms]
8924 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
8929 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
8931 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
8933 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
8957 Bug 31098 Template which includes system messages which includes the template
8961 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
8962 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
8967 Deprecated presentational attributes are converted to css
8970 | valign=top align=left width=100 height=25% | Asdf
8972 <ul type="disc"></ul>
8976 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
8978 <ul style="list-style-type: disc;"></ul>
8983 Bug31490 Turkish: ucfirst 'blah'
8994 Bug31490 Turkish: ucfirst 'ix'
9005 Bug31490 Turkish: lcfirst 'BLAH'
9016 Bug31490 Turkish: ucfırst (with a dotless i)
9022 <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>
9027 Bug31490 ucfırst (with a dotless i) with English language
9033 <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>
9038 Bug 26375: TOC with italics
9043 == ''Lost'' episodes ==
9045 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9047 <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>
9050 <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>
9055 Bug 26375: TOC with bold
9060 == '''should be bold''' then normal text ==
9062 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9064 <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>
9067 <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>
9072 Bug 33845: Headings become cursive in TOC when they contain an image
9077 == Image [[Image:foobar.jpg]] ==
9079 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9081 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
9084 <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>
9089 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
9094 == <blockquote>Quote</blockquote> ==
9096 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9098 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
9101 <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>
9106 Unclosed tags in TOC
9112 <small>Hanc marginis exiguitas non caperet.</small>
9115 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9117 <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>
9120 <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>
9121 <p><small>Hanc marginis exiguitas non caperet.</small>
9127 Multiple tags in TOC
9130 == <i>Foo</i> <b>Bar</b> ==
9132 == <i>Foo</i> <blockquote>Bar</blockquote> ==
9134 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9136 <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>
9137 <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>
9140 <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>
9141 <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>
9146 Tags with parameters in TOC
9149 == <sup class="in-h2">Hello</sup> ==
9151 == <sup class="a > b">Evilbye</sup> ==
9153 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9155 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
9156 <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>
9159 <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>
9160 <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>
9167 == {{int:headline_sample}} ==
9171 Bug 32057: Title needed when expanding <h> nodes.
9177 <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>
9182 Strip marker in urlencode
9184 {{urlencode:x<nowiki/>y}}
9185 {{urlencode:x<nowiki/>y|wiki}}
9186 {{urlencode:x<nowiki/>y|path}}
9213 Strip marker in formatNum
9215 {{formatnum:1<nowiki/>2}}
9216 {{formatnum:1<nowiki/>2|R}}
9224 Strip marker in grammar
9228 {{grammar:elative|foo<nowiki/>bar}}
9235 Strip marker in padleft
9237 {{padleft:|2|x<nowiki/>y}}
9244 Strip marker in padright
9246 {{padright:|2|x<nowiki/>y}}
9253 Strip marker in anchorencode
9255 {{anchorencode:x<nowiki/>y}}
9262 nowiki inside link inside heading (bug 18295)
9264 ==[[foo|x<nowiki>y</nowiki>z]]==
9266 <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>
9271 new support for bdi element (bug 31817)
9273 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
9275 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
9280 Ignore pipe between table row attributes
9284 |- id=foo | style='color: red'
9292 <tr id="foo" style="color: red">
9299 Gallery override link with WikiLink (bug 34852)
9302 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
9305 <ul class="gallery">
9306 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9307 <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>
9308 <div class="gallerytext">
9318 Gallery override link with absolute external link (bug 34852)
9321 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
9324 <ul class="gallery">
9325 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9326 <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>
9327 <div class="gallerytext">
9337 Gallery override link with malicious javascript (bug 34852)
9340 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
9343 <ul class="gallery">
9344 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9345 <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>
9346 <div class="gallerytext">
9356 Language parser function
9370 Try for 100% code coverage