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
1270 Multiplication table
1272 {| border="1" cellpadding="2"
1273 |+Multiplication table
1275 ! × !! 1 !! 2 !! 3
1293 <table border="1" cellpadding="2">
1294 <caption>Multiplication table
1341 {| align=right border=1
1343 |rowspan=2| Cell 2, row 1 (and 2)
1350 <table align="right" border="1">
1352 <td>Cell 1, row 1</td>
1353 <td rowspan="2">Cell 2, row 1 (and 2)</td>
1354 <td>Cell 3, row 1</td>
1357 <td>Cell 1, row 2</td>
1358 <td>Cell 3, row 2</td>
1370 {| bgcolor=#ABCDEF border=2
1375 |the original table again
1382 <table bgcolor="#ABCDEF" border="2">
1390 <td>the original table again</td>
1397 Invalid attributes in table cell (bug 1830)
1412 Heading inside table (affected by r85922)
1423 <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>
1431 A table with a caption with unclosed italic
1439 <caption><i>caption</i>
1449 A table with unclosed italic in a cell
1457 <td><i>Cell</i></td>
1464 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1467 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1471 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
1472 <td>]" onmouseover="alert(document.cookie)">test</td>
1479 Indented Tables, bug 20078
1503 Plain link, capitalized
1507 <p><a href="/wiki/Main_Page">Main Page</a>
1512 Plain link, uncapitalized
1516 <p><a href="/wiki/Main_Page">main Page</a>
1523 [[Main Page|The Main Page]]
1525 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1534 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1539 Broken link with fragment
1541 [[Zigzagzogzagzig#zug]]
1543 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1548 Special page link with fragment
1550 [[Special:Version#anchor]]
1552 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1557 Nonexistent special page link with fragment
1559 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1561 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1568 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1570 <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>
1577 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1579 <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>!!!
1584 Link with 3 brackets
1593 Piped link with 3 brackets
1595 [[[main page|the main page]]]
1597 <p>[[[main page|the main page]]]
1602 Link with multiple pipes
1604 [[Main Page|The|Main|Page]]
1606 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1613 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1615 <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>
1620 Piped link to namespace
1622 [[Meta:Disclaimers|The disclaimers]]
1624 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1631 [[Usually caused by a typo (oops}]]
1633 <p>[[Usually caused by a typo (oops}]]
1638 Link containing % (not as a hex sequence)
1642 <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>
1647 Link containing % as a single hex sequence interpreted to char
1651 <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>
1656 Link containing % as a double hex sequence interpreted to hex sequence
1660 <p>[[7%2525 Solution]]
1665 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1666 Example for such a section: == < ==
1668 [[%23%3c]][[%23%3e]]
1670 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1675 Link containing "<#" and ">#" as a hex sequences
1677 [[%3c%23]][[%3e%23]]
1679 <p>[[%3c%23]][[%3e%23]]
1684 Link containing double-single-quotes '' (bug 4598)
1686 [[Lista d''e paise d''o munno]]
1688 <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>
1693 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1695 Some [[Link|pretty ''italics'' and stuff]]!
1697 <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>!
1702 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1704 ''Some [[Link|pretty ''italics'' and stuff]]!
1706 <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>
1711 Link with double quotes in title part (literal) and alternate part (interpreted)
1713 [[File:Denys Savchenko ''Pentecoste''.jpg]]
1717 [[''Pentecoste''|Pentecoste]]
1719 [[''Pentecoste''|''Pentecoste'']]
1721 <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>
1722 </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>
1723 </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>
1724 </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>
1731 [[http://www.example.com]]
1733 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
1737 # I'm fairly sure the expected result here is wrong.
1738 # We want these to be URL links, not pseudo-pages with URLs for titles....
1739 # However the current output is also pretty screwy.
1742 # I'm changing it to match the current output--it arguably makes more
1743 # sense in the light of the test above. Old expected result was:
1744 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1746 # But I think this test is bordering on "garbage in, garbage out" anyway.
1751 Piped link to URL: [[http://www.example.com|an example URL]]
1753 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
1758 BUG 2: [[page|http://url/]] should link to page, not http://url/
1760 [[Main Page|http://url/]]
1762 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1767 BUG 337: Escaped self-links should be bold
1771 [[Bug462]] [[Bug462]]
1773 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1778 Self-link to section should not be bold
1782 [[Main Page#section]]
1784 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1795 Self-link to numeric title
1801 <p><strong class="selflink">0</strong>
1806 Link to numeric-equivalent title
1812 <p><a href="/wiki/00">00</a>
1817 <nowiki> inside a link
1819 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1821 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1826 Non-breaking spaces in title
1828 [[ Main Page ]]
1830 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
1835 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
1841 <p><b><a href="/wiki/Main_Page">Main Page</a></b>
1846 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
1852 <p><i><a href="/wiki/Main_Page">Main Page</a></i>
1857 Internal link with en linktrail: no apostrophes (bug 27473)
1863 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
1868 Internal link with ca linktrail with apostrophes (bug 27473)
1874 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
1879 Internal link with kaa linktrail with apostrophes (bug 27473)
1885 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
1890 ### Interwiki links (see maintenance/interwiki.sql)
1894 Inline interwiki link
1896 [[MeatBall:SoftSecurity]]
1898 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw">MeatBall:SoftSecurity</a>
1903 Inline interwiki link with empty title (bug 2372)
1907 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw">MeatBall:</a>
1912 Interwiki link encoding conversion (bug 1636)
1914 *[[Wikipedia:ro:Olteniţa]]
1915 *[[Wikipedia:ro:Olteniţa]]
1917 <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>
1918 </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>
1924 Interwiki link with fragment (bug 2130)
1926 [[MeatBall:SoftSecurity#foo]]
1928 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1943 Double interlanguage link
1954 Interlanguage link, with prefix links
1966 Double interlanguage link, with prefix links (bug 8897)
1993 Incorrecly removing closing slashes from correctly formed XHTML
1995 <br style="clear:both;" />
1997 <p><br style="clear:both;" />
2002 Failing to transform badly formed HTML into correct XHTML
2008 <p><br clear="left" />
2009 <br clear="right" />
2015 Horizontal ruler (should it add that extra space?)
2029 ### Block-level elements
2052 <ol><li>Numbered list
2069 ***#Number on level 4
2071 **#Number on level 3
2072 **#Number on level 3
2077 <ol><li> with numbers
2079 <ul><li> and bullets
2081 <ol><li> and numbers
2083 </li><li>bullets again
2084 <ul><li>bullet level 2
2085 <ul><li>bullet level 3
2086 <ol><li>Number on level 4
2089 </li><li>bullet level 2
2090 <ol><li>Number on level 3
2091 </li><li>Number on level 3
2094 <ol><li>number level 2
2102 List items are not parsed correctly following a <pre> block (bug 785)
2108 <ul><li> <pre>foo</pre>
2109 </li><li> <pre>bar</pre>
2120 Magic Word: {{CURRENTDAY}}
2129 Magic Word: {{CURRENTDAY2}}
2138 Magic Word: {{CURRENTDAYNAME}}
2147 Magic Word: {{CURRENTDOW}}
2156 Magic Word: {{CURRENTMONTH}}
2165 Magic Word: {{CURRENTMONTHABBREV}}
2167 {{CURRENTMONTHABBREV}}
2174 Magic Word: {{CURRENTMONTHNAME}}
2176 {{CURRENTMONTHNAME}}
2183 Magic Word: {{CURRENTMONTHNAMEGEN}}
2185 {{CURRENTMONTHNAMEGEN}}
2192 Magic Word: {{CURRENTTIME}}
2201 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2210 Magic Word: {{CURRENTYEAR}}
2219 Magic Word: {{FULLPAGENAME}}
2221 title=[[User:Ævar Arnfjörð Bjarmason]]
2225 <p>User:Ævar Arnfjörð Bjarmason
2230 Magic Word: {{FULLPAGENAMEE}}
2232 title=[[User:Ævar Arnfjörð Bjarmason]]
2236 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2241 Magic Word: {{NAMESPACE}}
2243 title=[[User:Ævar Arnfjörð Bjarmason]]
2252 Magic Word: {{NAMESPACEE}}
2254 title=[[User:Ævar Arnfjörð Bjarmason]]
2263 Magic Word: {{NUMBEROFFILES}}
2272 Magic Word: {{PAGENAME}}
2274 title=[[User:Ævar Arnfjörð Bjarmason]]
2278 <p>Ævar Arnfjörð Bjarmason
2283 Magic Word: {{PAGENAME}} with metacharacters
2285 title=[['foo & bar = baz']]
2289 <p><i>'foo & bar = baz'</i>
2294 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2296 title=[[*RFC 1234 http://example.com/]]
2300 <p>*RFC 1234 http://example.com/
2305 Magic Word: {{PAGENAMEE}}
2307 title=[[User:Ævar Arnfjörð Bjarmason]]
2311 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2316 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2318 title=[[*RFC 1234 http://example.com/]]
2322 <p>*RFC_1234_http://example.com/
2327 Magic Word: {{REVISIONID}}
2336 Magic Word: {{SCRIPTPATH}}
2345 Magic Word: {{SERVER}}
2349 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2354 Magic Word: {{SERVERNAME}}
2363 Magic Word: {{SITENAME}}
2372 Namespace 1 {{ns:1}}
2381 Namespace 1 {{ns:01}}
2390 Namespace 0 {{ns:0}} (bug 4783)
2398 Namespace 0 {{ns:00}} (bug 4783)
2406 Namespace -1 {{ns:-1}}
2415 Namespace User {{ns:User}}
2424 Namespace User talk {{ns:User_talk}}
2433 Namespace User talk {{ns:uSeR tAlK}}
2442 Namespace File {{ns:File}}
2451 Namespace File {{ns:Image}}
2460 Namespace (lang=de) Benutzer {{ns:User}}
2471 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2477 <p>Benutzer Diskussion
2485 {{urlencode:hi world?!}}
2486 {{urlencode:hi world?!|WIKI}}
2487 {{urlencode:hi world?!|PATH}}
2488 {{urlencode:hi world?!|QUERY}}
2501 Magic links: internal link to RFC (bug 479)
2505 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2510 Magic links: RFC (bug 479)
2514 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc822">RFC 822</a>
2519 Magic links: ISBN (bug 1937)
2523 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2528 Magic links: PMID incorrectly converts space to underscore
2532 <p><a class="external mw-magiclink-pmid" href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2541 Nonexistent template
2543 {{thistemplatedoesnotexist}}
2545 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2552 This is a test template
2560 <p>This is a test template
2565 Template with explicit namespace
2569 <p>This is a test template
2577 This is a test template with parameter {{{param}}}
2583 {{paramtest|param=foo}}
2585 <p>This is a test template with parameter foo
2590 Template:paramtestnum
2596 Template unnamed parameter
2598 {{paramtestnum|Main Page|the main page}}
2600 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2605 Template:templatesimple
2611 Template:templateredirect
2613 #redirect [[Template:templatesimple]]
2617 Template:templateasargtestnum
2623 Template:templateasargtest
2625 {{template{{{templ}}}}}
2629 Template:templateasargtest2
2635 Template with template name as unnamed argument
2637 {{templateasargtestnum|templatesimple}}
2644 Template with template name as argument
2646 {{templateasargtest|templ=simple}}
2653 Template with template name as argument (2)
2655 {{templateasargtest2|templ=templatesimple}}
2662 Template:templateasargtestdefault
2664 {{{{{templ|templatesimple}}}}}
2674 Template with default value
2676 {{templateasargtestdefault}}
2683 Template with default value (value set)
2685 {{templateasargtestdefault|templ=templa}}
2694 {{templateredirect}}
2701 Template with argument in separate line
2703 {{ templateasargtest |
2711 Template with complex template as argument
2714 param ={{ templateasargtest |
2717 <p>This is a test template with parameter (test)
2722 Template with thumb image (with link in description)
2725 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2727 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>
2732 Template:complextemplate
2734 {{{1}}} {{paramtest|
2735 param ={{{param}}}}}
2739 Template with complex arguments
2742 param ={{ templateasargtest |
2743 templ = simple }}|[[Template:complextemplate|link]]}}
2745 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2750 BUG 553: link with two variables in a piped link
2753 |[[{{{1}}}|{{{2}}}]]
2758 <td>[[{{{1}}}|{{{2}}}]]</td>
2765 Magic variable as template parameter
2767 {{paramtest|param={{SITENAME}}}}
2769 <p>This is a test template with parameter MediaWiki
2776 [[{{{param}}}|link]]
2780 Template parameter as link source
2782 {{linktest|param=Main Page}}
2784 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2792 including another template, {{paramtest|param={{{arg}}}}}
2796 Template passing argument to another template
2798 {{paramtest2|arg='hmm'}}
2800 <p>including another template, This is a test template with parameter 'hmm'
2811 Template as link source
2815 <p><a href="/wiki/Main_Page">Main Page</a>
2833 Template infinite loop
2837 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1">Template:Loop1</a></span>
2842 Template from main namespace
2861 BUG 529: Template with table, not included at beginning of line
2881 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2902 BUG 41: Template parameters shown as broken links
2914 ''None'' of '''this''' should be
2916 but rather passed unmodified
2920 # hmm, fix this or just deprecate msgnw and document its behavior?
2926 {{msgnw:MSGNW test}}
2928 <p>''None'' of '''this''' should be
2930 but rather passed unmodified
2938 {{int:youhavenewmessages|lots of money|not!}}
2940 <p>You have lots of money (not!).
2947 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2951 <includeonly> and <noinclude> being included
2962 <onlyinclude>Foo</onlyinclude>bar
2966 <onlyinclude> being included
2978 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2982 <onlyinclude> and <includeonly> being included
2991 <includeonly> and <noinclude> on a page
2993 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3000 <onlyinclude> on a page
3002 <onlyinclude>Foo</onlyinclude>bar
3009 Template:Includeonly section
3012 ==Includeonly section==
3018 Bug 6563: Edit link generation for section shown by <includeonly>
3020 {{includeonly section}}
3022 <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>
3023 <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>
3027 # Uses same input as the contents of [[Template:Includeonly section]]
3029 Bug 6563: Section extraction for section shown by <includeonly>
3034 ==Includeonly section==
3042 Bug 6563: Edit link generation for section suppressed by <includeonly>
3045 ==Includeonly section==
3049 <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>
3054 Bug 6563: Section extraction for section suppressed by <includeonly>
3059 ==Includeonly section==
3067 ### Pre-save transform tests
3070 pre-save transform: subst:
3076 This is a test template
3080 pre-save transform: normal template
3090 pre-save transform: nonexistent template
3094 {{thistemplatedoesnotexist}}
3096 {{thistemplatedoesnotexist}}
3101 pre-save transform: subst magic variables
3110 # This is bug 89, which I fixed. -- wtm
3112 pre-save transform: subst: templates with parameters
3116 {{subst:paramtest|param="something else"}}
3118 This is a test template with parameter "something else"
3124 <nowiki>'''not wiki'''</nowiki>
3128 pre-save transform: nowiki in subst (bug 1188)
3132 {{subst:nowikitest}}
3134 <nowiki>'''not wiki'''</nowiki>
3139 Template:commenttest
3141 This template has <!-- a comment --> in it.
3145 pre-save transform: comment in subst (bug 1936)
3149 {{subst:commenttest}}
3151 This template has <!-- a comment --> in it.
3155 pre-save transform: unclosed tag
3159 <nowiki>'''not wiki'''
3161 <nowiki>'''not wiki'''
3165 pre-save transform: mixed tag case
3169 <NOwiki>'''not wiki'''</noWIKI>
3171 <NOwiki>'''not wiki'''</noWIKI>
3175 pre-save transform: unclosed comment in <nowiki>
3179 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3181 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3187 <span onmouseover="alert('crap')">Oh no</span>
3191 (confirming safety of fix for subst bug 1936)
3193 {{Template:dangerous}}
3195 <p><span>Oh no</span>
3200 pre-save transform: comment containing gallery (bug 5024)
3204 <!-- <gallery>data</gallery> -->
3206 <!-- <gallery>data</gallery> -->
3210 pre-save transform: comment containing extension
3214 <!-- <tag>data</tag> -->
3216 <!-- <tag>data</tag> -->
3220 pre-save transform: comment containing nowiki
3224 <!-- <nowiki>data</nowiki> -->
3226 <!-- <nowiki>data</nowiki> -->
3230 pre-save transform: <noinclude> in subst (bug 3298)
3240 pre-save transform: <onlyinclude> in subst (bug 3298)
3252 {{<includeonly>subst:</includeonly>Includes}}
3256 Template:SafeSubstTest
3258 {{<includeonly>safesubst:</includeonly>Includes}}
3262 bug 22297: safesubst: works during PST
3266 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3272 bug 22297: safesubst: works during normal parse
3281 subst: does not work during normal parse
3285 <p>{{subst:Includes}}
3290 pre-save transform: context links ("pipe trick")
3294 [[Article (context)|]]
3297 [[Bar:Article (context)|]]
3298 [[:Bar:Article (context)|]]
3300 [[|Article (context)]]
3304 [[Article (context)|Article]]
3305 [[Bar:Article|Article]]
3306 [[:Bar:Article|Article]]
3307 [[Bar:Article (context)|Article]]
3308 [[:Bar:Article (context)|Article]]
3310 [[Article (context)]]
3311 [[Bar:X (Y) Z|X (Y) Z]]
3312 [[:Bar:X (Y) Z|X (Y) Z]]
3316 pre-save transform: context links ("pipe trick") with interwiki prefix
3320 [[interwiki:Article|]]
3321 [[:interwiki:Article|]]
3322 [[interwiki:Bar:Article|]]
3323 [[:interwiki:Bar:Article|]]
3325 [[interwiki:Article|Article]]
3326 [[:interwiki:Article|Article]]
3327 [[interwiki:Bar:Article|Bar:Article]]
3328 [[:interwiki:Bar:Article|Bar:Article]]
3332 pre-save transform: context links ("pipe trick") with parens in title
3334 pst title=[[Somearticle (context)]]
3338 [[Article (context)|Article]]
3342 pre-save transform: context links ("pipe trick") with comma in title
3344 pst title=[[Someplace, Somewhere]]
3347 [[Otherplace, Elsewhere|]]
3348 [[Otherplace, Elsewhere, Anywhere|]]
3350 [[Otherplace, Somewhere|Otherplace]]
3351 [[Otherplace, Elsewhere|Otherplace]]
3352 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3356 pre-save transform: context links ("pipe trick") with parens and comma
3358 pst title=[[Someplace (IGNORED), Somewhere]]
3361 [[Otherplace (place), Elsewhere|]]
3363 [[Otherplace, Somewhere|Otherplace]]
3364 [[Otherplace (place), Elsewhere|Otherplace]]
3368 pre-save transform: context links ("pipe trick") with comma and parens
3370 pst title=[[Who, me? (context)]]
3373 [[Me, Myself, and I (1937 song)|]]
3375 [[Yes, you. (context)|Yes, you.]]
3376 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3380 pre-save transform: context links ("pipe trick") with namespace
3382 pst title=[[Ns:Somearticle]]
3386 [[Ns:Article|Article]]
3390 pre-save transform: context links ("pipe trick") with namespace and parens
3392 pst title=[[Ns:Somearticle (context)]]
3396 [[Ns:Article (context)|Article]]
3400 pre-save transform: context links ("pipe trick") with namespace and comma
3402 pst title=[[Ns:Somearticle, Context, Whatever]]
3406 [[Ns:Article, Context, Whatever|Article]]
3410 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3412 pst title=[[Ns:Somearticle, Context (context)]]
3416 [[Ns:Article (context)|Article]]
3420 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3422 pst title=[[Ns:Somearticle (IGNORED), Context]]
3426 [[Ns:Article, Context|Article]]
3431 ### Message transform tests
3434 message transform: magic variables
3444 message transform: should not transform wiki markup
3454 message transform: <noinclude> in transcluded template (bug 4926)
3464 message transform: <onlyinclude> in transcluded template (bug 4926)
3474 {{#special:}} page name, known
3478 {{#special:Recentchanges}}
3480 Special:RecentChanges
3484 {{#special:}} page name with subpage, known
3488 {{#special:Recentchanges/param}}
3490 Special:RecentChanges/param
3494 {{#special:}} page name, unknown
3498 {{#special:foobarnonexistent}}
3500 No such special page
3509 [[Image:foobar.jpg]]
3511 <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>
3518 [[Image:foobar.jpg|right]]
3520 <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>
3525 Simple image (using File: namespace, now canonical)
3529 <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>
3536 [[Image:foobar.jpg|right|Caption text]]
3538 <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>
3543 Image with link parameter, wiki target
3545 [[Image:foobar.jpg|link=Target page]]
3547 <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>
3552 Image with link parameter, URL target
3554 [[Image:foobar.jpg|link=http://example.com/]]
3556 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3561 Image with link parameter, wgExternalLinkTarget
3563 [[Image:foobar.jpg|link=http://example.com/]]
3565 wgExternalLinkTarget='foobar'
3567 <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>
3572 Image with link parameter, wgExternalLinkTarget, unnamed parameter
3574 [[Image:foobar.jpg|link=http://example.com/|Title]]
3576 wgExternalLinkTarget='foobar'
3578 <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>
3583 Image with empty link parameter
3585 [[Image:foobar.jpg|link=]]
3587 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3592 Image with link parameter (wiki target) and unnamed parameter
3594 [[Image:foobar.jpg|link=Target page|Title]]
3596 <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>
3601 Image with link parameter (URL target) and unnamed parameter
3603 [[Image:foobar.jpg|link=http://example.com/|Title]]
3605 <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>
3610 Thumbnail image with link parameter
3612 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
3614 <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>
3619 Image with frame and link
3621 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3623 <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>
3628 Image with frame and link and explicit alt
3630 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3632 <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>
3637 Image with wiki markup in implicit alt
3639 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3641 <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>
3646 Image with wiki markup in explicit alt
3648 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3650 <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>
3655 Link to image page- image page normally doesn't exists, hence edit link
3656 Add test with existing image page
3657 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3661 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3666 bug 18784 Link to non-existent image page with caption should use caption as link text
3668 [[:Image:test|caption]]
3670 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
3675 Frameless image caption with a free URL
3677 [[Image:foobar.jpg|http://example.com]]
3679 <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>
3684 Thumbnail image caption with a free URL
3686 [[Image:foobar.jpg|thumb|http://example.com]]
3688 <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>
3693 Thumbnail image caption with a free URL and explicit alt
3695 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3697 <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>
3702 BUG 1887: A ISBN with a thumbnail
3704 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3706 <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>
3711 BUG 1887: A RFC with a thumbnail
3713 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3715 <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>
3720 BUG 1887: A mailto link with a thumbnail
3722 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3724 <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>
3728 # Pending resolution to bug 368
3730 BUG 648: Frameless image caption with a link
3732 [[Image:foobar.jpg|text with a [[link]] in it]]
3734 <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>
3739 BUG 648: Frameless image caption with a link (suffix)
3741 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3743 <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>
3748 BUG 648: Frameless image caption with an interwiki link
3750 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3752 <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>
3757 BUG 648: Frameless image caption with a piped interwiki link
3759 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3761 <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>
3766 Escape HTML special chars in image alt text
3768 [[Image:foobar.jpg|& < > "]]
3770 <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>
3775 BUG 499: Alt text should have Ӓ, not &1234;
3777 [[Image:foobar.jpg|♀]]
3779 <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>
3784 Broken image caption with link
3786 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3788 <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.
3793 Image caption containing another image
3795 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3797 <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>
3802 Image caption containing a newline
3804 [[Image:Foobar.jpg|This
3807 <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>
3813 Bug 3090: External links other than http: in image captions
3815 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3817 <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>
3824 #REDIRECT [[File:Barfoo.jpg]]
3830 [[Image:Barfoo.jpg]]
3832 <p><a href="/wiki/File:Barfoo.jpg">File:Barfoo.jpg</a>
3837 Missing image with uploads disabled
3841 [[Image:Foobaz.jpg]]
3843 <p><a href="/wiki/File:Foobaz.jpg">File:Foobaz.jpg</a>
3852 Subpage test/subpage
3860 subpage title=[[Subpage test]]
3864 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3869 Subpage noslash link
3871 subpage title=[[Subpage test]]
3875 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3884 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
3889 BUG 561: {{/Subpage}}
3891 subpage title=[[Page]]
3895 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
3903 Category:MediaWiki User's Guide
3911 [[:Category:MediaWiki User's Guide]]
3913 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide">Category:MediaWiki User's Guide</a>
3922 [[Category:MediaWiki User's Guide]]
3924 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3928 PAGESINCATEGORY invalid title fatal (r33546 fix)
3930 {{PAGESINCATEGORY:<bogus>}}
3937 ### Inter-language links
3940 Inter-language links
3946 [[zh:食品]]
3948 es:Alimento fr:Nourriture zh:食品
3955 Basic section headings
3962 ===Smaller headline===
3965 <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>
3968 <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>
3971 <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>
3977 Section headings with TOC
3980 === Subheadline 1 ===
3981 ===== Skipping a level =====
3982 ====== Skipping a level ======
3986 ===Another headline===
3988 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3990 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3992 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3994 <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>
3996 <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>
4003 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4005 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4010 <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>
4011 <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>
4012 <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>
4013 <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>
4014 <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>
4017 <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>
4021 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4023 Handling of sections up to level 6 and beyond
4026 == Level 2 Heading==
4027 === Level 3 Heading===
4028 ==== Level 4 Heading====
4029 ===== Level 5 Heading=====
4030 ====== Level 6 Heading======
4031 ======= Level 7 Heading=======
4032 ======== Level 8 Heading========
4033 ========= Level 9 Heading=========
4034 ========== Level 10 Heading==========
4036 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4038 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4040 <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>
4042 <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>
4044 <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>
4046 <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>
4048 <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>
4049 <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>
4050 <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>
4051 <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>
4052 <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>
4065 <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>
4066 <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>
4067 <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>
4068 <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>
4069 <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>
4070 <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>
4071 <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>
4072 <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>
4073 <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>
4074 <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>
4079 TOC regression (bug 9764)
4083 ==== title 1.1.1 ====
4088 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4090 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4092 <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>
4094 <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>
4097 <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>
4100 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4102 <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>
4107 <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>
4108 <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>
4109 <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>
4110 <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>
4111 <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>
4112 <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>
4117 TOC with wgMaxTocLevel=3 (bug 6204)
4123 ==== title 1.1.1 ====
4128 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4130 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4132 <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>
4133 <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>
4136 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4138 <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>
4143 <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>
4144 <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>
4145 <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>
4146 <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>
4147 <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>
4148 <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>
4153 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4159 ====Section 1.1.1====
4160 ====Section 1.1.1.1====
4163 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4165 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4167 <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>
4170 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4173 <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>
4174 <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>
4175 <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>
4176 <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>
4177 <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>
4183 Resolving duplicate section names
4188 <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>
4189 <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>
4194 Resolving duplicate section names with differing case (bug 10721)
4199 <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>
4200 <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>
4212 Template with sections, __NOTOC__
4219 <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>
4220 <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>
4221 <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>
4222 <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>
4227 __NOEDITSECTION__ keyword
4233 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4234 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4239 Link inside a section heading
4241 ==Section with a [[Main Page|link]] in it==
4243 <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>
4248 TOC regression (bug 12077)
4255 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4257 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4259 <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>
4262 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4265 <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>
4266 <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>
4267 <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>
4272 BUG 1219 URL next to image (good)
4274 http://example.com [[Image:foobar.jpg]]
4276 <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>
4281 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4284 The line above must have a trailing space!
4287 But just in case it doesn't...
4289 <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>
4290 <p>The line above must have a trailing space!
4292 <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>
4293 <p>But just in case it doesn't...
4298 Header with special characters (bug 25462)
4300 The tooltips shall not show entities to the user (ie. be double escaped)
4317 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4319 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4321 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4322 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4323 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4324 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4325 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4328 <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>
4331 <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>
4334 <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>
4337 <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>
4340 <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>
4346 BUG 1219 URL next to image (broken)
4348 http://example.com[[Image:foobar.jpg]]
4350 <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>
4355 Bug 1186 news: in the middle of text
4357 http://en.wikinews.org/wiki/Wikinews:Workplace
4359 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4365 Namespaced link must have a title
4374 Namespaced link must have a title (bad fragment version)
4376 [[Project:#fragment]]
4378 <p>[[Project:#fragment]]
4384 div with no attributes
4386 <div>HTML rocks</div>
4388 <div>HTML rocks</div>
4393 div with double-quoted attribute
4395 <div id="rock">HTML rocks</div>
4397 <div id="rock">HTML rocks</div>
4402 div with single-quoted attribute
4404 <div id='rock'>HTML rocks</div>
4406 <div id="rock">HTML rocks</div>
4411 div with unquoted attribute
4413 <div id=rock>HTML rocks</div>
4415 <div id="rock">HTML rocks</div>
4420 div with illegal double attributes
4422 <div align="center" align="right">HTML rocks</div>
4424 <div align="right">HTML rocks</div>
4429 HTML multiple attributes correction
4431 <p class="error" class="awesome">Awesome!</p>
4433 <p class="awesome">Awesome!</p>
4438 Table multiple attributes correction
4441 !+ class="error" class="awesome"| status
4446 <th class="awesome">status</th>
4455 <DIV ALIGN="center">HTML ROCKS</DIV>
4457 <div align="center">HTML ROCKS</div>
4463 text with amp in the middle of nowhere
4467 <p>Remember AT&T?
4472 text with character entity: eacute
4474 I always thought é was a cute letter.
4476 <p>I always thought é was a cute letter.
4481 text with undefined character entity: xacute
4483 I always thought &xacute; was a cute letter.
4485 <p>I always thought &xacute; was a cute letter.
4497 [[Media:Foobar.jpg]]
4499 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4504 Media link with text
4506 [[Media:Foobar.jpg|A neat file to look at]]
4508 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4512 # FIXME: this is still bad HTML tag nesting
4514 Media link with nasty text
4515 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4517 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4519 <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>
4524 Media link to nonexistent file (bug 1702)
4526 [[Media:No such.jpg]]
4528 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4533 Image link to nonexistent file (bug 1850 - good)
4535 [[Image:No such.jpg]]
4537 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4542 :Image link to nonexistent file (bug 1850 - bad)
4544 [[:Image:No such.jpg]]
4546 <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>
4553 Character reference normalization in link text (bug 1938)
4555 [[Main Page|this&that]]
4557 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4564 Test for unicode normalization
4566 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4570 (bug 19451) Links should refer to the normalized form.
4578 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4579 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4580 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4581 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4582 <a href="/wiki/%D7%90%D6%B7">אַ</a>
4587 Empty attribute crash test (bug 2067)
4589 <font color="">foo</font>
4591 <p><font color="">foo</font>
4596 Empty attribute crash test single-quotes (bug 2067)
4598 <font color=''>foo</font>
4600 <p><font color="">foo</font>
4605 Attribute test: equals, then nothing
4607 <font color=>foo</font>
4614 Attribute test: unquoted value
4616 <font color=x>foo</font>
4618 <p><font color="x">foo</font>
4623 Attribute test: unquoted but illegal value (hash)
4625 <font color=#x>foo</font>
4627 <p><font color="#x">foo</font>
4632 Attribute test: no value
4634 <font color>foo</font>
4636 <p><font color="color">foo</font>
4641 Bug 2095: link with three closing brackets
4645 <p><a href="/wiki/Main_Page">Main Page</a>]
4650 Bug 2095: link with pipe and three closing brackets
4654 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4659 Bug 2095: link with pipe and three closing brackets, version 2
4661 [[Main Page|[http://example.com/]]]
4663 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4673 Template:Dangerous attribute
4675 " onmouseover="alert(document.cookie)
4679 Template:Dangerous style attribute
4681 border-size: expression(alert(document.cookie))
4687 <div style="float: right; {{{1}}}">Magic div</div>
4691 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4693 <div title="{{test}}"></div>
4695 <div title="This is a test template"></div>
4700 Bug 2304: HTML attribute safety (dangerous template; 2309)
4702 <div title="{{dangerous attribute}}"></div>
4704 <div title=""></div>
4709 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4711 <div style="{{dangerous style attribute}}"></div>
4713 <div style="/* insecure input */"></div>
4718 Bug 2304: HTML attribute safety (safe parameter; 2309)
4720 {{div style|width: 200px}}
4722 <div style="float: right; width: 200px">Magic div</div>
4727 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4729 {{div style|width: expression(alert(document.cookie))}}
4731 <div style="/* insecure input */">Magic div</div>
4736 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4738 {{div style|"><script>alert(document.cookie)</script>}}
4740 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4745 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4747 {{div style|" ><script>alert(document.cookie)</script>}}
4749 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4754 Bug 2304: HTML attribute safety (link)
4756 <div title="[[Main Page]]"></div>
4758 <div title="[[Main Page]]"></div>
4763 Bug 2304: HTML attribute safety (italics)
4765 <div title="''foobar''"></div>
4767 <div title="''foobar''"></div>
4772 Bug 2304: HTML attribute safety (bold)
4774 <div title="'''foobar'''"></div>
4776 <div title="'''foobar'''"></div>
4782 Bug 2304: HTML attribute safety (ISBN)
4784 <div title="ISBN 1234567890"></div>
4786 <div title="ISBN 1234567890"></div>
4791 Bug 2304: HTML attribute safety (RFC)
4793 <div title="RFC 1234"></div>
4795 <div title="RFC 1234"></div>
4800 Bug 2304: HTML attribute safety (PMID)
4802 <div title="PMID 1234567890"></div>
4804 <div title="PMID 1234567890"></div>
4809 Bug 2304: HTML attribute safety (web link)
4811 <div title="http://example.com/"></div>
4813 <div title="http://example.com/"></div>
4818 Bug 2304: HTML attribute safety (named web link)
4820 <div title="[http://example.com/ link]"></div>
4822 <div title="[http://example.com/ link]"></div>
4827 Bug 3244: HTML attribute safety (extension; safe)
4829 <div style="<nowiki>background:blue</nowiki>"></div>
4831 <div style="background:blue"></div>
4836 Bug 3244: HTML attribute safety (extension; unsafe)
4838 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4840 <div style="/* insecure input */"></div>
4844 # More MSIE fun discovered by Tom Gilder
4847 MSIE CSS safety test: spurious slash
4849 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4851 <div style="/* insecure input */">evil</div>
4856 MSIE CSS safety test: hex code
4858 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4860 <div style="/* insecure input */">evil</div>
4865 MSIE CSS safety test: comment in url
4867 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4869 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4874 MSIE CSS safety test: comment in expression
4876 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4878 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4884 Table attribute legitimate extension
4887 !+ style="<nowiki>color:blue</nowiki>"| status
4892 <th style="color:blue">status</th>
4899 Table attribute safety
4902 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4907 <th style="/* insecure input */">status</th>
4914 CSS line continuation 1
4916 <div style="background-image: u\ rl(test.jpg);"></div>
4918 <div style="/* insecure input */"></div>
4923 CSS line continuation 2
4925 <div style="background-image: u\ rl(test.jpg); "></div>
4927 <div style="/* insecure input */"></div>
4938 Expansion of multi-line templates in attribute values (bug 6255)
4940 <div style="background: {{identity|#00FF00}}">-</div>
4942 <div style="background: #00FF00">-</div>
4948 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
4950 <div style="background:
4953 <div style="background: #00FF00">-</div>
4958 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
4960 <div style="background: #00FF00">-</div>
4962 <div style="background: #00FF00">-</div>
4967 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
4970 Parser hook: empty input
4983 Parser hook: empty input using terminated empty elements
4996 Parser hook: empty input using terminated empty elements (space before)
5009 Parser hook: basic input
5023 Parser hook: case insensitive
5037 Parser hook: case insensitive, redux
5050 Parser hook: nested tags
5054 <tag><tag></tag></tag>
5065 Parser hook: basic arguments
5067 <tag width=200 height = "100" depth = '50' square></tag>
5086 Parser hook: argument containing a forward slash (bug 5344)
5088 <tag filename='/tmp/bla'></tag>
5094 string(8) "/tmp/bla"
5101 Parser hook: empty input using terminated empty elements (bug 2374)
5115 # </tag> should be output literally since there is no matching tag that begins it
5117 Parser hook: basic arguments using terminated empty elements (bug 2374)
5119 <tag width=200 height = "100" depth = '50' square/>
5142 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5146 Parser hook: static parser hook not inside a comment
5148 <statictag>hello, world</statictag>
5149 <statictag action=flush/>
5157 Parser hook: static parser hook inside a comment
5159 <!-- <statictag>hello, world</statictag> -->
5160 <statictag action=flush/>
5166 # Nested template calls; this case was broken by Parser.php rev 1.506,
5170 Template:One-parameter
5172 (My parameter is: {{{1}}})
5176 Template:Map-one-parameter
5182 Nested template calls
5184 {{Map-one-parameter|One-parameter|param}}
5186 <p>(My parameter is: param)
5195 Sanitizer: Closing of open tags
5197 <s></s><table></table>
5199 <s></s><table></table>
5204 Sanitizer: Closing of open but not closed tags
5213 Sanitizer: Closing of closed but not open tags
5222 Sanitizer: Closing of closed but not open table tags
5224 Table not started</td></tr></table>
5226 <p>Table not started</td></tr></table>
5231 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5233 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5235 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5240 Sanitizer: Validating the contents of the id attribute (bug 4515)
5246 Something, but definitely not <br id="9" />...
5250 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5254 <br id="foo" /><br id="foo" />
5256 Something need to be done. foo-2 ?
5260 Language converter: output gets cut off unexpectedly (bug 5757)
5264 this bit is safe: }-
5266 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5268 then we get cut off here: }-
5270 all additional text is vanished
5272 <p>this bit is safe: }-
5273 </p><p>but if we add a conversion instance: xxx
5274 </p><p>then we get cut off here: }-
5275 </p><p>all additional text is vanished
5280 Self closed html pairs (bug 5487)
5283 <center><font id="bug" />Centered text</center>
5284 <div><font id="bug2" />In div text</div>
5286 <center><font id="bug" />Centered text</center>
5287 <div><font id="bug2" />In div text</div>
5296 Punctuation: nbsp before exclamation
5300 <p>C'est grave !
5305 Punctuation: CSS !important (bug 11874)
5307 <div style="width:50% !important">important</div>
5309 <div style="width:50% !important">important</div>
5314 Punctuation: CSS ! important (bug 11874; with space after)
5316 <div style="width:50% ! important">important</div>
5318 <div style="width:50% ! important">important</div>
5324 HTML bullet list, closed tags (bug 5497)
5339 HTML bullet list, unclosed tags (bug 5497)
5356 HTML ordered list, closed tags (bug 5497)
5371 HTML ordered list, unclosed tags (bug 5497)
5388 HTML nested bullet list, closed tags (bug 5497)
5413 HTML nested bullet list, open tags (bug 5497)
5438 HTML nested ordered list, closed tags (bug 5497)
5463 HTML nested ordered list, open tags (bug 5497)
5488 HTML ordered list item with parameters oddity
5490 <ol><li id="fragment">One</li></ol>
5492 <ol><li id="fragment">One</li></ol>
5497 bug 5918: autonumbering
5499 [http://first/] [http://second] [ftp://ftp]
5503 [mailto:enclosed@mail.tld With target]
5505 [mailto:enclosed@mail.tld]
5507 mailto:inline@mail.tld
5509 <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>
5510 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
5511 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
5512 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
5513 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
5519 # Security and HTML correctness
5520 # From Nick Jenkins' fuzz testing
5524 Fuzz testing: Parser13
5538 Fuzz testing: Parser14
5543 <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>
5544 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5546 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5553 Fuzz testing: Parser14-table
5559 <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>
5560 <table style="__TOC__">
5568 # Known to produce bogus xml (extra </td>)
5570 Fuzz testing: Parser16
5589 Fuzz testing: Parser21
5592 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5597 <th><a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"</th>
5605 Fuzz testing: Parser22
5607 http://===r:::https://b
5612 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
5617 # Known to produce bad XML for now
5619 # Note: the current result listed for this is not what the original one was,
5620 # but the original bug was JavaScript injection, which is fixed in any case.
5621 # It's not clear that the original result listed was any more correct than the
5622 # current one. Original result:
5625 # <u class="|">}}}} >
5626 # <br style="onmouseover='alert(document.cookie);'" />
5628 # MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5634 # Known to produce bad XML for now
5636 Fuzz testing: Parser24
5643 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5644 <br style="onmouseover='alert(document.cookie);' " />
5646 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5650 </p><p><u class="|">}}}} >
5651 </p><p><br style="onmouseover='alert(document.cookie);'" />
5653 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5663 # Note: the current result listed for this is not what the original one was,
5664 # but the original bug was JavaScript injection, which is fixed in any case.
5665 # It's not clear that the original result listed was any more correct than the
5666 # current one. Original result:
5669 # <li class="||">
5670 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5672 Fuzz testing: Parser25 (bug 6055)
5678 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5680 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5685 Fuzz testing: URL adjacent extension (with space, clean)
5688 http://example.com <nowiki>junk</nowiki>
5690 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
5695 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5698 http://example.com<nowiki>junk</nowiki>
5700 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
5705 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5708 http://example.com<pre>junk</pre>
5710 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
5715 Fuzz testing: image with bogus manual thumbnail
5717 [[Image:foobar.jpg|thumbnail= ]]
5719 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5724 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5726 <pre dir=" "></pre>
5728 <pre dir=" "></pre>
5733 Parsing optional HTML elements (Bug 6171)
5738 <td> Some tabular data</td>
5739 <td> More tabular data ...
5740 <td> And yet som tabular data</td>
5746 <td> Some tabular data</td>
5747 <td> More tabular data ...
5748 </td><td> And yet som tabular data</td>
5755 Correct handling of <td>, <tr> (Bug 6171)
5760 <td> Some tabular data</td>
5761 <td> More tabular data ...</td>
5762 <td> And yet som tabular data</td>
5768 <td> Some tabular data</td>
5769 <td> More tabular data ...</td>
5770 <td> And yet som tabular data</td>
5778 Parsing crashing regression (fr:JavaScript)
5782 <p></body></x>
5787 Inline wiki vs wiki block nesting
5793 <p><b>Bold paragraph</b>
5794 </p><p>New wiki paragraph
5799 Inline HTML vs wiki block nesting
5807 <p><b>Bold paragraph</b>
5808 </p><p>New wiki paragraph
5812 # Original result was this:
5813 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5815 # While that might be marginally more intuitive, maybe, the six-apostrophe
5816 # construct is clearly pathological and the result stated here (which is what
5817 # the parser actually does) is about as reasonable as anything.
5819 Mixing markup for italics and bold
5822 '''bold''''''bold''bolditalics'''''
5824 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5832 Article for special page transclusion test
5836 Special page transclusion
5839 {{Special:Prefixindex/Xyzzyx}}
5843 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5848 Special page transclusion twice (bug 5021)
5851 {{Special:Prefixindex/Xyzzyx}}
5852 {{Special:Prefixindex/Xyzzyx}}
5856 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5859 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5864 Transclusion of default MediaWiki message
5866 {{MediaWiki:Mainpage}}
5873 Transclusion of nonexistent MediaWiki message
5875 {{MediaWiki:Mainpagexxx}}
5877 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
5882 Transclusion of MediaWiki message with underscore
5884 {{MediaWiki:history_short}}
5891 Transclusion of MediaWiki message with space
5893 {{MediaWiki:history short}}
5900 Invalid header with following text
5910 Section extraction test (section 0)
5930 Section extraction test (section 1)
5952 Section extraction test (section 2)
5973 Section extraction test (section 3)
5993 Section extraction test (section 4)
6017 Section extraction test (section 5)
6037 Section extraction test (section 6)
6058 Section extraction test (section 7)
6078 Section extraction test (section 8)
6098 Section extraction test (section 9)
6119 Section extraction test (section 10)
6139 Section extraction test (nonexistent section 11)
6158 Section extraction test with bogus heading (section 1)
6163 ==bogus== not a legal section
6167 ==bogus== not a legal section
6171 Section extraction test with bogus heading (section 2)
6176 ==bogus== not a legal section
6183 Section extraction test with comment after heading (section 1)
6195 Section extraction test with comment after heading (section 2)
6207 Section extraction test with bogus <nowiki> heading (section 1)
6212 ==bogus== <nowiki>not a legal section</nowiki>
6216 ==bogus== <nowiki>not a legal section</nowiki>
6220 Section extraction test with bogus <nowiki> heading (section 2)
6225 ==bogus== <nowiki>not a legal section</nowiki>
6232 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6233 # instead of respecting commented sections
6235 Section extraction prefixed by comment (section 1)
6246 Section extraction prefixed by comment (section 2)
6257 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6258 # instead of respecting HTML-style headings
6260 Section extraction, mixed wiki and html (section 1)
6276 Section extraction, mixed wiki and html (section 2)
6292 # Formerly testing for bug 3342
6294 Section extraction, heading surrounded by <noinclude>
6298 <noinclude>==unmarked==</noinclude>
6304 # Test behaviour of bug 19910
6306 Sectiion with all-equals
6311 The line above must have a trailing space
6314 But just in case it doesn't...
6318 But just in case it doesn't...
6322 Section replacement test (section 0)
6353 Section replacement test (section 1)
6382 Section replacement test (section 2)
6412 Section replacement test (section 3)
6443 Section replacement test (section 4)
6470 Section replacement test (section 5)
6501 Section replacement test (section 6)
6531 Section replacement test (section 7)
6562 Section replacement test (section 8)
6593 Section replacement test (section 9)
6622 Section replacement test (section 10)
6652 Section replacement test with initial whitespace (bug 13728)
6656 Preformatted initial line
6660 Preformatted initial line
6667 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6679 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6692 Section extraction, <pre> around bogus header (bug 10309)
6709 Section replacement, <pre> around bogus header (bug 10309)
6711 noxml replace=2,"xxx"
6732 Handling of 
 in URLs
6736 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
6743 5 quotes, code coverage +1 line
6750 Special:Search page linking.
6754 <p><a href="/wiki/Special:Search">Special:Search</a>
6769 * {{SUBJECTPAGENAME}}
6770 * {{SUBJECTPAGENAMEE}}
6777 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6779 <ul><li> Parser test
6780 </li><li> Parser test
6781 </li><li> Parser test
6782 </li><li> Parser_test
6783 </li><li> Parser test
6784 </li><li> Parser_test
6785 </li><li> Talk:Parser test
6786 </li><li> Talk:Parser_test
6787 </li><li> Parser test
6788 </li><li> Parser_test
6795 </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>
6799 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6809 image4 |300px| centre
6810 image5.svg| http://///////
6815 <ul class="gallery">
6816 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6817 <div style="height: 150px;">Image1.png</div>
6818 <div class="gallerytext">
6821 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6822 <div style="height: 150px;">Image2.gif</div>
6823 <div class="gallerytext">
6828 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6829 <div style="height: 150px;">Image3</div>
6830 <div class="gallerytext">
6833 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6834 <div style="height: 150px;">Image4</div>
6835 <div class="gallerytext">
6840 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6841 <div style="height: 150px;">Image5.svg</div>
6842 <div class="gallerytext">
6843 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
6847 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6848 <div style="height: 150px;">* image6</div>
6849 <div class="gallerytext">
6857 Gallery (with options)
6859 <gallery widths='60px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
6860 File:Nonexistant.jpg|caption
6861 File:Nonexistant.jpg
6862 image:foobar.jpg|some '''caption''' [[Main Page]]
6866 <ul class="gallery" style="max-width: 202px;_width: 202px;">
6867 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page">Main Page</a></li>
6868 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6869 <div style="height: 70px;">Nonexistant.jpg</div>
6870 <div class="gallerytext">
6875 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6876 <div style="height: 70px;">Nonexistant.jpg</div>
6877 <div class="gallerytext">
6880 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6881 <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>
6882 <div class="gallerytext">
6883 <p>some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
6887 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6888 <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>
6889 <div class="gallerytext">
6897 gallery (with showfilename option)
6899 <gallery showfilename>
6900 File:Nonexistant.jpg|caption
6901 File:Nonexistant.jpg
6902 image:foobar.jpg|some '''caption''' [[Main Page]]
6906 <ul class="gallery">
6907 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6908 <div style="height: 150px;">Nonexistant.jpg</div>
6909 <div class="gallerytext">
6910 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
6915 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6916 <div style="height: 150px;">Nonexistant.jpg</div>
6917 <div class="gallerytext">
6918 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
6922 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6923 <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>
6924 <div class="gallerytext">
6925 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
6926 some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
6930 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6931 <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>
6932 <div class="gallerytext">
6933 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
6942 Gallery (with namespace-less filenames)
6945 File:Nonexistant.jpg
6951 <ul class="gallery">
6952 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6953 <div style="height: 150px;">Nonexistant.jpg</div>
6954 <div class="gallerytext">
6957 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6958 <div style="height: 150px;">Nonexistant.jpg</div>
6959 <div class="gallerytext">
6962 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6963 <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>
6964 <div class="gallerytext">
6967 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6968 <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>
6969 <div class="gallerytext">
6977 HTML Hex character encoding (spells the word "JavaScript")
6979 JavaScript
6981 <p>JavaScript
6986 HTML Hex character encoding bogus encoding (bug 26437 regression check)
6990 <p>&#xsee;&#XSEE;
6995 HTML Hex character encoding mixed case
7004 __FORCETOC__ override
7016 ISBN 978-0-1234-56 789
7018 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7023 ISBN followed by 5 spaces
7034 ISBN ISBN 1234567890
7036 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7041 Bug 22905: <abbr> followed by ISBN followed by </a>
7043 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7045 <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>
7054 <p>RFC <a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc1234">RFC 1234</a>
7059 Double RFC with a wiki link
7063 <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>
7072 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc983">RFC 983</a> 987
7077 Centre-aligned image
7079 [[Image:foobar.jpg|centre]]
7081 <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>
7088 [[Image:foobar.jpg|none]]
7090 <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>
7095 Width + Height sized image (using px) (height is ignored)
7097 [[Image:foobar.jpg|640x480px]]
7099 <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>
7104 Width-sized image (using px, no following whitespace)
7106 [[Image:foobar.jpg|640px]]
7108 <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>
7113 Width-sized image (using px, with following whitespace - test regression from r39467)
7115 [[Image:foobar.jpg|640px ]]
7117 <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>
7122 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7124 [[Image:foobar.jpg| 640px]]
7126 <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>
7131 Another italics / bold test
7139 # Note the results may be incorrect, as parserTest output included this:
7140 # XML error: Mismatched tag at byte 6120:
7141 # ...<dd> </dt></dl> </dd...
7149 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7160 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7162 Images with the "|" character in the comment
7164 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7166 <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>
7171 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7173 <html><script>alert(1);</script></html>
7175 <p><html><script>alert(1);</script></html>
7180 HTML with raw HTML ($wgRawHtml==true)
7184 <html><script>alert(1);</script></html>
7186 <p><script>alert(1);</script>
7191 Parents of subpages, one level up
7193 subpage title=[[Subpage test/L1/L2/L3]]
7197 <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>
7203 Parents of subpages, one level up, not named
7205 subpage title=[[Subpage test/L1/L2/L3]]
7209 <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>
7216 Parents of subpages, two levels up
7218 subpage title=[[Subpage test/L1/L2/L3]]
7224 <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
7225 </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>
7230 Parents of subpages, two levels up, without trailing slash or name.
7232 subpage title=[[Subpage test/L1/L2/L3]]
7241 Parents of subpages, two levels up, with lots of extra trailing slashes.
7243 subpage title=[[Subpage test/L1/L2/L3]]
7247 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7252 Definition list code coverage
7258 <dl><dt> title  </dt><dd> def
7259 </dd><dt> title </dt><dd> def
7260 </dd><dt>title</dt><dd> def
7266 Don't fall for the self-closing div
7268 <div>hello world</div/>
7270 <div>hello world</div>
7279 <p>[[:Template:Msg]]
7288 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7292 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7294 Always escape literal '>' in output, not just after '<'
7308 <p>This is a test template
7309 This is a test template
7321 Inclusion of !userCanEdit() content
7325 <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>
7331 Out-of-order TOC heading levels
7340 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7342 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7344 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7345 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7348 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7350 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7351 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7356 <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>
7357 <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>
7358 <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>
7359 <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>
7360 <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>
7361 <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>
7367 ISBN with a dummy number
7377 ISBN with space-delimited number
7381 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7387 ISBN with multiple spaces, no number
7406 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7407 </p><p>ISBN 12345678901
7413 ISBN with trailing year (bug 8110)
7415 ISBN 1-234-56789-0 - 2006
7417 ISBN 1 234 56789 0 - 2006
7419 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7420 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7428 {{anchorencode:foo bar©#%n}}
7430 <p>foo_bar.C2.A9.23.25n
7435 anchorencode trims spaces
7437 {{anchorencode: __pretty__please__}}
7444 anchorencode deals with links
7446 {{anchorencode: [[hello|world]] [[hi]]}}
7453 anchorencode deals with templates
7455 {{anchorencode: {{Foo}} }}
7462 anchorencode encodes like the TOC generator: (bug 18431)
7464 === _ +:.3A%3A&&]] ===
7465 {{anchorencode: _ +:.3A%3A&&]] }}
7468 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7469 <p>.2B:.3A.253A.26.26.5D.5D
7473 # Expected output in the following test is not necessarily expected (there
7474 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7475 # only testing for well-formedness.
7477 Bug 6200: blockquotes and paragraph formatting
7497 Bug 8293: Use of center tag ruins paragraph formatting
7519 ### Language variants related tests
7522 Self-link in language variants
7524 title=[[Dunav]] language=sr
7526 Both [[Dunav]] and [[Дунав]] are names for this river.
7528 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7534 Link to pages in language variants
7538 Main Page can be written as [[Маин Паге]]
7540 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7546 Multiple links to pages in language variants
7550 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7552 <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>.
7558 Simple template in language variants
7564 <p>This is a test template
7570 Template with explicit namespace in language variants
7576 <p>This is a test template
7582 Basic test for template parameter in language variants
7586 {{парамтест|param=foo}}
7588 <p>This is a test template with parameter foo
7594 Simple category in language variants
7598 [[Category:МедиаWики Усер'с Гуиде]]
7600 <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>
7605 Stripping -{}- tags (language variants)
7609 Latin proverb: -{Ne nuntium necare}-
7611 <p>Latin proverb: Ne nuntium necare
7617 Prevent conversion with -{}- tags (language variants)
7619 language=sr variant=sr-ec
7621 Latinski: -{Ne nuntium necare}-
7623 <p>Латински: Ne nuntium necare
7629 Prevent conversion of text with -{}- tags (language variants)
7631 language=sr variant=sr-ec
7633 Latinski: -{Ne nuntium necare}-
7635 <p>Латински: Ne nuntium necare
7641 Prevent conversion of links with -{}- tags (language variants)
7643 language=sr variant=sr-ec
7647 <p><a href="/wiki/Main_Page">Main Page</a>
7653 -{}- tags within headlines (within html for parserConvert())
7655 language=sr variant=sr-ec
7659 <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>
7665 Explicit definition of language variant alternatives
7667 language=zh variant=zh-tw
7669 -{zh:China;zh-tw:Taiwan}-, not China
7671 <p>Taiwan, not China
7677 Explicit session-wise language variant mapping (A flag and - flag)
7679 language=zh variant=zh-tw
7681 Taiwan is not China.
7682 But -{A|zh:China;zh-tw:Taiwan}- is China,
7683 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
7684 and -{China}- is China.
7686 <p>Taiwan is not China.
7687 But Taiwan is Taiwan,
7688 (This should be stripped!)
7694 Explicit session-wise language variant mapping (H flag for hide)
7696 language=zh variant=zh-tw
7698 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
7701 <p>(This should be stripped!)
7707 Adding explicit conversion rule for title (T flag)
7709 language=zh variant=zh-tw showtitle
7711 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7714 <p>Should be stripped!
7719 Testing that changing the language variant here in the tests actually works
7721 language=zh variant=zh showtitle
7723 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7726 <p>Should be stripped!
7731 Bug 24072: more test on conversion rule for title
7733 language=zh variant=zh-tw showtitle
7735 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7736 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
7739 <p>This should be stripped!
7740 This won't take interferes with the title rule.
7745 Raw output of variant escape tags (R flag)
7747 language=zh variant=zh-tw
7749 Raw: -{R|zh:China;zh-tw:Taiwan}-
7751 <p>Raw: zh:China;zh-tw:Taiwan
7756 Nested using of manual convert syntax
7758 language=zh variant=zh-hk
7760 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
7762 <p>Nested: Hello Hong Kong!
7767 Do not convert roman numbers to language variants
7769 language=sr variant=sr-ec
7773 <p>Фридрих IV је цар.
7778 Unclosed language converter markup "-{"
7789 Don't convert raw rule "-{R|=>}-" to "=>"
7806 Bug 529: Uncovered bullet
7817 Bug 529: Uncovered table already at line-start
7840 Bug 529: Uncovered bullet in parser function result
7842 * Foo {{lc:{{bullet}} }}
7851 Bug 5678: Double-parsed template argument
7853 {{lc:{{{1}}}|hello}}
7860 Bug 5678: Double-parsed template invocation
7862 {{lc:{{paramtest {{!}} param = hello }} }}
7864 <p>{{paramtest | param = hello }}
7869 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
7895 Morwen/13: Unclosed link followed by heading
7902 <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>
7907 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
7914 <h1> <span class="mw-headline" id="heading">heading</span></h1>
7919 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
7926 <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>
7941 Paragraphs inside divs (no extra line breaks)
7953 Paragraphs inside divs (extra line break on open)
7968 Paragraphs inside divs (extra line break on close)
7983 Paragraphs inside divs (extra line break on open and close)
8000 Nesting tags, paragraphs on lines which begin with <div>
8004 <div></div><strong>A
8013 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8015 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8019 <blockquote>Line one
8021 Line two</blockquote>
8023 <blockquote>Line one
8024 Line two</blockquote>
8029 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8036 Line two</blockquote>
8041 Line two</blockquote>
8046 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8050 <blockquote>Line one
8055 <blockquote>Line one
8063 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8082 Paragraphs inside blockquotes/divs (no extra line breaks)
8084 <blockquote><div>Line one
8086 Line two</div></blockquote>
8088 <blockquote><div>Line one
8089 Line two</div></blockquote>
8094 Paragraphs inside blockquotes/divs (extra line break on open)
8099 Line two</div></blockquote>
8104 Line two</div></blockquote>
8109 Paragraphs inside blockquotes/divs (extra line break on close)
8111 <blockquote><div>Line one
8116 <blockquote><div>Line one
8124 Paragraphs inside blockquotes/divs (extra line break on open and close)
8141 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8143 wgLinkHolderBatchSize=0
8149 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw">meatball:1</a>
8150 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw">meatball:2</a>
8151 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw">meatball:3</a>
8156 Free external link invading image caption
8158 [[Image:Foobar.jpg|thumb|http://x|hello]]
8160 <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>
8165 Bug 15196: localised external link numbers
8169 [http://en.wikipedia.org/]
8171 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8176 Multibyte character in padleft
8178 {{padleft:-Hello|7|Æ}}
8185 Multibyte character in padright
8187 {{padright:Hello-|7|Æ}}
8200 <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>
8205 formatdate parser function
8207 {{#formatdate:2009-03-24}}
8209 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8214 formatdate parser function, with default format
8216 {{#formatdate:2009-03-24|mdy}}
8218 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8223 Linked date with autoformatting disabled
8225 wgUseDynamicDates=false
8229 <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>
8234 Spacing of numbers in formatted dates
8236 {{#formatdate:January 15}}
8238 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8243 Spacing of numbers in formatted dates (linked)
8245 wgUseDynamicDates=true
8249 <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>
8262 Edit comment with link
8266 I like the [[Main Page]] a lot
8268 I like the <a href="/wiki/Main_Page">Main Page</a> a lot
8272 Edit comment with link and link text
8276 I like the [[Main Page|best pages]] a lot
8278 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8282 Edit comment with link and link text with suffix
8286 I like the [[Main Page|best page]]s a lot
8288 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8292 Edit comment with section link (non-local, eg in history list)
8294 comment title=[[Main Page]]
8296 /* External links */ removed bogus entries
8298 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
8302 Edit comment with section link (local, eg in diff view)
8304 comment local title=[[Main Page]]
8306 /* External links */ removed bogus entries
8308 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
8312 Edit comment with subpage link (bug 14080)
8316 title=[[Subpage test]]
8318 Poked at a [[/subpage]] here...
8320 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8324 Edit comment with subpage link and link text (bug 14080)
8328 title=[[Subpage test]]
8330 Poked at a [[/subpage|neat little page]] here...
8332 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8336 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8339 title=[[Subpage test]]
8341 Poked at a [[/subpage]] here...
8343 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8347 Edit comment with bare anchor link (local, as on diff)
8355 <a href="#section">#section</a>
8359 Edit comment with bare anchor link (non-local, as on history)
8366 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8370 Anchor starting with underscore
8374 <p><a href="#_ref">One</a>
8379 Id starting with underscore
8381 <div id="_ref"></div>
8383 <div id="_ref"></div>
8388 Space normalisation on autocomment (bug 22784)
8393 /* __hello__world__ */
8395 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
8399 percent-encoding and + signs in comments (Bug 26410)
8403 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8405 <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>
8409 Bad images - basic functionality
8416 Bad images - bug 16039: text after bad image disappears
8428 Verify that displaytitle works (bug #22501) no displaytitle
8432 wgAllowDisplayTitle=true
8433 wgRestrictDisplayTitle=false
8435 this is not the the title
8438 <p>this is not the the title
8443 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8448 wgAllowDisplayTitle=true
8449 wgRestrictDisplayTitle=false
8451 this is not the the title
8452 {{DISPLAYTITLE:whatever}}
8455 <p>this is not the the title
8460 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8465 wgAllowDisplayTitle=true
8466 wgRestrictDisplayTitle=true
8468 this is not the the title
8469 {{DISPLAYTITLE:whatever}}
8472 <p>this is not the the title
8477 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8482 wgAllowDisplayTitle=true
8483 wgRestrictDisplayTitle=true
8485 this is not the the title
8486 {{DISPLAYTITLE:screen}}
8489 <p>this is not the the title
8494 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8499 wgAllowDisplayTitle=false
8501 this is not the the title
8502 {{DISPLAYTITLE:screen}}
8505 <p>this is not the the title
8506 <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>
8511 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8516 wgAllowDisplayTitle=false
8518 this is not the the title
8521 <p>this is not the the title
8526 preload: check <noinclude> and <includeonly>
8530 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8536 preload: check <onlyinclude>
8540 Goodbye <onlyinclude>Hello world</onlyinclude>
8546 preload: can pass tags through if we want to
8550 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8552 <includeonly>Hello world</includeonly>
8556 preload: check that it doesn't try to do tricks
8560 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8562 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8566 Play a bit with r67090 and bug 3158
8570 <div style="width:50% !important"> </div>
8571 <div style="width:50% !important"> </div>
8572 <div style="width:50% !important"> </div>
8573 <div style="border : solid;"> </div>
8575 <div style="width:50% !important"> </div>
8576 <div style="width:50% !important"> </div>
8577 <div style="width:50% !important"> </div>
8578 <div style="border : solid;"> </div>
8583 HTML5 data attributes
8585 <span data-foo="bar">Baz</span>
8586 <p data-abc-def_hij="">Quuz</p>
8588 <p><span data-foo="bar">Baz</span>
8590 <p data-abc-def_hij="">Quuz</p>
8595 percent-encoding and + signs in internal links (Bug 26410)
8597 [[User:+%]] [[Page+title%]]
8598 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
8599 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
8600 [[%33%45]] [[%33%45+]]
8602 <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>
8603 <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>
8604 <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>
8605 <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>
8610 Special characters in embedded file links (bug 27679)
8612 [[File:Contains & ampersand.jpg]]
8613 [[File:Does not exist.jpg|Title with & ampersand]]
8615 <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>
8616 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
8633 Bug#542 Link text shouldn't be duplicated in title attributes
8635 [[A]] [[a]] [[Ä]] [[ä]]
8637 <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>
8647 Try for 100% code coverage