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
1568 Arbitrary whitespace should not be prepended
1610 Plain link, capitalized
1614 <p><a href="/wiki/Main_Page">Main Page</a>
1619 Plain link, uncapitalized
1623 <p><a href="/wiki/Main_Page">main Page</a>
1630 [[Main Page|The Main Page]]
1632 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1641 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1646 Broken link with fragment
1648 [[Zigzagzogzagzig#zug]]
1650 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1655 Special page link with fragment
1657 [[Special:Version#anchor]]
1659 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1664 Nonexistent special page link with fragment
1666 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1668 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1675 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1677 <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>
1684 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1686 <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>!!!
1691 Link with 3 brackets
1700 Piped link with 3 brackets
1702 [[[main page|the main page]]]
1704 <p>[[[main page|the main page]]]
1709 Link with multiple pipes
1711 [[Main Page|The|Main|Page]]
1713 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1720 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1722 <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>
1727 Piped link to namespace
1729 [[Meta:Disclaimers|The disclaimers]]
1731 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1738 [[Usually caused by a typo (oops}]]
1740 <p>[[Usually caused by a typo (oops}]]
1745 Link containing % (not as a hex sequence)
1749 <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>
1754 Link containing % as a single hex sequence interpreted to char
1758 <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>
1763 Link containing % as a double hex sequence interpreted to hex sequence
1767 <p>[[7%2525 Solution]]
1772 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1773 Example for such a section: == < ==
1775 [[%23%3c]][[%23%3e]]
1777 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1782 Link containing "<#" and ">#" as a hex sequences
1784 [[%3c%23]][[%3e%23]]
1786 <p>[[%3c%23]][[%3e%23]]
1791 Link containing double-single-quotes '' (bug 4598)
1793 [[Lista d''e paise d''o munno]]
1795 <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>
1800 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1802 Some [[Link|pretty ''italics'' and stuff]]!
1804 <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>!
1809 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1811 ''Some [[Link|pretty ''italics'' and stuff]]!
1813 <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>
1818 Link with double quotes in title part (literal) and alternate part (interpreted)
1820 [[File:Denys Savchenko ''Pentecoste''.jpg]]
1824 [[''Pentecoste''|Pentecoste]]
1826 [[''Pentecoste''|''Pentecoste'']]
1828 <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>
1829 </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>
1830 </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>
1831 </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>
1838 [[http://www.example.com]]
1840 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
1844 # I'm fairly sure the expected result here is wrong.
1845 # We want these to be URL links, not pseudo-pages with URLs for titles....
1846 # However the current output is also pretty screwy.
1849 # I'm changing it to match the current output--it arguably makes more
1850 # sense in the light of the test above. Old expected result was:
1851 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1853 # But I think this test is bordering on "garbage in, garbage out" anyway.
1858 Piped link to URL: [[http://www.example.com|an example URL]]
1860 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
1865 BUG 2: [[page|http://url/]] should link to page, not http://url/
1867 [[Main Page|http://url/]]
1869 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1874 BUG 337: Escaped self-links should be bold
1878 [[Bug462]] [[Bug462]]
1880 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1885 Self-link to section should not be bold
1889 [[Main Page#section]]
1891 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1902 Self-link to numeric title
1908 <p><strong class="selflink">0</strong>
1913 Link to numeric-equivalent title
1919 <p><a href="/wiki/00">00</a>
1924 <nowiki> inside a link
1926 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1928 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1933 Non-breaking spaces in title
1935 [[ Main Page ]]
1937 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
1942 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
1948 <p><b><a href="/wiki/Main_Page">Main Page</a></b>
1953 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
1959 <p><i><a href="/wiki/Main_Page">Main Page</a></i>
1964 Internal link with en linktrail: no apostrophes (bug 27473)
1970 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
1975 Internal link with ca linktrail with apostrophes (bug 27473)
1981 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
1986 Internal link with kaa linktrail with apostrophes (bug 27473)
1992 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
1997 ### Interwiki links (see maintenance/interwiki.sql)
2001 Inline interwiki link
2003 [[MeatBall:SoftSecurity]]
2005 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw">MeatBall:SoftSecurity</a>
2010 Inline interwiki link with empty title (bug 2372)
2014 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw">MeatBall:</a>
2019 Interwiki link encoding conversion (bug 1636)
2021 *[[Wikipedia:ro:Olteniţa]]
2022 *[[Wikipedia:ro:Olteniţa]]
2024 <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>
2025 </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>
2031 Interwiki link with fragment (bug 2130)
2033 [[MeatBall:SoftSecurity#foo]]
2035 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2050 Double interlanguage link
2061 Interlanguage link, with prefix links
2073 Double interlanguage link, with prefix links (bug 8897)
2100 Incorrecly removing closing slashes from correctly formed XHTML
2102 <br style="clear:both;" />
2104 <p><br style="clear:both;" />
2109 Failing to transform badly formed HTML into correct XHTML
2115 <p><br clear="left" />
2116 <br clear="right" />
2122 Horizontal ruler (should it add that extra space?)
2136 ### Block-level elements
2159 <ol><li>Numbered list
2176 ***#Number on level 4
2178 **#Number on level 3
2179 **#Number on level 3
2184 <ol><li> with numbers
2186 <ul><li> and bullets
2188 <ol><li> and numbers
2190 </li><li>bullets again
2191 <ul><li>bullet level 2
2192 <ul><li>bullet level 3
2193 <ol><li>Number on level 4
2196 </li><li>bullet level 2
2197 <ol><li>Number on level 3
2198 </li><li>Number on level 3
2201 <ol><li>number level 2
2209 List items are not parsed correctly following a <pre> block (bug 785)
2215 <ul><li> <pre>foo</pre>
2216 </li><li> <pre>bar</pre>
2227 Magic Word: {{CURRENTDAY}}
2236 Magic Word: {{CURRENTDAY2}}
2245 Magic Word: {{CURRENTDAYNAME}}
2254 Magic Word: {{CURRENTDOW}}
2263 Magic Word: {{CURRENTMONTH}}
2272 Magic Word: {{CURRENTMONTHABBREV}}
2274 {{CURRENTMONTHABBREV}}
2281 Magic Word: {{CURRENTMONTHNAME}}
2283 {{CURRENTMONTHNAME}}
2290 Magic Word: {{CURRENTMONTHNAMEGEN}}
2292 {{CURRENTMONTHNAMEGEN}}
2299 Magic Word: {{CURRENTTIME}}
2308 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2317 Magic Word: {{CURRENTYEAR}}
2326 Magic Word: {{FULLPAGENAME}}
2328 title=[[User:Ævar Arnfjörð Bjarmason]]
2332 <p>User:Ævar Arnfjörð Bjarmason
2337 Magic Word: {{FULLPAGENAMEE}}
2339 title=[[User:Ævar Arnfjörð Bjarmason]]
2343 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2348 Magic Word: {{NAMESPACE}}
2350 title=[[User:Ævar Arnfjörð Bjarmason]]
2359 Magic Word: {{NAMESPACEE}}
2361 title=[[User:Ævar Arnfjörð Bjarmason]]
2370 Magic Word: {{NUMBEROFFILES}}
2379 Magic Word: {{PAGENAME}}
2381 title=[[User:Ævar Arnfjörð Bjarmason]]
2385 <p>Ævar Arnfjörð Bjarmason
2390 Magic Word: {{PAGENAME}} with metacharacters
2392 title=[['foo & bar = baz']]
2396 <p><i>'foo & bar = baz'</i>
2401 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2403 title=[[*RFC 1234 http://example.com/]]
2407 <p>*RFC 1234 http://example.com/
2412 Magic Word: {{PAGENAMEE}}
2414 title=[[User:Ævar Arnfjörð Bjarmason]]
2418 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2423 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2425 title=[[*RFC 1234 http://example.com/]]
2429 <p>*RFC_1234_http://example.com/
2434 Magic Word: {{REVISIONID}}
2443 Magic Word: {{SCRIPTPATH}}
2452 Magic Word: {{SERVER}}
2456 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2461 Magic Word: {{SERVERNAME}}
2470 Magic Word: {{SITENAME}}
2479 Namespace 1 {{ns:1}}
2488 Namespace 1 {{ns:01}}
2497 Namespace 0 {{ns:0}} (bug 4783)
2505 Namespace 0 {{ns:00}} (bug 4783)
2513 Namespace -1 {{ns:-1}}
2522 Namespace User {{ns:User}}
2531 Namespace User talk {{ns:User_talk}}
2540 Namespace User talk {{ns:uSeR tAlK}}
2549 Namespace File {{ns:File}}
2558 Namespace File {{ns:Image}}
2567 Namespace (lang=de) Benutzer {{ns:User}}
2578 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2584 <p>Benutzer Diskussion
2592 {{urlencode:hi world?!}}
2593 {{urlencode:hi world?!|WIKI}}
2594 {{urlencode:hi world?!|PATH}}
2595 {{urlencode:hi world?!|QUERY}}
2608 Magic links: internal link to RFC (bug 479)
2612 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2617 Magic links: RFC (bug 479)
2621 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc822">RFC 822</a>
2626 Magic links: ISBN (bug 1937)
2630 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2635 Magic links: PMID incorrectly converts space to underscore
2639 <p><a class="external mw-magiclink-pmid" href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2648 Nonexistent template
2650 {{thistemplatedoesnotexist}}
2652 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2659 This is a test template
2667 <p>This is a test template
2672 Template with explicit namespace
2676 <p>This is a test template
2684 This is a test template with parameter {{{param}}}
2690 {{paramtest|param=foo}}
2692 <p>This is a test template with parameter foo
2697 Template:paramtestnum
2703 Template unnamed parameter
2705 {{paramtestnum|Main Page|the main page}}
2707 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2712 Template:templatesimple
2718 Template:templateredirect
2720 #redirect [[Template:templatesimple]]
2724 Template:templateasargtestnum
2730 Template:templateasargtest
2732 {{template{{{templ}}}}}
2736 Template:templateasargtest2
2742 Template with template name as unnamed argument
2744 {{templateasargtestnum|templatesimple}}
2751 Template with template name as argument
2753 {{templateasargtest|templ=simple}}
2760 Template with template name as argument (2)
2762 {{templateasargtest2|templ=templatesimple}}
2769 Template:templateasargtestdefault
2771 {{{{{templ|templatesimple}}}}}
2781 Template with default value
2783 {{templateasargtestdefault}}
2790 Template with default value (value set)
2792 {{templateasargtestdefault|templ=templa}}
2801 {{templateredirect}}
2808 Template with argument in separate line
2810 {{ templateasargtest |
2818 Template with complex template as argument
2821 param ={{ templateasargtest |
2824 <p>This is a test template with parameter (test)
2829 Template with thumb image (with link in description)
2832 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2834 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>
2839 Template:complextemplate
2841 {{{1}}} {{paramtest|
2842 param ={{{param}}}}}
2846 Template with complex arguments
2849 param ={{ templateasargtest |
2850 templ = simple }}|[[Template:complextemplate|link]]}}
2852 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2857 BUG 553: link with two variables in a piped link
2860 |[[{{{1}}}|{{{2}}}]]
2865 <td>[[{{{1}}}|{{{2}}}]]
2873 Magic variable as template parameter
2875 {{paramtest|param={{SITENAME}}}}
2877 <p>This is a test template with parameter MediaWiki
2884 [[{{{param}}}|link]]
2888 Template parameter as link source
2890 {{linktest|param=Main Page}}
2892 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2900 including another template, {{paramtest|param={{{arg}}}}}
2904 Template passing argument to another template
2906 {{paramtest2|arg='hmm'}}
2908 <p>including another template, This is a test template with parameter 'hmm'
2919 Template as link source
2923 <p><a href="/wiki/Main_Page">Main Page</a>
2941 Template infinite loop
2945 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1">Template:Loop1</a></span>
2950 Template from main namespace
2969 BUG 529: Template with table, not included at beginning of line
2993 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3018 BUG 41: Template parameters shown as broken links
3030 ''None'' of '''this''' should be
3032 but rather passed unmodified
3036 # hmm, fix this or just deprecate msgnw and document its behavior?
3042 {{msgnw:MSGNW test}}
3044 <p>''None'' of '''this''' should be
3046 but rather passed unmodified
3054 {{int:youhavenewmessages|lots of money|not!}}
3056 <p>You have lots of money (not!).
3063 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3067 <includeonly> and <noinclude> being included
3078 <onlyinclude>Foo</onlyinclude>bar
3082 <onlyinclude> being included
3094 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3098 <onlyinclude> and <includeonly> being included
3107 <includeonly> and <noinclude> on a page
3109 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3116 <onlyinclude> on a page
3118 <onlyinclude>Foo</onlyinclude>bar
3125 Template:Includeonly section
3128 ==Includeonly section==
3134 Bug 6563: Edit link generation for section shown by <includeonly>
3136 {{includeonly section}}
3138 <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>
3139 <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>
3143 # Uses same input as the contents of [[Template:Includeonly section]]
3145 Bug 6563: Section extraction for section shown by <includeonly>
3150 ==Includeonly section==
3158 Bug 6563: Edit link generation for section suppressed by <includeonly>
3161 ==Includeonly section==
3165 <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>
3170 Bug 6563: Section extraction for section suppressed by <includeonly>
3175 ==Includeonly section==
3183 ### Pre-save transform tests
3186 pre-save transform: subst:
3192 This is a test template
3196 pre-save transform: normal template
3206 pre-save transform: nonexistent template
3210 {{thistemplatedoesnotexist}}
3212 {{thistemplatedoesnotexist}}
3217 pre-save transform: subst magic variables
3226 # This is bug 89, which I fixed. -- wtm
3228 pre-save transform: subst: templates with parameters
3232 {{subst:paramtest|param="something else"}}
3234 This is a test template with parameter "something else"
3240 <nowiki>'''not wiki'''</nowiki>
3244 pre-save transform: nowiki in subst (bug 1188)
3248 {{subst:nowikitest}}
3250 <nowiki>'''not wiki'''</nowiki>
3255 Template:commenttest
3257 This template has <!-- a comment --> in it.
3261 pre-save transform: comment in subst (bug 1936)
3265 {{subst:commenttest}}
3267 This template has <!-- a comment --> in it.
3271 pre-save transform: unclosed tag
3275 <nowiki>'''not wiki'''
3277 <nowiki>'''not wiki'''
3281 pre-save transform: mixed tag case
3285 <NOwiki>'''not wiki'''</noWIKI>
3287 <NOwiki>'''not wiki'''</noWIKI>
3291 pre-save transform: unclosed comment in <nowiki>
3295 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3297 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3303 <span onmouseover="alert('crap')">Oh no</span>
3307 (confirming safety of fix for subst bug 1936)
3309 {{Template:dangerous}}
3311 <p><span>Oh no</span>
3316 pre-save transform: comment containing gallery (bug 5024)
3320 <!-- <gallery>data</gallery> -->
3322 <!-- <gallery>data</gallery> -->
3326 pre-save transform: comment containing extension
3330 <!-- <tag>data</tag> -->
3332 <!-- <tag>data</tag> -->
3336 pre-save transform: comment containing nowiki
3340 <!-- <nowiki>data</nowiki> -->
3342 <!-- <nowiki>data</nowiki> -->
3346 pre-save transform: <noinclude> in subst (bug 3298)
3356 pre-save transform: <onlyinclude> in subst (bug 3298)
3368 {{<includeonly>subst:</includeonly>Includes}}
3372 Template:SafeSubstTest
3374 {{<includeonly>safesubst:</includeonly>Includes}}
3378 bug 22297: safesubst: works during PST
3382 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3388 bug 22297: safesubst: works during normal parse
3397 subst: does not work during normal parse
3401 <p>{{subst:Includes}}
3406 pre-save transform: context links ("pipe trick")
3410 [[Article (context)|]]
3413 [[Bar:Article (context)|]]
3414 [[:Bar:Article (context)|]]
3416 [[|Article (context)]]
3420 [[Article (context)|Article]]
3421 [[Bar:Article|Article]]
3422 [[:Bar:Article|Article]]
3423 [[Bar:Article (context)|Article]]
3424 [[:Bar:Article (context)|Article]]
3426 [[Article (context)]]
3427 [[Bar:X (Y) Z|X (Y) Z]]
3428 [[:Bar:X (Y) Z|X (Y) Z]]
3432 pre-save transform: context links ("pipe trick") with interwiki prefix
3436 [[interwiki:Article|]]
3437 [[:interwiki:Article|]]
3438 [[interwiki:Bar:Article|]]
3439 [[:interwiki:Bar:Article|]]
3441 [[interwiki:Article|Article]]
3442 [[:interwiki:Article|Article]]
3443 [[interwiki:Bar:Article|Bar:Article]]
3444 [[:interwiki:Bar:Article|Bar:Article]]
3448 pre-save transform: context links ("pipe trick") with parens in title
3450 pst title=[[Somearticle (context)]]
3454 [[Article (context)|Article]]
3458 pre-save transform: context links ("pipe trick") with comma in title
3460 pst title=[[Someplace, Somewhere]]
3463 [[Otherplace, Elsewhere|]]
3464 [[Otherplace, Elsewhere, Anywhere|]]
3466 [[Otherplace, Somewhere|Otherplace]]
3467 [[Otherplace, Elsewhere|Otherplace]]
3468 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3472 pre-save transform: context links ("pipe trick") with parens and comma
3474 pst title=[[Someplace (IGNORED), Somewhere]]
3477 [[Otherplace (place), Elsewhere|]]
3479 [[Otherplace, Somewhere|Otherplace]]
3480 [[Otherplace (place), Elsewhere|Otherplace]]
3484 pre-save transform: context links ("pipe trick") with comma and parens
3486 pst title=[[Who, me? (context)]]
3489 [[Me, Myself, and I (1937 song)|]]
3491 [[Yes, you. (context)|Yes, you.]]
3492 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3496 pre-save transform: context links ("pipe trick") with namespace
3498 pst title=[[Ns:Somearticle]]
3502 [[Ns:Article|Article]]
3506 pre-save transform: context links ("pipe trick") with namespace and parens
3508 pst title=[[Ns:Somearticle (context)]]
3512 [[Ns:Article (context)|Article]]
3516 pre-save transform: context links ("pipe trick") with namespace and comma
3518 pst title=[[Ns:Somearticle, Context, Whatever]]
3522 [[Ns:Article, Context, Whatever|Article]]
3526 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3528 pst title=[[Ns:Somearticle, Context (context)]]
3532 [[Ns:Article (context)|Article]]
3536 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3538 pst title=[[Ns:Somearticle (IGNORED), Context]]
3542 [[Ns:Article, Context|Article]]
3547 ### Message transform tests
3550 message transform: magic variables
3560 message transform: should not transform wiki markup
3570 message transform: <noinclude> in transcluded template (bug 4926)
3580 message transform: <onlyinclude> in transcluded template (bug 4926)
3590 {{#special:}} page name, known
3594 {{#special:Recentchanges}}
3596 Special:RecentChanges
3600 {{#special:}} page name with subpage, known
3604 {{#special:Recentchanges/param}}
3606 Special:RecentChanges/param
3610 {{#special:}} page name, unknown
3614 {{#special:foobarnonexistent}}
3616 No such special page
3625 [[Image:foobar.jpg]]
3627 <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>
3634 [[Image:foobar.jpg|right]]
3636 <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>
3641 Simple image (using File: namespace, now canonical)
3645 <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>
3652 [[Image:foobar.jpg|right|Caption text]]
3654 <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>
3659 Image with link parameter, wiki target
3661 [[Image:foobar.jpg|link=Target page]]
3663 <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>
3668 Image with link parameter, URL target
3670 [[Image:foobar.jpg|link=http://example.com/]]
3672 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3677 Image with link parameter, wgExternalLinkTarget
3679 [[Image:foobar.jpg|link=http://example.com/]]
3681 wgExternalLinkTarget='foobar'
3683 <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>
3688 Image with link parameter, wgExternalLinkTarget, unnamed parameter
3690 [[Image:foobar.jpg|link=http://example.com/|Title]]
3692 wgExternalLinkTarget='foobar'
3694 <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>
3699 Image with empty link parameter
3701 [[Image:foobar.jpg|link=]]
3703 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3708 Image with link parameter (wiki target) and unnamed parameter
3710 [[Image:foobar.jpg|link=Target page|Title]]
3712 <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>
3717 Image with link parameter (URL target) and unnamed parameter
3719 [[Image:foobar.jpg|link=http://example.com/|Title]]
3721 <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>
3726 Thumbnail image with link parameter
3728 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
3730 <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>
3735 Image with frame and link
3737 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3739 <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>
3744 Image with frame and link and explicit alt
3746 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3748 <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>
3753 Image with wiki markup in implicit alt
3755 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3757 <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>
3762 Image with wiki markup in explicit alt
3764 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3766 <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>
3771 Link to image page- image page normally doesn't exists, hence edit link
3772 Add test with existing image page
3773 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3777 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3782 bug 18784 Link to non-existent image page with caption should use caption as link text
3784 [[:Image:test|caption]]
3786 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
3791 Frameless image caption with a free URL
3793 [[Image:foobar.jpg|http://example.com]]
3795 <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>
3800 Thumbnail image caption with a free URL
3802 [[Image:foobar.jpg|thumb|http://example.com]]
3804 <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>
3809 Thumbnail image caption with a free URL and explicit alt
3811 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3813 <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>
3818 BUG 1887: A ISBN with a thumbnail
3820 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3822 <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>
3827 BUG 1887: A RFC with a thumbnail
3829 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3831 <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>
3836 BUG 1887: A mailto link with a thumbnail
3838 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3840 <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>
3844 # Pending resolution to bug 368
3846 BUG 648: Frameless image caption with a link
3848 [[Image:foobar.jpg|text with a [[link]] in it]]
3850 <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>
3855 BUG 648: Frameless image caption with a link (suffix)
3857 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3859 <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>
3864 BUG 648: Frameless image caption with an interwiki link
3866 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3868 <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>
3873 BUG 648: Frameless image caption with a piped interwiki link
3875 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3877 <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>
3882 Escape HTML special chars in image alt text
3884 [[Image:foobar.jpg|& < > "]]
3886 <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>
3891 BUG 499: Alt text should have Ӓ, not &1234;
3893 [[Image:foobar.jpg|♀]]
3895 <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>
3900 Broken image caption with link
3902 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3904 <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.
3909 Image caption containing another image
3911 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3913 <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>
3918 Image caption containing a newline
3920 [[Image:Foobar.jpg|This
3923 <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>
3929 Bug 3090: External links other than http: in image captions
3931 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3933 <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>
3940 #REDIRECT [[File:Barfoo.jpg]]
3946 [[Image:Barfoo.jpg]]
3948 <p><a href="/wiki/File:Barfoo.jpg">File:Barfoo.jpg</a>
3953 Missing image with uploads disabled
3957 [[Image:Foobaz.jpg]]
3959 <p><a href="/wiki/File:Foobaz.jpg">File:Foobaz.jpg</a>
3968 Subpage test/subpage
3976 subpage title=[[Subpage test]]
3980 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3985 Subpage noslash link
3987 subpage title=[[Subpage test]]
3991 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4000 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4005 BUG 561: {{/Subpage}}
4007 subpage title=[[Page]]
4011 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4019 Category:MediaWiki User's Guide
4027 [[:Category:MediaWiki User's Guide]]
4029 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide">Category:MediaWiki User's Guide</a>
4038 [[Category:MediaWiki User's Guide]]
4040 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4044 PAGESINCATEGORY invalid title fatal (r33546 fix)
4046 {{PAGESINCATEGORY:<bogus>}}
4053 ### Inter-language links
4056 Inter-language links
4062 [[zh:食品]]
4064 es:Alimento fr:Nourriture zh:食品
4071 Basic section headings
4078 ===Smaller headline===
4081 <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>
4084 <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>
4087 <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>
4093 Section headings with TOC
4096 === Subheadline 1 ===
4097 ===== Skipping a level =====
4098 ====== Skipping a level ======
4102 ===Another headline===
4104 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4106 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4108 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4110 <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>
4112 <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>
4119 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4121 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4126 <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>
4127 <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>
4128 <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>
4129 <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>
4130 <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>
4133 <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>
4137 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4139 Handling of sections up to level 6 and beyond
4142 == Level 2 Heading==
4143 === Level 3 Heading===
4144 ==== Level 4 Heading====
4145 ===== Level 5 Heading=====
4146 ====== Level 6 Heading======
4147 ======= Level 7 Heading=======
4148 ======== Level 8 Heading========
4149 ========= Level 9 Heading=========
4150 ========== Level 10 Heading==========
4152 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4154 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4156 <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>
4158 <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>
4160 <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>
4162 <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>
4164 <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>
4165 <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>
4166 <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>
4167 <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>
4168 <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>
4181 <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>
4182 <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>
4183 <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>
4184 <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>
4185 <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>
4186 <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>
4187 <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>
4188 <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>
4189 <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>
4190 <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>
4195 TOC regression (bug 9764)
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>
4210 <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>
4213 <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>
4216 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4218 <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>
4223 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
4224 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
4225 <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>
4226 <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>
4227 <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>
4228 <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>
4233 TOC with wgMaxTocLevel=3 (bug 6204)
4239 ==== title 1.1.1 ====
4244 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4246 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4248 <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>
4249 <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>
4252 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4254 <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>
4259 <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>
4260 <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>
4261 <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>
4262 <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>
4263 <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>
4264 <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>
4269 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4275 ====Section 1.1.1====
4276 ====Section 1.1.1.1====
4279 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4281 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4283 <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>
4286 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4289 <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>
4290 <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>
4291 <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>
4292 <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>
4293 <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>
4299 Resolving duplicate section names
4304 <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>
4305 <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>
4310 Resolving duplicate section names with differing case (bug 10721)
4315 <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>
4316 <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>
4328 Template with sections, __NOTOC__
4335 <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>
4336 <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>
4337 <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>
4338 <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>
4343 __NOEDITSECTION__ keyword
4349 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4350 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4355 Link inside a section heading
4357 ==Section with a [[Main Page|link]] in it==
4359 <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>
4364 TOC regression (bug 12077)
4371 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4373 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4375 <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>
4378 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4381 <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>
4382 <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>
4383 <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>
4388 BUG 1219 URL next to image (good)
4390 http://example.com [[Image:foobar.jpg]]
4392 <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>
4397 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4400 The line above must have a trailing space!
4403 But just in case it doesn't...
4405 <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>
4406 <p>The line above must have a trailing space!
4408 <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>
4409 <p>But just in case it doesn't...
4414 Header with special characters (bug 25462)
4416 The tooltips shall not show entities to the user (ie. be double escaped)
4433 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4435 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4437 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4438 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4439 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4440 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4441 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4444 <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>
4447 <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>
4450 <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>
4453 <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>
4456 <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>
4462 BUG 1219 URL next to image (broken)
4464 http://example.com[[Image:foobar.jpg]]
4466 <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>
4471 Bug 1186 news: in the middle of text
4473 http://en.wikinews.org/wiki/Wikinews:Workplace
4475 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4481 Namespaced link must have a title
4490 Namespaced link must have a title (bad fragment version)
4492 [[Project:#fragment]]
4494 <p>[[Project:#fragment]]
4500 div with no attributes
4502 <div>HTML rocks</div>
4504 <div>HTML rocks</div>
4509 div with double-quoted attribute
4511 <div id="rock">HTML rocks</div>
4513 <div id="rock">HTML rocks</div>
4518 div with single-quoted attribute
4520 <div id='rock'>HTML rocks</div>
4522 <div id="rock">HTML rocks</div>
4527 div with unquoted attribute
4529 <div id=rock>HTML rocks</div>
4531 <div id="rock">HTML rocks</div>
4536 div with illegal double attributes
4538 <div align="center" align="right">HTML rocks</div>
4540 <div align="right">HTML rocks</div>
4545 HTML multiple attributes correction
4547 <p class="error" class="awesome">Awesome!</p>
4549 <p class="awesome">Awesome!</p>
4554 Table multiple attributes correction
4557 !+ class="error" class="awesome"| status
4562 <th class="awesome">status
4572 <DIV ALIGN="center">HTML ROCKS</DIV>
4574 <div align="center">HTML ROCKS</div>
4580 text with amp in the middle of nowhere
4584 <p>Remember AT&T?
4589 text with character entity: eacute
4591 I always thought é was a cute letter.
4593 <p>I always thought é was a cute letter.
4598 text with undefined character entity: xacute
4600 I always thought &xacute; was a cute letter.
4602 <p>I always thought &xacute; was a cute letter.
4614 [[Media:Foobar.jpg]]
4616 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4621 Media link with text
4623 [[Media:Foobar.jpg|A neat file to look at]]
4625 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4629 # FIXME: this is still bad HTML tag nesting
4631 Media link with nasty text
4632 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4634 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4636 <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>
4641 Media link to nonexistent file (bug 1702)
4643 [[Media:No such.jpg]]
4645 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4650 Image link to nonexistent file (bug 1850 - good)
4652 [[Image:No such.jpg]]
4654 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4659 :Image link to nonexistent file (bug 1850 - bad)
4661 [[:Image:No such.jpg]]
4663 <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>
4670 Character reference normalization in link text (bug 1938)
4672 [[Main Page|this&that]]
4674 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4681 Test for unicode normalization
4683 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4687 (bug 19451) Links should refer to the normalized form.
4695 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4696 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4697 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4698 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4699 <a href="/wiki/%D7%90%D6%B7">אַ</a>
4704 Empty attribute crash test (bug 2067)
4706 <font color="">foo</font>
4708 <p><font color="">foo</font>
4713 Empty attribute crash test single-quotes (bug 2067)
4715 <font color=''>foo</font>
4717 <p><font color="">foo</font>
4722 Attribute test: equals, then nothing
4724 <font color=>foo</font>
4731 Attribute test: unquoted value
4733 <font color=x>foo</font>
4735 <p><font color="x">foo</font>
4740 Attribute test: unquoted but illegal value (hash)
4742 <font color=#x>foo</font>
4744 <p><font color="#x">foo</font>
4749 Attribute test: no value
4751 <font color>foo</font>
4753 <p><font color="color">foo</font>
4758 Bug 2095: link with three closing brackets
4762 <p><a href="/wiki/Main_Page">Main Page</a>]
4767 Bug 2095: link with pipe and three closing brackets
4771 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4776 Bug 2095: link with pipe and three closing brackets, version 2
4778 [[Main Page|[http://example.com/]]]
4780 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4790 Template:Dangerous attribute
4792 " onmouseover="alert(document.cookie)
4796 Template:Dangerous style attribute
4798 border-size: expression(alert(document.cookie))
4804 <div style="float: right; {{{1}}}">Magic div</div>
4808 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4810 <div title="{{test}}"></div>
4812 <div title="This is a test template"></div>
4817 Bug 2304: HTML attribute safety (dangerous template; 2309)
4819 <div title="{{dangerous attribute}}"></div>
4821 <div title=""></div>
4826 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4828 <div style="{{dangerous style attribute}}"></div>
4830 <div style="/* insecure input */"></div>
4835 Bug 2304: HTML attribute safety (safe parameter; 2309)
4837 {{div style|width: 200px}}
4839 <div style="float: right; width: 200px">Magic div</div>
4844 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4846 {{div style|width: expression(alert(document.cookie))}}
4848 <div style="/* insecure input */">Magic div</div>
4853 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4855 {{div style|"><script>alert(document.cookie)</script>}}
4857 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4862 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4864 {{div style|" ><script>alert(document.cookie)</script>}}
4866 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4871 Bug 2304: HTML attribute safety (link)
4873 <div title="[[Main Page]]"></div>
4875 <div title="[[Main Page]]"></div>
4880 Bug 2304: HTML attribute safety (italics)
4882 <div title="''foobar''"></div>
4884 <div title="''foobar''"></div>
4889 Bug 2304: HTML attribute safety (bold)
4891 <div title="'''foobar'''"></div>
4893 <div title="'''foobar'''"></div>
4899 Bug 2304: HTML attribute safety (ISBN)
4901 <div title="ISBN 1234567890"></div>
4903 <div title="ISBN 1234567890"></div>
4908 Bug 2304: HTML attribute safety (RFC)
4910 <div title="RFC 1234"></div>
4912 <div title="RFC 1234"></div>
4917 Bug 2304: HTML attribute safety (PMID)
4919 <div title="PMID 1234567890"></div>
4921 <div title="PMID 1234567890"></div>
4926 Bug 2304: HTML attribute safety (web link)
4928 <div title="http://example.com/"></div>
4930 <div title="http://example.com/"></div>
4935 Bug 2304: HTML attribute safety (named web link)
4937 <div title="[http://example.com/ link]"></div>
4939 <div title="[http://example.com/ link]"></div>
4944 Bug 3244: HTML attribute safety (extension; safe)
4946 <div style="<nowiki>background:blue</nowiki>"></div>
4948 <div style="background:blue"></div>
4953 Bug 3244: HTML attribute safety (extension; unsafe)
4955 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4957 <div style="/* insecure input */"></div>
4961 # More MSIE fun discovered by Tom Gilder
4964 MSIE CSS safety test: spurious slash
4966 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4968 <div style="/* insecure input */">evil</div>
4973 MSIE CSS safety test: hex code
4975 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4977 <div style="/* insecure input */">evil</div>
4982 MSIE CSS safety test: comment in url
4984 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4986 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4991 MSIE CSS safety test: comment in expression
4993 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4995 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5001 Table attribute legitimate extension
5004 !+ style="<nowiki>color:blue</nowiki>"| status
5009 <th style="color:blue">status
5017 Table attribute safety
5020 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5025 <th style="/* insecure input */">status
5033 CSS line continuation 1
5035 <div style="background-image: u\ rl(test.jpg);"></div>
5037 <div style="/* insecure input */"></div>
5042 CSS line continuation 2
5044 <div style="background-image: u\ rl(test.jpg); "></div>
5046 <div style="/* insecure input */"></div>
5057 Expansion of multi-line templates in attribute values (bug 6255)
5059 <div style="background: {{identity|#00FF00}}">-</div>
5061 <div style="background: #00FF00">-</div>
5067 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5069 <div style="background:
5072 <div style="background: #00FF00">-</div>
5077 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5079 <div style="background: #00FF00">-</div>
5081 <div style="background: #00FF00">-</div>
5086 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5089 Parser hook: empty input
5102 Parser hook: empty input using terminated empty elements
5115 Parser hook: empty input using terminated empty elements (space before)
5128 Parser hook: basic input
5142 Parser hook: case insensitive
5156 Parser hook: case insensitive, redux
5169 Parser hook: nested tags
5173 <tag><tag></tag></tag>
5184 Parser hook: basic arguments
5186 <tag width=200 height = "100" depth = '50' square></tag>
5205 Parser hook: argument containing a forward slash (bug 5344)
5207 <tag filename='/tmp/bla'></tag>
5213 string(8) "/tmp/bla"
5220 Parser hook: empty input using terminated empty elements (bug 2374)
5234 # </tag> should be output literally since there is no matching tag that begins it
5236 Parser hook: basic arguments using terminated empty elements (bug 2374)
5238 <tag width=200 height = "100" depth = '50' square/>
5261 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5265 Parser hook: static parser hook not inside a comment
5267 <statictag>hello, world</statictag>
5268 <statictag action=flush/>
5276 Parser hook: static parser hook inside a comment
5278 <!-- <statictag>hello, world</statictag> -->
5279 <statictag action=flush/>
5285 # Nested template calls; this case was broken by Parser.php rev 1.506,
5289 Template:One-parameter
5291 (My parameter is: {{{1}}})
5295 Template:Map-one-parameter
5301 Nested template calls
5303 {{Map-one-parameter|One-parameter|param}}
5305 <p>(My parameter is: param)
5314 Sanitizer: Closing of open tags
5316 <s></s><table></table>
5318 <s></s><table></table>
5323 Sanitizer: Closing of open but not closed tags
5332 Sanitizer: Closing of closed but not open tags
5341 Sanitizer: Closing of closed but not open table tags
5343 Table not started</td></tr></table>
5345 <p>Table not started</td></tr></table>
5350 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5352 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5354 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5359 Sanitizer: Validating the contents of the id attribute (bug 4515)
5365 Something, but definitely not <br id="9" />...
5369 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5373 <br id="foo" /><br id="foo" />
5375 Something need to be done. foo-2 ?
5379 Language converter: output gets cut off unexpectedly (bug 5757)
5383 this bit is safe: }-
5385 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5387 then we get cut off here: }-
5389 all additional text is vanished
5391 <p>this bit is safe: }-
5392 </p><p>but if we add a conversion instance: xxx
5393 </p><p>then we get cut off here: }-
5394 </p><p>all additional text is vanished
5399 Self closed html pairs (bug 5487)
5402 <center><font id="bug" />Centered text</center>
5403 <div><font id="bug2" />In div text</div>
5405 <center><font id="bug" />Centered text</center>
5406 <div><font id="bug2" />In div text</div>
5415 Punctuation: nbsp before exclamation
5419 <p>C'est grave !
5424 Punctuation: CSS !important (bug 11874)
5426 <div style="width:50% !important">important</div>
5428 <div style="width:50% !important">important</div>
5433 Punctuation: CSS ! important (bug 11874; with space after)
5435 <div style="width:50% ! important">important</div>
5437 <div style="width:50% ! important">important</div>
5443 HTML bullet list, closed tags (bug 5497)
5458 HTML bullet list, unclosed tags (bug 5497)
5475 HTML ordered list, closed tags (bug 5497)
5490 HTML ordered list, unclosed tags (bug 5497)
5507 HTML nested bullet list, closed tags (bug 5497)
5532 HTML nested bullet list, open tags (bug 5497)
5557 HTML nested ordered list, closed tags (bug 5497)
5582 HTML nested ordered list, open tags (bug 5497)
5607 HTML ordered list item with parameters oddity
5609 <ol><li id="fragment">One</li></ol>
5611 <ol><li id="fragment">One</li></ol>
5616 bug 5918: autonumbering
5618 [http://first/] [http://second] [ftp://ftp]
5622 [mailto:enclosed@mail.tld With target]
5624 [mailto:enclosed@mail.tld]
5626 mailto:inline@mail.tld
5628 <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>
5629 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
5630 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
5631 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
5632 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
5638 # Security and HTML correctness
5639 # From Nick Jenkins' fuzz testing
5643 Fuzz testing: Parser13
5657 Fuzz testing: Parser14
5662 <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>
5663 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5665 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5672 Fuzz testing: Parser14-table
5678 <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>
5679 <table style="__TOC__">
5688 # Known to produce bogus xml (extra </td>)
5690 Fuzz testing: Parser16
5710 Fuzz testing: Parser21
5713 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5718 <th><a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5727 Fuzz testing: Parser22
5729 http://===r:::https://b
5734 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
5738 # Known to produce bad XML for now
5740 # Note: the current result listed for this is not what the original one was,
5741 # but the original bug was JavaScript injection, which is fixed in any case.
5742 # It's not clear that the original result listed was any more correct than the
5743 # current one. Original result:
5746 # <u class="|">}}}} >
5747 # <br style="onmouseover='alert(document.cookie);'" />
5749 # MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5755 # Known to produce bad XML for now
5757 Fuzz testing: Parser24
5764 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5765 <br style="onmouseover='alert(document.cookie);' " />
5767 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5771 </p><p><u class="|">}}}} >
5772 </p><p><br style="onmouseover='alert(document.cookie);'" />
5773 </p><p>MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5784 # Note: the current result listed for this is not what the original one was,
5785 # but the original bug was JavaScript injection, which is fixed in any case.
5786 # It's not clear that the original result listed was any more correct than the
5787 # current one. Original result:
5790 # <li class="||">
5791 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5793 Fuzz testing: Parser25 (bug 6055)
5799 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5801 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5806 Fuzz testing: URL adjacent extension (with space, clean)
5809 http://example.com <nowiki>junk</nowiki>
5811 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
5816 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5819 http://example.com<nowiki>junk</nowiki>
5821 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
5826 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5829 http://example.com<pre>junk</pre>
5831 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
5836 Fuzz testing: image with bogus manual thumbnail
5838 [[Image:foobar.jpg|thumbnail= ]]
5840 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5845 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5847 <pre dir=" "></pre>
5849 <pre dir=" "></pre>
5854 Parsing optional HTML elements (Bug 6171)
5859 <td> Some tabular data</td>
5860 <td> More tabular data ...
5861 <td> And yet som tabular data</td>
5867 <td> Some tabular data</td>
5868 <td> More tabular data ...
5869 </td><td> And yet som tabular data</td>
5876 Correct handling of <td>, <tr> (Bug 6171)
5881 <td> Some tabular data</td>
5882 <td> More tabular data ...</td>
5883 <td> And yet som tabular data</td>
5889 <td> Some tabular data</td>
5890 <td> More tabular data ...</td>
5891 <td> And yet som tabular data</td>
5899 Parsing crashing regression (fr:JavaScript)
5903 <p></body></x>
5908 Inline wiki vs wiki block nesting
5914 <p><b>Bold paragraph</b>
5915 </p><p>New wiki paragraph
5920 Inline HTML vs wiki block nesting
5928 <p><b>Bold paragraph</b>
5929 </p><p>New wiki paragraph
5933 # Original result was this:
5934 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5936 # While that might be marginally more intuitive, maybe, the six-apostrophe
5937 # construct is clearly pathological and the result stated here (which is what
5938 # the parser actually does) is about as reasonable as anything.
5940 Mixing markup for italics and bold
5943 '''bold''''''bold''bolditalics'''''
5945 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5953 Article for special page transclusion test
5957 Special page transclusion
5960 {{Special:Prefixindex/Xyzzyx}}
5964 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5969 Special page transclusion twice (bug 5021)
5972 {{Special:Prefixindex/Xyzzyx}}
5973 {{Special:Prefixindex/Xyzzyx}}
5977 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5980 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5985 Transclusion of default MediaWiki message
5987 {{MediaWiki:Mainpage}}
5994 Transclusion of nonexistent MediaWiki message
5996 {{MediaWiki:Mainpagexxx}}
5998 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6003 Transclusion of MediaWiki message with underscore
6005 {{MediaWiki:history_short}}
6012 Transclusion of MediaWiki message with space
6014 {{MediaWiki:history short}}
6021 Invalid header with following text
6031 Section extraction test (section 0)
6051 Section extraction test (section 1)
6073 Section extraction test (section 2)
6094 Section extraction test (section 3)
6114 Section extraction test (section 4)
6138 Section extraction test (section 5)
6158 Section extraction test (section 6)
6179 Section extraction test (section 7)
6199 Section extraction test (section 8)
6219 Section extraction test (section 9)
6240 Section extraction test (section 10)
6260 Section extraction test (nonexistent section 11)
6279 Section extraction test with bogus heading (section 1)
6284 ==bogus== not a legal section
6288 ==bogus== not a legal section
6292 Section extraction test with bogus heading (section 2)
6297 ==bogus== not a legal section
6304 Section extraction test with comment after heading (section 1)
6316 Section extraction test with comment after heading (section 2)
6328 Section extraction test with bogus <nowiki> heading (section 1)
6333 ==bogus== <nowiki>not a legal section</nowiki>
6337 ==bogus== <nowiki>not a legal section</nowiki>
6341 Section extraction test with bogus <nowiki> heading (section 2)
6346 ==bogus== <nowiki>not a legal section</nowiki>
6353 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6354 # instead of respecting commented sections
6356 Section extraction prefixed by comment (section 1)
6367 Section extraction prefixed by comment (section 2)
6378 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6379 # instead of respecting HTML-style headings
6381 Section extraction, mixed wiki and html (section 1)
6397 Section extraction, mixed wiki and html (section 2)
6413 # Formerly testing for bug 3342
6415 Section extraction, heading surrounded by <noinclude>
6419 <noinclude>==unmarked==</noinclude>
6425 # Test behaviour of bug 19910
6427 Sectiion with all-equals
6432 The line above must have a trailing space
6435 But just in case it doesn't...
6439 But just in case it doesn't...
6443 Section replacement test (section 0)
6474 Section replacement test (section 1)
6503 Section replacement test (section 2)
6533 Section replacement test (section 3)
6564 Section replacement test (section 4)
6591 Section replacement test (section 5)
6622 Section replacement test (section 6)
6652 Section replacement test (section 7)
6683 Section replacement test (section 8)
6714 Section replacement test (section 9)
6743 Section replacement test (section 10)
6773 Section replacement test with initial whitespace (bug 13728)
6777 Preformatted initial line
6781 Preformatted initial line
6788 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6800 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6813 Section extraction, <pre> around bogus header (bug 10309)
6830 Section replacement, <pre> around bogus header (bug 10309)
6832 noxml replace=2,"xxx"
6853 Handling of 
 in URLs
6857 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
6864 5 quotes, code coverage +1 line
6871 Special:Search page linking.
6875 <p><a href="/wiki/Special:Search">Special:Search</a>
6890 * {{SUBJECTPAGENAME}}
6891 * {{SUBJECTPAGENAMEE}}
6898 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6900 <ul><li> Parser test
6901 </li><li> Parser test
6902 </li><li> Parser test
6903 </li><li> Parser_test
6904 </li><li> Parser test
6905 </li><li> Parser_test
6906 </li><li> Talk:Parser test
6907 </li><li> Talk:Parser_test
6908 </li><li> Parser test
6909 </li><li> Parser_test
6916 </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>
6920 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6930 image4 |300px| centre
6931 image5.svg| http://///////
6936 <ul class="gallery">
6937 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6938 <div style="height: 150px;">Image1.png</div>
6939 <div class="gallerytext">
6942 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6943 <div style="height: 150px;">Image2.gif</div>
6944 <div class="gallerytext">
6949 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6950 <div style="height: 150px;">Image3</div>
6951 <div class="gallerytext">
6954 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6955 <div style="height: 150px;">Image4</div>
6956 <div class="gallerytext">
6961 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6962 <div style="height: 150px;">Image5.svg</div>
6963 <div class="gallerytext">
6964 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
6968 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6969 <div style="height: 150px;">* image6</div>
6970 <div class="gallerytext">
6978 Gallery (with options)
6980 <gallery widths='60px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
6981 File:Nonexistant.jpg|caption
6982 File:Nonexistant.jpg
6983 image:foobar.jpg|some '''caption''' [[Main Page]]
6987 <ul class="gallery" style="max-width: 202px;_width: 202px;">
6988 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page">Main Page</a></li>
6989 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6990 <div style="height: 70px;">Nonexistant.jpg</div>
6991 <div class="gallerytext">
6996 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6997 <div style="height: 70px;">Nonexistant.jpg</div>
6998 <div class="gallerytext">
7001 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7002 <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>
7003 <div class="gallerytext">
7004 <p>some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
7008 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7009 <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>
7010 <div class="gallerytext">
7018 gallery (with showfilename option)
7020 <gallery showfilename>
7021 File:Nonexistant.jpg|caption
7022 File:Nonexistant.jpg
7023 image:foobar.jpg|some '''caption''' [[Main Page]]
7027 <ul class="gallery">
7028 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7029 <div style="height: 150px;">Nonexistant.jpg</div>
7030 <div class="gallerytext">
7031 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7036 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7037 <div style="height: 150px;">Nonexistant.jpg</div>
7038 <div class="gallerytext">
7039 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7043 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7044 <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>
7045 <div class="gallerytext">
7046 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7047 some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
7051 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7052 <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>
7053 <div class="gallerytext">
7054 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7063 Gallery (with namespace-less filenames)
7066 File:Nonexistant.jpg
7072 <ul class="gallery">
7073 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7074 <div style="height: 150px;">Nonexistant.jpg</div>
7075 <div class="gallerytext">
7078 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7079 <div style="height: 150px;">Nonexistant.jpg</div>
7080 <div class="gallerytext">
7083 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7084 <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>
7085 <div class="gallerytext">
7088 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7089 <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>
7090 <div class="gallerytext">
7098 HTML Hex character encoding (spells the word "JavaScript")
7100 JavaScript
7102 <p>JavaScript
7107 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7111 <p>&#xsee;&#XSEE;
7116 HTML Hex character encoding mixed case
7125 __FORCETOC__ override
7137 ISBN 978-0-1234-56 789
7139 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7144 ISBN followed by 5 spaces
7155 ISBN ISBN 1234567890
7157 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7162 Bug 22905: <abbr> followed by ISBN followed by </a>
7164 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7166 <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>
7175 <p>RFC <a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc1234">RFC 1234</a>
7180 Double RFC with a wiki link
7184 <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>
7193 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc983">RFC 983</a> 987
7198 Centre-aligned image
7200 [[Image:foobar.jpg|centre]]
7202 <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>
7209 [[Image:foobar.jpg|none]]
7211 <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>
7216 Width + Height sized image (using px) (height is ignored)
7218 [[Image:foobar.jpg|640x480px]]
7220 <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>
7225 Width-sized image (using px, no following whitespace)
7227 [[Image:foobar.jpg|640px]]
7229 <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>
7234 Width-sized image (using px, with following whitespace - test regression from r39467)
7236 [[Image:foobar.jpg|640px ]]
7238 <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>
7243 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7245 [[Image:foobar.jpg| 640px]]
7247 <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>
7252 Another italics / bold test
7260 # Note the results may be incorrect, as parserTest output included this:
7261 # XML error: Mismatched tag at byte 6120:
7262 # ...<dd> </dt></dl> </dd...
7270 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7281 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7283 Images with the "|" character in the comment
7285 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7287 <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>
7292 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7294 <html><script>alert(1);</script></html>
7296 <p><html><script>alert(1);</script></html>
7301 HTML with raw HTML ($wgRawHtml==true)
7305 <html><script>alert(1);</script></html>
7307 <p><script>alert(1);</script>
7312 Parents of subpages, one level up
7314 subpage title=[[Subpage test/L1/L2/L3]]
7318 <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>
7324 Parents of subpages, one level up, not named
7326 subpage title=[[Subpage test/L1/L2/L3]]
7330 <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>
7337 Parents of subpages, two levels up
7339 subpage title=[[Subpage test/L1/L2/L3]]
7345 <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
7346 </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>
7351 Parents of subpages, two levels up, without trailing slash or name.
7353 subpage title=[[Subpage test/L1/L2/L3]]
7362 Parents of subpages, two levels up, with lots of extra trailing slashes.
7364 subpage title=[[Subpage test/L1/L2/L3]]
7368 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7373 Definition list code coverage
7379 <dl><dt> title  </dt><dd> def
7380 </dd><dt> title </dt><dd> def
7381 </dd><dt>title</dt><dd> def
7387 Don't fall for the self-closing div
7389 <div>hello world</div/>
7391 <div>hello world</div>
7400 <p>[[:Template:Msg]]
7409 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7413 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7415 Always escape literal '>' in output, not just after '<'
7429 <p>This is a test template
7430 This is a test template
7442 Inclusion of !userCanEdit() content
7446 <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>
7452 Out-of-order TOC heading levels
7461 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7463 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7465 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7466 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7469 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7471 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7472 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7477 <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>
7478 <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>
7479 <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>
7480 <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>
7481 <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>
7482 <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>
7488 ISBN with a dummy number
7498 ISBN with space-delimited number
7502 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7508 ISBN with multiple spaces, no number
7527 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7528 </p><p>ISBN 12345678901
7534 ISBN with trailing year (bug 8110)
7536 ISBN 1-234-56789-0 - 2006
7538 ISBN 1 234 56789 0 - 2006
7540 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7541 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7549 {{anchorencode:foo bar©#%n}}
7551 <p>foo_bar.C2.A9.23.25n
7556 anchorencode trims spaces
7558 {{anchorencode: __pretty__please__}}
7565 anchorencode deals with links
7567 {{anchorencode: [[hello|world]] [[hi]]}}
7574 anchorencode deals with templates
7576 {{anchorencode: {{Foo}} }}
7583 anchorencode encodes like the TOC generator: (bug 18431)
7585 === _ +:.3A%3A&&]] ===
7586 {{anchorencode: _ +:.3A%3A&&]] }}
7589 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7590 <p>.2B:.3A.253A.26.26.5D.5D
7594 # Expected output in the following test is not necessarily expected (there
7595 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7596 # only testing for well-formedness.
7598 Bug 6200: blockquotes and paragraph formatting
7618 Bug 8293: Use of center tag ruins paragraph formatting
7640 ### Language variants related tests
7643 Self-link in language variants
7645 title=[[Dunav]] language=sr
7647 Both [[Dunav]] and [[Дунав]] are names for this river.
7649 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7655 Link to pages in language variants
7659 Main Page can be written as [[Маин Паге]]
7661 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7667 Multiple links to pages in language variants
7671 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7673 <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>.
7679 Simple template in language variants
7685 <p>This is a test template
7691 Template with explicit namespace in language variants
7697 <p>This is a test template
7703 Basic test for template parameter in language variants
7707 {{парамтест|param=foo}}
7709 <p>This is a test template with parameter foo
7715 Simple category in language variants
7719 [[Category:МедиаWики Усер'с Гуиде]]
7721 <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>
7726 Stripping -{}- tags (language variants)
7730 Latin proverb: -{Ne nuntium necare}-
7732 <p>Latin proverb: Ne nuntium necare
7738 Prevent conversion with -{}- tags (language variants)
7740 language=sr variant=sr-ec
7742 Latinski: -{Ne nuntium necare}-
7744 <p>Латински: Ne nuntium necare
7750 Prevent conversion of text with -{}- tags (language variants)
7752 language=sr variant=sr-ec
7754 Latinski: -{Ne nuntium necare}-
7756 <p>Латински: Ne nuntium necare
7762 Prevent conversion of links with -{}- tags (language variants)
7764 language=sr variant=sr-ec
7768 <p><a href="/wiki/Main_Page">Main Page</a>
7774 -{}- tags within headlines (within html for parserConvert())
7776 language=sr variant=sr-ec
7780 <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>
7786 Explicit definition of language variant alternatives
7788 language=zh variant=zh-tw
7790 -{zh:China;zh-tw:Taiwan}-, not China
7792 <p>Taiwan, not China
7798 Explicit session-wise language variant mapping (A flag and - flag)
7800 language=zh variant=zh-tw
7802 Taiwan is not China.
7803 But -{A|zh:China;zh-tw:Taiwan}- is China,
7804 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
7805 and -{China}- is China.
7807 <p>Taiwan is not China.
7808 But Taiwan is Taiwan,
7809 (This should be stripped!)
7815 Explicit session-wise language variant mapping (H flag for hide)
7817 language=zh variant=zh-tw
7819 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
7822 <p>(This should be stripped!)
7828 Adding explicit conversion rule for title (T flag)
7830 language=zh variant=zh-tw showtitle
7832 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7835 <p>Should be stripped!
7840 Testing that changing the language variant here in the tests actually works
7842 language=zh variant=zh showtitle
7844 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7847 <p>Should be stripped!
7852 Bug 24072: more test on conversion rule for title
7854 language=zh variant=zh-tw showtitle
7856 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7857 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
7860 <p>This should be stripped!
7861 This won't take interferes with the title rule.
7866 Raw output of variant escape tags (R flag)
7868 language=zh variant=zh-tw
7870 Raw: -{R|zh:China;zh-tw:Taiwan}-
7872 <p>Raw: zh:China;zh-tw:Taiwan
7877 Nested using of manual convert syntax
7879 language=zh variant=zh-hk
7881 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
7883 <p>Nested: Hello Hong Kong!
7888 Do not convert roman numbers to language variants
7890 language=sr variant=sr-ec
7894 <p>Фридрих IV је цар.
7899 Unclosed language converter markup "-{"
7910 Don't convert raw rule "-{R|=>}-" to "=>"
7927 Bug 529: Uncovered bullet
7938 Bug 529: Uncovered table already at line-start
7966 Bug 529: Uncovered bullet in parser function result
7968 * Foo {{lc:{{bullet}} }}
7977 Bug 5678: Double-parsed template argument
7979 {{lc:{{{1}}}|hello}}
7986 Bug 5678: Double-parsed template invocation
7988 {{lc:{{paramtest {{!}} param = hello }} }}
7990 <p>{{paramtest | param = hello }}
7995 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8021 Morwen/13: Unclosed link followed by heading
8028 <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>
8033 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8040 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8045 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8052 <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>
8067 Paragraphs inside divs (no extra line breaks)
8079 Paragraphs inside divs (extra line break on open)
8094 Paragraphs inside divs (extra line break on close)
8109 Paragraphs inside divs (extra line break on open and close)
8126 Nesting tags, paragraphs on lines which begin with <div>
8130 <div></div><strong>A
8139 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8141 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8145 <blockquote>Line one
8147 Line two</blockquote>
8149 <blockquote>Line one
8150 Line two</blockquote>
8155 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8162 Line two</blockquote>
8167 Line two</blockquote>
8172 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8176 <blockquote>Line one
8181 <blockquote>Line one
8189 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8208 Paragraphs inside blockquotes/divs (no extra line breaks)
8210 <blockquote><div>Line one
8212 Line two</div></blockquote>
8214 <blockquote><div>Line one
8215 Line two</div></blockquote>
8220 Paragraphs inside blockquotes/divs (extra line break on open)
8225 Line two</div></blockquote>
8230 Line two</div></blockquote>
8235 Paragraphs inside blockquotes/divs (extra line break on close)
8237 <blockquote><div>Line one
8242 <blockquote><div>Line one
8250 Paragraphs inside blockquotes/divs (extra line break on open and close)
8267 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8269 wgLinkHolderBatchSize=0
8275 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw">meatball:1</a>
8276 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw">meatball:2</a>
8277 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw">meatball:3</a>
8282 Free external link invading image caption
8284 [[Image:Foobar.jpg|thumb|http://x|hello]]
8286 <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>
8291 Bug 15196: localised external link numbers
8295 [http://en.wikipedia.org/]
8297 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8302 Multibyte character in padleft
8304 {{padleft:-Hello|7|Æ}}
8311 Multibyte character in padright
8313 {{padright:Hello-|7|Æ}}
8326 <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>
8331 formatdate parser function
8333 {{#formatdate:2009-03-24}}
8335 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8340 formatdate parser function, with default format
8342 {{#formatdate:2009-03-24|mdy}}
8344 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8349 Linked date with autoformatting disabled
8351 wgUseDynamicDates=false
8355 <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>
8360 Spacing of numbers in formatted dates
8362 {{#formatdate:January 15}}
8364 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8369 Spacing of numbers in formatted dates (linked)
8371 wgUseDynamicDates=true
8375 <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>
8388 Edit comment with link
8392 I like the [[Main Page]] a lot
8394 I like the <a href="/wiki/Main_Page">Main Page</a> a lot
8398 Edit comment with link and link text
8402 I like the [[Main Page|best pages]] a lot
8404 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8408 Edit comment with link and link text with suffix
8412 I like the [[Main Page|best page]]s a lot
8414 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8418 Edit comment with section link (non-local, eg in history list)
8420 comment title=[[Main Page]]
8422 /* External links */ removed bogus entries
8424 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
8428 Edit comment with section link (local, eg in diff view)
8430 comment local title=[[Main Page]]
8432 /* External links */ removed bogus entries
8434 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
8438 Edit comment with subpage link (bug 14080)
8442 title=[[Subpage test]]
8444 Poked at a [[/subpage]] here...
8446 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8450 Edit comment with subpage link and link text (bug 14080)
8454 title=[[Subpage test]]
8456 Poked at a [[/subpage|neat little page]] here...
8458 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8462 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8465 title=[[Subpage test]]
8467 Poked at a [[/subpage]] here...
8469 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8473 Edit comment with bare anchor link (local, as on diff)
8481 <a href="#section">#section</a>
8485 Edit comment with bare anchor link (non-local, as on history)
8492 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8496 Anchor starting with underscore
8500 <p><a href="#_ref">One</a>
8505 Id starting with underscore
8507 <div id="_ref"></div>
8509 <div id="_ref"></div>
8514 Space normalisation on autocomment (bug 22784)
8519 /* __hello__world__ */
8521 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
8525 percent-encoding and + signs in comments (Bug 26410)
8529 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8531 <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>
8535 Bad images - basic functionality
8542 Bad images - bug 16039: text after bad image disappears
8554 Verify that displaytitle works (bug #22501) no displaytitle
8558 wgAllowDisplayTitle=true
8559 wgRestrictDisplayTitle=false
8561 this is not the the title
8564 <p>this is not the the title
8569 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8574 wgAllowDisplayTitle=true
8575 wgRestrictDisplayTitle=false
8577 this is not the the title
8578 {{DISPLAYTITLE:whatever}}
8581 <p>this is not the the title
8586 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8591 wgAllowDisplayTitle=true
8592 wgRestrictDisplayTitle=true
8594 this is not the the title
8595 {{DISPLAYTITLE:whatever}}
8598 <p>this is not the the title
8603 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8608 wgAllowDisplayTitle=true
8609 wgRestrictDisplayTitle=true
8611 this is not the the title
8612 {{DISPLAYTITLE:screen}}
8615 <p>this is not the the title
8620 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8625 wgAllowDisplayTitle=false
8627 this is not the the title
8628 {{DISPLAYTITLE:screen}}
8631 <p>this is not the the title
8632 <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>
8637 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8642 wgAllowDisplayTitle=false
8644 this is not the the title
8647 <p>this is not the the title
8652 preload: check <noinclude> and <includeonly>
8656 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8662 preload: check <onlyinclude>
8666 Goodbye <onlyinclude>Hello world</onlyinclude>
8672 preload: can pass tags through if we want to
8676 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8678 <includeonly>Hello world</includeonly>
8682 preload: check that it doesn't try to do tricks
8686 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8688 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8692 Play a bit with r67090 and bug 3158
8696 <div style="width:50% !important"> </div>
8697 <div style="width:50% !important"> </div>
8698 <div style="width:50% !important"> </div>
8699 <div style="border : solid;"> </div>
8701 <div style="width:50% !important"> </div>
8702 <div style="width:50% !important"> </div>
8703 <div style="width:50% !important"> </div>
8704 <div style="border : solid;"> </div>
8709 HTML5 data attributes
8711 <span data-foo="bar">Baz</span>
8712 <p data-abc-def_hij="">Quuz</p>
8714 <p><span data-foo="bar">Baz</span>
8716 <p data-abc-def_hij="">Quuz</p>
8721 percent-encoding and + signs in internal links (Bug 26410)
8723 [[User:+%]] [[Page+title%]]
8724 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
8725 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
8726 [[%33%45]] [[%33%45+]]
8728 <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>
8729 <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>
8730 <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>
8731 <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>
8736 Special characters in embedded file links (bug 27679)
8738 [[File:Contains & ampersand.jpg]]
8739 [[File:Does not exist.jpg|Title with & ampersand]]
8741 <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>
8742 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
8759 Bug#542 Link text shouldn't be duplicated in title attributes
8761 [[A]] [[a]] [[Ä]] [[ä]]
8763 <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>
8773 Try for 100% code coverage