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
720 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
722 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
727 External image from https
729 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
731 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
736 Link to non-http image, no img tag
738 Link to non-http image, no img tag: ftp://example.com/test.jpg
740 <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>
745 External links: terminating separator
747 Terminating separator: http://example.com/thing,
749 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
754 External links: intervening separator
756 Intervening separator: http://example.com/1,2,3
758 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
763 External links: old bug with URL in query
765 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
767 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
772 External links: old URL-in-URL bug, mixed protocols
774 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
776 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
781 External links: URL in text
783 URL in text: [http://example.com http://example.com]
785 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
790 External links: Clickable images
792 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
794 <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>
799 External links: raw ampersand
801 Old & use: http://x&y
803 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
808 External links: encoded ampersand
810 Old & use: http://x&y
812 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
817 External links: encoded equals (bug 6102)
819 http://example.com/?foo=bar
821 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
826 External links: [raw ampersand]
828 Old & use: [http://x&y]
830 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
835 External links: [encoded ampersand]
837 Old & use: [http://x&y]
839 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
844 External links: [encoded equals] (bug 6102)
846 [http://example.com/?foo=bar]
848 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
853 External links: [IDN ignored character reference in hostname; strip it right off]
855 [http://e‌xample.com/]
857 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
862 External links: IDN ignored character reference in hostname; strip it right off
864 http://e‌xample.com/
866 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
871 External links: www.jpeg.org (bug 554)
875 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
880 External links: URL within URL (original bug 2)
882 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
884 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
889 BUG 361: URL inside bracketed URL
891 [http://www.example.com/foo http://www.example.com/bar]
893 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
898 BUG 361: URL within URL, not bracketed
900 http://www.example.com/foo?=http://www.example.com/bar
902 <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>
907 BUG 289: ">"-token in URL-tail
909 http://www.example.com/<hello>
911 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
916 BUG 289: literal ">"-token in URL-tail
918 http://www.example.com/<b>html</b>
920 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
925 BUG 289: ">"-token in bracketed URL
927 [http://www.example.com/<hello> stuff]
929 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
934 BUG 289: literal ">"-token in bracketed URL
936 [http://www.example.com/<b>html</b> stuff]
938 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
943 BUG 289: literal double quote at end of URL
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 double quote in bracketed URL
954 [http://www.example.com/"hello" stuff]
956 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
961 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
963 [http://www.example.com test]
965 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
970 External links: wiki links within external link (Bug 3695)
972 [http://example.com [[wikilink]] embedded in ext link]
974 <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>
979 External links: links containing empty bracket pair []
981 [http://example.com?parameter[]=foo link]
983 <p><a rel="nofollow" class="external text" href="http://example.com?parameter%5B%5D=foo">link</a>
988 External links: links ending in empty bracket pair []
990 [http://example.com?parameter[]=foo&option[]]
992 <p><a rel="nofollow" class="external autonumber" href="http://example.com?parameter%5B%5D=foo&option%5B%5D">[1]</a>
997 External links: bare links ending in empty bracket pair []
999 http://example.com?parameter[]=foo&option[]
1001 <p><a rel="nofollow" class="external free" href="http://example.com?parameter%5B%5D=foo&option%5B%5D">http://example.com?parameter%5B%5D=foo&option%5B%5D</a>
1006 BUG 787: Links with one slash after the url protocol are invalid
1010 [http:/example.com title]
1012 <p>http:/example.com
1013 </p><p>[http:/example.com title]
1018 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1020 ''[http://example.com text'']
1021 [http://example.com '''text]'''
1022 ''Something [http://example.com in italic'']
1023 ''Something [http://example.com mixed''''', even bold]'''
1024 '''''Now [http://example.com both''''']
1026 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1027 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1028 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1029 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1030 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1036 Bug 4781: %26 in URL
1038 http://www.example.com/?title=AT%26T
1040 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1045 Bug 4781, 5267: %26 in URL
1047 http://www.example.com/?title=100%25_Bran
1049 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
1054 Bug 4781, 5267: %28, %29 in URL
1056 http://www.example.com/?title=Ben-Hur_%281959_film%29
1058 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
1064 Bug 4781: %26 in autonumber URL
1066 [http://www.example.com/?title=AT%26T]
1068 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1073 Bug 4781, 5267: %26 in autonumber URL
1075 [http://www.example.com/?title=100%25_Bran]
1077 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1082 Bug 4781, 5267: %28, %29 in autonumber URL
1084 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1086 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1092 Bug 4781: %26 in bracketed URL
1094 [http://www.example.com/?title=AT%26T link]
1096 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1101 Bug 4781, 5267: %26 in bracketed URL
1103 [http://www.example.com/?title=100%25_Bran link]
1105 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1110 Bug 4781, 5267: %28, %29 in bracketed URL
1112 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1114 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1119 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1121 Some [http://example.com/ pretty ''italics'' and stuff]!
1123 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1128 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1130 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1132 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1137 External link containing double-single-quotes with no space separating the url from text in italics
1139 [http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]
1141 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
1146 URL-encoding in URL functions (single parameter)
1148 {{localurl:Some page|amp=&}}
1150 <p>/index.php?title=Some_page&amp=&
1155 URL-encoding in URL functions (multiple parameters)
1157 {{localurl:Some page|q=?&=&}}
1159 <p>/index.php?title=Some_page&q=?&amp=&
1170 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1172 Normal text. '''''Bold italic text.''''' Normal text.
1174 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1175 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1181 Unclosed and unmatched quotes
1183 '''''Bold italic text '''with bold deactivated''' in between.'''''
1185 '''''Bold italic text ''with italic deactivated'' in between.'''''
1189 ..spanning two paragraphs (should not work).'''
1191 '''Bold tag left open
1193 ''Italic tag left open
1197 <!-- Unmatching number of opening, closing tags: -->
1198 '''This year''''s election ''should'' beat '''last year''''s.
1200 ''Tom'''s car is bigger than ''Susan'''s.
1202 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1203 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1204 </p><p><b>Bold text..</b>
1205 </p><p>..spanning two paragraphs (should not work).
1206 </p><p><b>Bold tag left open</b>
1207 </p><p><i>Italic tag left open</i>
1209 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1210 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1217 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1220 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1221 # is the bare minimun required by the spec, see:
1222 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1224 A table with no data.
1230 # A table with nothing but a caption is invalid XHTML, we might want to render
1231 # this as <p>caption</p>
1233 A table with nothing but a caption
1241 </caption><tr><td></td></tr></table>
1267 Multiplication table
1269 {| border="1" cellpadding="2"
1270 |+Multiplication table
1272 ! × !! 1 !! 2 !! 3
1290 <table border="1" cellpadding="2">
1291 <caption>Multiplication table
1340 {| align=right border=1
1342 |rowspan=2| Cell 2, row 1 (and 2)
1349 <table align="right" border="1">
1353 <td rowspan="2"> Cell 2, row 1 (and 2)
1371 {| bgcolor=#ABCDEF border=2
1376 |the original table again
1384 <table bgcolor="#ABCDEF" border="2">
1392 <td>the original table again
1398 Invalid attributes in table cell (bug 1830)
1413 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1416 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1420 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
1421 <td>]" onmouseover="alert(document.cookie)">test
1433 Plain link, capitalized
1437 <p><a href="/wiki/Main_Page">Main Page</a>
1442 Plain link, uncapitalized
1446 <p><a href="/wiki/Main_Page">main Page</a>
1453 [[Main Page|The Main Page]]
1455 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1464 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1469 Broken link with fragment
1471 [[Zigzagzogzagzig#zug]]
1473 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1478 Special page link with fragment
1480 [[Special:Version#anchor]]
1482 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1487 Nonexistent special page link with fragment
1489 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1491 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1498 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1500 <p>xxx<a href="/wiki/Main_Page">main Page</a>, xxx<a href="/wiki/Main_Page">Main Page</a>, Xxx<a href="/wiki/Main_Page">main Page</a> XXX<a href="/wiki/Main_Page">main Page</a>, XXX<a href="/wiki/Main_Page">Main Page</a>
1507 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1509 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page">Main Page</a>XXX, <a href="/wiki/Main_Page">Main Page</a>!!!
1514 Link with 3 brackets
1523 Piped link with 3 brackets
1525 [[[main page|the main page]]]
1527 <p>[[[main page|the main page]]]
1532 Link with multiple pipes
1534 [[Main Page|The|Main|Page]]
1536 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1543 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1545 <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>
1550 Piped link to namespace
1552 [[Meta:Disclaimers|The disclaimers]]
1554 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1561 [[Usually caused by a typo (oops}]]
1563 <p>[[Usually caused by a typo (oops}]]
1568 Link containing % (not as a hex sequence)
1572 <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>
1577 Link containing % as a single hex sequence interpreted to char
1581 <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>
1586 Link containing % as a double hex sequence interpreted to hex sequence
1590 <p>[[7%2525 Solution]]
1595 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1596 Example for such a section: == < ==
1598 [[%23%3c]][[%23%3e]]
1600 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1605 Link containing "<#" and ">#" as a hex sequences
1607 [[%3c%23]][[%3e%23]]
1609 <p>[[%3c%23]][[%3e%23]]
1614 Link containing double-single-quotes '' (bug 4598)
1616 [[Lista d''e paise d''o munno]]
1618 <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>
1623 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1625 Some [[Link|pretty ''italics'' and stuff]]!
1627 <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>!
1632 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1634 ''Some [[Link|pretty ''italics'' and stuff]]!
1636 <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>
1641 Link with double quotes in title part (literal) and alternate part (interpreted)
1643 [[File:Denys Savchenko ''Pentecoste''.jpg]]
1647 [[''Pentecoste''|Pentecoste]]
1649 [[''Pentecoste''|''Pentecoste'']]
1651 <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>
1652 </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>
1653 </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>
1654 </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>
1661 [[http://www.example.com]]
1663 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
1667 # I'm fairly sure the expected result here is wrong.
1668 # We want these to be URL links, not pseudo-pages with URLs for titles....
1669 # However the current output is also pretty screwy.
1672 # I'm changing it to match the current output--it arguably makes more
1673 # sense in the light of the test above. Old expected result was:
1674 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1676 # But I think this test is bordering on "garbage in, garbage out" anyway.
1681 Piped link to URL: [[http://www.example.com|an example URL]]
1683 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
1688 BUG 2: [[page|http://url/]] should link to page, not http://url/
1690 [[Main Page|http://url/]]
1692 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1697 BUG 337: Escaped self-links should be bold
1701 [[Bug462]] [[Bug462]]
1703 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1708 Self-link to section should not be bold
1712 [[Main Page#section]]
1714 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1725 Self-link to numeric title
1731 <p><strong class="selflink">0</strong>
1736 Link to numeric-equivalent title
1742 <p><a href="/wiki/00">00</a>
1747 <nowiki> inside a link
1749 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1751 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1756 Non-breaking spaces in title
1758 [[ Main Page ]]
1760 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
1765 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
1771 <p><b><a href="/wiki/Main_Page">Main Page</a></b>
1776 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
1782 <p><i><a href="/wiki/Main_Page">Main Page</a></i>
1787 Internal link with en linktrail: no apostrophes (bug 27473)
1793 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
1798 Internal link with ca linktrail with apostrophes (bug 27473)
1804 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
1809 Internal link with kaa linktrail with apostrophes (bug 27473)
1815 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
1820 ### Interwiki links (see maintenance/interwiki.sql)
1824 Inline interwiki link
1826 [[MeatBall:SoftSecurity]]
1828 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw">MeatBall:SoftSecurity</a>
1833 Inline interwiki link with empty title (bug 2372)
1837 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw">MeatBall:</a>
1842 Interwiki link encoding conversion (bug 1636)
1844 *[[Wikipedia:ro:Olteniţa]]
1845 *[[Wikipedia:ro:Olteniţa]]
1847 <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>
1848 </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>
1854 Interwiki link with fragment (bug 2130)
1856 [[MeatBall:SoftSecurity#foo]]
1858 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1873 Double interlanguage link
1884 Interlanguage link, with prefix links
1896 Double interlanguage link, with prefix links (bug 8897)
1923 Incorrecly removing closing slashes from correctly formed XHTML
1925 <br style="clear:both;" />
1927 <p><br style="clear:both;" />
1932 Failing to transform badly formed HTML into correct XHTML
1938 <p><br clear="left" />
1939 <br clear="right" />
1945 Horizontal ruler (should it add that extra space?)
1959 ### Block-level elements
1982 <ol><li>Numbered list
1999 ***#Number on level 4
2001 **#Number on level 3
2002 **#Number on level 3
2007 <ol><li> with numbers
2009 <ul><li> and bullets
2011 <ol><li> and numbers
2013 </li><li>bullets again
2014 <ul><li>bullet level 2
2015 <ul><li>bullet level 3
2016 <ol><li>Number on level 4
2019 </li><li>bullet level 2
2020 <ol><li>Number on level 3
2021 </li><li>Number on level 3
2024 <ol><li>number level 2
2032 List items are not parsed correctly following a <pre> block (bug 785)
2038 <ul><li> <pre>foo</pre>
2039 </li><li> <pre>bar</pre>
2050 Magic Word: {{CURRENTDAY}}
2059 Magic Word: {{CURRENTDAY2}}
2068 Magic Word: {{CURRENTDAYNAME}}
2077 Magic Word: {{CURRENTDOW}}
2086 Magic Word: {{CURRENTMONTH}}
2095 Magic Word: {{CURRENTMONTHABBREV}}
2097 {{CURRENTMONTHABBREV}}
2104 Magic Word: {{CURRENTMONTHNAME}}
2106 {{CURRENTMONTHNAME}}
2113 Magic Word: {{CURRENTMONTHNAMEGEN}}
2115 {{CURRENTMONTHNAMEGEN}}
2122 Magic Word: {{CURRENTTIME}}
2131 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2140 Magic Word: {{CURRENTYEAR}}
2149 Magic Word: {{FULLPAGENAME}}
2151 title=[[User:Ævar Arnfjörð Bjarmason]]
2155 <p>User:Ævar Arnfjörð Bjarmason
2160 Magic Word: {{FULLPAGENAMEE}}
2162 title=[[User:Ævar Arnfjörð Bjarmason]]
2166 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2171 Magic Word: {{NAMESPACE}}
2173 title=[[User:Ævar Arnfjörð Bjarmason]]
2182 Magic Word: {{NAMESPACEE}}
2184 title=[[User:Ævar Arnfjörð Bjarmason]]
2193 Magic Word: {{NUMBEROFFILES}}
2202 Magic Word: {{PAGENAME}}
2204 title=[[User:Ævar Arnfjörð Bjarmason]]
2208 <p>Ævar Arnfjörð Bjarmason
2213 Magic Word: {{PAGENAME}} with metacharacters
2215 title=[['foo & bar = baz']]
2219 <p><i>'foo & bar = baz'</i>
2224 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2226 title=[[*RFC 1234 http://example.com/]]
2230 <p>*RFC 1234 http://example.com/
2235 Magic Word: {{PAGENAMEE}}
2237 title=[[User:Ævar Arnfjörð Bjarmason]]
2241 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2246 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2248 title=[[*RFC 1234 http://example.com/]]
2252 <p>*RFC_1234_http://example.com/
2257 Magic Word: {{REVISIONID}}
2266 Magic Word: {{SCRIPTPATH}}
2275 Magic Word: {{SERVER}}
2279 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2284 Magic Word: {{SERVERNAME}}
2293 Magic Word: {{SITENAME}}
2302 Namespace 1 {{ns:1}}
2311 Namespace 1 {{ns:01}}
2320 Namespace 0 {{ns:0}} (bug 4783)
2328 Namespace 0 {{ns:00}} (bug 4783)
2336 Namespace -1 {{ns:-1}}
2345 Namespace User {{ns:User}}
2354 Namespace User talk {{ns:User_talk}}
2363 Namespace User talk {{ns:uSeR tAlK}}
2372 Namespace File {{ns:File}}
2381 Namespace File {{ns:Image}}
2390 Namespace (lang=de) Benutzer {{ns:User}}
2401 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2407 <p>Benutzer Diskussion
2415 {{urlencode:hi world?!}}
2416 {{urlencode:hi world?!|WIKI}}
2417 {{urlencode:hi world?!|PATH}}
2418 {{urlencode:hi world?!|QUERY}}
2431 Magic links: internal link to RFC (bug 479)
2435 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2440 Magic links: RFC (bug 479)
2444 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc822">RFC 822</a>
2449 Magic links: ISBN (bug 1937)
2453 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2458 Magic links: PMID incorrectly converts space to underscore
2462 <p><a class="external mw-magiclink-pmid" href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2471 Nonexistent template
2473 {{thistemplatedoesnotexist}}
2475 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2482 This is a test template
2490 <p>This is a test template
2495 Template with explicit namespace
2499 <p>This is a test template
2507 This is a test template with parameter {{{param}}}
2513 {{paramtest|param=foo}}
2515 <p>This is a test template with parameter foo
2520 Template:paramtestnum
2526 Template unnamed parameter
2528 {{paramtestnum|Main Page|the main page}}
2530 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2535 Template:templatesimple
2541 Template:templateredirect
2543 #redirect [[Template:templatesimple]]
2547 Template:templateasargtestnum
2553 Template:templateasargtest
2555 {{template{{{templ}}}}}
2559 Template:templateasargtest2
2565 Template with template name as unnamed argument
2567 {{templateasargtestnum|templatesimple}}
2574 Template with template name as argument
2576 {{templateasargtest|templ=simple}}
2583 Template with template name as argument (2)
2585 {{templateasargtest2|templ=templatesimple}}
2592 Template:templateasargtestdefault
2594 {{{{{templ|templatesimple}}}}}
2604 Template with default value
2606 {{templateasargtestdefault}}
2613 Template with default value (value set)
2615 {{templateasargtestdefault|templ=templa}}
2624 {{templateredirect}}
2631 Template with argument in separate line
2633 {{ templateasargtest |
2641 Template with complex template as argument
2644 param ={{ templateasargtest |
2647 <p>This is a test template with parameter (test)
2652 Template with thumb image (with link in description)
2655 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2657 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>
2662 Template:complextemplate
2664 {{{1}}} {{paramtest|
2665 param ={{{param}}}}}
2669 Template with complex arguments
2672 param ={{ templateasargtest |
2673 templ = simple }}|[[Template:complextemplate|link]]}}
2675 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2680 BUG 553: link with two variables in a piped link
2683 |[[{{{1}}}|{{{2}}}]]
2688 <td>[[{{{1}}}|{{{2}}}]]
2694 Magic variable as template parameter
2696 {{paramtest|param={{SITENAME}}}}
2698 <p>This is a test template with parameter MediaWiki
2705 [[{{{param}}}|link]]
2709 Template parameter as link source
2711 {{linktest|param=Main Page}}
2713 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2721 including another template, {{paramtest|param={{{arg}}}}}
2725 Template passing argument to another template
2727 {{paramtest2|arg='hmm'}}
2729 <p>including another template, This is a test template with parameter 'hmm'
2740 Template as link source
2744 <p><a href="/wiki/Main_Page">Main Page</a>
2762 Template infinite loop
2766 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1">Template:Loop1</a></span>
2771 Template from main namespace
2790 BUG 529: Template with table, not included at beginning of line
2809 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2829 BUG 41: Template parameters shown as broken links
2841 ''None'' of '''this''' should be
2843 but rather passed unmodified
2847 # hmm, fix this or just deprecate msgnw and document its behavior?
2853 {{msgnw:MSGNW test}}
2855 <p>''None'' of '''this''' should be
2857 but rather passed unmodified
2865 {{int:youhavenewmessages|lots of money|not!}}
2867 <p>You have lots of money (not!).
2874 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2878 <includeonly> and <noinclude> being included
2889 <onlyinclude>Foo</onlyinclude>bar
2893 <onlyinclude> being included
2905 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2909 <onlyinclude> and <includeonly> being included
2918 <includeonly> and <noinclude> on a page
2920 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2927 <onlyinclude> on a page
2929 <onlyinclude>Foo</onlyinclude>bar
2936 Template:Includeonly section
2939 ==Includeonly section==
2945 Bug 6563: Edit link generation for section shown by <includeonly>
2947 {{includeonly section}}
2949 <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>
2950 <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>
2954 # Uses same input as the contents of [[Template:Includeonly section]]
2956 Bug 6563: Section extraction for section shown by <includeonly>
2961 ==Includeonly section==
2969 Bug 6563: Edit link generation for section suppressed by <includeonly>
2972 ==Includeonly section==
2976 <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>
2981 Bug 6563: Section extraction for section suppressed by <includeonly>
2986 ==Includeonly section==
2994 ### Pre-save transform tests
2997 pre-save transform: subst:
3003 This is a test template
3007 pre-save transform: normal template
3017 pre-save transform: nonexistent template
3021 {{thistemplatedoesnotexist}}
3023 {{thistemplatedoesnotexist}}
3028 pre-save transform: subst magic variables
3037 # This is bug 89, which I fixed. -- wtm
3039 pre-save transform: subst: templates with parameters
3043 {{subst:paramtest|param="something else"}}
3045 This is a test template with parameter "something else"
3051 <nowiki>'''not wiki'''</nowiki>
3055 pre-save transform: nowiki in subst (bug 1188)
3059 {{subst:nowikitest}}
3061 <nowiki>'''not wiki'''</nowiki>
3066 Template:commenttest
3068 This template has <!-- a comment --> in it.
3072 pre-save transform: comment in subst (bug 1936)
3076 {{subst:commenttest}}
3078 This template has <!-- a comment --> in it.
3082 pre-save transform: unclosed tag
3086 <nowiki>'''not wiki'''
3088 <nowiki>'''not wiki'''
3092 pre-save transform: mixed tag case
3096 <NOwiki>'''not wiki'''</noWIKI>
3098 <NOwiki>'''not wiki'''</noWIKI>
3102 pre-save transform: unclosed comment in <nowiki>
3106 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3108 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3114 <span onmouseover="alert('crap')">Oh no</span>
3118 (confirming safety of fix for subst bug 1936)
3120 {{Template:dangerous}}
3122 <p><span>Oh no</span>
3127 pre-save transform: comment containing gallery (bug 5024)
3131 <!-- <gallery>data</gallery> -->
3133 <!-- <gallery>data</gallery> -->
3137 pre-save transform: comment containing extension
3141 <!-- <tag>data</tag> -->
3143 <!-- <tag>data</tag> -->
3147 pre-save transform: comment containing nowiki
3151 <!-- <nowiki>data</nowiki> -->
3153 <!-- <nowiki>data</nowiki> -->
3157 pre-save transform: comment containing math
3161 <!-- <math>data</math> -->
3163 <!-- <math>data</math> -->
3167 pre-save transform: <noinclude> in subst (bug 3298)
3177 pre-save transform: <onlyinclude> in subst (bug 3298)
3189 {{<includeonly>subst:</includeonly>Includes}}
3193 Template:SafeSubstTest
3195 {{<includeonly>safesubst:</includeonly>Includes}}
3199 bug 22297: safesubst: works during PST
3203 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3209 bug 22297: safesubst: works during normal parse
3218 subst: does not work during normal parse
3222 <p>{{subst:Includes}}
3227 pre-save transform: context links ("pipe trick")
3231 [[Article (context)|]]
3234 [[Bar:Article (context)|]]
3235 [[:Bar:Article (context)|]]
3237 [[|Article (context)]]
3241 [[Article (context)|Article]]
3242 [[Bar:Article|Article]]
3243 [[:Bar:Article|Article]]
3244 [[Bar:Article (context)|Article]]
3245 [[:Bar:Article (context)|Article]]
3247 [[Article (context)]]
3248 [[Bar:X (Y) Z|X (Y) Z]]
3249 [[:Bar:X (Y) Z|X (Y) Z]]
3253 pre-save transform: context links ("pipe trick") with interwiki prefix
3257 [[interwiki:Article|]]
3258 [[:interwiki:Article|]]
3259 [[interwiki:Bar:Article|]]
3260 [[:interwiki:Bar:Article|]]
3262 [[interwiki:Article|Article]]
3263 [[:interwiki:Article|Article]]
3264 [[interwiki:Bar:Article|Bar:Article]]
3265 [[:interwiki:Bar:Article|Bar:Article]]
3269 pre-save transform: context links ("pipe trick") with parens in title
3271 pst title=[[Somearticle (context)]]
3275 [[Article (context)|Article]]
3279 pre-save transform: context links ("pipe trick") with comma in title
3281 pst title=[[Someplace, Somewhere]]
3284 [[Otherplace, Elsewhere|]]
3285 [[Otherplace, Elsewhere, Anywhere|]]
3287 [[Otherplace, Somewhere|Otherplace]]
3288 [[Otherplace, Elsewhere|Otherplace]]
3289 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3293 pre-save transform: context links ("pipe trick") with parens and comma
3295 pst title=[[Someplace (IGNORED), Somewhere]]
3298 [[Otherplace (place), Elsewhere|]]
3300 [[Otherplace, Somewhere|Otherplace]]
3301 [[Otherplace (place), Elsewhere|Otherplace]]
3305 pre-save transform: context links ("pipe trick") with comma and parens
3307 pst title=[[Who, me? (context)]]
3310 [[Me, Myself, and I (1937 song)|]]
3312 [[Yes, you. (context)|Yes, you.]]
3313 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3317 pre-save transform: context links ("pipe trick") with namespace
3319 pst title=[[Ns:Somearticle]]
3323 [[Ns:Article|Article]]
3327 pre-save transform: context links ("pipe trick") with namespace and parens
3329 pst title=[[Ns:Somearticle (context)]]
3333 [[Ns:Article (context)|Article]]
3337 pre-save transform: context links ("pipe trick") with namespace and comma
3339 pst title=[[Ns:Somearticle, Context, Whatever]]
3343 [[Ns:Article, Context, Whatever|Article]]
3347 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3349 pst title=[[Ns:Somearticle, Context (context)]]
3353 [[Ns:Article (context)|Article]]
3357 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3359 pst title=[[Ns:Somearticle (IGNORED), Context]]
3363 [[Ns:Article, Context|Article]]
3368 ### Message transform tests
3371 message transform: magic variables
3381 message transform: should not transform wiki markup
3391 message transform: <noinclude> in transcluded template (bug 4926)
3401 message transform: <onlyinclude> in transcluded template (bug 4926)
3411 {{#special:}} page name, known
3415 {{#special:Recentchanges}}
3417 Special:RecentChanges
3421 {{#special:}} page name with subpage, known
3425 {{#special:Recentchanges/param}}
3427 Special:RecentChanges/param
3431 {{#special:}} page name, unknown
3435 {{#special:foobarnonexistent}}
3437 No such special page
3446 [[Image:foobar.jpg]]
3448 <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>
3455 [[Image:foobar.jpg|right]]
3457 <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>
3462 Simple image (using File: namespace, now canonical)
3466 <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>
3473 [[Image:foobar.jpg|right|Caption text]]
3475 <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>
3480 Image with link parameter, wiki target
3482 [[Image:foobar.jpg|link=Target page]]
3484 <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>
3489 Image with link parameter, URL target
3491 [[Image:foobar.jpg|link=http://example.com/]]
3493 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3498 Image with link parameter, wgExternalLinkTarget
3500 [[Image:foobar.jpg|link=http://example.com/]]
3502 wgExternalLinkTarget='foobar'
3504 <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>
3509 Image with link parameter, wgExternalLinkTarget, unnamed parameter
3511 [[Image:foobar.jpg|link=http://example.com/|Title]]
3513 wgExternalLinkTarget='foobar'
3515 <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>
3520 Image with empty link parameter
3522 [[Image:foobar.jpg|link=]]
3524 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3529 Image with link parameter (wiki target) and unnamed parameter
3531 [[Image:foobar.jpg|link=Target page|Title]]
3533 <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>
3538 Image with link parameter (URL target) and unnamed parameter
3540 [[Image:foobar.jpg|link=http://example.com/|Title]]
3542 <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>
3547 Thumbnail image with link parameter
3549 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
3551 <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>
3556 Image with frame and link
3558 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3560 <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">Main Page</a></div></div></div>
3565 Image with frame and link and explicit alt
3567 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3569 <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">Main Page</a></div></div></div>
3574 Image with wiki markup in implicit alt
3576 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3578 <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>
3583 Image with wiki markup in explicit alt
3585 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3587 <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>
3592 Link to image page- image page normally doesn't exists, hence edit link
3593 Add test with existing image page
3594 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3598 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3603 bug 18784 Link to non-existent image page with caption should use caption as link text
3605 [[:Image:test|caption]]
3607 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
3612 Frameless image caption with a free URL
3614 [[Image:foobar.jpg|http://example.com]]
3616 <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>
3621 Thumbnail image caption with a free URL
3623 [[Image:foobar.jpg|thumb|http://example.com]]
3625 <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>
3630 Thumbnail image caption with a free URL and explicit alt
3632 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3634 <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>
3639 BUG 1887: A ISBN with a thumbnail
3641 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3643 <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>
3648 BUG 1887: A RFC with a thumbnail
3650 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3652 <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>
3657 BUG 1887: A mailto link with a thumbnail
3659 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3661 <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>
3666 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
3667 so math is not stripped and turns up as escaped <math> tags.
3669 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3671 <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><math>2+2</math></div></div></div>
3676 BUG 1887, part 2: A <math> with a thumbnail- math enabled
3680 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3682 <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><span class="texhtml" dir="ltr">2 + 2</span></div></div></div>
3686 # Pending resolution to bug 368
3688 BUG 648: Frameless image caption with a link
3690 [[Image:foobar.jpg|text with a [[link]] in it]]
3692 <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>
3697 BUG 648: Frameless image caption with a link (suffix)
3699 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3701 <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>
3706 BUG 648: Frameless image caption with an interwiki link
3708 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3710 <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>
3715 BUG 648: Frameless image caption with a piped interwiki link
3717 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3719 <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>
3724 Escape HTML special chars in image alt text
3726 [[Image:foobar.jpg|& < > "]]
3728 <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>
3733 BUG 499: Alt text should have Ӓ, not &1234;
3735 [[Image:foobar.jpg|♀]]
3737 <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>
3742 Broken image caption with link
3744 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3746 <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.
3751 Image caption containing another image
3753 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3755 <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>
3760 Image caption containing a newline
3762 [[Image:Foobar.jpg|This
3765 <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>
3771 Bug 3090: External links other than http: in image captions
3773 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3775 <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>
3782 #REDIRECT [[File:Barfoo.jpg]]
3788 [[Image:Barfoo.jpg]]
3790 <p><a href="/wiki/File:Barfoo.jpg">File:Barfoo.jpg</a>
3795 Missing image with uploads disabled
3799 [[Image:Foobaz.jpg]]
3801 <p><a href="/wiki/File:Foobaz.jpg">File:Foobaz.jpg</a>
3810 Subpage test/subpage
3818 subpage title=[[Subpage test]]
3822 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3827 Subpage noslash link
3829 subpage title=[[Subpage test]]
3833 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3842 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
3847 BUG 561: {{/Subpage}}
3849 subpage title=[[Page]]
3853 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
3861 Category:MediaWiki User's Guide
3869 [[:Category:MediaWiki User's Guide]]
3871 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide">Category:MediaWiki User's Guide</a>
3880 [[Category:MediaWiki User's Guide]]
3882 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3886 PAGESINCATEGORY invalid title fatal (r33546 fix)
3888 {{PAGESINCATEGORY:<bogus>}}
3895 ### Inter-language links
3898 Inter-language links
3904 [[zh:食品]]
3906 es:Alimento fr:Nourriture zh:食品
3913 Basic section headings
3920 ===Smaller headline===
3923 <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>
3926 <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>
3929 <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>
3935 Section headings with TOC
3938 === Subheadline 1 ===
3939 ===== Skipping a level =====
3940 ====== Skipping a level ======
3944 ===Another headline===
3946 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3948 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3950 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3952 <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>
3954 <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>
3961 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
3963 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
3968 <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>
3969 <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>
3970 <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>
3971 <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>
3972 <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>
3975 <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>
3979 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
3981 Handling of sections up to level 6 and beyond
3984 == Level 2 Heading==
3985 === Level 3 Heading===
3986 ==== Level 4 Heading====
3987 ===== Level 5 Heading=====
3988 ====== Level 6 Heading======
3989 ======= Level 7 Heading=======
3990 ======== Level 8 Heading========
3991 ========= Level 9 Heading=========
3992 ========== Level 10 Heading==========
3994 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3996 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
3998 <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>
4000 <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>
4002 <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>
4004 <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>
4006 <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>
4007 <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>
4008 <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>
4009 <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>
4010 <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>
4023 <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>
4024 <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>
4025 <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>
4026 <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>
4027 <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>
4028 <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>
4029 <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>
4030 <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>
4031 <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>
4032 <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>
4037 TOC regression (bug 9764)
4041 ==== title 1.1.1 ====
4046 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4048 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4050 <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>
4052 <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>
4055 <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>
4058 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4060 <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>
4065 <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>
4066 <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>
4067 <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>
4068 <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>
4069 <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>
4070 <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>
4075 TOC with wgMaxTocLevel=3 (bug 6204)
4081 ==== title 1.1.1 ====
4086 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4088 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4090 <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>
4091 <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>
4094 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4096 <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>
4101 <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>
4102 <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>
4103 <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>
4104 <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>
4105 <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>
4106 <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>
4111 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4117 ====Section 1.1.1====
4118 ====Section 1.1.1.1====
4121 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4123 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4125 <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>
4128 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4131 <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>
4132 <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>
4133 <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>
4134 <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>
4135 <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>
4141 Resolving duplicate section names
4146 <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>
4147 <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>
4152 Resolving duplicate section names with differing case (bug 10721)
4157 <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>
4158 <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>
4170 Template with sections, __NOTOC__
4177 <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>
4178 <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>
4179 <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>
4180 <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>
4185 __NOEDITSECTION__ keyword
4191 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4192 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4197 Link inside a section heading
4199 ==Section with a [[Main Page|link]] in it==
4201 <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>
4206 TOC regression (bug 12077)
4213 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4215 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4217 <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>
4220 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4223 <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>
4224 <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>
4225 <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>
4230 BUG 1219 URL next to image (good)
4232 http://example.com [[Image:foobar.jpg]]
4234 <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>
4239 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4242 The line above must have a trailing space!
4245 But just in case it doesn't...
4247 <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>
4248 <p>The line above must have a trailing space!
4250 <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>
4251 <p>But just in case it doesn't...
4256 Header with special characters (bug 25462)
4258 The tooltips shall not show entities to the user (ie. be double escaped)
4275 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4277 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4279 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4280 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4281 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4282 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4283 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4286 <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>
4289 <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>
4292 <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>
4295 <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>
4298 <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>
4304 BUG 1219 URL next to image (broken)
4306 http://example.com[[Image:foobar.jpg]]
4308 <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>
4313 Bug 1186 news: in the middle of text
4315 http://en.wikinews.org/wiki/Wikinews:Workplace
4317 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4323 Namespaced link must have a title
4332 Namespaced link must have a title (bad fragment version)
4334 [[Project:#fragment]]
4336 <p>[[Project:#fragment]]
4342 div with no attributes
4344 <div>HTML rocks</div>
4346 <div>HTML rocks</div>
4351 div with double-quoted attribute
4353 <div id="rock">HTML rocks</div>
4355 <div id="rock">HTML rocks</div>
4360 div with single-quoted attribute
4362 <div id='rock'>HTML rocks</div>
4364 <div id="rock">HTML rocks</div>
4369 div with unquoted attribute
4371 <div id=rock>HTML rocks</div>
4373 <div id="rock">HTML rocks</div>
4378 div with illegal double attributes
4380 <div align="center" align="right">HTML rocks</div>
4382 <div align="right">HTML rocks</div>
4387 HTML multiple attributes correction
4389 <p class="error" class="awesome">Awesome!</p>
4391 <p class="awesome">Awesome!</p>
4396 Table multiple attributes correction
4399 !+ class="error" class="awesome"| status
4404 <th class="awesome"> status
4412 <DIV ALIGN="center">HTML ROCKS</DIV>
4414 <div align="center">HTML ROCKS</div>
4420 text with amp in the middle of nowhere
4424 <p>Remember AT&T?
4429 text with character entity: eacute
4431 I always thought é was a cute letter.
4433 <p>I always thought é was a cute letter.
4438 text with undefined character entity: xacute
4440 I always thought &xacute; was a cute letter.
4442 <p>I always thought &xacute; was a cute letter.
4454 [[Media:Foobar.jpg]]
4456 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4461 Media link with text
4463 [[Media:Foobar.jpg|A neat file to look at]]
4465 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4469 # FIXME: this is still bad HTML tag nesting
4471 Media link with nasty text
4472 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4474 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4476 <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>
4481 Media link to nonexistent file (bug 1702)
4483 [[Media:No such.jpg]]
4485 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4490 Image link to nonexistent file (bug 1850 - good)
4492 [[Image:No such.jpg]]
4494 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4499 :Image link to nonexistent file (bug 1850 - bad)
4501 [[:Image:No such.jpg]]
4503 <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>
4510 Character reference normalization in link text (bug 1938)
4512 [[Main Page|this&that]]
4514 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4521 Test for unicode normalization
4523 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4527 (bug 19451) Links should refer to the normalized form.
4535 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4536 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4537 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4538 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4539 <a href="/wiki/%D7%90%D6%B7">אַ</a>
4544 Empty attribute crash test (bug 2067)
4546 <font color="">foo</font>
4548 <p><font color="">foo</font>
4553 Empty attribute crash test single-quotes (bug 2067)
4555 <font color=''>foo</font>
4557 <p><font color="">foo</font>
4562 Attribute test: equals, then nothing
4564 <font color=>foo</font>
4571 Attribute test: unquoted value
4573 <font color=x>foo</font>
4575 <p><font color="x">foo</font>
4580 Attribute test: unquoted but illegal value (hash)
4582 <font color=#x>foo</font>
4584 <p><font color="#x">foo</font>
4589 Attribute test: no value
4591 <font color>foo</font>
4593 <p><font color="color">foo</font>
4598 Bug 2095: link with three closing brackets
4602 <p><a href="/wiki/Main_Page">Main Page</a>]
4607 Bug 2095: link with pipe and three closing brackets
4611 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4616 Bug 2095: link with pipe and three closing brackets, version 2
4618 [[Main Page|[http://example.com/]]]
4620 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4630 Template:Dangerous attribute
4632 " onmouseover="alert(document.cookie)
4636 Template:Dangerous style attribute
4638 border-size: expression(alert(document.cookie))
4644 <div style="float: right; {{{1}}}">Magic div</div>
4648 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4650 <div title="{{test}}"></div>
4652 <div title="This is a test template"></div>
4657 Bug 2304: HTML attribute safety (dangerous template; 2309)
4659 <div title="{{dangerous attribute}}"></div>
4661 <div title=""></div>
4666 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4668 <div style="{{dangerous style attribute}}"></div>
4670 <div style="/* insecure input */"></div>
4675 Bug 2304: HTML attribute safety (safe parameter; 2309)
4677 {{div style|width: 200px}}
4679 <div style="float: right; width: 200px">Magic div</div>
4684 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4686 {{div style|width: expression(alert(document.cookie))}}
4688 <div style="/* insecure input */">Magic div</div>
4693 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4695 {{div style|"><script>alert(document.cookie)</script>}}
4697 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4702 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4704 {{div style|" ><script>alert(document.cookie)</script>}}
4706 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4711 Bug 2304: HTML attribute safety (link)
4713 <div title="[[Main Page]]"></div>
4715 <div title="[[Main Page]]"></div>
4720 Bug 2304: HTML attribute safety (italics)
4722 <div title="''foobar''"></div>
4724 <div title="''foobar''"></div>
4729 Bug 2304: HTML attribute safety (bold)
4731 <div title="'''foobar'''"></div>
4733 <div title="'''foobar'''"></div>
4739 Bug 2304: HTML attribute safety (ISBN)
4741 <div title="ISBN 1234567890"></div>
4743 <div title="ISBN 1234567890"></div>
4748 Bug 2304: HTML attribute safety (RFC)
4750 <div title="RFC 1234"></div>
4752 <div title="RFC 1234"></div>
4757 Bug 2304: HTML attribute safety (PMID)
4759 <div title="PMID 1234567890"></div>
4761 <div title="PMID 1234567890"></div>
4766 Bug 2304: HTML attribute safety (web link)
4768 <div title="http://example.com/"></div>
4770 <div title="http://example.com/"></div>
4775 Bug 2304: HTML attribute safety (named web link)
4777 <div title="[http://example.com/ link]"></div>
4779 <div title="[http://example.com/ link]"></div>
4784 Bug 3244: HTML attribute safety (extension; safe)
4786 <div style="<nowiki>background:blue</nowiki>"></div>
4788 <div style="background:blue"></div>
4793 Bug 3244: HTML attribute safety (extension; unsafe)
4795 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4797 <div style="/* insecure input */"></div>
4802 Math section safety when disabled
4804 <math><script>alert(document.cookies);</script></math>
4806 <p><math><script>alert(document.cookies);</script></math>
4810 # More MSIE fun discovered by Tom Gilder
4813 MSIE CSS safety test: spurious slash
4815 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4817 <div style="/* insecure input */">evil</div>
4822 MSIE CSS safety test: hex code
4824 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4826 <div style="/* insecure input */">evil</div>
4831 MSIE CSS safety test: comment in url
4833 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4835 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4840 MSIE CSS safety test: comment in expression
4842 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4844 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4850 Table attribute legitimate extension
4853 !+ style="<nowiki>color:blue</nowiki>"| status
4858 <th style="color:blue"> status
4864 Table attribute safety
4867 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4872 <th style="/* insecure input */"> status
4878 CSS line continuation 1
4880 <div style="background-image: u\ rl(test.jpg);"></div>
4882 <div style="/* insecure input */"></div>
4887 CSS line continuation 2
4889 <div style="background-image: u\ rl(test.jpg); "></div>
4891 <div style="/* insecure input */"></div>
4902 Expansion of multi-line templates in attribute values (bug 6255)
4904 <div style="background: {{identity|#00FF00}}">-</div>
4906 <div style="background: #00FF00">-</div>
4912 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
4914 <div style="background:
4917 <div style="background: #00FF00">-</div>
4922 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
4924 <div style="background: #00FF00">-</div>
4926 <div style="background: #00FF00">-</div>
4931 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
4934 Parser hook: empty input
4947 Parser hook: empty input using terminated empty elements
4960 Parser hook: empty input using terminated empty elements (space before)
4973 Parser hook: basic input
4987 Parser hook: case insensitive
5001 Parser hook: case insensitive, redux
5014 Parser hook: nested tags
5018 <tag><tag></tag></tag>
5029 Parser hook: basic arguments
5031 <tag width=200 height = "100" depth = '50' square></tag>
5050 Parser hook: argument containing a forward slash (bug 5344)
5052 <tag filename='/tmp/bla'></tag>
5058 string(8) "/tmp/bla"
5065 Parser hook: empty input using terminated empty elements (bug 2374)
5079 # </tag> should be output literally since there is no matching tag that begins it
5081 Parser hook: basic arguments using terminated empty elements (bug 2374)
5083 <tag width=200 height = "100" depth = '50' square/>
5106 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5110 Parser hook: static parser hook not inside a comment
5112 <statictag>hello, world</statictag>
5113 <statictag action=flush/>
5121 Parser hook: static parser hook inside a comment
5123 <!-- <statictag>hello, world</statictag> -->
5124 <statictag action=flush/>
5130 # Nested template calls; this case was broken by Parser.php rev 1.506,
5134 Template:One-parameter
5136 (My parameter is: {{{1}}})
5140 Template:Map-one-parameter
5146 Nested template calls
5148 {{Map-one-parameter|One-parameter|param}}
5150 <p>(My parameter is: param)
5159 Sanitizer: Closing of open tags
5161 <s></s><table></table>
5163 <s></s><table></table>
5168 Sanitizer: Closing of open but not closed tags
5177 Sanitizer: Closing of closed but not open tags
5186 Sanitizer: Closing of closed but not open table tags
5188 Table not started</td></tr></table>
5190 <p>Table not started</td></tr></table>
5195 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5197 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5199 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5204 Sanitizer: Validating the contents of the id attribute (bug 4515)
5210 Something, but definitely not <br id="9" />...
5214 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5218 <br id="foo" /><br id="foo" />
5220 Something need to be done. foo-2 ?
5224 Language converter: output gets cut off unexpectedly (bug 5757)
5228 this bit is safe: }-
5230 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5232 then we get cut off here: }-
5234 all additional text is vanished
5236 <p>this bit is safe: }-
5237 </p><p>but if we add a conversion instance: xxx
5238 </p><p>then we get cut off here: }-
5239 </p><p>all additional text is vanished
5244 Self closed html pairs (bug 5487)
5247 <center><font id="bug" />Centered text</center>
5248 <div><font id="bug2" />In div text</div>
5250 <center><font id="bug" />Centered text</center>
5251 <div><font id="bug2" />In div text</div>
5260 Punctuation: nbsp before exclamation
5264 <p>C'est grave !
5269 Punctuation: CSS !important (bug 11874)
5271 <div style="width:50% !important">important</div>
5273 <div style="width:50% !important">important</div>
5278 Punctuation: CSS ! important (bug 11874; with space after)
5280 <div style="width:50% ! important">important</div>
5282 <div style="width:50% ! important">important</div>
5288 HTML bullet list, closed tags (bug 5497)
5303 HTML bullet list, unclosed tags (bug 5497)
5320 HTML ordered list, closed tags (bug 5497)
5335 HTML ordered list, unclosed tags (bug 5497)
5352 HTML nested bullet list, closed tags (bug 5497)
5377 HTML nested bullet list, open tags (bug 5497)
5402 HTML nested ordered list, closed tags (bug 5497)
5427 HTML nested ordered list, open tags (bug 5497)
5452 HTML ordered list item with parameters oddity
5454 <ol><li id="fragment">One</li></ol>
5456 <ol><li id="fragment">One</li></ol>
5461 bug 5918: autonumbering
5463 [http://first/] [http://second] [ftp://ftp]
5467 [mailto:enclosed@mail.tld With target]
5469 [mailto:enclosed@mail.tld]
5471 mailto:inline@mail.tld
5473 <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>
5474 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
5475 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
5476 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
5477 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
5483 # Security and HTML correctness
5484 # From Nick Jenkins' fuzz testing
5488 Fuzz testing: Parser13
5503 Fuzz testing: Parser14
5508 <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>
5509 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5511 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5518 Fuzz testing: Parser14-table
5523 <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>
5524 <table style="__TOC__">
5530 # Known to produce bogus xml (extra </td>)
5532 Fuzz testing: Parser16
5552 Fuzz testing: Parser21
5555 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5560 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5570 Fuzz testing: Parser22
5572 http://===r:::https://b
5576 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
5584 # Known to produce bad XML for now
5586 Fuzz testing: Parser24
5593 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5594 <br style="onmouseover='alert(document.cookie);' " />
5596 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5601 <u class="|">}}}} >
5602 <br style="onmouseover='alert(document.cookie);'" />
5604 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5613 # Note: the current result listed for this is not what the original one was,
5614 # but the original bug was JavaScript injection, which is fixed in any case.
5615 # It's not clear that the original result listed was any more correct than the
5616 # current one. Original result:
5619 # <li class="||">
5620 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5622 Fuzz testing: Parser25 (bug 6055)
5628 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5630 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5635 Fuzz testing: URL adjacent extension (with space, clean)
5638 http://example.com <nowiki>junk</nowiki>
5640 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
5645 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5648 http://example.com<nowiki>junk</nowiki>
5650 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
5655 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5658 http://example.com<pre>junk</pre>
5660 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
5665 Fuzz testing: image with bogus manual thumbnail
5667 [[Image:foobar.jpg|thumbnail= ]]
5669 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5674 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5676 <pre dir=" "></pre>
5678 <pre dir=" "></pre>
5683 Parsing optional HTML elements (Bug 6171)
5688 <td> Some tabular data</td>
5689 <td> More tabular data ...
5690 <td> And yet som tabular data</td>
5696 <td> Some tabular data</td>
5697 <td> More tabular data ...
5698 </td><td> And yet som tabular data</td>
5705 Correct handling of <td>, <tr> (Bug 6171)
5710 <td> Some tabular data</td>
5711 <td> More tabular data ...</td>
5712 <td> And yet som tabular data</td>
5718 <td> Some tabular data</td>
5719 <td> More tabular data ...</td>
5720 <td> And yet som tabular data</td>
5728 Parsing crashing regression (fr:JavaScript)
5732 <p></body></x>
5737 Inline wiki vs wiki block nesting
5743 <p><b>Bold paragraph</b>
5744 </p><p>New wiki paragraph
5749 Inline HTML vs wiki block nesting
5757 <p><b>Bold paragraph</b>
5758 </p><p>New wiki paragraph
5762 # Original result was this:
5763 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5765 # While that might be marginally more intuitive, maybe, the six-apostrophe
5766 # construct is clearly pathological and the result stated here (which is what
5767 # the parser actually does) is about as reasonable as anything.
5769 Mixing markup for italics and bold
5772 '''bold''''''bold''bolditalics'''''
5774 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5782 Article for special page transclusion test
5786 Special page transclusion
5789 {{Special:Prefixindex/Xyzzyx}}
5793 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5798 Special page transclusion twice (bug 5021)
5801 {{Special:Prefixindex/Xyzzyx}}
5802 {{Special:Prefixindex/Xyzzyx}}
5806 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5809 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5814 Transclusion of default MediaWiki message
5816 {{MediaWiki:Mainpage}}
5823 Transclusion of nonexistent MediaWiki message
5825 {{MediaWiki:Mainpagexxx}}
5827 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
5832 Transclusion of MediaWiki message with underscore
5834 {{MediaWiki:history_short}}
5841 Transclusion of MediaWiki message with space
5843 {{MediaWiki:history short}}
5850 Invalid header with following text
5860 Section extraction test (section 0)
5880 Section extraction test (section 1)
5902 Section extraction test (section 2)
5923 Section extraction test (section 3)
5943 Section extraction test (section 4)
5967 Section extraction test (section 5)
5987 Section extraction test (section 6)
6008 Section extraction test (section 7)
6028 Section extraction test (section 8)
6048 Section extraction test (section 9)
6069 Section extraction test (section 10)
6089 Section extraction test (nonexistent section 11)
6108 Section extraction test with bogus heading (section 1)
6113 ==bogus== not a legal section
6117 ==bogus== not a legal section
6121 Section extraction test with bogus heading (section 2)
6126 ==bogus== not a legal section
6133 Section extraction test with comment after heading (section 1)
6145 Section extraction test with comment after heading (section 2)
6157 Section extraction test with bogus <nowiki> heading (section 1)
6162 ==bogus== <nowiki>not a legal section</nowiki>
6166 ==bogus== <nowiki>not a legal section</nowiki>
6170 Section extraction test with bogus <nowiki> heading (section 2)
6175 ==bogus== <nowiki>not a legal section</nowiki>
6182 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6183 # instead of respecting commented sections
6185 Section extraction prefixed by comment (section 1)
6196 Section extraction prefixed by comment (section 2)
6207 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6208 # instead of respecting HTML-style headings
6210 Section extraction, mixed wiki and html (section 1)
6226 Section extraction, mixed wiki and html (section 2)
6242 # Formerly testing for bug 3342
6244 Section extraction, heading surrounded by <noinclude>
6248 <noinclude>==unmarked==</noinclude>
6254 # Test behaviour of bug 19910
6256 Sectiion with all-equals
6261 The line above must have a trailing space
6264 But just in case it doesn't...
6268 But just in case it doesn't...
6272 Section replacement test (section 0)
6303 Section replacement test (section 1)
6332 Section replacement test (section 2)
6362 Section replacement test (section 3)
6393 Section replacement test (section 4)
6420 Section replacement test (section 5)
6451 Section replacement test (section 6)
6481 Section replacement test (section 7)
6512 Section replacement test (section 8)
6543 Section replacement test (section 9)
6572 Section replacement test (section 10)
6602 Section replacement test with initial whitespace (bug 13728)
6606 Preformatted initial line
6610 Preformatted initial line
6617 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6629 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6642 Section extraction, <pre> around bogus header (bug 10309)
6659 Section replacement, <pre> around bogus header (bug 10309)
6661 noxml replace=2,"xxx"
6682 Handling of 
 in URLs
6686 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
6693 5 quotes, code coverage +1 line
6700 Special:Search page linking.
6704 <p><a href="/wiki/Special:Search">Special:Search</a>
6719 * {{SUBJECTPAGENAME}}
6720 * {{SUBJECTPAGENAMEE}}
6727 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6729 <ul><li> Parser test
6730 </li><li> Parser test
6731 </li><li> Parser test
6732 </li><li> Parser_test
6733 </li><li> Parser test
6734 </li><li> Parser_test
6735 </li><li> Talk:Parser test
6736 </li><li> Talk:Parser_test
6737 </li><li> Parser test
6738 </li><li> Parser_test
6745 </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>
6749 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6759 image4 |300px| centre
6760 image5.svg| http://///////
6765 <ul class="gallery">
6766 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6767 <div style="height: 150px;">Image1.png</div>
6768 <div class="gallerytext">
6771 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6772 <div style="height: 150px;">Image2.gif</div>
6773 <div class="gallerytext">
6778 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6779 <div style="height: 150px;">Image3</div>
6780 <div class="gallerytext">
6783 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6784 <div style="height: 150px;">Image4</div>
6785 <div class="gallerytext">
6790 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6791 <div style="height: 150px;">Image5.svg</div>
6792 <div class="gallerytext">
6793 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
6797 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6798 <div style="height: 150px;">* image6</div>
6799 <div class="gallerytext">
6807 Gallery (with options)
6809 <gallery widths='60px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
6810 File:Nonexistant.jpg|caption
6811 File:Nonexistant.jpg
6812 image:foobar.jpg|some '''caption''' [[Main Page]]
6816 <ul class="gallery" style="max-width: 202px;_width: 202px;">
6817 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page">Main Page</a></li>
6818 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6819 <div style="height: 70px;">Nonexistant.jpg</div>
6820 <div class="gallerytext">
6825 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6826 <div style="height: 70px;">Nonexistant.jpg</div>
6827 <div class="gallerytext">
6830 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6831 <div class="thumb" style="width: 90px;"><div style="margin:26px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="60" height="7" /></a></div></div>
6832 <div class="gallerytext">
6833 <p>some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
6837 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6838 <div class="thumb" style="width: 90px;"><div style="margin:26px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="60" height="7" /></a></div></div>
6839 <div class="gallerytext">
6847 gallery (with showfilename option)
6849 <gallery showfilename>
6850 File:Nonexistant.jpg|caption
6851 File:Nonexistant.jpg
6852 image:foobar.jpg|some '''caption''' [[Main Page]]
6856 <ul class="gallery">
6857 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6858 <div style="height: 150px;">Nonexistant.jpg</div>
6859 <div class="gallerytext">
6860 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
6865 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6866 <div style="height: 150px;">Nonexistant.jpg</div>
6867 <div class="gallerytext">
6868 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
6872 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6873 <div class="thumb" style="width: 150px;"><div style="margin:66px 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>
6874 <div class="gallerytext">
6875 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
6876 some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
6880 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6881 <div class="thumb" style="width: 150px;"><div style="margin:66px 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>
6882 <div class="gallerytext">
6883 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
6892 Gallery (with namespace-less filenames)
6895 File:Nonexistant.jpg
6901 <ul class="gallery">
6902 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6903 <div style="height: 150px;">Nonexistant.jpg</div>
6904 <div class="gallerytext">
6907 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6908 <div style="height: 150px;">Nonexistant.jpg</div>
6909 <div class="gallerytext">
6912 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6913 <div class="thumb" style="width: 150px;"><div style="margin:66px 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>
6914 <div class="gallerytext">
6917 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6918 <div class="thumb" style="width: 150px;"><div style="margin:66px 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>
6919 <div class="gallerytext">
6927 HTML Hex character encoding (spells the word "JavaScript")
6929 JavaScript
6931 <p>JavaScript
6936 HTML Hex character encoding bogus encoding (bug 26437 regression check)
6940 <p>&#xsee;&#XSEE;
6945 HTML Hex character encoding mixed case
6954 __FORCETOC__ override
6966 ISBN 978-0-1234-56 789
6968 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
6973 ISBN followed by 5 spaces
6984 ISBN ISBN 1234567890
6986 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
6991 Bug 22905: <abbr> followed by ISBN followed by </a>
6993 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
6995 <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>
7004 <p>RFC <a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc1234">RFC 1234</a>
7009 Double RFC with a wiki link
7013 <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>
7022 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc983">RFC 983</a> 987
7027 Centre-aligned image
7029 [[Image:foobar.jpg|centre]]
7031 <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>
7038 [[Image:foobar.jpg|none]]
7040 <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>
7045 Width + Height sized image (using px) (height is ignored)
7047 [[Image:foobar.jpg|640x480px]]
7049 <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>
7054 Width-sized image (using px, no following whitespace)
7056 [[Image:foobar.jpg|640px]]
7058 <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>
7063 Width-sized image (using px, with following whitespace - test regression from r39467)
7065 [[Image:foobar.jpg|640px ]]
7067 <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>
7072 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7074 [[Image:foobar.jpg| 640px]]
7076 <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>
7081 Another italics / bold test
7089 # Note the results may be incorrect, as parserTest output included this:
7090 # XML error: Mismatched tag at byte 6120:
7091 # ...<dd> </dt></dl> </dd...
7099 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7110 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7112 Images with the "|" character in the comment
7114 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7116 <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>
7121 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7123 <html><script>alert(1);</script></html>
7125 <p><html><script>alert(1);</script></html>
7130 HTML with raw HTML ($wgRawHtml==true)
7134 <html><script>alert(1);</script></html>
7136 <p><script>alert(1);</script>
7141 Parents of subpages, one level up
7143 subpage title=[[Subpage test/L1/L2/L3]]
7147 <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>
7153 Parents of subpages, one level up, not named
7155 subpage title=[[Subpage test/L1/L2/L3]]
7159 <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>
7166 Parents of subpages, two levels up
7168 subpage title=[[Subpage test/L1/L2/L3]]
7174 <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
7175 </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>
7180 Parents of subpages, two levels up, without trailing slash or name.
7182 subpage title=[[Subpage test/L1/L2/L3]]
7191 Parents of subpages, two levels up, with lots of extra trailing slashes.
7193 subpage title=[[Subpage test/L1/L2/L3]]
7197 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7202 Definition list code coverage
7208 <dl><dt> title  </dt><dd> def
7209 </dd><dt> title </dt><dd> def
7210 </dd><dt>title</dt><dd> def
7216 Don't fall for the self-closing div
7218 <div>hello world</div/>
7220 <div>hello world</div>
7229 <p>[[:Template:Msg]]
7238 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7242 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7244 Always escape literal '>' in output, not just after '<'
7258 <p>This is a test template
7259 This is a test template
7271 Inclusion of !userCanEdit() content
7275 <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>
7281 Out-of-order TOC heading levels
7290 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7292 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7294 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7295 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7298 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7300 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7301 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7306 <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>
7307 <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>
7308 <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>
7309 <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>
7310 <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>
7311 <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>
7317 ISBN with a dummy number
7327 ISBN with space-delimited number
7331 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7337 ISBN with multiple spaces, no number
7356 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7357 </p><p>ISBN 12345678901
7363 ISBN with trailing year (bug 8110)
7365 ISBN 1-234-56789-0 - 2006
7367 ISBN 1 234 56789 0 - 2006
7369 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7370 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7378 {{anchorencode:foo bar©#%n}}
7380 <p>foo_bar.C2.A9.23.25n
7385 anchorencode trims spaces
7387 {{anchorencode: __pretty__please__}}
7394 anchorencode deals with links
7396 {{anchorencode: [[hello|world]] [[hi]]}}
7403 anchorencode deals with templates
7405 {{anchorencode: {{Foo}} }}
7412 anchorencode encodes like the TOC generator: (bug 18431)
7414 === _ +:.3A%3A&&]] ===
7415 {{anchorencode: _ +:.3A%3A&&]] }}
7418 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7419 <p>.2B:.3A.253A.26.26.5D.5D
7423 # Expected output in the following test is not necessarily expected (there
7424 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7425 # only testing for well-formedness.
7427 Bug 6200: blockquotes and paragraph formatting
7447 Bug 8293: Use of center tag ruins paragraph formatting
7469 ### Language variants related tests
7472 Self-link in language variants
7474 title=[[Dunav]] language=sr
7476 Both [[Dunav]] and [[Дунав]] are names for this river.
7478 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7484 Link to pages in language variants
7488 Main Page can be written as [[Маин Паге]]
7490 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7496 Multiple links to pages in language variants
7500 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7502 <p><a href="/wiki/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>.
7508 Simple template in language variants
7514 <p>This is a test template
7520 Template with explicit namespace in language variants
7526 <p>This is a test template
7532 Basic test for template parameter in language variants
7536 {{парамтест|param=foo}}
7538 <p>This is a test template with parameter foo
7544 Simple category in language variants
7548 [[Category:МедиаWики Усер'с Гуиде]]
7550 <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>
7555 Stripping -{}- tags (language variants)
7559 Latin proverb: -{Ne nuntium necare}-
7561 <p>Latin proverb: Ne nuntium necare
7567 Prevent conversion with -{}- tags (language variants)
7569 language=sr variant=sr-ec
7571 Latinski: -{Ne nuntium necare}-
7573 <p>Латински: Ne nuntium necare
7579 Prevent conversion of text with -{}- tags (language variants)
7581 language=sr variant=sr-ec
7583 Latinski: -{Ne nuntium necare}-
7585 <p>Латински: Ne nuntium necare
7591 Prevent conversion of links with -{}- tags (language variants)
7593 language=sr variant=sr-ec
7597 <p><a href="/wiki/Main_Page">Main Page</a>
7603 -{}- tags within headlines (within html for parserConvert())
7605 language=sr variant=sr-ec
7609 <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>
7615 Explicit definition of language variant alternatives
7617 language=zh variant=zh-tw
7619 -{zh:China;zh-tw:Taiwan}-, not China
7621 <p>Taiwan, not China
7627 Explicit session-wise language variant mapping (A flag and - flag)
7629 language=zh variant=zh-tw
7631 Taiwan is not China.
7632 But -{A|zh:China;zh-tw:Taiwan}- is China,
7633 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
7634 and -{China}- is China.
7636 <p>Taiwan is not China.
7637 But Taiwan is Taiwan,
7638 (This should be stripped!)
7644 Explicit session-wise language variant mapping (H flag for hide)
7646 language=zh variant=zh-tw
7648 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
7651 <p>(This should be stripped!)
7657 Adding explicit conversion rule for title (T flag)
7659 language=zh variant=zh-tw showtitle
7661 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7664 <p>Should be stripped!
7669 Testing that changing the language variant here in the tests actually works
7671 language=zh variant=zh showtitle
7673 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7676 <p>Should be stripped!
7681 Bug 24072: more test on conversion rule for title
7683 language=zh variant=zh-tw showtitle
7685 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7686 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
7689 <p>This should be stripped!
7690 This won't take interferes with the title rule.
7695 Raw output of variant escape tags (R flag)
7697 language=zh variant=zh-tw
7699 Raw: -{R|zh:China;zh-tw:Taiwan}-
7701 <p>Raw: zh:China;zh-tw:Taiwan
7706 Nested using of manual convert syntax
7708 language=zh variant=zh-hk
7710 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
7712 <p>Nested: Hello Hong Kong!
7717 Do not convert roman numbers to language variants
7719 language=sr variant=sr-ec
7723 <p>Фридрих IV је цар.
7728 Unclosed language converter markup "-{"
7739 Don't convert raw rule "-{R|=>}-" to "=>"
7756 Bug 529: Uncovered bullet
7767 Bug 529: Uncovered table already at line-start
7790 Bug 529: Uncovered bullet in parser function result
7792 * Foo {{lc:{{bullet}} }}
7801 Bug 5678: Double-parsed template argument
7803 {{lc:{{{1}}}|hello}}
7810 Bug 5678: Double-parsed template invocation
7812 {{lc:{{paramtest {{!}} param = hello }} }}
7814 <p>{{paramtest | param = hello }}
7819 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
7845 Morwen/13: Unclosed link followed by heading
7852 <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>
7857 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
7864 <h1> <span class="mw-headline" id="heading">heading</span></h1>
7869 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
7876 <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>
7891 Paragraphs inside divs (no extra line breaks)
7903 Paragraphs inside divs (extra line break on open)
7918 Paragraphs inside divs (extra line break on close)
7933 Paragraphs inside divs (extra line break on open and close)
7950 Nesting tags, paragraphs on lines which begin with <div>
7954 <div></div><strong>A
7963 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
7965 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
7969 <blockquote>Line one
7971 Line two</blockquote>
7973 <blockquote>Line one
7974 Line two</blockquote>
7979 Bug 6200: paragraphs inside blockquotes (extra line break on open)
7986 Line two</blockquote>
7991 Line two</blockquote>
7996 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8000 <blockquote>Line one
8005 <blockquote>Line one
8013 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8032 Paragraphs inside blockquotes/divs (no extra line breaks)
8034 <blockquote><div>Line one
8036 Line two</div></blockquote>
8038 <blockquote><div>Line one
8039 Line two</div></blockquote>
8044 Paragraphs inside blockquotes/divs (extra line break on open)
8049 Line two</div></blockquote>
8054 Line two</div></blockquote>
8059 Paragraphs inside blockquotes/divs (extra line break on close)
8061 <blockquote><div>Line one
8066 <blockquote><div>Line one
8074 Paragraphs inside blockquotes/divs (extra line break on open and close)
8091 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8093 wgLinkHolderBatchSize=0
8099 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw">meatball:1</a>
8100 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw">meatball:2</a>
8101 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw">meatball:3</a>
8106 Free external link invading image caption
8108 [[Image:Foobar.jpg|thumb|http://x|hello]]
8110 <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>
8115 Bug 15196: localised external link numbers
8119 [http://en.wikipedia.org/]
8121 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8126 Multibyte character in padleft
8128 {{padleft:-Hello|7|Æ}}
8135 Multibyte character in padright
8137 {{padright:Hello-|7|Æ}}
8150 <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>
8155 formatdate parser function
8157 {{#formatdate:2009-03-24}}
8159 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8164 formatdate parser function, with default format
8166 {{#formatdate:2009-03-24|mdy}}
8168 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8173 Linked date with autoformatting disabled
8175 wgUseDynamicDates=false
8179 <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>
8184 Spacing of numbers in formatted dates
8186 {{#formatdate:January 15}}
8188 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8193 Spacing of numbers in formatted dates (linked)
8195 wgUseDynamicDates=true
8199 <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>
8212 Edit comment with link
8216 I like the [[Main Page]] a lot
8218 I like the <a href="/wiki/Main_Page">Main Page</a> a lot
8222 Edit comment with link and link text
8226 I like the [[Main Page|best pages]] a lot
8228 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8232 Edit comment with link and link text with suffix
8236 I like the [[Main Page|best page]]s a lot
8238 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8242 Edit comment with section link (non-local, eg in history list)
8244 comment title=[[Main Page]]
8246 /* External links */ removed bogus entries
8248 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
8252 Edit comment with section link (local, eg in diff view)
8254 comment local title=[[Main Page]]
8256 /* External links */ removed bogus entries
8258 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
8262 Edit comment with subpage link (bug 14080)
8266 title=[[Subpage test]]
8268 Poked at a [[/subpage]] here...
8270 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8274 Edit comment with subpage link and link text (bug 14080)
8278 title=[[Subpage test]]
8280 Poked at a [[/subpage|neat little page]] here...
8282 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8286 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8289 title=[[Subpage test]]
8291 Poked at a [[/subpage]] here...
8293 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8297 Edit comment with bare anchor link (local, as on diff)
8305 <a href="#section">#section</a>
8309 Edit comment with bare anchor link (non-local, as on history)
8316 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8320 Anchor starting with underscore
8324 <p><a href="#_ref">One</a>
8329 Id starting with underscore
8331 <div id="_ref"></div>
8333 <div id="_ref"></div>
8338 Space normalisation on autocomment (bug 22784)
8343 /* __hello__world__ */
8345 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
8349 percent-encoding and + signs in comments (Bug 26410)
8353 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8355 <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>
8359 Bad images - basic functionality
8366 Bad images - bug 16039: text after bad image disappears
8378 Verify that displaytitle works (bug #22501) no displaytitle
8382 wgAllowDisplayTitle=true
8383 wgRestrictDisplayTitle=false
8385 this is not the the title
8388 <p>this is not the the title
8393 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8398 wgAllowDisplayTitle=true
8399 wgRestrictDisplayTitle=false
8401 this is not the the title
8402 {{DISPLAYTITLE:whatever}}
8405 <p>this is not the the title
8410 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8415 wgAllowDisplayTitle=true
8416 wgRestrictDisplayTitle=true
8418 this is not the the title
8419 {{DISPLAYTITLE:whatever}}
8422 <p>this is not the the title
8427 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8432 wgAllowDisplayTitle=true
8433 wgRestrictDisplayTitle=true
8435 this is not the the title
8436 {{DISPLAYTITLE:screen}}
8439 <p>this is not the the title
8444 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8449 wgAllowDisplayTitle=false
8451 this is not the the title
8452 {{DISPLAYTITLE:screen}}
8455 <p>this is not the the title
8456 <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>
8461 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8466 wgAllowDisplayTitle=false
8468 this is not the the title
8471 <p>this is not the the title
8476 preload: check <noinclude> and <includeonly>
8480 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8486 preload: check <onlyinclude>
8490 Goodbye <onlyinclude>Hello world</onlyinclude>
8496 preload: can pass tags through if we want to
8500 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8502 <includeonly>Hello world</includeonly>
8506 preload: check that it doesn't try to do tricks
8510 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8512 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8516 Play a bit with r67090 and bug 3158
8520 <div style="width:50% !important"> </div>
8521 <div style="width:50% !important"> </div>
8522 <div style="width:50% !important"> </div>
8523 <div style="border : solid;"> </div>
8525 <div style="width:50% !important"> </div>
8526 <div style="width:50% !important"> </div>
8527 <div style="width:50% !important"> </div>
8528 <div style="border : solid;"> </div>
8533 HTML5 data attributes
8535 <span data-foo="bar">Baz</span>
8536 <p data-abc-def_hij="">Quuz</p>
8538 <p><span data-foo="bar">Baz</span>
8540 <p data-abc-def_hij="">Quuz</p>
8545 percent-encoding and + signs in internal links (Bug 26410)
8547 [[User:+%]] [[Page+title%]]
8548 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
8549 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
8550 [[%33%45]] [[%33%45+]]
8552 <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>
8553 <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>
8554 <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>
8555 <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>
8560 Special characters in embedded file links (bug 27679)
8562 [[File:Contains & ampersand.jpg]]
8563 [[File:Does not exist.jpg|Title with & ampersand]]
8565 <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>
8566 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
8583 Bug#542 Link text shouldn't be duplicated in title attributes
8585 [[A]] [[a]] [[Ä]] [[ä]]
8587 <p><a href="/wiki/A">A</a> <a href="/wiki/A">a</a> <a href="/wiki/%C3%84">Ä</a> <a href="/wiki/%C3%84">ä</a>
8597 Try for 100% code coverage