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]]
75 This is a simple paragraph.
77 <p>This is a simple paragraph.
97 * plain''italic''plain
98 * plain''italic''plain''italic''plain
99 * plain'''bold'''plain
100 * plain'''bold'''plain'''bold'''plain
101 * plain''italic''plain'''bold'''plain
102 * plain'''bold'''plain''italic''plain
103 * plain''italic'''bold-italic'''italic''plain
104 * plain'''bold''bold-italic''bold'''plain
105 * plain'''''bold-italic'''italic''plain
106 * plain'''''bold-italic''bold'''plain
107 * plain''italic'''bold-italic'''''plain
108 * plain'''bold''bold-italic'''''plain
109 * plain l'''italic''plain
110 * plain l''''bold''' plain
113 </li><li> plain<i>italic</i>plain
114 </li><li> plain<i>italic</i>plain<i>italic</i>plain
115 </li><li> plain<b>bold</b>plain
116 </li><li> plain<b>bold</b>plain<b>bold</b>plain
117 </li><li> plain<i>italic</i>plain<b>bold</b>plain
118 </li><li> plain<b>bold</b>plain<i>italic</i>plain
119 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
120 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
121 </li><li> plain<i><b>bold-italic</b>italic</i>plain
122 </li><li> plain<b><i>bold-italic</i>bold</b>plain
123 </li><li> plain<i>italic<b>bold-italic</b></i>plain
124 </li><li> plain<b>bold<i>bold-italic</i></b>plain
125 </li><li> plain l'<i>italic</i>plain
126 </li><li> plain l'<b>bold</b> plain
132 ### <nowiki> test cases
136 <nowiki> unordered list
138 <nowiki>* This is not an unordered list item.</nowiki>
140 <p>* This is not an unordered list item.
147 <nowiki>Lorem ipsum dolor
168 :There is not nowiki.
169 :There is <nowiki>nowiki</nowiki>.
171 #There is not nowiki.
172 #There is <nowiki>nowiki</nowiki>.
174 *There is not nowiki.
175 *There is <nowiki>nowiki</nowiki>.
177 <dl><dd>There is not nowiki.
178 </dd><dd>There is nowiki.
180 <ol><li>There is not nowiki.
181 </li><li>There is nowiki.
183 <ul><li>There is not nowiki.
184 </li><li>There is nowiki.
196 <!-- comment 1 --> asdf
232 asdf<!-- comment 1 -->jkl
242 <!-- foo --> b <!-- bar -->
256 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
262 Comment semantics and delimiters
264 <!-- --><!----><!-----><!------>
270 Comment semantics and delimiters, redux
272 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
273 -- foo -- funky huh? ... -->
279 Comment semantics and delimiters: directors cut
281 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
282 everything starting with < followed by !-- until the first -- and > we see,
283 that wouldn't be valid XML however, since in XML -- has to terminate a comment
291 Comment semantics: nesting
293 <!--<!-- no, we're not going to do anything fancy here -->-->
300 Comment semantics: unclosed comment at end
302 <!--This comment will run out to the end of the document
308 Comment in template title
317 Comment on its own line post-expand
329 ### Preformatted text
338 And a [[Main Page|link]]
344 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
349 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
366 Regression with preformatted in <center>
379 # Expected output in the following test is not really expected (there should be
380 # <pre> in the output) -- it's only testing for well-formedness.
382 Bug 6200: Preformatted in <blockquote>
395 <pre> with attributes (bug 3202)
397 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
399 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
404 <pre> with width attribute (bug 3202)
406 <pre width="8">Narrow screen goodies</pre>
408 <pre width="8">Narrow screen goodies</pre>
413 <pre> with forbidden attribute (bug 3202)
415 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
417 <pre width="8">Narrow screen goodies</pre>
422 <pre> with forbidden attribute values (bug 3202)
424 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
426 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
431 <nowiki> inside <pre> (bug 13238)
439 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
447 <pre><nowiki>Foo</nowiki></pre>
452 <nowiki> and <pre> preference (first one wins)
491 <dl><dt> name </dt><dd> Definition
497 Definition list for indentation only
501 <dl><dd> Indented text
507 Definition list with no space
511 <dl><dt>name</dt><dd>Definition
517 Definition list with URL link
519 ; http://example.com/ : definition
521 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
527 Definition list with bracketed URL link
529 ;[http://www.example.com/ Example]:Something about it
531 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
537 Definition list with wikilink containing colon
539 ; [[Help:FAQ]]: The least-read page on Wikipedia
541 <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
546 # At Brion's and JeLuF's insistence... :)
548 Definition list with news link containing colon
550 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
552 <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!
558 Malformed definition list with colon
560 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
562 <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
568 Definition lists: colon in external link text
570 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
572 <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
578 Definition lists: colon in HTML attribute
580 ;<b style="display: inline">bold</b>
582 <dl><dt><b style="display: inline">bold</b>
589 Definition lists: self-closed tag
591 ;one<br/>two : two-line fun
593 <dl><dt>one<br />two </dt><dd> two-line fun
599 Bug 11748: Literal closing tags
605 <dd>test test test test test</dd>
607 <dd>test test test test test</dd>
612 <dd>test test test test test</dd>
614 <dd>test test test test test</dd>
622 External links: non-bracketed
624 Non-bracketed: http://example.com
626 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
631 External links: numbered
633 Numbered: [http://example.com]
634 Numbered: [http://example.net]
635 Numbered: [http://example.com]
637 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
638 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
639 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
644 External links: specified text
646 Specified text: [http://example.com link]
648 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
653 External links: trail
655 Linktrails should not work for external links: [http://example.com link]s
657 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
662 External links: dollar sign in URL
664 http://example.com/1$2345
666 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
671 External links: dollar sign in URL (named)
673 [http://example.com/1$2345]
675 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
680 External links: open square bracket forbidden in URL (bug 4377)
682 http://example.com/1[2345
684 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
689 External links: open square bracket forbidden in URL (named) (bug 4377)
691 [http://example.com/1[2345]
693 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
698 External links: nowiki in URL link text (bug 6230)
700 [http://example.com/ <nowiki>''example site''</nowiki>]
702 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
707 External links: newline forbidden in text (bug 6230 regression check)
709 [http://example.com/ first
712 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
718 External links: protocol-relative URL in brackets
720 [//example.com/ Test]
722 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
727 External links: protocol-relative URL in brackets without text
731 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
736 External links: protocol-relative URL in free text is left alone
747 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
749 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
754 External image from https
756 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
758 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
763 Link to non-http image, no img tag
765 Link to non-http image, no img tag: ftp://example.com/test.jpg
767 <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>
772 External links: terminating separator
774 Terminating separator: http://example.com/thing,
776 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
781 External links: intervening separator
783 Intervening separator: http://example.com/1,2,3
785 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
790 External links: old bug with URL in query
792 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
794 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
799 External links: old URL-in-URL bug, mixed protocols
801 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
803 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
808 External links: URL in text
810 URL in text: [http://example.com http://example.com]
812 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
817 External links: Clickable images
819 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
821 <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>
826 External links: raw ampersand
828 Old & use: http://x&y
830 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
835 External links: encoded ampersand
837 Old & use: http://x&y
839 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
844 External links: encoded equals (bug 6102)
846 http://example.com/?foo=bar
848 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
853 External links: [raw ampersand]
855 Old & use: [http://x&y]
857 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
862 External links: [encoded ampersand]
864 Old & use: [http://x&y]
866 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
871 External links: [encoded equals] (bug 6102)
873 [http://example.com/?foo=bar]
875 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
880 External links: [IDN ignored character reference in hostname; strip it right off]
882 [http://e‌xample.com/]
884 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
889 External links: IDN ignored character reference in hostname; strip it right off
891 http://e‌xample.com/
893 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
898 External links: www.jpeg.org (bug 554)
902 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
907 External links: URL within URL (original bug 2)
909 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
911 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
916 BUG 361: URL inside bracketed URL
918 [http://www.example.com/foo http://www.example.com/bar]
920 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
925 BUG 361: URL within URL, not bracketed
927 http://www.example.com/foo?=http://www.example.com/bar
929 <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>
934 BUG 289: ">"-token in URL-tail
936 http://www.example.com/<hello>
938 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
943 BUG 289: literal ">"-token in URL-tail
945 http://www.example.com/<b>html</b>
947 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
952 BUG 289: ">"-token in bracketed URL
954 [http://www.example.com/<hello> stuff]
956 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
961 BUG 289: literal ">"-token in bracketed URL
963 [http://www.example.com/<b>html</b> stuff]
965 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
970 BUG 289: literal double quote at end of URL
972 http://www.example.com/"hello"
974 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
979 BUG 289: literal double quote in bracketed URL
981 [http://www.example.com/"hello" stuff]
983 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
988 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
990 [http://www.example.com test]
992 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
997 External links: wiki links within external link (Bug 3695)
999 [http://example.com [[wikilink]] embedded in ext link]
1001 <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>
1006 BUG 787: Links with one slash after the url protocol are invalid
1010 [http:/example.com title]
1012 <p>http:/example.com
1013 </p><p>[http:/example.com title]
1018 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1020 ''[http://example.com text'']
1021 [http://example.com '''text]'''
1022 ''Something [http://example.com in italic'']
1023 ''Something [http://example.com mixed''''', even bold]'''
1024 '''''Now [http://example.com both''''']
1026 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1027 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1028 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1029 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1030 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1036 Bug 4781: %26 in URL
1038 http://www.example.com/?title=AT%26T
1040 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1045 Bug 4781, 5267: %26 in URL
1047 http://www.example.com/?title=100%25_Bran
1049 <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>
1054 Bug 4781, 5267: %28, %29 in URL
1056 http://www.example.com/?title=Ben-Hur_%281959_film%29
1058 <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>
1064 Bug 4781: %26 in autonumber URL
1066 [http://www.example.com/?title=AT%26T]
1068 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1073 Bug 4781, 5267: %26 in autonumber URL
1075 [http://www.example.com/?title=100%25_Bran]
1077 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1082 Bug 4781, 5267: %28, %29 in autonumber URL
1084 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1086 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1092 Bug 4781: %26 in bracketed URL
1094 [http://www.example.com/?title=AT%26T link]
1096 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1101 Bug 4781, 5267: %26 in bracketed URL
1103 [http://www.example.com/?title=100%25_Bran link]
1105 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1110 Bug 4781, 5267: %28, %29 in bracketed URL
1112 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1114 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1119 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1121 Some [http://example.com/ pretty ''italics'' and stuff]!
1123 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1128 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1130 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1132 <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>
1137 External link containing double-single-quotes with no space separating the url from text in italics
1139 [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]].]
1141 <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>
1146 URL-encoding in URL functions (single parameter)
1148 {{localurl:Some page|amp=&}}
1150 <p>/index.php?title=Some_page&amp=&
1155 URL-encoding in URL functions (multiple parameters)
1157 {{localurl:Some page|q=?&=&}}
1159 <p>/index.php?title=Some_page&q=?&amp=&
1170 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1172 Normal text. '''''Bold italic text.''''' Normal text.
1174 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1175 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1181 Unclosed and unmatched quotes
1183 '''''Bold italic text '''with bold deactivated''' in between.'''''
1185 '''''Bold italic text ''with italic deactivated'' in between.'''''
1189 ..spanning two paragraphs (should not work).'''
1191 '''Bold tag left open
1193 ''Italic tag left open
1197 <!-- Unmatching number of opening, closing tags: -->
1198 '''This year''''s election ''should'' beat '''last year''''s.
1200 ''Tom'''s car is bigger than ''Susan'''s.
1202 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1203 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1204 </p><p><b>Bold text..</b>
1205 </p><p>..spanning two paragraphs (should not work).
1206 </p><p><b>Bold tag left open</b>
1207 </p><p><i>Italic tag left open</i>
1209 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1210 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1217 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1220 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1221 # is the bare minimun required by the spec, see:
1222 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1224 A table with no data.
1230 # A table with nothing but a caption is invalid XHTML, we might want to render
1231 # this as <p>caption</p>
1233 A table with nothing but a caption
1274 Table inside unclosed table w/o cells
1303 ! Number !! Another number
1336 Table with multiple captions: Only keep first
1352 Table with multiline caption
1368 Table with multiple thead
1371 ! Number !! Another number
1375 ! Some other number !! Another number
1397 <th>Some other number
1413 Table with thead & tfoot
1416 ! Number !! Another number
1420 ! Some other number !! Another number
1424 ! Total: 4 !! Total: 6
1444 <th>Some other number
1468 Table have th inside tfoot
1473 ! Footer1 !! Footer2
1496 Table have th inside thead
1499 ! Header1 !! Header2
1524 Table with list inside
1527 |style="width: 5em; text-align: center"| gives
1528 |style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em"|
1538 <td style="width: 5em; text-align: center">gives
1540 <td style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em">
1553 Table with broken up list inside
1556 |style="width: 5em; text-align: center"| gives
1557 |style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em"|
1568 <td style="width: 5em; text-align: center">gives
1570 <td style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em">
1585 Indented table wrapped in html tags (Related to Bug 26362)
1600 </table></dd></dl></div>
1605 Table with multiline contents
1628 Multiplication table
1630 {| border="1" cellpadding="2"
1631 |+Multiplication table
1633 ! × !! 1 !! 2 !! 3
1651 <table border="1" cellpadding="2">
1652 <caption>Multiplication table
1723 {| align=right border=1
1725 |rowspan=2| Cell 2, row 1 (and 2)
1732 <table align="right" border="1">
1736 <td rowspan="2">Cell 2, row 1 (and 2)
1757 {| bgcolor=#ABCDEF border=2
1762 |the original table again
1770 <table bgcolor="#ABCDEF" border="2">
1781 <td>the original table again
1789 Invalid attributes in table cell (bug 1830)
1805 Heading inside table (affected by r85922)
1816 <h3><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></h3>
1824 A table with a caption with unclosed italic
1832 <caption><i>caption</i>
1843 A table with unclosed italic in a cell
1859 A table with unclosed italic in a th
1879 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1882 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1886 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a>
1888 <td>]" onmouseover="alert(document.cookie)">test
1896 Indented Tables, bug 20078
1922 Arbitrary whitespace should not be prepended
1966 Plain link, capitalized
1970 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1975 Plain link, uncapitalized
1979 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1986 [[Main Page|The Main Page]]
1988 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1997 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2002 Broken link with fragment
2004 [[Zigzagzogzagzig#zug]]
2006 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2011 Special page link with fragment
2013 [[Special:Version#anchor]]
2015 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2020 Nonexistent special page link with fragment
2022 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2024 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2031 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2033 <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>
2040 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2042 <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>!!!
2047 Link with 3 brackets
2056 Piped link with 3 brackets
2058 [[[main page|the main page]]]
2060 <p>[[[main page|the main page]]]
2065 Link with multiple pipes
2067 [[Main Page|The|Main|Page]]
2069 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2076 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2078 <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>
2083 Piped link to namespace
2085 [[Meta:Disclaimers|The disclaimers]]
2087 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2094 [[Usually caused by a typo (oops}]]
2096 <p>[[Usually caused by a typo (oops}]]
2101 Link containing % (not as a hex sequence)
2105 <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>
2110 Link containing % as a single hex sequence interpreted to char
2114 <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>
2119 Link containing % as a double hex sequence interpreted to hex sequence
2123 <p>[[7%2525 Solution]]
2128 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2129 Example for such a section: == < ==
2131 [[%23%3c]][[%23%3e]]
2133 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2138 Link containing "<#" and ">#" as a hex sequences
2140 [[%3c%23]][[%3e%23]]
2142 <p>[[%3c%23]][[%3e%23]]
2147 Link containing double-single-quotes '' (bug 4598)
2149 [[Lista d''e paise d''o munno]]
2151 <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>
2156 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2158 Some [[Link|pretty ''italics'' and stuff]]!
2160 <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>!
2165 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2167 ''Some [[Link|pretty ''italics'' and stuff]]!
2169 <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>
2174 Link with double quotes in title part (literal) and alternate part (interpreted)
2176 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2180 [[''Pentecoste''|Pentecoste]]
2182 [[''Pentecoste''|''Pentecoste'']]
2184 <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>
2185 </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>
2186 </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>
2187 </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>
2194 [[http://www.example.com]]
2196 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2200 # I'm fairly sure the expected result here is wrong.
2201 # We want these to be URL links, not pseudo-pages with URLs for titles....
2202 # However the current output is also pretty screwy.
2205 # I'm changing it to match the current output--it arguably makes more
2206 # sense in the light of the test above. Old expected result was:
2207 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2209 # But I think this test is bordering on "garbage in, garbage out" anyway.
2214 Piped link to URL: [[http://www.example.com|an example URL]]
2216 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2221 BUG 2: [[page|http://url/]] should link to page, not http://url/
2223 [[Main Page|http://url/]]
2225 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2230 BUG 337: Escaped self-links should be bold
2234 [[Bug462]] [[Bug462]]
2236 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2241 Self-link to section should not be bold
2245 [[Main Page#section]]
2247 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2258 Self-link to numeric title
2264 <p><strong class="selflink">0</strong>
2269 Link to numeric-equivalent title
2275 <p><a href="/wiki/00" title="00">00</a>
2280 <nowiki> inside a link
2282 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2284 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2289 Non-breaking spaces in title
2291 [[ Main Page ]]
2293 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2298 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2304 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2309 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2315 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2320 Internal link with en linktrail: no apostrophes (bug 27473)
2326 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2331 Internal link with ca linktrail with apostrophes (bug 27473)
2337 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2342 Internal link with kaa linktrail with apostrophes (bug 27473)
2348 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2353 ### Interwiki links (see maintenance/interwiki.sql)
2357 Inline interwiki link
2359 [[MeatBall:SoftSecurity]]
2361 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2366 Inline interwiki link with empty title (bug 2372)
2370 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw" title="meatball:">MeatBall:</a>
2375 Interwiki link encoding conversion (bug 1636)
2377 *[[Wikipedia:ro:Olteniţa]]
2378 *[[Wikipedia:ro:Olteniţa]]
2380 <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>
2381 </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>
2387 Interwiki link with fragment (bug 2130)
2389 [[MeatBall:SoftSecurity#foo]]
2391 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2406 Double interlanguage link
2417 Interlanguage link, with prefix links
2429 Double interlanguage link, with prefix links (bug 8897)
2456 Incorrecly removing closing slashes from correctly formed XHTML
2458 <br style="clear:both;" />
2460 <p><br style="clear:both;" />
2465 Failing to transform badly formed HTML into correct XHTML
2471 <p><br clear="left" />
2472 <br clear="right" />
2478 Horizontal ruler (should it add that extra space?)
2492 ### Block-level elements
2515 <ol><li>Numbered list
2532 ***#Number on level 4
2534 **#Number on level 3
2535 **#Number on level 3
2540 <ol><li> with numbers
2542 <ul><li> and bullets
2544 <ol><li> and numbers
2546 </li><li>bullets again
2547 <ul><li>bullet level 2
2548 <ul><li>bullet level 3
2549 <ol><li>Number on level 4
2552 </li><li>bullet level 2
2553 <ol><li>Number on level 3
2554 </li><li>Number on level 3
2557 <ol><li>number level 2
2565 List items are not parsed correctly following a <pre> block (bug 785)
2571 <ul><li> <pre>foo</pre>
2572 </li><li> <pre>bar</pre>
2583 Magic Word: {{CURRENTDAY}}
2592 Magic Word: {{CURRENTDAY2}}
2601 Magic Word: {{CURRENTDAYNAME}}
2610 Magic Word: {{CURRENTDOW}}
2619 Magic Word: {{CURRENTMONTH}}
2628 Magic Word: {{CURRENTMONTHABBREV}}
2630 {{CURRENTMONTHABBREV}}
2637 Magic Word: {{CURRENTMONTHNAME}}
2639 {{CURRENTMONTHNAME}}
2646 Magic Word: {{CURRENTMONTHNAMEGEN}}
2648 {{CURRENTMONTHNAMEGEN}}
2655 Magic Word: {{CURRENTTIME}}
2664 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2673 Magic Word: {{CURRENTYEAR}}
2682 Magic Word: {{FULLPAGENAME}}
2684 title=[[User:Ævar Arnfjörð Bjarmason]]
2688 <p>User:Ævar Arnfjörð Bjarmason
2693 Magic Word: {{FULLPAGENAMEE}}
2695 title=[[User:Ævar Arnfjörð Bjarmason]]
2699 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2704 Magic Word: {{NAMESPACE}}
2706 title=[[User:Ævar Arnfjörð Bjarmason]]
2715 Magic Word: {{NAMESPACEE}}
2717 title=[[User:Ævar Arnfjörð Bjarmason]]
2726 Magic Word: {{NUMBEROFFILES}}
2735 Magic Word: {{PAGENAME}}
2737 title=[[User:Ævar Arnfjörð Bjarmason]]
2741 <p>Ævar Arnfjörð Bjarmason
2746 Magic Word: {{PAGENAME}} with metacharacters
2748 title=[['foo & bar = baz']]
2752 <p><i>'foo & bar = baz'</i>
2757 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2759 title=[[*RFC 1234 http://example.com/]]
2763 <p>*RFC 1234 http://example.com/
2768 Magic Word: {{PAGENAMEE}}
2770 title=[[User:Ævar Arnfjörð Bjarmason]]
2774 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2779 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2781 title=[[*RFC 1234 http://example.com/]]
2785 <p>*RFC_1234_http://example.com/
2790 Magic Word: {{REVISIONID}}
2799 Magic Word: {{SCRIPTPATH}}
2808 Magic Word: {{SERVER}}
2812 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2817 Magic Word: {{SERVERNAME}}
2826 Magic Word: {{SITENAME}}
2835 Namespace 1 {{ns:1}}
2844 Namespace 1 {{ns:01}}
2853 Namespace 0 {{ns:0}} (bug 4783)
2861 Namespace 0 {{ns:00}} (bug 4783)
2869 Namespace -1 {{ns:-1}}
2878 Namespace User {{ns:User}}
2887 Namespace User talk {{ns:User_talk}}
2896 Namespace User talk {{ns:uSeR tAlK}}
2905 Namespace File {{ns:File}}
2914 Namespace File {{ns:Image}}
2923 Namespace (lang=de) Benutzer {{ns:User}}
2934 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2940 <p>Benutzer Diskussion
2948 {{urlencode:hi world?!}}
2949 {{urlencode:hi world?!|WIKI}}
2950 {{urlencode:hi world?!|PATH}}
2951 {{urlencode:hi world?!|QUERY}}
2964 Magic links: internal link to RFC (bug 479)
2968 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2973 Magic links: RFC (bug 479)
2977 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc822">RFC 822</a>
2982 Magic links: ISBN (bug 1937)
2986 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2991 Magic links: PMID incorrectly converts space to underscore
2995 <p><a class="external mw-magiclink-pmid" href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3004 Nonexistent template
3006 {{thistemplatedoesnotexist}}
3008 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3015 This is a test template
3023 <p>This is a test template
3028 Template with explicit namespace
3032 <p>This is a test template
3040 This is a test template with parameter {{{param}}}
3046 {{paramtest|param=foo}}
3048 <p>This is a test template with parameter foo
3053 Template:paramtestnum
3059 Template unnamed parameter
3061 {{paramtestnum|Main Page|the main page}}
3063 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3068 Template:templatesimple
3074 Template:templateredirect
3076 #redirect [[Template:templatesimple]]
3080 Template:templateasargtestnum
3086 Template:templateasargtest
3088 {{template{{{templ}}}}}
3092 Template:templateasargtest2
3098 Template with template name as unnamed argument
3100 {{templateasargtestnum|templatesimple}}
3107 Template with template name as argument
3109 {{templateasargtest|templ=simple}}
3116 Template with template name as argument (2)
3118 {{templateasargtest2|templ=templatesimple}}
3125 Template:templateasargtestdefault
3127 {{{{{templ|templatesimple}}}}}
3137 Template with default value
3139 {{templateasargtestdefault}}
3146 Template with default value (value set)
3148 {{templateasargtestdefault|templ=templa}}
3157 {{templateredirect}}
3164 Template with argument in separate line
3166 {{ templateasargtest |
3174 Template with complex template as argument
3177 param ={{ templateasargtest |
3180 <p>This is a test template with parameter (test)
3185 Template with thumb image (with link in description)
3188 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3190 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>
3195 Template:complextemplate
3197 {{{1}}} {{paramtest|
3198 param ={{{param}}}}}
3202 Template with complex arguments
3205 param ={{ templateasargtest |
3206 templ = simple }}|[[Template:complextemplate|link]]}}
3208 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3213 BUG 553: link with two variables in a piped link
3216 |[[{{{1}}}|{{{2}}}]]
3221 <td>[[{{{1}}}|{{{2}}}]]
3229 Magic variable as template parameter
3231 {{paramtest|param={{SITENAME}}}}
3233 <p>This is a test template with parameter MediaWiki
3240 [[{{{param}}}|link]]
3244 Template parameter as link source
3246 {{linktest|param=Main Page}}
3248 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3256 including another template, {{paramtest|param={{{arg}}}}}
3260 Template passing argument to another template
3262 {{paramtest2|arg='hmm'}}
3264 <p>including another template, This is a test template with parameter 'hmm'
3275 Template as link source
3279 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3297 Template infinite loop
3301 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
3306 Template from main namespace
3325 BUG 529: Template with table, not included at beginning of line
3349 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3374 BUG 41: Template parameters shown as broken links
3386 ''None'' of '''this''' should be
3388 but rather passed unmodified
3392 # hmm, fix this or just deprecate msgnw and document its behavior?
3398 {{msgnw:MSGNW test}}
3400 <p>''None'' of '''this''' should be
3402 but rather passed unmodified
3410 {{int:youhavenewmessages|lots of money|not!}}
3412 <p>You have lots of money (not!).
3419 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3423 <includeonly> and <noinclude> being included
3434 <onlyinclude>Foo</onlyinclude>bar
3438 <onlyinclude> being included
3450 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3454 <onlyinclude> and <includeonly> being included
3463 <includeonly> and <noinclude> on a page
3465 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3472 <onlyinclude> on a page
3474 <onlyinclude>Foo</onlyinclude>bar
3481 Template:Includeonly section
3484 ==Includeonly section==
3490 Bug 6563: Edit link generation for section shown by <includeonly>
3492 {{includeonly section}}
3494 <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>
3495 <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>
3499 # Uses same input as the contents of [[Template:Includeonly section]]
3501 Bug 6563: Section extraction for section shown by <includeonly>
3506 ==Includeonly section==
3514 Bug 6563: Edit link generation for section suppressed by <includeonly>
3517 ==Includeonly section==
3521 <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>
3526 Bug 6563: Section extraction for section suppressed by <includeonly>
3531 ==Includeonly section==
3538 Template:Top-level template
3544 Template:Nested template
3551 Line-start flag in a nested template call
3556 {{Top-level template}}
3568 ### Pre-save transform tests
3571 pre-save transform: subst:
3577 This is a test template
3581 pre-save transform: normal template
3591 pre-save transform: nonexistent template
3595 {{thistemplatedoesnotexist}}
3597 {{thistemplatedoesnotexist}}
3602 pre-save transform: subst magic variables
3611 # This is bug 89, which I fixed. -- wtm
3613 pre-save transform: subst: templates with parameters
3617 {{subst:paramtest|param="something else"}}
3619 This is a test template with parameter "something else"
3625 <nowiki>'''not wiki'''</nowiki>
3629 pre-save transform: nowiki in subst (bug 1188)
3633 {{subst:nowikitest}}
3635 <nowiki>'''not wiki'''</nowiki>
3640 Template:commenttest
3642 This template has <!-- a comment --> in it.
3646 pre-save transform: comment in subst (bug 1936)
3650 {{subst:commenttest}}
3652 This template has <!-- a comment --> in it.
3656 pre-save transform: unclosed tag
3660 <nowiki>'''not wiki'''
3662 <nowiki>'''not wiki'''
3666 pre-save transform: mixed tag case
3670 <NOwiki>'''not wiki'''</noWIKI>
3672 <NOwiki>'''not wiki'''</noWIKI>
3676 pre-save transform: unclosed comment in <nowiki>
3680 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3682 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3688 <span onmouseover="alert('crap')">Oh no</span>
3692 (confirming safety of fix for subst bug 1936)
3694 {{Template:dangerous}}
3696 <p><span>Oh no</span>
3701 pre-save transform: comment containing gallery (bug 5024)
3705 <!-- <gallery>data</gallery> -->
3707 <!-- <gallery>data</gallery> -->
3711 pre-save transform: comment containing extension
3715 <!-- <tag>data</tag> -->
3717 <!-- <tag>data</tag> -->
3721 pre-save transform: comment containing nowiki
3725 <!-- <nowiki>data</nowiki> -->
3727 <!-- <nowiki>data</nowiki> -->
3731 pre-save transform: <noinclude> in subst (bug 3298)
3741 pre-save transform: <onlyinclude> in subst (bug 3298)
3753 {{<includeonly>subst:</includeonly>Includes}}
3757 Template:SafeSubstTest
3759 {{<includeonly>safesubst:</includeonly>Includes}}
3763 bug 22297: safesubst: works during PST
3767 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3773 bug 22297: safesubst: works during normal parse
3782 subst: does not work during normal parse
3786 <p>{{subst:Includes}}
3791 pre-save transform: context links ("pipe trick")
3795 [[Article (context)|]]
3798 [[Bar:Article (context)|]]
3799 [[:Bar:Article (context)|]]
3801 [[|Article (context)]]
3805 [[Article (context)|Article]]
3806 [[Bar:Article|Article]]
3807 [[:Bar:Article|Article]]
3808 [[Bar:Article (context)|Article]]
3809 [[:Bar:Article (context)|Article]]
3811 [[Article (context)]]
3812 [[Bar:X (Y) Z|X (Y) Z]]
3813 [[:Bar:X (Y) Z|X (Y) Z]]
3817 pre-save transform: context links ("pipe trick") with interwiki prefix
3821 [[interwiki:Article|]]
3822 [[:interwiki:Article|]]
3823 [[interwiki:Bar:Article|]]
3824 [[:interwiki:Bar:Article|]]
3826 [[interwiki:Article|Article]]
3827 [[:interwiki:Article|Article]]
3828 [[interwiki:Bar:Article|Bar:Article]]
3829 [[:interwiki:Bar:Article|Bar:Article]]
3833 pre-save transform: context links ("pipe trick") with parens in title
3835 pst title=[[Somearticle (context)]]
3839 [[Article (context)|Article]]
3843 pre-save transform: context links ("pipe trick") with comma in title
3845 pst title=[[Someplace, Somewhere]]
3848 [[Otherplace, Elsewhere|]]
3849 [[Otherplace, Elsewhere, Anywhere|]]
3851 [[Otherplace, Somewhere|Otherplace]]
3852 [[Otherplace, Elsewhere|Otherplace]]
3853 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3857 pre-save transform: context links ("pipe trick") with parens and comma
3859 pst title=[[Someplace (IGNORED), Somewhere]]
3862 [[Otherplace (place), Elsewhere|]]
3864 [[Otherplace, Somewhere|Otherplace]]
3865 [[Otherplace (place), Elsewhere|Otherplace]]
3869 pre-save transform: context links ("pipe trick") with comma and parens
3871 pst title=[[Who, me? (context)]]
3874 [[Me, Myself, and I (1937 song)|]]
3876 [[Yes, you. (context)|Yes, you.]]
3877 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3881 pre-save transform: context links ("pipe trick") with namespace
3883 pst title=[[Ns:Somearticle]]
3887 [[Ns:Article|Article]]
3891 pre-save transform: context links ("pipe trick") with namespace and parens
3893 pst title=[[Ns:Somearticle (context)]]
3897 [[Ns:Article (context)|Article]]
3901 pre-save transform: context links ("pipe trick") with namespace and comma
3903 pst title=[[Ns:Somearticle, Context, Whatever]]
3907 [[Ns:Article, Context, Whatever|Article]]
3911 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3913 pst title=[[Ns:Somearticle, Context (context)]]
3917 [[Ns:Article (context)|Article]]
3921 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3923 pst title=[[Ns:Somearticle (IGNORED), Context]]
3927 [[Ns:Article, Context|Article]]
3931 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
3935 [[Article(context)|]]
3936 [[Bar:Article(context)|]]
3937 [[:Bar:Article(context)|]]
3938 [[|Article(context)]]
3942 [[Article(context)|Article]]
3943 [[Bar:Article(context)|Article]]
3944 [[:Bar:Article(context)|Article]]
3945 [[Article(context)]]
3946 [[Bar:X (Y) Z|X (Y) Z]]
3947 [[:Bar:X (Y) Z|X (Y) Z]]
3951 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
3955 [[Article (context)|]]
3956 [[Bar:Article (context)|]]
3957 [[:Bar:Article (context)|]]
3958 [[|Article (context)]]
3962 [[Article (context)|Article]]
3963 [[Bar:Article (context)|Article]]
3964 [[:Bar:Article (context)|Article]]
3965 [[Article (context)]]
3966 [[Bar:X (Y) Z|X (Y) Z]]
3967 [[:Bar:X (Y) Z|X (Y) Z]]
3971 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
3975 [[Article(context)|]]
3976 [[Bar:Article(context)|]]
3977 [[:Bar:Article(context)|]]
3978 [[|Article(context)]]
3982 [[Article(context)|Article]]
3983 [[Bar:Article(context)|Article]]
3984 [[:Bar:Article(context)|Article]]
3985 [[Article(context)]]
3987 [[:Bar:X(Y)Z|X(Y)Z]]
3991 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
3995 [[Article(context)|]]
3996 [[Bar:Article(context)|]]
3997 [[:Bar:Article(context)|]]
3998 [[|Article(context)]]
4002 [[Article(context)|Article]]
4003 [[Bar:Article(context)|Article]]
4004 [[:Bar:Article(context)|Article]]
4005 [[Article(context)]]
4006 [[Bar:X (Y) Z|X (Y) Z]]
4007 [[:Bar:X (Y) Z|X (Y) Z]]
4011 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
4015 [[Article (context)|]]
4016 [[Bar:Article (context)|]]
4017 [[:Bar:Article (context)|]]
4018 [[|Article (context)]]
4022 [[Article (context)|Article]]
4023 [[Bar:Article (context)|Article]]
4024 [[:Bar:Article (context)|Article]]
4025 [[Article (context)]]
4026 [[Bar:X (Y) Z|X (Y) Z]]
4027 [[:Bar:X (Y) Z|X (Y) Z]]
4031 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
4035 [[Article(context)|]]
4036 [[Bar:Article(context)|]]
4037 [[:Bar:Article(context)|]]
4038 [[|Article(context)]]
4042 [[Article(context)|Article]]
4043 [[Bar:Article(context)|Article]]
4044 [[:Bar:Article(context)|Article]]
4045 [[Article(context)]]
4047 [[:Bar:X(Y)Z|X(Y)Z]]
4051 pre-save transform: trim trailing empty lines
4055 Empty lines are trimmed
4061 Empty lines are trimmed
4065 pre-save transform: Signature expansion
4070 * <noinclude>~~~</noinclude>
4071 * <includeonly>~~~</includeonly>
4072 * <onlyinclude>~~~</onlyinclude>
4074 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
4075 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
4076 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
4077 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
4082 pre-save transform: Signature expansion in nowiki tags (bug 93)
4088 <nowiki>~~~~</nowiki>
4090 <includeonly><nowiki>~~~~</nowiki></includeonly>
4092 <noinclude><nowiki>~~~~</nowiki></noinclude>
4094 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4096 {{subst:Foo}} shall be converted to FOO
4098 As well as inside noinclude/onlyinclude
4099 <noinclude>{{subst:Foo}}</noinclude>
4100 <onlyinclude>{{subst:Foo}}</onlyinclude>
4102 But not inside includeonly
4103 <includeonly>{{subst:Foo}}</includeonly>
4107 <nowiki>~~~~</nowiki>
4109 <includeonly><nowiki>~~~~</nowiki></includeonly>
4111 <noinclude><nowiki>~~~~</nowiki></noinclude>
4113 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4115 FOO shall be converted to FOO
4117 As well as inside noinclude/onlyinclude
4118 <noinclude>FOO</noinclude>
4119 <onlyinclude>FOO</onlyinclude>
4121 But not inside includeonly
4122 <includeonly>{{subst:Foo}}</includeonly>
4126 ### Message transform tests
4129 message transform: magic variables
4139 message transform: should not transform wiki markup
4149 message transform: <noinclude> in transcluded template (bug 4926)
4159 message transform: <onlyinclude> in transcluded template (bug 4926)
4169 {{#special:}} page name, known
4173 {{#special:Recentchanges}}
4175 Special:RecentChanges
4179 {{#special:}} page name with subpage, known
4183 {{#special:Recentchanges/param}}
4185 Special:RecentChanges/param
4189 {{#special:}} page name, unknown
4193 {{#special:foobarnonexistent}}
4195 No such special page
4204 [[Image:foobar.jpg]]
4206 <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>
4213 [[Image:foobar.jpg|right]]
4215 <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>
4220 Simple image (using File: namespace, now canonical)
4224 <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>
4231 [[Image:foobar.jpg|right|Caption text]]
4233 <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>
4238 Image with link parameter, wiki target
4240 [[Image:foobar.jpg|link=Target page]]
4242 <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>
4247 Image with link parameter, URL target
4249 [[Image:foobar.jpg|link=http://example.com/]]
4251 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4256 Image with link parameter, wgExternalLinkTarget
4258 [[Image:foobar.jpg|link=http://example.com/]]
4260 wgExternalLinkTarget='foobar'
4262 <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>
4267 Image with link parameter, wgExternalLinkTarget, unnamed parameter
4269 [[Image:foobar.jpg|link=http://example.com/|Title]]
4271 wgExternalLinkTarget='foobar'
4273 <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>
4278 Image with empty link parameter
4280 [[Image:foobar.jpg|link=]]
4282 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
4287 Image with link parameter (wiki target) and unnamed parameter
4289 [[Image:foobar.jpg|link=Target page|Title]]
4291 <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>
4296 Image with link parameter (URL target) and unnamed parameter
4298 [[Image:foobar.jpg|link=http://example.com/|Title]]
4300 <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>
4305 Thumbnail image with link parameter
4307 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
4309 <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>
4314 Image with frame and link
4316 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
4318 <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>
4323 Image with frame and link and explicit alt
4325 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
4327 <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>
4332 Image with wiki markup in implicit alt
4334 [[Image:Foobar.jpg|testing '''bold''' in alt]]
4336 <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>
4341 Image with wiki markup in explicit alt
4343 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
4345 <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>
4350 Link to image page- image page normally doesn't exists, hence edit link
4351 Add test with existing image page
4352 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
4356 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
4361 bug 18784 Link to non-existent image page with caption should use caption as link text
4363 [[:Image:test|caption]]
4365 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
4370 Frameless image caption with a free URL
4372 [[Image:foobar.jpg|http://example.com]]
4374 <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>
4379 Thumbnail image caption with a free URL
4381 [[Image:foobar.jpg|thumb|http://example.com]]
4383 <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>
4388 Thumbnail image caption with a free URL and explicit alt
4390 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
4392 <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>
4397 BUG 1887: A ISBN with a thumbnail
4399 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
4401 <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>
4406 BUG 1887: A RFC with a thumbnail
4408 [[Image:foobar.jpg|thumb|This is RFC 12354]]
4410 <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="http://tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
4415 BUG 1887: A mailto link with a thumbnail
4417 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
4419 <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>
4423 # Pending resolution to bug 368
4425 BUG 648: Frameless image caption with a link
4427 [[Image:foobar.jpg|text with a [[link]] in it]]
4429 <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>
4434 BUG 648: Frameless image caption with a link (suffix)
4436 [[Image:foobar.jpg|text with a [[link]]foo in it]]
4438 <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>
4443 BUG 648: Frameless image caption with an interwiki link
4445 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4447 <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>
4452 BUG 648: Frameless image caption with a piped interwiki link
4454 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4456 <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>
4461 Escape HTML special chars in image alt text
4463 [[Image:foobar.jpg|& < > "]]
4465 <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>
4470 BUG 499: Alt text should have Ӓ, not &1234;
4472 [[Image:foobar.jpg|♀]]
4474 <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>
4479 Broken image caption with link
4481 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4483 <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.
4488 Image caption containing another image
4490 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4492 <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>
4497 Image caption containing a newline
4499 [[Image:Foobar.jpg|This
4502 <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>
4508 Bug 3090: External links other than http: in image captions
4510 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4512 <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>
4519 #REDIRECT [[File:Barfoo.jpg]]
4525 [[Image:Barfoo.jpg]]
4527 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
4532 Missing image with uploads disabled
4536 [[Image:Foobaz.jpg]]
4538 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
4547 Subpage test/subpage
4555 subpage title=[[Subpage test]]
4559 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
4564 Subpage noslash link
4566 subpage title=[[Subpage test]]
4570 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4579 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4584 BUG 561: {{/Subpage}}
4586 subpage title=[[Page]]
4590 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4598 Category:MediaWiki User's Guide
4606 [[:Category:MediaWiki User's Guide]]
4608 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
4617 [[Category:MediaWiki User's Guide]]
4619 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4623 PAGESINCATEGORY invalid title fatal (r33546 fix)
4625 {{PAGESINCATEGORY:<bogus>}}
4632 ### Inter-language links
4635 Inter-language links
4641 [[zh:食品]]
4643 es:Alimento fr:Nourriture zh:食品
4650 Basic section headings
4657 ===Smaller headline===
4660 <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>
4663 <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>
4666 <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>
4672 Section headings with TOC
4675 === Subheadline 1 ===
4676 ===== Skipping a level =====
4677 ====== Skipping a level ======
4681 ===Another headline===
4683 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4685 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4687 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4689 <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>
4691 <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>
4698 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4700 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4705 <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>
4706 <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>
4707 <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>
4708 <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>
4709 <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>
4712 <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>
4716 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4718 Handling of sections up to level 6 and beyond
4721 == Level 2 Heading==
4722 === Level 3 Heading===
4723 ==== Level 4 Heading====
4724 ===== Level 5 Heading=====
4725 ====== Level 6 Heading======
4726 ======= Level 7 Heading=======
4727 ======== Level 8 Heading========
4728 ========= Level 9 Heading=========
4729 ========== Level 10 Heading==========
4731 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4733 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4735 <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>
4737 <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>
4739 <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>
4741 <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>
4743 <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>
4744 <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>
4745 <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>
4746 <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>
4747 <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>
4760 <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>
4761 <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>
4762 <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>
4763 <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>
4764 <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>
4765 <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>
4766 <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>
4767 <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>
4768 <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>
4769 <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>
4774 TOC regression (bug 9764)
4778 ==== title 1.1.1 ====
4783 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4785 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4787 <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>
4789 <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>
4792 <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>
4795 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4797 <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>
4802 <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>
4803 <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>
4804 <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>
4805 <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>
4806 <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>
4807 <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>
4812 TOC with wgMaxTocLevel=3 (bug 6204)
4818 ==== title 1.1.1 ====
4823 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4825 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4827 <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>
4828 <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>
4831 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4833 <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>
4838 <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>
4839 <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>
4840 <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>
4841 <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>
4842 <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>
4843 <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>
4848 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4854 ====Section 1.1.1====
4855 ====Section 1.1.1.1====
4858 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4860 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4862 <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>
4865 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4868 <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>
4869 <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>
4870 <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>
4871 <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>
4872 <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>
4878 Resolving duplicate section names
4883 <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>
4884 <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>
4889 Resolving duplicate section names with differing case (bug 10721)
4894 <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>
4895 <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>
4907 Template with sections, __NOTOC__
4914 <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>
4915 <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>
4916 <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>
4917 <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>
4922 __NOEDITSECTION__ keyword
4928 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4929 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4934 Link inside a section heading
4936 ==Section with a [[Main Page|link]] in it==
4938 <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>
4943 TOC regression (bug 12077)
4950 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4952 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4954 <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>
4957 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4960 <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>
4961 <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>
4962 <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>
4967 BUG 1219 URL next to image (good)
4969 http://example.com [[Image:foobar.jpg]]
4971 <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>
4976 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4979 The line above must have a trailing space!
4982 But just in case it doesn't...
4984 <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>
4985 <p>The line above must have a trailing space!
4987 <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>
4988 <p>But just in case it doesn't...
4993 Header with special characters (bug 25462)
4995 The tooltips shall not show entities to the user (ie. be double escaped)
5012 <p>The tooltips shall not show entities to the user (ie. be double escaped)
5014 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5016 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
5017 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
5018 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
5019 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
5020 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
5023 <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>
5026 <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>
5029 <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>
5032 <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>
5035 <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>
5041 BUG 1219 URL next to image (broken)
5043 http://example.com[[Image:foobar.jpg]]
5045 <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>
5050 Bug 1186 news: in the middle of text
5052 http://en.wikinews.org/wiki/Wikinews:Workplace
5054 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
5060 Namespaced link must have a title
5069 Namespaced link must have a title (bad fragment version)
5071 [[Project:#fragment]]
5073 <p>[[Project:#fragment]]
5079 div with no attributes
5081 <div>HTML rocks</div>
5083 <div>HTML rocks</div>
5088 div with double-quoted attribute
5090 <div id="rock">HTML rocks</div>
5092 <div id="rock">HTML rocks</div>
5097 div with single-quoted attribute
5099 <div id='rock'>HTML rocks</div>
5101 <div id="rock">HTML rocks</div>
5106 div with unquoted attribute
5108 <div id=rock>HTML rocks</div>
5110 <div id="rock">HTML rocks</div>
5115 div with illegal double attributes
5117 <div align="center" align="right">HTML rocks</div>
5119 <div align="right">HTML rocks</div>
5124 HTML multiple attributes correction
5126 <p class="error" class="awesome">Awesome!</p>
5128 <p class="awesome">Awesome!</p>
5133 Table multiple attributes correction
5136 !+ class="error" class="awesome"| status
5141 <th class="awesome">status
5151 <DIV ALIGN="center">HTML ROCKS</DIV>
5153 <div align="center">HTML ROCKS</div>
5159 text with amp in the middle of nowhere
5163 <p>Remember AT&T?
5168 text with character entity: eacute
5170 I always thought é was a cute letter.
5172 <p>I always thought é was a cute letter.
5177 text with undefined character entity: xacute
5179 I always thought &xacute; was a cute letter.
5181 <p>I always thought &xacute; was a cute letter.
5193 [[Media:Foobar.jpg]]
5195 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
5200 Media link with text
5202 [[Media:Foobar.jpg|A neat file to look at]]
5204 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
5208 # FIXME: this is still bad HTML tag nesting
5210 Media link with nasty text
5211 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
5213 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
5215 <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>
5220 Media link to nonexistent file (bug 1702)
5222 [[Media:No such.jpg]]
5224 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
5229 Image link to nonexistent file (bug 1850 - good)
5231 [[Image:No such.jpg]]
5233 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
5238 :Image link to nonexistent file (bug 1850 - bad)
5240 [[:Image:No such.jpg]]
5242 <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>
5249 Character reference normalization in link text (bug 1938)
5251 [[Main Page|this&that]]
5253 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
5260 Test for unicode normalization
5262 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
5266 (bug 19451) Links should refer to the normalized form.
5274 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5275 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5276 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5277 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5278 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5283 Empty attribute crash test (bug 2067)
5285 <font color="">foo</font>
5287 <p><font color="">foo</font>
5292 Empty attribute crash test single-quotes (bug 2067)
5294 <font color=''>foo</font>
5296 <p><font color="">foo</font>
5301 Attribute test: equals, then nothing
5303 <font color=>foo</font>
5310 Attribute test: unquoted value
5312 <font color=x>foo</font>
5314 <p><font color="x">foo</font>
5319 Attribute test: unquoted but illegal value (hash)
5321 <font color=#x>foo</font>
5323 <p><font color="#x">foo</font>
5328 Attribute test: no value
5330 <font color>foo</font>
5332 <p><font color="color">foo</font>
5337 Bug 2095: link with three closing brackets
5341 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
5346 Bug 2095: link with pipe and three closing brackets
5350 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
5355 Bug 2095: link with pipe and three closing brackets, version 2
5357 [[Main Page|[http://example.com/]]]
5359 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
5369 Template:Dangerous attribute
5371 " onmouseover="alert(document.cookie)
5375 Template:Dangerous style attribute
5377 border-size: expression(alert(document.cookie))
5383 <div style="float: right; {{{1}}}">Magic div</div>
5387 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
5389 <div title="{{test}}"></div>
5391 <div title="This is a test template"></div>
5396 Bug 2304: HTML attribute safety (dangerous template; 2309)
5398 <div title="{{dangerous attribute}}"></div>
5400 <div title=""></div>
5405 Bug 2304: HTML attribute safety (dangerous style template; 2309)
5407 <div style="{{dangerous style attribute}}"></div>
5409 <div style="/* insecure input */"></div>
5414 Bug 2304: HTML attribute safety (safe parameter; 2309)
5416 {{div style|width: 200px}}
5418 <div style="float: right; width: 200px">Magic div</div>
5423 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
5425 {{div style|width: expression(alert(document.cookie))}}
5427 <div style="/* insecure input */">Magic div</div>
5432 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
5434 {{div style|"><script>alert(document.cookie)</script>}}
5436 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5441 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5443 {{div style|" ><script>alert(document.cookie)</script>}}
5445 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5450 Bug 2304: HTML attribute safety (link)
5452 <div title="[[Main Page]]"></div>
5454 <div title="[[Main Page]]"></div>
5459 Bug 2304: HTML attribute safety (italics)
5461 <div title="''foobar''"></div>
5463 <div title="''foobar''"></div>
5468 Bug 2304: HTML attribute safety (bold)
5470 <div title="'''foobar'''"></div>
5472 <div title="'''foobar'''"></div>
5478 Bug 2304: HTML attribute safety (ISBN)
5480 <div title="ISBN 1234567890"></div>
5482 <div title="ISBN 1234567890"></div>
5487 Bug 2304: HTML attribute safety (RFC)
5489 <div title="RFC 1234"></div>
5491 <div title="RFC 1234"></div>
5496 Bug 2304: HTML attribute safety (PMID)
5498 <div title="PMID 1234567890"></div>
5500 <div title="PMID 1234567890"></div>
5505 Bug 2304: HTML attribute safety (web link)
5507 <div title="http://example.com/"></div>
5509 <div title="http://example.com/"></div>
5514 Bug 2304: HTML attribute safety (named web link)
5516 <div title="[http://example.com/ link]"></div>
5518 <div title="[http://example.com/ link]"></div>
5523 Bug 3244: HTML attribute safety (extension; safe)
5525 <div style="<nowiki>background:blue</nowiki>"></div>
5527 <div style="background:blue"></div>
5532 Bug 3244: HTML attribute safety (extension; unsafe)
5534 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
5536 <div style="/* insecure input */"></div>
5540 # More MSIE fun discovered by Tom Gilder
5543 MSIE CSS safety test: spurious slash
5545 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
5547 <div style="/* insecure input */">evil</div>
5552 MSIE CSS safety test: hex code
5554 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
5556 <div style="/* insecure input */">evil</div>
5561 MSIE CSS safety test: comment in url
5563 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
5565 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
5570 MSIE CSS safety test: comment in expression
5572 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
5574 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5580 Table attribute legitimate extension
5583 !+ style="<nowiki>color:blue</nowiki>"| status
5588 <th style="color:blue">status
5596 Table attribute safety
5599 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5604 <th style="/* insecure input */">status
5612 CSS line continuation 1
5614 <div style="background-image: u\ rl(test.jpg);"></div>
5616 <div style="/* insecure input */"></div>
5621 CSS line continuation 2
5623 <div style="background-image: u\ rl(test.jpg); "></div>
5625 <div style="/* insecure input */"></div>
5636 Expansion of multi-line templates in attribute values (bug 6255)
5638 <div style="background: {{identity|#00FF00}}">-</div>
5640 <div style="background: #00FF00">-</div>
5646 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5648 <div style="background:
5651 <div style="background: #00FF00">-</div>
5656 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5658 <div style="background: #00FF00">-</div>
5660 <div style="background: #00FF00">-</div>
5665 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5668 Parser hook: empty input
5681 Parser hook: empty input using terminated empty elements
5694 Parser hook: empty input using terminated empty elements (space before)
5707 Parser hook: basic input
5721 Parser hook: case insensitive
5735 Parser hook: case insensitive, redux
5748 Parser hook: nested tags
5752 <tag><tag></tag></tag>
5763 Parser hook: basic arguments
5765 <tag width=200 height = "100" depth = '50' square></tag>
5784 Parser hook: argument containing a forward slash (bug 5344)
5786 <tag filename='/tmp/bla'></tag>
5792 string(8) "/tmp/bla"
5799 Parser hook: empty input using terminated empty elements (bug 2374)
5813 # </tag> should be output literally since there is no matching tag that begins it
5815 Parser hook: basic arguments using terminated empty elements (bug 2374)
5817 <tag width=200 height = "100" depth = '50' square/>
5840 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5844 Parser hook: static parser hook not inside a comment
5846 <statictag>hello, world</statictag>
5847 <statictag action=flush/>
5855 Parser hook: static parser hook inside a comment
5857 <!-- <statictag>hello, world</statictag> -->
5858 <statictag action=flush/>
5864 # Nested template calls; this case was broken by Parser.php rev 1.506,
5868 Template:One-parameter
5870 (My parameter is: {{{1}}})
5874 Template:Map-one-parameter
5880 Nested template calls
5882 {{Map-one-parameter|One-parameter|param}}
5884 <p>(My parameter is: param)
5893 Sanitizer: Closing of open tags
5895 <s></s><table></table>
5897 <s></s><table></table>
5902 Sanitizer: Closing of open but not closed tags
5911 Sanitizer: Closing of closed but not open tags
5920 Sanitizer: Closing of closed but not open table tags
5922 Table not started</td></tr></table>
5924 <p>Table not started</td></tr></table>
5929 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5931 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5933 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5938 Sanitizer: Validating the contents of the id attribute (bug 4515)
5944 Something, but definitely not <br id="9" />...
5948 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5952 <br id="foo" /><br id="foo" />
5954 Something need to be done. foo-2 ?
5958 Language converter: output gets cut off unexpectedly (bug 5757)
5962 this bit is safe: }-
5964 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5966 then we get cut off here: }-
5968 all additional text is vanished
5970 <p>this bit is safe: }-
5971 </p><p>but if we add a conversion instance: xxx
5972 </p><p>then we get cut off here: }-
5973 </p><p>all additional text is vanished
5978 Self closed html pairs (bug 5487)
5981 <center><font id="bug" />Centered text</center>
5982 <div><font id="bug2" />In div text</div>
5984 <center><font id="bug" />Centered text</center>
5985 <div><font id="bug2" />In div text</div>
5994 Punctuation: nbsp before exclamation
5998 <p>C'est grave !
6003 Punctuation: CSS !important (bug 11874)
6005 <div style="width:50% !important">important</div>
6007 <div style="width:50% !important">important</div>
6012 Punctuation: CSS ! important (bug 11874; with space after)
6014 <div style="width:50% ! important">important</div>
6016 <div style="width:50% ! important">important</div>
6022 HTML bullet list, closed tags (bug 5497)
6037 HTML bullet list, unclosed tags (bug 5497)
6054 HTML ordered list, closed tags (bug 5497)
6069 HTML ordered list, unclosed tags (bug 5497)
6086 HTML nested bullet list, closed tags (bug 5497)
6111 HTML nested bullet list, open tags (bug 5497)
6136 HTML nested ordered list, closed tags (bug 5497)
6161 HTML nested ordered list, open tags (bug 5497)
6186 HTML ordered list item with parameters oddity
6188 <ol><li id="fragment">One</li></ol>
6190 <ol><li id="fragment">One</li></ol>
6195 bug 5918: autonumbering
6197 [http://first/] [http://second] [ftp://ftp]
6201 [mailto:enclosed@mail.tld With target]
6203 [mailto:enclosed@mail.tld]
6205 mailto:inline@mail.tld
6207 <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>
6208 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
6209 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
6210 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
6211 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
6217 # Security and HTML correctness
6218 # From Nick Jenkins' fuzz testing
6222 Fuzz testing: Parser13
6236 Fuzz testing: Parser14
6241 <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>
6242 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6244 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
6251 Fuzz testing: Parser14-table
6257 <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>
6258 <table style="__TOC__">
6267 # Known to produce bogus xml (extra </td>)
6269 Fuzz testing: Parser16
6289 Fuzz testing: Parser21
6292 ! irc://{{ftp://a" onmouseover="alert('hello world');"
6297 <th><a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
6306 Fuzz testing: Parser22
6308 http://===r:::https://b
6313 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
6318 # Known to produce bad XML for now
6320 # Note: the current result listed for this is not what the original one was,
6321 # but the original bug was JavaScript injection, which is fixed in any case.
6322 # It's not clear that the original result listed was any more correct than the
6323 # current one. Original result:
6326 # <u class="|">}}}} >
6327 # <br style="onmouseover='alert(document.cookie);'" />
6329 # MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6335 # Known to produce bad XML for now
6337 Fuzz testing: Parser24
6344 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
6345 <br style="onmouseover='alert(document.cookie);' " />
6347 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6351 <u class="|">}}}} >
6352 <br style="onmouseover='alert(document.cookie);'" />
6353 </p><p>MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6364 # Note: the current result listed for this is not what the original one was,
6365 # but the original bug was JavaScript injection, which is fixed in any case.
6366 # It's not clear that the original result listed was any more correct than the
6367 # current one. Original result:
6370 # <li class="||">
6371 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6373 Fuzz testing: Parser25 (bug 6055)
6379 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
6381 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6386 Fuzz testing: URL adjacent extension (with space, clean)
6389 http://example.com <nowiki>junk</nowiki>
6391 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
6396 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
6399 http://example.com<nowiki>junk</nowiki>
6401 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
6406 Fuzz testing: URL adjacent extension (no space, dirty; pre)
6409 http://example.com<pre>junk</pre>
6411 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
6416 Fuzz testing: image with bogus manual thumbnail
6418 [[Image:foobar.jpg|thumbnail= ]]
6420 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
6425 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
6427 <pre dir=" "></pre>
6429 <pre dir=" "></pre>
6434 Parsing optional HTML elements (Bug 6171)
6439 <td> Some tabular data</td>
6440 <td> More tabular data ...
6441 <td> And yet som tabular data</td>
6447 <td> Some tabular data</td>
6448 <td> More tabular data ...
6449 </td><td> And yet som tabular data</td>
6456 Correct handling of <td>, <tr> (Bug 6171)
6461 <td> Some tabular data</td>
6462 <td> More tabular data ...</td>
6463 <td> And yet som tabular data</td>
6469 <td> Some tabular data</td>
6470 <td> More tabular data ...</td>
6471 <td> And yet som tabular data</td>
6479 Parsing crashing regression (fr:JavaScript)
6483 <p></body></x>
6488 Inline wiki vs wiki block nesting
6494 <p><b>Bold paragraph</b>
6495 </p><p>New wiki paragraph
6500 Inline HTML vs wiki block nesting
6508 <p><b>Bold paragraph</b>
6509 </p><p>New wiki paragraph
6513 # Original result was this:
6514 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6516 # While that might be marginally more intuitive, maybe, the six-apostrophe
6517 # construct is clearly pathological and the result stated here (which is what
6518 # the parser actually does) is about as reasonable as anything.
6520 Mixing markup for italics and bold
6523 '''bold''''''bold''bolditalics'''''
6525 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
6533 Article for special page transclusion test
6537 Special page transclusion
6540 {{Special:Prefixindex/Xyzzyx}}
6544 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6549 Special page transclusion twice (bug 5021)
6552 {{Special:Prefixindex/Xyzzyx}}
6553 {{Special:Prefixindex/Xyzzyx}}
6557 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6560 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6565 Transclusion of default MediaWiki message
6567 {{MediaWiki:Mainpage}}
6574 Transclusion of nonexistent MediaWiki message
6576 {{MediaWiki:Mainpagexxx}}
6578 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6583 Transclusion of MediaWiki message with underscore
6585 {{MediaWiki:history_short}}
6592 Transclusion of MediaWiki message with space
6594 {{MediaWiki:history short}}
6601 Invalid header with following text
6611 Section extraction test (section 0)
6631 Section extraction test (section 1)
6653 Section extraction test (section 2)
6674 Section extraction test (section 3)
6694 Section extraction test (section 4)
6718 Section extraction test (section 5)
6738 Section extraction test (section 6)
6759 Section extraction test (section 7)
6779 Section extraction test (section 8)
6799 Section extraction test (section 9)
6820 Section extraction test (section 10)
6840 Section extraction test (nonexistent section 11)
6859 Section extraction test with bogus heading (section 1)
6864 ==bogus== not a legal section
6868 ==bogus== not a legal section
6872 Section extraction test with bogus heading (section 2)
6877 ==bogus== not a legal section
6884 Section extraction test with comment after heading (section 1)
6896 Section extraction test with comment after heading (section 2)
6908 Section extraction test with bogus <nowiki> heading (section 1)
6913 ==bogus== <nowiki>not a legal section</nowiki>
6917 ==bogus== <nowiki>not a legal section</nowiki>
6921 Section extraction test with bogus <nowiki> heading (section 2)
6926 ==bogus== <nowiki>not a legal section</nowiki>
6933 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6934 # instead of respecting commented sections
6936 Section extraction prefixed by comment (section 1)
6947 Section extraction prefixed by comment (section 2)
6958 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6959 # instead of respecting HTML-style headings
6961 Section extraction, mixed wiki and html (section 1)
6977 Section extraction, mixed wiki and html (section 2)
6993 # Formerly testing for bug 3342
6995 Section extraction, heading surrounded by <noinclude>
6999 <noinclude>==unmarked==</noinclude>
7005 # Test behaviour of bug 19910
7007 Sectiion with all-equals
7012 The line above must have a trailing space
7015 But just in case it doesn't...
7019 But just in case it doesn't...
7023 Section replacement test (section 0)
7054 Section replacement test (section 1)
7083 Section replacement test (section 2)
7113 Section replacement test (section 3)
7144 Section replacement test (section 4)
7171 Section replacement test (section 5)
7202 Section replacement test (section 6)
7232 Section replacement test (section 7)
7263 Section replacement test (section 8)
7294 Section replacement test (section 9)
7323 Section replacement test (section 10)
7353 Section replacement test with initial whitespace (bug 13728)
7357 Preformatted initial line
7361 Preformatted initial line
7368 Section extraction, heading followed by pre with 20 spaces (bug 6398)
7380 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
7393 Section extraction, <pre> around bogus header (bug 10309)
7410 Section replacement, <pre> around bogus header (bug 10309)
7412 noxml replace=2,"xxx"
7433 Handling of 
 in URLs
7437 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
7444 5 quotes, code coverage +1 line
7451 Special:Search page linking.
7455 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
7470 * {{SUBJECTPAGENAME}}
7471 * {{SUBJECTPAGENAMEE}}
7478 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7480 <ul><li> Parser test
7481 </li><li> Parser test
7482 </li><li> Parser test
7483 </li><li> Parser_test
7484 </li><li> Parser test
7485 </li><li> Parser_test
7486 </li><li> Talk:Parser test
7487 </li><li> Talk:Parser_test
7488 </li><li> Parser test
7489 </li><li> Parser_test
7496 </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>
7500 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
7510 image4 |300px| centre
7511 image5.svg| http://///////
7516 <ul class="gallery">
7517 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7518 <div style="height: 150px;">Image1.png</div>
7519 <div class="gallerytext">
7522 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7523 <div style="height: 150px;">Image2.gif</div>
7524 <div class="gallerytext">
7529 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7530 <div style="height: 150px;">Image3</div>
7531 <div class="gallerytext">
7534 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7535 <div style="height: 150px;">Image4</div>
7536 <div class="gallerytext">
7541 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7542 <div style="height: 150px;">Image5.svg</div>
7543 <div class="gallerytext">
7544 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
7548 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7549 <div style="height: 150px;">* image6</div>
7550 <div class="gallerytext">
7558 Gallery (with options)
7560 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
7561 File:Nonexistant.jpg|caption
7562 File:Nonexistant.jpg
7563 image:foobar.jpg|some '''caption''' [[Main Page]]
7565 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
7568 <ul class="gallery" style="max-width: 226px;_width: 226px;">
7569 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
7570 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7571 <div style="height: 70px;">Nonexistant.jpg</div>
7572 <div class="gallerytext">
7577 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7578 <div style="height: 70px;">Nonexistant.jpg</div>
7579 <div class="gallerytext">
7582 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7583 <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>
7584 <div class="gallerytext">
7585 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7589 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7590 <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>
7591 <div class="gallerytext">
7594 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7595 <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>
7596 <div class="gallerytext">
7606 Gallery with wikitext inside caption
7609 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
7610 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
7613 <ul class="gallery">
7614 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7615 <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>
7616 <div class="gallerytext">
7617 <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>
7621 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7622 <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>
7623 <div class="gallerytext">
7624 <p>This is a test template
7633 gallery (with showfilename option)
7635 <gallery showfilename>
7636 File:Nonexistant.jpg|caption
7637 File:Nonexistant.jpg
7638 image:foobar.jpg|some '''caption''' [[Main Page]]
7642 <ul class="gallery">
7643 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7644 <div style="height: 150px;">Nonexistant.jpg</div>
7645 <div class="gallerytext">
7646 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7651 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7652 <div style="height: 150px;">Nonexistant.jpg</div>
7653 <div class="gallerytext">
7654 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7658 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7659 <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>
7660 <div class="gallerytext">
7661 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7662 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7666 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7667 <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>
7668 <div class="gallerytext">
7669 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7678 Gallery (with namespace-less filenames)
7681 File:Nonexistant.jpg
7687 <ul class="gallery">
7688 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7689 <div style="height: 150px;">Nonexistant.jpg</div>
7690 <div class="gallerytext">
7693 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7694 <div style="height: 150px;">Nonexistant.jpg</div>
7695 <div class="gallerytext">
7698 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7699 <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>
7700 <div class="gallerytext">
7703 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7704 <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>
7705 <div class="gallerytext">
7713 HTML Hex character encoding (spells the word "JavaScript")
7715 JavaScript
7717 <p>JavaScript
7722 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7726 <p>&#xsee;&#XSEE;
7731 HTML Hex character encoding mixed case
7740 __FORCETOC__ override
7752 ISBN 978-0-1234-56 789
7754 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7759 ISBN followed by 5 spaces
7770 ISBN ISBN 1234567890
7772 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7777 Bug 22905: <abbr> followed by ISBN followed by </a>
7779 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7781 <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>
7790 <p>RFC <a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc1234">RFC 1234</a>
7795 Double RFC with a wiki link
7799 <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>
7808 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc983">RFC 983</a> 987
7813 Centre-aligned image
7815 [[Image:foobar.jpg|centre]]
7817 <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>
7824 [[Image:foobar.jpg|none]]
7826 <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>
7831 Width + Height sized image (using px) (height is ignored)
7833 [[Image:foobar.jpg|640x480px]]
7835 <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>
7840 Width-sized image (using px, no following whitespace)
7842 [[Image:foobar.jpg|640px]]
7844 <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>
7849 Width-sized image (using px, with following whitespace - test regression from r39467)
7851 [[Image:foobar.jpg|640px ]]
7853 <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>
7858 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7860 [[Image:foobar.jpg| 640px]]
7862 <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>
7867 Another italics / bold test
7875 # Note the results may be incorrect, as parserTest output included this:
7876 # XML error: Mismatched tag at byte 6120:
7877 # ...<dd> </dt></dl> </dd...
7885 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7896 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7898 Images with the "|" character in the comment
7900 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7902 <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>
7907 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7909 <html><script>alert(1);</script></html>
7911 <p><html><script>alert(1);</script></html>
7916 HTML with raw HTML ($wgRawHtml==true)
7920 <html><script>alert(1);</script></html>
7922 <p><script>alert(1);</script>
7927 Parents of subpages, one level up
7929 subpage title=[[Subpage test/L1/L2/L3]]
7933 <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>
7939 Parents of subpages, one level up, not named
7941 subpage title=[[Subpage test/L1/L2/L3]]
7945 <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>
7952 Parents of subpages, two levels up
7954 subpage title=[[Subpage test/L1/L2/L3]]
7960 <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
7961 </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>
7966 Parents of subpages, two levels up, without trailing slash or name.
7968 subpage title=[[Subpage test/L1/L2/L3]]
7977 Parents of subpages, two levels up, with lots of extra trailing slashes.
7979 subpage title=[[Subpage test/L1/L2/L3]]
7983 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7988 Definition list code coverage
7994 <dl><dt> title  </dt><dd> def
7995 </dd><dt> title </dt><dd> def
7996 </dd><dt>title</dt><dd> def
8002 Don't fall for the self-closing div
8004 <div>hello world</div/>
8006 <div>hello world</div>
8015 <p>[[:Template:Msg]]
8024 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
8028 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
8030 Always escape literal '>' in output, not just after '<'
8044 <p>This is a test template
8045 This is a test template
8057 Inclusion of !userCanEdit() content
8061 <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>
8067 Out-of-order TOC heading levels
8076 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8078 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
8080 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
8081 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
8084 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
8086 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
8087 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
8092 <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>
8093 <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>
8094 <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>
8095 <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>
8096 <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>
8097 <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>
8103 ISBN with a dummy number
8113 ISBN with space-delimited number
8117 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
8123 ISBN with multiple spaces, no number
8142 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8143 </p><p>ISBN 12345678901
8149 ISBN with trailing year (bug 8110)
8151 ISBN 1-234-56789-0 - 2006
8153 ISBN 1 234 56789 0 - 2006
8155 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
8156 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
8164 {{anchorencode:foo bar©#%n}}
8166 <p>foo_bar.C2.A9.23.25n
8171 anchorencode trims spaces
8173 {{anchorencode: __pretty__please__}}
8180 anchorencode deals with links
8182 {{anchorencode: [[hello|world]] [[hi]]}}
8189 anchorencode deals with templates
8191 {{anchorencode: {{Foo}} }}
8198 anchorencode encodes like the TOC generator: (bug 18431)
8200 === _ +:.3A%3A&&]] ===
8201 {{anchorencode: _ +:.3A%3A&&]] }}
8204 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
8205 <p>.2B:.3A.253A.26.26.5D.5D
8209 # Expected output in the following test is not necessarily expected (there
8210 # should probably be <p> tags inside the <blockquote> in the output) -- it's
8211 # only testing for well-formedness.
8213 Bug 6200: blockquotes and paragraph formatting
8233 Bug 8293: Use of center tag ruins paragraph formatting
8255 ### Language variants related tests
8258 Self-link in language variants
8260 title=[[Dunav]] language=sr
8262 Both [[Dunav]] and [[Дунав]] are names for this river.
8264 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
8270 Link to pages in language variants
8274 Main Page can be written as [[Маин Паге]]
8276 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
8282 Multiple links to pages in language variants
8286 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
8288 <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>.
8294 Simple template in language variants
8300 <p>This is a test template
8306 Template with explicit namespace in language variants
8312 <p>This is a test template
8318 Basic test for template parameter in language variants
8322 {{парамтест|param=foo}}
8324 <p>This is a test template with parameter foo
8330 Simple category in language variants
8334 [[Category:МедиаWики Усер'с Гуиде]]
8336 <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>
8341 Stripping -{}- tags (language variants)
8345 Latin proverb: -{Ne nuntium necare}-
8347 <p>Latin proverb: Ne nuntium necare
8353 Prevent conversion with -{}- tags (language variants)
8355 language=sr variant=sr-ec
8357 Latinski: -{Ne nuntium necare}-
8359 <p>Латински: Ne nuntium necare
8365 Prevent conversion of text with -{}- tags (language variants)
8367 language=sr variant=sr-ec
8369 Latinski: -{Ne nuntium necare}-
8371 <p>Латински: Ne nuntium necare
8377 Prevent conversion of links with -{}- tags (language variants)
8379 language=sr variant=sr-ec
8383 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8389 -{}- tags within headlines (within html for parserConvert())
8391 language=sr variant=sr-ec
8395 <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>
8401 Explicit definition of language variant alternatives
8403 language=zh variant=zh-tw
8405 -{zh:China;zh-tw:Taiwan}-, not China
8407 <p>Taiwan, not China
8413 Explicit session-wise language variant mapping (A flag and - flag)
8415 language=zh variant=zh-tw
8417 Taiwan is not China.
8418 But -{A|zh:China;zh-tw:Taiwan}- is China,
8419 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
8420 and -{China}- is China.
8422 <p>Taiwan is not China.
8423 But Taiwan is Taiwan,
8424 (This should be stripped!)
8430 Explicit session-wise language variant mapping (H flag for hide)
8432 language=zh variant=zh-tw
8434 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
8437 <p>(This should be stripped!)
8443 Adding explicit conversion rule for title (T flag)
8445 language=zh variant=zh-tw showtitle
8447 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8450 <p>Should be stripped!
8455 Testing that changing the language variant here in the tests actually works
8457 language=zh variant=zh showtitle
8459 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8462 <p>Should be stripped!
8467 Bug 24072: more test on conversion rule for title
8469 language=zh variant=zh-tw showtitle
8471 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8472 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8475 <p>This should be stripped!
8476 This won't take interferes with the title rule.
8481 Raw output of variant escape tags (R flag)
8483 language=zh variant=zh-tw
8485 Raw: -{R|zh:China;zh-tw:Taiwan}-
8487 <p>Raw: zh:China;zh-tw:Taiwan
8492 Nested using of manual convert syntax
8494 language=zh variant=zh-hk
8496 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8498 <p>Nested: Hello Hong Kong!
8503 Do not convert roman numbers to language variants
8505 language=sr variant=sr-ec
8509 <p>Фридрих IV је цар.
8514 Unclosed language converter markup "-{"
8525 Don't convert raw rule "-{R|=>}-" to "=>"
8542 Bug 529: Uncovered bullet
8553 Bug 529: Uncovered table already at line-start
8581 Bug 529: Uncovered bullet in parser function result
8583 * Foo {{lc:{{bullet}} }}
8592 Bug 5678: Double-parsed template argument
8594 {{lc:{{{1}}}|hello}}
8601 Bug 5678: Double-parsed template invocation
8603 {{lc:{{paramtest {{!}} param = hello }} }}
8605 <p>{{paramtest | param = hello }}
8610 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8636 Morwen/13: Unclosed link followed by heading
8643 <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>
8648 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8655 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8660 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8667 <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>
8682 Paragraphs inside divs (no extra line breaks)
8694 Paragraphs inside divs (extra line break on open)
8709 Paragraphs inside divs (extra line break on close)
8724 Paragraphs inside divs (extra line break on open and close)
8741 Nesting tags, paragraphs on lines which begin with <div>
8745 <div></div><strong>A
8754 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8756 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8760 <blockquote>Line one
8762 Line two</blockquote>
8764 <blockquote>Line one
8765 Line two</blockquote>
8770 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8777 Line two</blockquote>
8782 Line two</blockquote>
8787 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8791 <blockquote>Line one
8796 <blockquote>Line one
8804 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8823 Paragraphs inside blockquotes/divs (no extra line breaks)
8825 <blockquote><div>Line one
8827 Line two</div></blockquote>
8829 <blockquote><div>Line one
8830 Line two</div></blockquote>
8835 Paragraphs inside blockquotes/divs (extra line break on open)
8840 Line two</div></blockquote>
8845 Line two</div></blockquote>
8850 Paragraphs inside blockquotes/divs (extra line break on close)
8852 <blockquote><div>Line one
8857 <blockquote><div>Line one
8865 Paragraphs inside blockquotes/divs (extra line break on open and close)
8882 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8884 wgLinkHolderBatchSize=0
8890 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
8891 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
8892 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
8897 Free external link invading image caption
8899 [[Image:Foobar.jpg|thumb|http://x|hello]]
8901 <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>
8906 Bug 15196: localised external link numbers
8910 [http://en.wikipedia.org/]
8912 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8917 Multibyte character in padleft
8919 {{padleft:-Hello|7|Æ}}
8926 Multibyte character in padright
8928 {{padright:Hello-|7|Æ}}
8941 <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>
8946 formatdate parser function
8948 {{#formatdate:2009-03-24}}
8950 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8955 formatdate parser function, with default format
8957 {{#formatdate:2009-03-24|mdy}}
8959 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8964 Linked date with autoformatting disabled
8966 wgUseDynamicDates=false
8970 <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>
8975 Spacing of numbers in formatted dates
8977 {{#formatdate:January 15}}
8979 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8984 Spacing of numbers in formatted dates (linked)
8986 wgUseDynamicDates=true
8990 <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>
9003 Edit comment with link
9007 I like the [[Main Page]] a lot
9009 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
9013 Edit comment with link and link text
9017 I like the [[Main Page|best pages]] a lot
9019 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9023 Edit comment with link and link text with suffix
9027 I like the [[Main Page|best page]]s a lot
9029 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9033 Edit comment with section link (non-local, eg in history list)
9035 comment title=[[Main Page]]
9037 /* External links */ removed bogus entries
9039 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
9043 Edit comment with section link (local, eg in diff view)
9045 comment local title=[[Main Page]]
9047 /* External links */ removed bogus entries
9049 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
9053 Edit comment with subpage link (bug 14080)
9057 title=[[Subpage test]]
9059 Poked at a [[/subpage]] here...
9061 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
9065 Edit comment with subpage link and link text (bug 14080)
9069 title=[[Subpage test]]
9071 Poked at a [[/subpage|neat little page]] here...
9073 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
9077 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
9080 title=[[Subpage test]]
9082 Poked at a [[/subpage]] here...
9084 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
9088 Edit comment with bare anchor link (local, as on diff)
9096 <a href="#section">#section</a>
9100 Edit comment with bare anchor link (non-local, as on history)
9107 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
9111 Anchor starting with underscore
9115 <p><a href="#_ref">One</a>
9120 Id starting with underscore
9122 <div id="_ref"></div>
9124 <div id="_ref"></div>
9129 Space normalisation on autocomment (bug 22784)
9134 /* __hello__world__ */
9136 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
9140 percent-encoding and + signs in comments (Bug 26410)
9144 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
9146 <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>
9150 Bad images - basic functionality
9157 Bad images - bug 16039: text after bad image disappears
9169 Verify that displaytitle works (bug #22501) no displaytitle
9173 wgAllowDisplayTitle=true
9174 wgRestrictDisplayTitle=false
9176 this is not the the title
9179 <p>this is not the the title
9184 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
9189 wgAllowDisplayTitle=true
9190 wgRestrictDisplayTitle=false
9192 this is not the the title
9193 {{DISPLAYTITLE:whatever}}
9196 <p>this is not the the title
9201 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
9206 wgAllowDisplayTitle=true
9207 wgRestrictDisplayTitle=true
9209 this is not the the title
9210 {{DISPLAYTITLE:whatever}}
9213 <p>this is not the the title
9218 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
9223 wgAllowDisplayTitle=true
9224 wgRestrictDisplayTitle=true
9226 this is not the the title
9227 {{DISPLAYTITLE:screen}}
9230 <p>this is not the the title
9235 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
9240 wgAllowDisplayTitle=false
9242 this is not the the title
9243 {{DISPLAYTITLE:screen}}
9246 <p>this is not the the title
9247 <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>
9252 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
9257 wgAllowDisplayTitle=false
9259 this is not the the title
9262 <p>this is not the the title
9267 preload: check <noinclude> and <includeonly>
9271 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
9277 preload: check <onlyinclude>
9281 Goodbye <onlyinclude>Hello world</onlyinclude>
9287 preload: can pass tags through if we want to
9291 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
9293 <includeonly>Hello world</includeonly>
9297 preload: check that it doesn't try to do tricks
9301 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9303 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9307 Play a bit with r67090 and bug 3158
9311 <div style="width:50% !important"> </div>
9312 <div style="width:50% !important"> </div>
9313 <div style="width:50% !important"> </div>
9314 <div style="border : solid;"> </div>
9316 <div style="width:50% !important"> </div>
9317 <div style="width:50% !important"> </div>
9318 <div style="width:50% !important"> </div>
9319 <div style="border : solid;"> </div>
9324 HTML5 data attributes
9326 <span data-foo="bar">Baz</span>
9327 <p data-abc-def_hij="">Quuz</p>
9329 <p><span data-foo="bar">Baz</span>
9331 <p data-abc-def_hij="">Quuz</p>
9336 percent-encoding and + signs in internal links (Bug 26410)
9338 [[User:+%]] [[Page+title%]]
9339 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
9340 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
9341 [[%33%45]] [[%33%45+]]
9343 <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>
9344 <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>
9345 <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>
9346 <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>
9351 Special characters in embedded file links (bug 27679)
9353 [[File:Contains & ampersand.jpg]]
9354 [[File:Does not exist.jpg|Title with & ampersand]]
9356 <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>
9357 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
9363 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
9365 Text's been normalized?
9367 <p>Text's been normalized?
9372 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
9374 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
9376 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
9381 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
9383 [http://www.example.org/ ideograms]
9385 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
9390 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
9392 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
9394 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
9404 Try for 100% code coverage