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
745 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
749 <p>foo//example.com/Foo
756 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
758 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
763 External image from https
765 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
767 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
772 Link to non-http image, no img tag
774 Link to non-http image, no img tag: ftp://example.com/test.jpg
776 <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>
781 External links: terminating separator
783 Terminating separator: http://example.com/thing,
785 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
790 External links: intervening separator
792 Intervening separator: http://example.com/1,2,3
794 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
799 External links: old bug with URL in query
801 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
803 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
808 External links: old URL-in-URL bug, mixed protocols
810 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
812 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
817 External links: URL in text
819 URL in text: [http://example.com http://example.com]
821 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
826 External links: Clickable images
828 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
830 <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>
835 External links: raw 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 ampersand
846 Old & use: http://x&y
848 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
853 External links: encoded equals (bug 6102)
855 http://example.com/?foo=bar
857 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
862 External links: [raw 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 ampersand]
873 Old & use: [http://x&y]
875 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
880 External links: [encoded equals] (bug 6102)
882 [http://example.com/?foo=bar]
884 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[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 autonumber" href="http://example.com/">[1]</a>
898 External links: IDN ignored character reference in hostname; strip it right off
900 http://e‌xample.com/
902 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
907 External links: www.jpeg.org (bug 554)
911 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
916 External links: URL within URL (original bug 2)
918 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
920 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
925 BUG 361: URL inside bracketed URL
927 [http://www.example.com/foo http://www.example.com/bar]
929 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
934 BUG 361: URL within URL, not bracketed
936 http://www.example.com/foo?=http://www.example.com/bar
938 <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>
943 BUG 289: ">"-token in URL-tail
945 http://www.example.com/<hello>
947 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
952 BUG 289: literal ">"-token in URL-tail
954 http://www.example.com/<b>html</b>
956 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
961 BUG 289: ">"-token in bracketed URL
963 [http://www.example.com/<hello> stuff]
965 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
970 BUG 289: literal ">"-token in bracketed URL
972 [http://www.example.com/<b>html</b> stuff]
974 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
979 BUG 289: literal double quote at end of URL
981 http://www.example.com/"hello"
983 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
988 BUG 289: literal double quote in bracketed URL
990 [http://www.example.com/"hello" stuff]
992 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
997 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
999 [http://www.example.com test]
1001 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1006 External links: wiki links within external link (Bug 3695)
1008 [http://example.com [[wikilink]] embedded in ext link]
1010 <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>
1015 BUG 787: Links with one slash after the url protocol are invalid
1019 [http:/example.com title]
1021 <p>http:/example.com
1022 </p><p>[http:/example.com title]
1027 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1029 ''[http://example.com text'']
1030 [http://example.com '''text]'''
1031 ''Something [http://example.com in italic'']
1032 ''Something [http://example.com mixed''''', even bold]'''
1033 '''''Now [http://example.com both''''']
1035 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1036 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1037 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1038 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1039 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1045 Bug 4781: %26 in URL
1047 http://www.example.com/?title=AT%26T
1049 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1054 Bug 4781, 5267: %26 in URL
1056 http://www.example.com/?title=100%25_Bran
1058 <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>
1063 Bug 4781, 5267: %28, %29 in URL
1065 http://www.example.com/?title=Ben-Hur_%281959_film%29
1067 <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>
1073 Bug 4781: %26 in autonumber URL
1075 [http://www.example.com/?title=AT%26T]
1077 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1082 Bug 4781, 5267: %26 in autonumber URL
1084 [http://www.example.com/?title=100%25_Bran]
1086 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1091 Bug 4781, 5267: %28, %29 in autonumber URL
1093 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1095 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1101 Bug 4781: %26 in bracketed URL
1103 [http://www.example.com/?title=AT%26T link]
1105 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1110 Bug 4781, 5267: %26 in bracketed URL
1112 [http://www.example.com/?title=100%25_Bran link]
1114 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1119 Bug 4781, 5267: %28, %29 in bracketed URL
1121 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1123 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1128 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1130 Some [http://example.com/ pretty ''italics'' and stuff]!
1132 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1137 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1139 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1141 <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>
1146 External link containing double-single-quotes with no space separating the url from text in italics
1148 [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]].]
1150 <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>
1155 URL-encoding in URL functions (single parameter)
1157 {{localurl:Some page|amp=&}}
1159 <p>/index.php?title=Some_page&amp=&
1164 URL-encoding in URL functions (multiple parameters)
1166 {{localurl:Some page|q=?&=&}}
1168 <p>/index.php?title=Some_page&q=?&amp=&
1179 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1181 Normal text. '''''Bold italic text.''''' Normal text.
1183 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1184 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1190 Unclosed and unmatched quotes
1192 '''''Bold italic text '''with bold deactivated''' in between.'''''
1194 '''''Bold italic text ''with italic deactivated'' in between.'''''
1198 ..spanning two paragraphs (should not work).'''
1200 '''Bold tag left open
1202 ''Italic tag left open
1206 <!-- Unmatching number of opening, closing tags: -->
1207 '''This year''''s election ''should'' beat '''last year''''s.
1209 ''Tom'''s car is bigger than ''Susan'''s.
1211 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1212 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1213 </p><p><b>Bold text..</b>
1214 </p><p>..spanning two paragraphs (should not work).
1215 </p><p><b>Bold tag left open</b>
1216 </p><p><i>Italic tag left open</i>
1218 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1219 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1226 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1229 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1230 # is the bare minimun required by the spec, see:
1231 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1233 A table with no data.
1239 # A table with nothing but a caption is invalid XHTML, we might want to render
1240 # this as <p>caption</p>
1242 A table with nothing but a caption
1283 Table inside unclosed table w/o cells
1312 ! Number !! Another number
1345 Table with multiple captions: Only keep first
1361 Table with multiline caption
1377 Table with multiple thead
1380 ! Number !! Another number
1384 ! Some other number !! Another number
1406 <th>Some other number
1422 Table with thead & tfoot
1425 ! Number !! Another number
1429 ! Some other number !! Another number
1433 ! Total: 4 !! Total: 6
1453 <th>Some other number
1477 Table have th inside tfoot
1482 ! Footer1 !! Footer2
1505 Table have th inside thead
1508 ! Header1 !! Header2
1533 Table with list inside
1536 |style="width: 5em; text-align: center"| gives
1537 |style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em"|
1547 <td style="width: 5em; text-align: center">gives
1549 <td style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em">
1562 Table with broken up list inside
1565 |style="width: 5em; text-align: center"| gives
1566 |style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em"|
1577 <td style="width: 5em; text-align: center">gives
1579 <td style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em">
1594 Indented table wrapped in html tags (Related to Bug 26362)
1609 </table></dd></dl></div>
1614 Table with multiline contents
1637 Multiplication table
1639 {| border="1" cellpadding="2"
1640 |+Multiplication table
1642 ! × !! 1 !! 2 !! 3
1660 <table border="1" cellpadding="2">
1661 <caption>Multiplication table
1732 {| align=right border=1
1734 |rowspan=2| Cell 2, row 1 (and 2)
1741 <table align="right" border="1">
1745 <td rowspan="2">Cell 2, row 1 (and 2)
1766 {| bgcolor=#ABCDEF border=2
1771 |the original table again
1779 <table bgcolor="#ABCDEF" border="2">
1790 <td>the original table again
1798 Invalid attributes in table cell (bug 1830)
1814 Heading inside table (affected by r85922)
1825 <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>
1833 A table with a caption with unclosed italic
1841 <caption><i>caption</i>
1852 A table with unclosed italic in a cell
1868 A table with unclosed italic in a th
1888 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1891 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1895 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a>
1897 <td>]" onmouseover="alert(document.cookie)">test
1905 Indented Tables, bug 20078
1931 Arbitrary whitespace should not be prepended
1975 Plain link, capitalized
1979 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1984 Plain link, uncapitalized
1988 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1995 [[Main Page|The Main Page]]
1997 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2006 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2011 Broken link with fragment
2013 [[Zigzagzogzagzig#zug]]
2015 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2020 Special page link with fragment
2022 [[Special:Version#anchor]]
2024 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2029 Nonexistent special page link with fragment
2031 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2033 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2040 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2042 <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>
2049 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2051 <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>!!!
2056 Link with 3 brackets
2065 Piped link with 3 brackets
2067 [[[main page|the main page]]]
2069 <p>[[[main page|the main page]]]
2074 Link with multiple pipes
2076 [[Main Page|The|Main|Page]]
2078 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2085 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2087 <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>
2092 Piped link to namespace
2094 [[Meta:Disclaimers|The disclaimers]]
2096 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2103 [[Usually caused by a typo (oops}]]
2105 <p>[[Usually caused by a typo (oops}]]
2110 Link containing % (not as a hex sequence)
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 single hex sequence interpreted to char
2123 <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>
2128 Link containing % as a double hex sequence interpreted to hex sequence
2132 <p>[[7%2525 Solution]]
2137 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2138 Example for such a section: == < ==
2140 [[%23%3c]][[%23%3e]]
2142 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2147 Link containing "<#" and ">#" as a hex sequences
2149 [[%3c%23]][[%3e%23]]
2151 <p>[[%3c%23]][[%3e%23]]
2156 Link containing double-single-quotes '' (bug 4598)
2158 [[Lista d''e paise d''o munno]]
2160 <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>
2165 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2167 Some [[Link|pretty ''italics'' and stuff]]!
2169 <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>!
2174 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2176 ''Some [[Link|pretty ''italics'' and stuff]]!
2178 <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>
2183 Link with double quotes in title part (literal) and alternate part (interpreted)
2185 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2189 [[''Pentecoste''|Pentecoste]]
2191 [[''Pentecoste''|''Pentecoste'']]
2193 <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>
2194 </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>
2195 </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>
2196 </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>
2203 [[http://www.example.com]]
2205 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2210 Plain link to URL with link text
2212 [[http://www.example.com Link text]]
2214 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2219 Plain link to protocol-relative URL
2221 [[//www.example.com]]
2223 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2228 Plain link to protocol-relative URL with link text
2230 [[//www.example.com Link text]]
2232 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2237 # I'm fairly sure the expected result here is wrong.
2238 # We want these to be URL links, not pseudo-pages with URLs for titles....
2239 # However the current output is also pretty screwy.
2242 # I'm changing it to match the current output--it arguably makes more
2243 # sense in the light of the test above. Old expected result was:
2244 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2246 # But I think this test is bordering on "garbage in, garbage out" anyway.
2251 Piped link to URL: [[http://www.example.com|an example URL]]
2253 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2258 BUG 2: [[page|http://url/]] should link to page, not http://url/
2260 [[Main Page|http://url/]]
2262 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2267 BUG 337: Escaped self-links should be bold
2271 [[Bug462]] [[Bug462]]
2273 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2278 Self-link to section should not be bold
2282 [[Main Page#section]]
2284 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2295 Self-link to numeric title
2301 <p><strong class="selflink">0</strong>
2306 Link to numeric-equivalent title
2312 <p><a href="/wiki/00" title="00">00</a>
2317 <nowiki> inside a link
2319 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2321 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2326 Non-breaking spaces in title
2328 [[ Main Page ]]
2330 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2335 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2341 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2346 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2352 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2357 Internal link with en linktrail: no apostrophes (bug 27473)
2363 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2368 Internal link with ca linktrail with apostrophes (bug 27473)
2374 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2379 Internal link with kaa linktrail with apostrophes (bug 27473)
2385 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2390 ### Interwiki links (see maintenance/interwiki.sql)
2394 Inline interwiki link
2396 [[MeatBall:SoftSecurity]]
2398 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2403 Inline interwiki link with empty title (bug 2372)
2407 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw" title="meatball:">MeatBall:</a>
2412 Interwiki link encoding conversion (bug 1636)
2414 *[[Wikipedia:ro:Olteniţa]]
2415 *[[Wikipedia:ro:Olteniţa]]
2417 <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>
2418 </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>
2424 Interwiki link with fragment (bug 2130)
2426 [[MeatBall:SoftSecurity#foo]]
2428 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2443 Double interlanguage link
2454 Interlanguage link, with prefix links
2466 Double interlanguage link, with prefix links (bug 8897)
2493 Incorrecly removing closing slashes from correctly formed XHTML
2495 <br style="clear:both;" />
2497 <p><br style="clear:both;" />
2502 Failing to transform badly formed HTML into correct XHTML
2508 <p><br clear="left" />
2509 <br clear="right" />
2515 Horizontal ruler (should it add that extra space?)
2529 ### Block-level elements
2552 <ol><li>Numbered list
2569 ***#Number on level 4
2571 **#Number on level 3
2572 **#Number on level 3
2577 <ol><li> with numbers
2579 <ul><li> and bullets
2581 <ol><li> and numbers
2583 </li><li>bullets again
2584 <ul><li>bullet level 2
2585 <ul><li>bullet level 3
2586 <ol><li>Number on level 4
2589 </li><li>bullet level 2
2590 <ol><li>Number on level 3
2591 </li><li>Number on level 3
2594 <ol><li>number level 2
2602 List items are not parsed correctly following a <pre> block (bug 785)
2608 <ul><li> <pre>foo</pre>
2609 </li><li> <pre>bar</pre>
2620 Magic Word: {{CURRENTDAY}}
2629 Magic Word: {{CURRENTDAY2}}
2638 Magic Word: {{CURRENTDAYNAME}}
2647 Magic Word: {{CURRENTDOW}}
2656 Magic Word: {{CURRENTMONTH}}
2665 Magic Word: {{CURRENTMONTHABBREV}}
2667 {{CURRENTMONTHABBREV}}
2674 Magic Word: {{CURRENTMONTHNAME}}
2676 {{CURRENTMONTHNAME}}
2683 Magic Word: {{CURRENTMONTHNAMEGEN}}
2685 {{CURRENTMONTHNAMEGEN}}
2692 Magic Word: {{CURRENTTIME}}
2701 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2710 Magic Word: {{CURRENTYEAR}}
2719 Magic Word: {{FULLPAGENAME}}
2721 title=[[User:Ævar Arnfjörð Bjarmason]]
2725 <p>User:Ævar Arnfjörð Bjarmason
2730 Magic Word: {{FULLPAGENAMEE}}
2732 title=[[User:Ævar Arnfjörð Bjarmason]]
2736 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2741 Magic Word: {{NAMESPACE}}
2743 title=[[User:Ævar Arnfjörð Bjarmason]]
2752 Magic Word: {{NAMESPACEE}}
2754 title=[[User:Ævar Arnfjörð Bjarmason]]
2763 Magic Word: {{NUMBEROFFILES}}
2772 Magic Word: {{PAGENAME}}
2774 title=[[User:Ævar Arnfjörð Bjarmason]]
2778 <p>Ævar Arnfjörð Bjarmason
2783 Magic Word: {{PAGENAME}} with metacharacters
2785 title=[['foo & bar = baz']]
2789 <p><i>'foo & bar = baz'</i>
2794 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2796 title=[[*RFC 1234 http://example.com/]]
2800 <p>*RFC 1234 http://example.com/
2805 Magic Word: {{PAGENAMEE}}
2807 title=[[User:Ævar Arnfjörð Bjarmason]]
2811 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2816 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2818 title=[[*RFC 1234 http://example.com/]]
2822 <p>*RFC_1234_http://example.com/
2827 Magic Word: {{REVISIONID}}
2836 Magic Word: {{SCRIPTPATH}}
2845 Magic Word: {{SERVER}}
2849 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2854 Magic Word: {{SERVERNAME}}
2863 Magic Word: {{SITENAME}}
2872 Namespace 1 {{ns:1}}
2881 Namespace 1 {{ns:01}}
2890 Namespace 0 {{ns:0}} (bug 4783)
2898 Namespace 0 {{ns:00}} (bug 4783)
2906 Namespace -1 {{ns:-1}}
2915 Namespace User {{ns:User}}
2924 Namespace User talk {{ns:User_talk}}
2933 Namespace User talk {{ns:uSeR tAlK}}
2942 Namespace File {{ns:File}}
2951 Namespace File {{ns:Image}}
2960 Namespace (lang=de) Benutzer {{ns:User}}
2971 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2977 <p>Benutzer Diskussion
2985 {{urlencode:hi world?!}}
2986 {{urlencode:hi world?!|WIKI}}
2987 {{urlencode:hi world?!|PATH}}
2988 {{urlencode:hi world?!|QUERY}}
3001 Magic links: internal link to RFC (bug 479)
3005 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3010 Magic links: RFC (bug 479)
3014 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc822">RFC 822</a>
3019 Magic links: ISBN (bug 1937)
3023 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3028 Magic links: PMID incorrectly converts space to underscore
3032 <p><a class="external mw-magiclink-pmid" href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3041 Nonexistent template
3043 {{thistemplatedoesnotexist}}
3045 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3052 This is a test template
3060 <p>This is a test template
3065 Template with explicit namespace
3069 <p>This is a test template
3077 This is a test template with parameter {{{param}}}
3083 {{paramtest|param=foo}}
3085 <p>This is a test template with parameter foo
3090 Template:paramtestnum
3096 Template unnamed parameter
3098 {{paramtestnum|Main Page|the main page}}
3100 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3105 Template:templatesimple
3111 Template:templateredirect
3113 #redirect [[Template:templatesimple]]
3117 Template:templateasargtestnum
3123 Template:templateasargtest
3125 {{template{{{templ}}}}}
3129 Template:templateasargtest2
3135 Template with template name as unnamed argument
3137 {{templateasargtestnum|templatesimple}}
3144 Template with template name as argument
3146 {{templateasargtest|templ=simple}}
3153 Template with template name as argument (2)
3155 {{templateasargtest2|templ=templatesimple}}
3162 Template:templateasargtestdefault
3164 {{{{{templ|templatesimple}}}}}
3174 Template with default value
3176 {{templateasargtestdefault}}
3183 Template with default value (value set)
3185 {{templateasargtestdefault|templ=templa}}
3194 {{templateredirect}}
3201 Template with argument in separate line
3203 {{ templateasargtest |
3211 Template with complex template as argument
3214 param ={{ templateasargtest |
3217 <p>This is a test template with parameter (test)
3222 Template with thumb image (with link in description)
3225 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3227 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>
3232 Template:complextemplate
3234 {{{1}}} {{paramtest|
3235 param ={{{param}}}}}
3239 Template with complex arguments
3242 param ={{ templateasargtest |
3243 templ = simple }}|[[Template:complextemplate|link]]}}
3245 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3250 BUG 553: link with two variables in a piped link
3253 |[[{{{1}}}|{{{2}}}]]
3258 <td>[[{{{1}}}|{{{2}}}]]
3266 Magic variable as template parameter
3268 {{paramtest|param={{SITENAME}}}}
3270 <p>This is a test template with parameter MediaWiki
3277 [[{{{param}}}|link]]
3281 Template parameter as link source
3283 {{linktest|param=Main Page}}
3285 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3293 including another template, {{paramtest|param={{{arg}}}}}
3297 Template passing argument to another template
3299 {{paramtest2|arg='hmm'}}
3301 <p>including another template, This is a test template with parameter 'hmm'
3312 Template as link source
3316 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3334 Template infinite loop
3338 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
3343 Template from main namespace
3362 BUG 529: Template with table, not included at beginning of line
3386 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3411 BUG 41: Template parameters shown as broken links
3423 ''None'' of '''this''' should be
3425 but rather passed unmodified
3429 # hmm, fix this or just deprecate msgnw and document its behavior?
3435 {{msgnw:MSGNW test}}
3437 <p>''None'' of '''this''' should be
3439 but rather passed unmodified
3447 {{int:youhavenewmessages|lots of money|not!}}
3449 <p>You have lots of money (not!).
3456 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3460 <includeonly> and <noinclude> being included
3471 <onlyinclude>Foo</onlyinclude>bar
3475 <onlyinclude> being included
3487 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3491 <onlyinclude> and <includeonly> being included
3500 <includeonly> and <noinclude> on a page
3502 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3509 <onlyinclude> on a page
3511 <onlyinclude>Foo</onlyinclude>bar
3518 Template:Includeonly section
3521 ==Includeonly section==
3527 Bug 6563: Edit link generation for section shown by <includeonly>
3529 {{includeonly section}}
3531 <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>
3532 <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>
3536 # Uses same input as the contents of [[Template:Includeonly section]]
3538 Bug 6563: Section extraction for section shown by <includeonly>
3543 ==Includeonly section==
3551 Bug 6563: Edit link generation for section suppressed by <includeonly>
3554 ==Includeonly section==
3558 <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>
3563 Bug 6563: Section extraction for section suppressed by <includeonly>
3568 ==Includeonly section==
3575 Template:Top-level template
3581 Template:Nested template
3588 Line-start flag in a nested template call
3593 {{Top-level template}}
3605 ### Pre-save transform tests
3608 pre-save transform: subst:
3614 This is a test template
3618 pre-save transform: normal template
3628 pre-save transform: nonexistent template
3632 {{thistemplatedoesnotexist}}
3634 {{thistemplatedoesnotexist}}
3639 pre-save transform: subst magic variables
3648 # This is bug 89, which I fixed. -- wtm
3650 pre-save transform: subst: templates with parameters
3654 {{subst:paramtest|param="something else"}}
3656 This is a test template with parameter "something else"
3662 <nowiki>'''not wiki'''</nowiki>
3666 pre-save transform: nowiki in subst (bug 1188)
3670 {{subst:nowikitest}}
3672 <nowiki>'''not wiki'''</nowiki>
3677 Template:commenttest
3679 This template has <!-- a comment --> in it.
3683 pre-save transform: comment in subst (bug 1936)
3687 {{subst:commenttest}}
3689 This template has <!-- a comment --> in it.
3693 pre-save transform: unclosed tag
3697 <nowiki>'''not wiki'''
3699 <nowiki>'''not wiki'''
3703 pre-save transform: mixed tag case
3707 <NOwiki>'''not wiki'''</noWIKI>
3709 <NOwiki>'''not wiki'''</noWIKI>
3713 pre-save transform: unclosed comment in <nowiki>
3717 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3719 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3725 <span onmouseover="alert('crap')">Oh no</span>
3729 (confirming safety of fix for subst bug 1936)
3731 {{Template:dangerous}}
3733 <p><span>Oh no</span>
3738 pre-save transform: comment containing gallery (bug 5024)
3742 <!-- <gallery>data</gallery> -->
3744 <!-- <gallery>data</gallery> -->
3748 pre-save transform: comment containing extension
3752 <!-- <tag>data</tag> -->
3754 <!-- <tag>data</tag> -->
3758 pre-save transform: comment containing nowiki
3762 <!-- <nowiki>data</nowiki> -->
3764 <!-- <nowiki>data</nowiki> -->
3768 pre-save transform: <noinclude> in subst (bug 3298)
3778 pre-save transform: <onlyinclude> in subst (bug 3298)
3790 {{<includeonly>subst:</includeonly>Includes}}
3794 Template:SafeSubstTest
3796 {{<includeonly>safesubst:</includeonly>Includes}}
3800 bug 22297: safesubst: works during PST
3804 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3810 bug 22297: safesubst: works during normal parse
3819 subst: does not work during normal parse
3823 <p>{{subst:Includes}}
3828 pre-save transform: context links ("pipe trick")
3832 [[Article (context)|]]
3835 [[Bar:Article (context)|]]
3836 [[:Bar:Article (context)|]]
3838 [[|Article (context)]]
3842 [[Article (context)|Article]]
3843 [[Bar:Article|Article]]
3844 [[:Bar:Article|Article]]
3845 [[Bar:Article (context)|Article]]
3846 [[:Bar:Article (context)|Article]]
3848 [[Article (context)]]
3849 [[Bar:X (Y) Z|X (Y) Z]]
3850 [[:Bar:X (Y) Z|X (Y) Z]]
3854 pre-save transform: context links ("pipe trick") with interwiki prefix
3858 [[interwiki:Article|]]
3859 [[:interwiki:Article|]]
3860 [[interwiki:Bar:Article|]]
3861 [[:interwiki:Bar:Article|]]
3863 [[interwiki:Article|Article]]
3864 [[:interwiki:Article|Article]]
3865 [[interwiki:Bar:Article|Bar:Article]]
3866 [[:interwiki:Bar:Article|Bar:Article]]
3870 pre-save transform: context links ("pipe trick") with parens in title
3872 pst title=[[Somearticle (context)]]
3876 [[Article (context)|Article]]
3880 pre-save transform: context links ("pipe trick") with comma in title
3882 pst title=[[Someplace, Somewhere]]
3885 [[Otherplace, Elsewhere|]]
3886 [[Otherplace, Elsewhere, Anywhere|]]
3888 [[Otherplace, Somewhere|Otherplace]]
3889 [[Otherplace, Elsewhere|Otherplace]]
3890 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3894 pre-save transform: context links ("pipe trick") with parens and comma
3896 pst title=[[Someplace (IGNORED), Somewhere]]
3899 [[Otherplace (place), Elsewhere|]]
3901 [[Otherplace, Somewhere|Otherplace]]
3902 [[Otherplace (place), Elsewhere|Otherplace]]
3906 pre-save transform: context links ("pipe trick") with comma and parens
3908 pst title=[[Who, me? (context)]]
3911 [[Me, Myself, and I (1937 song)|]]
3913 [[Yes, you. (context)|Yes, you.]]
3914 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3918 pre-save transform: context links ("pipe trick") with namespace
3920 pst title=[[Ns:Somearticle]]
3924 [[Ns:Article|Article]]
3928 pre-save transform: context links ("pipe trick") with namespace and parens
3930 pst title=[[Ns:Somearticle (context)]]
3934 [[Ns:Article (context)|Article]]
3938 pre-save transform: context links ("pipe trick") with namespace and comma
3940 pst title=[[Ns:Somearticle, Context, Whatever]]
3944 [[Ns:Article, Context, Whatever|Article]]
3948 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3950 pst title=[[Ns:Somearticle, Context (context)]]
3954 [[Ns:Article (context)|Article]]
3958 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3960 pst title=[[Ns:Somearticle (IGNORED), Context]]
3964 [[Ns:Article, Context|Article]]
3968 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
3972 [[Article(context)|]]
3973 [[Bar:Article(context)|]]
3974 [[:Bar:Article(context)|]]
3975 [[|Article(context)]]
3979 [[Article(context)|Article]]
3980 [[Bar:Article(context)|Article]]
3981 [[:Bar:Article(context)|Article]]
3982 [[Article(context)]]
3983 [[Bar:X (Y) Z|X (Y) Z]]
3984 [[:Bar:X (Y) Z|X (Y) Z]]
3988 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
3992 [[Article (context)|]]
3993 [[Bar:Article (context)|]]
3994 [[:Bar:Article (context)|]]
3995 [[|Article (context)]]
3999 [[Article (context)|Article]]
4000 [[Bar:Article (context)|Article]]
4001 [[:Bar:Article (context)|Article]]
4002 [[Article (context)]]
4003 [[Bar:X (Y) Z|X (Y) Z]]
4004 [[:Bar:X (Y) Z|X (Y) Z]]
4008 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
4012 [[Article(context)|]]
4013 [[Bar:Article(context)|]]
4014 [[:Bar:Article(context)|]]
4015 [[|Article(context)]]
4019 [[Article(context)|Article]]
4020 [[Bar:Article(context)|Article]]
4021 [[:Bar:Article(context)|Article]]
4022 [[Article(context)]]
4024 [[:Bar:X(Y)Z|X(Y)Z]]
4028 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
4032 [[Article(context)|]]
4033 [[Bar:Article(context)|]]
4034 [[:Bar:Article(context)|]]
4035 [[|Article(context)]]
4039 [[Article(context)|Article]]
4040 [[Bar:Article(context)|Article]]
4041 [[:Bar:Article(context)|Article]]
4042 [[Article(context)]]
4043 [[Bar:X (Y) Z|X (Y) Z]]
4044 [[:Bar:X (Y) Z|X (Y) Z]]
4048 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
4052 [[Article (context)|]]
4053 [[Bar:Article (context)|]]
4054 [[:Bar:Article (context)|]]
4055 [[|Article (context)]]
4059 [[Article (context)|Article]]
4060 [[Bar:Article (context)|Article]]
4061 [[:Bar:Article (context)|Article]]
4062 [[Article (context)]]
4063 [[Bar:X (Y) Z|X (Y) Z]]
4064 [[:Bar:X (Y) Z|X (Y) Z]]
4068 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
4072 [[Article(context)|]]
4073 [[Bar:Article(context)|]]
4074 [[:Bar:Article(context)|]]
4075 [[|Article(context)]]
4079 [[Article(context)|Article]]
4080 [[Bar:Article(context)|Article]]
4081 [[:Bar:Article(context)|Article]]
4082 [[Article(context)]]
4084 [[:Bar:X(Y)Z|X(Y)Z]]
4088 pre-save transform: trim trailing empty lines
4092 Empty lines are trimmed
4098 Empty lines are trimmed
4102 pre-save transform: Signature expansion
4107 * <noinclude>~~~</noinclude>
4108 * <includeonly>~~~</includeonly>
4109 * <onlyinclude>~~~</onlyinclude>
4111 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
4112 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
4113 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
4114 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
4119 pre-save transform: Signature expansion in nowiki tags (bug 93)
4125 <nowiki>~~~~</nowiki>
4127 <includeonly><nowiki>~~~~</nowiki></includeonly>
4129 <noinclude><nowiki>~~~~</nowiki></noinclude>
4131 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4133 {{subst:Foo}} shall be converted to FOO
4135 As well as inside noinclude/onlyinclude
4136 <noinclude>{{subst:Foo}}</noinclude>
4137 <onlyinclude>{{subst:Foo}}</onlyinclude>
4139 But not inside includeonly
4140 <includeonly>{{subst:Foo}}</includeonly>
4144 <nowiki>~~~~</nowiki>
4146 <includeonly><nowiki>~~~~</nowiki></includeonly>
4148 <noinclude><nowiki>~~~~</nowiki></noinclude>
4150 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4152 FOO shall be converted to FOO
4154 As well as inside noinclude/onlyinclude
4155 <noinclude>FOO</noinclude>
4156 <onlyinclude>FOO</onlyinclude>
4158 But not inside includeonly
4159 <includeonly>{{subst:Foo}}</includeonly>
4163 ### Message transform tests
4166 message transform: magic variables
4176 message transform: should not transform wiki markup
4186 message transform: <noinclude> in transcluded template (bug 4926)
4196 message transform: <onlyinclude> in transcluded template (bug 4926)
4206 {{#special:}} page name, known
4210 {{#special:Recentchanges}}
4212 Special:RecentChanges
4216 {{#special:}} page name with subpage, known
4220 {{#special:Recentchanges/param}}
4222 Special:RecentChanges/param
4226 {{#special:}} page name, unknown
4230 {{#special:foobarnonexistent}}
4232 No such special page
4241 [[Image:foobar.jpg]]
4243 <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>
4250 [[Image:foobar.jpg|right]]
4252 <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>
4257 Simple image (using File: namespace, now canonical)
4261 <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>
4268 [[Image:foobar.jpg|right|Caption text]]
4270 <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>
4275 Image with link parameter, wiki target
4277 [[Image:foobar.jpg|link=Target page]]
4279 <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>
4284 Image with link parameter, URL target
4286 [[Image:foobar.jpg|link=http://example.com/]]
4288 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4293 Image with link parameter, wgExternalLinkTarget
4295 [[Image:foobar.jpg|link=http://example.com/]]
4297 wgExternalLinkTarget='foobar'
4299 <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>
4304 Image with link parameter, wgExternalLinkTarget, unnamed parameter
4306 [[Image:foobar.jpg|link=http://example.com/|Title]]
4308 wgExternalLinkTarget='foobar'
4310 <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>
4315 Image with empty link parameter
4317 [[Image:foobar.jpg|link=]]
4319 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
4324 Image with link parameter (wiki target) and unnamed parameter
4326 [[Image:foobar.jpg|link=Target page|Title]]
4328 <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>
4333 Image with link parameter (URL target) and unnamed parameter
4335 [[Image:foobar.jpg|link=http://example.com/|Title]]
4337 <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>
4342 Thumbnail image with link parameter
4344 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
4346 <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>
4351 Image with frame and link
4353 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
4355 <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>
4360 Image with frame and link and explicit alt
4362 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
4364 <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>
4369 Image with wiki markup in implicit alt
4371 [[Image:Foobar.jpg|testing '''bold''' in alt]]
4373 <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>
4378 Image with wiki markup in explicit alt
4380 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
4382 <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>
4387 Link to image page- image page normally doesn't exists, hence edit link
4388 Add test with existing image page
4389 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
4393 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
4398 bug 18784 Link to non-existent image page with caption should use caption as link text
4400 [[:Image:test|caption]]
4402 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
4407 Frameless image caption with a free URL
4409 [[Image:foobar.jpg|http://example.com]]
4411 <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>
4416 Thumbnail image caption with a free URL
4418 [[Image:foobar.jpg|thumb|http://example.com]]
4420 <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>
4425 Thumbnail image caption with a free URL and explicit alt
4427 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
4429 <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>
4434 BUG 1887: A ISBN with a thumbnail
4436 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
4438 <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>
4443 BUG 1887: A RFC with a thumbnail
4445 [[Image:foobar.jpg|thumb|This is RFC 12354]]
4447 <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>
4452 BUG 1887: A mailto link with a thumbnail
4454 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
4456 <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>
4460 # Pending resolution to bug 368
4462 BUG 648: Frameless image caption with a link
4464 [[Image:foobar.jpg|text with a [[link]] in it]]
4466 <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>
4471 BUG 648: Frameless image caption with a link (suffix)
4473 [[Image:foobar.jpg|text with a [[link]]foo in it]]
4475 <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>
4480 BUG 648: Frameless image caption with an interwiki link
4482 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4484 <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>
4489 BUG 648: Frameless image caption with a piped interwiki link
4491 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4493 <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>
4498 Escape HTML special chars in image alt text
4500 [[Image:foobar.jpg|& < > "]]
4502 <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>
4507 BUG 499: Alt text should have Ӓ, not &1234;
4509 [[Image:foobar.jpg|♀]]
4511 <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>
4516 Broken image caption with link
4518 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4520 <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.
4525 Image caption containing another image
4527 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4529 <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>
4534 Image caption containing a newline
4536 [[Image:Foobar.jpg|This
4539 <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>
4545 Bug 3090: External links other than http: in image captions
4547 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4549 <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>
4556 #REDIRECT [[File:Barfoo.jpg]]
4562 [[Image:Barfoo.jpg]]
4564 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
4569 Missing image with uploads disabled
4573 [[Image:Foobaz.jpg]]
4575 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
4584 Subpage test/subpage
4592 subpage title=[[Subpage test]]
4596 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
4601 Subpage noslash link
4603 subpage title=[[Subpage test]]
4607 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4616 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4621 BUG 561: {{/Subpage}}
4623 subpage title=[[Page]]
4627 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4635 Category:MediaWiki User's Guide
4643 [[:Category:MediaWiki User's Guide]]
4645 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
4654 [[Category:MediaWiki User's Guide]]
4656 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4660 PAGESINCATEGORY invalid title fatal (r33546 fix)
4662 {{PAGESINCATEGORY:<bogus>}}
4669 ### Inter-language links
4672 Inter-language links
4678 [[zh:食品]]
4680 es:Alimento fr:Nourriture zh:食品
4687 Basic section headings
4694 ===Smaller headline===
4697 <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>
4700 <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>
4703 <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>
4709 Section headings with TOC
4712 === Subheadline 1 ===
4713 ===== Skipping a level =====
4714 ====== Skipping a level ======
4718 ===Another headline===
4720 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4722 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4724 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4726 <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>
4728 <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>
4735 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4737 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4742 <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>
4743 <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>
4744 <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>
4745 <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>
4746 <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>
4749 <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>
4753 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4755 Handling of sections up to level 6 and beyond
4758 == Level 2 Heading==
4759 === Level 3 Heading===
4760 ==== Level 4 Heading====
4761 ===== Level 5 Heading=====
4762 ====== Level 6 Heading======
4763 ======= Level 7 Heading=======
4764 ======== Level 8 Heading========
4765 ========= Level 9 Heading=========
4766 ========== Level 10 Heading==========
4768 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4770 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4772 <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>
4774 <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>
4776 <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>
4778 <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>
4780 <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>
4781 <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>
4782 <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>
4783 <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>
4784 <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>
4797 <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>
4798 <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>
4799 <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>
4800 <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>
4801 <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>
4802 <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>
4803 <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>
4804 <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>
4805 <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>
4806 <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>
4811 TOC regression (bug 9764)
4815 ==== title 1.1.1 ====
4820 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4822 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4824 <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>
4826 <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>
4829 <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>
4832 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4834 <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>
4839 <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>
4840 <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>
4841 <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>
4842 <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>
4843 <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>
4844 <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>
4849 TOC with wgMaxTocLevel=3 (bug 6204)
4855 ==== title 1.1.1 ====
4860 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4862 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4864 <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>
4865 <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>
4868 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4870 <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>
4875 <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>
4876 <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>
4877 <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>
4878 <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>
4879 <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>
4880 <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>
4885 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4891 ====Section 1.1.1====
4892 ====Section 1.1.1.1====
4895 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4897 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4899 <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>
4902 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4905 <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>
4906 <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>
4907 <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>
4908 <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>
4909 <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>
4915 Resolving duplicate section names
4920 <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>
4921 <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>
4926 Resolving duplicate section names with differing case (bug 10721)
4931 <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>
4932 <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>
4944 Template with sections, __NOTOC__
4951 <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>
4952 <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>
4953 <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>
4954 <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>
4959 __NOEDITSECTION__ keyword
4965 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4966 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4971 Link inside a section heading
4973 ==Section with a [[Main Page|link]] in it==
4975 <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>
4980 TOC regression (bug 12077)
4987 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4989 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4991 <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>
4994 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4997 <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>
4998 <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>
4999 <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>
5004 BUG 1219 URL next to image (good)
5006 http://example.com [[Image:foobar.jpg]]
5008 <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>
5013 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
5016 The line above must have a trailing space!
5019 But just in case it doesn't...
5021 <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>
5022 <p>The line above must have a trailing space!
5024 <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>
5025 <p>But just in case it doesn't...
5030 Header with special characters (bug 25462)
5032 The tooltips shall not show entities to the user (ie. be double escaped)
5049 <p>The tooltips shall not show entities to the user (ie. be double escaped)
5051 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5053 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
5054 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
5055 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
5056 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
5057 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
5060 <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>
5063 <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>
5066 <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>
5069 <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>
5072 <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>
5078 BUG 1219 URL next to image (broken)
5080 http://example.com[[Image:foobar.jpg]]
5082 <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>
5087 Bug 1186 news: in the middle of text
5089 http://en.wikinews.org/wiki/Wikinews:Workplace
5091 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
5097 Namespaced link must have a title
5106 Namespaced link must have a title (bad fragment version)
5108 [[Project:#fragment]]
5110 <p>[[Project:#fragment]]
5116 div with no attributes
5118 <div>HTML rocks</div>
5120 <div>HTML rocks</div>
5125 div with double-quoted attribute
5127 <div id="rock">HTML rocks</div>
5129 <div id="rock">HTML rocks</div>
5134 div with single-quoted attribute
5136 <div id='rock'>HTML rocks</div>
5138 <div id="rock">HTML rocks</div>
5143 div with unquoted attribute
5145 <div id=rock>HTML rocks</div>
5147 <div id="rock">HTML rocks</div>
5152 div with illegal double attributes
5154 <div align="center" align="right">HTML rocks</div>
5156 <div align="right">HTML rocks</div>
5161 HTML multiple attributes correction
5163 <p class="error" class="awesome">Awesome!</p>
5165 <p class="awesome">Awesome!</p>
5170 Table multiple attributes correction
5173 !+ class="error" class="awesome"| status
5178 <th class="awesome">status
5188 <DIV ALIGN="center">HTML ROCKS</DIV>
5190 <div align="center">HTML ROCKS</div>
5196 text with amp in the middle of nowhere
5200 <p>Remember AT&T?
5205 text with character entity: eacute
5207 I always thought é was a cute letter.
5209 <p>I always thought é was a cute letter.
5214 text with undefined character entity: xacute
5216 I always thought &xacute; was a cute letter.
5218 <p>I always thought &xacute; was a cute letter.
5230 [[Media:Foobar.jpg]]
5232 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
5237 Media link with text
5239 [[Media:Foobar.jpg|A neat file to look at]]
5241 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
5245 # FIXME: this is still bad HTML tag nesting
5247 Media link with nasty text
5248 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
5250 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
5252 <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>
5257 Media link to nonexistent file (bug 1702)
5259 [[Media:No such.jpg]]
5261 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
5266 Image link to nonexistent file (bug 1850 - good)
5268 [[Image:No such.jpg]]
5270 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
5275 :Image link to nonexistent file (bug 1850 - bad)
5277 [[:Image:No such.jpg]]
5279 <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>
5286 Character reference normalization in link text (bug 1938)
5288 [[Main Page|this&that]]
5290 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
5297 Test for unicode normalization
5299 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
5303 (bug 19451) Links should refer to the normalized form.
5311 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5312 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5313 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5314 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5315 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5320 Empty attribute crash test (bug 2067)
5322 <font color="">foo</font>
5324 <p><font color="">foo</font>
5329 Empty attribute crash test single-quotes (bug 2067)
5331 <font color=''>foo</font>
5333 <p><font color="">foo</font>
5338 Attribute test: equals, then nothing
5340 <font color=>foo</font>
5347 Attribute test: unquoted value
5349 <font color=x>foo</font>
5351 <p><font color="x">foo</font>
5356 Attribute test: unquoted but illegal value (hash)
5358 <font color=#x>foo</font>
5360 <p><font color="#x">foo</font>
5365 Attribute test: no value
5367 <font color>foo</font>
5369 <p><font color="color">foo</font>
5374 Bug 2095: link with three closing brackets
5378 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
5383 Bug 2095: link with pipe and three closing brackets
5387 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
5392 Bug 2095: link with pipe and three closing brackets, version 2
5394 [[Main Page|[http://example.com/]]]
5396 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
5406 Template:Dangerous attribute
5408 " onmouseover="alert(document.cookie)
5412 Template:Dangerous style attribute
5414 border-size: expression(alert(document.cookie))
5420 <div style="float: right; {{{1}}}">Magic div</div>
5424 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
5426 <div title="{{test}}"></div>
5428 <div title="This is a test template"></div>
5433 Bug 2304: HTML attribute safety (dangerous template; 2309)
5435 <div title="{{dangerous attribute}}"></div>
5437 <div title=""></div>
5442 Bug 2304: HTML attribute safety (dangerous style template; 2309)
5444 <div style="{{dangerous style attribute}}"></div>
5446 <div style="/* insecure input */"></div>
5451 Bug 2304: HTML attribute safety (safe parameter; 2309)
5453 {{div style|width: 200px}}
5455 <div style="float: right; width: 200px">Magic div</div>
5460 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
5462 {{div style|width: expression(alert(document.cookie))}}
5464 <div style="/* insecure input */">Magic div</div>
5469 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
5471 {{div style|"><script>alert(document.cookie)</script>}}
5473 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5478 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5480 {{div style|" ><script>alert(document.cookie)</script>}}
5482 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5487 Bug 2304: HTML attribute safety (link)
5489 <div title="[[Main Page]]"></div>
5491 <div title="[[Main Page]]"></div>
5496 Bug 2304: HTML attribute safety (italics)
5498 <div title="''foobar''"></div>
5500 <div title="''foobar''"></div>
5505 Bug 2304: HTML attribute safety (bold)
5507 <div title="'''foobar'''"></div>
5509 <div title="'''foobar'''"></div>
5515 Bug 2304: HTML attribute safety (ISBN)
5517 <div title="ISBN 1234567890"></div>
5519 <div title="ISBN 1234567890"></div>
5524 Bug 2304: HTML attribute safety (RFC)
5526 <div title="RFC 1234"></div>
5528 <div title="RFC 1234"></div>
5533 Bug 2304: HTML attribute safety (PMID)
5535 <div title="PMID 1234567890"></div>
5537 <div title="PMID 1234567890"></div>
5542 Bug 2304: HTML attribute safety (web link)
5544 <div title="http://example.com/"></div>
5546 <div title="http://example.com/"></div>
5551 Bug 2304: HTML attribute safety (named web link)
5553 <div title="[http://example.com/ link]"></div>
5555 <div title="[http://example.com/ link]"></div>
5560 Bug 3244: HTML attribute safety (extension; safe)
5562 <div style="<nowiki>background:blue</nowiki>"></div>
5564 <div style="background:blue"></div>
5569 Bug 3244: HTML attribute safety (extension; unsafe)
5571 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
5573 <div style="/* insecure input */"></div>
5577 # More MSIE fun discovered by Tom Gilder
5580 MSIE CSS safety test: spurious slash
5582 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
5584 <div style="/* insecure input */">evil</div>
5589 MSIE CSS safety test: hex code
5591 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
5593 <div style="/* insecure input */">evil</div>
5598 MSIE CSS safety test: comment in url
5600 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
5602 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
5607 MSIE CSS safety test: comment in expression
5609 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
5611 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5617 Table attribute legitimate extension
5620 !+ style="<nowiki>color:blue</nowiki>"| status
5625 <th style="color:blue">status
5633 Table attribute safety
5636 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5641 <th style="/* insecure input */">status
5649 CSS line continuation 1
5651 <div style="background-image: u\ rl(test.jpg);"></div>
5653 <div style="/* insecure input */"></div>
5658 CSS line continuation 2
5660 <div style="background-image: u\ rl(test.jpg); "></div>
5662 <div style="/* insecure input */"></div>
5673 Expansion of multi-line templates in attribute values (bug 6255)
5675 <div style="background: {{identity|#00FF00}}">-</div>
5677 <div style="background: #00FF00">-</div>
5683 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5685 <div style="background:
5688 <div style="background: #00FF00">-</div>
5693 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5695 <div style="background: #00FF00">-</div>
5697 <div style="background: #00FF00">-</div>
5702 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5705 Parser hook: empty input
5718 Parser hook: empty input using terminated empty elements
5731 Parser hook: empty input using terminated empty elements (space before)
5744 Parser hook: basic input
5758 Parser hook: case insensitive
5772 Parser hook: case insensitive, redux
5785 Parser hook: nested tags
5789 <tag><tag></tag></tag>
5800 Parser hook: basic arguments
5802 <tag width=200 height = "100" depth = '50' square></tag>
5821 Parser hook: argument containing a forward slash (bug 5344)
5823 <tag filename='/tmp/bla'></tag>
5829 string(8) "/tmp/bla"
5836 Parser hook: empty input using terminated empty elements (bug 2374)
5850 # </tag> should be output literally since there is no matching tag that begins it
5852 Parser hook: basic arguments using terminated empty elements (bug 2374)
5854 <tag width=200 height = "100" depth = '50' square/>
5877 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5881 Parser hook: static parser hook not inside a comment
5883 <statictag>hello, world</statictag>
5884 <statictag action=flush/>
5892 Parser hook: static parser hook inside a comment
5894 <!-- <statictag>hello, world</statictag> -->
5895 <statictag action=flush/>
5901 # Nested template calls; this case was broken by Parser.php rev 1.506,
5905 Template:One-parameter
5907 (My parameter is: {{{1}}})
5911 Template:Map-one-parameter
5917 Nested template calls
5919 {{Map-one-parameter|One-parameter|param}}
5921 <p>(My parameter is: param)
5930 Sanitizer: Closing of open tags
5932 <s></s><table></table>
5934 <s></s><table></table>
5939 Sanitizer: Closing of open but not closed tags
5948 Sanitizer: Closing of closed but not open tags
5957 Sanitizer: Closing of closed but not open table tags
5959 Table not started</td></tr></table>
5961 <p>Table not started</td></tr></table>
5966 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5968 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5970 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5975 Sanitizer: Validating the contents of the id attribute (bug 4515)
5981 Something, but definitely not <br id="9" />...
5985 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5989 <br id="foo" /><br id="foo" />
5991 Something need to be done. foo-2 ?
5995 Language converter: output gets cut off unexpectedly (bug 5757)
5999 this bit is safe: }-
6001 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
6003 then we get cut off here: }-
6005 all additional text is vanished
6007 <p>this bit is safe: }-
6008 </p><p>but if we add a conversion instance: xxx
6009 </p><p>then we get cut off here: }-
6010 </p><p>all additional text is vanished
6015 Self closed html pairs (bug 5487)
6018 <center><font id="bug" />Centered text</center>
6019 <div><font id="bug2" />In div text</div>
6021 <center><font id="bug" />Centered text</center>
6022 <div><font id="bug2" />In div text</div>
6031 Punctuation: nbsp before exclamation
6035 <p>C'est grave !
6040 Punctuation: CSS !important (bug 11874)
6042 <div style="width:50% !important">important</div>
6044 <div style="width:50% !important">important</div>
6049 Punctuation: CSS ! important (bug 11874; with space after)
6051 <div style="width:50% ! important">important</div>
6053 <div style="width:50% ! important">important</div>
6059 HTML bullet list, closed tags (bug 5497)
6074 HTML bullet list, unclosed tags (bug 5497)
6091 HTML ordered list, closed tags (bug 5497)
6106 HTML ordered list, unclosed tags (bug 5497)
6123 HTML nested bullet list, closed tags (bug 5497)
6148 HTML nested bullet list, open tags (bug 5497)
6173 HTML nested ordered list, closed tags (bug 5497)
6198 HTML nested ordered list, open tags (bug 5497)
6223 HTML ordered list item with parameters oddity
6225 <ol><li id="fragment">One</li></ol>
6227 <ol><li id="fragment">One</li></ol>
6232 bug 5918: autonumbering
6234 [http://first/] [http://second] [ftp://ftp]
6238 [mailto:enclosed@mail.tld With target]
6240 [mailto:enclosed@mail.tld]
6242 mailto:inline@mail.tld
6244 <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>
6245 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
6246 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
6247 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
6248 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
6254 # Security and HTML correctness
6255 # From Nick Jenkins' fuzz testing
6259 Fuzz testing: Parser13
6273 Fuzz testing: Parser14
6278 <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>
6279 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6281 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
6288 Fuzz testing: Parser14-table
6294 <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>
6295 <table style="__TOC__">
6304 # Known to produce bogus xml (extra </td>)
6306 Fuzz testing: Parser16
6326 Fuzz testing: Parser21
6329 ! irc://{{ftp://a" onmouseover="alert('hello world');"
6334 <th><a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
6343 Fuzz testing: Parser22
6345 http://===r:::https://b
6350 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
6355 # Known to produce bad XML for now
6357 # Note: the current result listed for this is not what the original one was,
6358 # but the original bug was JavaScript injection, which is fixed in any case.
6359 # It's not clear that the original result listed was any more correct than the
6360 # current one. Original result:
6363 # <u class="|">}}}} >
6364 # <br style="onmouseover='alert(document.cookie);'" />
6366 # MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6372 # Known to produce bad XML for now
6374 Fuzz testing: Parser24
6381 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
6382 <br style="onmouseover='alert(document.cookie);' " />
6384 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6388 <u class="|">}}}} >
6389 <br style="onmouseover='alert(document.cookie);'" />
6390 </p><p>MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6401 # Note: the current result listed for this is not what the original one was,
6402 # but the original bug was JavaScript injection, which is fixed in any case.
6403 # It's not clear that the original result listed was any more correct than the
6404 # current one. Original result:
6407 # <li class="||">
6408 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6410 Fuzz testing: Parser25 (bug 6055)
6416 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
6418 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6423 Fuzz testing: URL adjacent extension (with space, clean)
6426 http://example.com <nowiki>junk</nowiki>
6428 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
6433 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
6436 http://example.com<nowiki>junk</nowiki>
6438 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
6443 Fuzz testing: URL adjacent extension (no space, dirty; pre)
6446 http://example.com<pre>junk</pre>
6448 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
6453 Fuzz testing: image with bogus manual thumbnail
6455 [[Image:foobar.jpg|thumbnail= ]]
6457 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
6462 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
6464 <pre dir=" "></pre>
6466 <pre dir=" "></pre>
6471 Parsing optional HTML elements (Bug 6171)
6476 <td> Some tabular data</td>
6477 <td> More tabular data ...
6478 <td> And yet som tabular data</td>
6484 <td> Some tabular data</td>
6485 <td> More tabular data ...
6486 </td><td> And yet som tabular data</td>
6493 Correct handling of <td>, <tr> (Bug 6171)
6498 <td> Some tabular data</td>
6499 <td> More tabular data ...</td>
6500 <td> And yet som tabular data</td>
6506 <td> Some tabular data</td>
6507 <td> More tabular data ...</td>
6508 <td> And yet som tabular data</td>
6516 Parsing crashing regression (fr:JavaScript)
6520 <p></body></x>
6525 Inline wiki vs wiki block nesting
6531 <p><b>Bold paragraph</b>
6532 </p><p>New wiki paragraph
6537 Inline HTML vs wiki block nesting
6545 <p><b>Bold paragraph</b>
6546 </p><p>New wiki paragraph
6550 # Original result was this:
6551 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6553 # While that might be marginally more intuitive, maybe, the six-apostrophe
6554 # construct is clearly pathological and the result stated here (which is what
6555 # the parser actually does) is about as reasonable as anything.
6557 Mixing markup for italics and bold
6560 '''bold''''''bold''bolditalics'''''
6562 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
6570 Article for special page transclusion test
6574 Special page transclusion
6577 {{Special:Prefixindex/Xyzzyx}}
6581 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6586 Special page transclusion twice (bug 5021)
6589 {{Special:Prefixindex/Xyzzyx}}
6590 {{Special:Prefixindex/Xyzzyx}}
6594 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6597 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6602 Transclusion of default MediaWiki message
6604 {{MediaWiki:Mainpage}}
6611 Transclusion of nonexistent MediaWiki message
6613 {{MediaWiki:Mainpagexxx}}
6615 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6620 Transclusion of MediaWiki message with underscore
6622 {{MediaWiki:history_short}}
6629 Transclusion of MediaWiki message with space
6631 {{MediaWiki:history short}}
6638 Invalid header with following text
6648 Section extraction test (section 0)
6668 Section extraction test (section 1)
6690 Section extraction test (section 2)
6711 Section extraction test (section 3)
6731 Section extraction test (section 4)
6755 Section extraction test (section 5)
6775 Section extraction test (section 6)
6796 Section extraction test (section 7)
6816 Section extraction test (section 8)
6836 Section extraction test (section 9)
6857 Section extraction test (section 10)
6877 Section extraction test (nonexistent section 11)
6896 Section extraction test with bogus heading (section 1)
6901 ==bogus== not a legal section
6905 ==bogus== not a legal section
6909 Section extraction test with bogus heading (section 2)
6914 ==bogus== not a legal section
6921 Section extraction test with comment after heading (section 1)
6933 Section extraction test with comment after heading (section 2)
6945 Section extraction test with bogus <nowiki> heading (section 1)
6950 ==bogus== <nowiki>not a legal section</nowiki>
6954 ==bogus== <nowiki>not a legal section</nowiki>
6958 Section extraction test with bogus <nowiki> heading (section 2)
6963 ==bogus== <nowiki>not a legal section</nowiki>
6970 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6971 # instead of respecting commented sections
6973 Section extraction prefixed by comment (section 1)
6984 Section extraction prefixed by comment (section 2)
6995 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6996 # instead of respecting HTML-style headings
6998 Section extraction, mixed wiki and html (section 1)
7014 Section extraction, mixed wiki and html (section 2)
7030 # Formerly testing for bug 3342
7032 Section extraction, heading surrounded by <noinclude>
7036 <noinclude>==unmarked==</noinclude>
7042 # Test behaviour of bug 19910
7044 Sectiion with all-equals
7049 The line above must have a trailing space
7052 But just in case it doesn't...
7056 But just in case it doesn't...
7060 Section replacement test (section 0)
7091 Section replacement test (section 1)
7120 Section replacement test (section 2)
7150 Section replacement test (section 3)
7181 Section replacement test (section 4)
7208 Section replacement test (section 5)
7239 Section replacement test (section 6)
7269 Section replacement test (section 7)
7300 Section replacement test (section 8)
7331 Section replacement test (section 9)
7360 Section replacement test (section 10)
7390 Section replacement test with initial whitespace (bug 13728)
7394 Preformatted initial line
7398 Preformatted initial line
7405 Section extraction, heading followed by pre with 20 spaces (bug 6398)
7417 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
7430 Section extraction, <pre> around bogus header (bug 10309)
7447 Section replacement, <pre> around bogus header (bug 10309)
7449 noxml replace=2,"xxx"
7470 Handling of 
 in URLs
7474 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
7481 5 quotes, code coverage +1 line
7488 Special:Search page linking.
7492 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
7507 * {{SUBJECTPAGENAME}}
7508 * {{SUBJECTPAGENAMEE}}
7515 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7517 <ul><li> Parser test
7518 </li><li> Parser test
7519 </li><li> Parser test
7520 </li><li> Parser_test
7521 </li><li> Parser test
7522 </li><li> Parser_test
7523 </li><li> Talk:Parser test
7524 </li><li> Talk:Parser_test
7525 </li><li> Parser test
7526 </li><li> Parser_test
7533 </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>
7537 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
7547 image4 |300px| centre
7548 image5.svg| http://///////
7553 <ul class="gallery">
7554 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7555 <div style="height: 150px;">Image1.png</div>
7556 <div class="gallerytext">
7559 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7560 <div style="height: 150px;">Image2.gif</div>
7561 <div class="gallerytext">
7566 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7567 <div style="height: 150px;">Image3</div>
7568 <div class="gallerytext">
7571 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7572 <div style="height: 150px;">Image4</div>
7573 <div class="gallerytext">
7578 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7579 <div style="height: 150px;">Image5.svg</div>
7580 <div class="gallerytext">
7581 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
7585 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7586 <div style="height: 150px;">* image6</div>
7587 <div class="gallerytext">
7595 Gallery (with options)
7597 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
7598 File:Nonexistant.jpg|caption
7599 File:Nonexistant.jpg
7600 image:foobar.jpg|some '''caption''' [[Main Page]]
7602 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
7605 <ul class="gallery" style="max-width: 226px;_width: 226px;">
7606 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
7607 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7608 <div style="height: 70px;">Nonexistant.jpg</div>
7609 <div class="gallerytext">
7614 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7615 <div style="height: 70px;">Nonexistant.jpg</div>
7616 <div class="gallerytext">
7619 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7620 <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>
7621 <div class="gallerytext">
7622 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7626 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7627 <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>
7628 <div class="gallerytext">
7631 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7632 <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>
7633 <div class="gallerytext">
7643 Gallery with wikitext inside caption
7646 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
7647 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
7650 <ul class="gallery">
7651 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7652 <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>
7653 <div class="gallerytext">
7654 <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>
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="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7660 <div class="gallerytext">
7661 <p>This is a test template
7670 gallery (with showfilename option)
7672 <gallery showfilename>
7673 File:Nonexistant.jpg|caption
7674 File:Nonexistant.jpg
7675 image:foobar.jpg|some '''caption''' [[Main Page]]
7679 <ul class="gallery">
7680 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7681 <div style="height: 150px;">Nonexistant.jpg</div>
7682 <div class="gallerytext">
7683 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7688 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7689 <div style="height: 150px;">Nonexistant.jpg</div>
7690 <div class="gallerytext">
7691 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7695 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7696 <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>
7697 <div class="gallerytext">
7698 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7699 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
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">
7706 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7715 Gallery (with namespace-less filenames)
7718 File:Nonexistant.jpg
7724 <ul class="gallery">
7725 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7726 <div style="height: 150px;">Nonexistant.jpg</div>
7727 <div class="gallerytext">
7730 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7731 <div style="height: 150px;">Nonexistant.jpg</div>
7732 <div class="gallerytext">
7735 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7736 <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>
7737 <div class="gallerytext">
7740 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7741 <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>
7742 <div class="gallerytext">
7750 HTML Hex character encoding (spells the word "JavaScript")
7752 JavaScript
7754 <p>JavaScript
7759 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7763 <p>&#xsee;&#XSEE;
7768 HTML Hex character encoding mixed case
7777 __FORCETOC__ override
7789 ISBN 978-0-1234-56 789
7791 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7796 ISBN followed by 5 spaces
7807 ISBN ISBN 1234567890
7809 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7814 Bug 22905: <abbr> followed by ISBN followed by </a>
7816 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7818 <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>
7827 <p>RFC <a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc1234">RFC 1234</a>
7832 Double RFC with a wiki link
7836 <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>
7845 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc983">RFC 983</a> 987
7850 Centre-aligned image
7852 [[Image:foobar.jpg|centre]]
7854 <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>
7861 [[Image:foobar.jpg|none]]
7863 <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>
7868 Width + Height sized image (using px) (height is ignored)
7870 [[Image:foobar.jpg|640x480px]]
7872 <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>
7877 Width-sized image (using px, no following whitespace)
7879 [[Image:foobar.jpg|640px]]
7881 <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>
7886 Width-sized image (using px, with following whitespace - test regression from r39467)
7888 [[Image:foobar.jpg|640px ]]
7890 <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>
7895 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7897 [[Image:foobar.jpg| 640px]]
7899 <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>
7904 Another italics / bold test
7912 # Note the results may be incorrect, as parserTest output included this:
7913 # XML error: Mismatched tag at byte 6120:
7914 # ...<dd> </dt></dl> </dd...
7922 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7933 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7935 Images with the "|" character in the comment
7937 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7939 <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>
7944 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7946 <html><script>alert(1);</script></html>
7948 <p><html><script>alert(1);</script></html>
7953 HTML with raw HTML ($wgRawHtml==true)
7957 <html><script>alert(1);</script></html>
7959 <p><script>alert(1);</script>
7964 Parents of subpages, one level up
7966 subpage title=[[Subpage test/L1/L2/L3]]
7970 <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>
7976 Parents of subpages, one level up, not named
7978 subpage title=[[Subpage test/L1/L2/L3]]
7982 <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>
7989 Parents of subpages, two levels up
7991 subpage title=[[Subpage test/L1/L2/L3]]
7997 <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
7998 </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>
8003 Parents of subpages, two levels up, without trailing slash or name.
8005 subpage title=[[Subpage test/L1/L2/L3]]
8014 Parents of subpages, two levels up, with lots of extra trailing slashes.
8016 subpage title=[[Subpage test/L1/L2/L3]]
8020 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
8025 Definition list code coverage
8031 <dl><dt> title  </dt><dd> def
8032 </dd><dt> title </dt><dd> def
8033 </dd><dt>title</dt><dd> def
8039 Don't fall for the self-closing div
8041 <div>hello world</div/>
8043 <div>hello world</div>
8052 <p>[[:Template:Msg]]
8061 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
8065 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
8067 Always escape literal '>' in output, not just after '<'
8081 <p>This is a test template
8082 This is a test template
8094 Inclusion of !userCanEdit() content
8098 <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>
8104 Out-of-order TOC heading levels
8113 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8115 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
8117 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
8118 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
8121 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
8123 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
8124 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
8129 <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>
8130 <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>
8131 <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>
8132 <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>
8133 <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>
8134 <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>
8140 ISBN with a dummy number
8150 ISBN with space-delimited number
8154 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
8160 ISBN with multiple spaces, no number
8179 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8180 </p><p>ISBN 12345678901
8186 ISBN with trailing year (bug 8110)
8188 ISBN 1-234-56789-0 - 2006
8190 ISBN 1 234 56789 0 - 2006
8192 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
8193 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
8201 {{anchorencode:foo bar©#%n}}
8203 <p>foo_bar.C2.A9.23.25n
8208 anchorencode trims spaces
8210 {{anchorencode: __pretty__please__}}
8217 anchorencode deals with links
8219 {{anchorencode: [[hello|world]] [[hi]]}}
8226 anchorencode deals with templates
8228 {{anchorencode: {{Foo}} }}
8235 anchorencode encodes like the TOC generator: (bug 18431)
8237 === _ +:.3A%3A&&]] ===
8238 {{anchorencode: _ +:.3A%3A&&]] }}
8241 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
8242 <p>.2B:.3A.253A.26.26.5D.5D
8246 # Expected output in the following test is not necessarily expected (there
8247 # should probably be <p> tags inside the <blockquote> in the output) -- it's
8248 # only testing for well-formedness.
8250 Bug 6200: blockquotes and paragraph formatting
8270 Bug 8293: Use of center tag ruins paragraph formatting
8292 ### Language variants related tests
8295 Self-link in language variants
8297 title=[[Dunav]] language=sr
8299 Both [[Dunav]] and [[Дунав]] are names for this river.
8301 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
8307 Link to pages in language variants
8311 Main Page can be written as [[Маин Паге]]
8313 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
8319 Multiple links to pages in language variants
8323 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
8325 <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>.
8331 Simple template in language variants
8337 <p>This is a test template
8343 Template with explicit namespace in language variants
8349 <p>This is a test template
8355 Basic test for template parameter in language variants
8359 {{парамтест|param=foo}}
8361 <p>This is a test template with parameter foo
8367 Simple category in language variants
8371 [[Category:МедиаWики Усер'с Гуиде]]
8373 <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>
8378 Stripping -{}- tags (language variants)
8382 Latin proverb: -{Ne nuntium necare}-
8384 <p>Latin proverb: Ne nuntium necare
8390 Prevent conversion with -{}- tags (language variants)
8392 language=sr variant=sr-ec
8394 Latinski: -{Ne nuntium necare}-
8396 <p>Латински: Ne nuntium necare
8402 Prevent conversion of text with -{}- tags (language variants)
8404 language=sr variant=sr-ec
8406 Latinski: -{Ne nuntium necare}-
8408 <p>Латински: Ne nuntium necare
8414 Prevent conversion of links with -{}- tags (language variants)
8416 language=sr variant=sr-ec
8420 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8426 -{}- tags within headlines (within html for parserConvert())
8428 language=sr variant=sr-ec
8432 <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>
8438 Explicit definition of language variant alternatives
8440 language=zh variant=zh-tw
8442 -{zh:China;zh-tw:Taiwan}-, not China
8444 <p>Taiwan, not China
8450 Explicit session-wise language variant mapping (A flag and - flag)
8452 language=zh variant=zh-tw
8454 Taiwan is not China.
8455 But -{A|zh:China;zh-tw:Taiwan}- is China,
8456 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
8457 and -{China}- is China.
8459 <p>Taiwan is not China.
8460 But Taiwan is Taiwan,
8461 (This should be stripped!)
8467 Explicit session-wise language variant mapping (H flag for hide)
8469 language=zh variant=zh-tw
8471 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
8474 <p>(This should be stripped!)
8480 Adding explicit conversion rule for title (T flag)
8482 language=zh variant=zh-tw showtitle
8484 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8487 <p>Should be stripped!
8492 Testing that changing the language variant here in the tests actually works
8494 language=zh variant=zh showtitle
8496 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8499 <p>Should be stripped!
8504 Bug 24072: more test on conversion rule for title
8506 language=zh variant=zh-tw showtitle
8508 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8509 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8512 <p>This should be stripped!
8513 This won't take interferes with the title rule.
8518 Raw output of variant escape tags (R flag)
8520 language=zh variant=zh-tw
8522 Raw: -{R|zh:China;zh-tw:Taiwan}-
8524 <p>Raw: zh:China;zh-tw:Taiwan
8529 Nested using of manual convert syntax
8531 language=zh variant=zh-hk
8533 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8535 <p>Nested: Hello Hong Kong!
8540 Do not convert roman numbers to language variants
8542 language=sr variant=sr-ec
8546 <p>Фридрих IV је цар.
8551 Unclosed language converter markup "-{"
8562 Don't convert raw rule "-{R|=>}-" to "=>"
8579 Bug 529: Uncovered bullet
8590 Bug 529: Uncovered table already at line-start
8618 Bug 529: Uncovered bullet in parser function result
8620 * Foo {{lc:{{bullet}} }}
8629 Bug 5678: Double-parsed template argument
8631 {{lc:{{{1}}}|hello}}
8638 Bug 5678: Double-parsed template invocation
8640 {{lc:{{paramtest {{!}} param = hello }} }}
8642 <p>{{paramtest | param = hello }}
8647 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8673 Morwen/13: Unclosed link followed by heading
8680 <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>
8685 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8692 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8697 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8704 <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>
8719 Paragraphs inside divs (no extra line breaks)
8731 Paragraphs inside divs (extra line break on open)
8746 Paragraphs inside divs (extra line break on close)
8761 Paragraphs inside divs (extra line break on open and close)
8778 Nesting tags, paragraphs on lines which begin with <div>
8782 <div></div><strong>A
8791 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8793 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8797 <blockquote>Line one
8799 Line two</blockquote>
8801 <blockquote>Line one
8802 Line two</blockquote>
8807 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8814 Line two</blockquote>
8819 Line two</blockquote>
8824 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8828 <blockquote>Line one
8833 <blockquote>Line one
8841 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8860 Paragraphs inside blockquotes/divs (no extra line breaks)
8862 <blockquote><div>Line one
8864 Line two</div></blockquote>
8866 <blockquote><div>Line one
8867 Line two</div></blockquote>
8872 Paragraphs inside blockquotes/divs (extra line break on open)
8877 Line two</div></blockquote>
8882 Line two</div></blockquote>
8887 Paragraphs inside blockquotes/divs (extra line break on close)
8889 <blockquote><div>Line one
8894 <blockquote><div>Line one
8902 Paragraphs inside blockquotes/divs (extra line break on open and close)
8919 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8921 wgLinkHolderBatchSize=0
8927 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
8928 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
8929 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
8934 Free external link invading image caption
8936 [[Image:Foobar.jpg|thumb|http://x|hello]]
8938 <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>
8943 Bug 15196: localised external link numbers
8947 [http://en.wikipedia.org/]
8949 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8954 Multibyte character in padleft
8956 {{padleft:-Hello|7|Æ}}
8963 Multibyte character in padright
8965 {{padright:Hello-|7|Æ}}
8978 <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>
8983 formatdate parser function
8985 {{#formatdate:2009-03-24}}
8987 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8992 formatdate parser function, with default format
8994 {{#formatdate:2009-03-24|mdy}}
8996 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
9001 Linked date with autoformatting disabled
9003 wgUseDynamicDates=false
9007 <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>
9012 Spacing of numbers in formatted dates
9014 {{#formatdate:January 15}}
9016 <p><span class="mw-formatted-date" title="01-15">January 15</span>
9021 Spacing of numbers in formatted dates (linked)
9023 wgUseDynamicDates=true
9027 <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>
9040 Edit comment with link
9044 I like the [[Main Page]] a lot
9046 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
9050 Edit comment with link and link text
9054 I like the [[Main Page|best pages]] a lot
9056 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9060 Edit comment with link and link text with suffix
9064 I like the [[Main Page|best page]]s a lot
9066 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
9070 Edit comment with section link (non-local, eg in history list)
9072 comment title=[[Main Page]]
9074 /* External links */ removed bogus entries
9076 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
9080 Edit comment with section link (local, eg in diff view)
9082 comment local title=[[Main Page]]
9084 /* External links */ removed bogus entries
9086 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
9090 Edit comment with subpage link (bug 14080)
9094 title=[[Subpage test]]
9096 Poked at a [[/subpage]] here...
9098 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
9102 Edit comment with subpage link and link text (bug 14080)
9106 title=[[Subpage test]]
9108 Poked at a [[/subpage|neat little page]] here...
9110 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
9114 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
9117 title=[[Subpage test]]
9119 Poked at a [[/subpage]] here...
9121 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
9125 Edit comment with bare anchor link (local, as on diff)
9133 <a href="#section">#section</a>
9137 Edit comment with bare anchor link (non-local, as on history)
9144 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
9148 Anchor starting with underscore
9152 <p><a href="#_ref">One</a>
9157 Id starting with underscore
9159 <div id="_ref"></div>
9161 <div id="_ref"></div>
9166 Space normalisation on autocomment (bug 22784)
9171 /* __hello__world__ */
9173 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
9177 percent-encoding and + signs in comments (Bug 26410)
9181 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
9183 <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>
9187 Bad images - basic functionality
9194 Bad images - bug 16039: text after bad image disappears
9206 Verify that displaytitle works (bug #22501) no displaytitle
9210 wgAllowDisplayTitle=true
9211 wgRestrictDisplayTitle=false
9213 this is not the the title
9216 <p>this is not the the title
9221 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
9226 wgAllowDisplayTitle=true
9227 wgRestrictDisplayTitle=false
9229 this is not the the title
9230 {{DISPLAYTITLE:whatever}}
9233 <p>this is not the the title
9238 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
9243 wgAllowDisplayTitle=true
9244 wgRestrictDisplayTitle=true
9246 this is not the the title
9247 {{DISPLAYTITLE:whatever}}
9250 <p>this is not the the title
9255 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
9260 wgAllowDisplayTitle=true
9261 wgRestrictDisplayTitle=true
9263 this is not the the title
9264 {{DISPLAYTITLE:screen}}
9267 <p>this is not the the title
9272 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
9277 wgAllowDisplayTitle=false
9279 this is not the the title
9280 {{DISPLAYTITLE:screen}}
9283 <p>this is not the the title
9284 <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>
9289 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
9294 wgAllowDisplayTitle=false
9296 this is not the the title
9299 <p>this is not the the title
9304 preload: check <noinclude> and <includeonly>
9308 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
9314 preload: check <onlyinclude>
9318 Goodbye <onlyinclude>Hello world</onlyinclude>
9324 preload: can pass tags through if we want to
9328 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
9330 <includeonly>Hello world</includeonly>
9334 preload: check that it doesn't try to do tricks
9338 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9340 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9344 Play a bit with r67090 and bug 3158
9348 <div style="width:50% !important"> </div>
9349 <div style="width:50% !important"> </div>
9350 <div style="width:50% !important"> </div>
9351 <div style="border : solid;"> </div>
9353 <div style="width:50% !important"> </div>
9354 <div style="width:50% !important"> </div>
9355 <div style="width:50% !important"> </div>
9356 <div style="border : solid;"> </div>
9361 HTML5 data attributes
9363 <span data-foo="bar">Baz</span>
9364 <p data-abc-def_hij="">Quuz</p>
9366 <p><span data-foo="bar">Baz</span>
9368 <p data-abc-def_hij="">Quuz</p>
9373 percent-encoding and + signs in internal links (Bug 26410)
9375 [[User:+%]] [[Page+title%]]
9376 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
9377 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
9378 [[%33%45]] [[%33%45+]]
9380 <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>
9381 <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>
9382 <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>
9383 <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>
9388 Special characters in embedded file links (bug 27679)
9390 [[File:Contains & ampersand.jpg]]
9391 [[File:Does not exist.jpg|Title with & ampersand]]
9393 <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>
9394 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
9400 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
9402 Text's been normalized?
9404 <p>Text's been normalized?
9409 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
9411 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
9413 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
9418 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
9420 [http://www.example.org/ ideograms]
9422 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
9427 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
9429 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
9431 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
9441 Try for 100% code coverage