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 href="http://example.com/" class="external free" rel="nofollow">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 href="http://www.example.com/" class="external text" rel="nofollow">Example</a></dt><dd>Something about it
537 Definition list with wikilink containing colon
539 ; [[Help:FAQ]]: The least-read page on Wikipedia
541 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
546 # At Brion's and JeLuF's insistence... :)
548 Definition list with news link containing colon
550 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
552 <dl><dt> <a href="news:alt.wikipedia.rox" class="external free" rel="nofollow">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 href="news:alt.wikipedia.rox" class="external free" rel="nofollow">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 href="http://www.wikipedia2.org/" class="external text" rel="nofollow">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 href="http://example.com" class="external free" rel="nofollow">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 href="http://example.com" class="external autonumber" rel="nofollow">[1]</a>
638 Numbered: <a href="http://example.net" class="external autonumber" rel="nofollow">[2]</a>
639 Numbered: <a href="http://example.com" class="external autonumber" rel="nofollow">[3]</a>
644 External links: specified text
646 Specified text: [http://example.com link]
648 <p>Specified text: <a href="http://example.com" class="external text" rel="nofollow">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 href="http://example.com" class="external text" rel="nofollow">link</a>s
662 External links: dollar sign in URL
664 http://example.com/1$2345
666 <p><a href="http://example.com/1$2345" class="external free" rel="nofollow">http://example.com/1$2345</a>
671 External links: dollar sign in URL (named)
673 [http://example.com/1$2345]
675 <p><a href="http://example.com/1$2345" class="external autonumber" rel="nofollow">[1]</a>
680 External links: open square bracket forbidden in URL (bug 4377)
682 http://example.com/1[2345
684 <p><a href="http://example.com/1" class="external free" rel="nofollow">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 href="http://example.com/1" class="external text" rel="nofollow">[2345</a>
698 External links: nowiki in URL link text (bug 6230)
700 [http://example.com/ <nowiki>''example site''</nowiki>]
702 <p><a href="http://example.com/" class="external text" rel="nofollow">''example site''</a>
707 External links: newline forbidden in text (bug 6230 regression check)
709 [http://example.com/ first
712 <p>[<a href="http://example.com/" class="external free" rel="nofollow">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 href="ftp://example.com/test.jpg" class="external free" rel="nofollow">ftp://example.com/test.jpg</a>
745 External links: terminating separator
747 Terminating separator: http://example.com/thing,
749 <p>Terminating separator: <a href="http://example.com/thing" class="external free" rel="nofollow">http://example.com/thing</a>,
754 External links: intervening separator
756 Intervening separator: http://example.com/1,2,3
758 <p>Intervening separator: <a href="http://example.com/1,2,3" class="external free" rel="nofollow">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 href="http://example.com/thing?url=http://example.com" class="external text" rel="nofollow">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 href="ftp://example.com?url=http://example.com" class="external text" rel="nofollow">link</a>
781 External links: URL in text
783 URL in text: [http://example.com http://example.com]
785 <p>URL in text: <a href="http://example.com" class="external free" rel="nofollow">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 href="http://example.com" class="external text" rel="nofollow"><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 href="http://x&y" class="external free" rel="nofollow">http://x&y</a>
808 External links: encoded ampersand
810 Old & use: http://x&y
812 <p>Old & use: <a href="http://x&y" class="external free" rel="nofollow">http://x&y</a>
817 External links: encoded equals (bug 6102)
819 http://example.com/?foo=bar
821 <p><a href="http://example.com/?foo=bar" class="external free" rel="nofollow">http://example.com/?foo=bar</a>
826 External links: [raw ampersand]
828 Old & use: [http://x&y]
830 <p>Old & use: <a href="http://x&y" class="external autonumber" rel="nofollow">[1]</a>
835 External links: [encoded ampersand]
837 Old & use: [http://x&y]
839 <p>Old & use: <a href="http://x&y" class="external autonumber" rel="nofollow">[1]</a>
844 External links: [encoded equals] (bug 6102)
846 [http://example.com/?foo=bar]
848 <p><a href="http://example.com/?foo=bar" class="external autonumber" rel="nofollow">[1]</a>
853 External links: [IDN ignored character reference in hostname; strip it right off]
855 [http://e‌xample.com/]
857 <p><a href="http://example.com/" class="external autonumber" rel="nofollow">[1]</a>
862 External links: IDN ignored character reference in hostname; strip it right off
864 http://e‌xample.com/
866 <p><a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a>
871 External links: www.jpeg.org (bug 554)
875 <p><a href="http://www.jpeg.org" class="external free" rel="nofollow">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 href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp" class="external autonumber" rel="nofollow">[1]</a>
889 BUG 361: URL inside bracketed URL
891 [http://www.example.com/foo http://www.example.com/bar]
893 <p><a href="http://www.example.com/foo" class="external text" rel="nofollow">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 href="http://www.example.com/foo?=http://www.example.com/bar" class="external free" rel="nofollow">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 href="http://www.example.com/" class="external free" rel="nofollow">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 href="http://www.example.com/" class="external free" rel="nofollow">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 href="http://www.example.com/" class="external text" rel="nofollow"><hello> stuff</a>
934 BUG 289: literal ">"-token in bracketed URL
936 [http://www.example.com/<b>html</b> stuff]
938 <p><a href="http://www.example.com/" class="external text" rel="nofollow"><b>html</b> stuff</a>
943 BUG 289: literal double quote at end of URL
945 http://www.example.com/"hello"
947 <p><a href="http://www.example.com/" class="external free" rel="nofollow">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 href="http://www.example.com/" class="external text" rel="nofollow">"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 href="http://www.example.com" class="external text" rel="nofollow">test</a>
970 External links: wiki links within external link (Bug 3695)
972 [http://example.com [[wikilink]] embedded in ext link]
974 <p><a href="http://example.com" class="external text" rel="nofollow"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a href="http://example.com" class="external text" rel="nofollow"> embedded in ext link</a>
979 BUG 787: Links with one slash after the url protocol are invalid
983 [http:/example.com title]
986 </p><p>[http:/example.com title]
991 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
993 ''[http://example.com text'']
994 [http://example.com '''text]'''
995 ''Something [http://example.com in italic'']
996 ''Something [http://example.com mixed''''', even bold]'''
997 '''''Now [http://example.com both''''']
999 <p><a href="http://example.com" class="external text" rel="nofollow"><i>text</i></a>
1000 <a href="http://example.com" class="external text" rel="nofollow"><b>text</b></a>
1001 <i>Something </i><a href="http://example.com" class="external text" rel="nofollow"><i>in italic</i></a>
1002 <i>Something </i><a href="http://example.com" class="external text" rel="nofollow"><i>mixed</i><b>, even bold</b></a>
1003 <i><b>Now </b></i><a href="http://example.com" class="external text" rel="nofollow"><i><b>both</b></i></a>
1009 Bug 4781: %26 in URL
1011 http://www.example.com/?title=AT%26T
1013 <p><a href="http://www.example.com/?title=AT%26T" class="external free" rel="nofollow">http://www.example.com/?title=AT%26T</a>
1018 Bug 4781, 5267: %26 in URL
1020 http://www.example.com/?title=100%25_Bran
1022 <p><a href="http://www.example.com/?title=100%25_Bran" class="external free" rel="nofollow">http://www.example.com/?title=100%25_Bran</a>
1027 Bug 4781, 5267: %28, %29 in URL
1029 http://www.example.com/?title=Ben-Hur_%281959_film%29
1031 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external free" rel="nofollow">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
1037 Bug 4781: %26 in autonumber URL
1039 [http://www.example.com/?title=AT%26T]
1041 <p><a href="http://www.example.com/?title=AT%26T" class="external autonumber" rel="nofollow">[1]</a>
1046 Bug 4781, 5267: %26 in autonumber URL
1048 [http://www.example.com/?title=100%25_Bran]
1050 <p><a href="http://www.example.com/?title=100%25_Bran" class="external autonumber" rel="nofollow">[1]</a>
1055 Bug 4781, 5267: %28, %29 in autonumber URL
1057 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1059 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external autonumber" rel="nofollow">[1]</a>
1065 Bug 4781: %26 in bracketed URL
1067 [http://www.example.com/?title=AT%26T link]
1069 <p><a href="http://www.example.com/?title=AT%26T" class="external text" rel="nofollow">link</a>
1074 Bug 4781, 5267: %26 in bracketed URL
1076 [http://www.example.com/?title=100%25_Bran link]
1078 <p><a href="http://www.example.com/?title=100%25_Bran" class="external text" rel="nofollow">link</a>
1083 Bug 4781, 5267: %28, %29 in bracketed URL
1085 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1087 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external text" rel="nofollow">link</a>
1092 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1094 Some [http://example.com/ pretty ''italics'' and stuff]!
1096 <p>Some <a href="http://example.com/" class="external text" rel="nofollow">pretty <i>italics</i> and stuff</a>!
1101 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1103 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1105 <p><i>Some </i><a href="http://example.com/" class="external text" rel="nofollow"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1110 External link containing double-single-quotes with no space separating the url from text in italics
1112 [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]].]
1114 <p><a href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm" class="external text" rel="nofollow"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
1119 URL-encoding in URL functions (single parameter)
1121 {{localurl:Some page|amp=&}}
1123 <p>/index.php?title=Some_page&amp=&
1128 URL-encoding in URL functions (multiple parameters)
1130 {{localurl:Some page|q=?&=&}}
1132 <p>/index.php?title=Some_page&q=?&amp=&
1143 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1145 Normal text. '''''Bold italic text.''''' Normal text.
1147 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1148 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1154 Unclosed and unmatched quotes
1156 '''''Bold italic text '''with bold deactivated''' in between.'''''
1158 '''''Bold italic text ''with italic deactivated'' in between.'''''
1162 ..spanning two paragraphs (should not work).'''
1164 '''Bold tag left open
1166 ''Italic tag left open
1170 <!-- Unmatching number of opening, closing tags: -->
1171 '''This year''''s election ''should'' beat '''last year''''s.
1173 ''Tom'''s car is bigger than ''Susan'''s.
1175 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1176 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1177 </p><p><b>Bold text..</b>
1178 </p><p>..spanning two paragraphs (should not work).
1179 </p><p><b>Bold tag left open</b>
1180 </p><p><i>Italic tag left open</i>
1182 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1183 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1190 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1193 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1194 # is the bare minimun required by the spec, see:
1195 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1197 A table with no data.
1203 # A table with nothing but a caption is invalid XHTML, we might want to render
1204 # this as <p>caption</p>
1206 A table with nothing but a caption
1215 </caption><tr><td></td></tr></table>
1251 Multiplication table
1253 {| border="1" cellpadding="2"
1254 |+Multiplication table
1256 ! × !! 1 !! 2 !! 3
1274 <table border="1" cellpadding="2">
1276 Multiplication table
1386 {| align=right border=1
1388 |rowspan=2| Cell 2, row 1 (and 2)
1395 <table align="right" border="1">
1402 <p>Cell 2, row 1 (and 2)
1427 {| bgcolor=#ABCDEF border=2
1432 |the original table again
1442 <table bgcolor="#ABCDEF" border="2">
1455 <p>the original table again
1462 Invalid attributes in table cell (bug 1830)
1479 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1482 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1487 <p>[<a href="ftp://%7Cx" class="external free" rel="nofollow">ftp://%7Cx</a>
1491 <p>]" onmouseover="alert(document.cookie)">test
1504 Plain link, capitalized
1508 <p><a href="/wiki/Main_Page">Main Page</a>
1513 Plain link, uncapitalized
1517 <p><a href="/wiki/Main_Page">main Page</a>
1524 [[Main Page|The Main Page]]
1526 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1535 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1540 Broken link with fragment
1542 [[Zigzagzogzagzig#zug]]
1544 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1549 Special page link with fragment
1551 [[Special:Version#anchor]]
1553 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1558 Nonexistent special page link with fragment
1560 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1562 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1569 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1571 <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>
1578 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1580 <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>!!!
1585 Link with 3 brackets
1594 Piped link with 3 brackets
1596 [[[main page|the main page]]]
1598 <p>[[[main page|the main page]]]
1603 Link with multiple pipes
1605 [[Main Page|The|Main|Page]]
1607 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1614 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1616 <p><a href="/index.php?title=Talk:Parser_testing&action=edit&redlink=1" class="new" title="Talk:Parser testing (page does not exist)">Talk:Parser testing</a>, <a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">Meta:Disclaimers</a>
1621 Piped link to namespace
1623 [[Meta:Disclaimers|The disclaimers]]
1625 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1632 [[Usually caused by a typo (oops}]]
1634 <p>[[Usually caused by a typo (oops}]]
1639 Link containing % (not as a hex sequence)
1643 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
1648 Link containing % as a single hex sequence interpreted to char
1652 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
1657 Link containing % as a double hex sequence interpreted to hex sequence
1661 <p>[[7%2525 Solution]]
1666 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1667 Example for such a section: == < ==
1669 [[%23%3c]][[%23%3e]]
1671 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1676 Link containing "<#" and ">#" as a hex sequences
1678 [[%3c%23]][[%3e%23]]
1680 <p>[[%3c%23]][[%3e%23]]
1685 Link containing double-single-quotes '' (bug 4598)
1687 [[Lista d''e paise d''o munno]]
1689 <p><a href="/index.php?title=Lista_d%27%27e_paise_d%27%27o_munno&action=edit&redlink=1" class="new" title="Lista d''e paise d''o munno (page does not exist)">Lista d''e paise d''o munno</a>
1694 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1696 Some [[Link|pretty ''italics'' and stuff]]!
1698 <p>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!
1703 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1705 ''Some [[Link|pretty ''italics'' and stuff]]!
1707 <p><i>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!</i>
1712 Link with double quotes in title part (literal) and alternate part (interpreted)
1714 [[File:Denys Savchenko ''Pentecoste''.jpg]]
1718 [[''Pentecoste''|Pentecoste]]
1720 [[''Pentecoste''|''Pentecoste'']]
1722 <p><a href="/index.php?title=Special:Upload&wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg" class="new" title="File:Denys Savchenko ''Pentecoste''.jpg">File:Denys Savchenko <i>Pentecoste</i>.jpg</a>
1723 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">''Pentecoste''</a>
1724 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">Pentecoste</a>
1725 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)"><i>Pentecoste</i></a>
1732 [[http://www.example.com]]
1734 <p>[<a href="http://www.example.com" class="external autonumber" rel="nofollow">[1]</a>]
1738 # I'm fairly sure the expected result here is wrong.
1739 # We want these to be URL links, not pseudo-pages with URLs for titles....
1740 # However the current output is also pretty screwy.
1743 # I'm changing it to match the current output--it arguably makes more
1744 # sense in the light of the test above. Old expected result was:
1745 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1747 # But I think this test is bordering on "garbage in, garbage out" anyway.
1752 Piped link to URL: [[http://www.example.com|an example URL]]
1754 <p>Piped link to URL: [<a href="http://www.example.com%7Can" class="external text" rel="nofollow">example URL</a>]
1759 BUG 2: [[page|http://url/]] should link to page, not http://url/
1761 [[Main Page|http://url/]]
1763 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1768 BUG 337: Escaped self-links should be bold
1772 [[Bug462]] [[Bug462]]
1774 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1779 Self-link to section should not be bold
1783 [[Main Page#section]]
1785 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1796 Self-link to numeric title
1802 <p><strong class="selflink">0</strong>
1807 Link to numeric-equivalent title
1813 <p><a href="/wiki/00">00</a>
1818 <nowiki> inside a link
1820 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1822 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1827 Non-breaking spaces in title
1829 [[ Main Page ]]
1831 <p><a href="/wiki/Main_Page" title="Main Page"> Main Page </a>
1837 ### Interwiki links (see maintenance/interwiki.sql)
1841 Inline interwiki link
1843 [[MeatBall:SoftSecurity]]
1845 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw">MeatBall:SoftSecurity</a>
1850 Inline interwiki link with empty title (bug 2372)
1854 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw">MeatBall:</a>
1859 Interwiki link encoding conversion (bug 1636)
1861 *[[Wikipedia:ro:Olteniţa]]
1862 *[[Wikipedia:ro:Olteniţa]]
1864 <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>
1865 </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>
1871 Interwiki link with fragment (bug 2130)
1873 [[MeatBall:SoftSecurity#foo]]
1875 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1890 Double interlanguage link
1901 Interlanguage link, with prefix links
1913 Double interlanguage link, with prefix links (bug 8897)
1940 Incorrecly removing closing slashes from correctly formed XHTML
1942 <br style="clear:both;" />
1944 <p><br style="clear:both;" />
1949 Failing to transform badly formed HTML into correct XHTML
1955 <p><br clear="left" />
1956 <br clear="right" />
1962 Horizontal ruler (should it add that extra space?)
1976 ### Block-level elements
1999 <ol><li>Numbered list
2016 ***#Number on level 4
2018 **#Number on level 3
2019 **#Number on level 3
2024 <ol><li> with numbers
2026 <ul><li> and bullets
2028 <ol><li> and numbers
2030 </li><li>bullets again
2031 <ul><li>bullet level 2
2032 <ul><li>bullet level 3
2033 <ol><li>Number on level 4
2036 </li><li>bullet level 2
2037 <ol><li>Number on level 3
2038 </li><li>Number on level 3
2041 <ol><li>number level 2
2049 List items are not parsed correctly following a <pre> block (bug 785)
2055 <ul><li> <pre>foo</pre>
2056 </li><li> <pre>bar</pre>
2067 Magic Word: {{CURRENTDAY}}
2076 Magic Word: {{CURRENTDAY2}}
2085 Magic Word: {{CURRENTDAYNAME}}
2094 Magic Word: {{CURRENTDOW}}
2103 Magic Word: {{CURRENTMONTH}}
2112 Magic Word: {{CURRENTMONTHABBREV}}
2114 {{CURRENTMONTHABBREV}}
2121 Magic Word: {{CURRENTMONTHNAME}}
2123 {{CURRENTMONTHNAME}}
2130 Magic Word: {{CURRENTMONTHNAMEGEN}}
2132 {{CURRENTMONTHNAMEGEN}}
2139 Magic Word: {{CURRENTTIME}}
2148 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2157 Magic Word: {{CURRENTYEAR}}
2166 Magic Word: {{FULLPAGENAME}}
2168 title=[[User:Ævar Arnfjörð Bjarmason]]
2172 <p>User:Ævar Arnfjörð Bjarmason
2177 Magic Word: {{FULLPAGENAMEE}}
2179 title=[[User:Ævar Arnfjörð Bjarmason]]
2183 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2188 Magic Word: {{NAMESPACE}}
2190 title=[[User:Ævar Arnfjörð Bjarmason]]
2199 Magic Word: {{NAMESPACEE}}
2201 title=[[User:Ævar Arnfjörð Bjarmason]]
2210 Magic Word: {{NUMBEROFFILES}}
2219 Magic Word: {{PAGENAME}}
2221 title=[[User:Ævar Arnfjörð Bjarmason]]
2225 <p>Ævar Arnfjörð Bjarmason
2230 Magic Word: {{PAGENAME}} with metacharacters
2232 title=[['foo & bar = baz']]
2236 <p><i>'foo & bar = baz'</i>
2241 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2243 title=[[*RFC 1234 http://example.com/]]
2247 <p>*RFC 1234 http://example.com/
2252 Magic Word: {{PAGENAMEE}}
2254 title=[[User:Ævar Arnfjörð Bjarmason]]
2258 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2263 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2265 title=[[*RFC 1234 http://example.com/]]
2269 <p>*RFC_1234_http://example.com/
2274 Magic Word: {{REVISIONID}}
2283 Magic Word: {{SCRIPTPATH}}
2292 Magic Word: {{SERVER}}
2296 <p><a href="http://Britney-Spears" class="external free" rel="nofollow">http://Britney-Spears</a>
2301 Magic Word: {{SERVERNAME}}
2310 Magic Word: {{SITENAME}}
2319 Namespace 1 {{ns:1}}
2328 Namespace 1 {{ns:01}}
2337 Namespace 0 {{ns:0}} (bug 4783)
2345 Namespace 0 {{ns:00}} (bug 4783)
2353 Namespace -1 {{ns:-1}}
2362 Namespace User {{ns:User}}
2371 Namespace User talk {{ns:User_talk}}
2380 Namespace User talk {{ns:uSeR tAlK}}
2389 Namespace File {{ns:File}}
2398 Namespace File {{ns:Image}}
2407 Namespace (lang=de) Benutzer {{ns:User}}
2418 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2424 <p>Benutzer Diskussion
2432 {{urlencode:hi world?!}}
2433 {{urlencode:hi world?!|WIKI}}
2434 {{urlencode:hi world?!|PATH}}
2435 {{urlencode:hi world?!|QUERY}}
2448 Magic links: internal link to RFC (bug 479)
2452 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2457 Magic links: RFC (bug 479)
2461 <p><a href="http://tools.ietf.org/html/rfc822" class="external mw-magiclink-rfc">RFC 822</a>
2466 Magic links: ISBN (bug 1937)
2470 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2475 Magic links: PMID incorrectly converts space to underscore
2479 <p><a href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract" class="external mw-magiclink-pmid">PMID 1234</a>
2488 Nonexistent template
2490 {{thistemplatedoesnotexist}}
2492 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2499 This is a test template
2507 <p>This is a test template
2512 Template with explicit namespace
2516 <p>This is a test template
2524 This is a test template with parameter {{{param}}}
2530 {{paramtest|param=foo}}
2532 <p>This is a test template with parameter foo
2537 Template:paramtestnum
2543 Template unnamed parameter
2545 {{paramtestnum|Main Page|the main page}}
2547 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2552 Template:templatesimple
2558 Template:templateredirect
2560 #redirect [[Template:templatesimple]]
2564 Template:templateasargtestnum
2570 Template:templateasargtest
2572 {{template{{{templ}}}}}
2576 Template:templateasargtest2
2582 Template with template name as unnamed argument
2584 {{templateasargtestnum|templatesimple}}
2591 Template with template name as argument
2593 {{templateasargtest|templ=simple}}
2600 Template with template name as argument (2)
2602 {{templateasargtest2|templ=templatesimple}}
2609 Template:templateasargtestdefault
2611 {{{{{templ|templatesimple}}}}}
2621 Template with default value
2623 {{templateasargtestdefault}}
2630 Template with default value (value set)
2632 {{templateasargtestdefault|templ=templa}}
2641 {{templateredirect}}
2648 Template with argument in separate line
2650 {{ templateasargtest |
2658 Template with complex template as argument
2661 param ={{ templateasargtest |
2664 <p>This is a test template with parameter (test)
2669 Template with thumb image (with link in description)
2672 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2674 This is a test template with parameter <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Noimage.png" class="new" title="File:Noimage.png">File:Noimage.png</a> <div class="thumbcaption"><a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">link</a> <a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">caption</a></div></div></div>
2679 Template:complextemplate
2681 {{{1}}} {{paramtest|
2682 param ={{{param}}}}}
2686 Template with complex arguments
2689 param ={{ templateasargtest |
2690 templ = simple }}|[[Template:complextemplate|link]]}}
2692 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2697 BUG 553: link with two variables in a piped link
2700 |[[{{{1}}}|{{{2}}}]]
2706 <p>[[{{{1}}}|{{{2}}}]]
2713 Magic variable as template parameter
2715 {{paramtest|param={{SITENAME}}}}
2717 <p>This is a test template with parameter MediaWiki
2724 [[{{{param}}}|link]]
2728 Template parameter as link source
2730 {{linktest|param=Main Page}}
2732 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2740 including another template, {{paramtest|param={{{arg}}}}}
2744 Template passing argument to another template
2746 {{paramtest2|arg='hmm'}}
2748 <p>including another template, This is a test template with parameter 'hmm'
2759 Template as link source
2763 <p><a href="/wiki/Main_Page">Main Page</a>
2781 Template infinite loop
2785 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1">Template:Loop1</a></span>
2790 Template from main namespace
2809 BUG 529: Template with table, not included at beginning of line
2838 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2868 BUG 41: Template parameters shown as broken links
2880 ''None'' of '''this''' should be
2882 but rather passed unmodified
2886 # hmm, fix this or just deprecate msgnw and document its behavior?
2892 {{msgnw:MSGNW test}}
2894 <p>''None'' of '''this''' should be
2896 but rather passed unmodified
2904 {{int:youhavenewmessages|lots of money|not!}}
2906 <p>You have lots of money (not!).
2913 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2917 <includeonly> and <noinclude> being included
2928 <onlyinclude>Foo</onlyinclude>bar
2932 <onlyinclude> being included
2944 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2948 <onlyinclude> and <includeonly> being included
2957 <includeonly> and <noinclude> on a page
2959 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2966 <onlyinclude> on a page
2968 <onlyinclude>Foo</onlyinclude>bar
2975 Template:Includeonly section
2978 ==Includeonly section==
2984 Bug 6563: Edit link generation for section shown by <includeonly>
2986 {{includeonly section}}
2988 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Includeonly_section">Includeonly section</span></h2>
2989 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Section_T-1">Section T-1</span></h2>
2993 # Uses same input as the contents of [[Template:Includeonly section]]
2995 Bug 6563: Section extraction for section shown by <includeonly>
3000 ==Includeonly section==
3008 Bug 6563: Edit link generation for section suppressed by <includeonly>
3011 ==Includeonly section==
3015 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2>
3020 Bug 6563: Section extraction for section suppressed by <includeonly>
3025 ==Includeonly section==
3033 ### Pre-save transform tests
3036 pre-save transform: subst:
3042 This is a test template
3046 pre-save transform: normal template
3056 pre-save transform: nonexistent template
3060 {{thistemplatedoesnotexist}}
3062 {{thistemplatedoesnotexist}}
3067 pre-save transform: subst magic variables
3076 # This is bug 89, which I fixed. -- wtm
3078 pre-save transform: subst: templates with parameters
3082 {{subst:paramtest|param="something else"}}
3084 This is a test template with parameter "something else"
3090 <nowiki>'''not wiki'''</nowiki>
3094 pre-save transform: nowiki in subst (bug 1188)
3098 {{subst:nowikitest}}
3100 <nowiki>'''not wiki'''</nowiki>
3105 Template:commenttest
3107 This template has <!-- a comment --> in it.
3111 pre-save transform: comment in subst (bug 1936)
3115 {{subst:commenttest}}
3117 This template has <!-- a comment --> in it.
3121 pre-save transform: unclosed tag
3125 <nowiki>'''not wiki'''
3127 <nowiki>'''not wiki'''
3131 pre-save transform: mixed tag case
3135 <NOwiki>'''not wiki'''</noWIKI>
3137 <NOwiki>'''not wiki'''</noWIKI>
3141 pre-save transform: unclosed comment in <nowiki>
3145 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3147 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3153 <span onmouseover="alert('crap')">Oh no</span>
3157 (confirming safety of fix for subst bug 1936)
3159 {{Template:dangerous}}
3161 <p><span>Oh no</span>
3166 pre-save transform: comment containing gallery (bug 5024)
3170 <!-- <gallery>data</gallery> -->
3172 <!-- <gallery>data</gallery> -->
3176 pre-save transform: comment containing extension
3180 <!-- <tag>data</tag> -->
3182 <!-- <tag>data</tag> -->
3186 pre-save transform: comment containing nowiki
3190 <!-- <nowiki>data</nowiki> -->
3192 <!-- <nowiki>data</nowiki> -->
3196 pre-save transform: comment containing math
3200 <!-- <math>data</math> -->
3202 <!-- <math>data</math> -->
3206 pre-save transform: <noinclude> in subst (bug 3298)
3216 pre-save transform: <onlyinclude> in subst (bug 3298)
3228 {{<includeonly>subst:</includeonly>Includes}}
3232 Template:SafeSubstTest
3234 {{<includeonly>safesubst:</includeonly>Includes}}
3238 bug 22297: safesubst: works during PST
3242 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3248 bug 22297: safesubst: works during normal parse
3257 subst: does not work during normal parse
3261 <p>{{subst:Includes}}
3266 pre-save transform: context links ("pipe trick")
3270 [[Article (context)|]]
3273 [[Bar:Article (context)|]]
3274 [[:Bar:Article (context)|]]
3276 [[|Article (context)]]
3280 [[Article (context)|Article]]
3281 [[Bar:Article|Article]]
3282 [[:Bar:Article|Article]]
3283 [[Bar:Article (context)|Article]]
3284 [[:Bar:Article (context)|Article]]
3286 [[Article (context)]]
3287 [[Bar:X (Y) Z|X (Y) Z]]
3288 [[:Bar:X (Y) Z|X (Y) Z]]
3292 pre-save transform: context links ("pipe trick") with interwiki prefix
3296 [[interwiki:Article|]]
3297 [[:interwiki:Article|]]
3298 [[interwiki:Bar:Article|]]
3299 [[:interwiki:Bar:Article|]]
3301 [[interwiki:Article|Article]]
3302 [[:interwiki:Article|Article]]
3303 [[interwiki:Bar:Article|Bar:Article]]
3304 [[:interwiki:Bar:Article|Bar:Article]]
3308 pre-save transform: context links ("pipe trick") with parens in title
3310 pst title=[[Somearticle (context)]]
3314 [[Article (context)|Article]]
3318 pre-save transform: context links ("pipe trick") with comma in title
3320 pst title=[[Someplace, Somewhere]]
3323 [[Otherplace, Elsewhere|]]
3324 [[Otherplace, Elsewhere, Anywhere|]]
3326 [[Otherplace, Somewhere|Otherplace]]
3327 [[Otherplace, Elsewhere|Otherplace]]
3328 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3332 pre-save transform: context links ("pipe trick") with parens and comma
3334 pst title=[[Someplace (IGNORED), Somewhere]]
3337 [[Otherplace (place), Elsewhere|]]
3339 [[Otherplace, Somewhere|Otherplace]]
3340 [[Otherplace (place), Elsewhere|Otherplace]]
3344 pre-save transform: context links ("pipe trick") with comma and parens
3346 pst title=[[Who, me? (context)]]
3349 [[Me, Myself, and I (1937 song)|]]
3351 [[Yes, you. (context)|Yes, you.]]
3352 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3356 pre-save transform: context links ("pipe trick") with namespace
3358 pst title=[[Ns:Somearticle]]
3362 [[Ns:Article|Article]]
3366 pre-save transform: context links ("pipe trick") with namespace and parens
3368 pst title=[[Ns:Somearticle (context)]]
3372 [[Ns:Article (context)|Article]]
3376 pre-save transform: context links ("pipe trick") with namespace and comma
3378 pst title=[[Ns:Somearticle, Context, Whatever]]
3382 [[Ns:Article, Context, Whatever|Article]]
3386 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3388 pst title=[[Ns:Somearticle, Context (context)]]
3392 [[Ns:Article (context)|Article]]
3396 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3398 pst title=[[Ns:Somearticle (IGNORED), Context]]
3402 [[Ns:Article, Context|Article]]
3407 ### Message transform tests
3410 message transform: magic variables
3420 message transform: should not transform wiki markup
3430 message transform: <noinclude> in transcluded template (bug 4926)
3440 message transform: <onlyinclude> in transcluded template (bug 4926)
3450 {{#special:}} page name, known
3454 {{#special:Recentchanges}}
3456 Special:RecentChanges
3460 {{#special:}} page name with subpage, known
3464 {{#special:Recentchanges/param}}
3466 Special:RecentChanges/param
3470 {{#special:}} page name, unknown
3474 {{#special:foobarnonexistent}}
3476 No such special page
3485 [[Image:foobar.jpg]]
3487 <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>
3494 [[Image:foobar.jpg|right]]
3496 <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>
3501 Simple image (using File: namespace, now canonical)
3505 <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>
3512 [[Image:foobar.jpg|right|Caption text]]
3514 <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>
3519 Image with link parameter, wiki target
3521 [[Image:foobar.jpg|link=Target page]]
3523 <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>
3528 Image with link parameter, URL target
3530 [[Image:foobar.jpg|link=http://example.com/]]
3532 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3537 Image with link parameter, wgExternalLinkTarget
3539 [[Image:foobar.jpg|link=http://example.com/]]
3541 wgExternalLinkTarget='foobar'
3543 <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>
3548 Image with link parameter, wgExternalLinkTarget, unnamed parameter
3550 [[Image:foobar.jpg|link=http://example.com/|Title]]
3552 wgExternalLinkTarget='foobar'
3554 <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>
3559 Image with empty link parameter
3561 [[Image:foobar.jpg|link=]]
3563 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3568 Image with link parameter (wiki target) and unnamed parameter
3570 [[Image:foobar.jpg|link=Target page|Title]]
3572 <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>
3577 Image with link parameter (URL target) and unnamed parameter
3579 [[Image:foobar.jpg|link=http://example.com/|Title]]
3581 <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>
3586 Thumbnail image with link parameter
3588 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
3590 <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>
3595 Image with frame and link
3597 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3599 <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>
3604 Image with frame and link and explicit alt
3606 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3608 <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>
3613 Image with wiki markup in implicit alt
3615 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3617 <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>
3622 Image with wiki markup in explicit alt
3624 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3626 <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>
3631 Link to image page- image page normally doesn't exists, hence edit link
3632 Add test with existing image page
3633 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3637 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3642 bug 18784 Link to non-existent image page with caption should use caption as link text
3644 [[:Image:test|caption]]
3646 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
3651 Frameless image caption with a free URL
3653 [[Image:foobar.jpg|http://example.com]]
3655 <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>
3660 Thumbnail image caption with a free URL
3662 [[Image:foobar.jpg|thumb|http://example.com]]
3664 <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="http://example.com" class="external free" rel="nofollow">http://example.com</a></div></div></div>
3669 Thumbnail image caption with a free URL and explicit alt
3671 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3673 <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 href="http://example.com" class="external free" rel="nofollow">http://example.com</a></div></div></div>
3678 BUG 1887: A ISBN with a thumbnail
3680 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3682 <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>
3687 BUG 1887: A RFC with a thumbnail
3689 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3691 <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 href="http://tools.ietf.org/html/rfc12354" class="external mw-magiclink-rfc">RFC 12354</a></div></div></div>
3696 BUG 1887: A mailto link with a thumbnail
3698 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3700 <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 href="mailto:nobody@example.com" class="external free" rel="nofollow">mailto:nobody@example.com</a></div></div></div>
3705 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
3706 so math is not stripped and turns up as escaped <math> tags.
3708 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3710 <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>
3715 BUG 1887, part 2: A <math> with a thumbnail- math enabled
3719 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3721 <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>
3725 # Pending resolution to bug 368
3727 BUG 648: Frameless image caption with a link
3729 [[Image:foobar.jpg|text with a [[link]] in it]]
3731 <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>
3736 BUG 648: Frameless image caption with a link (suffix)
3738 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3740 <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>
3745 BUG 648: Frameless image caption with an interwiki link
3747 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3749 <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>
3754 BUG 648: Frameless image caption with a piped interwiki link
3756 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3758 <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>
3763 Escape HTML special chars in image alt text
3765 [[Image:foobar.jpg|& < > "]]
3767 <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>
3772 BUG 499: Alt text should have Ӓ, not &1234;
3774 [[Image:foobar.jpg|♀]]
3776 <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>
3781 Broken image caption with link
3783 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3785 <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.
3790 Image caption containing another image
3792 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3794 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is a caption with another <a href="/index.php?title=Special:Upload&wpDestFile=Icon.png" class="new" title="File:Icon.png">image</a> inside it!</div></div></div>
3799 Image caption containing a newline
3801 [[Image:Foobar.jpg|This
3804 <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>
3810 Bug 3090: External links other than http: in image captions
3812 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3814 <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 href="irc://example.net" class="external text" rel="nofollow">irc</a> and <a href="https://example.com" class="external text" rel="nofollow">Secure</a> ext links in it.</div></div></div>
3821 #REDIRECT [[File:Barfoo.jpg]]
3827 [[Image:Barfoo.jpg]]
3829 <p><a href="/wiki/File:Barfoo.jpg">File:Barfoo.jpg</a>
3834 Missing image with uploads disabled
3838 [[Image:Foobaz.jpg]]
3840 <p><a href="/wiki/File:Foobaz.jpg">File:Foobaz.jpg</a>
3849 Subpage test/subpage
3857 subpage title=[[Subpage test]]
3861 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3866 Subpage noslash link
3868 subpage title=[[Subpage test]]
3872 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3881 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
3886 BUG 561: {{/Subpage}}
3888 subpage title=[[Page]]
3892 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
3900 Category:MediaWiki User's Guide
3908 [[:Category:MediaWiki User's Guide]]
3910 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide">Category:MediaWiki User's Guide</a>
3919 [[Category:MediaWiki User's Guide]]
3921 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3925 PAGESINCATEGORY invalid title fatal (r33546 fix)
3927 {{PAGESINCATEGORY:<bogus>}}
3934 ### Inter-language links
3937 Inter-language links
3943 [[zh:食品]]
3945 es:Alimento fr:Nourriture zh:食品
3952 Basic section headings
3959 ===Smaller headline===
3962 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
3965 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2">Headline 2</span></h2>
3968 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a>]</span> <span class="mw-headline" id="Smaller_headline">Smaller headline</span></h3>
3974 Section headings with TOC
3977 === Subheadline 1 ===
3978 ===== Skipping a level =====
3979 ====== Skipping a level ======
3983 ===Another headline===
3985 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3987 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3989 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3991 <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>
3993 <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>
4000 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4002 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4007 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
4008 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a>]</span> <span class="mw-headline" id="Subheadline_1"> Subheadline 1 </span></h3>
4009 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level"> Skipping a level </span></h5>
4010 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level_2"> Skipping a level </span></h6>
4011 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2"> Headline 2 </span></h2>
4014 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a>]</span> <span class="mw-headline" id="Another_headline">Another headline</span></h3>
4018 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4020 Handling of sections up to level 6 and beyond
4023 == Level 2 Heading==
4024 === Level 3 Heading===
4025 ==== Level 4 Heading====
4026 ===== Level 5 Heading=====
4027 ====== Level 6 Heading======
4028 ======= Level 7 Heading=======
4029 ======== Level 8 Heading========
4030 ========= Level 9 Heading=========
4031 ========== Level 10 Heading==========
4033 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4035 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4037 <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>
4039 <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>
4041 <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>
4043 <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>
4045 <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>
4046 <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>
4047 <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>
4048 <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>
4049 <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>
4062 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a>]</span> <span class="mw-headline" id="Level_1_Heading"> Level 1 Heading</span></h1>
4063 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a>]</span> <span class="mw-headline" id="Level_2_Heading"> Level 2 Heading</span></h2>
4064 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a>]</span> <span class="mw-headline" id="Level_3_Heading"> Level 3 Heading</span></h3>
4065 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a>]</span> <span class="mw-headline" id="Level_4_Heading"> Level 4 Heading</span></h4>
4066 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a>]</span> <span class="mw-headline" id="Level_5_Heading"> Level 5 Heading</span></h5>
4067 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a>]</span> <span class="mw-headline" id="Level_6_Heading"> Level 6 Heading</span></h6>
4068 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a>]</span> <span class="mw-headline" id=".3D_Level_7_Heading.3D">= Level 7 Heading=</span></h6>
4069 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a>]</span> <span class="mw-headline" id=".3D.3D_Level_8_Heading.3D.3D">== Level 8 Heading==</span></h6>
4070 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D">=== Level 9 Heading===</span></h6>
4071 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D">==== Level 10 Heading====</span></h6>
4076 TOC regression (bug 9764)
4080 ==== title 1.1.1 ====
4085 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4087 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4089 <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>
4091 <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>
4094 <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>
4097 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4099 <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>
4104 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
4105 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
4106 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4>
4107 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2"> title 1.2 </span></h3>
4108 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
4109 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1"> title 2.1 </span></h3>
4114 TOC with wgMaxTocLevel=3 (bug 6204)
4120 ==== title 1.1.1 ====
4125 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4127 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4129 <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>
4130 <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>
4133 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4135 <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>
4140 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
4141 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
4142 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4>
4143 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2"> title 1.2 </span></h3>
4144 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
4145 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1"> title 2.1 </span></h3>
4150 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4156 ====Section 1.1.1====
4157 ====Section 1.1.1.1====
4160 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4162 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4164 <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>
4167 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4170 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4171 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1">Section 1.1</span></h3>
4172 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Section 1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1">Section 1.1.1</span></h4>
4173 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Section 1.1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1.1">Section 1.1.1.1</span></h4>
4174 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Section 2">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4180 Resolving duplicate section names
4185 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar"> Foo bar </span></h2>
4186 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar_2"> Foo bar </span></h2>
4191 Resolving duplicate section names with differing case (bug 10721)
4196 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar"> Foo bar </span></h2>
4197 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2"> Foo Bar </span></h2>
4209 Template with sections, __NOTOC__
4216 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a>]</span> <span class="mw-headline" id="Section_0">Section 0</span></h2>
4217 <h3><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-1" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h3>
4218 <h2><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-2" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4219 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a>]</span> <span class="mw-headline" id="Section_4">Section 4</span></h2>
4224 __NOEDITSECTION__ keyword
4230 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4231 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4236 Link inside a section heading
4238 ==Section with a [[Main Page|link]] in it==
4240 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a>]</span> <span class="mw-headline" id="Section_with_a_link_in_it">Section with a <a href="/wiki/Main_Page" title="Main Page">link</a> in it</span></h2>
4245 TOC regression (bug 12077)
4252 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4254 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4256 <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>
4259 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4262 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
4263 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
4264 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
4269 BUG 1219 URL next to image (good)
4271 http://example.com [[Image:foobar.jpg]]
4273 <p><a href="http://example.com" class="external free" rel="nofollow">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>
4278 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4281 The line above must have a trailing space!
4284 But just in case it doesn't...
4286 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D">=</span></h1>
4287 <p>The line above must have a trailing space!
4289 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D_2">=</span></h1>
4290 <p>But just in case it doesn't...
4295 Header with special characters (bug 25462)
4297 The tooltips shall not show entities to the user (ie. be double escaped)
4314 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4316 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4318 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4319 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4320 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4321 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4322 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4325 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: text > text">edit</a>]</span> <span class="mw-headline" id="text_.3E_text"> text > text </span></h2>
4328 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: text < text">edit</a>]</span> <span class="mw-headline" id="text_.3C_text"> text < text </span></h2>
4331 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: text & text">edit</a>]</span> <span class="mw-headline" id="text_.26_text"> text & text </span></h2>
4334 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: text ' text">edit</a>]</span> <span class="mw-headline" id="text_.27_text"> text ' text </span></h2>
4337 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: text " text">edit</a>]</span> <span class="mw-headline" id="text_.22_text"> text " text </span></h2>
4343 BUG 1219 URL next to image (broken)
4345 http://example.com[[Image:foobar.jpg]]
4347 <p><a href="http://example.com" class="external free" rel="nofollow">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>
4352 Bug 1186 news: in the middle of text
4354 http://en.wikinews.org/wiki/Wikinews:Workplace
4356 <p><a href="http://en.wikinews.org/wiki/Wikinews:Workplace" class="external free" rel="nofollow">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4362 Namespaced link must have a title
4371 Namespaced link must have a title (bad fragment version)
4373 [[Project:#fragment]]
4375 <p>[[Project:#fragment]]
4381 div with no attributes
4383 <div>HTML rocks</div>
4385 <div>HTML rocks</div>
4390 div with double-quoted attribute
4392 <div id="rock">HTML rocks</div>
4394 <div id="rock">HTML rocks</div>
4399 div with single-quoted attribute
4401 <div id='rock'>HTML rocks</div>
4403 <div id="rock">HTML rocks</div>
4408 div with unquoted attribute
4410 <div id=rock>HTML rocks</div>
4412 <div id="rock">HTML rocks</div>
4417 div with illegal double attributes
4419 <div align="center" align="right">HTML rocks</div>
4421 <div align="right">HTML rocks</div>
4426 HTML multiple attributes correction
4428 <p class="error" class="awesome">Awesome!</p>
4430 <p class="awesome">Awesome!</p>
4435 Table multiple attributes correction
4438 !+ class="error" class="awesome"| status
4443 <th class="awesome">
4453 <DIV ALIGN="center">HTML ROCKS</DIV>
4455 <div align="center">HTML ROCKS</div>
4461 text with amp in the middle of nowhere
4465 <p>Remember AT&T?
4470 text with character entity: eacute
4472 I always thought é was a cute letter.
4474 <p>I always thought é was a cute letter.
4479 text with undefined character entity: xacute
4481 I always thought &xacute; was a cute letter.
4483 <p>I always thought &xacute; was a cute letter.
4495 [[Media:Foobar.jpg]]
4497 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4502 Media link with text
4504 [[Media:Foobar.jpg|A neat file to look at]]
4506 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4510 # FIXME: this is still bad HTML tag nesting
4512 Media link with nasty text
4513 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4515 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4517 <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>
4522 Media link to nonexistent file (bug 1702)
4524 [[Media:No such.jpg]]
4526 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4531 Image link to nonexistent file (bug 1850 - good)
4533 [[Image:No such.jpg]]
4535 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4540 :Image link to nonexistent file (bug 1850 - bad)
4542 [[:Image:No such.jpg]]
4544 <p><a href="/index.php?title=File:No_such.jpg&action=edit&redlink=1" class="new" title="File:No such.jpg (page does not exist)">Image:No such.jpg</a>
4551 Character reference normalization in link text (bug 1938)
4553 [[Main Page|this&that]]
4555 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4562 Test for unicode normalization
4564 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4568 (bug 19451) Links should refer to the normalized form.
4576 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4577 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4578 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4579 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4580 <a href="/wiki/%D7%90%D6%B7">אַ</a>
4585 Empty attribute crash test (bug 2067)
4587 <font color="">foo</font>
4589 <p><font color="">foo</font>
4594 Empty attribute crash test single-quotes (bug 2067)
4596 <font color=''>foo</font>
4598 <p><font color="">foo</font>
4603 Attribute test: equals, then nothing
4605 <font color=>foo</font>
4612 Attribute test: unquoted value
4614 <font color=x>foo</font>
4616 <p><font color="x">foo</font>
4621 Attribute test: unquoted but illegal value (hash)
4623 <font color=#x>foo</font>
4625 <p><font color="#x">foo</font>
4630 Attribute test: no value
4632 <font color>foo</font>
4634 <p><font color="color">foo</font>
4639 Bug 2095: link with three closing brackets
4643 <p><a href="/wiki/Main_Page">Main Page</a>]
4648 Bug 2095: link with pipe and three closing brackets
4652 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4657 Bug 2095: link with pipe and three closing brackets, version 2
4659 [[Main Page|[http://example.com/]]]
4661 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4671 Template:Dangerous attribute
4673 " onmouseover="alert(document.cookie)
4677 Template:Dangerous style attribute
4679 border-size: expression(alert(document.cookie))
4685 <div style="float: right; {{{1}}}">Magic div</div>
4689 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4691 <div title="{{test}}"></div>
4693 <div title="This is a test template"></div>
4698 Bug 2304: HTML attribute safety (dangerous template; 2309)
4700 <div title="{{dangerous attribute}}"></div>
4702 <div title=""></div>
4707 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4709 <div style="{{dangerous style attribute}}"></div>
4711 <div style="/* insecure input */"></div>
4716 Bug 2304: HTML attribute safety (safe parameter; 2309)
4718 {{div style|width: 200px}}
4720 <div style="float: right; width: 200px">Magic div</div>
4725 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4727 {{div style|width: expression(alert(document.cookie))}}
4729 <div style="/* insecure input */">Magic div</div>
4734 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4736 {{div style|"><script>alert(document.cookie)</script>}}
4738 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4743 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4745 {{div style|" ><script>alert(document.cookie)</script>}}
4747 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4752 Bug 2304: HTML attribute safety (link)
4754 <div title="[[Main Page]]"></div>
4756 <div title="[[Main Page]]"></div>
4761 Bug 2304: HTML attribute safety (italics)
4763 <div title="''foobar''"></div>
4765 <div title="''foobar''"></div>
4770 Bug 2304: HTML attribute safety (bold)
4772 <div title="'''foobar'''"></div>
4774 <div title="'''foobar'''"></div>
4780 Bug 2304: HTML attribute safety (ISBN)
4782 <div title="ISBN 1234567890"></div>
4784 <div title="ISBN 1234567890"></div>
4789 Bug 2304: HTML attribute safety (RFC)
4791 <div title="RFC 1234"></div>
4793 <div title="RFC 1234"></div>
4798 Bug 2304: HTML attribute safety (PMID)
4800 <div title="PMID 1234567890"></div>
4802 <div title="PMID 1234567890"></div>
4807 Bug 2304: HTML attribute safety (web link)
4809 <div title="http://example.com/"></div>
4811 <div title="http://example.com/"></div>
4816 Bug 2304: HTML attribute safety (named web link)
4818 <div title="[http://example.com/ link]"></div>
4820 <div title="[http://example.com/ link]"></div>
4825 Bug 3244: HTML attribute safety (extension; safe)
4827 <div style="<nowiki>background:blue</nowiki>"></div>
4829 <div style="background:blue"></div>
4834 Bug 3244: HTML attribute safety (extension; unsafe)
4836 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4838 <div style="/* insecure input */"></div>
4843 Math section safety when disabled
4845 <math><script>alert(document.cookies);</script></math>
4847 <p><math><script>alert(document.cookies);</script></math>
4851 # More MSIE fun discovered by Tom Gilder
4854 MSIE CSS safety test: spurious slash
4856 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4858 <div style="/* insecure input */">evil</div>
4863 MSIE CSS safety test: hex code
4865 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4867 <div style="/* insecure input */">evil</div>
4872 MSIE CSS safety test: comment in url
4874 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4876 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4881 MSIE CSS safety test: comment in expression
4883 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4885 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4891 Table attribute legitimate extension
4894 !+ style="<nowiki>color:blue</nowiki>"| status
4899 <th style="color:blue">
4907 Table attribute safety
4910 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4915 <th style="/* insecure input */">
4923 CSS line continuation 1
4925 <div style="background-image: u\ rl(test.jpg);"></div>
4927 <div style="/* insecure input */"></div>
4932 CSS line continuation 2
4934 <div style="background-image: u\ rl(test.jpg); "></div>
4936 <div style="/* insecure input */"></div>
4947 Expansion of multi-line templates in attribute values (bug 6255)
4949 <div style="background: {{identity|#00FF00}}">-</div>
4951 <div style="background: #00FF00">-</div>
4957 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
4959 <div style="background:
4962 <div style="background: #00FF00">-</div>
4967 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
4969 <div style="background: #00FF00">-</div>
4971 <div style="background: #00FF00">-</div>
4976 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
4979 Parser hook: empty input
4992 Parser hook: empty input using terminated empty elements
5005 Parser hook: empty input using terminated empty elements (space before)
5018 Parser hook: basic input
5032 Parser hook: case insensitive
5046 Parser hook: case insensitive, redux
5059 Parser hook: nested tags
5063 <tag><tag></tag></tag>
5074 Parser hook: basic arguments
5076 <tag width=200 height = "100" depth = '50' square></tag>
5095 Parser hook: argument containing a forward slash (bug 5344)
5097 <tag filename='/tmp/bla'></tag>
5103 string(8) "/tmp/bla"
5110 Parser hook: empty input using terminated empty elements (bug 2374)
5124 # </tag> should be output literally since there is no matching tag that begins it
5126 Parser hook: basic arguments using terminated empty elements (bug 2374)
5128 <tag width=200 height = "100" depth = '50' square/>
5151 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5155 Parser hook: static parser hook not inside a comment
5157 <statictag>hello, world</statictag>
5158 <statictag action=flush/>
5166 Parser hook: static parser hook inside a comment
5168 <!-- <statictag>hello, world</statictag> -->
5169 <statictag action=flush/>
5175 # Nested template calls; this case was broken by Parser.php rev 1.506,
5179 Template:One-parameter
5181 (My parameter is: {{{1}}})
5185 Template:Map-one-parameter
5191 Nested template calls
5193 {{Map-one-parameter|One-parameter|param}}
5195 <p>(My parameter is: param)
5204 Sanitizer: Closing of open tags
5206 <s></s><table></table>
5208 <s></s><table></table>
5213 Sanitizer: Closing of open but not closed tags
5222 Sanitizer: Closing of closed but not open tags
5231 Sanitizer: Closing of closed but not open table tags
5233 Table not started</td></tr></table>
5235 <p>Table not started</td></tr></table>
5240 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5242 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5244 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5249 Sanitizer: Validating the contents of the id attribute (bug 4515)
5255 Something, but definitely not <br id="9" />...
5259 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5263 <br id="foo" /><br id="foo" />
5265 Something need to be done. foo-2 ?
5269 Language converter: output gets cut off unexpectedly (bug 5757)
5273 this bit is safe: }-
5275 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5277 then we get cut off here: }-
5279 all additional text is vanished
5281 <p>this bit is safe: }-
5282 </p><p>but if we add a conversion instance: xxx
5283 </p><p>then we get cut off here: }-
5284 </p><p>all additional text is vanished
5289 Self closed html pairs (bug 5487)
5292 <center><font id="bug" />Centered text</center>
5293 <div><font id="bug2" />In div text</div>
5295 <center><font id="bug" />Centered text</center>
5296 <div><font id="bug2" />In div text</div>
5305 Punctuation: nbsp before exclamation
5309 <p>C'est grave !
5314 Punctuation: CSS !important (bug 11874)
5316 <div style="width:50% !important">important</div>
5318 <div style="width:50% !important">important</div>
5323 Punctuation: CSS ! important (bug 11874; with space after)
5325 <div style="width:50% ! important">important</div>
5327 <div style="width:50% ! important">important</div>
5333 HTML bullet list, closed tags (bug 5497)
5348 HTML bullet list, unclosed tags (bug 5497)
5365 HTML ordered list, closed tags (bug 5497)
5380 HTML ordered list, unclosed tags (bug 5497)
5397 HTML nested bullet list, closed tags (bug 5497)
5422 HTML nested bullet list, open tags (bug 5497)
5447 HTML nested ordered list, closed tags (bug 5497)
5472 HTML nested ordered list, open tags (bug 5497)
5497 HTML ordered list item with parameters oddity
5499 <ol><li id="fragment">One</li></ol>
5501 <ol><li id="fragment">One</li></ol>
5506 bug 5918: autonumbering
5508 [http://first/] [http://second] [ftp://ftp]
5512 [mailto:enclosed@mail.tld With target]
5514 [mailto:enclosed@mail.tld]
5516 mailto:inline@mail.tld
5518 <p><a href="http://first/" class="external autonumber" rel="nofollow">[1]</a> <a href="http://second" class="external autonumber" rel="nofollow">[2]</a> <a href="ftp://ftp" class="external autonumber" rel="nofollow">[3]</a>
5519 </p><p><a href="ftp://inlineftp" class="external free" rel="nofollow">ftp://inlineftp</a>
5520 </p><p><a href="mailto:enclosed@mail.tld" class="external text" rel="nofollow">With target</a>
5521 </p><p><a href="mailto:enclosed@mail.tld" class="external autonumber" rel="nofollow">[4]</a>
5522 </p><p><a href="mailto:inline@mail.tld" class="external free" rel="nofollow">mailto:inline@mail.tld</a>
5528 # Security and HTML correctness
5529 # From Nick Jenkins' fuzz testing
5533 Fuzz testing: Parser13
5548 Fuzz testing: Parser14
5553 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a>]</span> <span class="mw-headline" id="onmouseover.3D"> onmouseover= </span></h2>
5554 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5556 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5563 Fuzz testing: Parser14-table
5568 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a>]</span> <span class="mw-headline" id="a">a</span></h2>
5569 <table style="__TOC__">
5575 # Known to produce bogus xml (extra </td>)
5577 Fuzz testing: Parser16
5602 Fuzz testing: Parser21
5605 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5611 <p><a href="irc://{{ftp://a" class="external free" rel="nofollow">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5622 Fuzz testing: Parser22
5624 http://===r:::https://b
5628 <p><a href="http://===r:::https://b" class="external free" rel="nofollow">http://===r:::https://b</a>
5636 # Known to produce bad XML for now
5638 Fuzz testing: Parser24
5645 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5646 <br style="onmouseover='alert(document.cookie);' " />
5648 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5653 <u class="|">}}}} >
5654 <br style="onmouseover='alert(document.cookie);'" />
5656 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5667 # Note: the current result listed for this is not what the original one was,
5668 # but the original bug was JavaScript injection, which is fixed in any case.
5669 # It's not clear that the original result listed was any more correct than the
5670 # current one. Original result:
5673 # <li class="||">
5674 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5676 Fuzz testing: Parser25 (bug 6055)
5682 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5684 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5689 Fuzz testing: URL adjacent extension (with space, clean)
5692 http://example.com <nowiki>junk</nowiki>
5694 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a> junk
5699 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5702 http://example.com<nowiki>junk</nowiki>
5704 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>junk
5709 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5712 http://example.com<pre>junk</pre>
5714 <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a><pre>junk</pre>
5719 Fuzz testing: image with bogus manual thumbnail
5721 [[Image:foobar.jpg|thumbnail= ]]
5723 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5728 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5730 <pre dir=" "></pre>
5732 <pre dir=" "></pre>
5737 Parsing optional HTML elements (Bug 6171)
5742 <td> Some tabular data</td>
5743 <td> More tabular data ...
5744 <td> And yet som tabular data</td>
5750 <td> Some tabular data</td>
5751 <td> More tabular data ...
5752 </td><td> And yet som tabular data</td>
5759 Correct handling of <td>, <tr> (Bug 6171)
5764 <td> Some tabular data</td>
5765 <td> More tabular data ...</td>
5766 <td> And yet som tabular data</td>
5772 <td> Some tabular data</td>
5773 <td> More tabular data ...</td>
5774 <td> And yet som tabular data</td>
5782 Parsing crashing regression (fr:JavaScript)
5786 <p></body></x>
5791 Inline wiki vs wiki block nesting
5797 <p><b>Bold paragraph</b>
5798 </p><p>New wiki paragraph
5803 Inline HTML vs wiki block nesting
5811 <p><b>Bold paragraph</b>
5812 </p><p>New wiki paragraph
5816 # Original result was this:
5817 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5819 # While that might be marginally more intuitive, maybe, the six-apostrophe
5820 # construct is clearly pathological and the result stated here (which is what
5821 # the parser actually does) is about as reasonable as anything.
5823 Mixing markup for italics and bold
5826 '''bold''''''bold''bolditalics'''''
5828 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5836 Article for special page transclusion test
5840 Special page transclusion
5843 {{Special:Prefixindex/Xyzzyx}}
5847 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5852 Special page transclusion twice (bug 5021)
5855 {{Special:Prefixindex/Xyzzyx}}
5856 {{Special:Prefixindex/Xyzzyx}}
5860 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5863 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5868 Transclusion of default MediaWiki message
5870 {{MediaWiki:Mainpage}}
5877 Transclusion of nonexistent MediaWiki message
5879 {{MediaWiki:Mainpagexxx}}
5881 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
5886 Transclusion of MediaWiki message with underscore
5888 {{MediaWiki:history_short}}
5895 Transclusion of MediaWiki message with space
5897 {{MediaWiki:history short}}
5904 Invalid header with following text
5914 Section extraction test (section 0)
5934 Section extraction test (section 1)
5956 Section extraction test (section 2)
5977 Section extraction test (section 3)
5997 Section extraction test (section 4)
6021 Section extraction test (section 5)
6041 Section extraction test (section 6)
6062 Section extraction test (section 7)
6082 Section extraction test (section 8)
6102 Section extraction test (section 9)
6123 Section extraction test (section 10)
6143 Section extraction test (nonexistent section 11)
6162 Section extraction test with bogus heading (section 1)
6167 ==bogus== not a legal section
6171 ==bogus== not a legal section
6175 Section extraction test with bogus heading (section 2)
6180 ==bogus== not a legal section
6187 Section extraction test with comment after heading (section 1)
6199 Section extraction test with comment after heading (section 2)
6211 Section extraction test with bogus <nowiki> heading (section 1)
6216 ==bogus== <nowiki>not a legal section</nowiki>
6220 ==bogus== <nowiki>not a legal section</nowiki>
6224 Section extraction test with bogus <nowiki> heading (section 2)
6229 ==bogus== <nowiki>not a legal section</nowiki>
6236 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6237 # instead of respecting commented sections
6239 Section extraction prefixed by comment (section 1)
6250 Section extraction prefixed by comment (section 2)
6261 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6262 # instead of respecting HTML-style headings
6264 Section extraction, mixed wiki and html (section 1)
6280 Section extraction, mixed wiki and html (section 2)
6296 # Formerly testing for bug 3342
6298 Section extraction, heading surrounded by <noinclude>
6302 <noinclude>==unmarked==</noinclude>
6308 # Test behaviour of bug 19910
6310 Sectiion with all-equals
6315 The line above must have a trailing space
6318 But just in case it doesn't...
6322 But just in case it doesn't...
6326 Section replacement test (section 0)
6357 Section replacement test (section 1)
6386 Section replacement test (section 2)
6416 Section replacement test (section 3)
6447 Section replacement test (section 4)
6474 Section replacement test (section 5)
6505 Section replacement test (section 6)
6535 Section replacement test (section 7)
6566 Section replacement test (section 8)
6597 Section replacement test (section 9)
6626 Section replacement test (section 10)
6656 Section replacement test with initial whitespace (bug 13728)
6660 Preformatted initial line
6664 Preformatted initial line
6671 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6683 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6696 Section extraction, <pre> around bogus header (bug 10309)
6713 Section replacement, <pre> around bogus header (bug 10309)
6715 noxml replace=2,"xxx"
6736 Handling of 
 in URLs
6740 <ul><li><ul><li><a href="irc://%0Aa" class="external free" rel="nofollow">irc://%0Aa</a>
6747 5 quotes, code coverage +1 line
6754 Special:Search page linking.
6758 <p><a href="/wiki/Special:Search">Special:Search</a>
6773 * {{SUBJECTPAGENAME}}
6774 * {{SUBJECTPAGENAMEE}}
6781 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6783 <ul><li> Parser test
6784 </li><li> Parser test
6785 </li><li> Parser test
6786 </li><li> Parser_test
6787 </li><li> Parser test
6788 </li><li> Parser_test
6789 </li><li> Talk:Parser test
6790 </li><li> Talk:Parser_test
6791 </li><li> Parser test
6792 </li><li> Parser_test
6799 </li><li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
6803 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6813 image4 |300px| centre
6814 image5.svg| http://///////
6819 <ul class="gallery">
6820 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6821 <div style="height: 150px;">Image1.png</div>
6822 <div class="gallerytext">
6825 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6826 <div style="height: 150px;">Image2.gif</div>
6827 <div class="gallerytext">
6832 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6833 <div style="height: 150px;">Image3</div>
6834 <div class="gallerytext">
6837 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6838 <div style="height: 150px;">Image4</div>
6839 <div class="gallerytext">
6844 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6845 <div style="height: 150px;">Image5.svg</div>
6846 <div class="gallerytext">
6847 <p><a href="http://///////" class="external free" rel="nofollow">http://///////</a>
6851 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6852 <div style="height: 150px;">* image6</div>
6853 <div class="gallerytext">
6861 Gallery (with options)
6863 <gallery widths='60px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
6864 File:Nonexistant.jpg|caption
6865 File:Nonexistant.jpg
6866 image:foobar.jpg|some '''caption''' [[Main Page]]
6870 <ul class="gallery" style="max-width: 220px;_width: 220px;">
6871 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page">Main Page</a></li>
6872 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6873 <div style="height: 70px;">Nonexistant.jpg</div>
6874 <div class="gallerytext">
6879 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6880 <div style="height: 70px;">Nonexistant.jpg</div>
6881 <div class="gallerytext">
6884 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6885 <div class="thumb" style="width: 90px; height: 70px;"><div style="margin:31px 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>
6886 <div class="gallerytext">
6887 <p>some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
6891 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6892 <div class="thumb" style="width: 90px; height: 70px;"><div style="margin:31px 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>
6893 <div class="gallerytext">
6901 gallery (with showfilename option)
6903 <gallery showfilename>
6904 File:Nonexistant.jpg|caption
6905 File:Nonexistant.jpg
6906 image:foobar.jpg|some '''caption''' [[Main Page]]
6910 <ul class="gallery">
6911 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6912 <div style="height: 150px;">Nonexistant.jpg</div>
6913 <div class="gallerytext">
6914 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
6919 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6920 <div style="height: 150px;">Nonexistant.jpg</div>
6921 <div class="gallerytext">
6922 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
6926 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6927 <div class="thumb" style="width: 150px; height: 150px;"><div style="margin:68px 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>
6928 <div class="gallerytext">
6929 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
6930 some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
6934 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6935 <div class="thumb" style="width: 150px; height: 150px;"><div style="margin:68px 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>
6936 <div class="gallerytext">
6937 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
6946 HTML Hex character encoding (spells the word "JavaScript")
6948 JavaScript
6950 <p>JavaScript
6955 HTML Hex character encoding bogus encoding (bug 26437 regression check)
6959 <p>&#xsee;&#XSEE;
6964 HTML Hex character encoding mixed case
6973 __FORCETOC__ override
6985 ISBN 978-0-1234-56 789
6987 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
6992 ISBN followed by 5 spaces
7003 ISBN ISBN 1234567890
7005 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7010 Bug 22905: <abbr> followed by ISBN followed by </a>
7012 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7014 <p><abbr>(fr)</abbr> <a href="/wiki/Special:BookSources/2753300917" class="internal mw-magiclink-isbn">ISBN 2753300917</a> <a href="http://www.example.com" class="external text" rel="nofollow">example.com</a>
7023 <p>RFC <a href="http://tools.ietf.org/html/rfc1234" class="external mw-magiclink-rfc">RFC 1234</a>
7028 Double RFC with a wiki link
7032 <p>RFC <a href="/index.php?title=RFC_1234&action=edit&redlink=1" class="new" title="RFC 1234 (page does not exist)">RFC 1234</a>
7041 <p><a href="http://tools.ietf.org/html/rfc983" class="external mw-magiclink-rfc">RFC 983</a> 987
7046 Centre-aligned image
7048 [[Image:foobar.jpg|centre]]
7050 <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>
7057 [[Image:foobar.jpg|none]]
7059 <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>
7064 Width + Height sized image (using px) (height is ignored)
7066 [[Image:foobar.jpg|640x480px]]
7068 <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>
7073 Width-sized image (using px, no following whitespace)
7075 [[Image:foobar.jpg|640px]]
7077 <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>
7082 Width-sized image (using px, with following whitespace - test regression from r39467)
7084 [[Image:foobar.jpg|640px ]]
7086 <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>
7091 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7093 [[Image:foobar.jpg| 640px]]
7095 <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>
7100 Another italics / bold test
7108 # Note the results may be incorrect, as parserTest output included this:
7109 # XML error: Mismatched tag at byte 6120:
7110 # ...<dd> </dt></dl> </dd...
7118 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7129 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7131 Images with the "|" character in the comment
7133 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7135 <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 href="http://test/?param1=%7Cleft%7C&param2=%7Cx" class="external text" rel="nofollow">external</a> URL</div></div></div>
7140 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7142 <html><script>alert(1);</script></html>
7144 <p><html><script>alert(1);</script></html>
7149 HTML with raw HTML ($wgRawHtml==true)
7153 <html><script>alert(1);</script></html>
7155 <p><script>alert(1);</script>
7160 Parents of subpages, one level up
7162 subpage title=[[Subpage test/L1/L2/L3]]
7166 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (page does not exist)">L2</a>
7172 Parents of subpages, one level up, not named
7174 subpage title=[[Subpage test/L1/L2/L3]]
7178 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (page does not exist)">Subpage test/L1/L2</a>
7185 Parents of subpages, two levels up
7187 subpage title=[[Subpage test/L1/L2/L3]]
7193 <p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">L1</a>2
7194 </p><p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">L1l</a>
7199 Parents of subpages, two levels up, without trailing slash or name.
7201 subpage title=[[Subpage test/L1/L2/L3]]
7210 Parents of subpages, two levels up, with lots of extra trailing slashes.
7212 subpage title=[[Subpage test/L1/L2/L3]]
7216 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7221 Definition list code coverage
7227 <dl><dt> title  </dt><dd> def
7228 </dd><dt> title </dt><dd> def
7229 </dd><dt>title</dt><dd> def
7235 Don't fall for the self-closing div
7237 <div>hello world</div/>
7239 <div>hello world</div>
7248 <p>[[:Template:Msg]]
7257 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7261 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7263 Always escape literal '>' in output, not just after '<'
7277 <p>This is a test template
7278 This is a test template
7290 Inclusion of !userCanEdit() content
7294 <h2><span class="editsection">[<a href="/index.php?title=MediaWiki:Fake&action=edit&section=T-1" title="MediaWiki:Fake">edit</a>]</span> <span class="mw-headline" id="header">header</span></h2>
7300 Out-of-order TOC heading levels
7309 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7311 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7313 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7314 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7317 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7319 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7320 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7325 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2">2</span></h2>
7326 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a>]</span> <span class="mw-headline" id="6">6</span></h6>
7327 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a>]</span> <span class="mw-headline" id="3">3</span></h3>
7328 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a>]</span> <span class="mw-headline" id="1">1</span></h1>
7329 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: 5">edit</a>]</span> <span class="mw-headline" id="5">5</span></h5>
7330 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2_2">2</span></h2>
7336 ISBN with a dummy number
7346 ISBN with space-delimited number
7350 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7356 ISBN with multiple spaces, no number
7375 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7376 </p><p>ISBN 12345678901
7382 ISBN with trailing year (bug 8110)
7384 ISBN 1-234-56789-0 - 2006
7386 ISBN 1 234 56789 0 - 2006
7388 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7389 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7397 {{anchorencode:foo bar©#%n}}
7399 <p>foo_bar.C2.A9.23.25n
7404 anchorencode trims spaces
7406 {{anchorencode: __pretty__please__}}
7413 anchorencode deals with links
7415 {{anchorencode: [[hello|world]] [[hi]]}}
7422 anchorencode deals with templates
7424 {{anchorencode: {{Foo}} }}
7431 anchorencode encodes like the TOC generator: (bug 18431)
7433 === _ +:.3A%3A&&]] ===
7434 {{anchorencode: _ +:.3A%3A&&]] }}
7437 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7438 <p>.2B:.3A.253A.26.26.5D.5D
7442 # Expected output in the following test is not necessarily expected (there
7443 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7444 # only testing for well-formedness.
7446 Bug 6200: blockquotes and paragraph formatting
7466 Bug 8293: Use of center tag ruins paragraph formatting
7488 ### Language variants related tests
7491 Self-link in language variants
7493 title=[[Dunav]] language=sr
7495 Both [[Dunav]] and [[Дунав]] are names for this river.
7497 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7503 Link to pages in language variants
7507 Main Page can be written as [[Маин Паге]]
7509 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7515 Multiple links to pages in language variants
7519 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7521 <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>.
7527 Simple template in language variants
7533 <p>This is a test template
7539 Template with explicit namespace in language variants
7545 <p>This is a test template
7551 Basic test for template parameter in language variants
7555 {{парамтест|param=foo}}
7557 <p>This is a test template with parameter foo
7563 Simple category in language variants
7567 [[Category:МедиаWики Усер'с Гуиде]]
7569 <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>
7574 Stripping -{}- tags (language variants)
7578 Latin proverb: -{Ne nuntium necare}-
7580 <p>Latin proverb: Ne nuntium necare
7586 Prevent conversion with -{}- tags (language variants)
7588 language=sr variant=sr-ec
7590 Latinski: -{Ne nuntium necare}-
7592 <p>Латински: Ne nuntium necare
7598 Prevent conversion of text with -{}- tags (language variants)
7600 language=sr variant=sr-ec
7602 Latinski: -{Ne nuntium necare}-
7604 <p>Латински: Ne nuntium necare
7610 Prevent conversion of links with -{}- tags (language variants)
7612 language=sr variant=sr-ec
7616 <p><a href="/wiki/Main_Page">Main Page</a>
7622 -{}- tags within headlines (within html for parserConvert())
7624 language=sr variant=sr-ec
7628 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Уреди део: Naslov">уреди</a>]</span> <span class="mw-headline" id="-.7BNaslov.7D-"> Naslov </span></h2>
7634 Explicit definition of language variant alternatives
7636 language=zh variant=zh-tw
7638 -{zh:China;zh-tw:Taiwan}-, not China
7640 <p>Taiwan, not China
7646 Explicit session-wise language variant mapping (A flag and - flag)
7648 language=zh variant=zh-tw
7650 Taiwan is not China.
7651 But -{A|zh:China;zh-tw:Taiwan}- is China,
7652 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
7653 and -{China}- is China.
7655 <p>Taiwan is not China.
7656 But Taiwan is Taiwan,
7657 (This should be stripped!)
7663 Explicit session-wise language variant mapping (H flag for hide)
7665 language=zh variant=zh-tw
7667 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
7670 <p>(This should be stripped!)
7676 Adding explicit conversion rule for title (T flag)
7678 language=zh variant=zh-tw showtitle
7680 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7683 <p>Should be stripped!
7688 Testing that changing the language variant here in the tests actually works
7690 language=zh variant=zh showtitle
7692 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7695 <p>Should be stripped!
7700 Bug 24072: more test on conversion rule for title
7702 language=zh variant=zh-tw showtitle
7704 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7705 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
7708 <p>This should be stripped!
7709 This won't take interferes with the title rule.
7714 Raw output of variant escape tags (R flag)
7716 language=zh variant=zh-tw
7718 Raw: -{R|zh:China;zh-tw:Taiwan}-
7720 <p>Raw: zh:China;zh-tw:Taiwan
7725 Nested using of manual convert syntax
7727 language=zh variant=zh-hk
7729 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
7731 <p>Nested: Hello Hong Kong!
7736 Do not convert roman numbers to language variants
7738 language=sr variant=sr-ec
7742 <p>Фридрих IV је цар.
7747 Unclosed language converter markup "-{"
7758 Don't convert raw rule "-{R|=>}-" to "=>"
7775 Bug 529/12974: Uncovered bullet
7785 Bug 529/12974: Uncovered table already at line-start
7818 Bug 529/12974: Uncovered bullet in parser function result
7820 * Foo {{lc:{{bullet}} }}
7828 Bug 5678: Double-parsed template argument
7830 {{lc:{{{1}}}|hello}}
7837 Bug 5678: Double-parsed template invocation
7839 {{lc:{{paramtest {{!}} param = hello }} }}
7841 <p>{{paramtest | param = hello }}
7846 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
7872 Morwen/13: Unclosed link followed by heading
7879 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
7884 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
7891 <h1> <span class="mw-headline" id="heading">heading</span></h1>
7896 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
7903 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
7918 Paragraphs inside divs (no extra line breaks)
7930 Paragraphs inside divs (extra line break on open)
7945 Paragraphs inside divs (extra line break on close)
7960 Paragraphs inside divs (extra line break on open and close)
7977 Nesting tags, paragraphs on lines which begin with <div>
7981 <div></div><strong>A
7990 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
7992 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
7996 <blockquote>Line one
7998 Line two</blockquote>
8000 <blockquote>Line one
8001 Line two</blockquote>
8006 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8013 Line two</blockquote>
8018 Line two</blockquote>
8023 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8027 <blockquote>Line one
8032 <blockquote>Line one
8040 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8059 Paragraphs inside blockquotes/divs (no extra line breaks)
8061 <blockquote><div>Line one
8063 Line two</div></blockquote>
8065 <blockquote><div>Line one
8066 Line two</div></blockquote>
8071 Paragraphs inside blockquotes/divs (extra line break on open)
8076 Line two</div></blockquote>
8081 Line two</div></blockquote>
8086 Paragraphs inside blockquotes/divs (extra line break on close)
8088 <blockquote><div>Line one
8093 <blockquote><div>Line one
8101 Paragraphs inside blockquotes/divs (extra line break on open and close)
8118 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8120 wgLinkHolderBatchSize=0
8126 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw">meatball:1</a>
8127 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw">meatball:2</a>
8128 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw">meatball:3</a>
8133 Free external link invading image caption
8135 [[Image:Foobar.jpg|thumb|http://x|hello]]
8137 <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>
8142 Bug 15196: localised external link numbers
8146 [http://en.wikipedia.org/]
8148 <p><a href="http://en.wikipedia.org/" class="external autonumber" rel="nofollow">[۱]</a>
8153 Multibyte character in padleft
8155 {{padleft:-Hello|7|Æ}}
8162 Multibyte character in padright
8164 {{padright:Hello-|7|Æ}}
8177 <p><span class="mw-formatted-date" title="2009-03-24"><a href="/index.php?title=2009&action=edit&redlink=1" class="new" title="2009 (page does not exist)">2009</a>-<a href="/index.php?title=March_24&action=edit&redlink=1" class="new" title="March 24 (page does not exist)">03-24</a></span>
8182 formatdate parser function
8184 {{#formatdate:2009-03-24}}
8186 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8191 formatdate parser function, with default format
8193 {{#formatdate:2009-03-24|mdy}}
8195 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8200 Linked date with autoformatting disabled
8202 wgUseDynamicDates=false
8206 <p><a href="/index.php?title=2009-03-24&action=edit&redlink=1" class="new" title="2009-03-24 (page does not exist)">2009-03-24</a>
8211 Spacing of numbers in formatted dates
8213 {{#formatdate:January 15}}
8215 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8220 Spacing of numbers in formatted dates (linked)
8222 wgUseDynamicDates=true
8226 <p><span class="mw-formatted-date" title="01-15"><a href="/index.php?title=January_15&action=edit&redlink=1" class="new" title="January 15 (page does not exist)">January 15</a></span>
8239 Edit comment with link
8243 I like the [[Main Page]] a lot
8245 I like the <a href="/wiki/Main_Page">Main Page</a> a lot
8249 Edit comment with link and link text
8253 I like the [[Main Page|best pages]] a lot
8255 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8259 Edit comment with link and link text with suffix
8263 I like the [[Main Page|best page]]s a lot
8265 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8269 Edit comment with section link (non-local, eg in history list)
8271 comment title=[[Main Page]]
8273 /* External links */ removed bogus entries
8275 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
8279 Edit comment with section link (local, eg in diff view)
8281 comment local title=[[Main Page]]
8283 /* External links */ removed bogus entries
8285 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
8289 Edit comment with subpage link (bug 14080)
8293 title=[[Subpage test]]
8295 Poked at a [[/subpage]] here...
8297 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8301 Edit comment with subpage link and link text (bug 14080)
8305 title=[[Subpage test]]
8307 Poked at a [[/subpage|neat little page]] here...
8309 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8313 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8316 title=[[Subpage test]]
8318 Poked at a [[/subpage]] here...
8320 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8324 Edit comment with bare anchor link (local, as on diff)
8332 <a href="#section">#section</a>
8336 Edit comment with bare anchor link (non-local, as on history)
8343 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8347 Space normalisation on autocomment (bug 22784)
8352 /* __hello__world__ */
8354 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
8358 percent-encoding and + signs in comments (Bug 26410)
8362 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8364 <a href="/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">ABC3D% ++</a> <a href="/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">+%20</a>
8368 Bad images - basic functionality
8375 Bad images - bug 16039: text after bad image disappears
8387 Verify that displaytitle works (bug #22501) no displaytitle
8391 wgAllowDisplayTitle=true
8392 wgRestrictDisplayTitle=false
8394 this is not the the title
8397 <p>this is not the the title
8402 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8407 wgAllowDisplayTitle=true
8408 wgRestrictDisplayTitle=false
8410 this is not the the title
8411 {{DISPLAYTITLE:whatever}}
8414 <p>this is not the the title
8419 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8424 wgAllowDisplayTitle=true
8425 wgRestrictDisplayTitle=true
8427 this is not the the title
8428 {{DISPLAYTITLE:whatever}}
8431 <p>this is not the the title
8436 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8441 wgAllowDisplayTitle=true
8442 wgRestrictDisplayTitle=true
8444 this is not the the title
8445 {{DISPLAYTITLE:screen}}
8448 <p>this is not the the title
8453 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8458 wgAllowDisplayTitle=false
8460 this is not the the title
8461 {{DISPLAYTITLE:screen}}
8464 <p>this is not the the title
8465 <a href="/index.php?title=Template:DISPLAYTITLE:screen&action=edit&redlink=1" class="new" title="Template:DISPLAYTITLE:screen (page does not exist)">Template:DISPLAYTITLE:screen</a>
8470 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8475 wgAllowDisplayTitle=false
8477 this is not the the title
8480 <p>this is not the the title
8485 preload: check <noinclude> and <includeonly>
8489 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8495 preload: check <onlyinclude>
8499 Goodbye <onlyinclude>Hello world</onlyinclude>
8505 preload: can pass tags through if we want to
8509 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8511 <includeonly>Hello world</includeonly>
8515 preload: check that it doesn't try to do tricks
8519 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8521 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8525 Play a bit with r67090 and bug 3158
8529 <div style="width:50% !important"> </div>
8530 <div style="width:50% !important"> </div>
8531 <div style="width:50% !important"> </div>
8532 <div style="border : solid;"> </div>
8534 <div style="width:50% !important"> </div>
8535 <div style="width:50% !important"> </div>
8536 <div style="width:50% !important"> </div>
8537 <div style="border : solid;"> </div>
8542 HTML5 data attributes
8544 <span data-foo="bar">Baz</span>
8545 <p data-abc-def_hij="">Quuz</p>
8547 <p><span data-foo="bar">Baz</span>
8549 <p data-abc-def_hij="">Quuz</p>
8554 percent-encoding and + signs in internal links (Bug 26410)
8556 [[User:+%]] [[Page+title%]]
8557 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
8558 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
8559 [[%33%45]] [[%33%45+]]
8561 <p><a href="/index.php?title=User:%2B%25&action=edit&redlink=1" class="new" title="User:+% (page does not exist)">User:+%</a> <a href="/index.php?title=Page%2Btitle%25&action=edit&redlink=1" class="new" title="Page+title% (page does not exist)">Page+title%</a>
8562 <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%20</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+ </a> <a href="/index.php?title=%25%2Br&action=edit&redlink=1" class="new" title="%+r (page does not exist)">%+r</a>
8563 <a href="/index.php?title=%25&action=edit&redlink=1" class="new" title="% (page does not exist)">%</a> <a href="/index.php?title=%2B&action=edit&redlink=1" class="new" title="+ (page does not exist)">+</a> <a href="/index.php?title=Special:Upload&wpDestFile=%25%2Babc9" class="new" title="File:%+abc9">bar</a>
8564 <a href="/index.php?title=3E&action=edit&redlink=1" class="new" title="3E (page does not exist)">3E</a> <a href="/index.php?title=3E%2B&action=edit&redlink=1" class="new" title="3E+ (page does not exist)">3E+</a>
8574 Try for 100% code coverage