1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
75 This is a simple paragraph.
77 <p>This is a simple paragraph.
97 * plain''italic''plain
98 * plain''italic''plain''italic''plain
99 * plain'''bold'''plain
100 * plain'''bold'''plain'''bold'''plain
101 * plain''italic''plain'''bold'''plain
102 * plain'''bold'''plain''italic''plain
103 * plain''italic'''bold-italic'''italic''plain
104 * plain'''bold''bold-italic''bold'''plain
105 * plain'''''bold-italic'''italic''plain
106 * plain'''''bold-italic''bold'''plain
107 * plain''italic'''bold-italic'''''plain
108 * plain'''bold''bold-italic'''''plain
109 * plain l'''italic''plain
110 * plain l''''bold''' plain
113 </li><li> plain<i>italic</i>plain
114 </li><li> plain<i>italic</i>plain<i>italic</i>plain
115 </li><li> plain<b>bold</b>plain
116 </li><li> plain<b>bold</b>plain<b>bold</b>plain
117 </li><li> plain<i>italic</i>plain<b>bold</b>plain
118 </li><li> plain<b>bold</b>plain<i>italic</i>plain
119 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
120 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
121 </li><li> plain<i><b>bold-italic</b>italic</i>plain
122 </li><li> plain<b><i>bold-italic</i>bold</b>plain
123 </li><li> plain<i>italic<b>bold-italic</b></i>plain
124 </li><li> plain<b>bold<i>bold-italic</i></b>plain
125 </li><li> plain l'<i>italic</i>plain
126 </li><li> plain l'<b>bold</b> plain
132 ### <nowiki> test cases
136 <nowiki> unordered list
138 <nowiki>* This is not an unordered list item.</nowiki>
140 <p>* This is not an unordered list item.
147 <nowiki>Lorem ipsum dolor
168 :There is not nowiki.
169 :There is <nowiki>nowiki</nowiki>.
171 #There is not nowiki.
172 #There is <nowiki>nowiki</nowiki>.
174 *There is not nowiki.
175 *There is <nowiki>nowiki</nowiki>.
177 <dl><dd>There is not nowiki.
178 </dd><dd>There is nowiki.
180 <ol><li>There is not nowiki.
181 </li><li>There is nowiki.
183 <ul><li>There is not nowiki.
184 </li><li>There is nowiki.
196 <!-- comment 1 --> asdf
232 asdf<!-- comment 1 -->jkl
242 <!-- foo --> b <!-- bar -->
256 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
262 Comment semantics and delimiters
264 <!-- --><!----><!-----><!------>
270 Comment semantics and delimiters, redux
272 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
273 -- foo -- funky huh? ... -->
279 Comment semantics and delimiters: directors cut
281 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
282 everything starting with < followed by !-- until the first -- and > we see,
283 that wouldn't be valid XML however, since in XML -- has to terminate a comment
291 Comment semantics: nesting
293 <!--<!-- no, we're not going to do anything fancy here -->-->
300 Comment semantics: unclosed comment at end
302 <!--This comment will run out to the end of the document
308 Comment in template title
317 Comment on its own line post-expand
329 ### Preformatted text
338 And a [[Main Page|link]]
344 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
349 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
366 Regression with preformatted in <center>
379 # Expected output in the following test is not really expected (there should be
380 # <pre> in the output) -- it's only testing for well-formedness.
382 Bug 6200: Preformatted in <blockquote>
395 <pre> with attributes (bug 3202)
397 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
399 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
404 <pre> with width attribute (bug 3202)
406 <pre width="8">Narrow screen goodies</pre>
408 <pre width="8">Narrow screen goodies</pre>
413 <pre> with forbidden attribute (bug 3202)
415 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
417 <pre width="8">Narrow screen goodies</pre>
422 <pre> with forbidden attribute values (bug 3202)
424 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
426 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
431 <nowiki> inside <pre> (bug 13238)
439 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
447 <pre><nowiki>Foo</nowiki></pre>
452 <nowiki> and <pre> preference (first one wins)
491 <dl><dt> name </dt><dd> Definition
497 Definition list for indentation only
501 <dl><dd> Indented text
507 Definition list with no space
511 <dl><dt>name</dt><dd>Definition
517 Definition list with URL link
519 ; http://example.com/ : definition
521 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
527 Definition list with bracketed URL link
529 ;[http://www.example.com/ Example]:Something about it
531 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
537 Definition list with wikilink containing colon
539 ; [[Help:FAQ]]: The least-read page on Wikipedia
541 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
546 # At Brion's and JeLuF's insistence... :)
548 Definition list with news link containing colon
550 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
552 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
558 Malformed definition list with colon
560 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
562 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
568 Definition lists: colon in external link text
570 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
572 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
578 Definition lists: colon in HTML attribute
580 ;<b style="display: inline">bold</b>
582 <dl><dt><b style="display: inline">bold</b>
589 Definition lists: self-closed tag
591 ;one<br/>two : two-line fun
593 <dl><dt>one<br />two </dt><dd> two-line fun
599 Bug 11748: Literal closing tags
605 <dd>test test test test test</dd>
607 <dd>test test test test test</dd>
612 <dd>test test test test test</dd>
614 <dd>test test test test test</dd>
622 External links: non-bracketed
624 Non-bracketed: http://example.com
626 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
631 External links: numbered
633 Numbered: [http://example.com]
634 Numbered: [http://example.net]
635 Numbered: [http://example.com]
637 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
638 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
639 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
644 External links: specified text
646 Specified text: [http://example.com link]
648 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
653 External links: trail
655 Linktrails should not work for external links: [http://example.com link]s
657 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
662 External links: dollar sign in URL
664 http://example.com/1$2345
666 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
671 External links: dollar sign in URL (named)
673 [http://example.com/1$2345]
675 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
680 External links: open square bracket forbidden in URL (bug 4377)
682 http://example.com/1[2345
684 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
689 External links: open square bracket forbidden in URL (named) (bug 4377)
691 [http://example.com/1[2345]
693 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
698 External links: nowiki in URL link text (bug 6230)
700 [http://example.com/ <nowiki>''example site''</nowiki>]
702 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
707 External links: newline forbidden in text (bug 6230 regression check)
709 [http://example.com/ first
712 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
720 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
722 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
727 External image from https
729 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
731 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
736 Link to non-http image, no img tag
738 Link to non-http image, no img tag: ftp://example.com/test.jpg
740 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
745 External links: terminating separator
747 Terminating separator: http://example.com/thing,
749 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
754 External links: intervening separator
756 Intervening separator: http://example.com/1,2,3
758 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
763 External links: old bug with URL in query
765 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
767 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
772 External links: old URL-in-URL bug, mixed protocols
774 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
776 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
781 External links: URL in text
783 URL in text: [http://example.com http://example.com]
785 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
790 External links: Clickable images
792 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
794 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
799 External links: raw ampersand
801 Old & use: http://x&y
803 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
808 External links: encoded ampersand
810 Old & use: http://x&y
812 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
817 External links: encoded equals (bug 6102)
819 http://example.com/?foo=bar
821 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
826 External links: [raw ampersand]
828 Old & use: [http://x&y]
830 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
835 External links: [encoded ampersand]
837 Old & use: [http://x&y]
839 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
844 External links: [encoded equals] (bug 6102)
846 [http://example.com/?foo=bar]
848 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
853 External links: [IDN ignored character reference in hostname; strip it right off]
855 [http://e‌xample.com/]
857 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
862 External links: IDN ignored character reference in hostname; strip it right off
864 http://e‌xample.com/
866 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
871 External links: www.jpeg.org (bug 554)
875 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
880 External links: URL within URL (original bug 2)
882 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
884 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
889 BUG 361: URL inside bracketed URL
891 [http://www.example.com/foo http://www.example.com/bar]
893 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
898 BUG 361: URL within URL, not bracketed
900 http://www.example.com/foo?=http://www.example.com/bar
902 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
907 BUG 289: ">"-token in URL-tail
909 http://www.example.com/<hello>
911 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
916 BUG 289: literal ">"-token in URL-tail
918 http://www.example.com/<b>html</b>
920 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
925 BUG 289: ">"-token in bracketed URL
927 [http://www.example.com/<hello> stuff]
929 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
934 BUG 289: literal ">"-token in bracketed URL
936 [http://www.example.com/<b>html</b> stuff]
938 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
943 BUG 289: literal double quote at end of URL
945 http://www.example.com/"hello"
947 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
952 BUG 289: literal double quote in bracketed URL
954 [http://www.example.com/"hello" stuff]
956 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
961 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
963 [http://www.example.com test]
965 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
970 External links: wiki links within external link (Bug 3695)
972 [http://example.com [[wikilink]] embedded in ext link]
974 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
979 External links: links containing empty bracket pair []
981 [http://example.com?parameter[]=foo link]
983 <p><a rel="nofollow" class="external text" href="http://example.com?parameter%5B%5D=foo">link</a>
988 External links: links ending in empty bracket pair []
990 [http://example.com?parameter[]=foo&option[]]
992 <p><a rel="nofollow" class="external autonumber" href="http://example.com?parameter%5B%5D=foo&option%5B%5D">[1]</a>
997 External links: bare links ending in empty bracket pair []
999 http://example.com?parameter[]=foo&option[]
1001 <p><a rel="nofollow" class="external free" href="http://example.com?parameter%5B%5D=foo&option%5B%5D">http://example.com?parameter%5B%5D=foo&option%5B%5D</a>
1006 BUG 787: Links with one slash after the url protocol are invalid
1010 [http:/example.com title]
1012 <p>http:/example.com
1013 </p><p>[http:/example.com title]
1018 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1020 ''[http://example.com text'']
1021 [http://example.com '''text]'''
1022 ''Something [http://example.com in italic'']
1023 ''Something [http://example.com mixed''''', even bold]'''
1024 '''''Now [http://example.com both''''']
1026 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1027 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1028 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1029 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1030 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1036 Bug 4781: %26 in URL
1038 http://www.example.com/?title=AT%26T
1040 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1045 Bug 4781, 5267: %26 in URL
1047 http://www.example.com/?title=100%25_Bran
1049 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
1054 Bug 4781, 5267: %28, %29 in URL
1056 http://www.example.com/?title=Ben-Hur_%281959_film%29
1058 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
1064 Bug 4781: %26 in autonumber URL
1066 [http://www.example.com/?title=AT%26T]
1068 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1073 Bug 4781, 5267: %26 in autonumber URL
1075 [http://www.example.com/?title=100%25_Bran]
1077 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1082 Bug 4781, 5267: %28, %29 in autonumber URL
1084 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1086 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1092 Bug 4781: %26 in bracketed URL
1094 [http://www.example.com/?title=AT%26T link]
1096 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1101 Bug 4781, 5267: %26 in bracketed URL
1103 [http://www.example.com/?title=100%25_Bran link]
1105 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1110 Bug 4781, 5267: %28, %29 in bracketed URL
1112 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1114 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1119 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1121 Some [http://example.com/ pretty ''italics'' and stuff]!
1123 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1128 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1130 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1132 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1137 External link containing double-single-quotes with no space separating the url from text in italics
1139 [http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]
1141 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
1146 URL-encoding in URL functions (single parameter)
1148 {{localurl:Some page|amp=&}}
1150 <p>/index.php?title=Some_page&amp=&
1155 URL-encoding in URL functions (multiple parameters)
1157 {{localurl:Some page|q=?&=&}}
1159 <p>/index.php?title=Some_page&q=?&amp=&
1170 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1172 Normal text. '''''Bold italic text.''''' Normal text.
1174 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1175 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1181 Unclosed and unmatched quotes
1183 '''''Bold italic text '''with bold deactivated''' in between.'''''
1185 '''''Bold italic text ''with italic deactivated'' in between.'''''
1189 ..spanning two paragraphs (should not work).'''
1191 '''Bold tag left open
1193 ''Italic tag left open
1197 <!-- Unmatching number of opening, closing tags: -->
1198 '''This year''''s election ''should'' beat '''last year''''s.
1200 ''Tom'''s car is bigger than ''Susan'''s.
1202 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1203 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1204 </p><p><b>Bold text..</b>
1205 </p><p>..spanning two paragraphs (should not work).
1206 </p><p><b>Bold tag left open</b>
1207 </p><p><i>Italic tag left open</i>
1209 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1210 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1217 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1220 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1221 # is the bare minimun required by the spec, see:
1222 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1224 A table with no data.
1230 # A table with nothing but a caption is invalid XHTML, we might want to render
1231 # this as <p>caption</p>
1233 A table with nothing but a caption
1274 Multiplication table
1276 {| border="1" cellpadding="2"
1277 |+Multiplication table
1279 ! × !! 1 !! 2 !! 3
1297 <table border="1" cellpadding="2">
1298 <caption>Multiplication table
1369 {| align=right border=1
1371 |rowspan=2| Cell 2, row 1 (and 2)
1378 <table align="right" border="1">
1382 <td rowspan="2">Cell 2, row 1 (and 2)
1403 {| bgcolor=#ABCDEF border=2
1408 |the original table again
1416 <table bgcolor="#ABCDEF" border="2">
1427 <td>the original table again
1435 Invalid attributes in table cell (bug 1830)
1451 Heading inside table (affected by r85922)
1462 <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>
1470 A table with a caption with unclosed italic
1478 <caption><i>caption</i>
1489 A table with unclosed italic in a cell
1505 A table with unclosed italic in a th
1525 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1528 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1532 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a>
1534 <td>]" onmouseover="alert(document.cookie)">test
1542 Indented Tables, bug 20078
1570 Plain link, capitalized
1574 <p><a href="/wiki/Main_Page">Main Page</a>
1579 Plain link, uncapitalized
1583 <p><a href="/wiki/Main_Page">main Page</a>
1590 [[Main Page|The Main Page]]
1592 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1601 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1606 Broken link with fragment
1608 [[Zigzagzogzagzig#zug]]
1610 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1615 Special page link with fragment
1617 [[Special:Version#anchor]]
1619 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1624 Nonexistent special page link with fragment
1626 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1628 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1635 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1637 <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>
1644 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1646 <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>!!!
1651 Link with 3 brackets
1660 Piped link with 3 brackets
1662 [[[main page|the main page]]]
1664 <p>[[[main page|the main page]]]
1669 Link with multiple pipes
1671 [[Main Page|The|Main|Page]]
1673 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1680 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1682 <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>
1687 Piped link to namespace
1689 [[Meta:Disclaimers|The disclaimers]]
1691 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1698 [[Usually caused by a typo (oops}]]
1700 <p>[[Usually caused by a typo (oops}]]
1705 Link containing % (not as a hex sequence)
1709 <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>
1714 Link containing % as a single hex sequence interpreted to char
1718 <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>
1723 Link containing % as a double hex sequence interpreted to hex sequence
1727 <p>[[7%2525 Solution]]
1732 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1733 Example for such a section: == < ==
1735 [[%23%3c]][[%23%3e]]
1737 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1742 Link containing "<#" and ">#" as a hex sequences
1744 [[%3c%23]][[%3e%23]]
1746 <p>[[%3c%23]][[%3e%23]]
1751 Link containing double-single-quotes '' (bug 4598)
1753 [[Lista d''e paise d''o munno]]
1755 <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>
1760 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1762 Some [[Link|pretty ''italics'' and stuff]]!
1764 <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>!
1769 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1771 ''Some [[Link|pretty ''italics'' and stuff]]!
1773 <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>
1778 Link with double quotes in title part (literal) and alternate part (interpreted)
1780 [[File:Denys Savchenko ''Pentecoste''.jpg]]
1784 [[''Pentecoste''|Pentecoste]]
1786 [[''Pentecoste''|''Pentecoste'']]
1788 <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>
1789 </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>
1790 </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>
1791 </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>
1798 [[http://www.example.com]]
1800 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
1804 # I'm fairly sure the expected result here is wrong.
1805 # We want these to be URL links, not pseudo-pages with URLs for titles....
1806 # However the current output is also pretty screwy.
1809 # I'm changing it to match the current output--it arguably makes more
1810 # sense in the light of the test above. Old expected result was:
1811 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1813 # But I think this test is bordering on "garbage in, garbage out" anyway.
1818 Piped link to URL: [[http://www.example.com|an example URL]]
1820 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
1825 BUG 2: [[page|http://url/]] should link to page, not http://url/
1827 [[Main Page|http://url/]]
1829 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1834 BUG 337: Escaped self-links should be bold
1838 [[Bug462]] [[Bug462]]
1840 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1845 Self-link to section should not be bold
1849 [[Main Page#section]]
1851 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1862 Self-link to numeric title
1868 <p><strong class="selflink">0</strong>
1873 Link to numeric-equivalent title
1879 <p><a href="/wiki/00">00</a>
1884 <nowiki> inside a link
1886 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1888 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1893 Non-breaking spaces in title
1895 [[ Main Page ]]
1897 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
1902 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
1908 <p><b><a href="/wiki/Main_Page">Main Page</a></b>
1913 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
1919 <p><i><a href="/wiki/Main_Page">Main Page</a></i>
1924 Internal link with en linktrail: no apostrophes (bug 27473)
1930 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
1935 Internal link with ca linktrail with apostrophes (bug 27473)
1941 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
1946 Internal link with kaa linktrail with apostrophes (bug 27473)
1952 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
1957 ### Interwiki links (see maintenance/interwiki.sql)
1961 Inline interwiki link
1963 [[MeatBall:SoftSecurity]]
1965 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw">MeatBall:SoftSecurity</a>
1970 Inline interwiki link with empty title (bug 2372)
1974 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw">MeatBall:</a>
1979 Interwiki link encoding conversion (bug 1636)
1981 *[[Wikipedia:ro:Olteniţa]]
1982 *[[Wikipedia:ro:Olteniţa]]
1984 <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>
1985 </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>
1991 Interwiki link with fragment (bug 2130)
1993 [[MeatBall:SoftSecurity#foo]]
1995 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2010 Double interlanguage link
2021 Interlanguage link, with prefix links
2033 Double interlanguage link, with prefix links (bug 8897)
2060 Incorrecly removing closing slashes from correctly formed XHTML
2062 <br style="clear:both;" />
2064 <p><br style="clear:both;" />
2069 Failing to transform badly formed HTML into correct XHTML
2075 <p><br clear="left" />
2076 <br clear="right" />
2082 Horizontal ruler (should it add that extra space?)
2096 ### Block-level elements
2119 <ol><li>Numbered list
2136 ***#Number on level 4
2138 **#Number on level 3
2139 **#Number on level 3
2144 <ol><li> with numbers
2146 <ul><li> and bullets
2148 <ol><li> and numbers
2150 </li><li>bullets again
2151 <ul><li>bullet level 2
2152 <ul><li>bullet level 3
2153 <ol><li>Number on level 4
2156 </li><li>bullet level 2
2157 <ol><li>Number on level 3
2158 </li><li>Number on level 3
2161 <ol><li>number level 2
2169 List items are not parsed correctly following a <pre> block (bug 785)
2175 <ul><li> <pre>foo</pre>
2176 </li><li> <pre>bar</pre>
2187 Magic Word: {{CURRENTDAY}}
2196 Magic Word: {{CURRENTDAY2}}
2205 Magic Word: {{CURRENTDAYNAME}}
2214 Magic Word: {{CURRENTDOW}}
2223 Magic Word: {{CURRENTMONTH}}
2232 Magic Word: {{CURRENTMONTHABBREV}}
2234 {{CURRENTMONTHABBREV}}
2241 Magic Word: {{CURRENTMONTHNAME}}
2243 {{CURRENTMONTHNAME}}
2250 Magic Word: {{CURRENTMONTHNAMEGEN}}
2252 {{CURRENTMONTHNAMEGEN}}
2259 Magic Word: {{CURRENTTIME}}
2268 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2277 Magic Word: {{CURRENTYEAR}}
2286 Magic Word: {{FULLPAGENAME}}
2288 title=[[User:Ævar Arnfjörð Bjarmason]]
2292 <p>User:Ævar Arnfjörð Bjarmason
2297 Magic Word: {{FULLPAGENAMEE}}
2299 title=[[User:Ævar Arnfjörð Bjarmason]]
2303 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2308 Magic Word: {{NAMESPACE}}
2310 title=[[User:Ævar Arnfjörð Bjarmason]]
2319 Magic Word: {{NAMESPACEE}}
2321 title=[[User:Ævar Arnfjörð Bjarmason]]
2330 Magic Word: {{NUMBEROFFILES}}
2339 Magic Word: {{PAGENAME}}
2341 title=[[User:Ævar Arnfjörð Bjarmason]]
2345 <p>Ævar Arnfjörð Bjarmason
2350 Magic Word: {{PAGENAME}} with metacharacters
2352 title=[['foo & bar = baz']]
2356 <p><i>'foo & bar = baz'</i>
2361 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2363 title=[[*RFC 1234 http://example.com/]]
2367 <p>*RFC 1234 http://example.com/
2372 Magic Word: {{PAGENAMEE}}
2374 title=[[User:Ævar Arnfjörð Bjarmason]]
2378 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2383 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2385 title=[[*RFC 1234 http://example.com/]]
2389 <p>*RFC_1234_http://example.com/
2394 Magic Word: {{REVISIONID}}
2403 Magic Word: {{SCRIPTPATH}}
2412 Magic Word: {{SERVER}}
2416 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2421 Magic Word: {{SERVERNAME}}
2430 Magic Word: {{SITENAME}}
2439 Namespace 1 {{ns:1}}
2448 Namespace 1 {{ns:01}}
2457 Namespace 0 {{ns:0}} (bug 4783)
2465 Namespace 0 {{ns:00}} (bug 4783)
2473 Namespace -1 {{ns:-1}}
2482 Namespace User {{ns:User}}
2491 Namespace User talk {{ns:User_talk}}
2500 Namespace User talk {{ns:uSeR tAlK}}
2509 Namespace File {{ns:File}}
2518 Namespace File {{ns:Image}}
2527 Namespace (lang=de) Benutzer {{ns:User}}
2538 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2544 <p>Benutzer Diskussion
2552 {{urlencode:hi world?!}}
2553 {{urlencode:hi world?!|WIKI}}
2554 {{urlencode:hi world?!|PATH}}
2555 {{urlencode:hi world?!|QUERY}}
2568 Magic links: internal link to RFC (bug 479)
2572 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2577 Magic links: RFC (bug 479)
2581 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc822">RFC 822</a>
2586 Magic links: ISBN (bug 1937)
2590 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2595 Magic links: PMID incorrectly converts space to underscore
2599 <p><a class="external mw-magiclink-pmid" href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2608 Nonexistent template
2610 {{thistemplatedoesnotexist}}
2612 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2619 This is a test template
2627 <p>This is a test template
2632 Template with explicit namespace
2636 <p>This is a test template
2644 This is a test template with parameter {{{param}}}
2650 {{paramtest|param=foo}}
2652 <p>This is a test template with parameter foo
2657 Template:paramtestnum
2663 Template unnamed parameter
2665 {{paramtestnum|Main Page|the main page}}
2667 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2672 Template:templatesimple
2678 Template:templateredirect
2680 #redirect [[Template:templatesimple]]
2684 Template:templateasargtestnum
2690 Template:templateasargtest
2692 {{template{{{templ}}}}}
2696 Template:templateasargtest2
2702 Template with template name as unnamed argument
2704 {{templateasargtestnum|templatesimple}}
2711 Template with template name as argument
2713 {{templateasargtest|templ=simple}}
2720 Template with template name as argument (2)
2722 {{templateasargtest2|templ=templatesimple}}
2729 Template:templateasargtestdefault
2731 {{{{{templ|templatesimple}}}}}
2741 Template with default value
2743 {{templateasargtestdefault}}
2750 Template with default value (value set)
2752 {{templateasargtestdefault|templ=templa}}
2761 {{templateredirect}}
2768 Template with argument in separate line
2770 {{ templateasargtest |
2778 Template with complex template as argument
2781 param ={{ templateasargtest |
2784 <p>This is a test template with parameter (test)
2789 Template with thumb image (with link in description)
2792 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2794 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>
2799 Template:complextemplate
2801 {{{1}}} {{paramtest|
2802 param ={{{param}}}}}
2806 Template with complex arguments
2809 param ={{ templateasargtest |
2810 templ = simple }}|[[Template:complextemplate|link]]}}
2812 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2817 BUG 553: link with two variables in a piped link
2820 |[[{{{1}}}|{{{2}}}]]
2825 <td>[[{{{1}}}|{{{2}}}]]
2833 Magic variable as template parameter
2835 {{paramtest|param={{SITENAME}}}}
2837 <p>This is a test template with parameter MediaWiki
2844 [[{{{param}}}|link]]
2848 Template parameter as link source
2850 {{linktest|param=Main Page}}
2852 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2860 including another template, {{paramtest|param={{{arg}}}}}
2864 Template passing argument to another template
2866 {{paramtest2|arg='hmm'}}
2868 <p>including another template, This is a test template with parameter 'hmm'
2879 Template as link source
2883 <p><a href="/wiki/Main_Page">Main Page</a>
2901 Template infinite loop
2905 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1">Template:Loop1</a></span>
2910 Template from main namespace
2929 BUG 529: Template with table, not included at beginning of line
2953 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2978 BUG 41: Template parameters shown as broken links
2990 ''None'' of '''this''' should be
2992 but rather passed unmodified
2996 # hmm, fix this or just deprecate msgnw and document its behavior?
3002 {{msgnw:MSGNW test}}
3004 <p>''None'' of '''this''' should be
3006 but rather passed unmodified
3014 {{int:youhavenewmessages|lots of money|not!}}
3016 <p>You have lots of money (not!).
3023 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3027 <includeonly> and <noinclude> being included
3038 <onlyinclude>Foo</onlyinclude>bar
3042 <onlyinclude> being included
3054 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3058 <onlyinclude> and <includeonly> being included
3067 <includeonly> and <noinclude> on a page
3069 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3076 <onlyinclude> on a page
3078 <onlyinclude>Foo</onlyinclude>bar
3085 Template:Includeonly section
3088 ==Includeonly section==
3094 Bug 6563: Edit link generation for section shown by <includeonly>
3096 {{includeonly section}}
3098 <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>
3099 <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>
3103 # Uses same input as the contents of [[Template:Includeonly section]]
3105 Bug 6563: Section extraction for section shown by <includeonly>
3110 ==Includeonly section==
3118 Bug 6563: Edit link generation for section suppressed by <includeonly>
3121 ==Includeonly section==
3125 <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>
3130 Bug 6563: Section extraction for section suppressed by <includeonly>
3135 ==Includeonly section==
3143 ### Pre-save transform tests
3146 pre-save transform: subst:
3152 This is a test template
3156 pre-save transform: normal template
3166 pre-save transform: nonexistent template
3170 {{thistemplatedoesnotexist}}
3172 {{thistemplatedoesnotexist}}
3177 pre-save transform: subst magic variables
3186 # This is bug 89, which I fixed. -- wtm
3188 pre-save transform: subst: templates with parameters
3192 {{subst:paramtest|param="something else"}}
3194 This is a test template with parameter "something else"
3200 <nowiki>'''not wiki'''</nowiki>
3204 pre-save transform: nowiki in subst (bug 1188)
3208 {{subst:nowikitest}}
3210 <nowiki>'''not wiki'''</nowiki>
3215 Template:commenttest
3217 This template has <!-- a comment --> in it.
3221 pre-save transform: comment in subst (bug 1936)
3225 {{subst:commenttest}}
3227 This template has <!-- a comment --> in it.
3231 pre-save transform: unclosed tag
3235 <nowiki>'''not wiki'''
3237 <nowiki>'''not wiki'''
3241 pre-save transform: mixed tag case
3245 <NOwiki>'''not wiki'''</noWIKI>
3247 <NOwiki>'''not wiki'''</noWIKI>
3251 pre-save transform: unclosed comment in <nowiki>
3255 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3257 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3263 <span onmouseover="alert('crap')">Oh no</span>
3267 (confirming safety of fix for subst bug 1936)
3269 {{Template:dangerous}}
3271 <p><span>Oh no</span>
3276 pre-save transform: comment containing gallery (bug 5024)
3280 <!-- <gallery>data</gallery> -->
3282 <!-- <gallery>data</gallery> -->
3286 pre-save transform: comment containing extension
3290 <!-- <tag>data</tag> -->
3292 <!-- <tag>data</tag> -->
3296 pre-save transform: comment containing nowiki
3300 <!-- <nowiki>data</nowiki> -->
3302 <!-- <nowiki>data</nowiki> -->
3306 pre-save transform: <noinclude> in subst (bug 3298)
3316 pre-save transform: <onlyinclude> in subst (bug 3298)
3328 {{<includeonly>subst:</includeonly>Includes}}
3332 Template:SafeSubstTest
3334 {{<includeonly>safesubst:</includeonly>Includes}}
3338 bug 22297: safesubst: works during PST
3342 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3348 bug 22297: safesubst: works during normal parse
3357 subst: does not work during normal parse
3361 <p>{{subst:Includes}}
3366 pre-save transform: context links ("pipe trick")
3370 [[Article (context)|]]
3373 [[Bar:Article (context)|]]
3374 [[:Bar:Article (context)|]]
3376 [[|Article (context)]]
3380 [[Article (context)|Article]]
3381 [[Bar:Article|Article]]
3382 [[:Bar:Article|Article]]
3383 [[Bar:Article (context)|Article]]
3384 [[:Bar:Article (context)|Article]]
3386 [[Article (context)]]
3387 [[Bar:X (Y) Z|X (Y) Z]]
3388 [[:Bar:X (Y) Z|X (Y) Z]]
3392 pre-save transform: context links ("pipe trick") with interwiki prefix
3396 [[interwiki:Article|]]
3397 [[:interwiki:Article|]]
3398 [[interwiki:Bar:Article|]]
3399 [[:interwiki:Bar:Article|]]
3401 [[interwiki:Article|Article]]
3402 [[:interwiki:Article|Article]]
3403 [[interwiki:Bar:Article|Bar:Article]]
3404 [[:interwiki:Bar:Article|Bar:Article]]
3408 pre-save transform: context links ("pipe trick") with parens in title
3410 pst title=[[Somearticle (context)]]
3414 [[Article (context)|Article]]
3418 pre-save transform: context links ("pipe trick") with comma in title
3420 pst title=[[Someplace, Somewhere]]
3423 [[Otherplace, Elsewhere|]]
3424 [[Otherplace, Elsewhere, Anywhere|]]
3426 [[Otherplace, Somewhere|Otherplace]]
3427 [[Otherplace, Elsewhere|Otherplace]]
3428 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3432 pre-save transform: context links ("pipe trick") with parens and comma
3434 pst title=[[Someplace (IGNORED), Somewhere]]
3437 [[Otherplace (place), Elsewhere|]]
3439 [[Otherplace, Somewhere|Otherplace]]
3440 [[Otherplace (place), Elsewhere|Otherplace]]
3444 pre-save transform: context links ("pipe trick") with comma and parens
3446 pst title=[[Who, me? (context)]]
3449 [[Me, Myself, and I (1937 song)|]]
3451 [[Yes, you. (context)|Yes, you.]]
3452 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3456 pre-save transform: context links ("pipe trick") with namespace
3458 pst title=[[Ns:Somearticle]]
3462 [[Ns:Article|Article]]
3466 pre-save transform: context links ("pipe trick") with namespace and parens
3468 pst title=[[Ns:Somearticle (context)]]
3472 [[Ns:Article (context)|Article]]
3476 pre-save transform: context links ("pipe trick") with namespace and comma
3478 pst title=[[Ns:Somearticle, Context, Whatever]]
3482 [[Ns:Article, Context, Whatever|Article]]
3486 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3488 pst title=[[Ns:Somearticle, Context (context)]]
3492 [[Ns:Article (context)|Article]]
3496 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3498 pst title=[[Ns:Somearticle (IGNORED), Context]]
3502 [[Ns:Article, Context|Article]]
3507 ### Message transform tests
3510 message transform: magic variables
3520 message transform: should not transform wiki markup
3530 message transform: <noinclude> in transcluded template (bug 4926)
3540 message transform: <onlyinclude> in transcluded template (bug 4926)
3550 {{#special:}} page name, known
3554 {{#special:Recentchanges}}
3556 Special:RecentChanges
3560 {{#special:}} page name with subpage, known
3564 {{#special:Recentchanges/param}}
3566 Special:RecentChanges/param
3570 {{#special:}} page name, unknown
3574 {{#special:foobarnonexistent}}
3576 No such special page
3585 [[Image:foobar.jpg]]
3587 <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>
3594 [[Image:foobar.jpg|right]]
3596 <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>
3601 Simple image (using File: namespace, now canonical)
3605 <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>
3612 [[Image:foobar.jpg|right|Caption text]]
3614 <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>
3619 Image with link parameter, wiki target
3621 [[Image:foobar.jpg|link=Target page]]
3623 <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>
3628 Image with link parameter, URL target
3630 [[Image:foobar.jpg|link=http://example.com/]]
3632 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3637 Image with link parameter, wgExternalLinkTarget
3639 [[Image:foobar.jpg|link=http://example.com/]]
3641 wgExternalLinkTarget='foobar'
3643 <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>
3648 Image with link parameter, wgExternalLinkTarget, unnamed parameter
3650 [[Image:foobar.jpg|link=http://example.com/|Title]]
3652 wgExternalLinkTarget='foobar'
3654 <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>
3659 Image with empty link parameter
3661 [[Image:foobar.jpg|link=]]
3663 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3668 Image with link parameter (wiki target) and unnamed parameter
3670 [[Image:foobar.jpg|link=Target page|Title]]
3672 <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>
3677 Image with link parameter (URL target) and unnamed parameter
3679 [[Image:foobar.jpg|link=http://example.com/|Title]]
3681 <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>
3686 Thumbnail image with link parameter
3688 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
3690 <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>
3695 Image with frame and link
3697 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3699 <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>
3704 Image with frame and link and explicit alt
3706 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3708 <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>
3713 Image with wiki markup in implicit alt
3715 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3717 <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>
3722 Image with wiki markup in explicit alt
3724 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3726 <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>
3731 Link to image page- image page normally doesn't exists, hence edit link
3732 Add test with existing image page
3733 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3737 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3742 bug 18784 Link to non-existent image page with caption should use caption as link text
3744 [[:Image:test|caption]]
3746 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
3751 Frameless image caption with a free URL
3753 [[Image:foobar.jpg|http://example.com]]
3755 <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>
3760 Thumbnail image caption with a free URL
3762 [[Image:foobar.jpg|thumb|http://example.com]]
3764 <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>
3769 Thumbnail image caption with a free URL and explicit alt
3771 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3773 <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>
3778 BUG 1887: A ISBN with a thumbnail
3780 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3782 <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>
3787 BUG 1887: A RFC with a thumbnail
3789 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3791 <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>
3796 BUG 1887: A mailto link with a thumbnail
3798 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3800 <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>
3804 # Pending resolution to bug 368
3806 BUG 648: Frameless image caption with a link
3808 [[Image:foobar.jpg|text with a [[link]] in it]]
3810 <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>
3815 BUG 648: Frameless image caption with a link (suffix)
3817 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3819 <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>
3824 BUG 648: Frameless image caption with an interwiki link
3826 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3828 <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>
3833 BUG 648: Frameless image caption with a piped interwiki link
3835 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3837 <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>
3842 Escape HTML special chars in image alt text
3844 [[Image:foobar.jpg|& < > "]]
3846 <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>
3851 BUG 499: Alt text should have Ӓ, not &1234;
3853 [[Image:foobar.jpg|♀]]
3855 <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>
3860 Broken image caption with link
3862 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3864 <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.
3869 Image caption containing another image
3871 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3873 <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>
3878 Image caption containing a newline
3880 [[Image:Foobar.jpg|This
3883 <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>
3889 Bug 3090: External links other than http: in image captions
3891 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3893 <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>
3900 #REDIRECT [[File:Barfoo.jpg]]
3906 [[Image:Barfoo.jpg]]
3908 <p><a href="/wiki/File:Barfoo.jpg">File:Barfoo.jpg</a>
3913 Missing image with uploads disabled
3917 [[Image:Foobaz.jpg]]
3919 <p><a href="/wiki/File:Foobaz.jpg">File:Foobaz.jpg</a>
3928 Subpage test/subpage
3936 subpage title=[[Subpage test]]
3940 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3945 Subpage noslash link
3947 subpage title=[[Subpage test]]
3951 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3960 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
3965 BUG 561: {{/Subpage}}
3967 subpage title=[[Page]]
3971 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
3979 Category:MediaWiki User's Guide
3987 [[:Category:MediaWiki User's Guide]]
3989 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide">Category:MediaWiki User's Guide</a>
3998 [[Category:MediaWiki User's Guide]]
4000 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4004 PAGESINCATEGORY invalid title fatal (r33546 fix)
4006 {{PAGESINCATEGORY:<bogus>}}
4013 ### Inter-language links
4016 Inter-language links
4022 [[zh:食品]]
4024 es:Alimento fr:Nourriture zh:食品
4031 Basic section headings
4038 ===Smaller headline===
4041 <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>
4044 <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>
4047 <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>
4053 Section headings with TOC
4056 === Subheadline 1 ===
4057 ===== Skipping a level =====
4058 ====== Skipping a level ======
4062 ===Another headline===
4064 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4066 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4068 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4070 <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>
4072 <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>
4079 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4081 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4086 <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>
4087 <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>
4088 <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>
4089 <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>
4090 <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>
4093 <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>
4097 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4099 Handling of sections up to level 6 and beyond
4102 == Level 2 Heading==
4103 === Level 3 Heading===
4104 ==== Level 4 Heading====
4105 ===== Level 5 Heading=====
4106 ====== Level 6 Heading======
4107 ======= Level 7 Heading=======
4108 ======== Level 8 Heading========
4109 ========= Level 9 Heading=========
4110 ========== Level 10 Heading==========
4112 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4114 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4116 <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>
4118 <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>
4120 <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>
4122 <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>
4124 <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>
4125 <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>
4126 <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>
4127 <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>
4128 <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>
4141 <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>
4142 <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>
4143 <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>
4144 <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>
4145 <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>
4146 <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>
4147 <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>
4148 <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>
4149 <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>
4150 <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>
4155 TOC regression (bug 9764)
4159 ==== title 1.1.1 ====
4164 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4166 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4168 <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>
4170 <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>
4173 <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>
4176 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4178 <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>
4183 <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>
4184 <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>
4185 <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>
4186 <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>
4187 <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>
4188 <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>
4193 TOC with wgMaxTocLevel=3 (bug 6204)
4199 ==== title 1.1.1 ====
4204 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4206 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4208 <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>
4209 <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>
4212 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4214 <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>
4219 <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>
4220 <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>
4221 <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>
4222 <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>
4223 <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>
4224 <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>
4229 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4235 ====Section 1.1.1====
4236 ====Section 1.1.1.1====
4239 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4241 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4243 <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>
4246 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4249 <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>
4250 <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>
4251 <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>
4252 <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>
4253 <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>
4259 Resolving duplicate section names
4264 <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>
4265 <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>
4270 Resolving duplicate section names with differing case (bug 10721)
4275 <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>
4276 <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>
4288 Template with sections, __NOTOC__
4295 <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>
4296 <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>
4297 <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>
4298 <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>
4303 __NOEDITSECTION__ keyword
4309 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4310 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4315 Link inside a section heading
4317 ==Section with a [[Main Page|link]] in it==
4319 <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>
4324 TOC regression (bug 12077)
4331 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4333 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4335 <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>
4338 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4341 <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>
4342 <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>
4343 <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>
4348 BUG 1219 URL next to image (good)
4350 http://example.com [[Image:foobar.jpg]]
4352 <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>
4357 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4360 The line above must have a trailing space!
4363 But just in case it doesn't...
4365 <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>
4366 <p>The line above must have a trailing space!
4368 <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>
4369 <p>But just in case it doesn't...
4374 Header with special characters (bug 25462)
4376 The tooltips shall not show entities to the user (ie. be double escaped)
4393 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4395 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4397 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4398 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4399 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4400 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4401 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4404 <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>
4407 <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>
4410 <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>
4413 <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>
4416 <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>
4422 BUG 1219 URL next to image (broken)
4424 http://example.com[[Image:foobar.jpg]]
4426 <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>
4431 Bug 1186 news: in the middle of text
4433 http://en.wikinews.org/wiki/Wikinews:Workplace
4435 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4441 Namespaced link must have a title
4450 Namespaced link must have a title (bad fragment version)
4452 [[Project:#fragment]]
4454 <p>[[Project:#fragment]]
4460 div with no attributes
4462 <div>HTML rocks</div>
4464 <div>HTML rocks</div>
4469 div with double-quoted attribute
4471 <div id="rock">HTML rocks</div>
4473 <div id="rock">HTML rocks</div>
4478 div with single-quoted attribute
4480 <div id='rock'>HTML rocks</div>
4482 <div id="rock">HTML rocks</div>
4487 div with unquoted attribute
4489 <div id=rock>HTML rocks</div>
4491 <div id="rock">HTML rocks</div>
4496 div with illegal double attributes
4498 <div align="center" align="right">HTML rocks</div>
4500 <div align="right">HTML rocks</div>
4505 HTML multiple attributes correction
4507 <p class="error" class="awesome">Awesome!</p>
4509 <p class="awesome">Awesome!</p>
4514 Table multiple attributes correction
4517 !+ class="error" class="awesome"| status
4522 <th class="awesome">status
4532 <DIV ALIGN="center">HTML ROCKS</DIV>
4534 <div align="center">HTML ROCKS</div>
4540 text with amp in the middle of nowhere
4544 <p>Remember AT&T?
4549 text with character entity: eacute
4551 I always thought é was a cute letter.
4553 <p>I always thought é was a cute letter.
4558 text with undefined character entity: xacute
4560 I always thought &xacute; was a cute letter.
4562 <p>I always thought &xacute; was a cute letter.
4574 [[Media:Foobar.jpg]]
4576 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4581 Media link with text
4583 [[Media:Foobar.jpg|A neat file to look at]]
4585 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4589 # FIXME: this is still bad HTML tag nesting
4591 Media link with nasty text
4592 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4594 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4596 <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>
4601 Media link to nonexistent file (bug 1702)
4603 [[Media:No such.jpg]]
4605 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4610 Image link to nonexistent file (bug 1850 - good)
4612 [[Image:No such.jpg]]
4614 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4619 :Image link to nonexistent file (bug 1850 - bad)
4621 [[:Image:No such.jpg]]
4623 <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>
4630 Character reference normalization in link text (bug 1938)
4632 [[Main Page|this&that]]
4634 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4641 Test for unicode normalization
4643 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4647 (bug 19451) Links should refer to the normalized form.
4655 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4656 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4657 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4658 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4659 <a href="/wiki/%D7%90%D6%B7">אַ</a>
4664 Empty attribute crash test (bug 2067)
4666 <font color="">foo</font>
4668 <p><font color="">foo</font>
4673 Empty attribute crash test single-quotes (bug 2067)
4675 <font color=''>foo</font>
4677 <p><font color="">foo</font>
4682 Attribute test: equals, then nothing
4684 <font color=>foo</font>
4691 Attribute test: unquoted value
4693 <font color=x>foo</font>
4695 <p><font color="x">foo</font>
4700 Attribute test: unquoted but illegal value (hash)
4702 <font color=#x>foo</font>
4704 <p><font color="#x">foo</font>
4709 Attribute test: no value
4711 <font color>foo</font>
4713 <p><font color="color">foo</font>
4718 Bug 2095: link with three closing brackets
4722 <p><a href="/wiki/Main_Page">Main Page</a>]
4727 Bug 2095: link with pipe and three closing brackets
4731 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4736 Bug 2095: link with pipe and three closing brackets, version 2
4738 [[Main Page|[http://example.com/]]]
4740 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4750 Template:Dangerous attribute
4752 " onmouseover="alert(document.cookie)
4756 Template:Dangerous style attribute
4758 border-size: expression(alert(document.cookie))
4764 <div style="float: right; {{{1}}}">Magic div</div>
4768 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4770 <div title="{{test}}"></div>
4772 <div title="This is a test template"></div>
4777 Bug 2304: HTML attribute safety (dangerous template; 2309)
4779 <div title="{{dangerous attribute}}"></div>
4781 <div title=""></div>
4786 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4788 <div style="{{dangerous style attribute}}"></div>
4790 <div style="/* insecure input */"></div>
4795 Bug 2304: HTML attribute safety (safe parameter; 2309)
4797 {{div style|width: 200px}}
4799 <div style="float: right; width: 200px">Magic div</div>
4804 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4806 {{div style|width: expression(alert(document.cookie))}}
4808 <div style="/* insecure input */">Magic div</div>
4813 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4815 {{div style|"><script>alert(document.cookie)</script>}}
4817 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4822 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4824 {{div style|" ><script>alert(document.cookie)</script>}}
4826 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4831 Bug 2304: HTML attribute safety (link)
4833 <div title="[[Main Page]]"></div>
4835 <div title="[[Main Page]]"></div>
4840 Bug 2304: HTML attribute safety (italics)
4842 <div title="''foobar''"></div>
4844 <div title="''foobar''"></div>
4849 Bug 2304: HTML attribute safety (bold)
4851 <div title="'''foobar'''"></div>
4853 <div title="'''foobar'''"></div>
4859 Bug 2304: HTML attribute safety (ISBN)
4861 <div title="ISBN 1234567890"></div>
4863 <div title="ISBN 1234567890"></div>
4868 Bug 2304: HTML attribute safety (RFC)
4870 <div title="RFC 1234"></div>
4872 <div title="RFC 1234"></div>
4877 Bug 2304: HTML attribute safety (PMID)
4879 <div title="PMID 1234567890"></div>
4881 <div title="PMID 1234567890"></div>
4886 Bug 2304: HTML attribute safety (web link)
4888 <div title="http://example.com/"></div>
4890 <div title="http://example.com/"></div>
4895 Bug 2304: HTML attribute safety (named web link)
4897 <div title="[http://example.com/ link]"></div>
4899 <div title="[http://example.com/ link]"></div>
4904 Bug 3244: HTML attribute safety (extension; safe)
4906 <div style="<nowiki>background:blue</nowiki>"></div>
4908 <div style="background:blue"></div>
4913 Bug 3244: HTML attribute safety (extension; unsafe)
4915 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4917 <div style="/* insecure input */"></div>
4921 # More MSIE fun discovered by Tom Gilder
4924 MSIE CSS safety test: spurious slash
4926 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4928 <div style="/* insecure input */">evil</div>
4933 MSIE CSS safety test: hex code
4935 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4937 <div style="/* insecure input */">evil</div>
4942 MSIE CSS safety test: comment in url
4944 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4946 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4951 MSIE CSS safety test: comment in expression
4953 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4955 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4961 Table attribute legitimate extension
4964 !+ style="<nowiki>color:blue</nowiki>"| status
4969 <th style="color:blue">status
4977 Table attribute safety
4980 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4985 <th style="/* insecure input */">status
4993 CSS line continuation 1
4995 <div style="background-image: u\ rl(test.jpg);"></div>
4997 <div style="/* insecure input */"></div>
5002 CSS line continuation 2
5004 <div style="background-image: u\ rl(test.jpg); "></div>
5006 <div style="/* insecure input */"></div>
5017 Expansion of multi-line templates in attribute values (bug 6255)
5019 <div style="background: {{identity|#00FF00}}">-</div>
5021 <div style="background: #00FF00">-</div>
5027 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5029 <div style="background:
5032 <div style="background: #00FF00">-</div>
5037 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5039 <div style="background: #00FF00">-</div>
5041 <div style="background: #00FF00">-</div>
5046 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5049 Parser hook: empty input
5062 Parser hook: empty input using terminated empty elements
5075 Parser hook: empty input using terminated empty elements (space before)
5088 Parser hook: basic input
5102 Parser hook: case insensitive
5116 Parser hook: case insensitive, redux
5129 Parser hook: nested tags
5133 <tag><tag></tag></tag>
5144 Parser hook: basic arguments
5146 <tag width=200 height = "100" depth = '50' square></tag>
5165 Parser hook: argument containing a forward slash (bug 5344)
5167 <tag filename='/tmp/bla'></tag>
5173 string(8) "/tmp/bla"
5180 Parser hook: empty input using terminated empty elements (bug 2374)
5194 # </tag> should be output literally since there is no matching tag that begins it
5196 Parser hook: basic arguments using terminated empty elements (bug 2374)
5198 <tag width=200 height = "100" depth = '50' square/>
5221 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5225 Parser hook: static parser hook not inside a comment
5227 <statictag>hello, world</statictag>
5228 <statictag action=flush/>
5236 Parser hook: static parser hook inside a comment
5238 <!-- <statictag>hello, world</statictag> -->
5239 <statictag action=flush/>
5245 # Nested template calls; this case was broken by Parser.php rev 1.506,
5249 Template:One-parameter
5251 (My parameter is: {{{1}}})
5255 Template:Map-one-parameter
5261 Nested template calls
5263 {{Map-one-parameter|One-parameter|param}}
5265 <p>(My parameter is: param)
5274 Sanitizer: Closing of open tags
5276 <s></s><table></table>
5278 <s></s><table></table>
5283 Sanitizer: Closing of open but not closed tags
5292 Sanitizer: Closing of closed but not open tags
5301 Sanitizer: Closing of closed but not open table tags
5303 Table not started</td></tr></table>
5305 <p>Table not started</td></tr></table>
5310 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5312 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5314 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5319 Sanitizer: Validating the contents of the id attribute (bug 4515)
5325 Something, but definitely not <br id="9" />...
5329 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5333 <br id="foo" /><br id="foo" />
5335 Something need to be done. foo-2 ?
5339 Language converter: output gets cut off unexpectedly (bug 5757)
5343 this bit is safe: }-
5345 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5347 then we get cut off here: }-
5349 all additional text is vanished
5351 <p>this bit is safe: }-
5352 </p><p>but if we add a conversion instance: xxx
5353 </p><p>then we get cut off here: }-
5354 </p><p>all additional text is vanished
5359 Self closed html pairs (bug 5487)
5362 <center><font id="bug" />Centered text</center>
5363 <div><font id="bug2" />In div text</div>
5365 <center><font id="bug" />Centered text</center>
5366 <div><font id="bug2" />In div text</div>
5375 Punctuation: nbsp before exclamation
5379 <p>C'est grave !
5384 Punctuation: CSS !important (bug 11874)
5386 <div style="width:50% !important">important</div>
5388 <div style="width:50% !important">important</div>
5393 Punctuation: CSS ! important (bug 11874; with space after)
5395 <div style="width:50% ! important">important</div>
5397 <div style="width:50% ! important">important</div>
5403 HTML bullet list, closed tags (bug 5497)
5418 HTML bullet list, unclosed tags (bug 5497)
5435 HTML ordered list, closed tags (bug 5497)
5450 HTML ordered list, unclosed tags (bug 5497)
5467 HTML nested bullet list, closed tags (bug 5497)
5492 HTML nested bullet list, open tags (bug 5497)
5517 HTML nested ordered list, closed tags (bug 5497)
5542 HTML nested ordered list, open tags (bug 5497)
5567 HTML ordered list item with parameters oddity
5569 <ol><li id="fragment">One</li></ol>
5571 <ol><li id="fragment">One</li></ol>
5576 bug 5918: autonumbering
5578 [http://first/] [http://second] [ftp://ftp]
5582 [mailto:enclosed@mail.tld With target]
5584 [mailto:enclosed@mail.tld]
5586 mailto:inline@mail.tld
5588 <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>
5589 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
5590 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
5591 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
5592 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
5598 # Security and HTML correctness
5599 # From Nick Jenkins' fuzz testing
5603 Fuzz testing: Parser13
5617 Fuzz testing: Parser14
5622 <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>
5623 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5625 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5632 Fuzz testing: Parser14-table
5638 <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>
5639 <table style="__TOC__">
5648 # Known to produce bogus xml (extra </td>)
5650 Fuzz testing: Parser16
5670 Fuzz testing: Parser21
5673 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5678 <th><a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5687 Fuzz testing: Parser22
5689 http://===r:::https://b
5694 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
5699 # Known to produce bad XML for now
5701 # Note: the current result listed for this is not what the original one was,
5702 # but the original bug was JavaScript injection, which is fixed in any case.
5703 # It's not clear that the original result listed was any more correct than the
5704 # current one. Original result:
5707 # <u class="|">}}}} >
5708 # <br style="onmouseover='alert(document.cookie);'" />
5710 # MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5716 # Known to produce bad XML for now
5718 Fuzz testing: Parser24
5725 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5726 <br style="onmouseover='alert(document.cookie);' " />
5728 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5732 </p><p><u class="|">}}}} >
5733 </p><p><br style="onmouseover='alert(document.cookie);'" />
5735 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5746 # Note: the current result listed for this is not what the original one was,
5747 # but the original bug was JavaScript injection, which is fixed in any case.
5748 # It's not clear that the original result listed was any more correct than the
5749 # current one. Original result:
5752 # <li class="||">
5753 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5755 Fuzz testing: Parser25 (bug 6055)
5761 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5763 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5768 Fuzz testing: URL adjacent extension (with space, clean)
5771 http://example.com <nowiki>junk</nowiki>
5773 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
5778 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5781 http://example.com<nowiki>junk</nowiki>
5783 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
5788 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5791 http://example.com<pre>junk</pre>
5793 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
5798 Fuzz testing: image with bogus manual thumbnail
5800 [[Image:foobar.jpg|thumbnail= ]]
5802 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5807 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5809 <pre dir=" "></pre>
5811 <pre dir=" "></pre>
5816 Parsing optional HTML elements (Bug 6171)
5821 <td> Some tabular data</td>
5822 <td> More tabular data ...
5823 <td> And yet som tabular data</td>
5829 <td> Some tabular data</td>
5830 <td> More tabular data ...
5831 </td><td> And yet som tabular data</td>
5838 Correct handling of <td>, <tr> (Bug 6171)
5843 <td> Some tabular data</td>
5844 <td> More tabular data ...</td>
5845 <td> And yet som tabular data</td>
5851 <td> Some tabular data</td>
5852 <td> More tabular data ...</td>
5853 <td> And yet som tabular data</td>
5861 Parsing crashing regression (fr:JavaScript)
5865 <p></body></x>
5870 Inline wiki vs wiki block nesting
5876 <p><b>Bold paragraph</b>
5877 </p><p>New wiki paragraph
5882 Inline HTML vs wiki block nesting
5890 <p><b>Bold paragraph</b>
5891 </p><p>New wiki paragraph
5895 # Original result was this:
5896 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5898 # While that might be marginally more intuitive, maybe, the six-apostrophe
5899 # construct is clearly pathological and the result stated here (which is what
5900 # the parser actually does) is about as reasonable as anything.
5902 Mixing markup for italics and bold
5905 '''bold''''''bold''bolditalics'''''
5907 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5915 Article for special page transclusion test
5919 Special page transclusion
5922 {{Special:Prefixindex/Xyzzyx}}
5926 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5931 Special page transclusion twice (bug 5021)
5934 {{Special:Prefixindex/Xyzzyx}}
5935 {{Special:Prefixindex/Xyzzyx}}
5939 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5942 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5947 Transclusion of default MediaWiki message
5949 {{MediaWiki:Mainpage}}
5956 Transclusion of nonexistent MediaWiki message
5958 {{MediaWiki:Mainpagexxx}}
5960 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
5965 Transclusion of MediaWiki message with underscore
5967 {{MediaWiki:history_short}}
5974 Transclusion of MediaWiki message with space
5976 {{MediaWiki:history short}}
5983 Invalid header with following text
5993 Section extraction test (section 0)
6013 Section extraction test (section 1)
6035 Section extraction test (section 2)
6056 Section extraction test (section 3)
6076 Section extraction test (section 4)
6100 Section extraction test (section 5)
6120 Section extraction test (section 6)
6141 Section extraction test (section 7)
6161 Section extraction test (section 8)
6181 Section extraction test (section 9)
6202 Section extraction test (section 10)
6222 Section extraction test (nonexistent section 11)
6241 Section extraction test with bogus heading (section 1)
6246 ==bogus== not a legal section
6250 ==bogus== not a legal section
6254 Section extraction test with bogus heading (section 2)
6259 ==bogus== not a legal section
6266 Section extraction test with comment after heading (section 1)
6278 Section extraction test with comment after heading (section 2)
6290 Section extraction test with bogus <nowiki> heading (section 1)
6295 ==bogus== <nowiki>not a legal section</nowiki>
6299 ==bogus== <nowiki>not a legal section</nowiki>
6303 Section extraction test with bogus <nowiki> heading (section 2)
6308 ==bogus== <nowiki>not a legal section</nowiki>
6315 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6316 # instead of respecting commented sections
6318 Section extraction prefixed by comment (section 1)
6329 Section extraction prefixed by comment (section 2)
6340 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6341 # instead of respecting HTML-style headings
6343 Section extraction, mixed wiki and html (section 1)
6359 Section extraction, mixed wiki and html (section 2)
6375 # Formerly testing for bug 3342
6377 Section extraction, heading surrounded by <noinclude>
6381 <noinclude>==unmarked==</noinclude>
6387 # Test behaviour of bug 19910
6389 Sectiion with all-equals
6394 The line above must have a trailing space
6397 But just in case it doesn't...
6401 But just in case it doesn't...
6405 Section replacement test (section 0)
6436 Section replacement test (section 1)
6465 Section replacement test (section 2)
6495 Section replacement test (section 3)
6526 Section replacement test (section 4)
6553 Section replacement test (section 5)
6584 Section replacement test (section 6)
6614 Section replacement test (section 7)
6645 Section replacement test (section 8)
6676 Section replacement test (section 9)
6705 Section replacement test (section 10)
6735 Section replacement test with initial whitespace (bug 13728)
6739 Preformatted initial line
6743 Preformatted initial line
6750 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6762 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6775 Section extraction, <pre> around bogus header (bug 10309)
6792 Section replacement, <pre> around bogus header (bug 10309)
6794 noxml replace=2,"xxx"
6815 Handling of 
 in URLs
6819 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
6826 5 quotes, code coverage +1 line
6833 Special:Search page linking.
6837 <p><a href="/wiki/Special:Search">Special:Search</a>
6852 * {{SUBJECTPAGENAME}}
6853 * {{SUBJECTPAGENAMEE}}
6860 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6862 <ul><li> Parser test
6863 </li><li> Parser test
6864 </li><li> Parser test
6865 </li><li> Parser_test
6866 </li><li> Parser test
6867 </li><li> Parser_test
6868 </li><li> Talk:Parser test
6869 </li><li> Talk:Parser_test
6870 </li><li> Parser test
6871 </li><li> Parser_test
6878 </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>
6882 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6892 image4 |300px| centre
6893 image5.svg| http://///////
6898 <ul class="gallery">
6899 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6900 <div style="height: 150px;">Image1.png</div>
6901 <div class="gallerytext">
6904 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6905 <div style="height: 150px;">Image2.gif</div>
6906 <div class="gallerytext">
6911 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6912 <div style="height: 150px;">Image3</div>
6913 <div class="gallerytext">
6916 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6917 <div style="height: 150px;">Image4</div>
6918 <div class="gallerytext">
6923 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6924 <div style="height: 150px;">Image5.svg</div>
6925 <div class="gallerytext">
6926 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
6930 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6931 <div style="height: 150px;">* image6</div>
6932 <div class="gallerytext">
6940 Gallery (with options)
6942 <gallery widths='60px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
6943 File:Nonexistant.jpg|caption
6944 File:Nonexistant.jpg
6945 image:foobar.jpg|some '''caption''' [[Main Page]]
6949 <ul class="gallery" style="max-width: 202px;_width: 202px;">
6950 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page">Main Page</a></li>
6951 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6952 <div style="height: 70px;">Nonexistant.jpg</div>
6953 <div class="gallerytext">
6958 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6959 <div style="height: 70px;">Nonexistant.jpg</div>
6960 <div class="gallerytext">
6963 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6964 <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>
6965 <div class="gallerytext">
6966 <p>some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
6970 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6971 <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>
6972 <div class="gallerytext">
6980 gallery (with showfilename option)
6982 <gallery showfilename>
6983 File:Nonexistant.jpg|caption
6984 File:Nonexistant.jpg
6985 image:foobar.jpg|some '''caption''' [[Main Page]]
6989 <ul class="gallery">
6990 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6991 <div style="height: 150px;">Nonexistant.jpg</div>
6992 <div class="gallerytext">
6993 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
6998 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6999 <div style="height: 150px;">Nonexistant.jpg</div>
7000 <div class="gallerytext">
7001 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7005 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7006 <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>
7007 <div class="gallerytext">
7008 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7009 some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
7013 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7014 <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>
7015 <div class="gallerytext">
7016 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7025 Gallery (with namespace-less filenames)
7028 File:Nonexistant.jpg
7034 <ul class="gallery">
7035 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7036 <div style="height: 150px;">Nonexistant.jpg</div>
7037 <div class="gallerytext">
7040 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7041 <div style="height: 150px;">Nonexistant.jpg</div>
7042 <div class="gallerytext">
7045 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7046 <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>
7047 <div class="gallerytext">
7050 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7051 <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>
7052 <div class="gallerytext">
7060 HTML Hex character encoding (spells the word "JavaScript")
7062 JavaScript
7064 <p>JavaScript
7069 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7073 <p>&#xsee;&#XSEE;
7078 HTML Hex character encoding mixed case
7087 __FORCETOC__ override
7099 ISBN 978-0-1234-56 789
7101 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7106 ISBN followed by 5 spaces
7117 ISBN ISBN 1234567890
7119 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7124 Bug 22905: <abbr> followed by ISBN followed by </a>
7126 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7128 <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>
7137 <p>RFC <a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc1234">RFC 1234</a>
7142 Double RFC with a wiki link
7146 <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>
7155 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc983">RFC 983</a> 987
7160 Centre-aligned image
7162 [[Image:foobar.jpg|centre]]
7164 <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>
7171 [[Image:foobar.jpg|none]]
7173 <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>
7178 Width + Height sized image (using px) (height is ignored)
7180 [[Image:foobar.jpg|640x480px]]
7182 <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>
7187 Width-sized image (using px, no following whitespace)
7189 [[Image:foobar.jpg|640px]]
7191 <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>
7196 Width-sized image (using px, with following whitespace - test regression from r39467)
7198 [[Image:foobar.jpg|640px ]]
7200 <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>
7205 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7207 [[Image:foobar.jpg| 640px]]
7209 <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>
7214 Another italics / bold test
7222 # Note the results may be incorrect, as parserTest output included this:
7223 # XML error: Mismatched tag at byte 6120:
7224 # ...<dd> </dt></dl> </dd...
7232 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7243 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7245 Images with the "|" character in the comment
7247 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7249 <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>
7254 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7256 <html><script>alert(1);</script></html>
7258 <p><html><script>alert(1);</script></html>
7263 HTML with raw HTML ($wgRawHtml==true)
7267 <html><script>alert(1);</script></html>
7269 <p><script>alert(1);</script>
7274 Parents of subpages, one level up
7276 subpage title=[[Subpage test/L1/L2/L3]]
7280 <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>
7286 Parents of subpages, one level up, not named
7288 subpage title=[[Subpage test/L1/L2/L3]]
7292 <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>
7299 Parents of subpages, two levels up
7301 subpage title=[[Subpage test/L1/L2/L3]]
7307 <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
7308 </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>
7313 Parents of subpages, two levels up, without trailing slash or name.
7315 subpage title=[[Subpage test/L1/L2/L3]]
7324 Parents of subpages, two levels up, with lots of extra trailing slashes.
7326 subpage title=[[Subpage test/L1/L2/L3]]
7330 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7335 Definition list code coverage
7341 <dl><dt> title  </dt><dd> def
7342 </dd><dt> title </dt><dd> def
7343 </dd><dt>title</dt><dd> def
7349 Don't fall for the self-closing div
7351 <div>hello world</div/>
7353 <div>hello world</div>
7362 <p>[[:Template:Msg]]
7371 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7375 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7377 Always escape literal '>' in output, not just after '<'
7391 <p>This is a test template
7392 This is a test template
7404 Inclusion of !userCanEdit() content
7408 <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>
7414 Out-of-order TOC heading levels
7423 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7425 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7427 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7428 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7431 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7433 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7434 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7439 <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>
7440 <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>
7441 <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>
7442 <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>
7443 <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>
7444 <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>
7450 ISBN with a dummy number
7460 ISBN with space-delimited number
7464 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7470 ISBN with multiple spaces, no number
7489 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7490 </p><p>ISBN 12345678901
7496 ISBN with trailing year (bug 8110)
7498 ISBN 1-234-56789-0 - 2006
7500 ISBN 1 234 56789 0 - 2006
7502 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7503 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7511 {{anchorencode:foo bar©#%n}}
7513 <p>foo_bar.C2.A9.23.25n
7518 anchorencode trims spaces
7520 {{anchorencode: __pretty__please__}}
7527 anchorencode deals with links
7529 {{anchorencode: [[hello|world]] [[hi]]}}
7536 anchorencode deals with templates
7538 {{anchorencode: {{Foo}} }}
7545 anchorencode encodes like the TOC generator: (bug 18431)
7547 === _ +:.3A%3A&&]] ===
7548 {{anchorencode: _ +:.3A%3A&&]] }}
7551 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7552 <p>.2B:.3A.253A.26.26.5D.5D
7556 # Expected output in the following test is not necessarily expected (there
7557 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7558 # only testing for well-formedness.
7560 Bug 6200: blockquotes and paragraph formatting
7580 Bug 8293: Use of center tag ruins paragraph formatting
7602 ### Language variants related tests
7605 Self-link in language variants
7607 title=[[Dunav]] language=sr
7609 Both [[Dunav]] and [[Дунав]] are names for this river.
7611 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7617 Link to pages in language variants
7621 Main Page can be written as [[Маин Паге]]
7623 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7629 Multiple links to pages in language variants
7633 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7635 <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>.
7641 Simple template in language variants
7647 <p>This is a test template
7653 Template with explicit namespace in language variants
7659 <p>This is a test template
7665 Basic test for template parameter in language variants
7669 {{парамтест|param=foo}}
7671 <p>This is a test template with parameter foo
7677 Simple category in language variants
7681 [[Category:МедиаWики Усер'с Гуиде]]
7683 <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>
7688 Stripping -{}- tags (language variants)
7692 Latin proverb: -{Ne nuntium necare}-
7694 <p>Latin proverb: Ne nuntium necare
7700 Prevent conversion with -{}- tags (language variants)
7702 language=sr variant=sr-ec
7704 Latinski: -{Ne nuntium necare}-
7706 <p>Латински: Ne nuntium necare
7712 Prevent conversion of text with -{}- tags (language variants)
7714 language=sr variant=sr-ec
7716 Latinski: -{Ne nuntium necare}-
7718 <p>Латински: Ne nuntium necare
7724 Prevent conversion of links with -{}- tags (language variants)
7726 language=sr variant=sr-ec
7730 <p><a href="/wiki/Main_Page">Main Page</a>
7736 -{}- tags within headlines (within html for parserConvert())
7738 language=sr variant=sr-ec
7742 <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>
7748 Explicit definition of language variant alternatives
7750 language=zh variant=zh-tw
7752 -{zh:China;zh-tw:Taiwan}-, not China
7754 <p>Taiwan, not China
7760 Explicit session-wise language variant mapping (A flag and - flag)
7762 language=zh variant=zh-tw
7764 Taiwan is not China.
7765 But -{A|zh:China;zh-tw:Taiwan}- is China,
7766 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
7767 and -{China}- is China.
7769 <p>Taiwan is not China.
7770 But Taiwan is Taiwan,
7771 (This should be stripped!)
7777 Explicit session-wise language variant mapping (H flag for hide)
7779 language=zh variant=zh-tw
7781 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
7784 <p>(This should be stripped!)
7790 Adding explicit conversion rule for title (T flag)
7792 language=zh variant=zh-tw showtitle
7794 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7797 <p>Should be stripped!
7802 Testing that changing the language variant here in the tests actually works
7804 language=zh variant=zh showtitle
7806 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7809 <p>Should be stripped!
7814 Bug 24072: more test on conversion rule for title
7816 language=zh variant=zh-tw showtitle
7818 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7819 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
7822 <p>This should be stripped!
7823 This won't take interferes with the title rule.
7828 Raw output of variant escape tags (R flag)
7830 language=zh variant=zh-tw
7832 Raw: -{R|zh:China;zh-tw:Taiwan}-
7834 <p>Raw: zh:China;zh-tw:Taiwan
7839 Nested using of manual convert syntax
7841 language=zh variant=zh-hk
7843 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
7845 <p>Nested: Hello Hong Kong!
7850 Do not convert roman numbers to language variants
7852 language=sr variant=sr-ec
7856 <p>Фридрих IV је цар.
7861 Unclosed language converter markup "-{"
7872 Don't convert raw rule "-{R|=>}-" to "=>"
7889 Bug 529: Uncovered bullet
7900 Bug 529: Uncovered table already at line-start
7927 Bug 529: Uncovered bullet in parser function result
7929 * Foo {{lc:{{bullet}} }}
7938 Bug 5678: Double-parsed template argument
7940 {{lc:{{{1}}}|hello}}
7947 Bug 5678: Double-parsed template invocation
7949 {{lc:{{paramtest {{!}} param = hello }} }}
7951 <p>{{paramtest | param = hello }}
7956 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
7982 Morwen/13: Unclosed link followed by heading
7989 <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>
7994 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8001 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8006 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8013 <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>
8028 Paragraphs inside divs (no extra line breaks)
8040 Paragraphs inside divs (extra line break on open)
8055 Paragraphs inside divs (extra line break on close)
8070 Paragraphs inside divs (extra line break on open and close)
8087 Nesting tags, paragraphs on lines which begin with <div>
8091 <div></div><strong>A
8100 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8102 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8106 <blockquote>Line one
8108 Line two</blockquote>
8110 <blockquote>Line one
8111 Line two</blockquote>
8116 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8123 Line two</blockquote>
8128 Line two</blockquote>
8133 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8137 <blockquote>Line one
8142 <blockquote>Line one
8150 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8169 Paragraphs inside blockquotes/divs (no extra line breaks)
8171 <blockquote><div>Line one
8173 Line two</div></blockquote>
8175 <blockquote><div>Line one
8176 Line two</div></blockquote>
8181 Paragraphs inside blockquotes/divs (extra line break on open)
8186 Line two</div></blockquote>
8191 Line two</div></blockquote>
8196 Paragraphs inside blockquotes/divs (extra line break on close)
8198 <blockquote><div>Line one
8203 <blockquote><div>Line one
8211 Paragraphs inside blockquotes/divs (extra line break on open and close)
8228 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8230 wgLinkHolderBatchSize=0
8236 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw">meatball:1</a>
8237 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw">meatball:2</a>
8238 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw">meatball:3</a>
8243 Free external link invading image caption
8245 [[Image:Foobar.jpg|thumb|http://x|hello]]
8247 <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>
8252 Bug 15196: localised external link numbers
8256 [http://en.wikipedia.org/]
8258 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8263 Multibyte character in padleft
8265 {{padleft:-Hello|7|Æ}}
8272 Multibyte character in padright
8274 {{padright:Hello-|7|Æ}}
8287 <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>
8292 formatdate parser function
8294 {{#formatdate:2009-03-24}}
8296 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8301 formatdate parser function, with default format
8303 {{#formatdate:2009-03-24|mdy}}
8305 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8310 Linked date with autoformatting disabled
8312 wgUseDynamicDates=false
8316 <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>
8321 Spacing of numbers in formatted dates
8323 {{#formatdate:January 15}}
8325 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8330 Spacing of numbers in formatted dates (linked)
8332 wgUseDynamicDates=true
8336 <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>
8349 Edit comment with link
8353 I like the [[Main Page]] a lot
8355 I like the <a href="/wiki/Main_Page">Main Page</a> a lot
8359 Edit comment with link and link text
8363 I like the [[Main Page|best pages]] a lot
8365 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8369 Edit comment with link and link text with suffix
8373 I like the [[Main Page|best page]]s a lot
8375 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8379 Edit comment with section link (non-local, eg in history list)
8381 comment title=[[Main Page]]
8383 /* External links */ removed bogus entries
8385 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
8389 Edit comment with section link (local, eg in diff view)
8391 comment local title=[[Main Page]]
8393 /* External links */ removed bogus entries
8395 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
8399 Edit comment with subpage link (bug 14080)
8403 title=[[Subpage test]]
8405 Poked at a [[/subpage]] here...
8407 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8411 Edit comment with subpage link and link text (bug 14080)
8415 title=[[Subpage test]]
8417 Poked at a [[/subpage|neat little page]] here...
8419 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8423 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8426 title=[[Subpage test]]
8428 Poked at a [[/subpage]] here...
8430 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8434 Edit comment with bare anchor link (local, as on diff)
8442 <a href="#section">#section</a>
8446 Edit comment with bare anchor link (non-local, as on history)
8453 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8457 Anchor starting with underscore
8461 <p><a href="#_ref">One</a>
8466 Id starting with underscore
8468 <div id="_ref"></div>
8470 <div id="_ref"></div>
8475 Space normalisation on autocomment (bug 22784)
8480 /* __hello__world__ */
8482 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
8486 percent-encoding and + signs in comments (Bug 26410)
8490 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8492 <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>
8496 Bad images - basic functionality
8503 Bad images - bug 16039: text after bad image disappears
8515 Verify that displaytitle works (bug #22501) no displaytitle
8519 wgAllowDisplayTitle=true
8520 wgRestrictDisplayTitle=false
8522 this is not the the title
8525 <p>this is not the the title
8530 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8535 wgAllowDisplayTitle=true
8536 wgRestrictDisplayTitle=false
8538 this is not the the title
8539 {{DISPLAYTITLE:whatever}}
8542 <p>this is not the the title
8547 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8552 wgAllowDisplayTitle=true
8553 wgRestrictDisplayTitle=true
8555 this is not the the title
8556 {{DISPLAYTITLE:whatever}}
8559 <p>this is not the the title
8564 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8569 wgAllowDisplayTitle=true
8570 wgRestrictDisplayTitle=true
8572 this is not the the title
8573 {{DISPLAYTITLE:screen}}
8576 <p>this is not the the title
8581 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8586 wgAllowDisplayTitle=false
8588 this is not the the title
8589 {{DISPLAYTITLE:screen}}
8592 <p>this is not the the title
8593 <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>
8598 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8603 wgAllowDisplayTitle=false
8605 this is not the the title
8608 <p>this is not the the title
8613 preload: check <noinclude> and <includeonly>
8617 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8623 preload: check <onlyinclude>
8627 Goodbye <onlyinclude>Hello world</onlyinclude>
8633 preload: can pass tags through if we want to
8637 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8639 <includeonly>Hello world</includeonly>
8643 preload: check that it doesn't try to do tricks
8647 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8649 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8653 Play a bit with r67090 and bug 3158
8657 <div style="width:50% !important"> </div>
8658 <div style="width:50% !important"> </div>
8659 <div style="width:50% !important"> </div>
8660 <div style="border : solid;"> </div>
8662 <div style="width:50% !important"> </div>
8663 <div style="width:50% !important"> </div>
8664 <div style="width:50% !important"> </div>
8665 <div style="border : solid;"> </div>
8670 HTML5 data attributes
8672 <span data-foo="bar">Baz</span>
8673 <p data-abc-def_hij="">Quuz</p>
8675 <p><span data-foo="bar">Baz</span>
8677 <p data-abc-def_hij="">Quuz</p>
8682 percent-encoding and + signs in internal links (Bug 26410)
8684 [[User:+%]] [[Page+title%]]
8685 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
8686 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
8687 [[%33%45]] [[%33%45+]]
8689 <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>
8690 <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>
8691 <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>
8692 <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>
8697 Special characters in embedded file links (bug 27679)
8699 [[File:Contains & ampersand.jpg]]
8700 [[File:Does not exist.jpg|Title with & ampersand]]
8702 <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>
8703 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
8720 Bug#542 Link text shouldn't be duplicated in title attributes
8722 [[A]] [[a]] [[Ä]] [[ä]]
8724 <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>
8734 Try for 100% code coverage