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="/wiki/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="/wiki/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="/wiki/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>/wiki/Some_page?amp=&
1155 URL-encoding in URL functions (multiple parameters)
1157 {{localurl:Some page|q=?&=&}}
1159 <p>/wiki/Some_page?q=?&amp=&
1170 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1172 Normal text. '''''Bold italic text.''''' Normal text.
1174 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1175 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1181 Unclosed and unmatched quotes
1183 '''''Bold italic text '''with bold deactivated''' in between.'''''
1185 '''''Bold italic text ''with italic deactivated'' in between.'''''
1189 ..spanning two paragraphs (should not work).'''
1191 '''Bold tag left open
1193 ''Italic tag left open
1197 <!-- Unmatching number of opening, closing tags: -->
1198 '''This year''''s election ''should'' beat '''last year''''s.
1200 ''Tom'''s car is bigger than ''Susan'''s.
1202 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1203 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1204 </p><p><b>Bold text..</b>
1205 </p><p>..spanning two paragraphs (should not work).
1206 </p><p><b>Bold tag left open</b>
1207 </p><p><i>Italic tag left open</i>
1209 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1210 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1217 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1220 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1221 # is the bare minimun required by the spec, see:
1222 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1224 A table with no data.
1230 # A table with nothing but a caption is invalid XHTML, we might want to render
1231 # this as <p>caption</p>
1233 A table with nothing but a caption
1241 </caption><tr><td></td></tr></table>
1267 Multiplication table
1269 {| border="1" cellpadding="2"
1270 |+Multiplication table
1272 ! × !! 1 !! 2 !! 3
1290 <table border="1" cellpadding="2">
1291 <caption>Multiplication table
1340 {| align=right border=1
1342 |rowspan=2| Cell 2, row 1 (and 2)
1349 <table align="right" border="1">
1353 <td rowspan="2"> Cell 2, row 1 (and 2)
1371 {| bgcolor=#ABCDEF border=2
1376 |the original table again
1384 <table bgcolor="#ABCDEF" border="2">
1392 <td>the original table again
1398 Invalid attributes in table cell (bug 1830)
1413 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1416 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1420 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
1421 <td>]" onmouseover="alert(document.cookie)">test
1433 Plain link, capitalized
1437 <p><a href="/wiki/Main_Page">Main Page</a>
1442 Plain link, uncapitalized
1446 <p><a href="/wiki/Main_Page">main Page</a>
1453 [[Main Page|The Main Page]]
1455 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1464 <p><a href="/wiki/Zigzagzogzagzig?action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1469 Broken link with fragment
1471 [[Zigzagzogzagzig#zug]]
1473 <p><a href="/wiki/Zigzagzogzagzig?action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1478 Special page link with fragment
1480 [[Special:Version#anchor]]
1482 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1487 Nonexistent special page link with fragment
1489 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1491 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1498 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1500 <p>xxx<a href="/wiki/Main_Page">main Page</a>, xxx<a href="/wiki/Main_Page">Main Page</a>, Xxx<a href="/wiki/Main_Page">main Page</a> XXX<a href="/wiki/Main_Page">main Page</a>, XXX<a href="/wiki/Main_Page">Main Page</a>
1507 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1509 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page">Main Page</a>XXX, <a href="/wiki/Main_Page">Main Page</a>!!!
1514 Link with 3 brackets
1523 Piped link with 3 brackets
1525 [[[main page|the main page]]]
1527 <p>[[[main page|the main page]]]
1532 Link with multiple pipes
1534 [[Main Page|The|Main|Page]]
1536 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1543 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1545 <p><a href="/wiki/Talk:Parser_testing?action=edit&redlink=1" class="new" title="Talk:Parser testing (page does not exist)">Talk:Parser testing</a>, <a href="/wiki/Meta:Disclaimers?action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">Meta:Disclaimers</a>
1550 Piped link to namespace
1552 [[Meta:Disclaimers|The disclaimers]]
1554 <p><a href="/wiki/Meta:Disclaimers?action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1561 [[Usually caused by a typo (oops}]]
1563 <p>[[Usually caused by a typo (oops}]]
1568 Link containing % (not as a hex sequence)
1572 <p><a href="/wiki/7%25_Solution?action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
1577 Link containing % as a single hex sequence interpreted to char
1581 <p><a href="/wiki/7%25_Solution?action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
1586 Link containing % as a double hex sequence interpreted to hex sequence
1590 <p>[[7%2525 Solution]]
1595 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1596 Example for such a section: == < ==
1598 [[%23%3c]][[%23%3e]]
1600 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1605 Link containing "<#" and ">#" as a hex sequences
1607 [[%3c%23]][[%3e%23]]
1609 <p>[[%3c%23]][[%3e%23]]
1614 Link containing double-single-quotes '' (bug 4598)
1616 [[Lista d''e paise d''o munno]]
1618 <p><a href="/wiki/Lista_d%27%27e_paise_d%27%27o_munno?action=edit&redlink=1" class="new" title="Lista d''e paise d''o munno (page does not exist)">Lista d''e paise d''o munno</a>
1623 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1625 Some [[Link|pretty ''italics'' and stuff]]!
1627 <p>Some <a href="/wiki/Link?action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!
1632 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1634 ''Some [[Link|pretty ''italics'' and stuff]]!
1636 <p><i>Some <a href="/wiki/Link?action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!</i>
1641 Link with double quotes in title part (literal) and alternate part (interpreted)
1643 [[File:Denys Savchenko ''Pentecoste''.jpg]]
1647 [[''Pentecoste''|Pentecoste]]
1649 [[''Pentecoste''|''Pentecoste'']]
1651 <p><a href="/wiki/Special:Upload?wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg" class="new" title="File:Denys Savchenko ''Pentecoste''.jpg">File:Denys Savchenko <i>Pentecoste</i>.jpg</a>
1652 </p><p><a href="/wiki/%27%27Pentecoste%27%27?action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">''Pentecoste''</a>
1653 </p><p><a href="/wiki/%27%27Pentecoste%27%27?action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">Pentecoste</a>
1654 </p><p><a href="/wiki/%27%27Pentecoste%27%27?action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)"><i>Pentecoste</i></a>
1661 [[http://www.example.com]]
1663 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
1667 # I'm fairly sure the expected result here is wrong.
1668 # We want these to be URL links, not pseudo-pages with URLs for titles....
1669 # However the current output is also pretty screwy.
1672 # I'm changing it to match the current output--it arguably makes more
1673 # sense in the light of the test above. Old expected result was:
1674 #<p>Piped link to URL: <a href="/wiki/Http://www.example.com?action=edit" class="new">an example URL</a>
1676 # But I think this test is bordering on "garbage in, garbage out" anyway.
1681 Piped link to URL: [[http://www.example.com|an example URL]]
1683 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
1688 BUG 2: [[page|http://url/]] should link to page, not http://url/
1690 [[Main Page|http://url/]]
1692 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1697 BUG 337: Escaped self-links should be bold
1701 [[Bug462]] [[Bug462]]
1703 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1708 Self-link to section should not be bold
1712 [[Main Page#section]]
1714 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1725 Self-link to numeric title
1731 <p><strong class="selflink">0</strong>
1736 Link to numeric-equivalent title
1742 <p><a href="/wiki/00">00</a>
1747 <nowiki> inside a link
1749 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1751 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1756 Non-breaking spaces in title
1758 [[ Main Page ]]
1760 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
1766 ### Interwiki links (see maintenance/interwiki.sql)
1770 Inline interwiki link
1772 [[MeatBall:SoftSecurity]]
1774 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw">MeatBall:SoftSecurity</a>
1779 Inline interwiki link with empty title (bug 2372)
1783 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw">MeatBall:</a>
1788 Interwiki link encoding conversion (bug 1636)
1790 *[[Wikipedia:ro:Olteniţa]]
1791 *[[Wikipedia:ro:Olteniţa]]
1793 <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>
1794 </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>
1800 Interwiki link with fragment (bug 2130)
1802 [[MeatBall:SoftSecurity#foo]]
1804 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1819 Double interlanguage link
1830 Interlanguage link, with prefix links
1842 Double interlanguage link, with prefix links (bug 8897)
1869 Incorrecly removing closing slashes from correctly formed XHTML
1871 <br style="clear:both;" />
1873 <p><br style="clear:both;" />
1878 Failing to transform badly formed HTML into correct XHTML
1884 <p><br clear="left" />
1885 <br clear="right" />
1891 Horizontal ruler (should it add that extra space?)
1905 ### Block-level elements
1928 <ol><li>Numbered list
1945 ***#Number on level 4
1947 **#Number on level 3
1948 **#Number on level 3
1953 <ol><li> with numbers
1955 <ul><li> and bullets
1957 <ol><li> and numbers
1959 </li><li>bullets again
1960 <ul><li>bullet level 2
1961 <ul><li>bullet level 3
1962 <ol><li>Number on level 4
1965 </li><li>bullet level 2
1966 <ol><li>Number on level 3
1967 </li><li>Number on level 3
1970 <ol><li>number level 2
1978 List items are not parsed correctly following a <pre> block (bug 785)
1984 <ul><li> <pre>foo</pre>
1985 </li><li> <pre>bar</pre>
1996 Magic Word: {{CURRENTDAY}}
2005 Magic Word: {{CURRENTDAY2}}
2014 Magic Word: {{CURRENTDAYNAME}}
2023 Magic Word: {{CURRENTDOW}}
2032 Magic Word: {{CURRENTMONTH}}
2041 Magic Word: {{CURRENTMONTHABBREV}}
2043 {{CURRENTMONTHABBREV}}
2050 Magic Word: {{CURRENTMONTHNAME}}
2052 {{CURRENTMONTHNAME}}
2059 Magic Word: {{CURRENTMONTHNAMEGEN}}
2061 {{CURRENTMONTHNAMEGEN}}
2068 Magic Word: {{CURRENTTIME}}
2077 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2086 Magic Word: {{CURRENTYEAR}}
2095 Magic Word: {{FULLPAGENAME}}
2097 title=[[User:Ævar Arnfjörð Bjarmason]]
2101 <p>User:Ævar Arnfjörð Bjarmason
2106 Magic Word: {{FULLPAGENAMEE}}
2108 title=[[User:Ævar Arnfjörð Bjarmason]]
2112 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2117 Magic Word: {{NAMESPACE}}
2119 title=[[User:Ævar Arnfjörð Bjarmason]]
2128 Magic Word: {{NAMESPACEE}}
2130 title=[[User:Ævar Arnfjörð Bjarmason]]
2139 Magic Word: {{NUMBEROFFILES}}
2148 Magic Word: {{PAGENAME}}
2150 title=[[User:Ævar Arnfjörð Bjarmason]]
2154 <p>Ævar Arnfjörð Bjarmason
2159 Magic Word: {{PAGENAME}} with metacharacters
2161 title=[['foo & bar = baz']]
2165 <p><i>'foo & bar = baz'</i>
2170 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2172 title=[[*RFC 1234 http://example.com/]]
2176 <p>*RFC 1234 http://example.com/
2181 Magic Word: {{PAGENAMEE}}
2183 title=[[User:Ævar Arnfjörð Bjarmason]]
2187 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2192 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2194 title=[[*RFC 1234 http://example.com/]]
2198 <p>*RFC_1234_http://example.com/
2203 Magic Word: {{REVISIONID}}
2212 Magic Word: {{SCRIPTPATH}}
2221 Magic Word: {{SERVER}}
2225 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2230 Magic Word: {{SERVERNAME}}
2239 Magic Word: {{SITENAME}}
2248 Namespace 1 {{ns:1}}
2257 Namespace 1 {{ns:01}}
2266 Namespace 0 {{ns:0}} (bug 4783)
2274 Namespace 0 {{ns:00}} (bug 4783)
2282 Namespace -1 {{ns:-1}}
2291 Namespace User {{ns:User}}
2300 Namespace User talk {{ns:User_talk}}
2309 Namespace User talk {{ns:uSeR tAlK}}
2318 Namespace File {{ns:File}}
2327 Namespace File {{ns:Image}}
2336 Namespace (lang=de) Benutzer {{ns:User}}
2347 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2353 <p>Benutzer Diskussion
2361 {{urlencode:hi world?!}}
2362 {{urlencode:hi world?!|WIKI}}
2363 {{urlencode:hi world?!|PATH}}
2364 {{urlencode:hi world?!|QUERY}}
2377 Magic links: internal link to RFC (bug 479)
2381 <p><a href="/wiki/RFC_123?action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2386 Magic links: RFC (bug 479)
2390 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc822">RFC 822</a>
2395 Magic links: ISBN (bug 1937)
2399 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2404 Magic links: PMID incorrectly converts space to underscore
2408 <p><a class="external mw-magiclink-pmid" href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2417 Nonexistent template
2419 {{thistemplatedoesnotexist}}
2421 <p><a href="/wiki/Template:Thistemplatedoesnotexist?action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2428 This is a test template
2436 <p>This is a test template
2441 Template with explicit namespace
2445 <p>This is a test template
2453 This is a test template with parameter {{{param}}}
2459 {{paramtest|param=foo}}
2461 <p>This is a test template with parameter foo
2466 Template:paramtestnum
2472 Template unnamed parameter
2474 {{paramtestnum|Main Page|the main page}}
2476 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2481 Template:templatesimple
2487 Template:templateredirect
2489 #redirect [[Template:templatesimple]]
2493 Template:templateasargtestnum
2499 Template:templateasargtest
2501 {{template{{{templ}}}}}
2505 Template:templateasargtest2
2511 Template with template name as unnamed argument
2513 {{templateasargtestnum|templatesimple}}
2520 Template with template name as argument
2522 {{templateasargtest|templ=simple}}
2529 Template with template name as argument (2)
2531 {{templateasargtest2|templ=templatesimple}}
2538 Template:templateasargtestdefault
2540 {{{{{templ|templatesimple}}}}}
2550 Template with default value
2552 {{templateasargtestdefault}}
2559 Template with default value (value set)
2561 {{templateasargtestdefault|templ=templa}}
2570 {{templateredirect}}
2577 Template with argument in separate line
2579 {{ templateasargtest |
2587 Template with complex template as argument
2590 param ={{ templateasargtest |
2593 <p>This is a test template with parameter (test)
2598 Template with thumb image (with link in description)
2601 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2603 This is a test template with parameter <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/Special:Upload?wpDestFile=Noimage.png" class="new" title="File:Noimage.png">File:Noimage.png</a> <div class="thumbcaption"><a href="/wiki/No_link?action=edit&redlink=1" class="new" title="No link (page does not exist)">link</a> <a href="/wiki/No_link?action=edit&redlink=1" class="new" title="No link (page does not exist)">caption</a></div></div></div>
2608 Template:complextemplate
2610 {{{1}}} {{paramtest|
2611 param ={{{param}}}}}
2615 Template with complex arguments
2618 param ={{ templateasargtest |
2619 templ = simple }}|[[Template:complextemplate|link]]}}
2621 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2626 BUG 553: link with two variables in a piped link
2629 |[[{{{1}}}|{{{2}}}]]
2634 <td>[[{{{1}}}|{{{2}}}]]
2640 Magic variable as template parameter
2642 {{paramtest|param={{SITENAME}}}}
2644 <p>This is a test template with parameter MediaWiki
2651 [[{{{param}}}|link]]
2655 Template parameter as link source
2657 {{linktest|param=Main Page}}
2659 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2667 including another template, {{paramtest|param={{{arg}}}}}
2671 Template passing argument to another template
2673 {{paramtest2|arg='hmm'}}
2675 <p>including another template, This is a test template with parameter 'hmm'
2686 Template as link source
2690 <p><a href="/wiki/Main_Page">Main Page</a>
2708 Template infinite loop
2712 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1">Template:Loop1</a></span>
2717 Template from main namespace
2736 BUG 529: Template with table, not included at beginning of line
2755 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2775 BUG 41: Template parameters shown as broken links
2787 ''None'' of '''this''' should be
2789 but rather passed unmodified
2793 # hmm, fix this or just deprecate msgnw and document its behavior?
2799 {{msgnw:MSGNW test}}
2801 <p>''None'' of '''this''' should be
2803 but rather passed unmodified
2811 {{int:youhavenewmessages|lots of money|not!}}
2813 <p>You have lots of money (not!).
2820 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2824 <includeonly> and <noinclude> being included
2835 <onlyinclude>Foo</onlyinclude>bar
2839 <onlyinclude> being included
2851 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2855 <onlyinclude> and <includeonly> being included
2864 <includeonly> and <noinclude> on a page
2866 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2873 <onlyinclude> on a page
2875 <onlyinclude>Foo</onlyinclude>bar
2882 Template:Includeonly section
2885 ==Includeonly section==
2891 Bug 6563: Edit link generation for section shown by <includeonly>
2893 {{includeonly section}}
2895 <h2><span class="editsection">[<a href="/wiki/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>
2896 <h2><span class="editsection">[<a href="/wiki/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>
2900 # Uses same input as the contents of [[Template:Includeonly section]]
2902 Bug 6563: Section extraction for section shown by <includeonly>
2907 ==Includeonly section==
2915 Bug 6563: Edit link generation for section suppressed by <includeonly>
2918 ==Includeonly section==
2922 <h2><span class="editsection">[<a href="/wiki/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>
2927 Bug 6563: Section extraction for section suppressed by <includeonly>
2932 ==Includeonly section==
2940 ### Pre-save transform tests
2943 pre-save transform: subst:
2949 This is a test template
2953 pre-save transform: normal template
2963 pre-save transform: nonexistent template
2967 {{thistemplatedoesnotexist}}
2969 {{thistemplatedoesnotexist}}
2974 pre-save transform: subst magic variables
2983 # This is bug 89, which I fixed. -- wtm
2985 pre-save transform: subst: templates with parameters
2989 {{subst:paramtest|param="something else"}}
2991 This is a test template with parameter "something else"
2997 <nowiki>'''not wiki'''</nowiki>
3001 pre-save transform: nowiki in subst (bug 1188)
3005 {{subst:nowikitest}}
3007 <nowiki>'''not wiki'''</nowiki>
3012 Template:commenttest
3014 This template has <!-- a comment --> in it.
3018 pre-save transform: comment in subst (bug 1936)
3022 {{subst:commenttest}}
3024 This template has <!-- a comment --> in it.
3028 pre-save transform: unclosed tag
3032 <nowiki>'''not wiki'''
3034 <nowiki>'''not wiki'''
3038 pre-save transform: mixed tag case
3042 <NOwiki>'''not wiki'''</noWIKI>
3044 <NOwiki>'''not wiki'''</noWIKI>
3048 pre-save transform: unclosed comment in <nowiki>
3052 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3054 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3060 <span onmouseover="alert('crap')">Oh no</span>
3064 (confirming safety of fix for subst bug 1936)
3066 {{Template:dangerous}}
3068 <p><span>Oh no</span>
3073 pre-save transform: comment containing gallery (bug 5024)
3077 <!-- <gallery>data</gallery> -->
3079 <!-- <gallery>data</gallery> -->
3083 pre-save transform: comment containing extension
3087 <!-- <tag>data</tag> -->
3089 <!-- <tag>data</tag> -->
3093 pre-save transform: comment containing nowiki
3097 <!-- <nowiki>data</nowiki> -->
3099 <!-- <nowiki>data</nowiki> -->
3103 pre-save transform: comment containing math
3107 <!-- <math>data</math> -->
3109 <!-- <math>data</math> -->
3113 pre-save transform: <noinclude> in subst (bug 3298)
3123 pre-save transform: <onlyinclude> in subst (bug 3298)
3135 {{<includeonly>subst:</includeonly>Includes}}
3139 Template:SafeSubstTest
3141 {{<includeonly>safesubst:</includeonly>Includes}}
3145 bug 22297: safesubst: works during PST
3149 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3155 bug 22297: safesubst: works during normal parse
3164 subst: does not work during normal parse
3168 <p>{{subst:Includes}}
3173 pre-save transform: context links ("pipe trick")
3177 [[Article (context)|]]
3180 [[Bar:Article (context)|]]
3181 [[:Bar:Article (context)|]]
3183 [[|Article (context)]]
3187 [[Article (context)|Article]]
3188 [[Bar:Article|Article]]
3189 [[:Bar:Article|Article]]
3190 [[Bar:Article (context)|Article]]
3191 [[:Bar:Article (context)|Article]]
3193 [[Article (context)]]
3194 [[Bar:X (Y) Z|X (Y) Z]]
3195 [[:Bar:X (Y) Z|X (Y) Z]]
3199 pre-save transform: context links ("pipe trick") with interwiki prefix
3203 [[interwiki:Article|]]
3204 [[:interwiki:Article|]]
3205 [[interwiki:Bar:Article|]]
3206 [[:interwiki:Bar:Article|]]
3208 [[interwiki:Article|Article]]
3209 [[:interwiki:Article|Article]]
3210 [[interwiki:Bar:Article|Bar:Article]]
3211 [[:interwiki:Bar:Article|Bar:Article]]
3215 pre-save transform: context links ("pipe trick") with parens in title
3217 pst title=[[Somearticle (context)]]
3221 [[Article (context)|Article]]
3225 pre-save transform: context links ("pipe trick") with comma in title
3227 pst title=[[Someplace, Somewhere]]
3230 [[Otherplace, Elsewhere|]]
3231 [[Otherplace, Elsewhere, Anywhere|]]
3233 [[Otherplace, Somewhere|Otherplace]]
3234 [[Otherplace, Elsewhere|Otherplace]]
3235 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3239 pre-save transform: context links ("pipe trick") with parens and comma
3241 pst title=[[Someplace (IGNORED), Somewhere]]
3244 [[Otherplace (place), Elsewhere|]]
3246 [[Otherplace, Somewhere|Otherplace]]
3247 [[Otherplace (place), Elsewhere|Otherplace]]
3251 pre-save transform: context links ("pipe trick") with comma and parens
3253 pst title=[[Who, me? (context)]]
3256 [[Me, Myself, and I (1937 song)|]]
3258 [[Yes, you. (context)|Yes, you.]]
3259 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3263 pre-save transform: context links ("pipe trick") with namespace
3265 pst title=[[Ns:Somearticle]]
3269 [[Ns:Article|Article]]
3273 pre-save transform: context links ("pipe trick") with namespace and parens
3275 pst title=[[Ns:Somearticle (context)]]
3279 [[Ns:Article (context)|Article]]
3283 pre-save transform: context links ("pipe trick") with namespace and comma
3285 pst title=[[Ns:Somearticle, Context, Whatever]]
3289 [[Ns:Article, Context, Whatever|Article]]
3293 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3295 pst title=[[Ns:Somearticle, Context (context)]]
3299 [[Ns:Article (context)|Article]]
3303 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3305 pst title=[[Ns:Somearticle (IGNORED), Context]]
3309 [[Ns:Article, Context|Article]]
3314 ### Message transform tests
3317 message transform: magic variables
3327 message transform: should not transform wiki markup
3337 message transform: <noinclude> in transcluded template (bug 4926)
3347 message transform: <onlyinclude> in transcluded template (bug 4926)
3357 {{#special:}} page name, known
3361 {{#special:Recentchanges}}
3363 Special:RecentChanges
3367 {{#special:}} page name with subpage, known
3371 {{#special:Recentchanges/param}}
3373 Special:RecentChanges/param
3377 {{#special:}} page name, unknown
3381 {{#special:foobarnonexistent}}
3383 No such special page
3392 [[Image:foobar.jpg]]
3394 <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>
3401 [[Image:foobar.jpg|right]]
3403 <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>
3408 Simple image (using File: namespace, now canonical)
3412 <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>
3419 [[Image:foobar.jpg|right|Caption text]]
3421 <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>
3426 Image with link parameter, wiki target
3428 [[Image:foobar.jpg|link=Target page]]
3430 <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>
3435 Image with link parameter, URL target
3437 [[Image:foobar.jpg|link=http://example.com/]]
3439 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3444 Image with link parameter, wgExternalLinkTarget
3446 [[Image:foobar.jpg|link=http://example.com/]]
3448 wgExternalLinkTarget='foobar'
3450 <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>
3455 Image with link parameter, wgExternalLinkTarget, unnamed parameter
3457 [[Image:foobar.jpg|link=http://example.com/|Title]]
3459 wgExternalLinkTarget='foobar'
3461 <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>
3466 Image with empty link parameter
3468 [[Image:foobar.jpg|link=]]
3470 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3475 Image with link parameter (wiki target) and unnamed parameter
3477 [[Image:foobar.jpg|link=Target page|Title]]
3479 <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>
3484 Image with link parameter (URL target) and unnamed parameter
3486 [[Image:foobar.jpg|link=http://example.com/|Title]]
3488 <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>
3493 Thumbnail image with link parameter
3495 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
3497 <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>
3502 Image with frame and link
3504 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3506 <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>
3511 Image with frame and link and explicit alt
3513 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3515 <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>
3520 Image with wiki markup in implicit alt
3522 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3524 <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>
3529 Image with wiki markup in explicit alt
3531 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3533 <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>
3538 Link to image page- image page normally doesn't exists, hence edit link
3539 Add test with existing image page
3540 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3544 <p><a href="/wiki/File:Test?action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3549 bug 18784 Link to non-existent image page with caption should use caption as link text
3551 [[:Image:test|caption]]
3553 <p><a href="/wiki/File:Test?action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
3558 Frameless image caption with a free URL
3560 [[Image:foobar.jpg|http://example.com]]
3562 <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>
3567 Thumbnail image caption with a free URL
3569 [[Image:foobar.jpg|thumb|http://example.com]]
3571 <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>
3576 Thumbnail image caption with a free URL and explicit alt
3578 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3580 <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>
3585 BUG 1887: A ISBN with a thumbnail
3587 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3589 <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>
3594 BUG 1887: A RFC with a thumbnail
3596 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3598 <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>
3603 BUG 1887: A mailto link with a thumbnail
3605 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3607 <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>
3612 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
3613 so math is not stripped and turns up as escaped <math> tags.
3615 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3617 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><math>2+2</math></div></div></div>
3622 BUG 1887, part 2: A <math> with a thumbnail- math enabled
3626 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3628 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><span class="texhtml">2 + 2</span></div></div></div>
3632 # Pending resolution to bug 368
3634 BUG 648: Frameless image caption with a link
3636 [[Image:foobar.jpg|text with a [[link]] in it]]
3638 <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>
3643 BUG 648: Frameless image caption with a link (suffix)
3645 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3647 <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>
3652 BUG 648: Frameless image caption with an interwiki link
3654 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3656 <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>
3661 BUG 648: Frameless image caption with a piped interwiki link
3663 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3665 <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>
3670 Escape HTML special chars in image alt text
3672 [[Image:foobar.jpg|& < > "]]
3674 <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>
3679 BUG 499: Alt text should have Ӓ, not &1234;
3681 [[Image:foobar.jpg|♀]]
3683 <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>
3688 Broken image caption with link
3690 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3692 <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.
3697 Image caption containing another image
3699 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3701 <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="/wiki/Special:Upload?wpDestFile=Icon.png" class="new" title="File:Icon.png">image</a> inside it!</div></div></div>
3706 Image caption containing a newline
3708 [[Image:Foobar.jpg|This
3711 <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>
3717 Bug 3090: External links other than http: in image captions
3719 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3721 <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>
3728 #REDIRECT [[File:Barfoo.jpg]]
3734 [[Image:Barfoo.jpg]]
3736 <p><a href="/wiki/File:Barfoo.jpg">File:Barfoo.jpg</a>
3741 Missing image with uploads disabled
3745 [[Image:Foobaz.jpg]]
3747 <p><a href="/wiki/File:Foobaz.jpg">File:Foobaz.jpg</a>
3756 Subpage test/subpage
3764 subpage title=[[Subpage test]]
3768 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3773 Subpage noslash link
3775 subpage title=[[Subpage test]]
3779 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3788 <p><a href="/wiki//subpage?action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
3793 BUG 561: {{/Subpage}}
3795 subpage title=[[Page]]
3799 <p><a href="/wiki/Page/Subpage?action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
3807 Category:MediaWiki User's Guide
3815 [[:Category:MediaWiki User's Guide]]
3817 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide">Category:MediaWiki User's Guide</a>
3826 [[Category:MediaWiki User's Guide]]
3828 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3832 PAGESINCATEGORY invalid title fatal (r33546 fix)
3834 {{PAGESINCATEGORY:<bogus>}}
3841 ### Inter-language links
3844 Inter-language links
3850 [[zh:食品]]
3852 es:Alimento fr:Nourriture zh:食品
3859 Basic section headings
3866 ===Smaller headline===
3869 <h2><span class="editsection">[<a href="/wiki/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>
3872 <h2><span class="editsection">[<a href="/wiki/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>
3875 <h3><span class="editsection">[<a href="/wiki/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>
3881 Section headings with TOC
3884 === Subheadline 1 ===
3885 ===== Skipping a level =====
3886 ====== Skipping a level ======
3890 ===Another headline===
3892 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3894 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3896 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3898 <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>
3900 <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>
3907 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
3909 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
3914 <h2><span class="editsection">[<a href="/wiki/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>
3915 <h3><span class="editsection">[<a href="/wiki/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>
3916 <h5><span class="editsection">[<a href="/wiki/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>
3917 <h6><span class="editsection">[<a href="/wiki/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>
3918 <h2><span class="editsection">[<a href="/wiki/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>
3921 <h3><span class="editsection">[<a href="/wiki/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>
3925 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
3927 Handling of sections up to level 6 and beyond
3930 == Level 2 Heading==
3931 === Level 3 Heading===
3932 ==== Level 4 Heading====
3933 ===== Level 5 Heading=====
3934 ====== Level 6 Heading======
3935 ======= Level 7 Heading=======
3936 ======== Level 8 Heading========
3937 ========= Level 9 Heading=========
3938 ========== Level 10 Heading==========
3940 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3942 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
3944 <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>
3946 <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>
3948 <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>
3950 <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>
3952 <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>
3953 <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>
3954 <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>
3955 <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>
3956 <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>
3969 <h1><span class="editsection">[<a href="/wiki/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>
3970 <h2><span class="editsection">[<a href="/wiki/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>
3971 <h3><span class="editsection">[<a href="/wiki/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>
3972 <h4><span class="editsection">[<a href="/wiki/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>
3973 <h5><span class="editsection">[<a href="/wiki/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>
3974 <h6><span class="editsection">[<a href="/wiki/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>
3975 <h6><span class="editsection">[<a href="/wiki/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>
3976 <h6><span class="editsection">[<a href="/wiki/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>
3977 <h6><span class="editsection">[<a href="/wiki/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>
3978 <h6><span class="editsection">[<a href="/wiki/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>
3983 TOC regression (bug 9764)
3987 ==== title 1.1.1 ====
3992 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3994 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3996 <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>
3998 <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>
4001 <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>
4004 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4006 <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>
4011 <h2><span class="editsection">[<a href="/wiki/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>
4012 <h3><span class="editsection">[<a href="/wiki/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>
4013 <h4><span class="editsection">[<a href="/wiki/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>
4014 <h3><span class="editsection">[<a href="/wiki/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>
4015 <h2><span class="editsection">[<a href="/wiki/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>
4016 <h3><span class="editsection">[<a href="/wiki/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>
4021 TOC with wgMaxTocLevel=3 (bug 6204)
4027 ==== title 1.1.1 ====
4032 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4034 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4036 <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>
4037 <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>
4040 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4042 <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>
4047 <h2><span class="editsection">[<a href="/wiki/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>
4048 <h3><span class="editsection">[<a href="/wiki/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>
4049 <h4><span class="editsection">[<a href="/wiki/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>
4050 <h3><span class="editsection">[<a href="/wiki/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>
4051 <h2><span class="editsection">[<a href="/wiki/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>
4052 <h3><span class="editsection">[<a href="/wiki/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>
4057 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4063 ====Section 1.1.1====
4064 ====Section 1.1.1.1====
4067 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4069 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4071 <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>
4074 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4077 <h2><span class="editsection">[<a href="/wiki/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>
4078 <h3><span class="editsection">[<a href="/wiki/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>
4079 <h4><span class="editsection">[<a href="/wiki/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>
4080 <h4><span class="editsection">[<a href="/wiki/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>
4081 <h2><span class="editsection">[<a href="/wiki/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>
4087 Resolving duplicate section names
4092 <h2><span class="editsection">[<a href="/wiki/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>
4093 <h2><span class="editsection">[<a href="/wiki/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>
4098 Resolving duplicate section names with differing case (bug 10721)
4103 <h2><span class="editsection">[<a href="/wiki/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>
4104 <h2><span class="editsection">[<a href="/wiki/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>
4116 Template with sections, __NOTOC__
4123 <h2><span class="editsection">[<a href="/wiki/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>
4124 <h3><span class="editsection">[<a href="/wiki/Template:Sections?action=edit&section=T-1" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h3>
4125 <h2><span class="editsection">[<a href="/wiki/Template:Sections?action=edit&section=T-2" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4126 <h2><span class="editsection">[<a href="/wiki/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>
4131 __NOEDITSECTION__ keyword
4137 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4138 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4143 Link inside a section heading
4145 ==Section with a [[Main Page|link]] in it==
4147 <h2><span class="editsection">[<a href="/wiki/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>
4152 TOC regression (bug 12077)
4159 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4161 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4163 <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>
4166 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4169 <h2><span class="editsection">[<a href="/wiki/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>
4170 <h3><span class="editsection">[<a href="/wiki/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>
4171 <h2><span class="editsection">[<a href="/wiki/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>
4176 BUG 1219 URL next to image (good)
4178 http://example.com [[Image:foobar.jpg]]
4180 <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>
4185 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4188 The line above must have a trailing space!
4191 But just in case it doesn't...
4193 <h1><span class="editsection">[<a href="/wiki/Parser_test?action=edit&section=1" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D">=</span></h1>
4194 <p>The line above must have a trailing space!
4196 <h1><span class="editsection">[<a href="/wiki/Parser_test?action=edit&section=2" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D_2">=</span></h1>
4197 <p>But just in case it doesn't...
4202 Header with special characters (bug 25462)
4204 The tooltips shall not show entities to the user (ie. be double escaped)
4221 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4223 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4225 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4226 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4227 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4228 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4229 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4232 <h2><span class="editsection">[<a href="/wiki/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>
4235 <h2><span class="editsection">[<a href="/wiki/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>
4238 <h2><span class="editsection">[<a href="/wiki/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>
4241 <h2><span class="editsection">[<a href="/wiki/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>
4244 <h2><span class="editsection">[<a href="/wiki/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>
4250 BUG 1219 URL next to image (broken)
4252 http://example.com[[Image:foobar.jpg]]
4254 <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>
4259 Bug 1186 news: in the middle of text
4261 http://en.wikinews.org/wiki/Wikinews:Workplace
4263 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4269 Namespaced link must have a title
4278 Namespaced link must have a title (bad fragment version)
4280 [[Project:#fragment]]
4282 <p>[[Project:#fragment]]
4288 div with no attributes
4290 <div>HTML rocks</div>
4292 <div>HTML rocks</div>
4297 div with double-quoted attribute
4299 <div id="rock">HTML rocks</div>
4301 <div id="rock">HTML rocks</div>
4306 div with single-quoted attribute
4308 <div id='rock'>HTML rocks</div>
4310 <div id="rock">HTML rocks</div>
4315 div with unquoted attribute
4317 <div id=rock>HTML rocks</div>
4319 <div id="rock">HTML rocks</div>
4324 div with illegal double attributes
4326 <div align="center" align="right">HTML rocks</div>
4328 <div align="right">HTML rocks</div>
4333 HTML multiple attributes correction
4335 <p class="error" class="awesome">Awesome!</p>
4337 <p class="awesome">Awesome!</p>
4342 Table multiple attributes correction
4345 !+ class="error" class="awesome"| status
4350 <th class="awesome"> status
4358 <DIV ALIGN="center">HTML ROCKS</DIV>
4360 <div align="center">HTML ROCKS</div>
4366 text with amp in the middle of nowhere
4370 <p>Remember AT&T?
4375 text with character entity: eacute
4377 I always thought é was a cute letter.
4379 <p>I always thought é was a cute letter.
4384 text with undefined character entity: xacute
4386 I always thought &xacute; was a cute letter.
4388 <p>I always thought &xacute; was a cute letter.
4400 [[Media:Foobar.jpg]]
4402 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4407 Media link with text
4409 [[Media:Foobar.jpg|A neat file to look at]]
4411 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4415 # FIXME: this is still bad HTML tag nesting
4417 Media link with nasty text
4418 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4420 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4422 <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>
4427 Media link to nonexistent file (bug 1702)
4429 [[Media:No such.jpg]]
4431 <p><a href="/wiki/Special:Upload?wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4436 Image link to nonexistent file (bug 1850 - good)
4438 [[Image:No such.jpg]]
4440 <p><a href="/wiki/Special:Upload?wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4445 :Image link to nonexistent file (bug 1850 - bad)
4447 [[:Image:No such.jpg]]
4449 <p><a href="/wiki/File:No_such.jpg?action=edit&redlink=1" class="new" title="File:No such.jpg (page does not exist)">Image:No such.jpg</a>
4456 Character reference normalization in link text (bug 1938)
4458 [[Main Page|this&that]]
4460 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4467 Test for unicode normalization
4469 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4473 (bug 19451) Links should refer to the normalized form.
4481 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4482 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4483 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4484 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4485 <a href="/wiki/%D7%90%D6%B7">אַ</a>
4490 Empty attribute crash test (bug 2067)
4492 <font color="">foo</font>
4494 <p><font color="">foo</font>
4499 Empty attribute crash test single-quotes (bug 2067)
4501 <font color=''>foo</font>
4503 <p><font color="">foo</font>
4508 Attribute test: equals, then nothing
4510 <font color=>foo</font>
4517 Attribute test: unquoted value
4519 <font color=x>foo</font>
4521 <p><font color="x">foo</font>
4526 Attribute test: unquoted but illegal value (hash)
4528 <font color=#x>foo</font>
4530 <p><font color="#x">foo</font>
4535 Attribute test: no value
4537 <font color>foo</font>
4539 <p><font color="color">foo</font>
4544 Bug 2095: link with three closing brackets
4548 <p><a href="/wiki/Main_Page">Main Page</a>]
4553 Bug 2095: link with pipe and three closing brackets
4557 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4562 Bug 2095: link with pipe and three closing brackets, version 2
4564 [[Main Page|[http://example.com/]]]
4566 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4576 Template:Dangerous attribute
4578 " onmouseover="alert(document.cookie)
4582 Template:Dangerous style attribute
4584 border-size: expression(alert(document.cookie))
4590 <div style="float: right; {{{1}}}">Magic div</div>
4594 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4596 <div title="{{test}}"></div>
4598 <div title="This is a test template"></div>
4603 Bug 2304: HTML attribute safety (dangerous template; 2309)
4605 <div title="{{dangerous attribute}}"></div>
4607 <div title=""></div>
4612 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4614 <div style="{{dangerous style attribute}}"></div>
4616 <div style="/* insecure input */"></div>
4621 Bug 2304: HTML attribute safety (safe parameter; 2309)
4623 {{div style|width: 200px}}
4625 <div style="float: right; width: 200px">Magic div</div>
4630 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4632 {{div style|width: expression(alert(document.cookie))}}
4634 <div style="/* insecure input */">Magic div</div>
4639 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4641 {{div style|"><script>alert(document.cookie)</script>}}
4643 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4648 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4650 {{div style|" ><script>alert(document.cookie)</script>}}
4652 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4657 Bug 2304: HTML attribute safety (link)
4659 <div title="[[Main Page]]"></div>
4661 <div title="[[Main Page]]"></div>
4666 Bug 2304: HTML attribute safety (italics)
4668 <div title="''foobar''"></div>
4670 <div title="''foobar''"></div>
4675 Bug 2304: HTML attribute safety (bold)
4677 <div title="'''foobar'''"></div>
4679 <div title="'''foobar'''"></div>
4685 Bug 2304: HTML attribute safety (ISBN)
4687 <div title="ISBN 1234567890"></div>
4689 <div title="ISBN 1234567890"></div>
4694 Bug 2304: HTML attribute safety (RFC)
4696 <div title="RFC 1234"></div>
4698 <div title="RFC 1234"></div>
4703 Bug 2304: HTML attribute safety (PMID)
4705 <div title="PMID 1234567890"></div>
4707 <div title="PMID 1234567890"></div>
4712 Bug 2304: HTML attribute safety (web link)
4714 <div title="http://example.com/"></div>
4716 <div title="http://example.com/"></div>
4721 Bug 2304: HTML attribute safety (named web link)
4723 <div title="[http://example.com/ link]"></div>
4725 <div title="[http://example.com/ link]"></div>
4730 Bug 3244: HTML attribute safety (extension; safe)
4732 <div style="<nowiki>background:blue</nowiki>"></div>
4734 <div style="background:blue"></div>
4739 Bug 3244: HTML attribute safety (extension; unsafe)
4741 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4743 <div style="/* insecure input */"></div>
4748 Math section safety when disabled
4750 <math><script>alert(document.cookies);</script></math>
4752 <p><math><script>alert(document.cookies);</script></math>
4756 # More MSIE fun discovered by Tom Gilder
4759 MSIE CSS safety test: spurious slash
4761 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4763 <div style="/* insecure input */">evil</div>
4768 MSIE CSS safety test: hex code
4770 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4772 <div style="/* insecure input */">evil</div>
4777 MSIE CSS safety test: comment in url
4779 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4781 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4786 MSIE CSS safety test: comment in expression
4788 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4790 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4796 Table attribute legitimate extension
4799 !+ style="<nowiki>color:blue</nowiki>"| status
4804 <th style="color:blue"> status
4810 Table attribute safety
4813 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4818 <th style="/* insecure input */"> status
4824 CSS line continuation 1
4826 <div style="background-image: u\ rl(test.jpg);"></div>
4828 <div style="/* insecure input */"></div>
4833 CSS line continuation 2
4835 <div style="background-image: u\ rl(test.jpg); "></div>
4837 <div style="/* insecure input */"></div>
4848 Expansion of multi-line templates in attribute values (bug 6255)
4850 <div style="background: {{identity|#00FF00}}">-</div>
4852 <div style="background: #00FF00">-</div>
4858 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
4860 <div style="background:
4863 <div style="background: #00FF00">-</div>
4868 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
4870 <div style="background: #00FF00">-</div>
4872 <div style="background: #00FF00">-</div>
4877 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
4880 Parser hook: empty input
4893 Parser hook: empty input using terminated empty elements
4906 Parser hook: empty input using terminated empty elements (space before)
4919 Parser hook: basic input
4933 Parser hook: case insensitive
4947 Parser hook: case insensitive, redux
4960 Parser hook: nested tags
4964 <tag><tag></tag></tag>
4975 Parser hook: basic arguments
4977 <tag width=200 height = "100" depth = '50' square></tag>
4996 Parser hook: argument containing a forward slash (bug 5344)
4998 <tag filename='/tmp/bla'></tag>
5004 string(8) "/tmp/bla"
5011 Parser hook: empty input using terminated empty elements (bug 2374)
5025 # </tag> should be output literally since there is no matching tag that begins it
5027 Parser hook: basic arguments using terminated empty elements (bug 2374)
5029 <tag width=200 height = "100" depth = '50' square/>
5052 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5056 Parser hook: static parser hook not inside a comment
5058 <statictag>hello, world</statictag>
5059 <statictag action=flush/>
5067 Parser hook: static parser hook inside a comment
5069 <!-- <statictag>hello, world</statictag> -->
5070 <statictag action=flush/>
5076 # Nested template calls; this case was broken by Parser.php rev 1.506,
5080 Template:One-parameter
5082 (My parameter is: {{{1}}})
5086 Template:Map-one-parameter
5092 Nested template calls
5094 {{Map-one-parameter|One-parameter|param}}
5096 <p>(My parameter is: param)
5105 Sanitizer: Closing of open tags
5107 <s></s><table></table>
5109 <s></s><table></table>
5114 Sanitizer: Closing of open but not closed tags
5123 Sanitizer: Closing of closed but not open tags
5132 Sanitizer: Closing of closed but not open table tags
5134 Table not started</td></tr></table>
5136 <p>Table not started</td></tr></table>
5141 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5143 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5145 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5150 Sanitizer: Validating the contents of the id attribute (bug 4515)
5156 Something, but definitely not <br id="9" />...
5160 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5164 <br id="foo" /><br id="foo" />
5166 Something need to be done. foo-2 ?
5170 Language converter: output gets cut off unexpectedly (bug 5757)
5174 this bit is safe: }-
5176 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5178 then we get cut off here: }-
5180 all additional text is vanished
5182 <p>this bit is safe: }-
5183 </p><p>but if we add a conversion instance: xxx
5184 </p><p>then we get cut off here: }-
5185 </p><p>all additional text is vanished
5190 Self closed html pairs (bug 5487)
5193 <center><font id="bug" />Centered text</center>
5194 <div><font id="bug2" />In div text</div>
5196 <center><font id="bug" />Centered text</center>
5197 <div><font id="bug2" />In div text</div>
5206 Punctuation: nbsp before exclamation
5210 <p>C'est grave !
5215 Punctuation: CSS !important (bug 11874)
5217 <div style="width:50% !important">important</div>
5219 <div style="width:50% !important">important</div>
5224 Punctuation: CSS ! important (bug 11874; with space after)
5226 <div style="width:50% ! important">important</div>
5228 <div style="width:50% ! important">important</div>
5234 HTML bullet list, closed tags (bug 5497)
5249 HTML bullet list, unclosed tags (bug 5497)
5266 HTML ordered list, closed tags (bug 5497)
5281 HTML ordered list, unclosed tags (bug 5497)
5298 HTML nested bullet list, closed tags (bug 5497)
5323 HTML nested bullet list, open tags (bug 5497)
5348 HTML nested ordered list, closed tags (bug 5497)
5373 HTML nested ordered list, open tags (bug 5497)
5398 HTML ordered list item with parameters oddity
5400 <ol><li id="fragment">One</li></ol>
5402 <ol><li id="fragment">One</li></ol>
5407 bug 5918: autonumbering
5409 [http://first/] [http://second] [ftp://ftp]
5413 [mailto:enclosed@mail.tld With target]
5415 [mailto:enclosed@mail.tld]
5417 mailto:inline@mail.tld
5419 <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>
5420 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
5421 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
5422 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
5423 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
5429 # Security and HTML correctness
5430 # From Nick Jenkins' fuzz testing
5434 Fuzz testing: Parser13
5449 Fuzz testing: Parser14
5454 <h2><span class="editsection">[<a href="/wiki/Parser_test?action=edit&section=1" title="Edit section: onmouseover=">edit</a>]</span> <span class="mw-headline" id="onmouseover.3D"> onmouseover= </span></h2>
5455 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5457 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5464 Fuzz testing: Parser14-table
5469 <h2><span class="editsection">[<a href="/wiki/Parser_test?action=edit&section=1" title="Edit section: a">edit</a>]</span> <span class="mw-headline" id="a">a</span></h2>
5470 <table style="__TOC__">
5476 # Known to produce bogus xml (extra </td>)
5478 Fuzz testing: Parser16
5498 Fuzz testing: Parser21
5501 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5506 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5516 Fuzz testing: Parser22
5518 http://===r:::https://b
5522 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
5530 # Known to produce bad XML for now
5532 Fuzz testing: Parser24
5539 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5540 <br style="onmouseover='alert(document.cookie);' " />
5542 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5547 <u class="|">}}}} >
5548 <br style="onmouseover='alert(document.cookie);'" />
5550 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5559 # Note: the current result listed for this is not what the original one was,
5560 # but the original bug was JavaScript injection, which is fixed in any case.
5561 # It's not clear that the original result listed was any more correct than the
5562 # current one. Original result:
5565 # <li class="||">
5566 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5568 Fuzz testing: Parser25 (bug 6055)
5574 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5576 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5581 Fuzz testing: URL adjacent extension (with space, clean)
5584 http://example.com <nowiki>junk</nowiki>
5586 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
5591 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5594 http://example.com<nowiki>junk</nowiki>
5596 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
5601 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5604 http://example.com<pre>junk</pre>
5606 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
5611 Fuzz testing: image with bogus manual thumbnail
5613 [[Image:foobar.jpg|thumbnail= ]]
5615 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5620 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5622 <pre dir=" "></pre>
5624 <pre dir=" "></pre>
5629 Parsing optional HTML elements (Bug 6171)
5634 <td> Some tabular data</td>
5635 <td> More tabular data ...
5636 <td> And yet som tabular data</td>
5642 <td> Some tabular data</td>
5643 <td> More tabular data ...
5644 </td><td> And yet som tabular data</td>
5651 Correct handling of <td>, <tr> (Bug 6171)
5656 <td> Some tabular data</td>
5657 <td> More tabular data ...</td>
5658 <td> And yet som tabular data</td>
5664 <td> Some tabular data</td>
5665 <td> More tabular data ...</td>
5666 <td> And yet som tabular data</td>
5674 Parsing crashing regression (fr:JavaScript)
5678 <p></body></x>
5683 Inline wiki vs wiki block nesting
5689 <p><b>Bold paragraph</b>
5690 </p><p>New wiki paragraph
5695 Inline HTML vs wiki block nesting
5703 <p><b>Bold paragraph</b>
5704 </p><p>New wiki paragraph
5708 # Original result was this:
5709 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5711 # While that might be marginally more intuitive, maybe, the six-apostrophe
5712 # construct is clearly pathological and the result stated here (which is what
5713 # the parser actually does) is about as reasonable as anything.
5715 Mixing markup for italics and bold
5718 '''bold''''''bold''bolditalics'''''
5720 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5728 Article for special page transclusion test
5732 Special page transclusion
5735 {{Special:Prefixindex/Xyzzyx}}
5739 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5744 Special page transclusion twice (bug 5021)
5747 {{Special:Prefixindex/Xyzzyx}}
5748 {{Special:Prefixindex/Xyzzyx}}
5752 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5755 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5760 Transclusion of default MediaWiki message
5762 {{MediaWiki:Mainpage}}
5769 Transclusion of nonexistent MediaWiki message
5771 {{MediaWiki:Mainpagexxx}}
5773 <p><a href="/wiki/MediaWiki:Mainpagexxx?action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
5778 Transclusion of MediaWiki message with underscore
5780 {{MediaWiki:history_short}}
5787 Transclusion of MediaWiki message with space
5789 {{MediaWiki:history short}}
5796 Invalid header with following text
5806 Section extraction test (section 0)
5826 Section extraction test (section 1)
5848 Section extraction test (section 2)
5869 Section extraction test (section 3)
5889 Section extraction test (section 4)
5913 Section extraction test (section 5)
5933 Section extraction test (section 6)
5954 Section extraction test (section 7)
5974 Section extraction test (section 8)
5994 Section extraction test (section 9)
6015 Section extraction test (section 10)
6035 Section extraction test (nonexistent section 11)
6054 Section extraction test with bogus heading (section 1)
6059 ==bogus== not a legal section
6063 ==bogus== not a legal section
6067 Section extraction test with bogus heading (section 2)
6072 ==bogus== not a legal section
6079 Section extraction test with comment after heading (section 1)
6091 Section extraction test with comment after heading (section 2)
6103 Section extraction test with bogus <nowiki> heading (section 1)
6108 ==bogus== <nowiki>not a legal section</nowiki>
6112 ==bogus== <nowiki>not a legal section</nowiki>
6116 Section extraction test with bogus <nowiki> heading (section 2)
6121 ==bogus== <nowiki>not a legal section</nowiki>
6128 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6129 # instead of respecting commented sections
6131 Section extraction prefixed by comment (section 1)
6142 Section extraction prefixed by comment (section 2)
6153 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6154 # instead of respecting HTML-style headings
6156 Section extraction, mixed wiki and html (section 1)
6172 Section extraction, mixed wiki and html (section 2)
6188 # Formerly testing for bug 3342
6190 Section extraction, heading surrounded by <noinclude>
6194 <noinclude>==unmarked==</noinclude>
6200 # Test behaviour of bug 19910
6202 Sectiion with all-equals
6207 The line above must have a trailing space
6210 But just in case it doesn't...
6214 But just in case it doesn't...
6218 Section replacement test (section 0)
6249 Section replacement test (section 1)
6278 Section replacement test (section 2)
6308 Section replacement test (section 3)
6339 Section replacement test (section 4)
6366 Section replacement test (section 5)
6397 Section replacement test (section 6)
6427 Section replacement test (section 7)
6458 Section replacement test (section 8)
6489 Section replacement test (section 9)
6518 Section replacement test (section 10)
6548 Section replacement test with initial whitespace (bug 13728)
6552 Preformatted initial line
6556 Preformatted initial line
6563 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6575 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6588 Section extraction, <pre> around bogus header (bug 10309)
6605 Section replacement, <pre> around bogus header (bug 10309)
6607 noxml replace=2,"xxx"
6628 Handling of 
 in URLs
6632 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
6639 5 quotes, code coverage +1 line
6646 Special:Search page linking.
6650 <p><a href="/wiki/Special:Search">Special:Search</a>
6665 * {{SUBJECTPAGENAME}}
6666 * {{SUBJECTPAGENAMEE}}
6673 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6675 <ul><li> Parser test
6676 </li><li> Parser test
6677 </li><li> Parser test
6678 </li><li> Parser_test
6679 </li><li> Parser test
6680 </li><li> Parser_test
6681 </li><li> Talk:Parser test
6682 </li><li> Talk:Parser_test
6683 </li><li> Parser test
6684 </li><li> Parser_test
6691 </li><li> <a href="/wiki/Template:Dynamic?action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
6695 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6705 image4 |300px| centre
6706 image5.svg| http://///////
6711 <ul class="gallery">
6712 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6713 <div style="height: 150px;">Image1.png</div>
6714 <div class="gallerytext">
6717 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6718 <div style="height: 150px;">Image2.gif</div>
6719 <div class="gallerytext">
6724 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6725 <div style="height: 150px;">Image3</div>
6726 <div class="gallerytext">
6729 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6730 <div style="height: 150px;">Image4</div>
6731 <div class="gallerytext">
6736 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6737 <div style="height: 150px;">Image5.svg</div>
6738 <div class="gallerytext">
6739 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
6743 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6744 <div style="height: 150px;">* image6</div>
6745 <div class="gallerytext">
6753 Gallery (with options)
6755 <gallery widths='60px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
6756 File:Nonexistant.jpg|caption
6757 File:Nonexistant.jpg
6758 image:foobar.jpg|some '''caption''' [[Main Page]]
6762 <ul class="gallery" style="max-width: 202px;_width: 202px;">
6763 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page">Main Page</a></li>
6764 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6765 <div style="height: 70px;">Nonexistant.jpg</div>
6766 <div class="gallerytext">
6771 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6772 <div style="height: 70px;">Nonexistant.jpg</div>
6773 <div class="gallerytext">
6776 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6777 <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>
6778 <div class="gallerytext">
6779 <p>some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
6783 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6784 <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>
6785 <div class="gallerytext">
6793 gallery (with showfilename option)
6795 <gallery showfilename>
6796 File:Nonexistant.jpg|caption
6797 File:Nonexistant.jpg
6798 image:foobar.jpg|some '''caption''' [[Main Page]]
6802 <ul class="gallery">
6803 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6804 <div style="height: 150px;">Nonexistant.jpg</div>
6805 <div class="gallerytext">
6806 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
6811 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6812 <div style="height: 150px;">Nonexistant.jpg</div>
6813 <div class="gallerytext">
6814 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
6818 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6819 <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>
6820 <div class="gallerytext">
6821 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
6822 some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
6826 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6827 <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>
6828 <div class="gallerytext">
6829 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
6838 HTML Hex character encoding (spells the word "JavaScript")
6840 JavaScript
6842 <p>JavaScript
6847 HTML Hex character encoding bogus encoding (bug 26437 regression check)
6851 <p>&#xsee;&#XSEE;
6856 HTML Hex character encoding mixed case
6865 __FORCETOC__ override
6877 ISBN 978-0-1234-56 789
6879 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
6884 ISBN followed by 5 spaces
6895 ISBN ISBN 1234567890
6897 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
6902 Bug 22905: <abbr> followed by ISBN followed by </a>
6904 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
6906 <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>
6915 <p>RFC <a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc1234">RFC 1234</a>
6920 Double RFC with a wiki link
6924 <p>RFC <a href="/wiki/RFC_1234?action=edit&redlink=1" class="new" title="RFC 1234 (page does not exist)">RFC 1234</a>
6933 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc983">RFC 983</a> 987
6938 Centre-aligned image
6940 [[Image:foobar.jpg|centre]]
6942 <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>
6949 [[Image:foobar.jpg|none]]
6951 <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>
6956 Width + Height sized image (using px) (height is ignored)
6958 [[Image:foobar.jpg|640x480px]]
6960 <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>
6965 Width-sized image (using px, no following whitespace)
6967 [[Image:foobar.jpg|640px]]
6969 <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>
6974 Width-sized image (using px, with following whitespace - test regression from r39467)
6976 [[Image:foobar.jpg|640px ]]
6978 <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>
6983 Width-sized image (using px, with preceding whitespace - test regression from r39467)
6985 [[Image:foobar.jpg| 640px]]
6987 <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>
6992 Another italics / bold test
7000 # Note the results may be incorrect, as parserTest output included this:
7001 # XML error: Mismatched tag at byte 6120:
7002 # ...<dd> </dt></dl> </dd...
7010 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7021 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7023 Images with the "|" character in the comment
7025 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7027 <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>
7032 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7034 <html><script>alert(1);</script></html>
7036 <p><html><script>alert(1);</script></html>
7041 HTML with raw HTML ($wgRawHtml==true)
7045 <html><script>alert(1);</script></html>
7047 <p><script>alert(1);</script>
7052 Parents of subpages, one level up
7054 subpage title=[[Subpage test/L1/L2/L3]]
7058 <p><a href="/wiki/Subpage_test/L1/L2?action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (page does not exist)">L2</a>
7064 Parents of subpages, one level up, not named
7066 subpage title=[[Subpage test/L1/L2/L3]]
7070 <p><a href="/wiki/Subpage_test/L1/L2?action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (page does not exist)">Subpage test/L1/L2</a>
7077 Parents of subpages, two levels up
7079 subpage title=[[Subpage test/L1/L2/L3]]
7085 <p><a href="/wiki/Subpage_test/L1?action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">L1</a>2
7086 </p><p><a href="/wiki/Subpage_test/L1?action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">L1l</a>
7091 Parents of subpages, two levels up, without trailing slash or name.
7093 subpage title=[[Subpage test/L1/L2/L3]]
7102 Parents of subpages, two levels up, with lots of extra trailing slashes.
7104 subpage title=[[Subpage test/L1/L2/L3]]
7108 <p><a href="/wiki/Subpage_test/L1////?action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7113 Definition list code coverage
7119 <dl><dt> title  </dt><dd> def
7120 </dd><dt> title </dt><dd> def
7121 </dd><dt>title</dt><dd> def
7127 Don't fall for the self-closing div
7129 <div>hello world</div/>
7131 <div>hello world</div>
7140 <p>[[:Template:Msg]]
7149 <p><a href="/wiki/Template:QUERTY?action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7153 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7155 Always escape literal '>' in output, not just after '<'
7169 <p>This is a test template
7170 This is a test template
7182 Inclusion of !userCanEdit() content
7186 <h2><span class="editsection">[<a href="/wiki/MediaWiki:Fake?action=edit&section=T-1" title="MediaWiki:Fake">edit</a>]</span> <span class="mw-headline" id="header">header</span></h2>
7192 Out-of-order TOC heading levels
7201 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7203 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7205 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7206 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7209 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7211 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7212 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7217 <h2><span class="editsection">[<a href="/wiki/Parser_test?action=edit&section=1" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2">2</span></h2>
7218 <h6><span class="editsection">[<a href="/wiki/Parser_test?action=edit&section=2" title="Edit section: 6">edit</a>]</span> <span class="mw-headline" id="6">6</span></h6>
7219 <h3><span class="editsection">[<a href="/wiki/Parser_test?action=edit&section=3" title="Edit section: 3">edit</a>]</span> <span class="mw-headline" id="3">3</span></h3>
7220 <h1><span class="editsection">[<a href="/wiki/Parser_test?action=edit&section=4" title="Edit section: 1">edit</a>]</span> <span class="mw-headline" id="1">1</span></h1>
7221 <h5><span class="editsection">[<a href="/wiki/Parser_test?action=edit&section=5" title="Edit section: 5">edit</a>]</span> <span class="mw-headline" id="5">5</span></h5>
7222 <h2><span class="editsection">[<a href="/wiki/Parser_test?action=edit&section=6" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2_2">2</span></h2>
7228 ISBN with a dummy number
7238 ISBN with space-delimited number
7242 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7248 ISBN with multiple spaces, no number
7267 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7268 </p><p>ISBN 12345678901
7274 ISBN with trailing year (bug 8110)
7276 ISBN 1-234-56789-0 - 2006
7278 ISBN 1 234 56789 0 - 2006
7280 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7281 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7289 {{anchorencode:foo bar©#%n}}
7291 <p>foo_bar.C2.A9.23.25n
7296 anchorencode trims spaces
7298 {{anchorencode: __pretty__please__}}
7305 anchorencode deals with links
7307 {{anchorencode: [[hello|world]] [[hi]]}}
7314 anchorencode deals with templates
7316 {{anchorencode: {{Foo}} }}
7323 anchorencode encodes like the TOC generator: (bug 18431)
7325 === _ +:.3A%3A&&]] ===
7326 {{anchorencode: _ +:.3A%3A&&]] }}
7329 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7330 <p>.2B:.3A.253A.26.26.5D.5D
7334 # Expected output in the following test is not necessarily expected (there
7335 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7336 # only testing for well-formedness.
7338 Bug 6200: blockquotes and paragraph formatting
7358 Bug 8293: Use of center tag ruins paragraph formatting
7380 ### Language variants related tests
7383 Self-link in language variants
7385 title=[[Dunav]] language=sr
7387 Both [[Dunav]] and [[Дунав]] are names for this river.
7389 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7395 Link to pages in language variants
7399 Main Page can be written as [[Маин Паге]]
7401 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7407 Multiple links to pages in language variants
7411 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7413 <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>.
7419 Simple template in language variants
7425 <p>This is a test template
7431 Template with explicit namespace in language variants
7437 <p>This is a test template
7443 Basic test for template parameter in language variants
7447 {{парамтест|param=foo}}
7449 <p>This is a test template with parameter foo
7455 Simple category in language variants
7459 [[Category:МедиаWики Усер'с Гуиде]]
7461 <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>
7466 Stripping -{}- tags (language variants)
7470 Latin proverb: -{Ne nuntium necare}-
7472 <p>Latin proverb: Ne nuntium necare
7478 Prevent conversion with -{}- tags (language variants)
7480 language=sr variant=sr-ec
7482 Latinski: -{Ne nuntium necare}-
7484 <p>Латински: Ne nuntium necare
7490 Prevent conversion of text with -{}- tags (language variants)
7492 language=sr variant=sr-ec
7494 Latinski: -{Ne nuntium necare}-
7496 <p>Латински: Ne nuntium necare
7502 Prevent conversion of links with -{}- tags (language variants)
7504 language=sr variant=sr-ec
7508 <p><a href="/wiki/Main_Page">Main Page</a>
7514 -{}- tags within headlines (within html for parserConvert())
7516 language=sr variant=sr-ec
7520 <h2><span class="editsection">[<a href="/wiki/Parser_test?action=edit&section=1" title="Уреди део: Naslov">уреди</a>]</span> <span class="mw-headline" id="-.7BNaslov.7D-"> Naslov </span></h2>
7526 Explicit definition of language variant alternatives
7528 language=zh variant=zh-tw
7530 -{zh:China;zh-tw:Taiwan}-, not China
7532 <p>Taiwan, not China
7538 Explicit session-wise language variant mapping (A flag and - flag)
7540 language=zh variant=zh-tw
7542 Taiwan is not China.
7543 But -{A|zh:China;zh-tw:Taiwan}- is China,
7544 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
7545 and -{China}- is China.
7547 <p>Taiwan is not China.
7548 But Taiwan is Taiwan,
7549 (This should be stripped!)
7555 Explicit session-wise language variant mapping (H flag for hide)
7557 language=zh variant=zh-tw
7559 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
7562 <p>(This should be stripped!)
7568 Adding explicit conversion rule for title (T flag)
7570 language=zh variant=zh-tw showtitle
7572 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7575 <p>Should be stripped!
7580 Testing that changing the language variant here in the tests actually works
7582 language=zh variant=zh showtitle
7584 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7587 <p>Should be stripped!
7592 Bug 24072: more test on conversion rule for title
7594 language=zh variant=zh-tw showtitle
7596 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7597 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
7600 <p>This should be stripped!
7601 This won't take interferes with the title rule.
7606 Raw output of variant escape tags (R flag)
7608 language=zh variant=zh-tw
7610 Raw: -{R|zh:China;zh-tw:Taiwan}-
7612 <p>Raw: zh:China;zh-tw:Taiwan
7617 Nested using of manual convert syntax
7619 language=zh variant=zh-hk
7621 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
7623 <p>Nested: Hello Hong Kong!
7628 Do not convert roman numbers to language variants
7630 language=sr variant=sr-ec
7634 <p>Фридрих IV је цар.
7639 Unclosed language converter markup "-{"
7650 Don't convert raw rule "-{R|=>}-" to "=>"
7667 Bug 529: Uncovered bullet
7678 Bug 529: Uncovered table already at line-start
7701 Bug 529: Uncovered bullet in parser function result
7703 * Foo {{lc:{{bullet}} }}
7712 Bug 5678: Double-parsed template argument
7714 {{lc:{{{1}}}|hello}}
7721 Bug 5678: Double-parsed template invocation
7723 {{lc:{{paramtest {{!}} param = hello }} }}
7725 <p>{{paramtest | param = hello }}
7730 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
7756 Morwen/13: Unclosed link followed by heading
7763 <h2><span class="editsection">[<a href="/wiki/Parser_test?action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
7768 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
7775 <h1> <span class="mw-headline" id="heading">heading</span></h1>
7780 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
7787 <h2><span class="editsection">[<a href="/wiki/Parser_test?action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
7802 Paragraphs inside divs (no extra line breaks)
7814 Paragraphs inside divs (extra line break on open)
7829 Paragraphs inside divs (extra line break on close)
7844 Paragraphs inside divs (extra line break on open and close)
7861 Nesting tags, paragraphs on lines which begin with <div>
7865 <div></div><strong>A
7874 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
7876 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
7880 <blockquote>Line one
7882 Line two</blockquote>
7884 <blockquote>Line one
7885 Line two</blockquote>
7890 Bug 6200: paragraphs inside blockquotes (extra line break on open)
7897 Line two</blockquote>
7902 Line two</blockquote>
7907 Bug 6200: paragraphs inside blockquotes (extra line break on close)
7911 <blockquote>Line one
7916 <blockquote>Line one
7924 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
7943 Paragraphs inside blockquotes/divs (no extra line breaks)
7945 <blockquote><div>Line one
7947 Line two</div></blockquote>
7949 <blockquote><div>Line one
7950 Line two</div></blockquote>
7955 Paragraphs inside blockquotes/divs (extra line break on open)
7960 Line two</div></blockquote>
7965 Line two</div></blockquote>
7970 Paragraphs inside blockquotes/divs (extra line break on close)
7972 <blockquote><div>Line one
7977 <blockquote><div>Line one
7985 Paragraphs inside blockquotes/divs (extra line break on open and close)
8002 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8004 wgLinkHolderBatchSize=0
8010 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw">meatball:1</a>
8011 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw">meatball:2</a>
8012 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw">meatball:3</a>
8017 Free external link invading image caption
8019 [[Image:Foobar.jpg|thumb|http://x|hello]]
8021 <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>
8026 Bug 15196: localised external link numbers
8030 [http://en.wikipedia.org/]
8032 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8037 Multibyte character in padleft
8039 {{padleft:-Hello|7|Æ}}
8046 Multibyte character in padright
8048 {{padright:Hello-|7|Æ}}
8061 <p><span class="mw-formatted-date" title="2009-03-24"><a href="/wiki/2009?action=edit&redlink=1" class="new" title="2009 (page does not exist)">2009</a>-<a href="/wiki/March_24?action=edit&redlink=1" class="new" title="March 24 (page does not exist)">03-24</a></span>
8066 formatdate parser function
8068 {{#formatdate:2009-03-24}}
8070 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8075 formatdate parser function, with default format
8077 {{#formatdate:2009-03-24|mdy}}
8079 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8084 Linked date with autoformatting disabled
8086 wgUseDynamicDates=false
8090 <p><a href="/wiki/2009-03-24?action=edit&redlink=1" class="new" title="2009-03-24 (page does not exist)">2009-03-24</a>
8095 Spacing of numbers in formatted dates
8097 {{#formatdate:January 15}}
8099 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8104 Spacing of numbers in formatted dates (linked)
8106 wgUseDynamicDates=true
8110 <p><span class="mw-formatted-date" title="01-15"><a href="/wiki/January_15?action=edit&redlink=1" class="new" title="January 15 (page does not exist)">January 15</a></span>
8123 Edit comment with link
8127 I like the [[Main Page]] a lot
8129 I like the <a href="/wiki/Main_Page">Main Page</a> a lot
8133 Edit comment with link and link text
8137 I like the [[Main Page|best pages]] a lot
8139 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8143 Edit comment with link and link text with suffix
8147 I like the [[Main Page|best page]]s a lot
8149 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8153 Edit comment with section link (non-local, eg in history list)
8155 comment title=[[Main Page]]
8157 /* External links */ removed bogus entries
8159 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
8163 Edit comment with section link (local, eg in diff view)
8165 comment local title=[[Main Page]]
8167 /* External links */ removed bogus entries
8169 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
8173 Edit comment with subpage link (bug 14080)
8177 title=[[Subpage test]]
8179 Poked at a [[/subpage]] here...
8181 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8185 Edit comment with subpage link and link text (bug 14080)
8189 title=[[Subpage test]]
8191 Poked at a [[/subpage|neat little page]] here...
8193 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8197 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8200 title=[[Subpage test]]
8202 Poked at a [[/subpage]] here...
8204 Poked at a <a href="/wiki//subpage?action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8208 Edit comment with bare anchor link (local, as on diff)
8216 <a href="#section">#section</a>
8220 Edit comment with bare anchor link (non-local, as on history)
8227 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8231 Space normalisation on autocomment (bug 22784)
8236 /* __hello__world__ */
8238 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
8242 percent-encoding and + signs in comments (Bug 26410)
8246 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8248 <a href="/wiki/ABC3D%25_%2B%2B?action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">ABC3D% ++</a> <a href="/wiki/ABC3D%25_%2B%2B?action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">+%20</a>
8252 Bad images - basic functionality
8259 Bad images - bug 16039: text after bad image disappears
8271 Verify that displaytitle works (bug #22501) no displaytitle
8275 wgAllowDisplayTitle=true
8276 wgRestrictDisplayTitle=false
8278 this is not the the title
8281 <p>this is not the the title
8286 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8291 wgAllowDisplayTitle=true
8292 wgRestrictDisplayTitle=false
8294 this is not the the title
8295 {{DISPLAYTITLE:whatever}}
8298 <p>this is not the the title
8303 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8308 wgAllowDisplayTitle=true
8309 wgRestrictDisplayTitle=true
8311 this is not the the title
8312 {{DISPLAYTITLE:whatever}}
8315 <p>this is not the the title
8320 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8325 wgAllowDisplayTitle=true
8326 wgRestrictDisplayTitle=true
8328 this is not the the title
8329 {{DISPLAYTITLE:screen}}
8332 <p>this is not the the title
8337 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8342 wgAllowDisplayTitle=false
8344 this is not the the title
8345 {{DISPLAYTITLE:screen}}
8348 <p>this is not the the title
8349 <a href="/wiki/Template:DISPLAYTITLE:screen?action=edit&redlink=1" class="new" title="Template:DISPLAYTITLE:screen (page does not exist)">Template:DISPLAYTITLE:screen</a>
8354 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8359 wgAllowDisplayTitle=false
8361 this is not the the title
8364 <p>this is not the the title
8369 preload: check <noinclude> and <includeonly>
8373 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8379 preload: check <onlyinclude>
8383 Goodbye <onlyinclude>Hello world</onlyinclude>
8389 preload: can pass tags through if we want to
8393 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8395 <includeonly>Hello world</includeonly>
8399 preload: check that it doesn't try to do tricks
8403 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8405 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8409 Play a bit with r67090 and bug 3158
8413 <div style="width:50% !important"> </div>
8414 <div style="width:50% !important"> </div>
8415 <div style="width:50% !important"> </div>
8416 <div style="border : solid;"> </div>
8418 <div style="width:50% !important"> </div>
8419 <div style="width:50% !important"> </div>
8420 <div style="width:50% !important"> </div>
8421 <div style="border : solid;"> </div>
8426 HTML5 data attributes
8428 <span data-foo="bar">Baz</span>
8429 <p data-abc-def_hij="">Quuz</p>
8431 <p><span data-foo="bar">Baz</span>
8433 <p data-abc-def_hij="">Quuz</p>
8438 percent-encoding and + signs in internal links (Bug 26410)
8440 [[User:+%]] [[Page+title%]]
8441 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
8442 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
8443 [[%33%45]] [[%33%45+]]
8445 <p><a href="/wiki/User:%2B%25?action=edit&redlink=1" class="new" title="User:+% (page does not exist)">User:+%</a> <a href="/wiki/Page%2Btitle%25?action=edit&redlink=1" class="new" title="Page+title% (page does not exist)">Page+title%</a>
8446 <a href="/wiki/%25%2B?action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+</a> <a href="/wiki/%25%2B?action=edit&redlink=1" class="new" title="%+ (page does not exist)">%20</a> <a href="/wiki/%25%2B?action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+ </a> <a href="/wiki/%25%2Br?action=edit&redlink=1" class="new" title="%+r (page does not exist)">%+r</a>
8447 <a href="/wiki/%25?action=edit&redlink=1" class="new" title="% (page does not exist)">%</a> <a href="/wiki/%2B?action=edit&redlink=1" class="new" title="+ (page does not exist)">+</a> <a href="/wiki/Special:Upload?wpDestFile=%25%2Babc9" class="new" title="File:%+abc9">bar</a>
8448 <a href="/wiki/3E?action=edit&redlink=1" class="new" title="3E (page does not exist)">3E</a> <a href="/wiki/3E%2B?action=edit&redlink=1" class="new" title="3E+ (page does not exist)">3E+</a>
8453 Special characters in embedded file links (bug 27679)
8455 [[File:Contains & ampersand.jpg]]
8456 [[File:Does not exist.jpg|Title with & ampersand]]
8458 <p><a href="/wiki/Special:Upload?wpDestFile=Contains_%26_ampersand.jpg" class="new" title="File:Contains & ampersand.jpg">File:Contains & ampersand.jpg</a>
8459 <a href="/wiki/Special:Upload?wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
8476 Bug#542 Link text shouldn't be duplicated in title attributes
8478 [[A]] [[a]] [[Ä]] [[ä]]
8480 <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>
8490 Try for 100% code coverage