1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
75 This is a simple paragraph.
77 <p>This is a simple paragraph.
97 * plain''italic''plain
98 * plain''italic''plain''italic''plain
99 * plain'''bold'''plain
100 * plain'''bold'''plain'''bold'''plain
101 * plain''italic''plain'''bold'''plain
102 * plain'''bold'''plain''italic''plain
103 * plain''italic'''bold-italic'''italic''plain
104 * plain'''bold''bold-italic''bold'''plain
105 * plain'''''bold-italic'''italic''plain
106 * plain'''''bold-italic''bold'''plain
107 * plain''italic'''bold-italic'''''plain
108 * plain'''bold''bold-italic'''''plain
109 * plain l'''italic''plain
110 * plain l''''bold''' plain
113 </li><li> plain<i>italic</i>plain
114 </li><li> plain<i>italic</i>plain<i>italic</i>plain
115 </li><li> plain<b>bold</b>plain
116 </li><li> plain<b>bold</b>plain<b>bold</b>plain
117 </li><li> plain<i>italic</i>plain<b>bold</b>plain
118 </li><li> plain<b>bold</b>plain<i>italic</i>plain
119 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
120 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
121 </li><li> plain<i><b>bold-italic</b>italic</i>plain
122 </li><li> plain<b><i>bold-italic</i>bold</b>plain
123 </li><li> plain<i>italic<b>bold-italic</b></i>plain
124 </li><li> plain<b>bold<i>bold-italic</i></b>plain
125 </li><li> plain l'<i>italic</i>plain
126 </li><li> plain l'<b>bold</b> plain
132 ### <nowiki> test cases
136 <nowiki> unordered list
138 <nowiki>* This is not an unordered list item.</nowiki>
140 <p>* This is not an unordered list item.
147 <nowiki>Lorem ipsum dolor
168 :There is not nowiki.
169 :There is <nowiki>nowiki</nowiki>.
171 #There is not nowiki.
172 #There is <nowiki>nowiki</nowiki>.
174 *There is not nowiki.
175 *There is <nowiki>nowiki</nowiki>.
177 <dl><dd>There is not nowiki.
178 </dd><dd>There is nowiki.
180 <ol><li>There is not nowiki.
181 </li><li>There is nowiki.
183 <ul><li>There is not nowiki.
184 </li><li>There is nowiki.
196 <!-- comment 1 --> asdf
232 asdf<!-- comment 1 -->jkl
242 <!-- foo --> b <!-- bar -->
256 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
262 Comment semantics and delimiters
264 <!-- --><!----><!-----><!------>
270 Comment semantics and delimiters, redux
272 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
273 -- foo -- funky huh? ... -->
279 Comment semantics and delimiters: directors cut
281 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
282 everything starting with < followed by !-- until the first -- and > we see,
283 that wouldn't be valid XML however, since in XML -- has to terminate a comment
291 Comment semantics: nesting
293 <!--<!-- no, we're not going to do anything fancy here -->-->
300 Comment semantics: unclosed comment at end
302 <!--This comment will run out to the end of the document
308 Comment in template title
317 Comment on its own line post-expand
329 ### Preformatted text
338 And a [[Main Page|link]]
344 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
349 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
366 Regression with preformatted in <center>
379 # Expected output in the following test is not really expected (there should be
380 # <pre> in the output) -- it's only testing for well-formedness.
382 Bug 6200: Preformatted in <blockquote>
395 <pre> with attributes (bug 3202)
397 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
399 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
404 <pre> with width attribute (bug 3202)
406 <pre width="8">Narrow screen goodies</pre>
408 <pre width="8">Narrow screen goodies</pre>
413 <pre> with forbidden attribute (bug 3202)
415 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
417 <pre width="8">Narrow screen goodies</pre>
422 <pre> with forbidden attribute values (bug 3202)
424 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
426 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
431 <nowiki> inside <pre> (bug 13238)
439 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
447 <pre><nowiki>Foo</nowiki></pre>
452 <nowiki> and <pre> preference (first one wins)
491 <dl><dt> name </dt><dd> Definition
497 Definition list for indentation only
501 <dl><dd> Indented text
507 Definition list with no space
511 <dl><dt>name</dt><dd>Definition
517 Definition list with URL link
519 ; http://example.com/ : definition
521 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
527 Definition list with bracketed URL link
529 ;[http://www.example.com/ Example]:Something about it
531 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
537 Definition list with wikilink containing colon
539 ; [[Help:FAQ]]: The least-read page on Wikipedia
541 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
546 # At Brion's and JeLuF's insistence... :)
548 Definition list with news link containing colon
550 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
552 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
558 Malformed definition list with colon
560 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
562 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
568 Definition lists: colon in external link text
570 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
572 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
578 Definition lists: colon in HTML attribute
580 ;<b style="display: inline">bold</b>
582 <dl><dt><b style="display: inline">bold</b>
589 Definition lists: self-closed tag
591 ;one<br/>two : two-line fun
593 <dl><dt>one<br />two </dt><dd> two-line fun
599 Bug 11748: Literal closing tags
605 <dd>test test test test test</dd>
607 <dd>test test test test test</dd>
612 <dd>test test test test test</dd>
614 <dd>test test test test test</dd>
622 External links: non-bracketed
624 Non-bracketed: http://example.com
626 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
631 External links: numbered
633 Numbered: [http://example.com]
634 Numbered: [http://example.net]
635 Numbered: [http://example.com]
637 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
638 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
639 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
644 External links: specified text
646 Specified text: [http://example.com link]
648 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
653 External links: trail
655 Linktrails should not work for external links: [http://example.com link]s
657 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
662 External links: dollar sign in URL
664 http://example.com/1$2345
666 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
671 External links: dollar sign in URL (named)
673 [http://example.com/1$2345]
675 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
680 External links: open square bracket forbidden in URL (bug 4377)
682 http://example.com/1[2345
684 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
689 External links: open square bracket forbidden in URL (named) (bug 4377)
691 [http://example.com/1[2345]
693 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
698 External links: nowiki in URL link text (bug 6230)
700 [http://example.com/ <nowiki>''example site''</nowiki>]
702 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
707 External links: newline forbidden in text (bug 6230 regression check)
709 [http://example.com/ first
712 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
720 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
722 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
727 External image from https
729 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
731 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
736 Link to non-http image, no img tag
738 Link to non-http image, no img tag: ftp://example.com/test.jpg
740 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
745 External links: terminating separator
747 Terminating separator: http://example.com/thing,
749 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
754 External links: intervening separator
756 Intervening separator: http://example.com/1,2,3
758 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
763 External links: old bug with URL in query
765 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
767 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
772 External links: old URL-in-URL bug, mixed protocols
774 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
776 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
781 External links: URL in text
783 URL in text: [http://example.com http://example.com]
785 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
790 External links: Clickable images
792 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
794 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
799 External links: raw ampersand
801 Old & use: http://x&y
803 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
808 External links: encoded ampersand
810 Old & use: http://x&y
812 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
817 External links: encoded equals (bug 6102)
819 http://example.com/?foo=bar
821 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
826 External links: [raw ampersand]
828 Old & use: [http://x&y]
830 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
835 External links: [encoded ampersand]
837 Old & use: [http://x&y]
839 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
844 External links: [encoded equals] (bug 6102)
846 [http://example.com/?foo=bar]
848 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
853 External links: [IDN ignored character reference in hostname; strip it right off]
855 [http://e‌xample.com/]
857 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
862 External links: IDN ignored character reference in hostname; strip it right off
864 http://e‌xample.com/
866 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
871 External links: www.jpeg.org (bug 554)
875 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
880 External links: URL within URL (original bug 2)
882 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
884 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
889 BUG 361: URL inside bracketed URL
891 [http://www.example.com/foo http://www.example.com/bar]
893 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
898 BUG 361: URL within URL, not bracketed
900 http://www.example.com/foo?=http://www.example.com/bar
902 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
907 BUG 289: ">"-token in URL-tail
909 http://www.example.com/<hello>
911 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
916 BUG 289: literal ">"-token in URL-tail
918 http://www.example.com/<b>html</b>
920 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
925 BUG 289: ">"-token in bracketed URL
927 [http://www.example.com/<hello> stuff]
929 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
934 BUG 289: literal ">"-token in bracketed URL
936 [http://www.example.com/<b>html</b> stuff]
938 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
943 BUG 289: literal double quote at end of URL
945 http://www.example.com/"hello"
947 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
952 BUG 289: literal double quote in bracketed URL
954 [http://www.example.com/"hello" stuff]
956 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
961 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
963 [http://www.example.com test]
965 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
970 External links: wiki links within external link (Bug 3695)
972 [http://example.com [[wikilink]] embedded in ext link]
974 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
979 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 rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1000 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1001 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1002 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1003 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1009 Bug 4781: %26 in URL
1011 http://www.example.com/?title=AT%26T
1013 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">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 rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">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 rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
1037 Bug 4781: %26 in autonumber URL
1039 [http://www.example.com/?title=AT%26T]
1041 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1046 Bug 4781, 5267: %26 in autonumber URL
1048 [http://www.example.com/?title=100%25_Bran]
1050 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[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 rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1065 Bug 4781: %26 in bracketed URL
1067 [http://www.example.com/?title=AT%26T link]
1069 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1074 Bug 4781, 5267: %26 in bracketed URL
1076 [http://www.example.com/?title=100%25_Bran link]
1078 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">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 rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">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 rel="nofollow" class="external text" href="http://example.com/">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 rel="nofollow" class="external text" href="http://example.com/"><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 rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
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
1214 </caption><tr><td></td></tr></table>
1240 Multiplication table
1242 {| border="1" cellpadding="2"
1243 |+Multiplication table
1245 ! × !! 1 !! 2 !! 3
1263 <table border="1" cellpadding="2">
1264 <caption>Multiplication table
1313 {| align=right border=1
1315 |rowspan=2| Cell 2, row 1 (and 2)
1322 <table align="right" border="1">
1326 <td rowspan="2"> Cell 2, row 1 (and 2)
1344 {| bgcolor=#ABCDEF border=2
1349 |the original table again
1357 <table bgcolor="#ABCDEF" border="2">
1365 <td>the original table again
1371 Invalid attributes in table cell (bug 1830)
1386 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1389 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1393 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
1394 <td>]" onmouseover="alert(document.cookie)">test
1406 Plain link, capitalized
1410 <p><a href="/wiki/Main_Page">Main Page</a>
1415 Plain link, uncapitalized
1419 <p><a href="/wiki/Main_Page">main Page</a>
1426 [[Main Page|The Main Page]]
1428 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1437 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1442 Broken link with fragment
1444 [[Zigzagzogzagzig#zug]]
1446 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1451 Special page link with fragment
1453 [[Special:Version#anchor]]
1455 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1460 Nonexistent special page link with fragment
1462 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1464 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1471 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1473 <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>
1480 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1482 <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>!!!
1487 Link with 3 brackets
1496 Piped link with 3 brackets
1498 [[[main page|the main page]]]
1500 <p>[[[main page|the main page]]]
1505 Link with multiple pipes
1507 [[Main Page|The|Main|Page]]
1509 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1516 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1518 <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>
1523 Piped link to namespace
1525 [[Meta:Disclaimers|The disclaimers]]
1527 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1534 [[Usually caused by a typo (oops}]]
1536 <p>[[Usually caused by a typo (oops}]]
1541 Link containing % (not as a hex sequence)
1545 <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>
1550 Link containing % as a single hex sequence interpreted to char
1554 <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>
1559 Link containing % as a double hex sequence interpreted to hex sequence
1563 <p>[[7%2525 Solution]]
1568 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1569 Example for such a section: == < ==
1571 [[%23%3c]][[%23%3e]]
1573 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1578 Link containing "<#" and ">#" as a hex sequences
1580 [[%3c%23]][[%3e%23]]
1582 <p>[[%3c%23]][[%3e%23]]
1587 Link containing double-single-quotes '' (bug 4598)
1589 [[Lista d''e paise d''o munno]]
1591 <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>
1596 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1598 Some [[Link|pretty ''italics'' and stuff]]!
1600 <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>!
1605 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1607 ''Some [[Link|pretty ''italics'' and stuff]]!
1609 <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>
1614 Link with double quotes in title part (literal) and alternate part (interpreted)
1616 [[File:Denys Savchenko ''Pentecoste''.jpg]]
1620 [[''Pentecoste''|Pentecoste]]
1622 [[''Pentecoste''|''Pentecoste'']]
1624 <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>
1625 </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>
1626 </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>
1627 </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>
1634 [[http://www.example.com]]
1636 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
1640 # I'm fairly sure the expected result here is wrong.
1641 # We want these to be URL links, not pseudo-pages with URLs for titles....
1642 # However the current output is also pretty screwy.
1645 # I'm changing it to match the current output--it arguably makes more
1646 # sense in the light of the test above. Old expected result was:
1647 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1649 # But I think this test is bordering on "garbage in, garbage out" anyway.
1654 Piped link to URL: [[http://www.example.com|an example URL]]
1656 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
1661 BUG 2: [[page|http://url/]] should link to page, not http://url/
1663 [[Main Page|http://url/]]
1665 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1670 BUG 337: Escaped self-links should be bold
1674 [[Bug462]] [[Bug462]]
1676 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1681 Self-link to section should not be bold
1685 [[Main Page#section]]
1687 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1698 Self-link to numeric title
1704 <p><strong class="selflink">0</strong>
1709 Link to numeric-equivalent title
1715 <p><a href="/wiki/00">00</a>
1720 <nowiki> inside a link
1722 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1724 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1729 Non-breaking spaces in title
1731 [[ Main Page ]]
1733 <p><a href="/wiki/Main_Page" title="Main Page"> Main Page </a>
1739 ### Interwiki links (see maintenance/interwiki.sql)
1743 Inline interwiki link
1745 [[MeatBall:SoftSecurity]]
1747 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw">MeatBall:SoftSecurity</a>
1752 Inline interwiki link with empty title (bug 2372)
1756 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw">MeatBall:</a>
1761 Interwiki link encoding conversion (bug 1636)
1763 *[[Wikipedia:ro:Olteniţa]]
1764 *[[Wikipedia:ro:Olteniţa]]
1766 <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>
1767 </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>
1773 Interwiki link with fragment (bug 2130)
1775 [[MeatBall:SoftSecurity#foo]]
1777 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1792 Double interlanguage link
1803 Interlanguage link, with prefix links
1815 Double interlanguage link, with prefix links (bug 8897)
1842 Incorrecly removing closing slashes from correctly formed XHTML
1844 <br style="clear:both;" />
1846 <p><br style="clear:both;" />
1851 Failing to transform badly formed HTML into correct XHTML
1857 <p><br clear="left" />
1858 <br clear="right" />
1864 Horizontal ruler (should it add that extra space?)
1878 ### Block-level elements
1901 <ol><li>Numbered list
1918 ***#Number on level 4
1920 **#Number on level 3
1921 **#Number on level 3
1926 <ol><li> with numbers
1928 <ul><li> and bullets
1930 <ol><li> and numbers
1932 </li><li>bullets again
1933 <ul><li>bullet level 2
1934 <ul><li>bullet level 3
1935 <ol><li>Number on level 4
1938 </li><li>bullet level 2
1939 <ol><li>Number on level 3
1940 </li><li>Number on level 3
1943 <ol><li>number level 2
1951 List items are not parsed correctly following a <pre> block (bug 785)
1957 <ul><li> <pre>foo</pre>
1958 </li><li> <pre>bar</pre>
1969 Magic Word: {{CURRENTDAY}}
1978 Magic Word: {{CURRENTDAY2}}
1987 Magic Word: {{CURRENTDAYNAME}}
1996 Magic Word: {{CURRENTDOW}}
2005 Magic Word: {{CURRENTMONTH}}
2014 Magic Word: {{CURRENTMONTHABBREV}}
2016 {{CURRENTMONTHABBREV}}
2023 Magic Word: {{CURRENTMONTHNAME}}
2025 {{CURRENTMONTHNAME}}
2032 Magic Word: {{CURRENTMONTHNAMEGEN}}
2034 {{CURRENTMONTHNAMEGEN}}
2041 Magic Word: {{CURRENTTIME}}
2050 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2059 Magic Word: {{CURRENTYEAR}}
2068 Magic Word: {{FULLPAGENAME}}
2070 title=[[User:Ævar Arnfjörð Bjarmason]]
2074 <p>User:Ævar Arnfjörð Bjarmason
2079 Magic Word: {{FULLPAGENAMEE}}
2081 title=[[User:Ævar Arnfjörð Bjarmason]]
2085 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2090 Magic Word: {{NAMESPACE}}
2092 title=[[User:Ævar Arnfjörð Bjarmason]]
2101 Magic Word: {{NAMESPACEE}}
2103 title=[[User:Ævar Arnfjörð Bjarmason]]
2112 Magic Word: {{NUMBEROFFILES}}
2121 Magic Word: {{PAGENAME}}
2123 title=[[User:Ævar Arnfjörð Bjarmason]]
2127 <p>Ævar Arnfjörð Bjarmason
2132 Magic Word: {{PAGENAME}} with metacharacters
2134 title=[['foo & bar = baz']]
2138 <p><i>'foo & bar = baz'</i>
2143 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2145 title=[[*RFC 1234 http://example.com/]]
2149 <p>*RFC 1234 http://example.com/
2154 Magic Word: {{PAGENAMEE}}
2156 title=[[User:Ævar Arnfjörð Bjarmason]]
2160 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2165 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2167 title=[[*RFC 1234 http://example.com/]]
2171 <p>*RFC_1234_http://example.com/
2176 Magic Word: {{REVISIONID}}
2185 Magic Word: {{SCRIPTPATH}}
2194 Magic Word: {{SERVER}}
2198 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2203 Magic Word: {{SERVERNAME}}
2212 Magic Word: {{SITENAME}}
2221 Namespace 1 {{ns:1}}
2230 Namespace 1 {{ns:01}}
2239 Namespace 0 {{ns:0}} (bug 4783)
2247 Namespace 0 {{ns:00}} (bug 4783)
2255 Namespace -1 {{ns:-1}}
2264 Namespace User {{ns:User}}
2273 Namespace User talk {{ns:User_talk}}
2282 Namespace User talk {{ns:uSeR tAlK}}
2291 Namespace File {{ns:File}}
2300 Namespace File {{ns:Image}}
2309 Namespace (lang=de) Benutzer {{ns:User}}
2320 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2326 <p>Benutzer Diskussion
2334 {{urlencode:hi world?!}}
2335 {{urlencode:hi world?!|WIKI}}
2336 {{urlencode:hi world?!|PATH}}
2337 {{urlencode:hi world?!|QUERY}}
2350 Magic links: internal link to RFC (bug 479)
2354 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2359 Magic links: RFC (bug 479)
2363 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc822">RFC 822</a>
2368 Magic links: ISBN (bug 1937)
2372 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2377 Magic links: PMID incorrectly converts space to underscore
2381 <p><a class="external mw-magiclink-pmid" href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2390 Nonexistent template
2392 {{thistemplatedoesnotexist}}
2394 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2401 This is a test template
2409 <p>This is a test template
2414 Template with explicit namespace
2418 <p>This is a test template
2426 This is a test template with parameter {{{param}}}
2432 {{paramtest|param=foo}}
2434 <p>This is a test template with parameter foo
2439 Template:paramtestnum
2445 Template unnamed parameter
2447 {{paramtestnum|Main Page|the main page}}
2449 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2454 Template:templatesimple
2460 Template:templateredirect
2462 #redirect [[Template:templatesimple]]
2466 Template:templateasargtestnum
2472 Template:templateasargtest
2474 {{template{{{templ}}}}}
2478 Template:templateasargtest2
2484 Template with template name as unnamed argument
2486 {{templateasargtestnum|templatesimple}}
2493 Template with template name as argument
2495 {{templateasargtest|templ=simple}}
2502 Template with template name as argument (2)
2504 {{templateasargtest2|templ=templatesimple}}
2511 Template:templateasargtestdefault
2513 {{{{{templ|templatesimple}}}}}
2523 Template with default value
2525 {{templateasargtestdefault}}
2532 Template with default value (value set)
2534 {{templateasargtestdefault|templ=templa}}
2543 {{templateredirect}}
2550 Template with argument in separate line
2552 {{ templateasargtest |
2560 Template with complex template as argument
2563 param ={{ templateasargtest |
2566 <p>This is a test template with parameter (test)
2571 Template with thumb image (with link in description)
2574 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2576 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>
2581 Template:complextemplate
2583 {{{1}}} {{paramtest|
2584 param ={{{param}}}}}
2588 Template with complex arguments
2591 param ={{ templateasargtest |
2592 templ = simple }}|[[Template:complextemplate|link]]}}
2594 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2599 BUG 553: link with two variables in a piped link
2602 |[[{{{1}}}|{{{2}}}]]
2607 <td>[[{{{1}}}|{{{2}}}]]
2613 Magic variable as template parameter
2615 {{paramtest|param={{SITENAME}}}}
2617 <p>This is a test template with parameter MediaWiki
2624 [[{{{param}}}|link]]
2628 Template parameter as link source
2630 {{linktest|param=Main Page}}
2632 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2640 including another template, {{paramtest|param={{{arg}}}}}
2644 Template passing argument to another template
2646 {{paramtest2|arg='hmm'}}
2648 <p>including another template, This is a test template with parameter 'hmm'
2659 Template as link source
2663 <p><a href="/wiki/Main_Page">Main Page</a>
2681 Template infinite loop
2685 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1">Template:Loop1</a></span>
2690 Template from main namespace
2709 BUG 529: Template with table, not included at beginning of line
2728 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2748 BUG 41: Template parameters shown as broken links
2760 ''None'' of '''this''' should be
2762 but rather passed unmodified
2766 # hmm, fix this or just deprecate msgnw and document its behavior?
2772 {{msgnw:MSGNW test}}
2774 <p>''None'' of '''this''' should be
2776 but rather passed unmodified
2784 {{int:youhavenewmessages|lots of money|not!}}
2786 <p>You have lots of money (not!).
2793 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2797 <includeonly> and <noinclude> being included
2808 <onlyinclude>Foo</onlyinclude>bar
2812 <onlyinclude> being included
2824 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2828 <onlyinclude> and <includeonly> being included
2837 <includeonly> and <noinclude> on a page
2839 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2846 <onlyinclude> on a page
2848 <onlyinclude>Foo</onlyinclude>bar
2855 Template:Includeonly section
2858 ==Includeonly section==
2864 Bug 6563: Edit link generation for section shown by <includeonly>
2866 {{includeonly section}}
2868 <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>
2869 <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>
2873 # Uses same input as the contents of [[Template:Includeonly section]]
2875 Bug 6563: Section extraction for section shown by <includeonly>
2880 ==Includeonly section==
2888 Bug 6563: Edit link generation for section suppressed by <includeonly>
2891 ==Includeonly section==
2895 <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>
2900 Bug 6563: Section extraction for section suppressed by <includeonly>
2905 ==Includeonly section==
2913 ### Pre-save transform tests
2916 pre-save transform: subst:
2922 This is a test template
2926 pre-save transform: normal template
2936 pre-save transform: nonexistent template
2940 {{thistemplatedoesnotexist}}
2942 {{thistemplatedoesnotexist}}
2947 pre-save transform: subst magic variables
2956 # This is bug 89, which I fixed. -- wtm
2958 pre-save transform: subst: templates with parameters
2962 {{subst:paramtest|param="something else"}}
2964 This is a test template with parameter "something else"
2970 <nowiki>'''not wiki'''</nowiki>
2974 pre-save transform: nowiki in subst (bug 1188)
2978 {{subst:nowikitest}}
2980 <nowiki>'''not wiki'''</nowiki>
2985 Template:commenttest
2987 This template has <!-- a comment --> in it.
2991 pre-save transform: comment in subst (bug 1936)
2995 {{subst:commenttest}}
2997 This template has <!-- a comment --> in it.
3001 pre-save transform: unclosed tag
3005 <nowiki>'''not wiki'''
3007 <nowiki>'''not wiki'''
3011 pre-save transform: mixed tag case
3015 <NOwiki>'''not wiki'''</noWIKI>
3017 <NOwiki>'''not wiki'''</noWIKI>
3021 pre-save transform: unclosed comment in <nowiki>
3025 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3027 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3033 <span onmouseover="alert('crap')">Oh no</span>
3037 (confirming safety of fix for subst bug 1936)
3039 {{Template:dangerous}}
3041 <p><span>Oh no</span>
3046 pre-save transform: comment containing gallery (bug 5024)
3050 <!-- <gallery>data</gallery> -->
3052 <!-- <gallery>data</gallery> -->
3056 pre-save transform: comment containing extension
3060 <!-- <tag>data</tag> -->
3062 <!-- <tag>data</tag> -->
3066 pre-save transform: comment containing nowiki
3070 <!-- <nowiki>data</nowiki> -->
3072 <!-- <nowiki>data</nowiki> -->
3076 pre-save transform: comment containing math
3080 <!-- <math>data</math> -->
3082 <!-- <math>data</math> -->
3086 pre-save transform: <noinclude> in subst (bug 3298)
3096 pre-save transform: <onlyinclude> in subst (bug 3298)
3108 {{<includeonly>subst:</includeonly>Includes}}
3112 Template:SafeSubstTest
3114 {{<includeonly>safesubst:</includeonly>Includes}}
3118 bug 22297: safesubst: works during PST
3122 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3128 bug 22297: safesubst: works during normal parse
3137 subst: does not work during normal parse
3141 <p>{{subst:Includes}}
3146 pre-save transform: context links ("pipe trick")
3150 [[Article (context)|]]
3153 [[Bar:Article (context)|]]
3154 [[:Bar:Article (context)|]]
3156 [[|Article (context)]]
3160 [[Article (context)|Article]]
3161 [[Bar:Article|Article]]
3162 [[:Bar:Article|Article]]
3163 [[Bar:Article (context)|Article]]
3164 [[:Bar:Article (context)|Article]]
3166 [[Article (context)]]
3167 [[Bar:X (Y) Z|X (Y) Z]]
3168 [[:Bar:X (Y) Z|X (Y) Z]]
3172 pre-save transform: context links ("pipe trick") with interwiki prefix
3176 [[interwiki:Article|]]
3177 [[:interwiki:Article|]]
3178 [[interwiki:Bar:Article|]]
3179 [[:interwiki:Bar:Article|]]
3181 [[interwiki:Article|Article]]
3182 [[:interwiki:Article|Article]]
3183 [[interwiki:Bar:Article|Bar:Article]]
3184 [[:interwiki:Bar:Article|Bar:Article]]
3188 pre-save transform: context links ("pipe trick") with parens in title
3190 pst title=[[Somearticle (context)]]
3194 [[Article (context)|Article]]
3198 pre-save transform: context links ("pipe trick") with comma in title
3200 pst title=[[Someplace, Somewhere]]
3203 [[Otherplace, Elsewhere|]]
3204 [[Otherplace, Elsewhere, Anywhere|]]
3206 [[Otherplace, Somewhere|Otherplace]]
3207 [[Otherplace, Elsewhere|Otherplace]]
3208 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3212 pre-save transform: context links ("pipe trick") with parens and comma
3214 pst title=[[Someplace (IGNORED), Somewhere]]
3217 [[Otherplace (place), Elsewhere|]]
3219 [[Otherplace, Somewhere|Otherplace]]
3220 [[Otherplace (place), Elsewhere|Otherplace]]
3224 pre-save transform: context links ("pipe trick") with comma and parens
3226 pst title=[[Who, me? (context)]]
3229 [[Me, Myself, and I (1937 song)|]]
3231 [[Yes, you. (context)|Yes, you.]]
3232 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3236 pre-save transform: context links ("pipe trick") with namespace
3238 pst title=[[Ns:Somearticle]]
3242 [[Ns:Article|Article]]
3246 pre-save transform: context links ("pipe trick") with namespace and parens
3248 pst title=[[Ns:Somearticle (context)]]
3252 [[Ns:Article (context)|Article]]
3256 pre-save transform: context links ("pipe trick") with namespace and comma
3258 pst title=[[Ns:Somearticle, Context, Whatever]]
3262 [[Ns:Article, Context, Whatever|Article]]
3266 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3268 pst title=[[Ns:Somearticle, Context (context)]]
3272 [[Ns:Article (context)|Article]]
3276 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3278 pst title=[[Ns:Somearticle (IGNORED), Context]]
3282 [[Ns:Article, Context|Article]]
3287 ### Message transform tests
3290 message transform: magic variables
3300 message transform: should not transform wiki markup
3310 message transform: <noinclude> in transcluded template (bug 4926)
3320 message transform: <onlyinclude> in transcluded template (bug 4926)
3330 {{#special:}} page name, known
3334 {{#special:Recentchanges}}
3336 Special:RecentChanges
3340 {{#special:}} page name with subpage, known
3344 {{#special:Recentchanges/param}}
3346 Special:RecentChanges/param
3350 {{#special:}} page name, unknown
3354 {{#special:foobarnonexistent}}
3356 No such special page
3365 [[Image:foobar.jpg]]
3367 <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>
3374 [[Image:foobar.jpg|right]]
3376 <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>
3381 Simple image (using File: namespace, now canonical)
3385 <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>
3392 [[Image:foobar.jpg|right|Caption text]]
3394 <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>
3399 Image with link parameter, wiki target
3401 [[Image:foobar.jpg|link=Target page]]
3403 <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>
3408 Image with link parameter, URL target
3410 [[Image:foobar.jpg|link=http://example.com/]]
3412 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3417 Image with link parameter, wgExternalLinkTarget
3419 [[Image:foobar.jpg|link=http://example.com/]]
3421 wgExternalLinkTarget='foobar'
3423 <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>
3428 Image with link parameter, wgExternalLinkTarget, unnamed parameter
3430 [[Image:foobar.jpg|link=http://example.com/|Title]]
3432 wgExternalLinkTarget='foobar'
3434 <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>
3439 Image with empty link parameter
3441 [[Image:foobar.jpg|link=]]
3443 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3448 Image with link parameter (wiki target) and unnamed parameter
3450 [[Image:foobar.jpg|link=Target page|Title]]
3452 <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>
3457 Image with link parameter (URL target) and unnamed parameter
3459 [[Image:foobar.jpg|link=http://example.com/|Title]]
3461 <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>
3466 Thumbnail image with link parameter
3468 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
3470 <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>
3475 Image with frame and link
3477 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3479 <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>
3484 Image with frame and link and explicit alt
3486 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3488 <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>
3493 Image with wiki markup in implicit alt
3495 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3497 <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>
3502 Image with wiki markup in explicit alt
3504 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3506 <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>
3511 Link to image page- image page normally doesn't exists, hence edit link
3512 Add test with existing image page
3513 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3517 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3522 bug 18784 Link to non-existent image page with caption should use caption as link text
3524 [[:Image:test|caption]]
3526 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
3531 Frameless image caption with a free URL
3533 [[Image:foobar.jpg|http://example.com]]
3535 <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>
3540 Thumbnail image caption with a free URL
3542 [[Image:foobar.jpg|thumb|http://example.com]]
3544 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
3549 Thumbnail image caption with a free URL and explicit alt
3551 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3553 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
3558 BUG 1887: A ISBN with a thumbnail
3560 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3562 <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>
3567 BUG 1887: A RFC with a thumbnail
3569 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3571 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
3576 BUG 1887: A mailto link with a thumbnail
3578 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3580 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
3585 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
3586 so math is not stripped and turns up as escaped <math> tags.
3588 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3590 <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>
3595 BUG 1887, part 2: A <math> with a thumbnail- math enabled
3599 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3601 <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>
3605 # Pending resolution to bug 368
3607 BUG 648: Frameless image caption with a link
3609 [[Image:foobar.jpg|text with a [[link]] in it]]
3611 <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>
3616 BUG 648: Frameless image caption with a link (suffix)
3618 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3620 <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>
3625 BUG 648: Frameless image caption with an interwiki link
3627 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3629 <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>
3634 BUG 648: Frameless image caption with a piped interwiki link
3636 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3638 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3643 Escape HTML special chars in image alt text
3645 [[Image:foobar.jpg|& < > "]]
3647 <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>
3652 BUG 499: Alt text should have Ӓ, not &1234;
3654 [[Image:foobar.jpg|♀]]
3656 <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>
3661 Broken image caption with link
3663 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3665 <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.
3670 Image caption containing another image
3672 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3674 <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>
3679 Image caption containing a newline
3681 [[Image:Foobar.jpg|This
3684 <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>
3690 Bug 3090: External links other than http: in image captions
3692 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3694 <div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="200" height="23" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This caption has <a rel="nofollow" class="external text" href="irc://example.net">irc</a> and <a rel="nofollow" class="external text" href="https://example.com">Secure</a> ext links in it.</div></div></div>
3701 #REDIRECT [[File:Barfoo.jpg]]
3707 [[Image:Barfoo.jpg]]
3709 <p><a href="/wiki/File:Barfoo.jpg">File:Barfoo.jpg</a>
3714 Missing image with uploads disabled
3718 [[Image:Foobaz.jpg]]
3720 <p><a href="/wiki/File:Foobaz.jpg">File:Foobaz.jpg</a>
3729 Subpage test/subpage
3737 subpage title=[[Subpage test]]
3741 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3746 Subpage noslash link
3748 subpage title=[[Subpage test]]
3752 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3761 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
3766 BUG 561: {{/Subpage}}
3768 subpage title=[[Page]]
3772 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
3780 Category:MediaWiki User's Guide
3788 [[:Category:MediaWiki User's Guide]]
3790 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide">Category:MediaWiki User's Guide</a>
3799 [[Category:MediaWiki User's Guide]]
3801 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3805 PAGESINCATEGORY invalid title fatal (r33546 fix)
3807 {{PAGESINCATEGORY:<bogus>}}
3814 ### Inter-language links
3817 Inter-language links
3823 [[zh:食品]]
3825 es:Alimento fr:Nourriture zh:食品
3832 Basic section headings
3839 ===Smaller headline===
3842 <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>
3845 <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>
3848 <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>
3854 Section headings with TOC
3857 === Subheadline 1 ===
3858 ===== Skipping a level =====
3859 ====== Skipping a level ======
3863 ===Another headline===
3865 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3867 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3869 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3871 <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>
3873 <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>
3880 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
3882 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
3887 <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>
3888 <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>
3889 <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>
3890 <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>
3891 <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>
3894 <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>
3898 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
3900 Handling of sections up to level 6 and beyond
3903 == Level 2 Heading==
3904 === Level 3 Heading===
3905 ==== Level 4 Heading====
3906 ===== Level 5 Heading=====
3907 ====== Level 6 Heading======
3908 ======= Level 7 Heading=======
3909 ======== Level 8 Heading========
3910 ========= Level 9 Heading=========
3911 ========== Level 10 Heading==========
3913 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3915 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
3917 <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>
3919 <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>
3921 <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>
3923 <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>
3925 <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>
3926 <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>
3927 <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>
3928 <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>
3929 <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>
3942 <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>
3943 <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>
3944 <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>
3945 <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>
3946 <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>
3947 <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>
3948 <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>
3949 <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>
3950 <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>
3951 <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>
3956 TOC regression (bug 9764)
3960 ==== title 1.1.1 ====
3965 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3967 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3969 <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>
3971 <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>
3974 <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>
3977 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3979 <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>
3984 <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>
3985 <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>
3986 <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>
3987 <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>
3988 <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>
3989 <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>
3994 TOC with wgMaxTocLevel=3 (bug 6204)
4000 ==== title 1.1.1 ====
4005 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4007 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4009 <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>
4010 <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>
4013 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4015 <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>
4020 <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>
4021 <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>
4022 <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>
4023 <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>
4024 <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>
4025 <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>
4030 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4036 ====Section 1.1.1====
4037 ====Section 1.1.1.1====
4040 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4042 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4044 <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>
4047 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4050 <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>
4051 <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>
4052 <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>
4053 <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>
4054 <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>
4060 Resolving duplicate section names
4065 <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>
4066 <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>
4071 Resolving duplicate section names with differing case (bug 10721)
4076 <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>
4077 <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>
4089 Template with sections, __NOTOC__
4096 <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>
4097 <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>
4098 <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>
4099 <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>
4104 __NOEDITSECTION__ keyword
4110 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4111 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4116 Link inside a section heading
4118 ==Section with a [[Main Page|link]] in it==
4120 <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>
4125 TOC regression (bug 12077)
4132 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4134 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4136 <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>
4139 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4142 <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>
4143 <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>
4144 <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>
4149 BUG 1219 URL next to image (good)
4151 http://example.com [[Image:foobar.jpg]]
4153 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4158 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4161 The line above must have a trailing space!
4164 But just in case it doesn't...
4166 <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>
4167 <p>The line above must have a trailing space!
4169 <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>
4170 <p>But just in case it doesn't...
4175 Header with special characters (bug 25462)
4177 The tooltips shall not show entities to the user (ie. be double escaped)
4194 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4196 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4198 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4199 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4200 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4201 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4202 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4205 <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>
4208 <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>
4211 <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>
4214 <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>
4217 <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>
4223 BUG 1219 URL next to image (broken)
4225 http://example.com[[Image:foobar.jpg]]
4227 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4232 Bug 1186 news: in the middle of text
4234 http://en.wikinews.org/wiki/Wikinews:Workplace
4236 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4242 Namespaced link must have a title
4251 Namespaced link must have a title (bad fragment version)
4253 [[Project:#fragment]]
4255 <p>[[Project:#fragment]]
4261 div with no attributes
4263 <div>HTML rocks</div>
4265 <div>HTML rocks</div>
4270 div with double-quoted attribute
4272 <div id="rock">HTML rocks</div>
4274 <div id="rock">HTML rocks</div>
4279 div with single-quoted attribute
4281 <div id='rock'>HTML rocks</div>
4283 <div id="rock">HTML rocks</div>
4288 div with unquoted attribute
4290 <div id=rock>HTML rocks</div>
4292 <div id="rock">HTML rocks</div>
4297 div with illegal double attributes
4299 <div align="center" align="right">HTML rocks</div>
4301 <div align="right">HTML rocks</div>
4306 HTML multiple attributes correction
4308 <p class="error" class="awesome">Awesome!</p>
4310 <p class="awesome">Awesome!</p>
4315 Table multiple attributes correction
4318 !+ class="error" class="awesome"| status
4323 <th class="awesome"> status
4331 <DIV ALIGN="center">HTML ROCKS</DIV>
4333 <div align="center">HTML ROCKS</div>
4339 text with amp in the middle of nowhere
4343 <p>Remember AT&T?
4348 text with character entity: eacute
4350 I always thought é was a cute letter.
4352 <p>I always thought é was a cute letter.
4357 text with undefined character entity: xacute
4359 I always thought &xacute; was a cute letter.
4361 <p>I always thought &xacute; was a cute letter.
4373 [[Media:Foobar.jpg]]
4375 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4380 Media link with text
4382 [[Media:Foobar.jpg|A neat file to look at]]
4384 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4388 # FIXME: this is still bad HTML tag nesting
4390 Media link with nasty text
4391 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4393 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4395 <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>
4400 Media link to nonexistent file (bug 1702)
4402 [[Media:No such.jpg]]
4404 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4409 Image link to nonexistent file (bug 1850 - good)
4411 [[Image:No such.jpg]]
4413 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4418 :Image link to nonexistent file (bug 1850 - bad)
4420 [[:Image:No such.jpg]]
4422 <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>
4429 Character reference normalization in link text (bug 1938)
4431 [[Main Page|this&that]]
4433 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4440 Test for unicode normalization
4442 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4446 (bug 19451) Links should refer to the normalized form.
4454 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4455 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4456 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4457 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4458 <a href="/wiki/%D7%90%D6%B7">אַ</a>
4463 Empty attribute crash test (bug 2067)
4465 <font color="">foo</font>
4467 <p><font color="">foo</font>
4472 Empty attribute crash test single-quotes (bug 2067)
4474 <font color=''>foo</font>
4476 <p><font color="">foo</font>
4481 Attribute test: equals, then nothing
4483 <font color=>foo</font>
4490 Attribute test: unquoted value
4492 <font color=x>foo</font>
4494 <p><font color="x">foo</font>
4499 Attribute test: unquoted but illegal value (hash)
4501 <font color=#x>foo</font>
4503 <p><font color="#x">foo</font>
4508 Attribute test: no value
4510 <font color>foo</font>
4512 <p><font color="color">foo</font>
4517 Bug 2095: link with three closing brackets
4521 <p><a href="/wiki/Main_Page">Main Page</a>]
4526 Bug 2095: link with pipe and three closing brackets
4530 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4535 Bug 2095: link with pipe and three closing brackets, version 2
4537 [[Main Page|[http://example.com/]]]
4539 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4549 Template:Dangerous attribute
4551 " onmouseover="alert(document.cookie)
4555 Template:Dangerous style attribute
4557 border-size: expression(alert(document.cookie))
4563 <div style="float: right; {{{1}}}">Magic div</div>
4567 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4569 <div title="{{test}}"></div>
4571 <div title="This is a test template"></div>
4576 Bug 2304: HTML attribute safety (dangerous template; 2309)
4578 <div title="{{dangerous attribute}}"></div>
4580 <div title=""></div>
4585 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4587 <div style="{{dangerous style attribute}}"></div>
4589 <div style="/* insecure input */"></div>
4594 Bug 2304: HTML attribute safety (safe parameter; 2309)
4596 {{div style|width: 200px}}
4598 <div style="float: right; width: 200px">Magic div</div>
4603 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4605 {{div style|width: expression(alert(document.cookie))}}
4607 <div style="/* insecure input */">Magic div</div>
4612 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4614 {{div style|"><script>alert(document.cookie)</script>}}
4616 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4621 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4623 {{div style|" ><script>alert(document.cookie)</script>}}
4625 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4630 Bug 2304: HTML attribute safety (link)
4632 <div title="[[Main Page]]"></div>
4634 <div title="[[Main Page]]"></div>
4639 Bug 2304: HTML attribute safety (italics)
4641 <div title="''foobar''"></div>
4643 <div title="''foobar''"></div>
4648 Bug 2304: HTML attribute safety (bold)
4650 <div title="'''foobar'''"></div>
4652 <div title="'''foobar'''"></div>
4658 Bug 2304: HTML attribute safety (ISBN)
4660 <div title="ISBN 1234567890"></div>
4662 <div title="ISBN 1234567890"></div>
4667 Bug 2304: HTML attribute safety (RFC)
4669 <div title="RFC 1234"></div>
4671 <div title="RFC 1234"></div>
4676 Bug 2304: HTML attribute safety (PMID)
4678 <div title="PMID 1234567890"></div>
4680 <div title="PMID 1234567890"></div>
4685 Bug 2304: HTML attribute safety (web link)
4687 <div title="http://example.com/"></div>
4689 <div title="http://example.com/"></div>
4694 Bug 2304: HTML attribute safety (named web link)
4696 <div title="[http://example.com/ link]"></div>
4698 <div title="[http://example.com/ link]"></div>
4703 Bug 3244: HTML attribute safety (extension; safe)
4705 <div style="<nowiki>background:blue</nowiki>"></div>
4707 <div style="background:blue"></div>
4712 Bug 3244: HTML attribute safety (extension; unsafe)
4714 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4716 <div style="/* insecure input */"></div>
4721 Math section safety when disabled
4723 <math><script>alert(document.cookies);</script></math>
4725 <p><math><script>alert(document.cookies);</script></math>
4729 # More MSIE fun discovered by Tom Gilder
4732 MSIE CSS safety test: spurious slash
4734 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4736 <div style="/* insecure input */">evil</div>
4741 MSIE CSS safety test: hex code
4743 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4745 <div style="/* insecure input */">evil</div>
4750 MSIE CSS safety test: comment in url
4752 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4754 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4759 MSIE CSS safety test: comment in expression
4761 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4763 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4769 Table attribute legitimate extension
4772 !+ style="<nowiki>color:blue</nowiki>"| status
4777 <th style="color:blue"> status
4783 Table attribute safety
4786 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4791 <th style="/* insecure input */"> status
4797 CSS line continuation 1
4799 <div style="background-image: u\ rl(test.jpg);"></div>
4801 <div style="/* insecure input */"></div>
4806 CSS line continuation 2
4808 <div style="background-image: u\ rl(test.jpg); "></div>
4810 <div style="/* insecure input */"></div>
4821 Expansion of multi-line templates in attribute values (bug 6255)
4823 <div style="background: {{identity|#00FF00}}">-</div>
4825 <div style="background: #00FF00">-</div>
4831 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
4833 <div style="background:
4836 <div style="background: #00FF00">-</div>
4841 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
4843 <div style="background: #00FF00">-</div>
4845 <div style="background: #00FF00">-</div>
4850 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
4853 Parser hook: empty input
4866 Parser hook: empty input using terminated empty elements
4879 Parser hook: empty input using terminated empty elements (space before)
4892 Parser hook: basic input
4906 Parser hook: case insensitive
4920 Parser hook: case insensitive, redux
4933 Parser hook: nested tags
4937 <tag><tag></tag></tag>
4948 Parser hook: basic arguments
4950 <tag width=200 height = "100" depth = '50' square></tag>
4969 Parser hook: argument containing a forward slash (bug 5344)
4971 <tag filename='/tmp/bla'></tag>
4977 string(8) "/tmp/bla"
4984 Parser hook: empty input using terminated empty elements (bug 2374)
4998 # </tag> should be output literally since there is no matching tag that begins it
5000 Parser hook: basic arguments using terminated empty elements (bug 2374)
5002 <tag width=200 height = "100" depth = '50' square/>
5025 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5029 Parser hook: static parser hook not inside a comment
5031 <statictag>hello, world</statictag>
5032 <statictag action=flush/>
5040 Parser hook: static parser hook inside a comment
5042 <!-- <statictag>hello, world</statictag> -->
5043 <statictag action=flush/>
5049 # Nested template calls; this case was broken by Parser.php rev 1.506,
5053 Template:One-parameter
5055 (My parameter is: {{{1}}})
5059 Template:Map-one-parameter
5065 Nested template calls
5067 {{Map-one-parameter|One-parameter|param}}
5069 <p>(My parameter is: param)
5078 Sanitizer: Closing of open tags
5080 <s></s><table></table>
5082 <s></s><table></table>
5087 Sanitizer: Closing of open but not closed tags
5096 Sanitizer: Closing of closed but not open tags
5105 Sanitizer: Closing of closed but not open table tags
5107 Table not started</td></tr></table>
5109 <p>Table not started</td></tr></table>
5114 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5116 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5118 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5123 Sanitizer: Validating the contents of the id attribute (bug 4515)
5129 Something, but definitely not <br id="9" />...
5133 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5137 <br id="foo" /><br id="foo" />
5139 Something need to be done. foo-2 ?
5143 Language converter: output gets cut off unexpectedly (bug 5757)
5147 this bit is safe: }-
5149 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5151 then we get cut off here: }-
5153 all additional text is vanished
5155 <p>this bit is safe: }-
5156 </p><p>but if we add a conversion instance: xxx
5157 </p><p>then we get cut off here: }-
5158 </p><p>all additional text is vanished
5163 Self closed html pairs (bug 5487)
5166 <center><font id="bug" />Centered text</center>
5167 <div><font id="bug2" />In div text</div>
5169 <center><font id="bug" />Centered text</center>
5170 <div><font id="bug2" />In div text</div>
5179 Punctuation: nbsp before exclamation
5183 <p>C'est grave !
5188 Punctuation: CSS !important (bug 11874)
5190 <div style="width:50% !important">important</div>
5192 <div style="width:50% !important">important</div>
5197 Punctuation: CSS ! important (bug 11874; with space after)
5199 <div style="width:50% ! important">important</div>
5201 <div style="width:50% ! important">important</div>
5207 HTML bullet list, closed tags (bug 5497)
5222 HTML bullet list, unclosed tags (bug 5497)
5239 HTML ordered list, closed tags (bug 5497)
5254 HTML ordered list, unclosed tags (bug 5497)
5271 HTML nested bullet list, closed tags (bug 5497)
5296 HTML nested bullet list, open tags (bug 5497)
5321 HTML nested ordered list, closed tags (bug 5497)
5346 HTML nested ordered list, open tags (bug 5497)
5371 HTML ordered list item with parameters oddity
5373 <ol><li id="fragment">One</li></ol>
5375 <ol><li id="fragment">One</li></ol>
5380 bug 5918: autonumbering
5382 [http://first/] [http://second] [ftp://ftp]
5386 [mailto:enclosed@mail.tld With target]
5388 [mailto:enclosed@mail.tld]
5390 mailto:inline@mail.tld
5392 <p><a rel="nofollow" class="external autonumber" href="http://first/">[1]</a> <a rel="nofollow" class="external autonumber" href="http://second">[2]</a> <a rel="nofollow" class="external autonumber" href="ftp://ftp">[3]</a>
5393 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
5394 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
5395 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
5396 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
5402 # Security and HTML correctness
5403 # From Nick Jenkins' fuzz testing
5407 Fuzz testing: Parser13
5422 Fuzz testing: Parser14
5427 <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>
5428 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5430 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5437 Fuzz testing: Parser14-table
5442 <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>
5443 <table style="__TOC__">
5449 # Known to produce bogus xml (extra </td>)
5451 Fuzz testing: Parser16
5471 Fuzz testing: Parser21
5474 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5479 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5489 Fuzz testing: Parser22
5491 http://===r:::https://b
5495 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
5503 # Known to produce bad XML for now
5505 Fuzz testing: Parser24
5512 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5513 <br style="onmouseover='alert(document.cookie);' " />
5515 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5520 <u class="|">}}}} >
5521 <br style="onmouseover='alert(document.cookie);'" />
5523 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5532 # Note: the current result listed for this is not what the original one was,
5533 # but the original bug was JavaScript injection, which is fixed in any case.
5534 # It's not clear that the original result listed was any more correct than the
5535 # current one. Original result:
5538 # <li class="||">
5539 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5541 Fuzz testing: Parser25 (bug 6055)
5547 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5549 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5554 Fuzz testing: URL adjacent extension (with space, clean)
5557 http://example.com <nowiki>junk</nowiki>
5559 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
5564 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5567 http://example.com<nowiki>junk</nowiki>
5569 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
5574 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5577 http://example.com<pre>junk</pre>
5579 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
5584 Fuzz testing: image with bogus manual thumbnail
5586 [[Image:foobar.jpg|thumbnail= ]]
5588 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5593 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5595 <pre dir=" "></pre>
5597 <pre dir=" "></pre>
5602 Parsing optional HTML elements (Bug 6171)
5607 <td> Some tabular data</td>
5608 <td> More tabular data ...
5609 <td> And yet som tabular data</td>
5615 <td> Some tabular data</td>
5616 <td> More tabular data ...
5617 </td><td> And yet som tabular data</td>
5624 Correct handling of <td>, <tr> (Bug 6171)
5629 <td> Some tabular data</td>
5630 <td> More tabular data ...</td>
5631 <td> And yet som tabular data</td>
5637 <td> Some tabular data</td>
5638 <td> More tabular data ...</td>
5639 <td> And yet som tabular data</td>
5647 Parsing crashing regression (fr:JavaScript)
5651 <p></body></x>
5656 Inline wiki vs wiki block nesting
5662 <p><b>Bold paragraph</b>
5663 </p><p>New wiki paragraph
5668 Inline HTML vs wiki block nesting
5676 <p><b>Bold paragraph</b>
5677 </p><p>New wiki paragraph
5681 # Original result was this:
5682 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5684 # While that might be marginally more intuitive, maybe, the six-apostrophe
5685 # construct is clearly pathological and the result stated here (which is what
5686 # the parser actually does) is about as reasonable as anything.
5688 Mixing markup for italics and bold
5691 '''bold''''''bold''bolditalics'''''
5693 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5701 Article for special page transclusion test
5705 Special page transclusion
5708 {{Special:Prefixindex/Xyzzyx}}
5712 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5717 Special page transclusion twice (bug 5021)
5720 {{Special:Prefixindex/Xyzzyx}}
5721 {{Special:Prefixindex/Xyzzyx}}
5725 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5728 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5733 Transclusion of default MediaWiki message
5735 {{MediaWiki:Mainpage}}
5742 Transclusion of nonexistent MediaWiki message
5744 {{MediaWiki:Mainpagexxx}}
5746 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
5751 Transclusion of MediaWiki message with underscore
5753 {{MediaWiki:history_short}}
5760 Transclusion of MediaWiki message with space
5762 {{MediaWiki:history short}}
5769 Invalid header with following text
5779 Section extraction test (section 0)
5799 Section extraction test (section 1)
5821 Section extraction test (section 2)
5842 Section extraction test (section 3)
5862 Section extraction test (section 4)
5886 Section extraction test (section 5)
5906 Section extraction test (section 6)
5927 Section extraction test (section 7)
5947 Section extraction test (section 8)
5967 Section extraction test (section 9)
5988 Section extraction test (section 10)
6008 Section extraction test (nonexistent section 11)
6027 Section extraction test with bogus heading (section 1)
6032 ==bogus== not a legal section
6036 ==bogus== not a legal section
6040 Section extraction test with bogus heading (section 2)
6045 ==bogus== not a legal section
6052 Section extraction test with comment after heading (section 1)
6064 Section extraction test with comment after heading (section 2)
6076 Section extraction test with bogus <nowiki> heading (section 1)
6081 ==bogus== <nowiki>not a legal section</nowiki>
6085 ==bogus== <nowiki>not a legal section</nowiki>
6089 Section extraction test with bogus <nowiki> heading (section 2)
6094 ==bogus== <nowiki>not a legal section</nowiki>
6101 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6102 # instead of respecting commented sections
6104 Section extraction prefixed by comment (section 1)
6115 Section extraction prefixed by comment (section 2)
6126 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6127 # instead of respecting HTML-style headings
6129 Section extraction, mixed wiki and html (section 1)
6145 Section extraction, mixed wiki and html (section 2)
6161 # Formerly testing for bug 3342
6163 Section extraction, heading surrounded by <noinclude>
6167 <noinclude>==unmarked==</noinclude>
6173 # Test behaviour of bug 19910
6175 Sectiion with all-equals
6180 The line above must have a trailing space
6183 But just in case it doesn't...
6187 But just in case it doesn't...
6191 Section replacement test (section 0)
6222 Section replacement test (section 1)
6251 Section replacement test (section 2)
6281 Section replacement test (section 3)
6312 Section replacement test (section 4)
6339 Section replacement test (section 5)
6370 Section replacement test (section 6)
6400 Section replacement test (section 7)
6431 Section replacement test (section 8)
6462 Section replacement test (section 9)
6491 Section replacement test (section 10)
6521 Section replacement test with initial whitespace (bug 13728)
6525 Preformatted initial line
6529 Preformatted initial line
6536 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6548 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6561 Section extraction, <pre> around bogus header (bug 10309)
6578 Section replacement, <pre> around bogus header (bug 10309)
6580 noxml replace=2,"xxx"
6601 Handling of 
 in URLs
6605 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
6612 5 quotes, code coverage +1 line
6619 Special:Search page linking.
6623 <p><a href="/wiki/Special:Search">Special:Search</a>
6638 * {{SUBJECTPAGENAME}}
6639 * {{SUBJECTPAGENAMEE}}
6646 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6648 <ul><li> Parser test
6649 </li><li> Parser test
6650 </li><li> Parser test
6651 </li><li> Parser_test
6652 </li><li> Parser test
6653 </li><li> Parser_test
6654 </li><li> Talk:Parser test
6655 </li><li> Talk:Parser_test
6656 </li><li> Parser test
6657 </li><li> Parser_test
6664 </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>
6668 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6678 image4 |300px| centre
6679 image5.svg| http://///////
6684 <ul class="gallery">
6685 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6686 <div style="height: 150px;">Image1.png</div>
6687 <div class="gallerytext">
6690 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6691 <div style="height: 150px;">Image2.gif</div>
6692 <div class="gallerytext">
6697 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6698 <div style="height: 150px;">Image3</div>
6699 <div class="gallerytext">
6702 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6703 <div style="height: 150px;">Image4</div>
6704 <div class="gallerytext">
6709 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6710 <div style="height: 150px;">Image5.svg</div>
6711 <div class="gallerytext">
6712 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
6716 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6717 <div style="height: 150px;">* image6</div>
6718 <div class="gallerytext">
6726 Gallery (with options)
6728 <gallery widths='60px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
6729 File:Nonexistant.jpg|caption
6730 File:Nonexistant.jpg
6731 image:foobar.jpg|some '''caption''' [[Main Page]]
6735 <ul class="gallery" style="max-width: 220px;_width: 220px;">
6736 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page">Main Page</a></li>
6737 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6738 <div style="height: 70px;">Nonexistant.jpg</div>
6739 <div class="gallerytext">
6744 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6745 <div style="height: 70px;">Nonexistant.jpg</div>
6746 <div class="gallerytext">
6749 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6750 <div class="thumb" style="width: 90px;"><div style="margin:26px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="60" height="7" /></a></div></div>
6751 <div class="gallerytext">
6752 <p>some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
6756 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6757 <div class="thumb" style="width: 90px;"><div style="margin:26px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="60" height="7" /></a></div></div>
6758 <div class="gallerytext">
6766 gallery (with showfilename option)
6768 <gallery showfilename>
6769 File:Nonexistant.jpg|caption
6770 File:Nonexistant.jpg
6771 image:foobar.jpg|some '''caption''' [[Main Page]]
6775 <ul class="gallery">
6776 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6777 <div style="height: 150px;">Nonexistant.jpg</div>
6778 <div class="gallerytext">
6779 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
6784 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6785 <div style="height: 150px;">Nonexistant.jpg</div>
6786 <div class="gallerytext">
6787 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
6791 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6792 <div class="thumb" style="width: 150px;"><div style="margin:66px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
6793 <div class="gallerytext">
6794 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
6795 some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
6799 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6800 <div class="thumb" style="width: 150px;"><div style="margin:66px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
6801 <div class="gallerytext">
6802 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
6811 HTML Hex character encoding (spells the word "JavaScript")
6813 JavaScript
6815 <p>JavaScript
6820 HTML Hex character encoding bogus encoding (bug 26437 regression check)
6824 <p>&#xsee;&#XSEE;
6829 HTML Hex character encoding mixed case
6838 __FORCETOC__ override
6850 ISBN 978-0-1234-56 789
6852 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
6857 ISBN followed by 5 spaces
6868 ISBN ISBN 1234567890
6870 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
6875 Bug 22905: <abbr> followed by ISBN followed by </a>
6877 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
6879 <p><abbr>(fr)</abbr> <a href="/wiki/Special:BookSources/2753300917" class="internal mw-magiclink-isbn">ISBN 2753300917</a> <a rel="nofollow" class="external text" href="http://www.example.com">example.com</a>
6888 <p>RFC <a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc1234">RFC 1234</a>
6893 Double RFC with a wiki link
6897 <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>
6906 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc983">RFC 983</a> 987
6911 Centre-aligned image
6913 [[Image:foobar.jpg|centre]]
6915 <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>
6922 [[Image:foobar.jpg|none]]
6924 <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>
6929 Width + Height sized image (using px) (height is ignored)
6931 [[Image:foobar.jpg|640x480px]]
6933 <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>
6938 Width-sized image (using px, no following whitespace)
6940 [[Image:foobar.jpg|640px]]
6942 <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>
6947 Width-sized image (using px, with following whitespace - test regression from r39467)
6949 [[Image:foobar.jpg|640px ]]
6951 <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>
6956 Width-sized image (using px, with preceding whitespace - test regression from r39467)
6958 [[Image:foobar.jpg| 640px]]
6960 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="640" height="73" /></a>
6965 Another italics / bold test
6973 # Note the results may be incorrect, as parserTest output included this:
6974 # XML error: Mismatched tag at byte 6120:
6975 # ...<dd> </dt></dl> </dd...
6983 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
6994 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
6996 Images with the "|" character in the comment
6998 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7000 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>An <a rel="nofollow" class="external text" href="http://test/?param1=%7Cleft%7C&param2=%7Cx">external</a> URL</div></div></div>
7005 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7007 <html><script>alert(1);</script></html>
7009 <p><html><script>alert(1);</script></html>
7014 HTML with raw HTML ($wgRawHtml==true)
7018 <html><script>alert(1);</script></html>
7020 <p><script>alert(1);</script>
7025 Parents of subpages, one level up
7027 subpage title=[[Subpage test/L1/L2/L3]]
7031 <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>
7037 Parents of subpages, one level up, not named
7039 subpage title=[[Subpage test/L1/L2/L3]]
7043 <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>
7050 Parents of subpages, two levels up
7052 subpage title=[[Subpage test/L1/L2/L3]]
7058 <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
7059 </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>
7064 Parents of subpages, two levels up, without trailing slash or name.
7066 subpage title=[[Subpage test/L1/L2/L3]]
7075 Parents of subpages, two levels up, with lots of extra trailing slashes.
7077 subpage title=[[Subpage test/L1/L2/L3]]
7081 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7086 Definition list code coverage
7092 <dl><dt> title  </dt><dd> def
7093 </dd><dt> title </dt><dd> def
7094 </dd><dt>title</dt><dd> def
7100 Don't fall for the self-closing div
7102 <div>hello world</div/>
7104 <div>hello world</div>
7113 <p>[[:Template:Msg]]
7122 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7126 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7128 Always escape literal '>' in output, not just after '<'
7142 <p>This is a test template
7143 This is a test template
7155 Inclusion of !userCanEdit() content
7159 <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>
7165 Out-of-order TOC heading levels
7174 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7176 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7178 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7179 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7182 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7184 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7185 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7190 <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>
7191 <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>
7192 <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>
7193 <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>
7194 <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>
7195 <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>
7201 ISBN with a dummy number
7211 ISBN with space-delimited number
7215 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7221 ISBN with multiple spaces, no number
7240 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7241 </p><p>ISBN 12345678901
7247 ISBN with trailing year (bug 8110)
7249 ISBN 1-234-56789-0 - 2006
7251 ISBN 1 234 56789 0 - 2006
7253 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7254 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7262 {{anchorencode:foo bar©#%n}}
7264 <p>foo_bar.C2.A9.23.25n
7269 anchorencode trims spaces
7271 {{anchorencode: __pretty__please__}}
7278 anchorencode deals with links
7280 {{anchorencode: [[hello|world]] [[hi]]}}
7287 anchorencode deals with templates
7289 {{anchorencode: {{Foo}} }}
7296 anchorencode encodes like the TOC generator: (bug 18431)
7298 === _ +:.3A%3A&&]] ===
7299 {{anchorencode: _ +:.3A%3A&&]] }}
7302 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7303 <p>.2B:.3A.253A.26.26.5D.5D
7307 # Expected output in the following test is not necessarily expected (there
7308 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7309 # only testing for well-formedness.
7311 Bug 6200: blockquotes and paragraph formatting
7331 Bug 8293: Use of center tag ruins paragraph formatting
7353 ### Language variants related tests
7356 Self-link in language variants
7358 title=[[Dunav]] language=sr
7360 Both [[Dunav]] and [[Дунав]] are names for this river.
7362 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7368 Link to pages in language variants
7372 Main Page can be written as [[Маин Паге]]
7374 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7380 Multiple links to pages in language variants
7384 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7386 <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>.
7392 Simple template in language variants
7398 <p>This is a test template
7404 Template with explicit namespace in language variants
7410 <p>This is a test template
7416 Basic test for template parameter in language variants
7420 {{парамтест|param=foo}}
7422 <p>This is a test template with parameter foo
7428 Simple category in language variants
7432 [[Category:МедиаWики Усер'с Гуиде]]
7434 <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>
7439 Stripping -{}- tags (language variants)
7443 Latin proverb: -{Ne nuntium necare}-
7445 <p>Latin proverb: Ne nuntium necare
7451 Prevent conversion with -{}- tags (language variants)
7453 language=sr variant=sr-ec
7455 Latinski: -{Ne nuntium necare}-
7457 <p>Латински: Ne nuntium necare
7463 Prevent conversion of text with -{}- tags (language variants)
7465 language=sr variant=sr-ec
7467 Latinski: -{Ne nuntium necare}-
7469 <p>Латински: Ne nuntium necare
7475 Prevent conversion of links with -{}- tags (language variants)
7477 language=sr variant=sr-ec
7481 <p><a href="/wiki/Main_Page">Main Page</a>
7487 -{}- tags within headlines (within html for parserConvert())
7489 language=sr variant=sr-ec
7493 <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>
7499 Explicit definition of language variant alternatives
7501 language=zh variant=zh-tw
7503 -{zh:China;zh-tw:Taiwan}-, not China
7505 <p>Taiwan, not China
7511 Explicit session-wise language variant mapping (A flag and - flag)
7513 language=zh variant=zh-tw
7515 Taiwan is not China.
7516 But -{A|zh:China;zh-tw:Taiwan}- is China,
7517 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
7518 and -{China}- is China.
7520 <p>Taiwan is not China.
7521 But Taiwan is Taiwan,
7522 (This should be stripped!)
7528 Explicit session-wise language variant mapping (H flag for hide)
7530 language=zh variant=zh-tw
7532 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
7535 <p>(This should be stripped!)
7541 Adding explicit conversion rule for title (T flag)
7543 language=zh variant=zh-tw showtitle
7545 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7548 <p>Should be stripped!
7553 Testing that changing the language variant here in the tests actually works
7555 language=zh variant=zh showtitle
7557 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7560 <p>Should be stripped!
7565 Bug 24072: more test on conversion rule for title
7567 language=zh variant=zh-tw showtitle
7569 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7570 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
7573 <p>This should be stripped!
7574 This won't take interferes with the title rule.
7579 Raw output of variant escape tags (R flag)
7581 language=zh variant=zh-tw
7583 Raw: -{R|zh:China;zh-tw:Taiwan}-
7585 <p>Raw: zh:China;zh-tw:Taiwan
7590 Nested using of manual convert syntax
7592 language=zh variant=zh-hk
7594 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
7596 <p>Nested: Hello Hong Kong!
7601 Do not convert roman numbers to language variants
7603 language=sr variant=sr-ec
7607 <p>Фридрих IV је цар.
7612 Unclosed language converter markup "-{"
7623 Don't convert raw rule "-{R|=>}-" to "=>"
7640 Bug 529: Uncovered bullet
7651 Bug 529: Uncovered table already at line-start
7674 Bug 529: Uncovered bullet in parser function result
7676 * Foo {{lc:{{bullet}} }}
7685 Bug 5678: Double-parsed template argument
7687 {{lc:{{{1}}}|hello}}
7694 Bug 5678: Double-parsed template invocation
7696 {{lc:{{paramtest {{!}} param = hello }} }}
7698 <p>{{paramtest | param = hello }}
7703 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
7729 Morwen/13: Unclosed link followed by heading
7736 <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>
7741 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
7748 <h1> <span class="mw-headline" id="heading">heading</span></h1>
7753 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
7760 <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>
7775 Paragraphs inside divs (no extra line breaks)
7787 Paragraphs inside divs (extra line break on open)
7802 Paragraphs inside divs (extra line break on close)
7817 Paragraphs inside divs (extra line break on open and close)
7834 Nesting tags, paragraphs on lines which begin with <div>
7838 <div></div><strong>A
7847 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
7849 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
7853 <blockquote>Line one
7855 Line two</blockquote>
7857 <blockquote>Line one
7858 Line two</blockquote>
7863 Bug 6200: paragraphs inside blockquotes (extra line break on open)
7870 Line two</blockquote>
7875 Line two</blockquote>
7880 Bug 6200: paragraphs inside blockquotes (extra line break on close)
7884 <blockquote>Line one
7889 <blockquote>Line one
7897 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
7916 Paragraphs inside blockquotes/divs (no extra line breaks)
7918 <blockquote><div>Line one
7920 Line two</div></blockquote>
7922 <blockquote><div>Line one
7923 Line two</div></blockquote>
7928 Paragraphs inside blockquotes/divs (extra line break on open)
7933 Line two</div></blockquote>
7938 Line two</div></blockquote>
7943 Paragraphs inside blockquotes/divs (extra line break on close)
7945 <blockquote><div>Line one
7950 <blockquote><div>Line one
7958 Paragraphs inside blockquotes/divs (extra line break on open and close)
7975 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
7977 wgLinkHolderBatchSize=0
7983 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw">meatball:1</a>
7984 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw">meatball:2</a>
7985 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw">meatball:3</a>
7990 Free external link invading image caption
7992 [[Image:Foobar.jpg|thumb|http://x|hello]]
7994 <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>
7999 Bug 15196: localised external link numbers
8003 [http://en.wikipedia.org/]
8005 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8010 Multibyte character in padleft
8012 {{padleft:-Hello|7|Æ}}
8019 Multibyte character in padright
8021 {{padright:Hello-|7|Æ}}
8034 <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>
8039 formatdate parser function
8041 {{#formatdate:2009-03-24}}
8043 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8048 formatdate parser function, with default format
8050 {{#formatdate:2009-03-24|mdy}}
8052 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8057 Linked date with autoformatting disabled
8059 wgUseDynamicDates=false
8063 <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>
8068 Spacing of numbers in formatted dates
8070 {{#formatdate:January 15}}
8072 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8077 Spacing of numbers in formatted dates (linked)
8079 wgUseDynamicDates=true
8083 <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>
8096 Edit comment with link
8100 I like the [[Main Page]] a lot
8102 I like the <a href="/wiki/Main_Page">Main Page</a> a lot
8106 Edit comment with link and link text
8110 I like the [[Main Page|best pages]] a lot
8112 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8116 Edit comment with link and link text with suffix
8120 I like the [[Main Page|best page]]s a lot
8122 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8126 Edit comment with section link (non-local, eg in history list)
8128 comment title=[[Main Page]]
8130 /* External links */ removed bogus entries
8132 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
8136 Edit comment with section link (local, eg in diff view)
8138 comment local title=[[Main Page]]
8140 /* External links */ removed bogus entries
8142 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
8146 Edit comment with subpage link (bug 14080)
8150 title=[[Subpage test]]
8152 Poked at a [[/subpage]] here...
8154 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8158 Edit comment with subpage link and link text (bug 14080)
8162 title=[[Subpage test]]
8164 Poked at a [[/subpage|neat little page]] here...
8166 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8170 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8173 title=[[Subpage test]]
8175 Poked at a [[/subpage]] here...
8177 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8181 Edit comment with bare anchor link (local, as on diff)
8189 <a href="#section">#section</a>
8193 Edit comment with bare anchor link (non-local, as on history)
8200 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8204 Space normalisation on autocomment (bug 22784)
8209 /* __hello__world__ */
8211 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
8215 percent-encoding and + signs in comments (Bug 26410)
8219 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8221 <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>
8225 Bad images - basic functionality
8232 Bad images - bug 16039: text after bad image disappears
8244 Verify that displaytitle works (bug #22501) no displaytitle
8248 wgAllowDisplayTitle=true
8249 wgRestrictDisplayTitle=false
8251 this is not the the title
8254 <p>this is not the the title
8259 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8264 wgAllowDisplayTitle=true
8265 wgRestrictDisplayTitle=false
8267 this is not the the title
8268 {{DISPLAYTITLE:whatever}}
8271 <p>this is not the the title
8276 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8281 wgAllowDisplayTitle=true
8282 wgRestrictDisplayTitle=true
8284 this is not the the title
8285 {{DISPLAYTITLE:whatever}}
8288 <p>this is not the the title
8293 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8298 wgAllowDisplayTitle=true
8299 wgRestrictDisplayTitle=true
8301 this is not the the title
8302 {{DISPLAYTITLE:screen}}
8305 <p>this is not the the title
8310 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8315 wgAllowDisplayTitle=false
8317 this is not the the title
8318 {{DISPLAYTITLE:screen}}
8321 <p>this is not the the title
8322 <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>
8327 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8332 wgAllowDisplayTitle=false
8334 this is not the the title
8337 <p>this is not the the title
8342 preload: check <noinclude> and <includeonly>
8346 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8352 preload: check <onlyinclude>
8356 Goodbye <onlyinclude>Hello world</onlyinclude>
8362 preload: can pass tags through if we want to
8366 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8368 <includeonly>Hello world</includeonly>
8372 preload: check that it doesn't try to do tricks
8376 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8378 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8382 Play a bit with r67090 and bug 3158
8386 <div style="width:50% !important"> </div>
8387 <div style="width:50% !important"> </div>
8388 <div style="width:50% !important"> </div>
8389 <div style="border : solid;"> </div>
8391 <div style="width:50% !important"> </div>
8392 <div style="width:50% !important"> </div>
8393 <div style="width:50% !important"> </div>
8394 <div style="border : solid;"> </div>
8399 HTML5 data attributes
8401 <span data-foo="bar">Baz</span>
8402 <p data-abc-def_hij="">Quuz</p>
8404 <p><span data-foo="bar">Baz</span>
8406 <p data-abc-def_hij="">Quuz</p>
8411 percent-encoding and + signs in internal links (Bug 26410)
8413 [[User:+%]] [[Page+title%]]
8414 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
8415 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
8416 [[%33%45]] [[%33%45+]]
8418 <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>
8419 <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>
8420 <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>
8421 <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>
8431 Try for 100% code coverage