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
1274 Table inside unclosed table w/o cells
1303 ! Number !! Another number
1335 Table with multiple thead
1338 ! Number !! Another number
1342 ! Some other number !! Another number
1364 <th>Some other number
1380 Table with thead & tfoot
1383 ! Number !! Another number
1387 ! Some other number !! Another number
1391 ! Total: 4 !! Total: 6
1411 <th>Some other number
1435 Table with list inside
1438 |style="width: 5em; text-align: center"| gives
1439 |style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em"|
1449 <td style="width: 5em; text-align: center">gives
1451 <td style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em">
1464 Table with broken up list inside
1467 |style="width: 5em; text-align: center"| gives
1468 |style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em"|
1479 <td style="width: 5em; text-align: center">gives
1481 <td style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em">
1496 Indented table wrapped in html tags (Related to Bug 26362)
1511 </table></dd></dl></div>
1516 Table with multiline contents
1539 Multiplication table
1541 {| border="1" cellpadding="2"
1542 |+Multiplication table
1544 ! × !! 1 !! 2 !! 3
1562 <table border="1" cellpadding="2">
1563 <caption>Multiplication table
1634 {| align=right border=1
1636 |rowspan=2| Cell 2, row 1 (and 2)
1643 <table align="right" border="1">
1647 <td rowspan="2">Cell 2, row 1 (and 2)
1668 {| bgcolor=#ABCDEF border=2
1673 |the original table again
1681 <table bgcolor="#ABCDEF" border="2">
1692 <td>the original table again
1700 Invalid attributes in table cell (bug 1830)
1716 Heading inside table (affected by r85922)
1727 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Heading">edit</a>]</span> <span class="mw-headline" id="Heading"> Heading </span></h3>
1735 A table with a caption with unclosed italic
1743 <caption><i>caption</i>
1754 A table with unclosed italic in a cell
1770 A table with unclosed italic in a th
1790 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1793 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1797 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a>
1799 <td>]" onmouseover="alert(document.cookie)">test
1807 Indented Tables, bug 20078
1833 Arbitrary whitespace should not be prepended
1877 Plain link, capitalized
1881 <p><a href="/wiki/Main_Page">Main Page</a>
1886 Plain link, uncapitalized
1890 <p><a href="/wiki/Main_Page">main Page</a>
1897 [[Main Page|The Main Page]]
1899 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1908 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1913 Broken link with fragment
1915 [[Zigzagzogzagzig#zug]]
1917 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1922 Special page link with fragment
1924 [[Special:Version#anchor]]
1926 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1931 Nonexistent special page link with fragment
1933 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1935 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1942 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1944 <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>
1951 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1953 <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>!!!
1958 Link with 3 brackets
1967 Piped link with 3 brackets
1969 [[[main page|the main page]]]
1971 <p>[[[main page|the main page]]]
1976 Link with multiple pipes
1978 [[Main Page|The|Main|Page]]
1980 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1987 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1989 <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>
1994 Piped link to namespace
1996 [[Meta:Disclaimers|The disclaimers]]
1998 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2005 [[Usually caused by a typo (oops}]]
2007 <p>[[Usually caused by a typo (oops}]]
2012 Link containing % (not as a hex sequence)
2016 <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>
2021 Link containing % as a single hex sequence interpreted to char
2025 <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>
2030 Link containing % as a double hex sequence interpreted to hex sequence
2034 <p>[[7%2525 Solution]]
2039 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2040 Example for such a section: == < ==
2042 [[%23%3c]][[%23%3e]]
2044 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2049 Link containing "<#" and ">#" as a hex sequences
2051 [[%3c%23]][[%3e%23]]
2053 <p>[[%3c%23]][[%3e%23]]
2058 Link containing double-single-quotes '' (bug 4598)
2060 [[Lista d''e paise d''o munno]]
2062 <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>
2067 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2069 Some [[Link|pretty ''italics'' and stuff]]!
2071 <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>!
2076 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2078 ''Some [[Link|pretty ''italics'' and stuff]]!
2080 <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>
2085 Link with double quotes in title part (literal) and alternate part (interpreted)
2087 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2091 [[''Pentecoste''|Pentecoste]]
2093 [[''Pentecoste''|''Pentecoste'']]
2095 <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>
2096 </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>
2097 </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>
2098 </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>
2105 [[http://www.example.com]]
2107 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2111 # I'm fairly sure the expected result here is wrong.
2112 # We want these to be URL links, not pseudo-pages with URLs for titles....
2113 # However the current output is also pretty screwy.
2116 # I'm changing it to match the current output--it arguably makes more
2117 # sense in the light of the test above. Old expected result was:
2118 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2120 # But I think this test is bordering on "garbage in, garbage out" anyway.
2125 Piped link to URL: [[http://www.example.com|an example URL]]
2127 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2132 BUG 2: [[page|http://url/]] should link to page, not http://url/
2134 [[Main Page|http://url/]]
2136 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2141 BUG 337: Escaped self-links should be bold
2145 [[Bug462]] [[Bug462]]
2147 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2152 Self-link to section should not be bold
2156 [[Main Page#section]]
2158 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2169 Self-link to numeric title
2175 <p><strong class="selflink">0</strong>
2180 Link to numeric-equivalent title
2186 <p><a href="/wiki/00">00</a>
2191 <nowiki> inside a link
2193 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2195 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2200 Non-breaking spaces in title
2202 [[ Main Page ]]
2204 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2209 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2215 <p><b><a href="/wiki/Main_Page">Main Page</a></b>
2220 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2226 <p><i><a href="/wiki/Main_Page">Main Page</a></i>
2231 Internal link with en linktrail: no apostrophes (bug 27473)
2237 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2242 Internal link with ca linktrail with apostrophes (bug 27473)
2248 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2253 Internal link with kaa linktrail with apostrophes (bug 27473)
2259 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2264 ### Interwiki links (see maintenance/interwiki.sql)
2268 Inline interwiki link
2270 [[MeatBall:SoftSecurity]]
2272 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw">MeatBall:SoftSecurity</a>
2277 Inline interwiki link with empty title (bug 2372)
2281 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw">MeatBall:</a>
2286 Interwiki link encoding conversion (bug 1636)
2288 *[[Wikipedia:ro:Olteniţa]]
2289 *[[Wikipedia:ro:Olteniţa]]
2291 <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>
2292 </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>
2298 Interwiki link with fragment (bug 2130)
2300 [[MeatBall:SoftSecurity#foo]]
2302 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2317 Double interlanguage link
2328 Interlanguage link, with prefix links
2340 Double interlanguage link, with prefix links (bug 8897)
2367 Incorrecly removing closing slashes from correctly formed XHTML
2369 <br style="clear:both;" />
2371 <p><br style="clear:both;" />
2376 Failing to transform badly formed HTML into correct XHTML
2382 <p><br clear="left" />
2383 <br clear="right" />
2389 Horizontal ruler (should it add that extra space?)
2403 ### Block-level elements
2426 <ol><li>Numbered list
2443 ***#Number on level 4
2445 **#Number on level 3
2446 **#Number on level 3
2451 <ol><li> with numbers
2453 <ul><li> and bullets
2455 <ol><li> and numbers
2457 </li><li>bullets again
2458 <ul><li>bullet level 2
2459 <ul><li>bullet level 3
2460 <ol><li>Number on level 4
2463 </li><li>bullet level 2
2464 <ol><li>Number on level 3
2465 </li><li>Number on level 3
2468 <ol><li>number level 2
2476 List items are not parsed correctly following a <pre> block (bug 785)
2482 <ul><li> <pre>foo</pre>
2483 </li><li> <pre>bar</pre>
2494 Magic Word: {{CURRENTDAY}}
2503 Magic Word: {{CURRENTDAY2}}
2512 Magic Word: {{CURRENTDAYNAME}}
2521 Magic Word: {{CURRENTDOW}}
2530 Magic Word: {{CURRENTMONTH}}
2539 Magic Word: {{CURRENTMONTHABBREV}}
2541 {{CURRENTMONTHABBREV}}
2548 Magic Word: {{CURRENTMONTHNAME}}
2550 {{CURRENTMONTHNAME}}
2557 Magic Word: {{CURRENTMONTHNAMEGEN}}
2559 {{CURRENTMONTHNAMEGEN}}
2566 Magic Word: {{CURRENTTIME}}
2575 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2584 Magic Word: {{CURRENTYEAR}}
2593 Magic Word: {{FULLPAGENAME}}
2595 title=[[User:Ævar Arnfjörð Bjarmason]]
2599 <p>User:Ævar Arnfjörð Bjarmason
2604 Magic Word: {{FULLPAGENAMEE}}
2606 title=[[User:Ævar Arnfjörð Bjarmason]]
2610 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2615 Magic Word: {{NAMESPACE}}
2617 title=[[User:Ævar Arnfjörð Bjarmason]]
2626 Magic Word: {{NAMESPACEE}}
2628 title=[[User:Ævar Arnfjörð Bjarmason]]
2637 Magic Word: {{NUMBEROFFILES}}
2646 Magic Word: {{PAGENAME}}
2648 title=[[User:Ævar Arnfjörð Bjarmason]]
2652 <p>Ævar Arnfjörð Bjarmason
2657 Magic Word: {{PAGENAME}} with metacharacters
2659 title=[['foo & bar = baz']]
2663 <p><i>'foo & bar = baz'</i>
2668 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2670 title=[[*RFC 1234 http://example.com/]]
2674 <p>*RFC 1234 http://example.com/
2679 Magic Word: {{PAGENAMEE}}
2681 title=[[User:Ævar Arnfjörð Bjarmason]]
2685 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2690 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2692 title=[[*RFC 1234 http://example.com/]]
2696 <p>*RFC_1234_http://example.com/
2701 Magic Word: {{REVISIONID}}
2710 Magic Word: {{SCRIPTPATH}}
2719 Magic Word: {{SERVER}}
2723 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2728 Magic Word: {{SERVERNAME}}
2737 Magic Word: {{SITENAME}}
2746 Namespace 1 {{ns:1}}
2755 Namespace 1 {{ns:01}}
2764 Namespace 0 {{ns:0}} (bug 4783)
2772 Namespace 0 {{ns:00}} (bug 4783)
2780 Namespace -1 {{ns:-1}}
2789 Namespace User {{ns:User}}
2798 Namespace User talk {{ns:User_talk}}
2807 Namespace User talk {{ns:uSeR tAlK}}
2816 Namespace File {{ns:File}}
2825 Namespace File {{ns:Image}}
2834 Namespace (lang=de) Benutzer {{ns:User}}
2845 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2851 <p>Benutzer Diskussion
2859 {{urlencode:hi world?!}}
2860 {{urlencode:hi world?!|WIKI}}
2861 {{urlencode:hi world?!|PATH}}
2862 {{urlencode:hi world?!|QUERY}}
2875 Magic links: internal link to RFC (bug 479)
2879 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2884 Magic links: RFC (bug 479)
2888 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc822">RFC 822</a>
2893 Magic links: ISBN (bug 1937)
2897 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2902 Magic links: PMID incorrectly converts space to underscore
2906 <p><a class="external mw-magiclink-pmid" href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2915 Nonexistent template
2917 {{thistemplatedoesnotexist}}
2919 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2926 This is a test template
2934 <p>This is a test template
2939 Template with explicit namespace
2943 <p>This is a test template
2951 This is a test template with parameter {{{param}}}
2957 {{paramtest|param=foo}}
2959 <p>This is a test template with parameter foo
2964 Template:paramtestnum
2970 Template unnamed parameter
2972 {{paramtestnum|Main Page|the main page}}
2974 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2979 Template:templatesimple
2985 Template:templateredirect
2987 #redirect [[Template:templatesimple]]
2991 Template:templateasargtestnum
2997 Template:templateasargtest
2999 {{template{{{templ}}}}}
3003 Template:templateasargtest2
3009 Template with template name as unnamed argument
3011 {{templateasargtestnum|templatesimple}}
3018 Template with template name as argument
3020 {{templateasargtest|templ=simple}}
3027 Template with template name as argument (2)
3029 {{templateasargtest2|templ=templatesimple}}
3036 Template:templateasargtestdefault
3038 {{{{{templ|templatesimple}}}}}
3048 Template with default value
3050 {{templateasargtestdefault}}
3057 Template with default value (value set)
3059 {{templateasargtestdefault|templ=templa}}
3068 {{templateredirect}}
3075 Template with argument in separate line
3077 {{ templateasargtest |
3085 Template with complex template as argument
3088 param ={{ templateasargtest |
3091 <p>This is a test template with parameter (test)
3096 Template with thumb image (with link in description)
3099 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3101 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>
3106 Template:complextemplate
3108 {{{1}}} {{paramtest|
3109 param ={{{param}}}}}
3113 Template with complex arguments
3116 param ={{ templateasargtest |
3117 templ = simple }}|[[Template:complextemplate|link]]}}
3119 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3124 BUG 553: link with two variables in a piped link
3127 |[[{{{1}}}|{{{2}}}]]
3132 <td>[[{{{1}}}|{{{2}}}]]
3140 Magic variable as template parameter
3142 {{paramtest|param={{SITENAME}}}}
3144 <p>This is a test template with parameter MediaWiki
3151 [[{{{param}}}|link]]
3155 Template parameter as link source
3157 {{linktest|param=Main Page}}
3159 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3167 including another template, {{paramtest|param={{{arg}}}}}
3171 Template passing argument to another template
3173 {{paramtest2|arg='hmm'}}
3175 <p>including another template, This is a test template with parameter 'hmm'
3186 Template as link source
3190 <p><a href="/wiki/Main_Page">Main Page</a>
3208 Template infinite loop
3212 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1">Template:Loop1</a></span>
3217 Template from main namespace
3236 BUG 529: Template with table, not included at beginning of line
3260 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3285 BUG 41: Template parameters shown as broken links
3297 ''None'' of '''this''' should be
3299 but rather passed unmodified
3303 # hmm, fix this or just deprecate msgnw and document its behavior?
3309 {{msgnw:MSGNW test}}
3311 <p>''None'' of '''this''' should be
3313 but rather passed unmodified
3321 {{int:youhavenewmessages|lots of money|not!}}
3323 <p>You have lots of money (not!).
3330 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3334 <includeonly> and <noinclude> being included
3345 <onlyinclude>Foo</onlyinclude>bar
3349 <onlyinclude> being included
3361 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3365 <onlyinclude> and <includeonly> being included
3374 <includeonly> and <noinclude> on a page
3376 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3383 <onlyinclude> on a page
3385 <onlyinclude>Foo</onlyinclude>bar
3392 Template:Includeonly section
3395 ==Includeonly section==
3401 Bug 6563: Edit link generation for section shown by <includeonly>
3403 {{includeonly section}}
3405 <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>
3406 <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>
3410 # Uses same input as the contents of [[Template:Includeonly section]]
3412 Bug 6563: Section extraction for section shown by <includeonly>
3417 ==Includeonly section==
3425 Bug 6563: Edit link generation for section suppressed by <includeonly>
3428 ==Includeonly section==
3432 <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>
3437 Bug 6563: Section extraction for section suppressed by <includeonly>
3442 ==Includeonly section==
3449 Template:Top-level template
3455 Template:Nested template
3462 Line-start flag in a nested template call
3467 {{Top-level template}}
3479 ### Pre-save transform tests
3482 pre-save transform: subst:
3488 This is a test template
3492 pre-save transform: normal template
3502 pre-save transform: nonexistent template
3506 {{thistemplatedoesnotexist}}
3508 {{thistemplatedoesnotexist}}
3513 pre-save transform: subst magic variables
3522 # This is bug 89, which I fixed. -- wtm
3524 pre-save transform: subst: templates with parameters
3528 {{subst:paramtest|param="something else"}}
3530 This is a test template with parameter "something else"
3536 <nowiki>'''not wiki'''</nowiki>
3540 pre-save transform: nowiki in subst (bug 1188)
3544 {{subst:nowikitest}}
3546 <nowiki>'''not wiki'''</nowiki>
3551 Template:commenttest
3553 This template has <!-- a comment --> in it.
3557 pre-save transform: comment in subst (bug 1936)
3561 {{subst:commenttest}}
3563 This template has <!-- a comment --> in it.
3567 pre-save transform: unclosed tag
3571 <nowiki>'''not wiki'''
3573 <nowiki>'''not wiki'''
3577 pre-save transform: mixed tag case
3581 <NOwiki>'''not wiki'''</noWIKI>
3583 <NOwiki>'''not wiki'''</noWIKI>
3587 pre-save transform: unclosed comment in <nowiki>
3591 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3593 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3599 <span onmouseover="alert('crap')">Oh no</span>
3603 (confirming safety of fix for subst bug 1936)
3605 {{Template:dangerous}}
3607 <p><span>Oh no</span>
3612 pre-save transform: comment containing gallery (bug 5024)
3616 <!-- <gallery>data</gallery> -->
3618 <!-- <gallery>data</gallery> -->
3622 pre-save transform: comment containing extension
3626 <!-- <tag>data</tag> -->
3628 <!-- <tag>data</tag> -->
3632 pre-save transform: comment containing nowiki
3636 <!-- <nowiki>data</nowiki> -->
3638 <!-- <nowiki>data</nowiki> -->
3642 pre-save transform: <noinclude> in subst (bug 3298)
3652 pre-save transform: <onlyinclude> in subst (bug 3298)
3664 {{<includeonly>subst:</includeonly>Includes}}
3668 Template:SafeSubstTest
3670 {{<includeonly>safesubst:</includeonly>Includes}}
3674 bug 22297: safesubst: works during PST
3678 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3684 bug 22297: safesubst: works during normal parse
3693 subst: does not work during normal parse
3697 <p>{{subst:Includes}}
3702 pre-save transform: context links ("pipe trick")
3706 [[Article (context)|]]
3709 [[Bar:Article (context)|]]
3710 [[:Bar:Article (context)|]]
3712 [[|Article (context)]]
3716 [[Article (context)|Article]]
3717 [[Bar:Article|Article]]
3718 [[:Bar:Article|Article]]
3719 [[Bar:Article (context)|Article]]
3720 [[:Bar:Article (context)|Article]]
3722 [[Article (context)]]
3723 [[Bar:X (Y) Z|X (Y) Z]]
3724 [[:Bar:X (Y) Z|X (Y) Z]]
3728 pre-save transform: context links ("pipe trick") with interwiki prefix
3732 [[interwiki:Article|]]
3733 [[:interwiki:Article|]]
3734 [[interwiki:Bar:Article|]]
3735 [[:interwiki:Bar:Article|]]
3737 [[interwiki:Article|Article]]
3738 [[:interwiki:Article|Article]]
3739 [[interwiki:Bar:Article|Bar:Article]]
3740 [[:interwiki:Bar:Article|Bar:Article]]
3744 pre-save transform: context links ("pipe trick") with parens in title
3746 pst title=[[Somearticle (context)]]
3750 [[Article (context)|Article]]
3754 pre-save transform: context links ("pipe trick") with comma in title
3756 pst title=[[Someplace, Somewhere]]
3759 [[Otherplace, Elsewhere|]]
3760 [[Otherplace, Elsewhere, Anywhere|]]
3762 [[Otherplace, Somewhere|Otherplace]]
3763 [[Otherplace, Elsewhere|Otherplace]]
3764 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3768 pre-save transform: context links ("pipe trick") with parens and comma
3770 pst title=[[Someplace (IGNORED), Somewhere]]
3773 [[Otherplace (place), Elsewhere|]]
3775 [[Otherplace, Somewhere|Otherplace]]
3776 [[Otherplace (place), Elsewhere|Otherplace]]
3780 pre-save transform: context links ("pipe trick") with comma and parens
3782 pst title=[[Who, me? (context)]]
3785 [[Me, Myself, and I (1937 song)|]]
3787 [[Yes, you. (context)|Yes, you.]]
3788 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3792 pre-save transform: context links ("pipe trick") with namespace
3794 pst title=[[Ns:Somearticle]]
3798 [[Ns:Article|Article]]
3802 pre-save transform: context links ("pipe trick") with namespace and parens
3804 pst title=[[Ns:Somearticle (context)]]
3808 [[Ns:Article (context)|Article]]
3812 pre-save transform: context links ("pipe trick") with namespace and comma
3814 pst title=[[Ns:Somearticle, Context, Whatever]]
3818 [[Ns:Article, Context, Whatever|Article]]
3822 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3824 pst title=[[Ns:Somearticle, Context (context)]]
3828 [[Ns:Article (context)|Article]]
3832 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3834 pst title=[[Ns:Somearticle (IGNORED), Context]]
3838 [[Ns:Article, Context|Article]]
3843 ### Message transform tests
3846 message transform: magic variables
3856 message transform: should not transform wiki markup
3866 message transform: <noinclude> in transcluded template (bug 4926)
3876 message transform: <onlyinclude> in transcluded template (bug 4926)
3886 {{#special:}} page name, known
3890 {{#special:Recentchanges}}
3892 Special:RecentChanges
3896 {{#special:}} page name with subpage, known
3900 {{#special:Recentchanges/param}}
3902 Special:RecentChanges/param
3906 {{#special:}} page name, unknown
3910 {{#special:foobarnonexistent}}
3912 No such special page
3921 [[Image:foobar.jpg]]
3923 <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>
3930 [[Image:foobar.jpg|right]]
3932 <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>
3937 Simple image (using File: namespace, now canonical)
3941 <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>
3948 [[Image:foobar.jpg|right|Caption text]]
3950 <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>
3955 Image with link parameter, wiki target
3957 [[Image:foobar.jpg|link=Target page]]
3959 <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>
3964 Image with link parameter, URL target
3966 [[Image:foobar.jpg|link=http://example.com/]]
3968 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3973 Image with link parameter, wgExternalLinkTarget
3975 [[Image:foobar.jpg|link=http://example.com/]]
3977 wgExternalLinkTarget='foobar'
3979 <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>
3984 Image with link parameter, wgExternalLinkTarget, unnamed parameter
3986 [[Image:foobar.jpg|link=http://example.com/|Title]]
3988 wgExternalLinkTarget='foobar'
3990 <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>
3995 Image with empty link parameter
3997 [[Image:foobar.jpg|link=]]
3999 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
4004 Image with link parameter (wiki target) and unnamed parameter
4006 [[Image:foobar.jpg|link=Target page|Title]]
4008 <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>
4013 Image with link parameter (URL target) and unnamed parameter
4015 [[Image:foobar.jpg|link=http://example.com/|Title]]
4017 <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>
4022 Thumbnail image with link parameter
4024 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
4026 <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>
4031 Image with frame and link
4033 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
4035 <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>
4040 Image with frame and link and explicit alt
4042 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
4044 <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>
4049 Image with wiki markup in implicit alt
4051 [[Image:Foobar.jpg|testing '''bold''' in alt]]
4053 <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>
4058 Image with wiki markup in explicit alt
4060 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
4062 <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>
4067 Link to image page- image page normally doesn't exists, hence edit link
4068 Add test with existing image page
4069 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
4073 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
4078 bug 18784 Link to non-existent image page with caption should use caption as link text
4080 [[:Image:test|caption]]
4082 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
4087 Frameless image caption with a free URL
4089 [[Image:foobar.jpg|http://example.com]]
4091 <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>
4096 Thumbnail image caption with a free URL
4098 [[Image:foobar.jpg|thumb|http://example.com]]
4100 <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>
4105 Thumbnail image caption with a free URL and explicit alt
4107 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
4109 <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>
4114 BUG 1887: A ISBN with a thumbnail
4116 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
4118 <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>
4123 BUG 1887: A RFC with a thumbnail
4125 [[Image:foobar.jpg|thumb|This is RFC 12354]]
4127 <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>
4132 BUG 1887: A mailto link with a thumbnail
4134 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
4136 <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>
4140 # Pending resolution to bug 368
4142 BUG 648: Frameless image caption with a link
4144 [[Image:foobar.jpg|text with a [[link]] in it]]
4146 <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>
4151 BUG 648: Frameless image caption with a link (suffix)
4153 [[Image:foobar.jpg|text with a [[link]]foo in it]]
4155 <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>
4160 BUG 648: Frameless image caption with an interwiki link
4162 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4164 <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>
4169 BUG 648: Frameless image caption with a piped interwiki link
4171 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4173 <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>
4178 Escape HTML special chars in image alt text
4180 [[Image:foobar.jpg|& < > "]]
4182 <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>
4187 BUG 499: Alt text should have Ӓ, not &1234;
4189 [[Image:foobar.jpg|♀]]
4191 <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>
4196 Broken image caption with link
4198 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4200 <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.
4205 Image caption containing another image
4207 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4209 <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>
4214 Image caption containing a newline
4216 [[Image:Foobar.jpg|This
4219 <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>
4225 Bug 3090: External links other than http: in image captions
4227 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4229 <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>
4236 #REDIRECT [[File:Barfoo.jpg]]
4242 [[Image:Barfoo.jpg]]
4244 <p><a href="/wiki/File:Barfoo.jpg">File:Barfoo.jpg</a>
4249 Missing image with uploads disabled
4253 [[Image:Foobaz.jpg]]
4255 <p><a href="/wiki/File:Foobaz.jpg">File:Foobaz.jpg</a>
4264 Subpage test/subpage
4272 subpage title=[[Subpage test]]
4276 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
4281 Subpage noslash link
4283 subpage title=[[Subpage test]]
4287 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4296 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4301 BUG 561: {{/Subpage}}
4303 subpage title=[[Page]]
4307 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4315 Category:MediaWiki User's Guide
4323 [[:Category:MediaWiki User's Guide]]
4325 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide">Category:MediaWiki User's Guide</a>
4334 [[Category:MediaWiki User's Guide]]
4336 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4340 PAGESINCATEGORY invalid title fatal (r33546 fix)
4342 {{PAGESINCATEGORY:<bogus>}}
4349 ### Inter-language links
4352 Inter-language links
4358 [[zh:食品]]
4360 es:Alimento fr:Nourriture zh:食品
4367 Basic section headings
4374 ===Smaller headline===
4377 <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>
4380 <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>
4383 <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>
4389 Section headings with TOC
4392 === Subheadline 1 ===
4393 ===== Skipping a level =====
4394 ====== Skipping a level ======
4398 ===Another headline===
4400 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4402 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4404 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4406 <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>
4408 <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>
4415 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4417 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4422 <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>
4423 <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>
4424 <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>
4425 <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>
4426 <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>
4429 <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>
4433 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4435 Handling of sections up to level 6 and beyond
4438 == Level 2 Heading==
4439 === Level 3 Heading===
4440 ==== Level 4 Heading====
4441 ===== Level 5 Heading=====
4442 ====== Level 6 Heading======
4443 ======= Level 7 Heading=======
4444 ======== Level 8 Heading========
4445 ========= Level 9 Heading=========
4446 ========== Level 10 Heading==========
4448 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4450 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4452 <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>
4454 <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>
4456 <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>
4458 <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>
4460 <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>
4461 <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>
4462 <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>
4463 <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>
4464 <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>
4477 <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>
4478 <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>
4479 <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>
4480 <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>
4481 <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>
4482 <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>
4483 <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>
4484 <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>
4485 <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>
4486 <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>
4491 TOC regression (bug 9764)
4495 ==== title 1.1.1 ====
4500 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4502 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4504 <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>
4506 <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>
4509 <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>
4512 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4514 <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>
4519 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
4520 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
4521 <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>
4522 <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>
4523 <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>
4524 <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>
4529 TOC with wgMaxTocLevel=3 (bug 6204)
4535 ==== title 1.1.1 ====
4540 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4542 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4544 <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>
4545 <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>
4548 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4550 <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>
4555 <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>
4556 <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>
4557 <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>
4558 <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>
4559 <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>
4560 <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>
4565 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4571 ====Section 1.1.1====
4572 ====Section 1.1.1.1====
4575 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4577 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4579 <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>
4582 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4585 <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>
4586 <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>
4587 <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>
4588 <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>
4589 <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>
4595 Resolving duplicate section names
4600 <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>
4601 <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>
4606 Resolving duplicate section names with differing case (bug 10721)
4611 <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>
4612 <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>
4624 Template with sections, __NOTOC__
4631 <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>
4632 <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>
4633 <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>
4634 <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>
4639 __NOEDITSECTION__ keyword
4645 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4646 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4651 Link inside a section heading
4653 ==Section with a [[Main Page|link]] in it==
4655 <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>
4660 TOC regression (bug 12077)
4667 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4669 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4671 <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>
4674 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4677 <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>
4678 <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>
4679 <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>
4684 BUG 1219 URL next to image (good)
4686 http://example.com [[Image:foobar.jpg]]
4688 <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>
4693 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4696 The line above must have a trailing space!
4699 But just in case it doesn't...
4701 <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>
4702 <p>The line above must have a trailing space!
4704 <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>
4705 <p>But just in case it doesn't...
4710 Header with special characters (bug 25462)
4712 The tooltips shall not show entities to the user (ie. be double escaped)
4729 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4731 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4733 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4734 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4735 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4736 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4737 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4740 <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>
4743 <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>
4746 <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>
4749 <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>
4752 <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>
4758 BUG 1219 URL next to image (broken)
4760 http://example.com[[Image:foobar.jpg]]
4762 <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>
4767 Bug 1186 news: in the middle of text
4769 http://en.wikinews.org/wiki/Wikinews:Workplace
4771 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4777 Namespaced link must have a title
4786 Namespaced link must have a title (bad fragment version)
4788 [[Project:#fragment]]
4790 <p>[[Project:#fragment]]
4796 div with no attributes
4798 <div>HTML rocks</div>
4800 <div>HTML rocks</div>
4805 div with double-quoted attribute
4807 <div id="rock">HTML rocks</div>
4809 <div id="rock">HTML rocks</div>
4814 div with single-quoted attribute
4816 <div id='rock'>HTML rocks</div>
4818 <div id="rock">HTML rocks</div>
4823 div with unquoted attribute
4825 <div id=rock>HTML rocks</div>
4827 <div id="rock">HTML rocks</div>
4832 div with illegal double attributes
4834 <div align="center" align="right">HTML rocks</div>
4836 <div align="right">HTML rocks</div>
4841 HTML multiple attributes correction
4843 <p class="error" class="awesome">Awesome!</p>
4845 <p class="awesome">Awesome!</p>
4850 Table multiple attributes correction
4853 !+ class="error" class="awesome"| status
4858 <th class="awesome">status
4868 <DIV ALIGN="center">HTML ROCKS</DIV>
4870 <div align="center">HTML ROCKS</div>
4876 text with amp in the middle of nowhere
4880 <p>Remember AT&T?
4885 text with character entity: eacute
4887 I always thought é was a cute letter.
4889 <p>I always thought é was a cute letter.
4894 text with undefined character entity: xacute
4896 I always thought &xacute; was a cute letter.
4898 <p>I always thought &xacute; was a cute letter.
4910 [[Media:Foobar.jpg]]
4912 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4917 Media link with text
4919 [[Media:Foobar.jpg|A neat file to look at]]
4921 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4925 # FIXME: this is still bad HTML tag nesting
4927 Media link with nasty text
4928 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4930 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4932 <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>
4937 Media link to nonexistent file (bug 1702)
4939 [[Media:No such.jpg]]
4941 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4946 Image link to nonexistent file (bug 1850 - good)
4948 [[Image:No such.jpg]]
4950 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4955 :Image link to nonexistent file (bug 1850 - bad)
4957 [[:Image:No such.jpg]]
4959 <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>
4966 Character reference normalization in link text (bug 1938)
4968 [[Main Page|this&that]]
4970 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4977 Test for unicode normalization
4979 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4983 (bug 19451) Links should refer to the normalized form.
4991 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4992 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4993 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4994 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4995 <a href="/wiki/%D7%90%D6%B7">אַ</a>
5000 Empty attribute crash test (bug 2067)
5002 <font color="">foo</font>
5004 <p><font color="">foo</font>
5009 Empty attribute crash test single-quotes (bug 2067)
5011 <font color=''>foo</font>
5013 <p><font color="">foo</font>
5018 Attribute test: equals, then nothing
5020 <font color=>foo</font>
5027 Attribute test: unquoted value
5029 <font color=x>foo</font>
5031 <p><font color="x">foo</font>
5036 Attribute test: unquoted but illegal value (hash)
5038 <font color=#x>foo</font>
5040 <p><font color="#x">foo</font>
5045 Attribute test: no value
5047 <font color>foo</font>
5049 <p><font color="color">foo</font>
5054 Bug 2095: link with three closing brackets
5058 <p><a href="/wiki/Main_Page">Main Page</a>]
5063 Bug 2095: link with pipe and three closing brackets
5067 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
5072 Bug 2095: link with pipe and three closing brackets, version 2
5074 [[Main Page|[http://example.com/]]]
5076 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
5086 Template:Dangerous attribute
5088 " onmouseover="alert(document.cookie)
5092 Template:Dangerous style attribute
5094 border-size: expression(alert(document.cookie))
5100 <div style="float: right; {{{1}}}">Magic div</div>
5104 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
5106 <div title="{{test}}"></div>
5108 <div title="This is a test template"></div>
5113 Bug 2304: HTML attribute safety (dangerous template; 2309)
5115 <div title="{{dangerous attribute}}"></div>
5117 <div title=""></div>
5122 Bug 2304: HTML attribute safety (dangerous style template; 2309)
5124 <div style="{{dangerous style attribute}}"></div>
5126 <div style="/* insecure input */"></div>
5131 Bug 2304: HTML attribute safety (safe parameter; 2309)
5133 {{div style|width: 200px}}
5135 <div style="float: right; width: 200px">Magic div</div>
5140 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
5142 {{div style|width: expression(alert(document.cookie))}}
5144 <div style="/* insecure input */">Magic div</div>
5149 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
5151 {{div style|"><script>alert(document.cookie)</script>}}
5153 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5158 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5160 {{div style|" ><script>alert(document.cookie)</script>}}
5162 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5167 Bug 2304: HTML attribute safety (link)
5169 <div title="[[Main Page]]"></div>
5171 <div title="[[Main Page]]"></div>
5176 Bug 2304: HTML attribute safety (italics)
5178 <div title="''foobar''"></div>
5180 <div title="''foobar''"></div>
5185 Bug 2304: HTML attribute safety (bold)
5187 <div title="'''foobar'''"></div>
5189 <div title="'''foobar'''"></div>
5195 Bug 2304: HTML attribute safety (ISBN)
5197 <div title="ISBN 1234567890"></div>
5199 <div title="ISBN 1234567890"></div>
5204 Bug 2304: HTML attribute safety (RFC)
5206 <div title="RFC 1234"></div>
5208 <div title="RFC 1234"></div>
5213 Bug 2304: HTML attribute safety (PMID)
5215 <div title="PMID 1234567890"></div>
5217 <div title="PMID 1234567890"></div>
5222 Bug 2304: HTML attribute safety (web link)
5224 <div title="http://example.com/"></div>
5226 <div title="http://example.com/"></div>
5231 Bug 2304: HTML attribute safety (named web link)
5233 <div title="[http://example.com/ link]"></div>
5235 <div title="[http://example.com/ link]"></div>
5240 Bug 3244: HTML attribute safety (extension; safe)
5242 <div style="<nowiki>background:blue</nowiki>"></div>
5244 <div style="background:blue"></div>
5249 Bug 3244: HTML attribute safety (extension; unsafe)
5251 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
5253 <div style="/* insecure input */"></div>
5257 # More MSIE fun discovered by Tom Gilder
5260 MSIE CSS safety test: spurious slash
5262 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
5264 <div style="/* insecure input */">evil</div>
5269 MSIE CSS safety test: hex code
5271 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
5273 <div style="/* insecure input */">evil</div>
5278 MSIE CSS safety test: comment in url
5280 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
5282 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
5287 MSIE CSS safety test: comment in expression
5289 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
5291 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5297 Table attribute legitimate extension
5300 !+ style="<nowiki>color:blue</nowiki>"| status
5305 <th style="color:blue">status
5313 Table attribute safety
5316 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5321 <th style="/* insecure input */">status
5329 CSS line continuation 1
5331 <div style="background-image: u\ rl(test.jpg);"></div>
5333 <div style="/* insecure input */"></div>
5338 CSS line continuation 2
5340 <div style="background-image: u\ rl(test.jpg); "></div>
5342 <div style="/* insecure input */"></div>
5353 Expansion of multi-line templates in attribute values (bug 6255)
5355 <div style="background: {{identity|#00FF00}}">-</div>
5357 <div style="background: #00FF00">-</div>
5363 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5365 <div style="background:
5368 <div style="background: #00FF00">-</div>
5373 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5375 <div style="background: #00FF00">-</div>
5377 <div style="background: #00FF00">-</div>
5382 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5385 Parser hook: empty input
5398 Parser hook: empty input using terminated empty elements
5411 Parser hook: empty input using terminated empty elements (space before)
5424 Parser hook: basic input
5438 Parser hook: case insensitive
5452 Parser hook: case insensitive, redux
5465 Parser hook: nested tags
5469 <tag><tag></tag></tag>
5480 Parser hook: basic arguments
5482 <tag width=200 height = "100" depth = '50' square></tag>
5501 Parser hook: argument containing a forward slash (bug 5344)
5503 <tag filename='/tmp/bla'></tag>
5509 string(8) "/tmp/bla"
5516 Parser hook: empty input using terminated empty elements (bug 2374)
5530 # </tag> should be output literally since there is no matching tag that begins it
5532 Parser hook: basic arguments using terminated empty elements (bug 2374)
5534 <tag width=200 height = "100" depth = '50' square/>
5557 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5561 Parser hook: static parser hook not inside a comment
5563 <statictag>hello, world</statictag>
5564 <statictag action=flush/>
5572 Parser hook: static parser hook inside a comment
5574 <!-- <statictag>hello, world</statictag> -->
5575 <statictag action=flush/>
5581 # Nested template calls; this case was broken by Parser.php rev 1.506,
5585 Template:One-parameter
5587 (My parameter is: {{{1}}})
5591 Template:Map-one-parameter
5597 Nested template calls
5599 {{Map-one-parameter|One-parameter|param}}
5601 <p>(My parameter is: param)
5610 Sanitizer: Closing of open tags
5612 <s></s><table></table>
5614 <s></s><table></table>
5619 Sanitizer: Closing of open but not closed tags
5628 Sanitizer: Closing of closed but not open tags
5637 Sanitizer: Closing of closed but not open table tags
5639 Table not started</td></tr></table>
5641 <p>Table not started</td></tr></table>
5646 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5648 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5650 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5655 Sanitizer: Validating the contents of the id attribute (bug 4515)
5661 Something, but definitely not <br id="9" />...
5665 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5669 <br id="foo" /><br id="foo" />
5671 Something need to be done. foo-2 ?
5675 Language converter: output gets cut off unexpectedly (bug 5757)
5679 this bit is safe: }-
5681 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5683 then we get cut off here: }-
5685 all additional text is vanished
5687 <p>this bit is safe: }-
5688 </p><p>but if we add a conversion instance: xxx
5689 </p><p>then we get cut off here: }-
5690 </p><p>all additional text is vanished
5695 Self closed html pairs (bug 5487)
5698 <center><font id="bug" />Centered text</center>
5699 <div><font id="bug2" />In div text</div>
5701 <center><font id="bug" />Centered text</center>
5702 <div><font id="bug2" />In div text</div>
5711 Punctuation: nbsp before exclamation
5715 <p>C'est grave !
5720 Punctuation: CSS !important (bug 11874)
5722 <div style="width:50% !important">important</div>
5724 <div style="width:50% !important">important</div>
5729 Punctuation: CSS ! important (bug 11874; with space after)
5731 <div style="width:50% ! important">important</div>
5733 <div style="width:50% ! important">important</div>
5739 HTML bullet list, closed tags (bug 5497)
5754 HTML bullet list, unclosed tags (bug 5497)
5771 HTML ordered list, closed tags (bug 5497)
5786 HTML ordered list, unclosed tags (bug 5497)
5803 HTML nested bullet list, closed tags (bug 5497)
5828 HTML nested bullet list, open tags (bug 5497)
5853 HTML nested ordered list, closed tags (bug 5497)
5878 HTML nested ordered list, open tags (bug 5497)
5903 HTML ordered list item with parameters oddity
5905 <ol><li id="fragment">One</li></ol>
5907 <ol><li id="fragment">One</li></ol>
5912 bug 5918: autonumbering
5914 [http://first/] [http://second] [ftp://ftp]
5918 [mailto:enclosed@mail.tld With target]
5920 [mailto:enclosed@mail.tld]
5922 mailto:inline@mail.tld
5924 <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>
5925 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
5926 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
5927 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
5928 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
5934 # Security and HTML correctness
5935 # From Nick Jenkins' fuzz testing
5939 Fuzz testing: Parser13
5953 Fuzz testing: Parser14
5958 <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>
5959 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5961 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5968 Fuzz testing: Parser14-table
5974 <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>
5975 <table style="__TOC__">
5984 # Known to produce bogus xml (extra </td>)
5986 Fuzz testing: Parser16
6006 Fuzz testing: Parser21
6009 ! irc://{{ftp://a" onmouseover="alert('hello world');"
6014 <th><a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
6023 Fuzz testing: Parser22
6025 http://===r:::https://b
6030 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
6035 # Known to produce bad XML for now
6037 # Note: the current result listed for this is not what the original one was,
6038 # but the original bug was JavaScript injection, which is fixed in any case.
6039 # It's not clear that the original result listed was any more correct than the
6040 # current one. Original result:
6043 # <u class="|">}}}} >
6044 # <br style="onmouseover='alert(document.cookie);'" />
6046 # MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6052 # Known to produce bad XML for now
6054 Fuzz testing: Parser24
6061 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
6062 <br style="onmouseover='alert(document.cookie);' " />
6064 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6068 <u class="|">}}}} >
6069 <br style="onmouseover='alert(document.cookie);'" />
6070 </p><p>MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6081 # Note: the current result listed for this is not what the original one was,
6082 # but the original bug was JavaScript injection, which is fixed in any case.
6083 # It's not clear that the original result listed was any more correct than the
6084 # current one. Original result:
6087 # <li class="||">
6088 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6090 Fuzz testing: Parser25 (bug 6055)
6096 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
6098 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6103 Fuzz testing: URL adjacent extension (with space, clean)
6106 http://example.com <nowiki>junk</nowiki>
6108 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
6113 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
6116 http://example.com<nowiki>junk</nowiki>
6118 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
6123 Fuzz testing: URL adjacent extension (no space, dirty; pre)
6126 http://example.com<pre>junk</pre>
6128 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
6133 Fuzz testing: image with bogus manual thumbnail
6135 [[Image:foobar.jpg|thumbnail= ]]
6137 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
6142 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
6144 <pre dir=" "></pre>
6146 <pre dir=" "></pre>
6151 Parsing optional HTML elements (Bug 6171)
6156 <td> Some tabular data</td>
6157 <td> More tabular data ...
6158 <td> And yet som tabular data</td>
6164 <td> Some tabular data</td>
6165 <td> More tabular data ...
6166 </td><td> And yet som tabular data</td>
6173 Correct handling of <td>, <tr> (Bug 6171)
6178 <td> Some tabular data</td>
6179 <td> More tabular data ...</td>
6180 <td> And yet som tabular data</td>
6186 <td> Some tabular data</td>
6187 <td> More tabular data ...</td>
6188 <td> And yet som tabular data</td>
6196 Parsing crashing regression (fr:JavaScript)
6200 <p></body></x>
6205 Inline wiki vs wiki block nesting
6211 <p><b>Bold paragraph</b>
6212 </p><p>New wiki paragraph
6217 Inline HTML vs wiki block nesting
6225 <p><b>Bold paragraph</b>
6226 </p><p>New wiki paragraph
6230 # Original result was this:
6231 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6233 # While that might be marginally more intuitive, maybe, the six-apostrophe
6234 # construct is clearly pathological and the result stated here (which is what
6235 # the parser actually does) is about as reasonable as anything.
6237 Mixing markup for italics and bold
6240 '''bold''''''bold''bolditalics'''''
6242 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
6250 Article for special page transclusion test
6254 Special page transclusion
6257 {{Special:Prefixindex/Xyzzyx}}
6261 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
6266 Special page transclusion twice (bug 5021)
6269 {{Special:Prefixindex/Xyzzyx}}
6270 {{Special:Prefixindex/Xyzzyx}}
6274 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
6277 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
6282 Transclusion of default MediaWiki message
6284 {{MediaWiki:Mainpage}}
6291 Transclusion of nonexistent MediaWiki message
6293 {{MediaWiki:Mainpagexxx}}
6295 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6300 Transclusion of MediaWiki message with underscore
6302 {{MediaWiki:history_short}}
6309 Transclusion of MediaWiki message with space
6311 {{MediaWiki:history short}}
6318 Invalid header with following text
6328 Section extraction test (section 0)
6348 Section extraction test (section 1)
6370 Section extraction test (section 2)
6391 Section extraction test (section 3)
6411 Section extraction test (section 4)
6435 Section extraction test (section 5)
6455 Section extraction test (section 6)
6476 Section extraction test (section 7)
6496 Section extraction test (section 8)
6516 Section extraction test (section 9)
6537 Section extraction test (section 10)
6557 Section extraction test (nonexistent section 11)
6576 Section extraction test with bogus heading (section 1)
6581 ==bogus== not a legal section
6585 ==bogus== not a legal section
6589 Section extraction test with bogus heading (section 2)
6594 ==bogus== not a legal section
6601 Section extraction test with comment after heading (section 1)
6613 Section extraction test with comment after heading (section 2)
6625 Section extraction test with bogus <nowiki> heading (section 1)
6630 ==bogus== <nowiki>not a legal section</nowiki>
6634 ==bogus== <nowiki>not a legal section</nowiki>
6638 Section extraction test with bogus <nowiki> heading (section 2)
6643 ==bogus== <nowiki>not a legal section</nowiki>
6650 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6651 # instead of respecting commented sections
6653 Section extraction prefixed by comment (section 1)
6664 Section extraction prefixed by comment (section 2)
6675 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6676 # instead of respecting HTML-style headings
6678 Section extraction, mixed wiki and html (section 1)
6694 Section extraction, mixed wiki and html (section 2)
6710 # Formerly testing for bug 3342
6712 Section extraction, heading surrounded by <noinclude>
6716 <noinclude>==unmarked==</noinclude>
6722 # Test behaviour of bug 19910
6724 Sectiion with all-equals
6729 The line above must have a trailing space
6732 But just in case it doesn't...
6736 But just in case it doesn't...
6740 Section replacement test (section 0)
6771 Section replacement test (section 1)
6800 Section replacement test (section 2)
6830 Section replacement test (section 3)
6861 Section replacement test (section 4)
6888 Section replacement test (section 5)
6919 Section replacement test (section 6)
6949 Section replacement test (section 7)
6980 Section replacement test (section 8)
7011 Section replacement test (section 9)
7040 Section replacement test (section 10)
7070 Section replacement test with initial whitespace (bug 13728)
7074 Preformatted initial line
7078 Preformatted initial line
7085 Section extraction, heading followed by pre with 20 spaces (bug 6398)
7097 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
7110 Section extraction, <pre> around bogus header (bug 10309)
7127 Section replacement, <pre> around bogus header (bug 10309)
7129 noxml replace=2,"xxx"
7150 Handling of 
 in URLs
7154 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
7161 5 quotes, code coverage +1 line
7168 Special:Search page linking.
7172 <p><a href="/wiki/Special:Search">Special:Search</a>
7187 * {{SUBJECTPAGENAME}}
7188 * {{SUBJECTPAGENAMEE}}
7195 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7197 <ul><li> Parser test
7198 </li><li> Parser test
7199 </li><li> Parser test
7200 </li><li> Parser_test
7201 </li><li> Parser test
7202 </li><li> Parser_test
7203 </li><li> Talk:Parser test
7204 </li><li> Talk:Parser_test
7205 </li><li> Parser test
7206 </li><li> Parser_test
7213 </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>
7217 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
7227 image4 |300px| centre
7228 image5.svg| http://///////
7233 <ul class="gallery">
7234 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7235 <div style="height: 150px;">Image1.png</div>
7236 <div class="gallerytext">
7239 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7240 <div style="height: 150px;">Image2.gif</div>
7241 <div class="gallerytext">
7246 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7247 <div style="height: 150px;">Image3</div>
7248 <div class="gallerytext">
7251 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7252 <div style="height: 150px;">Image4</div>
7253 <div class="gallerytext">
7258 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7259 <div style="height: 150px;">Image5.svg</div>
7260 <div class="gallerytext">
7261 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
7265 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7266 <div style="height: 150px;">* image6</div>
7267 <div class="gallerytext">
7275 Gallery (with options)
7277 <gallery widths='60px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
7278 File:Nonexistant.jpg|caption
7279 File:Nonexistant.jpg
7280 image:foobar.jpg|some '''caption''' [[Main Page]]
7284 <ul class="gallery" style="max-width: 202px;_width: 202px;">
7285 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page">Main Page</a></li>
7286 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7287 <div style="height: 70px;">Nonexistant.jpg</div>
7288 <div class="gallerytext">
7293 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7294 <div style="height: 70px;">Nonexistant.jpg</div>
7295 <div class="gallerytext">
7298 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7299 <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>
7300 <div class="gallerytext">
7301 <p>some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
7305 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7306 <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>
7307 <div class="gallerytext">
7315 gallery (with showfilename option)
7317 <gallery showfilename>
7318 File:Nonexistant.jpg|caption
7319 File:Nonexistant.jpg
7320 image:foobar.jpg|some '''caption''' [[Main Page]]
7324 <ul class="gallery">
7325 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7326 <div style="height: 150px;">Nonexistant.jpg</div>
7327 <div class="gallerytext">
7328 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7333 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7334 <div style="height: 150px;">Nonexistant.jpg</div>
7335 <div class="gallerytext">
7336 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7340 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7341 <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>
7342 <div class="gallerytext">
7343 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7344 some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
7348 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7349 <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>
7350 <div class="gallerytext">
7351 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7360 Gallery (with namespace-less filenames)
7363 File:Nonexistant.jpg
7369 <ul class="gallery">
7370 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7371 <div style="height: 150px;">Nonexistant.jpg</div>
7372 <div class="gallerytext">
7375 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7376 <div style="height: 150px;">Nonexistant.jpg</div>
7377 <div class="gallerytext">
7380 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7381 <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>
7382 <div class="gallerytext">
7385 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7386 <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>
7387 <div class="gallerytext">
7395 HTML Hex character encoding (spells the word "JavaScript")
7397 JavaScript
7399 <p>JavaScript
7404 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7408 <p>&#xsee;&#XSEE;
7413 HTML Hex character encoding mixed case
7422 __FORCETOC__ override
7434 ISBN 978-0-1234-56 789
7436 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7441 ISBN followed by 5 spaces
7452 ISBN ISBN 1234567890
7454 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7459 Bug 22905: <abbr> followed by ISBN followed by </a>
7461 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7463 <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>
7472 <p>RFC <a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc1234">RFC 1234</a>
7477 Double RFC with a wiki link
7481 <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>
7490 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc983">RFC 983</a> 987
7495 Centre-aligned image
7497 [[Image:foobar.jpg|centre]]
7499 <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>
7506 [[Image:foobar.jpg|none]]
7508 <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>
7513 Width + Height sized image (using px) (height is ignored)
7515 [[Image:foobar.jpg|640x480px]]
7517 <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>
7522 Width-sized image (using px, no following whitespace)
7524 [[Image:foobar.jpg|640px]]
7526 <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>
7531 Width-sized image (using px, with following whitespace - test regression from r39467)
7533 [[Image:foobar.jpg|640px ]]
7535 <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>
7540 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7542 [[Image:foobar.jpg| 640px]]
7544 <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>
7549 Another italics / bold test
7557 # Note the results may be incorrect, as parserTest output included this:
7558 # XML error: Mismatched tag at byte 6120:
7559 # ...<dd> </dt></dl> </dd...
7567 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7578 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7580 Images with the "|" character in the comment
7582 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7584 <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>
7589 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7591 <html><script>alert(1);</script></html>
7593 <p><html><script>alert(1);</script></html>
7598 HTML with raw HTML ($wgRawHtml==true)
7602 <html><script>alert(1);</script></html>
7604 <p><script>alert(1);</script>
7609 Parents of subpages, one level up
7611 subpage title=[[Subpage test/L1/L2/L3]]
7615 <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>
7621 Parents of subpages, one level up, not named
7623 subpage title=[[Subpage test/L1/L2/L3]]
7627 <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>
7634 Parents of subpages, two levels up
7636 subpage title=[[Subpage test/L1/L2/L3]]
7642 <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
7643 </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>
7648 Parents of subpages, two levels up, without trailing slash or name.
7650 subpage title=[[Subpage test/L1/L2/L3]]
7659 Parents of subpages, two levels up, with lots of extra trailing slashes.
7661 subpage title=[[Subpage test/L1/L2/L3]]
7665 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7670 Definition list code coverage
7676 <dl><dt> title  </dt><dd> def
7677 </dd><dt> title </dt><dd> def
7678 </dd><dt>title</dt><dd> def
7684 Don't fall for the self-closing div
7686 <div>hello world</div/>
7688 <div>hello world</div>
7697 <p>[[:Template:Msg]]
7706 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7710 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7712 Always escape literal '>' in output, not just after '<'
7726 <p>This is a test template
7727 This is a test template
7739 Inclusion of !userCanEdit() content
7743 <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>
7749 Out-of-order TOC heading levels
7758 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7760 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7762 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7763 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7766 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7768 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7769 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7774 <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>
7775 <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>
7776 <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>
7777 <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>
7778 <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>
7779 <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>
7785 ISBN with a dummy number
7795 ISBN with space-delimited number
7799 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7805 ISBN with multiple spaces, no number
7824 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7825 </p><p>ISBN 12345678901
7831 ISBN with trailing year (bug 8110)
7833 ISBN 1-234-56789-0 - 2006
7835 ISBN 1 234 56789 0 - 2006
7837 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7838 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7846 {{anchorencode:foo bar©#%n}}
7848 <p>foo_bar.C2.A9.23.25n
7853 anchorencode trims spaces
7855 {{anchorencode: __pretty__please__}}
7862 anchorencode deals with links
7864 {{anchorencode: [[hello|world]] [[hi]]}}
7871 anchorencode deals with templates
7873 {{anchorencode: {{Foo}} }}
7880 anchorencode encodes like the TOC generator: (bug 18431)
7882 === _ +:.3A%3A&&]] ===
7883 {{anchorencode: _ +:.3A%3A&&]] }}
7886 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7887 <p>.2B:.3A.253A.26.26.5D.5D
7891 # Expected output in the following test is not necessarily expected (there
7892 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7893 # only testing for well-formedness.
7895 Bug 6200: blockquotes and paragraph formatting
7915 Bug 8293: Use of center tag ruins paragraph formatting
7937 ### Language variants related tests
7940 Self-link in language variants
7942 title=[[Dunav]] language=sr
7944 Both [[Dunav]] and [[Дунав]] are names for this river.
7946 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7952 Link to pages in language variants
7956 Main Page can be written as [[Маин Паге]]
7958 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7964 Multiple links to pages in language variants
7968 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7970 <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>.
7976 Simple template in language variants
7982 <p>This is a test template
7988 Template with explicit namespace in language variants
7994 <p>This is a test template
8000 Basic test for template parameter in language variants
8004 {{парамтест|param=foo}}
8006 <p>This is a test template with parameter foo
8012 Simple category in language variants
8016 [[Category:МедиаWики Усер'с Гуиде]]
8018 <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>
8023 Stripping -{}- tags (language variants)
8027 Latin proverb: -{Ne nuntium necare}-
8029 <p>Latin proverb: Ne nuntium necare
8035 Prevent conversion with -{}- tags (language variants)
8037 language=sr variant=sr-ec
8039 Latinski: -{Ne nuntium necare}-
8041 <p>Латински: Ne nuntium necare
8047 Prevent conversion of text with -{}- tags (language variants)
8049 language=sr variant=sr-ec
8051 Latinski: -{Ne nuntium necare}-
8053 <p>Латински: Ne nuntium necare
8059 Prevent conversion of links with -{}- tags (language variants)
8061 language=sr variant=sr-ec
8065 <p><a href="/wiki/Main_Page">Main Page</a>
8071 -{}- tags within headlines (within html for parserConvert())
8073 language=sr variant=sr-ec
8077 <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>
8083 Explicit definition of language variant alternatives
8085 language=zh variant=zh-tw
8087 -{zh:China;zh-tw:Taiwan}-, not China
8089 <p>Taiwan, not China
8095 Explicit session-wise language variant mapping (A flag and - flag)
8097 language=zh variant=zh-tw
8099 Taiwan is not China.
8100 But -{A|zh:China;zh-tw:Taiwan}- is China,
8101 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
8102 and -{China}- is China.
8104 <p>Taiwan is not China.
8105 But Taiwan is Taiwan,
8106 (This should be stripped!)
8112 Explicit session-wise language variant mapping (H flag for hide)
8114 language=zh variant=zh-tw
8116 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
8119 <p>(This should be stripped!)
8125 Adding explicit conversion rule for title (T flag)
8127 language=zh variant=zh-tw showtitle
8129 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8132 <p>Should be stripped!
8137 Testing that changing the language variant here in the tests actually works
8139 language=zh variant=zh showtitle
8141 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8144 <p>Should be stripped!
8149 Bug 24072: more test on conversion rule for title
8151 language=zh variant=zh-tw showtitle
8153 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8154 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8157 <p>This should be stripped!
8158 This won't take interferes with the title rule.
8163 Raw output of variant escape tags (R flag)
8165 language=zh variant=zh-tw
8167 Raw: -{R|zh:China;zh-tw:Taiwan}-
8169 <p>Raw: zh:China;zh-tw:Taiwan
8174 Nested using of manual convert syntax
8176 language=zh variant=zh-hk
8178 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8180 <p>Nested: Hello Hong Kong!
8185 Do not convert roman numbers to language variants
8187 language=sr variant=sr-ec
8191 <p>Фридрих IV је цар.
8196 Unclosed language converter markup "-{"
8207 Don't convert raw rule "-{R|=>}-" to "=>"
8224 Bug 529: Uncovered bullet
8235 Bug 529: Uncovered table already at line-start
8263 Bug 529: Uncovered bullet in parser function result
8265 * Foo {{lc:{{bullet}} }}
8274 Bug 5678: Double-parsed template argument
8276 {{lc:{{{1}}}|hello}}
8283 Bug 5678: Double-parsed template invocation
8285 {{lc:{{paramtest {{!}} param = hello }} }}
8287 <p>{{paramtest | param = hello }}
8292 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8318 Morwen/13: Unclosed link followed by heading
8325 <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>
8330 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8337 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8342 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8349 <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>
8364 Paragraphs inside divs (no extra line breaks)
8376 Paragraphs inside divs (extra line break on open)
8391 Paragraphs inside divs (extra line break on close)
8406 Paragraphs inside divs (extra line break on open and close)
8423 Nesting tags, paragraphs on lines which begin with <div>
8427 <div></div><strong>A
8436 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8438 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8442 <blockquote>Line one
8444 Line two</blockquote>
8446 <blockquote>Line one
8447 Line two</blockquote>
8452 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8459 Line two</blockquote>
8464 Line two</blockquote>
8469 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8473 <blockquote>Line one
8478 <blockquote>Line one
8486 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8505 Paragraphs inside blockquotes/divs (no extra line breaks)
8507 <blockquote><div>Line one
8509 Line two</div></blockquote>
8511 <blockquote><div>Line one
8512 Line two</div></blockquote>
8517 Paragraphs inside blockquotes/divs (extra line break on open)
8522 Line two</div></blockquote>
8527 Line two</div></blockquote>
8532 Paragraphs inside blockquotes/divs (extra line break on close)
8534 <blockquote><div>Line one
8539 <blockquote><div>Line one
8547 Paragraphs inside blockquotes/divs (extra line break on open and close)
8564 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8566 wgLinkHolderBatchSize=0
8572 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw">meatball:1</a>
8573 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw">meatball:2</a>
8574 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw">meatball:3</a>
8579 Free external link invading image caption
8581 [[Image:Foobar.jpg|thumb|http://x|hello]]
8583 <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>
8588 Bug 15196: localised external link numbers
8592 [http://en.wikipedia.org/]
8594 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8599 Multibyte character in padleft
8601 {{padleft:-Hello|7|Æ}}
8608 Multibyte character in padright
8610 {{padright:Hello-|7|Æ}}
8623 <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>
8628 formatdate parser function
8630 {{#formatdate:2009-03-24}}
8632 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8637 formatdate parser function, with default format
8639 {{#formatdate:2009-03-24|mdy}}
8641 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8646 Linked date with autoformatting disabled
8648 wgUseDynamicDates=false
8652 <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>
8657 Spacing of numbers in formatted dates
8659 {{#formatdate:January 15}}
8661 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8666 Spacing of numbers in formatted dates (linked)
8668 wgUseDynamicDates=true
8672 <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>
8685 Edit comment with link
8689 I like the [[Main Page]] a lot
8691 I like the <a href="/wiki/Main_Page">Main Page</a> a lot
8695 Edit comment with link and link text
8699 I like the [[Main Page|best pages]] a lot
8701 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8705 Edit comment with link and link text with suffix
8709 I like the [[Main Page|best page]]s a lot
8711 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8715 Edit comment with section link (non-local, eg in history list)
8717 comment title=[[Main Page]]
8719 /* External links */ removed bogus entries
8721 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
8725 Edit comment with section link (local, eg in diff view)
8727 comment local title=[[Main Page]]
8729 /* External links */ removed bogus entries
8731 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
8735 Edit comment with subpage link (bug 14080)
8739 title=[[Subpage test]]
8741 Poked at a [[/subpage]] here...
8743 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8747 Edit comment with subpage link and link text (bug 14080)
8751 title=[[Subpage test]]
8753 Poked at a [[/subpage|neat little page]] here...
8755 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8759 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8762 title=[[Subpage test]]
8764 Poked at a [[/subpage]] here...
8766 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8770 Edit comment with bare anchor link (local, as on diff)
8778 <a href="#section">#section</a>
8782 Edit comment with bare anchor link (non-local, as on history)
8789 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8793 Anchor starting with underscore
8797 <p><a href="#_ref">One</a>
8802 Id starting with underscore
8804 <div id="_ref"></div>
8806 <div id="_ref"></div>
8811 Space normalisation on autocomment (bug 22784)
8816 /* __hello__world__ */
8818 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
8822 percent-encoding and + signs in comments (Bug 26410)
8826 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8828 <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>
8832 Bad images - basic functionality
8839 Bad images - bug 16039: text after bad image disappears
8851 Verify that displaytitle works (bug #22501) no displaytitle
8855 wgAllowDisplayTitle=true
8856 wgRestrictDisplayTitle=false
8858 this is not the the title
8861 <p>this is not the the title
8866 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8871 wgAllowDisplayTitle=true
8872 wgRestrictDisplayTitle=false
8874 this is not the the title
8875 {{DISPLAYTITLE:whatever}}
8878 <p>this is not the the title
8883 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8888 wgAllowDisplayTitle=true
8889 wgRestrictDisplayTitle=true
8891 this is not the the title
8892 {{DISPLAYTITLE:whatever}}
8895 <p>this is not the the title
8900 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8905 wgAllowDisplayTitle=true
8906 wgRestrictDisplayTitle=true
8908 this is not the the title
8909 {{DISPLAYTITLE:screen}}
8912 <p>this is not the the title
8917 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8922 wgAllowDisplayTitle=false
8924 this is not the the title
8925 {{DISPLAYTITLE:screen}}
8928 <p>this is not the the title
8929 <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>
8934 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8939 wgAllowDisplayTitle=false
8941 this is not the the title
8944 <p>this is not the the title
8949 preload: check <noinclude> and <includeonly>
8953 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8959 preload: check <onlyinclude>
8963 Goodbye <onlyinclude>Hello world</onlyinclude>
8969 preload: can pass tags through if we want to
8973 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8975 <includeonly>Hello world</includeonly>
8979 preload: check that it doesn't try to do tricks
8983 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8985 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8989 Play a bit with r67090 and bug 3158
8993 <div style="width:50% !important"> </div>
8994 <div style="width:50% !important"> </div>
8995 <div style="width:50% !important"> </div>
8996 <div style="border : solid;"> </div>
8998 <div style="width:50% !important"> </div>
8999 <div style="width:50% !important"> </div>
9000 <div style="width:50% !important"> </div>
9001 <div style="border : solid;"> </div>
9006 HTML5 data attributes
9008 <span data-foo="bar">Baz</span>
9009 <p data-abc-def_hij="">Quuz</p>
9011 <p><span data-foo="bar">Baz</span>
9013 <p data-abc-def_hij="">Quuz</p>
9018 percent-encoding and + signs in internal links (Bug 26410)
9020 [[User:+%]] [[Page+title%]]
9021 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
9022 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
9023 [[%33%45]] [[%33%45+]]
9025 <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>
9026 <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>
9027 <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>
9028 <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>
9033 Special characters in embedded file links (bug 27679)
9035 [[File:Contains & ampersand.jpg]]
9036 [[File:Does not exist.jpg|Title with & ampersand]]
9038 <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>
9039 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
9056 Bug#542 Link text shouldn't be duplicated in title attributes
9058 [[A]] [[a]] [[Ä]] [[ä]]
9060 <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>
9070 Try for 100% code coverage