1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
75 This is a simple paragraph.
77 <p>This is a simple paragraph.
97 * plain''italic''plain
98 * plain''italic''plain''italic''plain
99 * plain'''bold'''plain
100 * plain'''bold'''plain'''bold'''plain
101 * plain''italic''plain'''bold'''plain
102 * plain'''bold'''plain''italic''plain
103 * plain''italic'''bold-italic'''italic''plain
104 * plain'''bold''bold-italic''bold'''plain
105 * plain'''''bold-italic'''italic''plain
106 * plain'''''bold-italic''bold'''plain
107 * plain''italic'''bold-italic'''''plain
108 * plain'''bold''bold-italic'''''plain
109 * plain l'''italic''plain
110 * plain l''''bold''' plain
113 </li><li> plain<i>italic</i>plain
114 </li><li> plain<i>italic</i>plain<i>italic</i>plain
115 </li><li> plain<b>bold</b>plain
116 </li><li> plain<b>bold</b>plain<b>bold</b>plain
117 </li><li> plain<i>italic</i>plain<b>bold</b>plain
118 </li><li> plain<b>bold</b>plain<i>italic</i>plain
119 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
120 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
121 </li><li> plain<i><b>bold-italic</b>italic</i>plain
122 </li><li> plain<b><i>bold-italic</i>bold</b>plain
123 </li><li> plain<i>italic<b>bold-italic</b></i>plain
124 </li><li> plain<b>bold<i>bold-italic</i></b>plain
125 </li><li> plain l'<i>italic</i>plain
126 </li><li> plain l'<b>bold</b> plain
132 ### <nowiki> test cases
136 <nowiki> unordered list
138 <nowiki>* This is not an unordered list item.</nowiki>
140 <p>* This is not an unordered list item.
147 <nowiki>Lorem ipsum dolor
168 :There is not nowiki.
169 :There is <nowiki>nowiki</nowiki>.
171 #There is not nowiki.
172 #There is <nowiki>nowiki</nowiki>.
174 *There is not nowiki.
175 *There is <nowiki>nowiki</nowiki>.
177 <dl><dd>There is not nowiki.
178 </dd><dd>There is nowiki.
180 <ol><li>There is not nowiki.
181 </li><li>There is nowiki.
183 <ul><li>There is not nowiki.
184 </li><li>There is nowiki.
196 <!-- comment 1 --> asdf
232 asdf<!-- comment 1 -->jkl
242 <!-- foo --> b <!-- bar -->
256 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
262 Comment semantics and delimiters
264 <!-- --><!----><!-----><!------>
270 Comment semantics and delimiters, redux
272 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
273 -- foo -- funky huh? ... -->
279 Comment semantics and delimiters: directors cut
281 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
282 everything starting with < followed by !-- until the first -- and > we see,
283 that wouldn't be valid XML however, since in XML -- has to terminate a comment
291 Comment semantics: nesting
293 <!--<!-- no, we're not going to do anything fancy here -->-->
300 Comment semantics: unclosed comment at end
302 <!--This comment will run out to the end of the document
308 Comment in template title
317 Comment on its own line post-expand
329 ### Preformatted text
338 And a [[Main Page|link]]
344 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
349 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
366 Regression with preformatted in <center>
379 # Expected output in the following test is not really expected (there should be
380 # <pre> in the output) -- it's only testing for well-formedness.
382 Bug 6200: Preformatted in <blockquote>
395 <pre> with attributes (bug 3202)
397 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
399 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
404 <pre> with width attribute (bug 3202)
406 <pre width="8">Narrow screen goodies</pre>
408 <pre width="8">Narrow screen goodies</pre>
413 <pre> with forbidden attribute (bug 3202)
415 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
417 <pre width="8">Narrow screen goodies</pre>
422 <pre> with forbidden attribute values (bug 3202)
424 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
426 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
431 <nowiki> inside <pre> (bug 13238)
439 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
447 <pre><nowiki>Foo</nowiki></pre>
452 <nowiki> and <pre> preference (first one wins)
491 <dl><dt> name </dt><dd> Definition
497 Definition list for indentation only
501 <dl><dd> Indented text
507 Definition list with no space
511 <dl><dt>name</dt><dd>Definition
517 Definition list with URL link
519 ; http://example.com/ : definition
521 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
527 Definition list with bracketed URL link
529 ;[http://www.example.com/ Example]:Something about it
531 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
537 Definition list with wikilink containing colon
539 ; [[Help:FAQ]]: The least-read page on Wikipedia
541 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
546 # At Brion's and JeLuF's insistence... :)
548 Definition list with news link containing colon
550 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
552 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
558 Malformed definition list with colon
560 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
562 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
568 Definition lists: colon in external link text
570 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
572 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
578 Definition lists: colon in HTML attribute
580 ;<b style="display: inline">bold</b>
582 <dl><dt><b style="display: inline">bold</b>
589 Definition lists: self-closed tag
591 ;one<br/>two : two-line fun
593 <dl><dt>one<br />two </dt><dd> two-line fun
599 Bug 11748: Literal closing tags
605 <dd>test test test test test</dd>
607 <dd>test test test test test</dd>
612 <dd>test test test test test</dd>
614 <dd>test test test test test</dd>
622 External links: non-bracketed
624 Non-bracketed: http://example.com
626 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
631 External links: numbered
633 Numbered: [http://example.com]
634 Numbered: [http://example.net]
635 Numbered: [http://example.com]
637 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
638 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
639 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
644 External links: specified text
646 Specified text: [http://example.com link]
648 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
653 External links: trail
655 Linktrails should not work for external links: [http://example.com link]s
657 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
662 External links: dollar sign in URL
664 http://example.com/1$2345
666 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
671 External links: dollar sign in URL (named)
673 [http://example.com/1$2345]
675 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
680 External links: open square bracket forbidden in URL (bug 4377)
682 http://example.com/1[2345
684 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
689 External links: open square bracket forbidden in URL (named) (bug 4377)
691 [http://example.com/1[2345]
693 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
698 External links: nowiki in URL link text (bug 6230)
700 [http://example.com/ <nowiki>''example site''</nowiki>]
702 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
707 External links: newline forbidden in text (bug 6230 regression check)
709 [http://example.com/ first
712 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
720 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
722 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
727 External image from https
729 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
731 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
736 Link to non-http image, no img tag
738 Link to non-http image, no img tag: ftp://example.com/test.jpg
740 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
745 External links: terminating separator
747 Terminating separator: http://example.com/thing,
749 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
754 External links: intervening separator
756 Intervening separator: http://example.com/1,2,3
758 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
763 External links: old bug with URL in query
765 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
767 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
772 External links: old URL-in-URL bug, mixed protocols
774 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
776 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
781 External links: URL in text
783 URL in text: [http://example.com http://example.com]
785 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
790 External links: Clickable images
792 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
794 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
799 External links: raw ampersand
801 Old & use: http://x&y
803 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
808 External links: encoded ampersand
810 Old & use: http://x&y
812 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
817 External links: encoded equals (bug 6102)
819 http://example.com/?foo=bar
821 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
826 External links: [raw ampersand]
828 Old & use: [http://x&y]
830 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
835 External links: [encoded ampersand]
837 Old & use: [http://x&y]
839 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
844 External links: [encoded equals] (bug 6102)
846 [http://example.com/?foo=bar]
848 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
853 External links: [IDN ignored character reference in hostname; strip it right off]
855 [http://e‌xample.com/]
857 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
862 External links: IDN ignored character reference in hostname; strip it right off
864 http://e‌xample.com/
866 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
871 External links: www.jpeg.org (bug 554)
875 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
880 External links: URL within URL (original bug 2)
882 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
884 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
889 BUG 361: URL inside bracketed URL
891 [http://www.example.com/foo http://www.example.com/bar]
893 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
898 BUG 361: URL within URL, not bracketed
900 http://www.example.com/foo?=http://www.example.com/bar
902 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
907 BUG 289: ">"-token in URL-tail
909 http://www.example.com/<hello>
911 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
916 BUG 289: literal ">"-token in URL-tail
918 http://www.example.com/<b>html</b>
920 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
925 BUG 289: ">"-token in bracketed URL
927 [http://www.example.com/<hello> stuff]
929 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
934 BUG 289: literal ">"-token in bracketed URL
936 [http://www.example.com/<b>html</b> stuff]
938 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
943 BUG 289: literal double quote at end of URL
945 http://www.example.com/"hello"
947 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
952 BUG 289: literal double quote in bracketed URL
954 [http://www.example.com/"hello" stuff]
956 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
961 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
963 [http://www.example.com test]
965 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
970 External links: wiki links within external link (Bug 3695)
972 [http://example.com [[wikilink]] embedded in ext link]
974 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
979 BUG 787: Links with one slash after the url protocol are invalid
983 [http:/example.com title]
986 </p><p>[http:/example.com title]
991 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
993 ''[http://example.com text'']
994 [http://example.com '''text]'''
995 ''Something [http://example.com in italic'']
996 ''Something [http://example.com mixed''''', even bold]'''
997 '''''Now [http://example.com both''''']
999 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1000 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1001 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1002 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1003 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1009 Bug 4781: %26 in URL
1011 http://www.example.com/?title=AT%26T
1013 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1018 Bug 4781, 5267: %26 in URL
1020 http://www.example.com/?title=100%25_Bran
1022 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
1027 Bug 4781, 5267: %28, %29 in URL
1029 http://www.example.com/?title=Ben-Hur_%281959_film%29
1031 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
1037 Bug 4781: %26 in autonumber URL
1039 [http://www.example.com/?title=AT%26T]
1041 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1046 Bug 4781, 5267: %26 in autonumber URL
1048 [http://www.example.com/?title=100%25_Bran]
1050 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1055 Bug 4781, 5267: %28, %29 in autonumber URL
1057 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1059 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1065 Bug 4781: %26 in bracketed URL
1067 [http://www.example.com/?title=AT%26T link]
1069 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1074 Bug 4781, 5267: %26 in bracketed URL
1076 [http://www.example.com/?title=100%25_Bran link]
1078 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1083 Bug 4781, 5267: %28, %29 in bracketed URL
1085 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1087 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1092 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1094 Some [http://example.com/ pretty ''italics'' and stuff]!
1096 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1101 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1103 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1105 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1110 External link containing double-single-quotes with no space separating the url from text in italics
1112 [http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]
1114 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
1119 URL-encoding in URL functions (single parameter)
1121 {{localurl:Some page|amp=&}}
1123 <p>/index.php?title=Some_page&amp=&
1128 URL-encoding in URL functions (multiple parameters)
1130 {{localurl:Some page|q=?&=&}}
1132 <p>/index.php?title=Some_page&q=?&amp=&
1143 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1145 Normal text. '''''Bold italic text.''''' Normal text.
1147 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1148 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1154 Unclosed and unmatched quotes
1156 '''''Bold italic text '''with bold deactivated''' in between.'''''
1158 '''''Bold italic text ''with italic deactivated'' in between.'''''
1162 ..spanning two paragraphs (should not work).'''
1164 '''Bold tag left open
1166 ''Italic tag left open
1170 <!-- Unmatching number of opening, closing tags: -->
1171 '''This year''''s election ''should'' beat '''last year''''s.
1173 ''Tom'''s car is bigger than ''Susan'''s.
1175 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1176 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1177 </p><p><b>Bold text..</b>
1178 </p><p>..spanning two paragraphs (should not work).
1179 </p><p><b>Bold tag left open</b>
1180 </p><p><i>Italic tag left open</i>
1182 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1183 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1190 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1193 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1194 # is the bare minimun required by the spec, see:
1195 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1197 A table with no data.
1203 # A table with nothing but a caption is invalid XHTML, we might want to render
1204 # this as <p>caption</p>
1206 A table with nothing but a caption
1247 Table inside unclosed table w/o cells
1276 ! Number !! Another number
1309 Table with multiple captions: Only keep first
1325 Table with multiline caption
1341 Table with multiple thead
1344 ! Number !! Another number
1348 ! Some other number !! Another number
1370 <th>Some other number
1386 Table with thead & tfoot
1389 ! Number !! Another number
1393 ! Some other number !! Another number
1397 ! Total: 4 !! Total: 6
1417 <th>Some other number
1441 Table have th inside tfoot
1446 ! Footer1 !! Footer2
1469 Table have th inside thead
1472 ! Header1 !! Header2
1497 Table with list inside
1500 |style="width: 5em; text-align: center"| gives
1501 |style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em"|
1511 <td style="width: 5em; text-align: center">gives
1513 <td style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em">
1526 Table with broken up list inside
1529 |style="width: 5em; text-align: center"| gives
1530 |style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em"|
1541 <td style="width: 5em; text-align: center">gives
1543 <td style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em">
1558 Indented table wrapped in html tags (Related to Bug 26362)
1573 </table></dd></dl></div>
1578 Table with multiline contents
1601 Multiplication table
1603 {| border="1" cellpadding="2"
1604 |+Multiplication table
1606 ! × !! 1 !! 2 !! 3
1624 <table border="1" cellpadding="2">
1625 <caption>Multiplication table
1696 {| align=right border=1
1698 |rowspan=2| Cell 2, row 1 (and 2)
1705 <table align="right" border="1">
1709 <td rowspan="2">Cell 2, row 1 (and 2)
1730 {| bgcolor=#ABCDEF border=2
1735 |the original table again
1743 <table bgcolor="#ABCDEF" border="2">
1754 <td>the original table again
1762 Invalid attributes in table cell (bug 1830)
1778 Heading inside table (affected by r85922)
1789 <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>
1797 A table with a caption with unclosed italic
1805 <caption><i>caption</i>
1816 A table with unclosed italic in a cell
1832 A table with unclosed italic in a th
1852 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1855 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1859 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a>
1861 <td>]" onmouseover="alert(document.cookie)">test
1869 Indented Tables, bug 20078
1895 Arbitrary whitespace should not be prepended
1939 Plain link, capitalized
1943 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1948 Plain link, uncapitalized
1952 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1959 [[Main Page|The Main Page]]
1961 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1970 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1975 Broken link with fragment
1977 [[Zigzagzogzagzig#zug]]
1979 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1984 Special page link with fragment
1986 [[Special:Version#anchor]]
1988 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1993 Nonexistent special page link with fragment
1995 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1997 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2004 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2006 <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>
2013 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2015 <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>!!!
2020 Link with 3 brackets
2029 Piped link with 3 brackets
2031 [[[main page|the main page]]]
2033 <p>[[[main page|the main page]]]
2038 Link with multiple pipes
2040 [[Main Page|The|Main|Page]]
2042 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2049 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2051 <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>
2056 Piped link to namespace
2058 [[Meta:Disclaimers|The disclaimers]]
2060 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2067 [[Usually caused by a typo (oops}]]
2069 <p>[[Usually caused by a typo (oops}]]
2074 Link containing % (not as a hex sequence)
2078 <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>
2083 Link containing % as a single hex sequence interpreted to char
2087 <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>
2092 Link containing % as a double hex sequence interpreted to hex sequence
2096 <p>[[7%2525 Solution]]
2101 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2102 Example for such a section: == < ==
2104 [[%23%3c]][[%23%3e]]
2106 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2111 Link containing "<#" and ">#" as a hex sequences
2113 [[%3c%23]][[%3e%23]]
2115 <p>[[%3c%23]][[%3e%23]]
2120 Link containing double-single-quotes '' (bug 4598)
2122 [[Lista d''e paise d''o munno]]
2124 <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>
2129 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2131 Some [[Link|pretty ''italics'' and stuff]]!
2133 <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>!
2138 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2140 ''Some [[Link|pretty ''italics'' and stuff]]!
2142 <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>
2147 Link with double quotes in title part (literal) and alternate part (interpreted)
2149 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2153 [[''Pentecoste''|Pentecoste]]
2155 [[''Pentecoste''|''Pentecoste'']]
2157 <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>
2158 </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>
2159 </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>
2160 </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>
2167 [[http://www.example.com]]
2169 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2173 # I'm fairly sure the expected result here is wrong.
2174 # We want these to be URL links, not pseudo-pages with URLs for titles....
2175 # However the current output is also pretty screwy.
2178 # I'm changing it to match the current output--it arguably makes more
2179 # sense in the light of the test above. Old expected result was:
2180 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2182 # But I think this test is bordering on "garbage in, garbage out" anyway.
2187 Piped link to URL: [[http://www.example.com|an example URL]]
2189 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2194 BUG 2: [[page|http://url/]] should link to page, not http://url/
2196 [[Main Page|http://url/]]
2198 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2203 BUG 337: Escaped self-links should be bold
2207 [[Bug462]] [[Bug462]]
2209 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2214 Self-link to section should not be bold
2218 [[Main Page#section]]
2220 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2231 Self-link to numeric title
2237 <p><strong class="selflink">0</strong>
2242 Link to numeric-equivalent title
2248 <p><a href="/wiki/00" title="00">00</a>
2253 <nowiki> inside a link
2255 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2257 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2262 Non-breaking spaces in title
2264 [[ Main Page ]]
2266 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2271 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2277 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2282 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2288 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2293 Internal link with en linktrail: no apostrophes (bug 27473)
2299 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2304 Internal link with ca linktrail with apostrophes (bug 27473)
2310 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2315 Internal link with kaa linktrail with apostrophes (bug 27473)
2321 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2326 ### Interwiki links (see maintenance/interwiki.sql)
2330 Inline interwiki link
2332 [[MeatBall:SoftSecurity]]
2334 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2339 Inline interwiki link with empty title (bug 2372)
2343 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw" title="meatball:">MeatBall:</a>
2348 Interwiki link encoding conversion (bug 1636)
2350 *[[Wikipedia:ro:Olteniţa]]
2351 *[[Wikipedia:ro:Olteniţa]]
2353 <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>
2354 </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>
2360 Interwiki link with fragment (bug 2130)
2362 [[MeatBall:SoftSecurity#foo]]
2364 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2379 Double interlanguage link
2390 Interlanguage link, with prefix links
2402 Double interlanguage link, with prefix links (bug 8897)
2429 Incorrecly removing closing slashes from correctly formed XHTML
2431 <br style="clear:both;" />
2433 <p><br style="clear:both;" />
2438 Failing to transform badly formed HTML into correct XHTML
2444 <p><br clear="left" />
2445 <br clear="right" />
2451 Horizontal ruler (should it add that extra space?)
2465 ### Block-level elements
2488 <ol><li>Numbered list
2505 ***#Number on level 4
2507 **#Number on level 3
2508 **#Number on level 3
2513 <ol><li> with numbers
2515 <ul><li> and bullets
2517 <ol><li> and numbers
2519 </li><li>bullets again
2520 <ul><li>bullet level 2
2521 <ul><li>bullet level 3
2522 <ol><li>Number on level 4
2525 </li><li>bullet level 2
2526 <ol><li>Number on level 3
2527 </li><li>Number on level 3
2530 <ol><li>number level 2
2538 List items are not parsed correctly following a <pre> block (bug 785)
2544 <ul><li> <pre>foo</pre>
2545 </li><li> <pre>bar</pre>
2556 Magic Word: {{CURRENTDAY}}
2565 Magic Word: {{CURRENTDAY2}}
2574 Magic Word: {{CURRENTDAYNAME}}
2583 Magic Word: {{CURRENTDOW}}
2592 Magic Word: {{CURRENTMONTH}}
2601 Magic Word: {{CURRENTMONTHABBREV}}
2603 {{CURRENTMONTHABBREV}}
2610 Magic Word: {{CURRENTMONTHNAME}}
2612 {{CURRENTMONTHNAME}}
2619 Magic Word: {{CURRENTMONTHNAMEGEN}}
2621 {{CURRENTMONTHNAMEGEN}}
2628 Magic Word: {{CURRENTTIME}}
2637 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2646 Magic Word: {{CURRENTYEAR}}
2655 Magic Word: {{FULLPAGENAME}}
2657 title=[[User:Ævar Arnfjörð Bjarmason]]
2661 <p>User:Ævar Arnfjörð Bjarmason
2666 Magic Word: {{FULLPAGENAMEE}}
2668 title=[[User:Ævar Arnfjörð Bjarmason]]
2672 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2677 Magic Word: {{NAMESPACE}}
2679 title=[[User:Ævar Arnfjörð Bjarmason]]
2688 Magic Word: {{NAMESPACEE}}
2690 title=[[User:Ævar Arnfjörð Bjarmason]]
2699 Magic Word: {{NUMBEROFFILES}}
2708 Magic Word: {{PAGENAME}}
2710 title=[[User:Ævar Arnfjörð Bjarmason]]
2714 <p>Ævar Arnfjörð Bjarmason
2719 Magic Word: {{PAGENAME}} with metacharacters
2721 title=[['foo & bar = baz']]
2725 <p><i>'foo & bar = baz'</i>
2730 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2732 title=[[*RFC 1234 http://example.com/]]
2736 <p>*RFC 1234 http://example.com/
2741 Magic Word: {{PAGENAMEE}}
2743 title=[[User:Ævar Arnfjörð Bjarmason]]
2747 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2752 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2754 title=[[*RFC 1234 http://example.com/]]
2758 <p>*RFC_1234_http://example.com/
2763 Magic Word: {{REVISIONID}}
2772 Magic Word: {{SCRIPTPATH}}
2781 Magic Word: {{SERVER}}
2785 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2790 Magic Word: {{SERVERNAME}}
2799 Magic Word: {{SITENAME}}
2808 Namespace 1 {{ns:1}}
2817 Namespace 1 {{ns:01}}
2826 Namespace 0 {{ns:0}} (bug 4783)
2834 Namespace 0 {{ns:00}} (bug 4783)
2842 Namespace -1 {{ns:-1}}
2851 Namespace User {{ns:User}}
2860 Namespace User talk {{ns:User_talk}}
2869 Namespace User talk {{ns:uSeR tAlK}}
2878 Namespace File {{ns:File}}
2887 Namespace File {{ns:Image}}
2896 Namespace (lang=de) Benutzer {{ns:User}}
2907 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2913 <p>Benutzer Diskussion
2921 {{urlencode:hi world?!}}
2922 {{urlencode:hi world?!|WIKI}}
2923 {{urlencode:hi world?!|PATH}}
2924 {{urlencode:hi world?!|QUERY}}
2937 Magic links: internal link to RFC (bug 479)
2941 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2946 Magic links: RFC (bug 479)
2950 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc822">RFC 822</a>
2955 Magic links: ISBN (bug 1937)
2959 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2964 Magic links: PMID incorrectly converts space to underscore
2968 <p><a class="external mw-magiclink-pmid" href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2977 Nonexistent template
2979 {{thistemplatedoesnotexist}}
2981 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2988 This is a test template
2996 <p>This is a test template
3001 Template with explicit namespace
3005 <p>This is a test template
3013 This is a test template with parameter {{{param}}}
3019 {{paramtest|param=foo}}
3021 <p>This is a test template with parameter foo
3026 Template:paramtestnum
3032 Template unnamed parameter
3034 {{paramtestnum|Main Page|the main page}}
3036 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3041 Template:templatesimple
3047 Template:templateredirect
3049 #redirect [[Template:templatesimple]]
3053 Template:templateasargtestnum
3059 Template:templateasargtest
3061 {{template{{{templ}}}}}
3065 Template:templateasargtest2
3071 Template with template name as unnamed argument
3073 {{templateasargtestnum|templatesimple}}
3080 Template with template name as argument
3082 {{templateasargtest|templ=simple}}
3089 Template with template name as argument (2)
3091 {{templateasargtest2|templ=templatesimple}}
3098 Template:templateasargtestdefault
3100 {{{{{templ|templatesimple}}}}}
3110 Template with default value
3112 {{templateasargtestdefault}}
3119 Template with default value (value set)
3121 {{templateasargtestdefault|templ=templa}}
3130 {{templateredirect}}
3137 Template with argument in separate line
3139 {{ templateasargtest |
3147 Template with complex template as argument
3150 param ={{ templateasargtest |
3153 <p>This is a test template with parameter (test)
3158 Template with thumb image (with link in description)
3161 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3163 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>
3168 Template:complextemplate
3170 {{{1}}} {{paramtest|
3171 param ={{{param}}}}}
3175 Template with complex arguments
3178 param ={{ templateasargtest |
3179 templ = simple }}|[[Template:complextemplate|link]]}}
3181 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3186 BUG 553: link with two variables in a piped link
3189 |[[{{{1}}}|{{{2}}}]]
3194 <td>[[{{{1}}}|{{{2}}}]]
3202 Magic variable as template parameter
3204 {{paramtest|param={{SITENAME}}}}
3206 <p>This is a test template with parameter MediaWiki
3213 [[{{{param}}}|link]]
3217 Template parameter as link source
3219 {{linktest|param=Main Page}}
3221 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3229 including another template, {{paramtest|param={{{arg}}}}}
3233 Template passing argument to another template
3235 {{paramtest2|arg='hmm'}}
3237 <p>including another template, This is a test template with parameter 'hmm'
3248 Template as link source
3252 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3270 Template infinite loop
3274 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
3279 Template from main namespace
3298 BUG 529: Template with table, not included at beginning of line
3322 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3347 BUG 41: Template parameters shown as broken links
3359 ''None'' of '''this''' should be
3361 but rather passed unmodified
3365 # hmm, fix this or just deprecate msgnw and document its behavior?
3371 {{msgnw:MSGNW test}}
3373 <p>''None'' of '''this''' should be
3375 but rather passed unmodified
3383 {{int:youhavenewmessages|lots of money|not!}}
3385 <p>You have lots of money (not!).
3392 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3396 <includeonly> and <noinclude> being included
3407 <onlyinclude>Foo</onlyinclude>bar
3411 <onlyinclude> being included
3423 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3427 <onlyinclude> and <includeonly> being included
3436 <includeonly> and <noinclude> on a page
3438 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3445 <onlyinclude> on a page
3447 <onlyinclude>Foo</onlyinclude>bar
3454 Template:Includeonly section
3457 ==Includeonly section==
3463 Bug 6563: Edit link generation for section shown by <includeonly>
3465 {{includeonly section}}
3467 <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>
3468 <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>
3472 # Uses same input as the contents of [[Template:Includeonly section]]
3474 Bug 6563: Section extraction for section shown by <includeonly>
3479 ==Includeonly section==
3487 Bug 6563: Edit link generation for section suppressed by <includeonly>
3490 ==Includeonly section==
3494 <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>
3499 Bug 6563: Section extraction for section suppressed by <includeonly>
3504 ==Includeonly section==
3511 Template:Top-level template
3517 Template:Nested template
3524 Line-start flag in a nested template call
3529 {{Top-level template}}
3541 ### Pre-save transform tests
3544 pre-save transform: subst:
3550 This is a test template
3554 pre-save transform: normal template
3564 pre-save transform: nonexistent template
3568 {{thistemplatedoesnotexist}}
3570 {{thistemplatedoesnotexist}}
3575 pre-save transform: subst magic variables
3584 # This is bug 89, which I fixed. -- wtm
3586 pre-save transform: subst: templates with parameters
3590 {{subst:paramtest|param="something else"}}
3592 This is a test template with parameter "something else"
3598 <nowiki>'''not wiki'''</nowiki>
3602 pre-save transform: nowiki in subst (bug 1188)
3606 {{subst:nowikitest}}
3608 <nowiki>'''not wiki'''</nowiki>
3613 Template:commenttest
3615 This template has <!-- a comment --> in it.
3619 pre-save transform: comment in subst (bug 1936)
3623 {{subst:commenttest}}
3625 This template has <!-- a comment --> in it.
3629 pre-save transform: unclosed tag
3633 <nowiki>'''not wiki'''
3635 <nowiki>'''not wiki'''
3639 pre-save transform: mixed tag case
3643 <NOwiki>'''not wiki'''</noWIKI>
3645 <NOwiki>'''not wiki'''</noWIKI>
3649 pre-save transform: unclosed comment in <nowiki>
3653 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3655 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3661 <span onmouseover="alert('crap')">Oh no</span>
3665 (confirming safety of fix for subst bug 1936)
3667 {{Template:dangerous}}
3669 <p><span>Oh no</span>
3674 pre-save transform: comment containing gallery (bug 5024)
3678 <!-- <gallery>data</gallery> -->
3680 <!-- <gallery>data</gallery> -->
3684 pre-save transform: comment containing extension
3688 <!-- <tag>data</tag> -->
3690 <!-- <tag>data</tag> -->
3694 pre-save transform: comment containing nowiki
3698 <!-- <nowiki>data</nowiki> -->
3700 <!-- <nowiki>data</nowiki> -->
3704 pre-save transform: <noinclude> in subst (bug 3298)
3714 pre-save transform: <onlyinclude> in subst (bug 3298)
3726 {{<includeonly>subst:</includeonly>Includes}}
3730 Template:SafeSubstTest
3732 {{<includeonly>safesubst:</includeonly>Includes}}
3736 bug 22297: safesubst: works during PST
3740 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3746 bug 22297: safesubst: works during normal parse
3755 subst: does not work during normal parse
3759 <p>{{subst:Includes}}
3764 pre-save transform: context links ("pipe trick")
3768 [[Article (context)|]]
3771 [[Bar:Article (context)|]]
3772 [[:Bar:Article (context)|]]
3774 [[|Article (context)]]
3778 [[Article (context)|Article]]
3779 [[Bar:Article|Article]]
3780 [[:Bar:Article|Article]]
3781 [[Bar:Article (context)|Article]]
3782 [[:Bar:Article (context)|Article]]
3784 [[Article (context)]]
3785 [[Bar:X (Y) Z|X (Y) Z]]
3786 [[:Bar:X (Y) Z|X (Y) Z]]
3790 pre-save transform: context links ("pipe trick") with interwiki prefix
3794 [[interwiki:Article|]]
3795 [[:interwiki:Article|]]
3796 [[interwiki:Bar:Article|]]
3797 [[:interwiki:Bar:Article|]]
3799 [[interwiki:Article|Article]]
3800 [[:interwiki:Article|Article]]
3801 [[interwiki:Bar:Article|Bar:Article]]
3802 [[:interwiki:Bar:Article|Bar:Article]]
3806 pre-save transform: context links ("pipe trick") with parens in title
3808 pst title=[[Somearticle (context)]]
3812 [[Article (context)|Article]]
3816 pre-save transform: context links ("pipe trick") with comma in title
3818 pst title=[[Someplace, Somewhere]]
3821 [[Otherplace, Elsewhere|]]
3822 [[Otherplace, Elsewhere, Anywhere|]]
3824 [[Otherplace, Somewhere|Otherplace]]
3825 [[Otherplace, Elsewhere|Otherplace]]
3826 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3830 pre-save transform: context links ("pipe trick") with parens and comma
3832 pst title=[[Someplace (IGNORED), Somewhere]]
3835 [[Otherplace (place), Elsewhere|]]
3837 [[Otherplace, Somewhere|Otherplace]]
3838 [[Otherplace (place), Elsewhere|Otherplace]]
3842 pre-save transform: context links ("pipe trick") with comma and parens
3844 pst title=[[Who, me? (context)]]
3847 [[Me, Myself, and I (1937 song)|]]
3849 [[Yes, you. (context)|Yes, you.]]
3850 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3854 pre-save transform: context links ("pipe trick") with namespace
3856 pst title=[[Ns:Somearticle]]
3860 [[Ns:Article|Article]]
3864 pre-save transform: context links ("pipe trick") with namespace and parens
3866 pst title=[[Ns:Somearticle (context)]]
3870 [[Ns:Article (context)|Article]]
3874 pre-save transform: context links ("pipe trick") with namespace and comma
3876 pst title=[[Ns:Somearticle, Context, Whatever]]
3880 [[Ns:Article, Context, Whatever|Article]]
3884 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3886 pst title=[[Ns:Somearticle, Context (context)]]
3890 [[Ns:Article (context)|Article]]
3894 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3896 pst title=[[Ns:Somearticle (IGNORED), Context]]
3900 [[Ns:Article, Context|Article]]
3904 pre-save transform: trim trailing empty lines
3908 Empty lines are trimmed
3914 Empty lines are trimmed
3918 pre-save transform: Signature expansion
3923 * <noinclude>~~~</noinclude>
3924 * <includeonly>~~~</includeonly>
3925 * <onlyinclude>~~~</onlyinclude>
3927 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
3928 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
3929 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
3930 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
3935 pre-save transform: Signature expansion in nowiki tags (bug 93)
3941 <nowiki>~~~~</nowiki>
3943 <includeonly><nowiki>~~~~</nowiki></includeonly>
3945 <noinclude><nowiki>~~~~</nowiki></noinclude>
3947 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3949 {{subst:Foo}} shall be converted to FOO
3951 As well as inside noinclude/onlyinclude
3952 <noinclude>{{subst:Foo}}</noinclude>
3953 <onlyinclude>{{subst:Foo}}</onlyinclude>
3955 But not inside includeonly
3956 <includeonly>{{subst:Foo}}</includeonly>
3960 <nowiki>~~~~</nowiki>
3962 <includeonly><nowiki>~~~~</nowiki></includeonly>
3964 <noinclude><nowiki>~~~~</nowiki></noinclude>
3966 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3968 FOO shall be converted to FOO
3970 As well as inside noinclude/onlyinclude
3971 <noinclude>FOO</noinclude>
3972 <onlyinclude>FOO</onlyinclude>
3974 But not inside includeonly
3975 <includeonly>{{subst:Foo}}</includeonly>
3979 ### Message transform tests
3982 message transform: magic variables
3992 message transform: should not transform wiki markup
4002 message transform: <noinclude> in transcluded template (bug 4926)
4012 message transform: <onlyinclude> in transcluded template (bug 4926)
4022 {{#special:}} page name, known
4026 {{#special:Recentchanges}}
4028 Special:RecentChanges
4032 {{#special:}} page name with subpage, known
4036 {{#special:Recentchanges/param}}
4038 Special:RecentChanges/param
4042 {{#special:}} page name, unknown
4046 {{#special:foobarnonexistent}}
4048 No such special page
4057 [[Image:foobar.jpg]]
4059 <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>
4066 [[Image:foobar.jpg|right]]
4068 <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>
4073 Simple image (using File: namespace, now canonical)
4077 <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>
4084 [[Image:foobar.jpg|right|Caption text]]
4086 <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>
4091 Image with link parameter, wiki target
4093 [[Image:foobar.jpg|link=Target page]]
4095 <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>
4100 Image with link parameter, URL target
4102 [[Image:foobar.jpg|link=http://example.com/]]
4104 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4109 Image with link parameter, wgExternalLinkTarget
4111 [[Image:foobar.jpg|link=http://example.com/]]
4113 wgExternalLinkTarget='foobar'
4115 <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>
4120 Image with link parameter, wgExternalLinkTarget, unnamed parameter
4122 [[Image:foobar.jpg|link=http://example.com/|Title]]
4124 wgExternalLinkTarget='foobar'
4126 <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>
4131 Image with empty link parameter
4133 [[Image:foobar.jpg|link=]]
4135 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
4140 Image with link parameter (wiki target) and unnamed parameter
4142 [[Image:foobar.jpg|link=Target page|Title]]
4144 <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>
4149 Image with link parameter (URL target) and unnamed parameter
4151 [[Image:foobar.jpg|link=http://example.com/|Title]]
4153 <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>
4158 Thumbnail image with link parameter
4160 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
4162 <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>
4167 Image with frame and link
4169 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
4171 <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>
4176 Image with frame and link and explicit alt
4178 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
4180 <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>
4185 Image with wiki markup in implicit alt
4187 [[Image:Foobar.jpg|testing '''bold''' in alt]]
4189 <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>
4194 Image with wiki markup in explicit alt
4196 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
4198 <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>
4203 Link to image page- image page normally doesn't exists, hence edit link
4204 Add test with existing image page
4205 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
4209 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
4214 bug 18784 Link to non-existent image page with caption should use caption as link text
4216 [[:Image:test|caption]]
4218 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
4223 Frameless image caption with a free URL
4225 [[Image:foobar.jpg|http://example.com]]
4227 <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>
4232 Thumbnail image caption with a free URL
4234 [[Image:foobar.jpg|thumb|http://example.com]]
4236 <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>
4241 Thumbnail image caption with a free URL and explicit alt
4243 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
4245 <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>
4250 BUG 1887: A ISBN with a thumbnail
4252 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
4254 <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>
4259 BUG 1887: A RFC with a thumbnail
4261 [[Image:foobar.jpg|thumb|This is RFC 12354]]
4263 <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>
4268 BUG 1887: A mailto link with a thumbnail
4270 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
4272 <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>
4276 # Pending resolution to bug 368
4278 BUG 648: Frameless image caption with a link
4280 [[Image:foobar.jpg|text with a [[link]] in it]]
4282 <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>
4287 BUG 648: Frameless image caption with a link (suffix)
4289 [[Image:foobar.jpg|text with a [[link]]foo in it]]
4291 <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>
4296 BUG 648: Frameless image caption with an interwiki link
4298 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4300 <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>
4305 BUG 648: Frameless image caption with a piped interwiki link
4307 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4309 <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>
4314 Escape HTML special chars in image alt text
4316 [[Image:foobar.jpg|& < > "]]
4318 <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>
4323 BUG 499: Alt text should have Ӓ, not &1234;
4325 [[Image:foobar.jpg|♀]]
4327 <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>
4332 Broken image caption with link
4334 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4336 <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.
4341 Image caption containing another image
4343 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4345 <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>
4350 Image caption containing a newline
4352 [[Image:Foobar.jpg|This
4355 <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>
4361 Bug 3090: External links other than http: in image captions
4363 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4365 <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>
4372 #REDIRECT [[File:Barfoo.jpg]]
4378 [[Image:Barfoo.jpg]]
4380 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
4385 Missing image with uploads disabled
4389 [[Image:Foobaz.jpg]]
4391 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
4400 Subpage test/subpage
4408 subpage title=[[Subpage test]]
4412 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
4417 Subpage noslash link
4419 subpage title=[[Subpage test]]
4423 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4432 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4437 BUG 561: {{/Subpage}}
4439 subpage title=[[Page]]
4443 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4451 Category:MediaWiki User's Guide
4459 [[:Category:MediaWiki User's Guide]]
4461 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
4470 [[Category:MediaWiki User's Guide]]
4472 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4476 PAGESINCATEGORY invalid title fatal (r33546 fix)
4478 {{PAGESINCATEGORY:<bogus>}}
4485 ### Inter-language links
4488 Inter-language links
4494 [[zh:食品]]
4496 es:Alimento fr:Nourriture zh:食品
4503 Basic section headings
4510 ===Smaller headline===
4513 <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>
4516 <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>
4519 <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>
4525 Section headings with TOC
4528 === Subheadline 1 ===
4529 ===== Skipping a level =====
4530 ====== Skipping a level ======
4534 ===Another headline===
4536 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4538 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4540 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4542 <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>
4544 <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>
4551 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4553 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4558 <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>
4559 <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>
4560 <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>
4561 <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>
4562 <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>
4565 <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>
4569 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4571 Handling of sections up to level 6 and beyond
4574 == Level 2 Heading==
4575 === Level 3 Heading===
4576 ==== Level 4 Heading====
4577 ===== Level 5 Heading=====
4578 ====== Level 6 Heading======
4579 ======= Level 7 Heading=======
4580 ======== Level 8 Heading========
4581 ========= Level 9 Heading=========
4582 ========== Level 10 Heading==========
4584 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4586 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4588 <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>
4590 <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>
4592 <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>
4594 <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>
4596 <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>
4597 <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>
4598 <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>
4599 <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>
4600 <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>
4613 <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>
4614 <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>
4615 <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>
4616 <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>
4617 <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>
4618 <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>
4619 <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>
4620 <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>
4621 <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>
4622 <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>
4627 TOC regression (bug 9764)
4631 ==== title 1.1.1 ====
4636 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4638 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4640 <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>
4642 <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>
4645 <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>
4648 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4650 <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>
4655 <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>
4656 <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>
4657 <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>
4658 <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>
4659 <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>
4660 <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>
4665 TOC with wgMaxTocLevel=3 (bug 6204)
4671 ==== title 1.1.1 ====
4676 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4678 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4680 <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>
4681 <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>
4684 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4686 <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>
4691 <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>
4692 <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>
4693 <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>
4694 <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>
4695 <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>
4696 <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>
4701 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4707 ====Section 1.1.1====
4708 ====Section 1.1.1.1====
4711 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4713 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4715 <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>
4718 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4721 <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>
4722 <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>
4723 <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>
4724 <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>
4725 <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>
4731 Resolving duplicate section names
4736 <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>
4737 <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>
4742 Resolving duplicate section names with differing case (bug 10721)
4747 <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>
4748 <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>
4760 Template with sections, __NOTOC__
4767 <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>
4768 <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>
4769 <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>
4770 <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>
4775 __NOEDITSECTION__ keyword
4781 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4782 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4787 Link inside a section heading
4789 ==Section with a [[Main Page|link]] in it==
4791 <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>
4796 TOC regression (bug 12077)
4803 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4805 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4807 <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>
4810 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4813 <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>
4814 <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>
4815 <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>
4820 BUG 1219 URL next to image (good)
4822 http://example.com [[Image:foobar.jpg]]
4824 <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>
4829 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4832 The line above must have a trailing space!
4835 But just in case it doesn't...
4837 <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>
4838 <p>The line above must have a trailing space!
4840 <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>
4841 <p>But just in case it doesn't...
4846 Header with special characters (bug 25462)
4848 The tooltips shall not show entities to the user (ie. be double escaped)
4865 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4867 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4869 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4870 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4871 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4872 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4873 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4876 <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>
4879 <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>
4882 <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>
4885 <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>
4888 <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>
4894 BUG 1219 URL next to image (broken)
4896 http://example.com[[Image:foobar.jpg]]
4898 <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>
4903 Bug 1186 news: in the middle of text
4905 http://en.wikinews.org/wiki/Wikinews:Workplace
4907 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4913 Namespaced link must have a title
4922 Namespaced link must have a title (bad fragment version)
4924 [[Project:#fragment]]
4926 <p>[[Project:#fragment]]
4932 div with no attributes
4934 <div>HTML rocks</div>
4936 <div>HTML rocks</div>
4941 div with double-quoted attribute
4943 <div id="rock">HTML rocks</div>
4945 <div id="rock">HTML rocks</div>
4950 div with single-quoted attribute
4952 <div id='rock'>HTML rocks</div>
4954 <div id="rock">HTML rocks</div>
4959 div with unquoted attribute
4961 <div id=rock>HTML rocks</div>
4963 <div id="rock">HTML rocks</div>
4968 div with illegal double attributes
4970 <div align="center" align="right">HTML rocks</div>
4972 <div align="right">HTML rocks</div>
4977 HTML multiple attributes correction
4979 <p class="error" class="awesome">Awesome!</p>
4981 <p class="awesome">Awesome!</p>
4986 Table multiple attributes correction
4989 !+ class="error" class="awesome"| status
4994 <th class="awesome">status
5004 <DIV ALIGN="center">HTML ROCKS</DIV>
5006 <div align="center">HTML ROCKS</div>
5012 text with amp in the middle of nowhere
5016 <p>Remember AT&T?
5021 text with character entity: eacute
5023 I always thought é was a cute letter.
5025 <p>I always thought é was a cute letter.
5030 text with undefined character entity: xacute
5032 I always thought &xacute; was a cute letter.
5034 <p>I always thought &xacute; was a cute letter.
5046 [[Media:Foobar.jpg]]
5048 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
5053 Media link with text
5055 [[Media:Foobar.jpg|A neat file to look at]]
5057 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
5061 # FIXME: this is still bad HTML tag nesting
5063 Media link with nasty text
5064 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
5066 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
5068 <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>
5073 Media link to nonexistent file (bug 1702)
5075 [[Media:No such.jpg]]
5077 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
5082 Image link to nonexistent file (bug 1850 - good)
5084 [[Image:No such.jpg]]
5086 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
5091 :Image link to nonexistent file (bug 1850 - bad)
5093 [[:Image:No such.jpg]]
5095 <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>
5102 Character reference normalization in link text (bug 1938)
5104 [[Main Page|this&that]]
5106 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
5113 Test for unicode normalization
5115 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
5119 (bug 19451) Links should refer to the normalized form.
5127 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5128 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5129 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5130 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5131 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5136 Empty attribute crash test (bug 2067)
5138 <font color="">foo</font>
5140 <p><font color="">foo</font>
5145 Empty attribute crash test single-quotes (bug 2067)
5147 <font color=''>foo</font>
5149 <p><font color="">foo</font>
5154 Attribute test: equals, then nothing
5156 <font color=>foo</font>
5163 Attribute test: unquoted value
5165 <font color=x>foo</font>
5167 <p><font color="x">foo</font>
5172 Attribute test: unquoted but illegal value (hash)
5174 <font color=#x>foo</font>
5176 <p><font color="#x">foo</font>
5181 Attribute test: no value
5183 <font color>foo</font>
5185 <p><font color="color">foo</font>
5190 Bug 2095: link with three closing brackets
5194 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
5199 Bug 2095: link with pipe and three closing brackets
5203 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
5208 Bug 2095: link with pipe and three closing brackets, version 2
5210 [[Main Page|[http://example.com/]]]
5212 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
5222 Template:Dangerous attribute
5224 " onmouseover="alert(document.cookie)
5228 Template:Dangerous style attribute
5230 border-size: expression(alert(document.cookie))
5236 <div style="float: right; {{{1}}}">Magic div</div>
5240 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
5242 <div title="{{test}}"></div>
5244 <div title="This is a test template"></div>
5249 Bug 2304: HTML attribute safety (dangerous template; 2309)
5251 <div title="{{dangerous attribute}}"></div>
5253 <div title=""></div>
5258 Bug 2304: HTML attribute safety (dangerous style template; 2309)
5260 <div style="{{dangerous style attribute}}"></div>
5262 <div style="/* insecure input */"></div>
5267 Bug 2304: HTML attribute safety (safe parameter; 2309)
5269 {{div style|width: 200px}}
5271 <div style="float: right; width: 200px">Magic div</div>
5276 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
5278 {{div style|width: expression(alert(document.cookie))}}
5280 <div style="/* insecure input */">Magic div</div>
5285 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
5287 {{div style|"><script>alert(document.cookie)</script>}}
5289 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5294 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5296 {{div style|" ><script>alert(document.cookie)</script>}}
5298 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5303 Bug 2304: HTML attribute safety (link)
5305 <div title="[[Main Page]]"></div>
5307 <div title="[[Main Page]]"></div>
5312 Bug 2304: HTML attribute safety (italics)
5314 <div title="''foobar''"></div>
5316 <div title="''foobar''"></div>
5321 Bug 2304: HTML attribute safety (bold)
5323 <div title="'''foobar'''"></div>
5325 <div title="'''foobar'''"></div>
5331 Bug 2304: HTML attribute safety (ISBN)
5333 <div title="ISBN 1234567890"></div>
5335 <div title="ISBN 1234567890"></div>
5340 Bug 2304: HTML attribute safety (RFC)
5342 <div title="RFC 1234"></div>
5344 <div title="RFC 1234"></div>
5349 Bug 2304: HTML attribute safety (PMID)
5351 <div title="PMID 1234567890"></div>
5353 <div title="PMID 1234567890"></div>
5358 Bug 2304: HTML attribute safety (web link)
5360 <div title="http://example.com/"></div>
5362 <div title="http://example.com/"></div>
5367 Bug 2304: HTML attribute safety (named web link)
5369 <div title="[http://example.com/ link]"></div>
5371 <div title="[http://example.com/ link]"></div>
5376 Bug 3244: HTML attribute safety (extension; safe)
5378 <div style="<nowiki>background:blue</nowiki>"></div>
5380 <div style="background:blue"></div>
5385 Bug 3244: HTML attribute safety (extension; unsafe)
5387 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
5389 <div style="/* insecure input */"></div>
5393 # More MSIE fun discovered by Tom Gilder
5396 MSIE CSS safety test: spurious slash
5398 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
5400 <div style="/* insecure input */">evil</div>
5405 MSIE CSS safety test: hex code
5407 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
5409 <div style="/* insecure input */">evil</div>
5414 MSIE CSS safety test: comment in url
5416 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
5418 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
5423 MSIE CSS safety test: comment in expression
5425 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
5427 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5433 Table attribute legitimate extension
5436 !+ style="<nowiki>color:blue</nowiki>"| status
5441 <th style="color:blue">status
5449 Table attribute safety
5452 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5457 <th style="/* insecure input */">status
5465 CSS line continuation 1
5467 <div style="background-image: u\ rl(test.jpg);"></div>
5469 <div style="/* insecure input */"></div>
5474 CSS line continuation 2
5476 <div style="background-image: u\ rl(test.jpg); "></div>
5478 <div style="/* insecure input */"></div>
5489 Expansion of multi-line templates in attribute values (bug 6255)
5491 <div style="background: {{identity|#00FF00}}">-</div>
5493 <div style="background: #00FF00">-</div>
5499 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5501 <div style="background:
5504 <div style="background: #00FF00">-</div>
5509 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5511 <div style="background: #00FF00">-</div>
5513 <div style="background: #00FF00">-</div>
5518 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5521 Parser hook: empty input
5534 Parser hook: empty input using terminated empty elements
5547 Parser hook: empty input using terminated empty elements (space before)
5560 Parser hook: basic input
5574 Parser hook: case insensitive
5588 Parser hook: case insensitive, redux
5601 Parser hook: nested tags
5605 <tag><tag></tag></tag>
5616 Parser hook: basic arguments
5618 <tag width=200 height = "100" depth = '50' square></tag>
5637 Parser hook: argument containing a forward slash (bug 5344)
5639 <tag filename='/tmp/bla'></tag>
5645 string(8) "/tmp/bla"
5652 Parser hook: empty input using terminated empty elements (bug 2374)
5666 # </tag> should be output literally since there is no matching tag that begins it
5668 Parser hook: basic arguments using terminated empty elements (bug 2374)
5670 <tag width=200 height = "100" depth = '50' square/>
5693 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5697 Parser hook: static parser hook not inside a comment
5699 <statictag>hello, world</statictag>
5700 <statictag action=flush/>
5708 Parser hook: static parser hook inside a comment
5710 <!-- <statictag>hello, world</statictag> -->
5711 <statictag action=flush/>
5717 # Nested template calls; this case was broken by Parser.php rev 1.506,
5721 Template:One-parameter
5723 (My parameter is: {{{1}}})
5727 Template:Map-one-parameter
5733 Nested template calls
5735 {{Map-one-parameter|One-parameter|param}}
5737 <p>(My parameter is: param)
5746 Sanitizer: Closing of open tags
5748 <s></s><table></table>
5750 <s></s><table></table>
5755 Sanitizer: Closing of open but not closed tags
5764 Sanitizer: Closing of closed but not open tags
5773 Sanitizer: Closing of closed but not open table tags
5775 Table not started</td></tr></table>
5777 <p>Table not started</td></tr></table>
5782 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5784 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5786 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5791 Sanitizer: Validating the contents of the id attribute (bug 4515)
5797 Something, but definitely not <br id="9" />...
5801 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5805 <br id="foo" /><br id="foo" />
5807 Something need to be done. foo-2 ?
5811 Language converter: output gets cut off unexpectedly (bug 5757)
5815 this bit is safe: }-
5817 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5819 then we get cut off here: }-
5821 all additional text is vanished
5823 <p>this bit is safe: }-
5824 </p><p>but if we add a conversion instance: xxx
5825 </p><p>then we get cut off here: }-
5826 </p><p>all additional text is vanished
5831 Self closed html pairs (bug 5487)
5834 <center><font id="bug" />Centered text</center>
5835 <div><font id="bug2" />In div text</div>
5837 <center><font id="bug" />Centered text</center>
5838 <div><font id="bug2" />In div text</div>
5847 Punctuation: nbsp before exclamation
5851 <p>C'est grave !
5856 Punctuation: CSS !important (bug 11874)
5858 <div style="width:50% !important">important</div>
5860 <div style="width:50% !important">important</div>
5865 Punctuation: CSS ! important (bug 11874; with space after)
5867 <div style="width:50% ! important">important</div>
5869 <div style="width:50% ! important">important</div>
5875 HTML bullet list, closed tags (bug 5497)
5890 HTML bullet list, unclosed tags (bug 5497)
5907 HTML ordered list, closed tags (bug 5497)
5922 HTML ordered list, unclosed tags (bug 5497)
5939 HTML nested bullet list, closed tags (bug 5497)
5964 HTML nested bullet list, open tags (bug 5497)
5989 HTML nested ordered list, closed tags (bug 5497)
6014 HTML nested ordered list, open tags (bug 5497)
6039 HTML ordered list item with parameters oddity
6041 <ol><li id="fragment">One</li></ol>
6043 <ol><li id="fragment">One</li></ol>
6048 bug 5918: autonumbering
6050 [http://first/] [http://second] [ftp://ftp]
6054 [mailto:enclosed@mail.tld With target]
6056 [mailto:enclosed@mail.tld]
6058 mailto:inline@mail.tld
6060 <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>
6061 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
6062 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
6063 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
6064 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
6070 # Security and HTML correctness
6071 # From Nick Jenkins' fuzz testing
6075 Fuzz testing: Parser13
6089 Fuzz testing: Parser14
6094 <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>
6095 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6097 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
6104 Fuzz testing: Parser14-table
6110 <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>
6111 <table style="__TOC__">
6120 # Known to produce bogus xml (extra </td>)
6122 Fuzz testing: Parser16
6142 Fuzz testing: Parser21
6145 ! irc://{{ftp://a" onmouseover="alert('hello world');"
6150 <th><a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
6159 Fuzz testing: Parser22
6161 http://===r:::https://b
6166 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
6171 # Known to produce bad XML for now
6173 # Note: the current result listed for this is not what the original one was,
6174 # but the original bug was JavaScript injection, which is fixed in any case.
6175 # It's not clear that the original result listed was any more correct than the
6176 # current one. Original result:
6179 # <u class="|">}}}} >
6180 # <br style="onmouseover='alert(document.cookie);'" />
6182 # MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6188 # Known to produce bad XML for now
6190 Fuzz testing: Parser24
6197 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
6198 <br style="onmouseover='alert(document.cookie);' " />
6200 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6204 <u class="|">}}}} >
6205 <br style="onmouseover='alert(document.cookie);'" />
6206 </p><p>MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6217 # Note: the current result listed for this is not what the original one was,
6218 # but the original bug was JavaScript injection, which is fixed in any case.
6219 # It's not clear that the original result listed was any more correct than the
6220 # current one. Original result:
6223 # <li class="||">
6224 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6226 Fuzz testing: Parser25 (bug 6055)
6232 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
6234 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6239 Fuzz testing: URL adjacent extension (with space, clean)
6242 http://example.com <nowiki>junk</nowiki>
6244 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
6249 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
6252 http://example.com<nowiki>junk</nowiki>
6254 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
6259 Fuzz testing: URL adjacent extension (no space, dirty; pre)
6262 http://example.com<pre>junk</pre>
6264 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
6269 Fuzz testing: image with bogus manual thumbnail
6271 [[Image:foobar.jpg|thumbnail= ]]
6273 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
6278 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
6280 <pre dir=" "></pre>
6282 <pre dir=" "></pre>
6287 Parsing optional HTML elements (Bug 6171)
6292 <td> Some tabular data</td>
6293 <td> More tabular data ...
6294 <td> And yet som tabular data</td>
6300 <td> Some tabular data</td>
6301 <td> More tabular data ...
6302 </td><td> And yet som tabular data</td>
6309 Correct handling of <td>, <tr> (Bug 6171)
6314 <td> Some tabular data</td>
6315 <td> More tabular data ...</td>
6316 <td> And yet som tabular data</td>
6322 <td> Some tabular data</td>
6323 <td> More tabular data ...</td>
6324 <td> And yet som tabular data</td>
6332 Parsing crashing regression (fr:JavaScript)
6336 <p></body></x>
6341 Inline wiki vs wiki block nesting
6347 <p><b>Bold paragraph</b>
6348 </p><p>New wiki paragraph
6353 Inline HTML vs wiki block nesting
6361 <p><b>Bold paragraph</b>
6362 </p><p>New wiki paragraph
6366 # Original result was this:
6367 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6369 # While that might be marginally more intuitive, maybe, the six-apostrophe
6370 # construct is clearly pathological and the result stated here (which is what
6371 # the parser actually does) is about as reasonable as anything.
6373 Mixing markup for italics and bold
6376 '''bold''''''bold''bolditalics'''''
6378 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
6386 Article for special page transclusion test
6390 Special page transclusion
6393 {{Special:Prefixindex/Xyzzyx}}
6397 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6402 Special page transclusion twice (bug 5021)
6405 {{Special:Prefixindex/Xyzzyx}}
6406 {{Special:Prefixindex/Xyzzyx}}
6410 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6413 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6418 Transclusion of default MediaWiki message
6420 {{MediaWiki:Mainpage}}
6427 Transclusion of nonexistent MediaWiki message
6429 {{MediaWiki:Mainpagexxx}}
6431 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6436 Transclusion of MediaWiki message with underscore
6438 {{MediaWiki:history_short}}
6445 Transclusion of MediaWiki message with space
6447 {{MediaWiki:history short}}
6454 Invalid header with following text
6464 Section extraction test (section 0)
6484 Section extraction test (section 1)
6506 Section extraction test (section 2)
6527 Section extraction test (section 3)
6547 Section extraction test (section 4)
6571 Section extraction test (section 5)
6591 Section extraction test (section 6)
6612 Section extraction test (section 7)
6632 Section extraction test (section 8)
6652 Section extraction test (section 9)
6673 Section extraction test (section 10)
6693 Section extraction test (nonexistent section 11)
6712 Section extraction test with bogus heading (section 1)
6717 ==bogus== not a legal section
6721 ==bogus== not a legal section
6725 Section extraction test with bogus heading (section 2)
6730 ==bogus== not a legal section
6737 Section extraction test with comment after heading (section 1)
6749 Section extraction test with comment after heading (section 2)
6761 Section extraction test with bogus <nowiki> heading (section 1)
6766 ==bogus== <nowiki>not a legal section</nowiki>
6770 ==bogus== <nowiki>not a legal section</nowiki>
6774 Section extraction test with bogus <nowiki> heading (section 2)
6779 ==bogus== <nowiki>not a legal section</nowiki>
6786 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6787 # instead of respecting commented sections
6789 Section extraction prefixed by comment (section 1)
6800 Section extraction prefixed by comment (section 2)
6811 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6812 # instead of respecting HTML-style headings
6814 Section extraction, mixed wiki and html (section 1)
6830 Section extraction, mixed wiki and html (section 2)
6846 # Formerly testing for bug 3342
6848 Section extraction, heading surrounded by <noinclude>
6852 <noinclude>==unmarked==</noinclude>
6858 # Test behaviour of bug 19910
6860 Sectiion with all-equals
6865 The line above must have a trailing space
6868 But just in case it doesn't...
6872 But just in case it doesn't...
6876 Section replacement test (section 0)
6907 Section replacement test (section 1)
6936 Section replacement test (section 2)
6966 Section replacement test (section 3)
6997 Section replacement test (section 4)
7024 Section replacement test (section 5)
7055 Section replacement test (section 6)
7085 Section replacement test (section 7)
7116 Section replacement test (section 8)
7147 Section replacement test (section 9)
7176 Section replacement test (section 10)
7206 Section replacement test with initial whitespace (bug 13728)
7210 Preformatted initial line
7214 Preformatted initial line
7221 Section extraction, heading followed by pre with 20 spaces (bug 6398)
7233 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
7246 Section extraction, <pre> around bogus header (bug 10309)
7263 Section replacement, <pre> around bogus header (bug 10309)
7265 noxml replace=2,"xxx"
7286 Handling of 
 in URLs
7290 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
7297 5 quotes, code coverage +1 line
7304 Special:Search page linking.
7308 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
7323 * {{SUBJECTPAGENAME}}
7324 * {{SUBJECTPAGENAMEE}}
7331 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7333 <ul><li> Parser test
7334 </li><li> Parser test
7335 </li><li> Parser test
7336 </li><li> Parser_test
7337 </li><li> Parser test
7338 </li><li> Parser_test
7339 </li><li> Talk:Parser test
7340 </li><li> Talk:Parser_test
7341 </li><li> Parser test
7342 </li><li> Parser_test
7349 </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>
7353 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
7363 image4 |300px| centre
7364 image5.svg| http://///////
7369 <ul class="gallery">
7370 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7371 <div style="height: 150px;">Image1.png</div>
7372 <div class="gallerytext">
7375 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7376 <div style="height: 150px;">Image2.gif</div>
7377 <div class="gallerytext">
7382 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7383 <div style="height: 150px;">Image3</div>
7384 <div class="gallerytext">
7387 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7388 <div style="height: 150px;">Image4</div>
7389 <div class="gallerytext">
7394 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7395 <div style="height: 150px;">Image5.svg</div>
7396 <div class="gallerytext">
7397 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
7401 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7402 <div style="height: 150px;">* image6</div>
7403 <div class="gallerytext">
7411 Gallery (with options)
7413 <gallery widths='60px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
7414 File:Nonexistant.jpg|caption
7415 File:Nonexistant.jpg
7416 image:foobar.jpg|some '''caption''' [[Main Page]]
7418 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
7421 <ul class="gallery" style="max-width: 206px;_width: 206px;">
7422 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
7423 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7424 <div style="height: 70px;">Nonexistant.jpg</div>
7425 <div class="gallerytext">
7430 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7431 <div style="height: 70px;">Nonexistant.jpg</div>
7432 <div class="gallerytext">
7435 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7436 <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>
7437 <div class="gallerytext">
7438 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7442 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7443 <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>
7444 <div class="gallerytext">
7447 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7448 <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>
7449 <div class="gallerytext">
7459 Gallery with wikitext inside caption
7462 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
7463 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
7466 <ul class="gallery">
7467 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7468 <div class="thumb" style="width: 150px;"><div style="margin:68px 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>
7469 <div class="gallerytext">
7470 <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>
7474 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7475 <div class="thumb" style="width: 150px;"><div style="margin:68px 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>
7476 <div class="gallerytext">
7477 <p>This is a test template
7486 gallery (with showfilename option)
7488 <gallery showfilename>
7489 File:Nonexistant.jpg|caption
7490 File:Nonexistant.jpg
7491 image:foobar.jpg|some '''caption''' [[Main Page]]
7495 <ul class="gallery">
7496 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7497 <div style="height: 150px;">Nonexistant.jpg</div>
7498 <div class="gallerytext">
7499 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7504 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7505 <div style="height: 150px;">Nonexistant.jpg</div>
7506 <div class="gallerytext">
7507 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7511 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7512 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7513 <div class="gallerytext">
7514 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7515 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7519 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7520 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7521 <div class="gallerytext">
7522 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7531 Gallery (with namespace-less filenames)
7534 File:Nonexistant.jpg
7540 <ul class="gallery">
7541 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7542 <div style="height: 150px;">Nonexistant.jpg</div>
7543 <div class="gallerytext">
7546 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7547 <div style="height: 150px;">Nonexistant.jpg</div>
7548 <div class="gallerytext">
7551 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7552 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7553 <div class="gallerytext">
7556 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7557 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7558 <div class="gallerytext">
7566 HTML Hex character encoding (spells the word "JavaScript")
7568 JavaScript
7570 <p>JavaScript
7575 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7579 <p>&#xsee;&#XSEE;
7584 HTML Hex character encoding mixed case
7593 __FORCETOC__ override
7605 ISBN 978-0-1234-56 789
7607 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7612 ISBN followed by 5 spaces
7623 ISBN ISBN 1234567890
7625 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7630 Bug 22905: <abbr> followed by ISBN followed by </a>
7632 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7634 <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>
7643 <p>RFC <a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc1234">RFC 1234</a>
7648 Double RFC with a wiki link
7652 <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>
7661 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc983">RFC 983</a> 987
7666 Centre-aligned image
7668 [[Image:foobar.jpg|centre]]
7670 <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>
7677 [[Image:foobar.jpg|none]]
7679 <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>
7684 Width + Height sized image (using px) (height is ignored)
7686 [[Image:foobar.jpg|640x480px]]
7688 <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>
7693 Width-sized image (using px, no following whitespace)
7695 [[Image:foobar.jpg|640px]]
7697 <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>
7702 Width-sized image (using px, with following whitespace - test regression from r39467)
7704 [[Image:foobar.jpg|640px ]]
7706 <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>
7711 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7713 [[Image:foobar.jpg| 640px]]
7715 <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>
7720 Another italics / bold test
7728 # Note the results may be incorrect, as parserTest output included this:
7729 # XML error: Mismatched tag at byte 6120:
7730 # ...<dd> </dt></dl> </dd...
7738 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7749 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7751 Images with the "|" character in the comment
7753 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7755 <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>
7760 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7762 <html><script>alert(1);</script></html>
7764 <p><html><script>alert(1);</script></html>
7769 HTML with raw HTML ($wgRawHtml==true)
7773 <html><script>alert(1);</script></html>
7775 <p><script>alert(1);</script>
7780 Parents of subpages, one level up
7782 subpage title=[[Subpage test/L1/L2/L3]]
7786 <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>
7792 Parents of subpages, one level up, not named
7794 subpage title=[[Subpage test/L1/L2/L3]]
7798 <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>
7805 Parents of subpages, two levels up
7807 subpage title=[[Subpage test/L1/L2/L3]]
7813 <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
7814 </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>
7819 Parents of subpages, two levels up, without trailing slash or name.
7821 subpage title=[[Subpage test/L1/L2/L3]]
7830 Parents of subpages, two levels up, with lots of extra trailing slashes.
7832 subpage title=[[Subpage test/L1/L2/L3]]
7836 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7841 Definition list code coverage
7847 <dl><dt> title  </dt><dd> def
7848 </dd><dt> title </dt><dd> def
7849 </dd><dt>title</dt><dd> def
7855 Don't fall for the self-closing div
7857 <div>hello world</div/>
7859 <div>hello world</div>
7868 <p>[[:Template:Msg]]
7877 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7881 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7883 Always escape literal '>' in output, not just after '<'
7897 <p>This is a test template
7898 This is a test template
7910 Inclusion of !userCanEdit() content
7914 <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>
7920 Out-of-order TOC heading levels
7929 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7931 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7933 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7934 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7937 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7939 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7940 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7945 <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>
7946 <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>
7947 <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>
7948 <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>
7949 <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>
7950 <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>
7956 ISBN with a dummy number
7966 ISBN with space-delimited number
7970 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7976 ISBN with multiple spaces, no number
7995 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7996 </p><p>ISBN 12345678901
8002 ISBN with trailing year (bug 8110)
8004 ISBN 1-234-56789-0 - 2006
8006 ISBN 1 234 56789 0 - 2006
8008 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
8009 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
8017 {{anchorencode:foo bar©#%n}}
8019 <p>foo_bar.C2.A9.23.25n
8024 anchorencode trims spaces
8026 {{anchorencode: __pretty__please__}}
8033 anchorencode deals with links
8035 {{anchorencode: [[hello|world]] [[hi]]}}
8042 anchorencode deals with templates
8044 {{anchorencode: {{Foo}} }}
8051 anchorencode encodes like the TOC generator: (bug 18431)
8053 === _ +:.3A%3A&&]] ===
8054 {{anchorencode: _ +:.3A%3A&&]] }}
8057 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
8058 <p>.2B:.3A.253A.26.26.5D.5D
8062 # Expected output in the following test is not necessarily expected (there
8063 # should probably be <p> tags inside the <blockquote> in the output) -- it's
8064 # only testing for well-formedness.
8066 Bug 6200: blockquotes and paragraph formatting
8086 Bug 8293: Use of center tag ruins paragraph formatting
8108 ### Language variants related tests
8111 Self-link in language variants
8113 title=[[Dunav]] language=sr
8115 Both [[Dunav]] and [[Дунав]] are names for this river.
8117 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
8123 Link to pages in language variants
8127 Main Page can be written as [[Маин Паге]]
8129 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
8135 Multiple links to pages in language variants
8139 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
8141 <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>.
8147 Simple template in language variants
8153 <p>This is a test template
8159 Template with explicit namespace in language variants
8165 <p>This is a test template
8171 Basic test for template parameter in language variants
8175 {{парамтест|param=foo}}
8177 <p>This is a test template with parameter foo
8183 Simple category in language variants
8187 [[Category:МедиаWики Усер'с Гуиде]]
8189 <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>
8194 Stripping -{}- tags (language variants)
8198 Latin proverb: -{Ne nuntium necare}-
8200 <p>Latin proverb: Ne nuntium necare
8206 Prevent conversion with -{}- tags (language variants)
8208 language=sr variant=sr-ec
8210 Latinski: -{Ne nuntium necare}-
8212 <p>Латински: Ne nuntium necare
8218 Prevent conversion of text with -{}- tags (language variants)
8220 language=sr variant=sr-ec
8222 Latinski: -{Ne nuntium necare}-
8224 <p>Латински: Ne nuntium necare
8230 Prevent conversion of links with -{}- tags (language variants)
8232 language=sr variant=sr-ec
8236 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8242 -{}- tags within headlines (within html for parserConvert())
8244 language=sr variant=sr-ec
8248 <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>
8254 Explicit definition of language variant alternatives
8256 language=zh variant=zh-tw
8258 -{zh:China;zh-tw:Taiwan}-, not China
8260 <p>Taiwan, not China
8266 Explicit session-wise language variant mapping (A flag and - flag)
8268 language=zh variant=zh-tw
8270 Taiwan is not China.
8271 But -{A|zh:China;zh-tw:Taiwan}- is China,
8272 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
8273 and -{China}- is China.
8275 <p>Taiwan is not China.
8276 But Taiwan is Taiwan,
8277 (This should be stripped!)
8283 Explicit session-wise language variant mapping (H flag for hide)
8285 language=zh variant=zh-tw
8287 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
8290 <p>(This should be stripped!)
8296 Adding explicit conversion rule for title (T flag)
8298 language=zh variant=zh-tw showtitle
8300 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8303 <p>Should be stripped!
8308 Testing that changing the language variant here in the tests actually works
8310 language=zh variant=zh showtitle
8312 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8315 <p>Should be stripped!
8320 Bug 24072: more test on conversion rule for title
8322 language=zh variant=zh-tw showtitle
8324 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8325 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8328 <p>This should be stripped!
8329 This won't take interferes with the title rule.
8334 Raw output of variant escape tags (R flag)
8336 language=zh variant=zh-tw
8338 Raw: -{R|zh:China;zh-tw:Taiwan}-
8340 <p>Raw: zh:China;zh-tw:Taiwan
8345 Nested using of manual convert syntax
8347 language=zh variant=zh-hk
8349 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8351 <p>Nested: Hello Hong Kong!
8356 Do not convert roman numbers to language variants
8358 language=sr variant=sr-ec
8362 <p>Фридрих IV је цар.
8367 Unclosed language converter markup "-{"
8378 Don't convert raw rule "-{R|=>}-" to "=>"
8395 Bug 529: Uncovered bullet
8406 Bug 529: Uncovered table already at line-start
8434 Bug 529: Uncovered bullet in parser function result
8436 * Foo {{lc:{{bullet}} }}
8445 Bug 5678: Double-parsed template argument
8447 {{lc:{{{1}}}|hello}}
8454 Bug 5678: Double-parsed template invocation
8456 {{lc:{{paramtest {{!}} param = hello }} }}
8458 <p>{{paramtest | param = hello }}
8463 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8489 Morwen/13: Unclosed link followed by heading
8496 <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>
8501 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8508 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8513 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8520 <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>
8535 Paragraphs inside divs (no extra line breaks)
8547 Paragraphs inside divs (extra line break on open)
8562 Paragraphs inside divs (extra line break on close)
8577 Paragraphs inside divs (extra line break on open and close)
8594 Nesting tags, paragraphs on lines which begin with <div>
8598 <div></div><strong>A
8607 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8609 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8613 <blockquote>Line one
8615 Line two</blockquote>
8617 <blockquote>Line one
8618 Line two</blockquote>
8623 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8630 Line two</blockquote>
8635 Line two</blockquote>
8640 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8644 <blockquote>Line one
8649 <blockquote>Line one
8657 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8676 Paragraphs inside blockquotes/divs (no extra line breaks)
8678 <blockquote><div>Line one
8680 Line two</div></blockquote>
8682 <blockquote><div>Line one
8683 Line two</div></blockquote>
8688 Paragraphs inside blockquotes/divs (extra line break on open)
8693 Line two</div></blockquote>
8698 Line two</div></blockquote>
8703 Paragraphs inside blockquotes/divs (extra line break on close)
8705 <blockquote><div>Line one
8710 <blockquote><div>Line one
8718 Paragraphs inside blockquotes/divs (extra line break on open and close)
8735 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8737 wgLinkHolderBatchSize=0
8743 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
8744 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
8745 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
8750 Free external link invading image caption
8752 [[Image:Foobar.jpg|thumb|http://x|hello]]
8754 <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>
8759 Bug 15196: localised external link numbers
8763 [http://en.wikipedia.org/]
8765 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8770 Multibyte character in padleft
8772 {{padleft:-Hello|7|Æ}}
8779 Multibyte character in padright
8781 {{padright:Hello-|7|Æ}}
8794 <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>
8799 formatdate parser function
8801 {{#formatdate:2009-03-24}}
8803 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8808 formatdate parser function, with default format
8810 {{#formatdate:2009-03-24|mdy}}
8812 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8817 Linked date with autoformatting disabled
8819 wgUseDynamicDates=false
8823 <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>
8828 Spacing of numbers in formatted dates
8830 {{#formatdate:January 15}}
8832 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8837 Spacing of numbers in formatted dates (linked)
8839 wgUseDynamicDates=true
8843 <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>
8856 Edit comment with link
8860 I like the [[Main Page]] a lot
8862 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
8866 Edit comment with link and link text
8870 I like the [[Main Page|best pages]] a lot
8872 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8876 Edit comment with link and link text with suffix
8880 I like the [[Main Page|best page]]s a lot
8882 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8886 Edit comment with section link (non-local, eg in history list)
8888 comment title=[[Main Page]]
8890 /* External links */ removed bogus entries
8892 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
8896 Edit comment with section link (local, eg in diff view)
8898 comment local title=[[Main Page]]
8900 /* External links */ removed bogus entries
8902 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
8906 Edit comment with subpage link (bug 14080)
8910 title=[[Subpage test]]
8912 Poked at a [[/subpage]] here...
8914 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8918 Edit comment with subpage link and link text (bug 14080)
8922 title=[[Subpage test]]
8924 Poked at a [[/subpage|neat little page]] here...
8926 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8930 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8933 title=[[Subpage test]]
8935 Poked at a [[/subpage]] here...
8937 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8941 Edit comment with bare anchor link (local, as on diff)
8949 <a href="#section">#section</a>
8953 Edit comment with bare anchor link (non-local, as on history)
8960 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8964 Anchor starting with underscore
8968 <p><a href="#_ref">One</a>
8973 Id starting with underscore
8975 <div id="_ref"></div>
8977 <div id="_ref"></div>
8982 Space normalisation on autocomment (bug 22784)
8987 /* __hello__world__ */
8989 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
8993 percent-encoding and + signs in comments (Bug 26410)
8997 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8999 <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>
9003 Bad images - basic functionality
9010 Bad images - bug 16039: text after bad image disappears
9022 Verify that displaytitle works (bug #22501) no displaytitle
9026 wgAllowDisplayTitle=true
9027 wgRestrictDisplayTitle=false
9029 this is not the the title
9032 <p>this is not the the title
9037 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
9042 wgAllowDisplayTitle=true
9043 wgRestrictDisplayTitle=false
9045 this is not the the title
9046 {{DISPLAYTITLE:whatever}}
9049 <p>this is not the the title
9054 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
9059 wgAllowDisplayTitle=true
9060 wgRestrictDisplayTitle=true
9062 this is not the the title
9063 {{DISPLAYTITLE:whatever}}
9066 <p>this is not the the title
9071 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
9076 wgAllowDisplayTitle=true
9077 wgRestrictDisplayTitle=true
9079 this is not the the title
9080 {{DISPLAYTITLE:screen}}
9083 <p>this is not the the title
9088 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
9093 wgAllowDisplayTitle=false
9095 this is not the the title
9096 {{DISPLAYTITLE:screen}}
9099 <p>this is not the the title
9100 <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>
9105 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
9110 wgAllowDisplayTitle=false
9112 this is not the the title
9115 <p>this is not the the title
9120 preload: check <noinclude> and <includeonly>
9124 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
9130 preload: check <onlyinclude>
9134 Goodbye <onlyinclude>Hello world</onlyinclude>
9140 preload: can pass tags through if we want to
9144 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
9146 <includeonly>Hello world</includeonly>
9150 preload: check that it doesn't try to do tricks
9154 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9156 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9160 Play a bit with r67090 and bug 3158
9164 <div style="width:50% !important"> </div>
9165 <div style="width:50% !important"> </div>
9166 <div style="width:50% !important"> </div>
9167 <div style="border : solid;"> </div>
9169 <div style="width:50% !important"> </div>
9170 <div style="width:50% !important"> </div>
9171 <div style="width:50% !important"> </div>
9172 <div style="border : solid;"> </div>
9177 HTML5 data attributes
9179 <span data-foo="bar">Baz</span>
9180 <p data-abc-def_hij="">Quuz</p>
9182 <p><span data-foo="bar">Baz</span>
9184 <p data-abc-def_hij="">Quuz</p>
9189 percent-encoding and + signs in internal links (Bug 26410)
9191 [[User:+%]] [[Page+title%]]
9192 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
9193 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
9194 [[%33%45]] [[%33%45+]]
9196 <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>
9197 <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>
9198 <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>
9199 <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>
9204 Special characters in embedded file links (bug 27679)
9206 [[File:Contains & ampersand.jpg]]
9207 [[File:Does not exist.jpg|Title with & ampersand]]
9209 <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>
9210 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
9216 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
9218 Text's been normalized?
9220 <p>Text's been normalized?
9231 Try for 100% code coverage