1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
75 This is a simple paragraph.
77 <p>This is a simple paragraph.
97 * plain''italic''plain
98 * plain''italic''plain''italic''plain
99 * plain'''bold'''plain
100 * plain'''bold'''plain'''bold'''plain
101 * plain''italic''plain'''bold'''plain
102 * plain'''bold'''plain''italic''plain
103 * plain''italic'''bold-italic'''italic''plain
104 * plain'''bold''bold-italic''bold'''plain
105 * plain'''''bold-italic'''italic''plain
106 * plain'''''bold-italic''bold'''plain
107 * plain''italic'''bold-italic'''''plain
108 * plain'''bold''bold-italic'''''plain
109 * plain l'''italic''plain
110 * plain l''''bold''' plain
113 </li><li> plain<i>italic</i>plain
114 </li><li> plain<i>italic</i>plain<i>italic</i>plain
115 </li><li> plain<b>bold</b>plain
116 </li><li> plain<b>bold</b>plain<b>bold</b>plain
117 </li><li> plain<i>italic</i>plain<b>bold</b>plain
118 </li><li> plain<b>bold</b>plain<i>italic</i>plain
119 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
120 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
121 </li><li> plain<i><b>bold-italic</b>italic</i>plain
122 </li><li> plain<b><i>bold-italic</i>bold</b>plain
123 </li><li> plain<i>italic<b>bold-italic</b></i>plain
124 </li><li> plain<b>bold<i>bold-italic</i></b>plain
125 </li><li> plain l'<i>italic</i>plain
126 </li><li> plain l'<b>bold</b> plain
132 ### <nowiki> test cases
136 <nowiki> unordered list
138 <nowiki>* This is not an unordered list item.</nowiki>
140 <p>* This is not an unordered list item.
147 <nowiki>Lorem ipsum dolor
168 :There is not nowiki.
169 :There is <nowiki>nowiki</nowiki>.
171 #There is not nowiki.
172 #There is <nowiki>nowiki</nowiki>.
174 *There is not nowiki.
175 *There is <nowiki>nowiki</nowiki>.
177 <dl><dd>There is not nowiki.
178 </dd><dd>There is nowiki.
180 <ol><li>There is not nowiki.
181 </li><li>There is nowiki.
183 <ul><li>There is not nowiki.
184 </li><li>There is nowiki.
196 <!-- comment 1 --> asdf
232 asdf<!-- comment 1 -->jkl
242 <!-- foo --> b <!-- bar -->
256 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
262 Comment semantics and delimiters
264 <!-- --><!----><!-----><!------>
270 Comment semantics and delimiters, redux
272 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
273 -- foo -- funky huh? ... -->
279 Comment semantics and delimiters: directors cut
281 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
282 everything starting with < followed by !-- until the first -- and > we see,
283 that wouldn't be valid XML however, since in XML -- has to terminate a comment
291 Comment semantics: nesting
293 <!--<!-- no, we're not going to do anything fancy here -->-->
300 Comment semantics: unclosed comment at end
302 <!--This comment will run out to the end of the document
308 Comment in template title
317 Comment on its own line post-expand
329 ### Preformatted text
338 And a [[Main Page|link]]
344 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
349 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
366 Regression with preformatted in <center>
379 # Expected output in the following test is not really expected (there should be
380 # <pre> in the output) -- it's only testing for well-formedness.
382 Bug 6200: Preformatted in <blockquote>
395 <pre> with attributes (bug 3202)
397 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
399 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
404 <pre> with width attribute (bug 3202)
406 <pre width="8">Narrow screen goodies</pre>
408 <pre width="8">Narrow screen goodies</pre>
413 <pre> with forbidden attribute (bug 3202)
415 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
417 <pre width="8">Narrow screen goodies</pre>
422 <pre> with forbidden attribute values (bug 3202)
424 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
426 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
431 <nowiki> inside <pre> (bug 13238)
439 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
447 <pre><nowiki>Foo</nowiki></pre>
452 <nowiki> and <pre> preference (first one wins)
491 <dl><dt> name </dt><dd> Definition
497 Definition list for indentation only
501 <dl><dd> Indented text
507 Definition list with no space
511 <dl><dt>name</dt><dd>Definition
517 Definition list with URL link
519 ; http://example.com/ : definition
521 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
527 Definition list with bracketed URL link
529 ;[http://www.example.com/ Example]:Something about it
531 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
537 Definition list with wikilink containing colon
539 ; [[Help:FAQ]]: The least-read page on Wikipedia
541 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
546 # At Brion's and JeLuF's insistence... :)
548 Definition list with news link containing colon
550 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
552 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
558 Malformed definition list with colon
560 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
562 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
568 Definition lists: colon in external link text
570 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
572 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
578 Definition lists: colon in HTML attribute
580 ;<b style="display: inline">bold</b>
582 <dl><dt><b style="display: inline">bold</b>
589 Definition lists: self-closed tag
591 ;one<br/>two : two-line fun
593 <dl><dt>one<br />two </dt><dd> two-line fun
599 Bug 11748: Literal closing tags
605 <dd>test test test test test</dd>
607 <dd>test test test test test</dd>
612 <dd>test test test test test</dd>
614 <dd>test test test test test</dd>
622 External links: non-bracketed
624 Non-bracketed: http://example.com
626 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
631 External links: numbered
633 Numbered: [http://example.com]
634 Numbered: [http://example.net]
635 Numbered: [http://example.com]
637 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
638 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
639 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
644 External links: specified text
646 Specified text: [http://example.com link]
648 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
653 External links: trail
655 Linktrails should not work for external links: [http://example.com link]s
657 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
662 External links: dollar sign in URL
664 http://example.com/1$2345
666 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
671 External links: dollar sign in URL (named)
673 [http://example.com/1$2345]
675 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
680 External links: open square bracket forbidden in URL (bug 4377)
682 http://example.com/1[2345
684 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
689 External links: open square bracket forbidden in URL (named) (bug 4377)
691 [http://example.com/1[2345]
693 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
698 External links: nowiki in URL link text (bug 6230)
700 [http://example.com/ <nowiki>''example site''</nowiki>]
702 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
707 External links: newline forbidden in text (bug 6230 regression check)
709 [http://example.com/ first
712 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
720 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
722 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
727 External image from https
729 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
731 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
736 Link to non-http image, no img tag
738 Link to non-http image, no img tag: ftp://example.com/test.jpg
740 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
745 External links: terminating separator
747 Terminating separator: http://example.com/thing,
749 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
754 External links: intervening separator
756 Intervening separator: http://example.com/1,2,3
758 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
763 External links: old bug with URL in query
765 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
767 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
772 External links: old URL-in-URL bug, mixed protocols
774 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
776 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
781 External links: URL in text
783 URL in text: [http://example.com http://example.com]
785 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
790 External links: Clickable images
792 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
794 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
799 External links: raw ampersand
801 Old & use: http://x&y
803 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
808 External links: encoded ampersand
810 Old & use: http://x&y
812 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
817 External links: encoded equals (bug 6102)
819 http://example.com/?foo=bar
821 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
826 External links: [raw ampersand]
828 Old & use: [http://x&y]
830 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
835 External links: [encoded ampersand]
837 Old & use: [http://x&y]
839 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
844 External links: [encoded equals] (bug 6102)
846 [http://example.com/?foo=bar]
848 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
853 External links: [IDN ignored character reference in hostname; strip it right off]
855 [http://e‌xample.com/]
857 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
862 External links: IDN ignored character reference in hostname; strip it right off
864 http://e‌xample.com/
866 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
871 External links: www.jpeg.org (bug 554)
875 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
880 External links: URL within URL (original bug 2)
882 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
884 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
889 BUG 361: URL inside bracketed URL
891 [http://www.example.com/foo http://www.example.com/bar]
893 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
898 BUG 361: URL within URL, not bracketed
900 http://www.example.com/foo?=http://www.example.com/bar
902 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
907 BUG 289: ">"-token in URL-tail
909 http://www.example.com/<hello>
911 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
916 BUG 289: literal ">"-token in URL-tail
918 http://www.example.com/<b>html</b>
920 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
925 BUG 289: ">"-token in bracketed URL
927 [http://www.example.com/<hello> stuff]
929 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
934 BUG 289: literal ">"-token in bracketed URL
936 [http://www.example.com/<b>html</b> stuff]
938 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
943 BUG 289: literal double quote at end of URL
945 http://www.example.com/"hello"
947 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
952 BUG 289: literal double quote in bracketed URL
954 [http://www.example.com/"hello" stuff]
956 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
961 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
963 [http://www.example.com test]
965 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
970 External links: wiki links within external link (Bug 3695)
972 [http://example.com [[wikilink]] embedded in ext link]
974 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
979 External links: links containing empty bracket pair []
981 [http://example.com?parameter[]=foo link]
983 <p><a rel="nofollow" class="external text" href="http://example.com?parameter%5B%5D=foo">link</a>
988 External links: links ending in empty bracket pair []
990 [http://example.com?parameter[]=foo&option[]]
992 <p><a rel="nofollow" class="external autonumber" href="http://example.com?parameter%5B%5D=foo&option%5B%5D">[1]</a>
997 External links: bare links ending in empty bracket pair []
999 http://example.com?parameter[]=foo&option[]
1001 <p><a rel="nofollow" class="external free" href="http://example.com?parameter%5B%5D=foo&option%5B%5D">http://example.com?parameter%5B%5D=foo&option%5B%5D</a>
1006 BUG 787: Links with one slash after the url protocol are invalid
1010 [http:/example.com title]
1012 <p>http:/example.com
1013 </p><p>[http:/example.com title]
1018 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1020 ''[http://example.com text'']
1021 [http://example.com '''text]'''
1022 ''Something [http://example.com in italic'']
1023 ''Something [http://example.com mixed''''', even bold]'''
1024 '''''Now [http://example.com both''''']
1026 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1027 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1028 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1029 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1030 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1036 Bug 4781: %26 in URL
1038 http://www.example.com/?title=AT%26T
1040 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1045 Bug 4781, 5267: %26 in URL
1047 http://www.example.com/?title=100%25_Bran
1049 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
1054 Bug 4781, 5267: %28, %29 in URL
1056 http://www.example.com/?title=Ben-Hur_%281959_film%29
1058 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
1064 Bug 4781: %26 in autonumber URL
1066 [http://www.example.com/?title=AT%26T]
1068 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1073 Bug 4781, 5267: %26 in autonumber URL
1075 [http://www.example.com/?title=100%25_Bran]
1077 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1082 Bug 4781, 5267: %28, %29 in autonumber URL
1084 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1086 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1092 Bug 4781: %26 in bracketed URL
1094 [http://www.example.com/?title=AT%26T link]
1096 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1101 Bug 4781, 5267: %26 in bracketed URL
1103 [http://www.example.com/?title=100%25_Bran link]
1105 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1110 Bug 4781, 5267: %28, %29 in bracketed URL
1112 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1114 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1119 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1121 Some [http://example.com/ pretty ''italics'' and stuff]!
1123 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1128 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1130 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1132 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1137 External link containing double-single-quotes with no space separating the url from text in italics
1139 [http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]
1141 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
1146 URL-encoding in URL functions (single parameter)
1148 {{localurl:Some page|amp=&}}
1150 <p>/index.php?title=Some_page&amp=&
1155 URL-encoding in URL functions (multiple parameters)
1157 {{localurl:Some page|q=?&=&}}
1159 <p>/index.php?title=Some_page&q=?&amp=&
1170 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1172 Normal text. '''''Bold italic text.''''' Normal text.
1174 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1175 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1181 Unclosed and unmatched quotes
1183 '''''Bold italic text '''with bold deactivated''' in between.'''''
1185 '''''Bold italic text ''with italic deactivated'' in between.'''''
1189 ..spanning two paragraphs (should not work).'''
1191 '''Bold tag left open
1193 ''Italic tag left open
1197 <!-- Unmatching number of opening, closing tags: -->
1198 '''This year''''s election ''should'' beat '''last year''''s.
1200 ''Tom'''s car is bigger than ''Susan'''s.
1202 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1203 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1204 </p><p><b>Bold text..</b>
1205 </p><p>..spanning two paragraphs (should not work).
1206 </p><p><b>Bold tag left open</b>
1207 </p><p><i>Italic tag left open</i>
1209 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1210 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1217 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1220 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1221 # is the bare minimun required by the spec, see:
1222 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1224 A table with no data.
1230 # A table with nothing but a caption is invalid XHTML, we might want to render
1231 # this as <p>caption</p>
1233 A table with nothing but a caption
1274 Table inside unclosed table w/o cells
1303 ! Number !! Another number
1336 Table with multiple captions: Only keep first
1352 Table with multiline caption
1368 Table with multiple thead
1371 ! Number !! Another number
1375 ! Some other number !! Another number
1397 <th>Some other number
1413 Table with thead & tfoot
1416 ! Number !! Another number
1420 ! Some other number !! Another number
1424 ! Total: 4 !! Total: 6
1444 <th>Some other number
1468 Table with list inside
1471 |style="width: 5em; text-align: center"| gives
1472 |style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em"|
1482 <td style="width: 5em; text-align: center">gives
1484 <td style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em">
1497 Table with broken up list inside
1500 |style="width: 5em; text-align: center"| gives
1501 |style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em"|
1512 <td style="width: 5em; text-align: center">gives
1514 <td style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em">
1529 Indented table wrapped in html tags (Related to Bug 26362)
1544 </table></dd></dl></div>
1549 Table with multiline contents
1572 Multiplication table
1574 {| border="1" cellpadding="2"
1575 |+Multiplication table
1577 ! × !! 1 !! 2 !! 3
1595 <table border="1" cellpadding="2">
1596 <caption>Multiplication table
1667 {| align=right border=1
1669 |rowspan=2| Cell 2, row 1 (and 2)
1676 <table align="right" border="1">
1680 <td rowspan="2">Cell 2, row 1 (and 2)
1701 {| bgcolor=#ABCDEF border=2
1706 |the original table again
1714 <table bgcolor="#ABCDEF" border="2">
1725 <td>the original table again
1733 Invalid attributes in table cell (bug 1830)
1749 Heading inside table (affected by r85922)
1760 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Heading">edit</a>]</span> <span class="mw-headline" id="Heading"> Heading </span></h3>
1768 A table with a caption with unclosed italic
1776 <caption><i>caption</i>
1787 A table with unclosed italic in a cell
1803 A table with unclosed italic in a th
1823 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1826 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1830 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a>
1832 <td>]" onmouseover="alert(document.cookie)">test
1840 Indented Tables, bug 20078
1866 Arbitrary whitespace should not be prepended
1910 Plain link, capitalized
1914 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1919 Plain link, uncapitalized
1923 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1930 [[Main Page|The Main Page]]
1932 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1941 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1946 Broken link with fragment
1948 [[Zigzagzogzagzig#zug]]
1950 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1955 Special page link with fragment
1957 [[Special:Version#anchor]]
1959 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1964 Nonexistent special page link with fragment
1966 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1968 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1975 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1977 <p>xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a>, xxx<a href="/wiki/Main_Page" title="Main Page">Main Page</a>, Xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a> XXX<a href="/wiki/Main_Page" title="Main Page">main Page</a>, XXX<a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1984 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1986 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>!!!
1991 Link with 3 brackets
2000 Piped link with 3 brackets
2002 [[[main page|the main page]]]
2004 <p>[[[main page|the main page]]]
2009 Link with multiple pipes
2011 [[Main Page|The|Main|Page]]
2013 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2020 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2022 <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>
2027 Piped link to namespace
2029 [[Meta:Disclaimers|The disclaimers]]
2031 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2038 [[Usually caused by a typo (oops}]]
2040 <p>[[Usually caused by a typo (oops}]]
2045 Link containing % (not as a hex sequence)
2049 <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>
2054 Link containing % as a single hex sequence interpreted to char
2058 <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>
2063 Link containing % as a double hex sequence interpreted to hex sequence
2067 <p>[[7%2525 Solution]]
2072 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2073 Example for such a section: == < ==
2075 [[%23%3c]][[%23%3e]]
2077 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2082 Link containing "<#" and ">#" as a hex sequences
2084 [[%3c%23]][[%3e%23]]
2086 <p>[[%3c%23]][[%3e%23]]
2091 Link containing double-single-quotes '' (bug 4598)
2093 [[Lista d''e paise d''o munno]]
2095 <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>
2100 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2102 Some [[Link|pretty ''italics'' and stuff]]!
2104 <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>!
2109 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2111 ''Some [[Link|pretty ''italics'' and stuff]]!
2113 <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>
2118 Link with double quotes in title part (literal) and alternate part (interpreted)
2120 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2124 [[''Pentecoste''|Pentecoste]]
2126 [[''Pentecoste''|''Pentecoste'']]
2128 <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>
2129 </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>
2130 </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>
2131 </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>
2138 [[http://www.example.com]]
2140 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2144 # I'm fairly sure the expected result here is wrong.
2145 # We want these to be URL links, not pseudo-pages with URLs for titles....
2146 # However the current output is also pretty screwy.
2149 # I'm changing it to match the current output--it arguably makes more
2150 # sense in the light of the test above. Old expected result was:
2151 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2153 # But I think this test is bordering on "garbage in, garbage out" anyway.
2158 Piped link to URL: [[http://www.example.com|an example URL]]
2160 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2165 BUG 2: [[page|http://url/]] should link to page, not http://url/
2167 [[Main Page|http://url/]]
2169 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2174 BUG 337: Escaped self-links should be bold
2178 [[Bug462]] [[Bug462]]
2180 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2185 Self-link to section should not be bold
2189 [[Main Page#section]]
2191 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2202 Self-link to numeric title
2208 <p><strong class="selflink">0</strong>
2213 Link to numeric-equivalent title
2219 <p><a href="/wiki/00" title="00">00</a>
2224 <nowiki> inside a link
2226 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2228 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2233 Non-breaking spaces in title
2235 [[ Main Page ]]
2237 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2242 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2248 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2253 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2259 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2264 Internal link with en linktrail: no apostrophes (bug 27473)
2270 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2275 Internal link with ca linktrail with apostrophes (bug 27473)
2281 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2286 Internal link with kaa linktrail with apostrophes (bug 27473)
2292 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2297 ### Interwiki links (see maintenance/interwiki.sql)
2301 Inline interwiki link
2303 [[MeatBall:SoftSecurity]]
2305 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2310 Inline interwiki link with empty title (bug 2372)
2314 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw" title="meatball:">MeatBall:</a>
2319 Interwiki link encoding conversion (bug 1636)
2321 *[[Wikipedia:ro:Olteniţa]]
2322 *[[Wikipedia:ro:Olteniţa]]
2324 <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>
2325 </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>
2331 Interwiki link with fragment (bug 2130)
2333 [[MeatBall:SoftSecurity#foo]]
2335 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2350 Double interlanguage link
2361 Interlanguage link, with prefix links
2373 Double interlanguage link, with prefix links (bug 8897)
2400 Incorrecly removing closing slashes from correctly formed XHTML
2402 <br style="clear:both;" />
2404 <p><br style="clear:both;" />
2409 Failing to transform badly formed HTML into correct XHTML
2415 <p><br clear="left" />
2416 <br clear="right" />
2422 Horizontal ruler (should it add that extra space?)
2436 ### Block-level elements
2459 <ol><li>Numbered list
2476 ***#Number on level 4
2478 **#Number on level 3
2479 **#Number on level 3
2484 <ol><li> with numbers
2486 <ul><li> and bullets
2488 <ol><li> and numbers
2490 </li><li>bullets again
2491 <ul><li>bullet level 2
2492 <ul><li>bullet level 3
2493 <ol><li>Number on level 4
2496 </li><li>bullet level 2
2497 <ol><li>Number on level 3
2498 </li><li>Number on level 3
2501 <ol><li>number level 2
2509 List items are not parsed correctly following a <pre> block (bug 785)
2515 <ul><li> <pre>foo</pre>
2516 </li><li> <pre>bar</pre>
2527 Magic Word: {{CURRENTDAY}}
2536 Magic Word: {{CURRENTDAY2}}
2545 Magic Word: {{CURRENTDAYNAME}}
2554 Magic Word: {{CURRENTDOW}}
2563 Magic Word: {{CURRENTMONTH}}
2572 Magic Word: {{CURRENTMONTHABBREV}}
2574 {{CURRENTMONTHABBREV}}
2581 Magic Word: {{CURRENTMONTHNAME}}
2583 {{CURRENTMONTHNAME}}
2590 Magic Word: {{CURRENTMONTHNAMEGEN}}
2592 {{CURRENTMONTHNAMEGEN}}
2599 Magic Word: {{CURRENTTIME}}
2608 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2617 Magic Word: {{CURRENTYEAR}}
2626 Magic Word: {{FULLPAGENAME}}
2628 title=[[User:Ævar Arnfjörð Bjarmason]]
2632 <p>User:Ævar Arnfjörð Bjarmason
2637 Magic Word: {{FULLPAGENAMEE}}
2639 title=[[User:Ævar Arnfjörð Bjarmason]]
2643 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2648 Magic Word: {{NAMESPACE}}
2650 title=[[User:Ævar Arnfjörð Bjarmason]]
2659 Magic Word: {{NAMESPACEE}}
2661 title=[[User:Ævar Arnfjörð Bjarmason]]
2670 Magic Word: {{NUMBEROFFILES}}
2679 Magic Word: {{PAGENAME}}
2681 title=[[User:Ævar Arnfjörð Bjarmason]]
2685 <p>Ævar Arnfjörð Bjarmason
2690 Magic Word: {{PAGENAME}} with metacharacters
2692 title=[['foo & bar = baz']]
2696 <p><i>'foo & bar = baz'</i>
2701 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2703 title=[[*RFC 1234 http://example.com/]]
2707 <p>*RFC 1234 http://example.com/
2712 Magic Word: {{PAGENAMEE}}
2714 title=[[User:Ævar Arnfjörð Bjarmason]]
2718 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2723 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2725 title=[[*RFC 1234 http://example.com/]]
2729 <p>*RFC_1234_http://example.com/
2734 Magic Word: {{REVISIONID}}
2743 Magic Word: {{SCRIPTPATH}}
2752 Magic Word: {{SERVER}}
2756 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2761 Magic Word: {{SERVERNAME}}
2770 Magic Word: {{SITENAME}}
2779 Namespace 1 {{ns:1}}
2788 Namespace 1 {{ns:01}}
2797 Namespace 0 {{ns:0}} (bug 4783)
2805 Namespace 0 {{ns:00}} (bug 4783)
2813 Namespace -1 {{ns:-1}}
2822 Namespace User {{ns:User}}
2831 Namespace User talk {{ns:User_talk}}
2840 Namespace User talk {{ns:uSeR tAlK}}
2849 Namespace File {{ns:File}}
2858 Namespace File {{ns:Image}}
2867 Namespace (lang=de) Benutzer {{ns:User}}
2878 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2884 <p>Benutzer Diskussion
2892 {{urlencode:hi world?!}}
2893 {{urlencode:hi world?!|WIKI}}
2894 {{urlencode:hi world?!|PATH}}
2895 {{urlencode:hi world?!|QUERY}}
2908 Magic links: internal link to RFC (bug 479)
2912 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2917 Magic links: RFC (bug 479)
2921 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc822">RFC 822</a>
2926 Magic links: ISBN (bug 1937)
2930 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2935 Magic links: PMID incorrectly converts space to underscore
2939 <p><a class="external mw-magiclink-pmid" href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2948 Nonexistent template
2950 {{thistemplatedoesnotexist}}
2952 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2959 This is a test template
2967 <p>This is a test template
2972 Template with explicit namespace
2976 <p>This is a test template
2984 This is a test template with parameter {{{param}}}
2990 {{paramtest|param=foo}}
2992 <p>This is a test template with parameter foo
2997 Template:paramtestnum
3003 Template unnamed parameter
3005 {{paramtestnum|Main Page|the main page}}
3007 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3012 Template:templatesimple
3018 Template:templateredirect
3020 #redirect [[Template:templatesimple]]
3024 Template:templateasargtestnum
3030 Template:templateasargtest
3032 {{template{{{templ}}}}}
3036 Template:templateasargtest2
3042 Template with template name as unnamed argument
3044 {{templateasargtestnum|templatesimple}}
3051 Template with template name as argument
3053 {{templateasargtest|templ=simple}}
3060 Template with template name as argument (2)
3062 {{templateasargtest2|templ=templatesimple}}
3069 Template:templateasargtestdefault
3071 {{{{{templ|templatesimple}}}}}
3081 Template with default value
3083 {{templateasargtestdefault}}
3090 Template with default value (value set)
3092 {{templateasargtestdefault|templ=templa}}
3101 {{templateredirect}}
3108 Template with argument in separate line
3110 {{ templateasargtest |
3118 Template with complex template as argument
3121 param ={{ templateasargtest |
3124 <p>This is a test template with parameter (test)
3129 Template with thumb image (with link in description)
3132 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3134 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>
3139 Template:complextemplate
3141 {{{1}}} {{paramtest|
3142 param ={{{param}}}}}
3146 Template with complex arguments
3149 param ={{ templateasargtest |
3150 templ = simple }}|[[Template:complextemplate|link]]}}
3152 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3157 BUG 553: link with two variables in a piped link
3160 |[[{{{1}}}|{{{2}}}]]
3165 <td>[[{{{1}}}|{{{2}}}]]
3173 Magic variable as template parameter
3175 {{paramtest|param={{SITENAME}}}}
3177 <p>This is a test template with parameter MediaWiki
3184 [[{{{param}}}|link]]
3188 Template parameter as link source
3190 {{linktest|param=Main Page}}
3192 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3200 including another template, {{paramtest|param={{{arg}}}}}
3204 Template passing argument to another template
3206 {{paramtest2|arg='hmm'}}
3208 <p>including another template, This is a test template with parameter 'hmm'
3219 Template as link source
3223 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3241 Template infinite loop
3245 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
3250 Template from main namespace
3269 BUG 529: Template with table, not included at beginning of line
3293 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3318 BUG 41: Template parameters shown as broken links
3330 ''None'' of '''this''' should be
3332 but rather passed unmodified
3336 # hmm, fix this or just deprecate msgnw and document its behavior?
3342 {{msgnw:MSGNW test}}
3344 <p>''None'' of '''this''' should be
3346 but rather passed unmodified
3354 {{int:youhavenewmessages|lots of money|not!}}
3356 <p>You have lots of money (not!).
3363 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3367 <includeonly> and <noinclude> being included
3378 <onlyinclude>Foo</onlyinclude>bar
3382 <onlyinclude> being included
3394 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3398 <onlyinclude> and <includeonly> being included
3407 <includeonly> and <noinclude> on a page
3409 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3416 <onlyinclude> on a page
3418 <onlyinclude>Foo</onlyinclude>bar
3425 Template:Includeonly section
3428 ==Includeonly section==
3434 Bug 6563: Edit link generation for section shown by <includeonly>
3436 {{includeonly section}}
3438 <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>
3439 <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>
3443 # Uses same input as the contents of [[Template:Includeonly section]]
3445 Bug 6563: Section extraction for section shown by <includeonly>
3450 ==Includeonly section==
3458 Bug 6563: Edit link generation for section suppressed by <includeonly>
3461 ==Includeonly section==
3465 <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>
3470 Bug 6563: Section extraction for section suppressed by <includeonly>
3475 ==Includeonly section==
3482 Template:Top-level template
3488 Template:Nested template
3495 Line-start flag in a nested template call
3500 {{Top-level template}}
3512 ### Pre-save transform tests
3515 pre-save transform: subst:
3521 This is a test template
3525 pre-save transform: normal template
3535 pre-save transform: nonexistent template
3539 {{thistemplatedoesnotexist}}
3541 {{thistemplatedoesnotexist}}
3546 pre-save transform: subst magic variables
3555 # This is bug 89, which I fixed. -- wtm
3557 pre-save transform: subst: templates with parameters
3561 {{subst:paramtest|param="something else"}}
3563 This is a test template with parameter "something else"
3569 <nowiki>'''not wiki'''</nowiki>
3573 pre-save transform: nowiki in subst (bug 1188)
3577 {{subst:nowikitest}}
3579 <nowiki>'''not wiki'''</nowiki>
3584 Template:commenttest
3586 This template has <!-- a comment --> in it.
3590 pre-save transform: comment in subst (bug 1936)
3594 {{subst:commenttest}}
3596 This template has <!-- a comment --> in it.
3600 pre-save transform: unclosed tag
3604 <nowiki>'''not wiki'''
3606 <nowiki>'''not wiki'''
3610 pre-save transform: mixed tag case
3614 <NOwiki>'''not wiki'''</noWIKI>
3616 <NOwiki>'''not wiki'''</noWIKI>
3620 pre-save transform: unclosed comment in <nowiki>
3624 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3626 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3632 <span onmouseover="alert('crap')">Oh no</span>
3636 (confirming safety of fix for subst bug 1936)
3638 {{Template:dangerous}}
3640 <p><span>Oh no</span>
3645 pre-save transform: comment containing gallery (bug 5024)
3649 <!-- <gallery>data</gallery> -->
3651 <!-- <gallery>data</gallery> -->
3655 pre-save transform: comment containing extension
3659 <!-- <tag>data</tag> -->
3661 <!-- <tag>data</tag> -->
3665 pre-save transform: comment containing nowiki
3669 <!-- <nowiki>data</nowiki> -->
3671 <!-- <nowiki>data</nowiki> -->
3675 pre-save transform: <noinclude> in subst (bug 3298)
3685 pre-save transform: <onlyinclude> in subst (bug 3298)
3697 {{<includeonly>subst:</includeonly>Includes}}
3701 Template:SafeSubstTest
3703 {{<includeonly>safesubst:</includeonly>Includes}}
3707 bug 22297: safesubst: works during PST
3711 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3717 bug 22297: safesubst: works during normal parse
3726 subst: does not work during normal parse
3730 <p>{{subst:Includes}}
3735 pre-save transform: context links ("pipe trick")
3739 [[Article (context)|]]
3742 [[Bar:Article (context)|]]
3743 [[:Bar:Article (context)|]]
3745 [[|Article (context)]]
3749 [[Article (context)|Article]]
3750 [[Bar:Article|Article]]
3751 [[:Bar:Article|Article]]
3752 [[Bar:Article (context)|Article]]
3753 [[:Bar:Article (context)|Article]]
3755 [[Article (context)]]
3756 [[Bar:X (Y) Z|X (Y) Z]]
3757 [[:Bar:X (Y) Z|X (Y) Z]]
3761 pre-save transform: context links ("pipe trick") with interwiki prefix
3765 [[interwiki:Article|]]
3766 [[:interwiki:Article|]]
3767 [[interwiki:Bar:Article|]]
3768 [[:interwiki:Bar:Article|]]
3770 [[interwiki:Article|Article]]
3771 [[:interwiki:Article|Article]]
3772 [[interwiki:Bar:Article|Bar:Article]]
3773 [[:interwiki:Bar:Article|Bar:Article]]
3777 pre-save transform: context links ("pipe trick") with parens in title
3779 pst title=[[Somearticle (context)]]
3783 [[Article (context)|Article]]
3787 pre-save transform: context links ("pipe trick") with comma in title
3789 pst title=[[Someplace, Somewhere]]
3792 [[Otherplace, Elsewhere|]]
3793 [[Otherplace, Elsewhere, Anywhere|]]
3795 [[Otherplace, Somewhere|Otherplace]]
3796 [[Otherplace, Elsewhere|Otherplace]]
3797 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3801 pre-save transform: context links ("pipe trick") with parens and comma
3803 pst title=[[Someplace (IGNORED), Somewhere]]
3806 [[Otherplace (place), Elsewhere|]]
3808 [[Otherplace, Somewhere|Otherplace]]
3809 [[Otherplace (place), Elsewhere|Otherplace]]
3813 pre-save transform: context links ("pipe trick") with comma and parens
3815 pst title=[[Who, me? (context)]]
3818 [[Me, Myself, and I (1937 song)|]]
3820 [[Yes, you. (context)|Yes, you.]]
3821 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3825 pre-save transform: context links ("pipe trick") with namespace
3827 pst title=[[Ns:Somearticle]]
3831 [[Ns:Article|Article]]
3835 pre-save transform: context links ("pipe trick") with namespace and parens
3837 pst title=[[Ns:Somearticle (context)]]
3841 [[Ns:Article (context)|Article]]
3845 pre-save transform: context links ("pipe trick") with namespace and comma
3847 pst title=[[Ns:Somearticle, Context, Whatever]]
3851 [[Ns:Article, Context, Whatever|Article]]
3855 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3857 pst title=[[Ns:Somearticle, Context (context)]]
3861 [[Ns:Article (context)|Article]]
3865 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3867 pst title=[[Ns:Somearticle (IGNORED), Context]]
3871 [[Ns:Article, Context|Article]]
3876 ### Message transform tests
3879 message transform: magic variables
3889 message transform: should not transform wiki markup
3899 message transform: <noinclude> in transcluded template (bug 4926)
3909 message transform: <onlyinclude> in transcluded template (bug 4926)
3919 {{#special:}} page name, known
3923 {{#special:Recentchanges}}
3925 Special:RecentChanges
3929 {{#special:}} page name with subpage, known
3933 {{#special:Recentchanges/param}}
3935 Special:RecentChanges/param
3939 {{#special:}} page name, unknown
3943 {{#special:foobarnonexistent}}
3945 No such special page
3954 [[Image:foobar.jpg]]
3956 <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>
3963 [[Image:foobar.jpg|right]]
3965 <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>
3970 Simple image (using File: namespace, now canonical)
3974 <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>
3981 [[Image:foobar.jpg|right|Caption text]]
3983 <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>
3988 Image with link parameter, wiki target
3990 [[Image:foobar.jpg|link=Target page]]
3992 <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>
3997 Image with link parameter, URL target
3999 [[Image:foobar.jpg|link=http://example.com/]]
4001 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4006 Image with link parameter, wgExternalLinkTarget
4008 [[Image:foobar.jpg|link=http://example.com/]]
4010 wgExternalLinkTarget='foobar'
4012 <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>
4017 Image with link parameter, wgExternalLinkTarget, unnamed parameter
4019 [[Image:foobar.jpg|link=http://example.com/|Title]]
4021 wgExternalLinkTarget='foobar'
4023 <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>
4028 Image with empty link parameter
4030 [[Image:foobar.jpg|link=]]
4032 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
4037 Image with link parameter (wiki target) and unnamed parameter
4039 [[Image:foobar.jpg|link=Target page|Title]]
4041 <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>
4046 Image with link parameter (URL target) and unnamed parameter
4048 [[Image:foobar.jpg|link=http://example.com/|Title]]
4050 <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>
4055 Thumbnail image with link parameter
4057 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
4059 <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>
4064 Image with frame and link
4066 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
4068 <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" title="Main Page">Main Page</a></div></div></div>
4073 Image with frame and link and explicit alt
4075 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
4077 <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" title="Main Page">Main Page</a></div></div></div>
4082 Image with wiki markup in implicit alt
4084 [[Image:Foobar.jpg|testing '''bold''' in alt]]
4086 <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>
4091 Image with wiki markup in explicit alt
4093 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
4095 <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>
4100 Link to image page- image page normally doesn't exists, hence edit link
4101 Add test with existing image page
4102 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
4106 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
4111 bug 18784 Link to non-existent image page with caption should use caption as link text
4113 [[:Image:test|caption]]
4115 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
4120 Frameless image caption with a free URL
4122 [[Image:foobar.jpg|http://example.com]]
4124 <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>
4129 Thumbnail image caption with a free URL
4131 [[Image:foobar.jpg|thumb|http://example.com]]
4133 <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>
4138 Thumbnail image caption with a free URL and explicit alt
4140 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
4142 <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>
4147 BUG 1887: A ISBN with a thumbnail
4149 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
4151 <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>
4156 BUG 1887: A RFC with a thumbnail
4158 [[Image:foobar.jpg|thumb|This is RFC 12354]]
4160 <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>
4165 BUG 1887: A mailto link with a thumbnail
4167 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
4169 <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>
4173 # Pending resolution to bug 368
4175 BUG 648: Frameless image caption with a link
4177 [[Image:foobar.jpg|text with a [[link]] in it]]
4179 <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>
4184 BUG 648: Frameless image caption with a link (suffix)
4186 [[Image:foobar.jpg|text with a [[link]]foo in it]]
4188 <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>
4193 BUG 648: Frameless image caption with an interwiki link
4195 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4197 <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>
4202 BUG 648: Frameless image caption with a piped interwiki link
4204 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4206 <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>
4211 Escape HTML special chars in image alt text
4213 [[Image:foobar.jpg|& < > "]]
4215 <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>
4220 BUG 499: Alt text should have Ӓ, not &1234;
4222 [[Image:foobar.jpg|♀]]
4224 <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>
4229 Broken image caption with link
4231 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4233 <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.
4238 Image caption containing another image
4240 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4242 <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>
4247 Image caption containing a newline
4249 [[Image:Foobar.jpg|This
4252 <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>
4258 Bug 3090: External links other than http: in image captions
4260 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4262 <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>
4269 #REDIRECT [[File:Barfoo.jpg]]
4275 [[Image:Barfoo.jpg]]
4277 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
4282 Missing image with uploads disabled
4286 [[Image:Foobaz.jpg]]
4288 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
4297 Subpage test/subpage
4305 subpage title=[[Subpage test]]
4309 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
4314 Subpage noslash link
4316 subpage title=[[Subpage test]]
4320 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4329 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4334 BUG 561: {{/Subpage}}
4336 subpage title=[[Page]]
4340 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4348 Category:MediaWiki User's Guide
4356 [[:Category:MediaWiki User's Guide]]
4358 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
4367 [[Category:MediaWiki User's Guide]]
4369 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4373 PAGESINCATEGORY invalid title fatal (r33546 fix)
4375 {{PAGESINCATEGORY:<bogus>}}
4382 ### Inter-language links
4385 Inter-language links
4391 [[zh:食品]]
4393 es:Alimento fr:Nourriture zh:食品
4400 Basic section headings
4407 ===Smaller headline===
4410 <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>
4413 <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>
4416 <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>
4422 Section headings with TOC
4425 === Subheadline 1 ===
4426 ===== Skipping a level =====
4427 ====== Skipping a level ======
4431 ===Another headline===
4433 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4435 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4437 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4439 <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>
4441 <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>
4448 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4450 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4455 <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>
4456 <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>
4457 <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>
4458 <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>
4459 <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>
4462 <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>
4466 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4468 Handling of sections up to level 6 and beyond
4471 == Level 2 Heading==
4472 === Level 3 Heading===
4473 ==== Level 4 Heading====
4474 ===== Level 5 Heading=====
4475 ====== Level 6 Heading======
4476 ======= Level 7 Heading=======
4477 ======== Level 8 Heading========
4478 ========= Level 9 Heading=========
4479 ========== Level 10 Heading==========
4481 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4483 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4485 <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>
4487 <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>
4489 <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>
4491 <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>
4493 <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>
4494 <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>
4495 <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>
4496 <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>
4497 <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>
4510 <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>
4511 <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>
4512 <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>
4513 <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>
4514 <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>
4515 <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>
4516 <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>
4517 <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>
4518 <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>
4519 <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>
4524 TOC regression (bug 9764)
4528 ==== title 1.1.1 ====
4533 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4535 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4537 <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>
4539 <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>
4542 <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>
4545 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4547 <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>
4552 <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>
4553 <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>
4554 <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>
4555 <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>
4556 <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>
4557 <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>
4562 TOC with wgMaxTocLevel=3 (bug 6204)
4568 ==== title 1.1.1 ====
4573 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4575 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4577 <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>
4578 <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>
4581 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4583 <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>
4588 <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>
4589 <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>
4590 <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>
4591 <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>
4592 <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>
4593 <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>
4598 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4604 ====Section 1.1.1====
4605 ====Section 1.1.1.1====
4608 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4610 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4612 <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>
4615 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4618 <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>
4619 <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>
4620 <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>
4621 <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>
4622 <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>
4628 Resolving duplicate section names
4633 <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>
4634 <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>
4639 Resolving duplicate section names with differing case (bug 10721)
4644 <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>
4645 <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>
4657 Template with sections, __NOTOC__
4664 <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>
4665 <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>
4666 <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>
4667 <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>
4672 __NOEDITSECTION__ keyword
4678 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4679 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4684 Link inside a section heading
4686 ==Section with a [[Main Page|link]] in it==
4688 <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>
4693 TOC regression (bug 12077)
4700 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4702 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4704 <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>
4707 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4710 <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>
4711 <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>
4712 <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>
4717 BUG 1219 URL next to image (good)
4719 http://example.com [[Image:foobar.jpg]]
4721 <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>
4726 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4729 The line above must have a trailing space!
4732 But just in case it doesn't...
4734 <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>
4735 <p>The line above must have a trailing space!
4737 <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>
4738 <p>But just in case it doesn't...
4743 Header with special characters (bug 25462)
4745 The tooltips shall not show entities to the user (ie. be double escaped)
4762 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4764 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4766 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4767 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4768 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4769 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4770 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4773 <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>
4776 <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>
4779 <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>
4782 <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>
4785 <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>
4791 BUG 1219 URL next to image (broken)
4793 http://example.com[[Image:foobar.jpg]]
4795 <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>
4800 Bug 1186 news: in the middle of text
4802 http://en.wikinews.org/wiki/Wikinews:Workplace
4804 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4810 Namespaced link must have a title
4819 Namespaced link must have a title (bad fragment version)
4821 [[Project:#fragment]]
4823 <p>[[Project:#fragment]]
4829 div with no attributes
4831 <div>HTML rocks</div>
4833 <div>HTML rocks</div>
4838 div with double-quoted attribute
4840 <div id="rock">HTML rocks</div>
4842 <div id="rock">HTML rocks</div>
4847 div with single-quoted attribute
4849 <div id='rock'>HTML rocks</div>
4851 <div id="rock">HTML rocks</div>
4856 div with unquoted attribute
4858 <div id=rock>HTML rocks</div>
4860 <div id="rock">HTML rocks</div>
4865 div with illegal double attributes
4867 <div align="center" align="right">HTML rocks</div>
4869 <div align="right">HTML rocks</div>
4874 HTML multiple attributes correction
4876 <p class="error" class="awesome">Awesome!</p>
4878 <p class="awesome">Awesome!</p>
4883 Table multiple attributes correction
4886 !+ class="error" class="awesome"| status
4891 <th class="awesome">status
4901 <DIV ALIGN="center">HTML ROCKS</DIV>
4903 <div align="center">HTML ROCKS</div>
4909 text with amp in the middle of nowhere
4913 <p>Remember AT&T?
4918 text with character entity: eacute
4920 I always thought é was a cute letter.
4922 <p>I always thought é was a cute letter.
4927 text with undefined character entity: xacute
4929 I always thought &xacute; was a cute letter.
4931 <p>I always thought &xacute; was a cute letter.
4943 [[Media:Foobar.jpg]]
4945 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4950 Media link with text
4952 [[Media:Foobar.jpg|A neat file to look at]]
4954 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4958 # FIXME: this is still bad HTML tag nesting
4960 Media link with nasty text
4961 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4963 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4965 <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>
4970 Media link to nonexistent file (bug 1702)
4972 [[Media:No such.jpg]]
4974 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4979 Image link to nonexistent file (bug 1850 - good)
4981 [[Image:No such.jpg]]
4983 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4988 :Image link to nonexistent file (bug 1850 - bad)
4990 [[:Image:No such.jpg]]
4992 <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>
4999 Character reference normalization in link text (bug 1938)
5001 [[Main Page|this&that]]
5003 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
5010 Test for unicode normalization
5012 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
5016 (bug 19451) Links should refer to the normalized form.
5024 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5025 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5026 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5027 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5028 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5033 Empty attribute crash test (bug 2067)
5035 <font color="">foo</font>
5037 <p><font color="">foo</font>
5042 Empty attribute crash test single-quotes (bug 2067)
5044 <font color=''>foo</font>
5046 <p><font color="">foo</font>
5051 Attribute test: equals, then nothing
5053 <font color=>foo</font>
5060 Attribute test: unquoted value
5062 <font color=x>foo</font>
5064 <p><font color="x">foo</font>
5069 Attribute test: unquoted but illegal value (hash)
5071 <font color=#x>foo</font>
5073 <p><font color="#x">foo</font>
5078 Attribute test: no value
5080 <font color>foo</font>
5082 <p><font color="color">foo</font>
5087 Bug 2095: link with three closing brackets
5091 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
5096 Bug 2095: link with pipe and three closing brackets
5100 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
5105 Bug 2095: link with pipe and three closing brackets, version 2
5107 [[Main Page|[http://example.com/]]]
5109 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
5119 Template:Dangerous attribute
5121 " onmouseover="alert(document.cookie)
5125 Template:Dangerous style attribute
5127 border-size: expression(alert(document.cookie))
5133 <div style="float: right; {{{1}}}">Magic div</div>
5137 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
5139 <div title="{{test}}"></div>
5141 <div title="This is a test template"></div>
5146 Bug 2304: HTML attribute safety (dangerous template; 2309)
5148 <div title="{{dangerous attribute}}"></div>
5150 <div title=""></div>
5155 Bug 2304: HTML attribute safety (dangerous style template; 2309)
5157 <div style="{{dangerous style attribute}}"></div>
5159 <div style="/* insecure input */"></div>
5164 Bug 2304: HTML attribute safety (safe parameter; 2309)
5166 {{div style|width: 200px}}
5168 <div style="float: right; width: 200px">Magic div</div>
5173 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
5175 {{div style|width: expression(alert(document.cookie))}}
5177 <div style="/* insecure input */">Magic div</div>
5182 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
5184 {{div style|"><script>alert(document.cookie)</script>}}
5186 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5191 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5193 {{div style|" ><script>alert(document.cookie)</script>}}
5195 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5200 Bug 2304: HTML attribute safety (link)
5202 <div title="[[Main Page]]"></div>
5204 <div title="[[Main Page]]"></div>
5209 Bug 2304: HTML attribute safety (italics)
5211 <div title="''foobar''"></div>
5213 <div title="''foobar''"></div>
5218 Bug 2304: HTML attribute safety (bold)
5220 <div title="'''foobar'''"></div>
5222 <div title="'''foobar'''"></div>
5228 Bug 2304: HTML attribute safety (ISBN)
5230 <div title="ISBN 1234567890"></div>
5232 <div title="ISBN 1234567890"></div>
5237 Bug 2304: HTML attribute safety (RFC)
5239 <div title="RFC 1234"></div>
5241 <div title="RFC 1234"></div>
5246 Bug 2304: HTML attribute safety (PMID)
5248 <div title="PMID 1234567890"></div>
5250 <div title="PMID 1234567890"></div>
5255 Bug 2304: HTML attribute safety (web link)
5257 <div title="http://example.com/"></div>
5259 <div title="http://example.com/"></div>
5264 Bug 2304: HTML attribute safety (named web link)
5266 <div title="[http://example.com/ link]"></div>
5268 <div title="[http://example.com/ link]"></div>
5273 Bug 3244: HTML attribute safety (extension; safe)
5275 <div style="<nowiki>background:blue</nowiki>"></div>
5277 <div style="background:blue"></div>
5282 Bug 3244: HTML attribute safety (extension; unsafe)
5284 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
5286 <div style="/* insecure input */"></div>
5290 # More MSIE fun discovered by Tom Gilder
5293 MSIE CSS safety test: spurious slash
5295 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
5297 <div style="/* insecure input */">evil</div>
5302 MSIE CSS safety test: hex code
5304 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
5306 <div style="/* insecure input */">evil</div>
5311 MSIE CSS safety test: comment in url
5313 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
5315 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
5320 MSIE CSS safety test: comment in expression
5322 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
5324 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5330 Table attribute legitimate extension
5333 !+ style="<nowiki>color:blue</nowiki>"| status
5338 <th style="color:blue">status
5346 Table attribute safety
5349 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5354 <th style="/* insecure input */">status
5362 CSS line continuation 1
5364 <div style="background-image: u\ rl(test.jpg);"></div>
5366 <div style="/* insecure input */"></div>
5371 CSS line continuation 2
5373 <div style="background-image: u\ rl(test.jpg); "></div>
5375 <div style="/* insecure input */"></div>
5386 Expansion of multi-line templates in attribute values (bug 6255)
5388 <div style="background: {{identity|#00FF00}}">-</div>
5390 <div style="background: #00FF00">-</div>
5396 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5398 <div style="background:
5401 <div style="background: #00FF00">-</div>
5406 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5408 <div style="background: #00FF00">-</div>
5410 <div style="background: #00FF00">-</div>
5415 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5418 Parser hook: empty input
5431 Parser hook: empty input using terminated empty elements
5444 Parser hook: empty input using terminated empty elements (space before)
5457 Parser hook: basic input
5471 Parser hook: case insensitive
5485 Parser hook: case insensitive, redux
5498 Parser hook: nested tags
5502 <tag><tag></tag></tag>
5513 Parser hook: basic arguments
5515 <tag width=200 height = "100" depth = '50' square></tag>
5534 Parser hook: argument containing a forward slash (bug 5344)
5536 <tag filename='/tmp/bla'></tag>
5542 string(8) "/tmp/bla"
5549 Parser hook: empty input using terminated empty elements (bug 2374)
5563 # </tag> should be output literally since there is no matching tag that begins it
5565 Parser hook: basic arguments using terminated empty elements (bug 2374)
5567 <tag width=200 height = "100" depth = '50' square/>
5590 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5594 Parser hook: static parser hook not inside a comment
5596 <statictag>hello, world</statictag>
5597 <statictag action=flush/>
5605 Parser hook: static parser hook inside a comment
5607 <!-- <statictag>hello, world</statictag> -->
5608 <statictag action=flush/>
5614 # Nested template calls; this case was broken by Parser.php rev 1.506,
5618 Template:One-parameter
5620 (My parameter is: {{{1}}})
5624 Template:Map-one-parameter
5630 Nested template calls
5632 {{Map-one-parameter|One-parameter|param}}
5634 <p>(My parameter is: param)
5643 Sanitizer: Closing of open tags
5645 <s></s><table></table>
5647 <s></s><table></table>
5652 Sanitizer: Closing of open but not closed tags
5661 Sanitizer: Closing of closed but not open tags
5670 Sanitizer: Closing of closed but not open table tags
5672 Table not started</td></tr></table>
5674 <p>Table not started</td></tr></table>
5679 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5681 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5683 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5688 Sanitizer: Validating the contents of the id attribute (bug 4515)
5694 Something, but definitely not <br id="9" />...
5698 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5702 <br id="foo" /><br id="foo" />
5704 Something need to be done. foo-2 ?
5708 Language converter: output gets cut off unexpectedly (bug 5757)
5712 this bit is safe: }-
5714 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5716 then we get cut off here: }-
5718 all additional text is vanished
5720 <p>this bit is safe: }-
5721 </p><p>but if we add a conversion instance: xxx
5722 </p><p>then we get cut off here: }-
5723 </p><p>all additional text is vanished
5728 Self closed html pairs (bug 5487)
5731 <center><font id="bug" />Centered text</center>
5732 <div><font id="bug2" />In div text</div>
5734 <center><font id="bug" />Centered text</center>
5735 <div><font id="bug2" />In div text</div>
5744 Punctuation: nbsp before exclamation
5748 <p>C'est grave !
5753 Punctuation: CSS !important (bug 11874)
5755 <div style="width:50% !important">important</div>
5757 <div style="width:50% !important">important</div>
5762 Punctuation: CSS ! important (bug 11874; with space after)
5764 <div style="width:50% ! important">important</div>
5766 <div style="width:50% ! important">important</div>
5772 HTML bullet list, closed tags (bug 5497)
5787 HTML bullet list, unclosed tags (bug 5497)
5804 HTML ordered list, closed tags (bug 5497)
5819 HTML ordered list, unclosed tags (bug 5497)
5836 HTML nested bullet list, closed tags (bug 5497)
5861 HTML nested bullet list, open tags (bug 5497)
5886 HTML nested ordered list, closed tags (bug 5497)
5911 HTML nested ordered list, open tags (bug 5497)
5936 HTML ordered list item with parameters oddity
5938 <ol><li id="fragment">One</li></ol>
5940 <ol><li id="fragment">One</li></ol>
5945 bug 5918: autonumbering
5947 [http://first/] [http://second] [ftp://ftp]
5951 [mailto:enclosed@mail.tld With target]
5953 [mailto:enclosed@mail.tld]
5955 mailto:inline@mail.tld
5957 <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>
5958 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
5959 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
5960 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
5961 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
5967 # Security and HTML correctness
5968 # From Nick Jenkins' fuzz testing
5972 Fuzz testing: Parser13
5986 Fuzz testing: Parser14
5991 <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>
5992 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5994 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
6001 Fuzz testing: Parser14-table
6007 <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>
6008 <table style="__TOC__">
6017 # Known to produce bogus xml (extra </td>)
6019 Fuzz testing: Parser16
6039 Fuzz testing: Parser21
6042 ! irc://{{ftp://a" onmouseover="alert('hello world');"
6047 <th><a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
6056 Fuzz testing: Parser22
6058 http://===r:::https://b
6063 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
6068 # Known to produce bad XML for now
6070 # Note: the current result listed for this is not what the original one was,
6071 # but the original bug was JavaScript injection, which is fixed in any case.
6072 # It's not clear that the original result listed was any more correct than the
6073 # current one. Original result:
6076 # <u class="|">}}}} >
6077 # <br style="onmouseover='alert(document.cookie);'" />
6079 # MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6085 # Known to produce bad XML for now
6087 Fuzz testing: Parser24
6094 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
6095 <br style="onmouseover='alert(document.cookie);' " />
6097 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6101 <u class="|">}}}} >
6102 <br style="onmouseover='alert(document.cookie);'" />
6103 </p><p>MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6114 # Note: the current result listed for this is not what the original one was,
6115 # but the original bug was JavaScript injection, which is fixed in any case.
6116 # It's not clear that the original result listed was any more correct than the
6117 # current one. Original result:
6120 # <li class="||">
6121 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6123 Fuzz testing: Parser25 (bug 6055)
6129 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
6131 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6136 Fuzz testing: URL adjacent extension (with space, clean)
6139 http://example.com <nowiki>junk</nowiki>
6141 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
6146 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
6149 http://example.com<nowiki>junk</nowiki>
6151 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
6156 Fuzz testing: URL adjacent extension (no space, dirty; pre)
6159 http://example.com<pre>junk</pre>
6161 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
6166 Fuzz testing: image with bogus manual thumbnail
6168 [[Image:foobar.jpg|thumbnail= ]]
6170 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
6175 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
6177 <pre dir=" "></pre>
6179 <pre dir=" "></pre>
6184 Parsing optional HTML elements (Bug 6171)
6189 <td> Some tabular data</td>
6190 <td> More tabular data ...
6191 <td> And yet som tabular data</td>
6197 <td> Some tabular data</td>
6198 <td> More tabular data ...
6199 </td><td> And yet som tabular data</td>
6206 Correct handling of <td>, <tr> (Bug 6171)
6211 <td> Some tabular data</td>
6212 <td> More tabular data ...</td>
6213 <td> And yet som tabular data</td>
6219 <td> Some tabular data</td>
6220 <td> More tabular data ...</td>
6221 <td> And yet som tabular data</td>
6229 Parsing crashing regression (fr:JavaScript)
6233 <p></body></x>
6238 Inline wiki vs wiki block nesting
6244 <p><b>Bold paragraph</b>
6245 </p><p>New wiki paragraph
6250 Inline HTML vs wiki block nesting
6258 <p><b>Bold paragraph</b>
6259 </p><p>New wiki paragraph
6263 # Original result was this:
6264 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6266 # While that might be marginally more intuitive, maybe, the six-apostrophe
6267 # construct is clearly pathological and the result stated here (which is what
6268 # the parser actually does) is about as reasonable as anything.
6270 Mixing markup for italics and bold
6273 '''bold''''''bold''bolditalics'''''
6275 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
6283 Article for special page transclusion test
6287 Special page transclusion
6290 {{Special:Prefixindex/Xyzzyx}}
6294 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6299 Special page transclusion twice (bug 5021)
6302 {{Special:Prefixindex/Xyzzyx}}
6303 {{Special:Prefixindex/Xyzzyx}}
6307 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6310 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6315 Transclusion of default MediaWiki message
6317 {{MediaWiki:Mainpage}}
6324 Transclusion of nonexistent MediaWiki message
6326 {{MediaWiki:Mainpagexxx}}
6328 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6333 Transclusion of MediaWiki message with underscore
6335 {{MediaWiki:history_short}}
6342 Transclusion of MediaWiki message with space
6344 {{MediaWiki:history short}}
6351 Invalid header with following text
6361 Section extraction test (section 0)
6381 Section extraction test (section 1)
6403 Section extraction test (section 2)
6424 Section extraction test (section 3)
6444 Section extraction test (section 4)
6468 Section extraction test (section 5)
6488 Section extraction test (section 6)
6509 Section extraction test (section 7)
6529 Section extraction test (section 8)
6549 Section extraction test (section 9)
6570 Section extraction test (section 10)
6590 Section extraction test (nonexistent section 11)
6609 Section extraction test with bogus heading (section 1)
6614 ==bogus== not a legal section
6618 ==bogus== not a legal section
6622 Section extraction test with bogus heading (section 2)
6627 ==bogus== not a legal section
6634 Section extraction test with comment after heading (section 1)
6646 Section extraction test with comment after heading (section 2)
6658 Section extraction test with bogus <nowiki> heading (section 1)
6663 ==bogus== <nowiki>not a legal section</nowiki>
6667 ==bogus== <nowiki>not a legal section</nowiki>
6671 Section extraction test with bogus <nowiki> heading (section 2)
6676 ==bogus== <nowiki>not a legal section</nowiki>
6683 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6684 # instead of respecting commented sections
6686 Section extraction prefixed by comment (section 1)
6697 Section extraction prefixed by comment (section 2)
6708 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6709 # instead of respecting HTML-style headings
6711 Section extraction, mixed wiki and html (section 1)
6727 Section extraction, mixed wiki and html (section 2)
6743 # Formerly testing for bug 3342
6745 Section extraction, heading surrounded by <noinclude>
6749 <noinclude>==unmarked==</noinclude>
6755 # Test behaviour of bug 19910
6757 Sectiion with all-equals
6762 The line above must have a trailing space
6765 But just in case it doesn't...
6769 But just in case it doesn't...
6773 Section replacement test (section 0)
6804 Section replacement test (section 1)
6833 Section replacement test (section 2)
6863 Section replacement test (section 3)
6894 Section replacement test (section 4)
6921 Section replacement test (section 5)
6952 Section replacement test (section 6)
6982 Section replacement test (section 7)
7013 Section replacement test (section 8)
7044 Section replacement test (section 9)
7073 Section replacement test (section 10)
7103 Section replacement test with initial whitespace (bug 13728)
7107 Preformatted initial line
7111 Preformatted initial line
7118 Section extraction, heading followed by pre with 20 spaces (bug 6398)
7130 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
7143 Section extraction, <pre> around bogus header (bug 10309)
7160 Section replacement, <pre> around bogus header (bug 10309)
7162 noxml replace=2,"xxx"
7183 Handling of 
 in URLs
7187 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
7194 5 quotes, code coverage +1 line
7201 Special:Search page linking.
7205 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
7220 * {{SUBJECTPAGENAME}}
7221 * {{SUBJECTPAGENAMEE}}
7228 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7230 <ul><li> Parser test
7231 </li><li> Parser test
7232 </li><li> Parser test
7233 </li><li> Parser_test
7234 </li><li> Parser test
7235 </li><li> Parser_test
7236 </li><li> Talk:Parser test
7237 </li><li> Talk:Parser_test
7238 </li><li> Parser test
7239 </li><li> Parser_test
7246 </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>
7250 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
7260 image4 |300px| centre
7261 image5.svg| http://///////
7266 <ul class="gallery">
7267 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7268 <div style="height: 150px;">Image1.png</div>
7269 <div class="gallerytext">
7272 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7273 <div style="height: 150px;">Image2.gif</div>
7274 <div class="gallerytext">
7279 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7280 <div style="height: 150px;">Image3</div>
7281 <div class="gallerytext">
7284 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7285 <div style="height: 150px;">Image4</div>
7286 <div class="gallerytext">
7291 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7292 <div style="height: 150px;">Image5.svg</div>
7293 <div class="gallerytext">
7294 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
7298 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7299 <div style="height: 150px;">* image6</div>
7300 <div class="gallerytext">
7308 Gallery (with options)
7310 <gallery widths='60px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
7311 File:Nonexistant.jpg|caption
7312 File:Nonexistant.jpg
7313 image:foobar.jpg|some '''caption''' [[Main Page]]
7315 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
7318 <ul class="gallery" style="max-width: 206px;_width: 206px;">
7319 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
7320 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7321 <div style="height: 70px;">Nonexistant.jpg</div>
7322 <div class="gallerytext">
7327 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7328 <div style="height: 70px;">Nonexistant.jpg</div>
7329 <div class="gallerytext">
7332 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7333 <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>
7334 <div class="gallerytext">
7335 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7339 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7340 <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>
7341 <div class="gallerytext">
7344 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7345 <div class="thumb" style="width: 90px;"><div style="margin:26px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="This is a foo-bar." src="http://example.com/images/3/3a/Foobar.jpg" width="60" height="7" /></a></div></div>
7346 <div class="gallerytext">
7356 Gallery with wikitext inside caption
7359 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
7360 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
7363 <ul class="gallery">
7364 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7365 <div class="thumb" style="width: 150px;"><div style="margin:66px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7366 <div class="gallerytext">
7367 <p><a href="/wiki/File:Foobar.jpg" class="image" title="desc"><img alt="inneralt" src="http://example.com/images/3/3a/Foobar.jpg" width="20" height="2" /></a>
7371 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7372 <div class="thumb" style="width: 150px;"><div style="margin:66px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7373 <div class="gallerytext">
7374 <p>This is a test template
7383 gallery (with showfilename option)
7385 <gallery showfilename>
7386 File:Nonexistant.jpg|caption
7387 File:Nonexistant.jpg
7388 image:foobar.jpg|some '''caption''' [[Main Page]]
7392 <ul class="gallery">
7393 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7394 <div style="height: 150px;">Nonexistant.jpg</div>
7395 <div class="gallerytext">
7396 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7401 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7402 <div style="height: 150px;">Nonexistant.jpg</div>
7403 <div class="gallerytext">
7404 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7408 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7409 <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>
7410 <div class="gallerytext">
7411 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7412 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7416 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7417 <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>
7418 <div class="gallerytext">
7419 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7428 Gallery (with namespace-less filenames)
7431 File:Nonexistant.jpg
7437 <ul class="gallery">
7438 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7439 <div style="height: 150px;">Nonexistant.jpg</div>
7440 <div class="gallerytext">
7443 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7444 <div style="height: 150px;">Nonexistant.jpg</div>
7445 <div class="gallerytext">
7448 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7449 <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>
7450 <div class="gallerytext">
7453 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7454 <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>
7455 <div class="gallerytext">
7463 HTML Hex character encoding (spells the word "JavaScript")
7465 JavaScript
7467 <p>JavaScript
7472 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7476 <p>&#xsee;&#XSEE;
7481 HTML Hex character encoding mixed case
7490 __FORCETOC__ override
7502 ISBN 978-0-1234-56 789
7504 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7509 ISBN followed by 5 spaces
7520 ISBN ISBN 1234567890
7522 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7527 Bug 22905: <abbr> followed by ISBN followed by </a>
7529 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7531 <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>
7540 <p>RFC <a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc1234">RFC 1234</a>
7545 Double RFC with a wiki link
7549 <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>
7558 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc983">RFC 983</a> 987
7563 Centre-aligned image
7565 [[Image:foobar.jpg|centre]]
7567 <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>
7574 [[Image:foobar.jpg|none]]
7576 <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>
7581 Width + Height sized image (using px) (height is ignored)
7583 [[Image:foobar.jpg|640x480px]]
7585 <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>
7590 Width-sized image (using px, no following whitespace)
7592 [[Image:foobar.jpg|640px]]
7594 <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>
7599 Width-sized image (using px, with following whitespace - test regression from r39467)
7601 [[Image:foobar.jpg|640px ]]
7603 <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>
7608 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7610 [[Image:foobar.jpg| 640px]]
7612 <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>
7617 Another italics / bold test
7625 # Note the results may be incorrect, as parserTest output included this:
7626 # XML error: Mismatched tag at byte 6120:
7627 # ...<dd> </dt></dl> </dd...
7635 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7646 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7648 Images with the "|" character in the comment
7650 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7652 <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>
7657 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7659 <html><script>alert(1);</script></html>
7661 <p><html><script>alert(1);</script></html>
7666 HTML with raw HTML ($wgRawHtml==true)
7670 <html><script>alert(1);</script></html>
7672 <p><script>alert(1);</script>
7677 Parents of subpages, one level up
7679 subpage title=[[Subpage test/L1/L2/L3]]
7683 <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>
7689 Parents of subpages, one level up, not named
7691 subpage title=[[Subpage test/L1/L2/L3]]
7695 <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>
7702 Parents of subpages, two levels up
7704 subpage title=[[Subpage test/L1/L2/L3]]
7710 <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
7711 </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>
7716 Parents of subpages, two levels up, without trailing slash or name.
7718 subpage title=[[Subpage test/L1/L2/L3]]
7727 Parents of subpages, two levels up, with lots of extra trailing slashes.
7729 subpage title=[[Subpage test/L1/L2/L3]]
7733 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7738 Definition list code coverage
7744 <dl><dt> title  </dt><dd> def
7745 </dd><dt> title </dt><dd> def
7746 </dd><dt>title</dt><dd> def
7752 Don't fall for the self-closing div
7754 <div>hello world</div/>
7756 <div>hello world</div>
7765 <p>[[:Template:Msg]]
7774 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7778 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7780 Always escape literal '>' in output, not just after '<'
7794 <p>This is a test template
7795 This is a test template
7807 Inclusion of !userCanEdit() content
7811 <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>
7817 Out-of-order TOC heading levels
7826 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7828 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7830 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7831 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7834 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7836 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7837 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7842 <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>
7843 <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>
7844 <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>
7845 <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>
7846 <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>
7847 <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>
7853 ISBN with a dummy number
7863 ISBN with space-delimited number
7867 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7873 ISBN with multiple spaces, no number
7892 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7893 </p><p>ISBN 12345678901
7899 ISBN with trailing year (bug 8110)
7901 ISBN 1-234-56789-0 - 2006
7903 ISBN 1 234 56789 0 - 2006
7905 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7906 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7914 {{anchorencode:foo bar©#%n}}
7916 <p>foo_bar.C2.A9.23.25n
7921 anchorencode trims spaces
7923 {{anchorencode: __pretty__please__}}
7930 anchorencode deals with links
7932 {{anchorencode: [[hello|world]] [[hi]]}}
7939 anchorencode deals with templates
7941 {{anchorencode: {{Foo}} }}
7948 anchorencode encodes like the TOC generator: (bug 18431)
7950 === _ +:.3A%3A&&]] ===
7951 {{anchorencode: _ +:.3A%3A&&]] }}
7954 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7955 <p>.2B:.3A.253A.26.26.5D.5D
7959 # Expected output in the following test is not necessarily expected (there
7960 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7961 # only testing for well-formedness.
7963 Bug 6200: blockquotes and paragraph formatting
7983 Bug 8293: Use of center tag ruins paragraph formatting
8005 ### Language variants related tests
8008 Self-link in language variants
8010 title=[[Dunav]] language=sr
8012 Both [[Dunav]] and [[Дунав]] are names for this river.
8014 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
8020 Link to pages in language variants
8024 Main Page can be written as [[Маин Паге]]
8026 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
8032 Multiple links to pages in language variants
8036 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
8038 <p><a href="/wiki/Main_Page" title="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>.
8044 Simple template in language variants
8050 <p>This is a test template
8056 Template with explicit namespace in language variants
8062 <p>This is a test template
8068 Basic test for template parameter in language variants
8072 {{парамтест|param=foo}}
8074 <p>This is a test template with parameter foo
8080 Simple category in language variants
8084 [[Category:МедиаWики Усер'с Гуиде]]
8086 <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>
8091 Stripping -{}- tags (language variants)
8095 Latin proverb: -{Ne nuntium necare}-
8097 <p>Latin proverb: Ne nuntium necare
8103 Prevent conversion with -{}- tags (language variants)
8105 language=sr variant=sr-ec
8107 Latinski: -{Ne nuntium necare}-
8109 <p>Латински: Ne nuntium necare
8115 Prevent conversion of text with -{}- tags (language variants)
8117 language=sr variant=sr-ec
8119 Latinski: -{Ne nuntium necare}-
8121 <p>Латински: Ne nuntium necare
8127 Prevent conversion of links with -{}- tags (language variants)
8129 language=sr variant=sr-ec
8133 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8139 -{}- tags within headlines (within html for parserConvert())
8141 language=sr variant=sr-ec
8145 <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>
8151 Explicit definition of language variant alternatives
8153 language=zh variant=zh-tw
8155 -{zh:China;zh-tw:Taiwan}-, not China
8157 <p>Taiwan, not China
8163 Explicit session-wise language variant mapping (A flag and - flag)
8165 language=zh variant=zh-tw
8167 Taiwan is not China.
8168 But -{A|zh:China;zh-tw:Taiwan}- is China,
8169 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
8170 and -{China}- is China.
8172 <p>Taiwan is not China.
8173 But Taiwan is Taiwan,
8174 (This should be stripped!)
8180 Explicit session-wise language variant mapping (H flag for hide)
8182 language=zh variant=zh-tw
8184 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
8187 <p>(This should be stripped!)
8193 Adding explicit conversion rule for title (T flag)
8195 language=zh variant=zh-tw showtitle
8197 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8200 <p>Should be stripped!
8205 Testing that changing the language variant here in the tests actually works
8207 language=zh variant=zh showtitle
8209 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8212 <p>Should be stripped!
8217 Bug 24072: more test on conversion rule for title
8219 language=zh variant=zh-tw showtitle
8221 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8222 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8225 <p>This should be stripped!
8226 This won't take interferes with the title rule.
8231 Raw output of variant escape tags (R flag)
8233 language=zh variant=zh-tw
8235 Raw: -{R|zh:China;zh-tw:Taiwan}-
8237 <p>Raw: zh:China;zh-tw:Taiwan
8242 Nested using of manual convert syntax
8244 language=zh variant=zh-hk
8246 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8248 <p>Nested: Hello Hong Kong!
8253 Do not convert roman numbers to language variants
8255 language=sr variant=sr-ec
8259 <p>Фридрих IV је цар.
8264 Unclosed language converter markup "-{"
8275 Don't convert raw rule "-{R|=>}-" to "=>"
8292 Bug 529: Uncovered bullet
8303 Bug 529: Uncovered table already at line-start
8331 Bug 529: Uncovered bullet in parser function result
8333 * Foo {{lc:{{bullet}} }}
8342 Bug 5678: Double-parsed template argument
8344 {{lc:{{{1}}}|hello}}
8351 Bug 5678: Double-parsed template invocation
8353 {{lc:{{paramtest {{!}} param = hello }} }}
8355 <p>{{paramtest | param = hello }}
8360 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8386 Morwen/13: Unclosed link followed by heading
8393 <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>
8398 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8405 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8410 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8417 <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>
8432 Paragraphs inside divs (no extra line breaks)
8444 Paragraphs inside divs (extra line break on open)
8459 Paragraphs inside divs (extra line break on close)
8474 Paragraphs inside divs (extra line break on open and close)
8491 Nesting tags, paragraphs on lines which begin with <div>
8495 <div></div><strong>A
8504 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8506 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8510 <blockquote>Line one
8512 Line two</blockquote>
8514 <blockquote>Line one
8515 Line two</blockquote>
8520 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8527 Line two</blockquote>
8532 Line two</blockquote>
8537 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8541 <blockquote>Line one
8546 <blockquote>Line one
8554 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8573 Paragraphs inside blockquotes/divs (no extra line breaks)
8575 <blockquote><div>Line one
8577 Line two</div></blockquote>
8579 <blockquote><div>Line one
8580 Line two</div></blockquote>
8585 Paragraphs inside blockquotes/divs (extra line break on open)
8590 Line two</div></blockquote>
8595 Line two</div></blockquote>
8600 Paragraphs inside blockquotes/divs (extra line break on close)
8602 <blockquote><div>Line one
8607 <blockquote><div>Line one
8615 Paragraphs inside blockquotes/divs (extra line break on open and close)
8632 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8634 wgLinkHolderBatchSize=0
8640 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
8641 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
8642 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
8647 Free external link invading image caption
8649 [[Image:Foobar.jpg|thumb|http://x|hello]]
8651 <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>
8656 Bug 15196: localised external link numbers
8660 [http://en.wikipedia.org/]
8662 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8667 Multibyte character in padleft
8669 {{padleft:-Hello|7|Æ}}
8676 Multibyte character in padright
8678 {{padright:Hello-|7|Æ}}
8691 <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>
8696 formatdate parser function
8698 {{#formatdate:2009-03-24}}
8700 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8705 formatdate parser function, with default format
8707 {{#formatdate:2009-03-24|mdy}}
8709 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8714 Linked date with autoformatting disabled
8716 wgUseDynamicDates=false
8720 <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>
8725 Spacing of numbers in formatted dates
8727 {{#formatdate:January 15}}
8729 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8734 Spacing of numbers in formatted dates (linked)
8736 wgUseDynamicDates=true
8740 <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>
8753 Edit comment with link
8757 I like the [[Main Page]] a lot
8759 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
8763 Edit comment with link and link text
8767 I like the [[Main Page|best pages]] a lot
8769 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8773 Edit comment with link and link text with suffix
8777 I like the [[Main Page|best page]]s a lot
8779 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8783 Edit comment with section link (non-local, eg in history list)
8785 comment title=[[Main Page]]
8787 /* External links */ removed bogus entries
8789 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
8793 Edit comment with section link (local, eg in diff view)
8795 comment local title=[[Main Page]]
8797 /* External links */ removed bogus entries
8799 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
8803 Edit comment with subpage link (bug 14080)
8807 title=[[Subpage test]]
8809 Poked at a [[/subpage]] here...
8811 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8815 Edit comment with subpage link and link text (bug 14080)
8819 title=[[Subpage test]]
8821 Poked at a [[/subpage|neat little page]] here...
8823 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8827 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8830 title=[[Subpage test]]
8832 Poked at a [[/subpage]] here...
8834 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8838 Edit comment with bare anchor link (local, as on diff)
8846 <a href="#section">#section</a>
8850 Edit comment with bare anchor link (non-local, as on history)
8857 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8861 Anchor starting with underscore
8865 <p><a href="#_ref">One</a>
8870 Id starting with underscore
8872 <div id="_ref"></div>
8874 <div id="_ref"></div>
8879 Space normalisation on autocomment (bug 22784)
8884 /* __hello__world__ */
8886 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
8890 percent-encoding and + signs in comments (Bug 26410)
8894 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8896 <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>
8900 Bad images - basic functionality
8907 Bad images - bug 16039: text after bad image disappears
8919 Verify that displaytitle works (bug #22501) no displaytitle
8923 wgAllowDisplayTitle=true
8924 wgRestrictDisplayTitle=false
8926 this is not the the title
8929 <p>this is not the the title
8934 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8939 wgAllowDisplayTitle=true
8940 wgRestrictDisplayTitle=false
8942 this is not the the title
8943 {{DISPLAYTITLE:whatever}}
8946 <p>this is not the the title
8951 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8956 wgAllowDisplayTitle=true
8957 wgRestrictDisplayTitle=true
8959 this is not the the title
8960 {{DISPLAYTITLE:whatever}}
8963 <p>this is not the the title
8968 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8973 wgAllowDisplayTitle=true
8974 wgRestrictDisplayTitle=true
8976 this is not the the title
8977 {{DISPLAYTITLE:screen}}
8980 <p>this is not the the title
8985 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8990 wgAllowDisplayTitle=false
8992 this is not the the title
8993 {{DISPLAYTITLE:screen}}
8996 <p>this is not the the title
8997 <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>
9002 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
9007 wgAllowDisplayTitle=false
9009 this is not the the title
9012 <p>this is not the the title
9017 preload: check <noinclude> and <includeonly>
9021 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
9027 preload: check <onlyinclude>
9031 Goodbye <onlyinclude>Hello world</onlyinclude>
9037 preload: can pass tags through if we want to
9041 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
9043 <includeonly>Hello world</includeonly>
9047 preload: check that it doesn't try to do tricks
9051 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9053 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9057 Play a bit with r67090 and bug 3158
9061 <div style="width:50% !important"> </div>
9062 <div style="width:50% !important"> </div>
9063 <div style="width:50% !important"> </div>
9064 <div style="border : solid;"> </div>
9066 <div style="width:50% !important"> </div>
9067 <div style="width:50% !important"> </div>
9068 <div style="width:50% !important"> </div>
9069 <div style="border : solid;"> </div>
9074 HTML5 data attributes
9076 <span data-foo="bar">Baz</span>
9077 <p data-abc-def_hij="">Quuz</p>
9079 <p><span data-foo="bar">Baz</span>
9081 <p data-abc-def_hij="">Quuz</p>
9086 percent-encoding and + signs in internal links (Bug 26410)
9088 [[User:+%]] [[Page+title%]]
9089 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
9090 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
9091 [[%33%45]] [[%33%45+]]
9093 <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>
9094 <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>
9095 <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>
9096 <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>
9101 Special characters in embedded file links (bug 27679)
9103 [[File:Contains & ampersand.jpg]]
9104 [[File:Does not exist.jpg|Title with & ampersand]]
9106 <p><a href="/index.php?title=Special:Upload&wpDestFile=Contains_%26_ampersand.jpg" class="new" title="File:Contains & ampersand.jpg">File:Contains & ampersand.jpg</a>
9107 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
9118 Try for 100% code coverage