1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
75 This is a simple paragraph.
77 <p>This is a simple paragraph.
97 * plain''italic''plain
98 * plain''italic''plain''italic''plain
99 * plain'''bold'''plain
100 * plain'''bold'''plain'''bold'''plain
101 * plain''italic''plain'''bold'''plain
102 * plain'''bold'''plain''italic''plain
103 * plain''italic'''bold-italic'''italic''plain
104 * plain'''bold''bold-italic''bold'''plain
105 * plain'''''bold-italic'''italic''plain
106 * plain'''''bold-italic''bold'''plain
107 * plain''italic'''bold-italic'''''plain
108 * plain'''bold''bold-italic'''''plain
109 * plain l'''italic''plain
110 * plain l''''bold''' plain
113 </li><li> plain<i>italic</i>plain
114 </li><li> plain<i>italic</i>plain<i>italic</i>plain
115 </li><li> plain<b>bold</b>plain
116 </li><li> plain<b>bold</b>plain<b>bold</b>plain
117 </li><li> plain<i>italic</i>plain<b>bold</b>plain
118 </li><li> plain<b>bold</b>plain<i>italic</i>plain
119 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
120 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
121 </li><li> plain<i><b>bold-italic</b>italic</i>plain
122 </li><li> plain<b><i>bold-italic</i>bold</b>plain
123 </li><li> plain<i>italic<b>bold-italic</b></i>plain
124 </li><li> plain<b>bold<i>bold-italic</i></b>plain
125 </li><li> plain l'<i>italic</i>plain
126 </li><li> plain l'<b>bold</b> plain
132 ### <nowiki> test cases
136 <nowiki> unordered list
138 <nowiki>* This is not an unordered list item.</nowiki>
140 <p>* This is not an unordered list item.
147 <nowiki>Lorem ipsum dolor
168 :There is not nowiki.
169 :There is <nowiki>nowiki</nowiki>.
171 #There is not nowiki.
172 #There is <nowiki>nowiki</nowiki>.
174 *There is not nowiki.
175 *There is <nowiki>nowiki</nowiki>.
177 <dl><dd>There is not nowiki.
178 </dd><dd>There is nowiki.
180 <ol><li>There is not nowiki.
181 </li><li>There is nowiki.
183 <ul><li>There is not nowiki.
184 </li><li>There is nowiki.
196 <!-- comment 1 --> asdf
232 asdf<!-- comment 1 -->jkl
242 <!-- foo --> b <!-- bar -->
256 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
262 Comment semantics and delimiters
264 <!-- --><!----><!-----><!------>
270 Comment semantics and delimiters, redux
272 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
273 -- foo -- funky huh? ... -->
279 Comment semantics and delimiters: directors cut
281 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
282 everything starting with < followed by !-- until the first -- and > we see,
283 that wouldn't be valid XML however, since in XML -- has to terminate a comment
291 Comment semantics: nesting
293 <!--<!-- no, we're not going to do anything fancy here -->-->
300 Comment semantics: unclosed comment at end
302 <!--This comment will run out to the end of the document
308 Comment in template title
317 Comment on its own line post-expand
329 ### Preformatted text
338 And a [[Main Page|link]]
344 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
349 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
366 Regression with preformatted in <center>
379 # Expected output in the following test is not really expected (there should be
380 # <pre> in the output) -- it's only testing for well-formedness.
382 Bug 6200: Preformatted in <blockquote>
395 <pre> with attributes (bug 3202)
397 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
399 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
404 <pre> with width attribute (bug 3202)
406 <pre width="8">Narrow screen goodies</pre>
408 <pre width="8">Narrow screen goodies</pre>
413 <pre> with forbidden attribute (bug 3202)
415 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
417 <pre width="8">Narrow screen goodies</pre>
422 <pre> with forbidden attribute values (bug 3202)
424 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
426 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
431 <nowiki> inside <pre> (bug 13238)
439 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
447 <pre><nowiki>Foo</nowiki></pre>
452 <nowiki> and <pre> preference (first one wins)
491 <dl><dt> name </dt><dd> Definition
497 Definition list for indentation only
501 <dl><dd> Indented text
507 Definition list with no space
511 <dl><dt>name</dt><dd>Definition
517 Definition list with URL link
519 ; http://example.com/ : definition
521 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
527 Definition list with bracketed URL link
529 ;[http://www.example.com/ Example]:Something about it
531 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
537 Definition list with wikilink containing colon
539 ; [[Help:FAQ]]: The least-read page on Wikipedia
541 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
546 # At Brion's and JeLuF's insistence... :)
548 Definition list with news link containing colon
550 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
552 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
558 Malformed definition list with colon
560 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
562 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
568 Definition lists: colon in external link text
570 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
572 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
578 Definition lists: colon in HTML attribute
580 ;<b style="display: inline">bold</b>
582 <dl><dt><b style="display: inline">bold</b>
589 Definition lists: self-closed tag
591 ;one<br/>two : two-line fun
593 <dl><dt>one<br />two </dt><dd> two-line fun
599 Bug 11748: Literal closing tags
605 <dd>test test test test test</dd>
607 <dd>test test test test test</dd>
612 <dd>test test test test test</dd>
614 <dd>test test test test test</dd>
622 External links: non-bracketed
624 Non-bracketed: http://example.com
626 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
631 External links: numbered
633 Numbered: [http://example.com]
634 Numbered: [http://example.net]
635 Numbered: [http://example.com]
637 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
638 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
639 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
644 External links: specified text
646 Specified text: [http://example.com link]
648 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
653 External links: trail
655 Linktrails should not work for external links: [http://example.com link]s
657 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
662 External links: dollar sign in URL
664 http://example.com/1$2345
666 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
671 External links: dollar sign in URL (named)
673 [http://example.com/1$2345]
675 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
680 External links: open square bracket forbidden in URL (bug 4377)
682 http://example.com/1[2345
684 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
689 External links: open square bracket forbidden in URL (named) (bug 4377)
691 [http://example.com/1[2345]
693 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
698 External links: nowiki in URL link text (bug 6230)
700 [http://example.com/ <nowiki>''example site''</nowiki>]
702 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
707 External links: newline forbidden in text (bug 6230 regression check)
709 [http://example.com/ first
712 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
720 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
722 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
727 External image from https
729 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
731 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
736 Link to non-http image, no img tag
738 Link to non-http image, no img tag: ftp://example.com/test.jpg
740 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
745 External links: terminating separator
747 Terminating separator: http://example.com/thing,
749 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
754 External links: intervening separator
756 Intervening separator: http://example.com/1,2,3
758 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
763 External links: old bug with URL in query
765 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
767 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
772 External links: old URL-in-URL bug, mixed protocols
774 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
776 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
781 External links: URL in text
783 URL in text: [http://example.com http://example.com]
785 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
790 External links: Clickable images
792 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
794 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
799 External links: raw ampersand
801 Old & use: http://x&y
803 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
808 External links: encoded ampersand
810 Old & use: http://x&y
812 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
817 External links: encoded equals (bug 6102)
819 http://example.com/?foo=bar
821 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
826 External links: [raw ampersand]
828 Old & use: [http://x&y]
830 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
835 External links: [encoded ampersand]
837 Old & use: [http://x&y]
839 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
844 External links: [encoded equals] (bug 6102)
846 [http://example.com/?foo=bar]
848 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
853 External links: [IDN ignored character reference in hostname; strip it right off]
855 [http://e‌xample.com/]
857 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
862 External links: IDN ignored character reference in hostname; strip it right off
864 http://e‌xample.com/
866 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
871 External links: www.jpeg.org (bug 554)
875 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
880 External links: URL within URL (original bug 2)
882 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
884 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
889 BUG 361: URL inside bracketed URL
891 [http://www.example.com/foo http://www.example.com/bar]
893 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
898 BUG 361: URL within URL, not bracketed
900 http://www.example.com/foo?=http://www.example.com/bar
902 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
907 BUG 289: ">"-token in URL-tail
909 http://www.example.com/<hello>
911 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
916 BUG 289: literal ">"-token in URL-tail
918 http://www.example.com/<b>html</b>
920 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
925 BUG 289: ">"-token in bracketed URL
927 [http://www.example.com/<hello> stuff]
929 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
934 BUG 289: literal ">"-token in bracketed URL
936 [http://www.example.com/<b>html</b> stuff]
938 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
943 BUG 289: literal double quote at end of URL
945 http://www.example.com/"hello"
947 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
952 BUG 289: literal double quote in bracketed URL
954 [http://www.example.com/"hello" stuff]
956 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
961 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
963 [http://www.example.com test]
965 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
970 External links: wiki links within external link (Bug 3695)
972 [http://example.com [[wikilink]] embedded in ext link]
974 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
979 External links: links containing empty bracket pair []
981 [http://example.com?parameter[]=foo link]
983 <p><a rel="nofollow" class="external text" href="http://example.com?parameter%5B%5D=foo">link</a>
988 External links: links ending in empty bracket pair []
990 [http://example.com?parameter[]=foo&option[]]
992 <p><a rel="nofollow" class="external autonumber" href="http://example.com?parameter%5B%5D=foo&option%5B%5D">[1]</a>
997 External links: bare links ending in empty bracket pair []
999 http://example.com?parameter[]=foo&option[]
1001 <p><a rel="nofollow" class="external free" href="http://example.com?parameter%5B%5D=foo&option%5B%5D">http://example.com?parameter%5B%5D=foo&option%5B%5D</a>
1006 BUG 787: Links with one slash after the url protocol are invalid
1010 [http:/example.com title]
1012 <p>http:/example.com
1013 </p><p>[http:/example.com title]
1018 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1020 ''[http://example.com text'']
1021 [http://example.com '''text]'''
1022 ''Something [http://example.com in italic'']
1023 ''Something [http://example.com mixed''''', even bold]'''
1024 '''''Now [http://example.com both''''']
1026 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1027 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1028 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1029 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1030 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1036 Bug 4781: %26 in URL
1038 http://www.example.com/?title=AT%26T
1040 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1045 Bug 4781, 5267: %26 in URL
1047 http://www.example.com/?title=100%25_Bran
1049 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
1054 Bug 4781, 5267: %28, %29 in URL
1056 http://www.example.com/?title=Ben-Hur_%281959_film%29
1058 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
1064 Bug 4781: %26 in autonumber URL
1066 [http://www.example.com/?title=AT%26T]
1068 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1073 Bug 4781, 5267: %26 in autonumber URL
1075 [http://www.example.com/?title=100%25_Bran]
1077 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1082 Bug 4781, 5267: %28, %29 in autonumber URL
1084 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1086 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1092 Bug 4781: %26 in bracketed URL
1094 [http://www.example.com/?title=AT%26T link]
1096 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1101 Bug 4781, 5267: %26 in bracketed URL
1103 [http://www.example.com/?title=100%25_Bran link]
1105 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1110 Bug 4781, 5267: %28, %29 in bracketed URL
1112 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1114 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1119 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1121 Some [http://example.com/ pretty ''italics'' and stuff]!
1123 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1128 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1130 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1132 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1137 External link containing double-single-quotes with no space separating the url from text in italics
1139 [http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]
1141 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
1146 URL-encoding in URL functions (single parameter)
1148 {{localurl:Some page|amp=&}}
1150 <p>/index.php?title=Some_page&amp=&
1155 URL-encoding in URL functions (multiple parameters)
1157 {{localurl:Some page|q=?&=&}}
1159 <p>/index.php?title=Some_page&q=?&amp=&
1170 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1172 Normal text. '''''Bold italic text.''''' Normal text.
1174 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1175 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1181 Unclosed and unmatched quotes
1183 '''''Bold italic text '''with bold deactivated''' in between.'''''
1185 '''''Bold italic text ''with italic deactivated'' in between.'''''
1189 ..spanning two paragraphs (should not work).'''
1191 '''Bold tag left open
1193 ''Italic tag left open
1197 <!-- Unmatching number of opening, closing tags: -->
1198 '''This year''''s election ''should'' beat '''last year''''s.
1200 ''Tom'''s car is bigger than ''Susan'''s.
1202 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1203 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1204 </p><p><b>Bold text..</b>
1205 </p><p>..spanning two paragraphs (should not work).
1206 </p><p><b>Bold tag left open</b>
1207 </p><p><i>Italic tag left open</i>
1209 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1210 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1217 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1220 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1221 # is the bare minimun required by the spec, see:
1222 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1224 A table with no data.
1230 # A table with nothing but a caption is invalid XHTML, we might want to render
1231 # this as <p>caption</p>
1233 A table with nothing but a caption
1274 Table inside unclosed table w/o cells
1303 ! Number !! Another number
1336 Table with multiple captions: Only keep first
1352 Table with multiline caption
1368 Table with multiple thead
1371 ! Number !! Another number
1375 ! Some other number !! Another number
1397 <th>Some other number
1413 Table with thead & tfoot
1416 ! Number !! Another number
1420 ! Some other number !! Another number
1424 ! Total: 4 !! Total: 6
1444 <th>Some other number
1468 Table with list inside
1471 |style="width: 5em; text-align: center"| gives
1472 |style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em"|
1482 <td style="width: 5em; text-align: center">gives
1484 <td style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em">
1497 Table with broken up list inside
1500 |style="width: 5em; text-align: center"| gives
1501 |style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em"|
1512 <td style="width: 5em; text-align: center">gives
1514 <td style="border: 1px dashed #2F6FAB; padding: 0.5em; margin: 0.5em">
1529 Indented table wrapped in html tags (Related to Bug 26362)
1544 </table></dd></dl></div>
1549 Table with multiline contents
1572 Multiplication table
1574 {| border="1" cellpadding="2"
1575 |+Multiplication table
1577 ! × !! 1 !! 2 !! 3
1595 <table border="1" cellpadding="2">
1596 <caption>Multiplication table
1667 {| align=right border=1
1669 |rowspan=2| Cell 2, row 1 (and 2)
1676 <table align="right" border="1">
1680 <td rowspan="2">Cell 2, row 1 (and 2)
1701 {| bgcolor=#ABCDEF border=2
1706 |the original table again
1714 <table bgcolor="#ABCDEF" border="2">
1725 <td>the original table again
1733 Invalid attributes in table cell (bug 1830)
1749 Heading inside table (affected by r85922)
1760 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Heading">edit</a>]</span> <span class="mw-headline" id="Heading"> Heading </span></h3>
1768 A table with a caption with unclosed italic
1776 <caption><i>caption</i>
1787 A table with unclosed italic in a cell
1803 A table with unclosed italic in a th
1823 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1826 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1830 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a>
1832 <td>]" onmouseover="alert(document.cookie)">test
1840 Indented Tables, bug 20078
1866 Arbitrary whitespace should not be prepended
1910 Plain link, capitalized
1914 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1919 Plain link, uncapitalized
1923 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1930 [[Main Page|The Main Page]]
1932 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1941 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1946 Broken link with fragment
1948 [[Zigzagzogzagzig#zug]]
1950 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1955 Special page link with fragment
1957 [[Special:Version#anchor]]
1959 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1964 Nonexistent special page link with fragment
1966 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1968 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1975 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1977 <p>xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a>, xxx<a href="/wiki/Main_Page" title="Main Page">Main Page</a>, Xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a> XXX<a href="/wiki/Main_Page" title="Main Page">main Page</a>, XXX<a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1984 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1986 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>!!!
1991 Link with 3 brackets
2000 Piped link with 3 brackets
2002 [[[main page|the main page]]]
2004 <p>[[[main page|the main page]]]
2009 Link with multiple pipes
2011 [[Main Page|The|Main|Page]]
2013 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2020 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2022 <p><a href="/index.php?title=Talk:Parser_testing&action=edit&redlink=1" class="new" title="Talk:Parser testing (page does not exist)">Talk:Parser testing</a>, <a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">Meta:Disclaimers</a>
2027 Piped link to namespace
2029 [[Meta:Disclaimers|The disclaimers]]
2031 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2038 [[Usually caused by a typo (oops}]]
2040 <p>[[Usually caused by a typo (oops}]]
2045 Link containing % (not as a hex sequence)
2049 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
2054 Link containing % as a single hex sequence interpreted to char
2058 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
2063 Link containing % as a double hex sequence interpreted to hex sequence
2067 <p>[[7%2525 Solution]]
2072 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2073 Example for such a section: == < ==
2075 [[%23%3c]][[%23%3e]]
2077 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2082 Link containing "<#" and ">#" as a hex sequences
2084 [[%3c%23]][[%3e%23]]
2086 <p>[[%3c%23]][[%3e%23]]
2091 Link containing double-single-quotes '' (bug 4598)
2093 [[Lista d''e paise d''o munno]]
2095 <p><a href="/index.php?title=Lista_d%27%27e_paise_d%27%27o_munno&action=edit&redlink=1" class="new" title="Lista d''e paise d''o munno (page does not exist)">Lista d''e paise d''o munno</a>
2100 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2102 Some [[Link|pretty ''italics'' and stuff]]!
2104 <p>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!
2109 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2111 ''Some [[Link|pretty ''italics'' and stuff]]!
2113 <p><i>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!</i>
2118 Link with double quotes in title part (literal) and alternate part (interpreted)
2120 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2124 [[''Pentecoste''|Pentecoste]]
2126 [[''Pentecoste''|''Pentecoste'']]
2128 <p><a href="/index.php?title=Special:Upload&wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg" class="new" title="File:Denys Savchenko ''Pentecoste''.jpg">File:Denys Savchenko <i>Pentecoste</i>.jpg</a>
2129 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">''Pentecoste''</a>
2130 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">Pentecoste</a>
2131 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)"><i>Pentecoste</i></a>
2138 [[http://www.example.com]]
2140 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2144 # I'm fairly sure the expected result here is wrong.
2145 # We want these to be URL links, not pseudo-pages with URLs for titles....
2146 # However the current output is also pretty screwy.
2149 # I'm changing it to match the current output--it arguably makes more
2150 # sense in the light of the test above. Old expected result was:
2151 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2153 # But I think this test is bordering on "garbage in, garbage out" anyway.
2158 Piped link to URL: [[http://www.example.com|an example URL]]
2160 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2165 BUG 2: [[page|http://url/]] should link to page, not http://url/
2167 [[Main Page|http://url/]]
2169 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2174 BUG 337: Escaped self-links should be bold
2178 [[Bug462]] [[Bug462]]
2180 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2185 Self-link to section should not be bold
2189 [[Main Page#section]]
2191 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2202 Self-link to numeric title
2208 <p><strong class="selflink">0</strong>
2213 Link to numeric-equivalent title
2219 <p><a href="/wiki/00" title="00">00</a>
2224 <nowiki> inside a link
2226 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2228 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2233 Non-breaking spaces in title
2235 [[ Main Page ]]
2237 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2242 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2248 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2253 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2259 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2264 Internal link with en linktrail: no apostrophes (bug 27473)
2270 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2275 Internal link with ca linktrail with apostrophes (bug 27473)
2281 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2286 Internal link with kaa linktrail with apostrophes (bug 27473)
2292 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2297 ### Interwiki links (see maintenance/interwiki.sql)
2301 Inline interwiki link
2303 [[MeatBall:SoftSecurity]]
2305 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2310 Inline interwiki link with empty title (bug 2372)
2314 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw" title="meatball:">MeatBall:</a>
2319 Interwiki link encoding conversion (bug 1636)
2321 *[[Wikipedia:ro:Olteniţa]]
2322 *[[Wikipedia:ro:Olteniţa]]
2324 <ul><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
2325 </li><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
2331 Interwiki link with fragment (bug 2130)
2333 [[MeatBall:SoftSecurity#foo]]
2335 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2350 Double interlanguage link
2361 Interlanguage link, with prefix links
2373 Double interlanguage link, with prefix links (bug 8897)
2400 Incorrecly removing closing slashes from correctly formed XHTML
2402 <br style="clear:both;" />
2404 <p><br style="clear:both;" />
2409 Failing to transform badly formed HTML into correct XHTML
2415 <p><br clear="left" />
2416 <br clear="right" />
2422 Horizontal ruler (should it add that extra space?)
2436 ### Block-level elements
2459 <ol><li>Numbered list
2476 ***#Number on level 4
2478 **#Number on level 3
2479 **#Number on level 3
2484 <ol><li> with numbers
2486 <ul><li> and bullets
2488 <ol><li> and numbers
2490 </li><li>bullets again
2491 <ul><li>bullet level 2
2492 <ul><li>bullet level 3
2493 <ol><li>Number on level 4
2496 </li><li>bullet level 2
2497 <ol><li>Number on level 3
2498 </li><li>Number on level 3
2501 <ol><li>number level 2
2509 List items are not parsed correctly following a <pre> block (bug 785)
2515 <ul><li> <pre>foo</pre>
2516 </li><li> <pre>bar</pre>
2527 Magic Word: {{CURRENTDAY}}
2536 Magic Word: {{CURRENTDAY2}}
2545 Magic Word: {{CURRENTDAYNAME}}
2554 Magic Word: {{CURRENTDOW}}
2563 Magic Word: {{CURRENTMONTH}}
2572 Magic Word: {{CURRENTMONTHABBREV}}
2574 {{CURRENTMONTHABBREV}}
2581 Magic Word: {{CURRENTMONTHNAME}}
2583 {{CURRENTMONTHNAME}}
2590 Magic Word: {{CURRENTMONTHNAMEGEN}}
2592 {{CURRENTMONTHNAMEGEN}}
2599 Magic Word: {{CURRENTTIME}}
2608 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2617 Magic Word: {{CURRENTYEAR}}
2626 Magic Word: {{FULLPAGENAME}}
2628 title=[[User:Ævar Arnfjörð Bjarmason]]
2632 <p>User:Ævar Arnfjörð Bjarmason
2637 Magic Word: {{FULLPAGENAMEE}}
2639 title=[[User:Ævar Arnfjörð Bjarmason]]
2643 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2648 Magic Word: {{NAMESPACE}}
2650 title=[[User:Ævar Arnfjörð Bjarmason]]
2659 Magic Word: {{NAMESPACEE}}
2661 title=[[User:Ævar Arnfjörð Bjarmason]]
2670 Magic Word: {{NUMBEROFFILES}}
2679 Magic Word: {{PAGENAME}}
2681 title=[[User:Ævar Arnfjörð Bjarmason]]
2685 <p>Ævar Arnfjörð Bjarmason
2690 Magic Word: {{PAGENAME}} with metacharacters
2692 title=[['foo & bar = baz']]
2696 <p><i>'foo & bar = baz'</i>
2701 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2703 title=[[*RFC 1234 http://example.com/]]
2707 <p>*RFC 1234 http://example.com/
2712 Magic Word: {{PAGENAMEE}}
2714 title=[[User:Ævar Arnfjörð Bjarmason]]
2718 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2723 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2725 title=[[*RFC 1234 http://example.com/]]
2729 <p>*RFC_1234_http://example.com/
2734 Magic Word: {{REVISIONID}}
2743 Magic Word: {{SCRIPTPATH}}
2752 Magic Word: {{SERVER}}
2756 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2761 Magic Word: {{SERVERNAME}}
2770 Magic Word: {{SITENAME}}
2779 Namespace 1 {{ns:1}}
2788 Namespace 1 {{ns:01}}
2797 Namespace 0 {{ns:0}} (bug 4783)
2805 Namespace 0 {{ns:00}} (bug 4783)
2813 Namespace -1 {{ns:-1}}
2822 Namespace User {{ns:User}}
2831 Namespace User talk {{ns:User_talk}}
2840 Namespace User talk {{ns:uSeR tAlK}}
2849 Namespace File {{ns:File}}
2858 Namespace File {{ns:Image}}
2867 Namespace (lang=de) Benutzer {{ns:User}}
2878 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2884 <p>Benutzer Diskussion
2892 {{urlencode:hi world?!}}
2893 {{urlencode:hi world?!|WIKI}}
2894 {{urlencode:hi world?!|PATH}}
2895 {{urlencode:hi world?!|QUERY}}
2908 Magic links: internal link to RFC (bug 479)
2912 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2917 Magic links: RFC (bug 479)
2921 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc822">RFC 822</a>
2926 Magic links: ISBN (bug 1937)
2930 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2935 Magic links: PMID incorrectly converts space to underscore
2939 <p><a class="external mw-magiclink-pmid" href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2948 Nonexistent template
2950 {{thistemplatedoesnotexist}}
2952 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2959 This is a test template
2967 <p>This is a test template
2972 Template with explicit namespace
2976 <p>This is a test template
2984 This is a test template with parameter {{{param}}}
2990 {{paramtest|param=foo}}
2992 <p>This is a test template with parameter foo
2997 Template:paramtestnum
3003 Template unnamed parameter
3005 {{paramtestnum|Main Page|the main page}}
3007 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3012 Template:templatesimple
3018 Template:templateredirect
3020 #redirect [[Template:templatesimple]]
3024 Template:templateasargtestnum
3030 Template:templateasargtest
3032 {{template{{{templ}}}}}
3036 Template:templateasargtest2
3042 Template with template name as unnamed argument
3044 {{templateasargtestnum|templatesimple}}
3051 Template with template name as argument
3053 {{templateasargtest|templ=simple}}
3060 Template with template name as argument (2)
3062 {{templateasargtest2|templ=templatesimple}}
3069 Template:templateasargtestdefault
3071 {{{{{templ|templatesimple}}}}}
3081 Template with default value
3083 {{templateasargtestdefault}}
3090 Template with default value (value set)
3092 {{templateasargtestdefault|templ=templa}}
3101 {{templateredirect}}
3108 Template with argument in separate line
3110 {{ templateasargtest |
3118 Template with complex template as argument
3121 param ={{ templateasargtest |
3124 <p>This is a test template with parameter (test)
3129 Template with thumb image (with link in description)
3132 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3134 This is a test template with parameter <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Noimage.png" class="new" title="File:Noimage.png">File:Noimage.png</a> <div class="thumbcaption"><a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">link</a> <a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">caption</a></div></div></div>
3139 Template:complextemplate
3141 {{{1}}} {{paramtest|
3142 param ={{{param}}}}}
3146 Template with complex arguments
3149 param ={{ templateasargtest |
3150 templ = simple }}|[[Template:complextemplate|link]]}}
3152 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3157 BUG 553: link with two variables in a piped link
3160 |[[{{{1}}}|{{{2}}}]]
3165 <td>[[{{{1}}}|{{{2}}}]]
3173 Magic variable as template parameter
3175 {{paramtest|param={{SITENAME}}}}
3177 <p>This is a test template with parameter MediaWiki
3184 [[{{{param}}}|link]]
3188 Template parameter as link source
3190 {{linktest|param=Main Page}}
3192 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3200 including another template, {{paramtest|param={{{arg}}}}}
3204 Template passing argument to another template
3206 {{paramtest2|arg='hmm'}}
3208 <p>including another template, This is a test template with parameter 'hmm'
3219 Template as link source
3223 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3241 Template infinite loop
3245 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
3250 Template from main namespace
3269 BUG 529: Template with table, not included at beginning of line
3293 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3318 BUG 41: Template parameters shown as broken links
3330 ''None'' of '''this''' should be
3332 but rather passed unmodified
3336 # hmm, fix this or just deprecate msgnw and document its behavior?
3342 {{msgnw:MSGNW test}}
3344 <p>''None'' of '''this''' should be
3346 but rather passed unmodified
3354 {{int:youhavenewmessages|lots of money|not!}}
3356 <p>You have lots of money (not!).
3363 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3367 <includeonly> and <noinclude> being included
3378 <onlyinclude>Foo</onlyinclude>bar
3382 <onlyinclude> being included
3394 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3398 <onlyinclude> and <includeonly> being included
3407 <includeonly> and <noinclude> on a page
3409 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3416 <onlyinclude> on a page
3418 <onlyinclude>Foo</onlyinclude>bar
3425 Template:Includeonly section
3428 ==Includeonly section==
3434 Bug 6563: Edit link generation for section shown by <includeonly>
3436 {{includeonly section}}
3438 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Includeonly_section">Includeonly section</span></h2>
3439 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Section_T-1">Section T-1</span></h2>
3443 # Uses same input as the contents of [[Template:Includeonly section]]
3445 Bug 6563: Section extraction for section shown by <includeonly>
3450 ==Includeonly section==
3458 Bug 6563: Edit link generation for section suppressed by <includeonly>
3461 ==Includeonly section==
3465 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2>
3470 Bug 6563: Section extraction for section suppressed by <includeonly>
3475 ==Includeonly section==
3482 Template:Top-level template
3488 Template:Nested template
3495 Line-start flag in a nested template call
3500 {{Top-level template}}
3512 ### Pre-save transform tests
3515 pre-save transform: subst:
3521 This is a test template
3525 pre-save transform: normal template
3535 pre-save transform: nonexistent template
3539 {{thistemplatedoesnotexist}}
3541 {{thistemplatedoesnotexist}}
3546 pre-save transform: subst magic variables
3555 # This is bug 89, which I fixed. -- wtm
3557 pre-save transform: subst: templates with parameters
3561 {{subst:paramtest|param="something else"}}
3563 This is a test template with parameter "something else"
3569 <nowiki>'''not wiki'''</nowiki>
3573 pre-save transform: nowiki in subst (bug 1188)
3577 {{subst:nowikitest}}
3579 <nowiki>'''not wiki'''</nowiki>
3584 Template:commenttest
3586 This template has <!-- a comment --> in it.
3590 pre-save transform: comment in subst (bug 1936)
3594 {{subst:commenttest}}
3596 This template has <!-- a comment --> in it.
3600 pre-save transform: unclosed tag
3604 <nowiki>'''not wiki'''
3606 <nowiki>'''not wiki'''
3610 pre-save transform: mixed tag case
3614 <NOwiki>'''not wiki'''</noWIKI>
3616 <NOwiki>'''not wiki'''</noWIKI>
3620 pre-save transform: unclosed comment in <nowiki>
3624 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3626 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3632 <span onmouseover="alert('crap')">Oh no</span>
3636 (confirming safety of fix for subst bug 1936)
3638 {{Template:dangerous}}
3640 <p><span>Oh no</span>
3645 pre-save transform: comment containing gallery (bug 5024)
3649 <!-- <gallery>data</gallery> -->
3651 <!-- <gallery>data</gallery> -->
3655 pre-save transform: comment containing extension
3659 <!-- <tag>data</tag> -->
3661 <!-- <tag>data</tag> -->
3665 pre-save transform: comment containing nowiki
3669 <!-- <nowiki>data</nowiki> -->
3671 <!-- <nowiki>data</nowiki> -->
3675 pre-save transform: <noinclude> in subst (bug 3298)
3685 pre-save transform: <onlyinclude> in subst (bug 3298)
3697 {{<includeonly>subst:</includeonly>Includes}}
3701 Template:SafeSubstTest
3703 {{<includeonly>safesubst:</includeonly>Includes}}
3707 bug 22297: safesubst: works during PST
3711 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3717 bug 22297: safesubst: works during normal parse
3726 subst: does not work during normal parse
3730 <p>{{subst:Includes}}
3735 pre-save transform: context links ("pipe trick")
3739 [[Article (context)|]]
3742 [[Bar:Article (context)|]]
3743 [[:Bar:Article (context)|]]
3745 [[|Article (context)]]
3749 [[Article (context)|Article]]
3750 [[Bar:Article|Article]]
3751 [[:Bar:Article|Article]]
3752 [[Bar:Article (context)|Article]]
3753 [[:Bar:Article (context)|Article]]
3755 [[Article (context)]]
3756 [[Bar:X (Y) Z|X (Y) Z]]
3757 [[:Bar:X (Y) Z|X (Y) Z]]
3761 pre-save transform: context links ("pipe trick") with interwiki prefix
3765 [[interwiki:Article|]]
3766 [[:interwiki:Article|]]
3767 [[interwiki:Bar:Article|]]
3768 [[:interwiki:Bar:Article|]]
3770 [[interwiki:Article|Article]]
3771 [[:interwiki:Article|Article]]
3772 [[interwiki:Bar:Article|Bar:Article]]
3773 [[:interwiki:Bar:Article|Bar:Article]]
3777 pre-save transform: context links ("pipe trick") with parens in title
3779 pst title=[[Somearticle (context)]]
3783 [[Article (context)|Article]]
3787 pre-save transform: context links ("pipe trick") with comma in title
3789 pst title=[[Someplace, Somewhere]]
3792 [[Otherplace, Elsewhere|]]
3793 [[Otherplace, Elsewhere, Anywhere|]]
3795 [[Otherplace, Somewhere|Otherplace]]
3796 [[Otherplace, Elsewhere|Otherplace]]
3797 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3801 pre-save transform: context links ("pipe trick") with parens and comma
3803 pst title=[[Someplace (IGNORED), Somewhere]]
3806 [[Otherplace (place), Elsewhere|]]
3808 [[Otherplace, Somewhere|Otherplace]]
3809 [[Otherplace (place), Elsewhere|Otherplace]]
3813 pre-save transform: context links ("pipe trick") with comma and parens
3815 pst title=[[Who, me? (context)]]
3818 [[Me, Myself, and I (1937 song)|]]
3820 [[Yes, you. (context)|Yes, you.]]
3821 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3825 pre-save transform: context links ("pipe trick") with namespace
3827 pst title=[[Ns:Somearticle]]
3831 [[Ns:Article|Article]]
3835 pre-save transform: context links ("pipe trick") with namespace and parens
3837 pst title=[[Ns:Somearticle (context)]]
3841 [[Ns:Article (context)|Article]]
3845 pre-save transform: context links ("pipe trick") with namespace and comma
3847 pst title=[[Ns:Somearticle, Context, Whatever]]
3851 [[Ns:Article, Context, Whatever|Article]]
3855 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3857 pst title=[[Ns:Somearticle, Context (context)]]
3861 [[Ns:Article (context)|Article]]
3865 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3867 pst title=[[Ns:Somearticle (IGNORED), Context]]
3871 [[Ns:Article, Context|Article]]
3875 pre-save transform: trim trailing empty lines
3879 Empty lines are trimmed
3885 Empty lines are trimmed
3889 pre-save transform: Signature expansion
3894 * <noinclude>~~~</noinclude>
3895 * <includeonly>~~~</includeonly>
3896 * <onlyinclude>~~~</onlyinclude>
3898 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
3899 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
3900 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
3901 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
3906 pre-save transform: Signature expansion in nowiki tags (bug 93)
3912 <nowiki>~~~~</nowiki>
3914 <includeonly><nowiki>~~~~</nowiki></includeonly>
3916 <noinclude><nowiki>~~~~</nowiki></noinclude>
3918 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3920 {{subst:Foo}} shall be converted to FOO
3922 As well as inside noinclude/onlyinclude
3923 <noinclude>{{subst:Foo}}</noinclude>
3924 <onlyinclude>{{subst:Foo}}</onlyinclude>
3926 But not inside includeonly
3927 <includeonly>{{subst:Foo}}</includeonly>
3931 <nowiki>~~~~</nowiki>
3933 <includeonly><nowiki>~~~~</nowiki></includeonly>
3935 <noinclude><nowiki>~~~~</nowiki></noinclude>
3937 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3939 FOO shall be converted to FOO
3941 As well as inside noinclude/onlyinclude
3942 <noinclude>FOO</noinclude>
3943 <onlyinclude>FOO</onlyinclude>
3945 But not inside includeonly
3946 <includeonly>{{subst:Foo}}</includeonly>
3950 ### Message transform tests
3953 message transform: magic variables
3963 message transform: should not transform wiki markup
3973 message transform: <noinclude> in transcluded template (bug 4926)
3983 message transform: <onlyinclude> in transcluded template (bug 4926)
3993 {{#special:}} page name, known
3997 {{#special:Recentchanges}}
3999 Special:RecentChanges
4003 {{#special:}} page name with subpage, known
4007 {{#special:Recentchanges/param}}
4009 Special:RecentChanges/param
4013 {{#special:}} page name, unknown
4017 {{#special:foobarnonexistent}}
4019 No such special page
4028 [[Image:foobar.jpg]]
4030 <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>
4037 [[Image:foobar.jpg|right]]
4039 <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>
4044 Simple image (using File: namespace, now canonical)
4048 <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>
4055 [[Image:foobar.jpg|right|Caption text]]
4057 <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>
4062 Image with link parameter, wiki target
4064 [[Image:foobar.jpg|link=Target page]]
4066 <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>
4071 Image with link parameter, URL target
4073 [[Image:foobar.jpg|link=http://example.com/]]
4075 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4080 Image with link parameter, wgExternalLinkTarget
4082 [[Image:foobar.jpg|link=http://example.com/]]
4084 wgExternalLinkTarget='foobar'
4086 <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>
4091 Image with link parameter, wgExternalLinkTarget, unnamed parameter
4093 [[Image:foobar.jpg|link=http://example.com/|Title]]
4095 wgExternalLinkTarget='foobar'
4097 <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>
4102 Image with empty link parameter
4104 [[Image:foobar.jpg|link=]]
4106 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
4111 Image with link parameter (wiki target) and unnamed parameter
4113 [[Image:foobar.jpg|link=Target page|Title]]
4115 <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>
4120 Image with link parameter (URL target) and unnamed parameter
4122 [[Image:foobar.jpg|link=http://example.com/|Title]]
4124 <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>
4129 Thumbnail image with link parameter
4131 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
4133 <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>
4138 Image with frame and link
4140 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
4142 <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>
4147 Image with frame and link and explicit alt
4149 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
4151 <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>
4156 Image with wiki markup in implicit alt
4158 [[Image:Foobar.jpg|testing '''bold''' in alt]]
4160 <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>
4165 Image with wiki markup in explicit alt
4167 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
4169 <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>
4174 Link to image page- image page normally doesn't exists, hence edit link
4175 Add test with existing image page
4176 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
4180 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
4185 bug 18784 Link to non-existent image page with caption should use caption as link text
4187 [[:Image:test|caption]]
4189 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
4194 Frameless image caption with a free URL
4196 [[Image:foobar.jpg|http://example.com]]
4198 <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>
4203 Thumbnail image caption with a free URL
4205 [[Image:foobar.jpg|thumb|http://example.com]]
4207 <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>
4212 Thumbnail image caption with a free URL and explicit alt
4214 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
4216 <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>
4221 BUG 1887: A ISBN with a thumbnail
4223 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
4225 <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>
4230 BUG 1887: A RFC with a thumbnail
4232 [[Image:foobar.jpg|thumb|This is RFC 12354]]
4234 <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>
4239 BUG 1887: A mailto link with a thumbnail
4241 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
4243 <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>
4247 # Pending resolution to bug 368
4249 BUG 648: Frameless image caption with a link
4251 [[Image:foobar.jpg|text with a [[link]] in it]]
4253 <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>
4258 BUG 648: Frameless image caption with a link (suffix)
4260 [[Image:foobar.jpg|text with a [[link]]foo in it]]
4262 <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>
4267 BUG 648: Frameless image caption with an interwiki link
4269 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4271 <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>
4276 BUG 648: Frameless image caption with a piped interwiki link
4278 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4280 <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>
4285 Escape HTML special chars in image alt text
4287 [[Image:foobar.jpg|& < > "]]
4289 <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>
4294 BUG 499: Alt text should have Ӓ, not &1234;
4296 [[Image:foobar.jpg|♀]]
4298 <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>
4303 Broken image caption with link
4305 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4307 <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.
4312 Image caption containing another image
4314 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4316 <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>
4321 Image caption containing a newline
4323 [[Image:Foobar.jpg|This
4326 <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>
4332 Bug 3090: External links other than http: in image captions
4334 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4336 <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>
4343 #REDIRECT [[File:Barfoo.jpg]]
4349 [[Image:Barfoo.jpg]]
4351 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
4356 Missing image with uploads disabled
4360 [[Image:Foobaz.jpg]]
4362 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
4371 Subpage test/subpage
4379 subpage title=[[Subpage test]]
4383 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
4388 Subpage noslash link
4390 subpage title=[[Subpage test]]
4394 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4403 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4408 BUG 561: {{/Subpage}}
4410 subpage title=[[Page]]
4414 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4422 Category:MediaWiki User's Guide
4430 [[:Category:MediaWiki User's Guide]]
4432 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
4441 [[Category:MediaWiki User's Guide]]
4443 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4447 PAGESINCATEGORY invalid title fatal (r33546 fix)
4449 {{PAGESINCATEGORY:<bogus>}}
4456 ### Inter-language links
4459 Inter-language links
4465 [[zh:食品]]
4467 es:Alimento fr:Nourriture zh:食品
4474 Basic section headings
4481 ===Smaller headline===
4484 <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>
4487 <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>
4490 <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>
4496 Section headings with TOC
4499 === Subheadline 1 ===
4500 ===== Skipping a level =====
4501 ====== Skipping a level ======
4505 ===Another headline===
4507 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4509 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4511 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4513 <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>
4515 <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>
4522 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4524 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4529 <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>
4530 <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>
4531 <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>
4532 <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>
4533 <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>
4536 <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>
4540 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4542 Handling of sections up to level 6 and beyond
4545 == Level 2 Heading==
4546 === Level 3 Heading===
4547 ==== Level 4 Heading====
4548 ===== Level 5 Heading=====
4549 ====== Level 6 Heading======
4550 ======= Level 7 Heading=======
4551 ======== Level 8 Heading========
4552 ========= Level 9 Heading=========
4553 ========== Level 10 Heading==========
4555 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4557 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4559 <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>
4561 <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>
4563 <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>
4565 <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>
4567 <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>
4568 <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>
4569 <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>
4570 <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>
4571 <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>
4584 <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>
4585 <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>
4586 <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>
4587 <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>
4588 <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>
4589 <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>
4590 <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>
4591 <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>
4592 <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>
4593 <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>
4598 TOC regression (bug 9764)
4602 ==== title 1.1.1 ====
4607 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4609 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4611 <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>
4613 <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>
4616 <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>
4619 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4621 <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>
4626 <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>
4627 <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>
4628 <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>
4629 <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>
4630 <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>
4631 <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>
4636 TOC with wgMaxTocLevel=3 (bug 6204)
4642 ==== title 1.1.1 ====
4647 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4649 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4651 <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>
4652 <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>
4655 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4657 <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>
4662 <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>
4663 <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>
4664 <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>
4665 <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>
4666 <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>
4667 <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>
4672 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4678 ====Section 1.1.1====
4679 ====Section 1.1.1.1====
4682 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4684 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4686 <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>
4689 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4692 <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>
4693 <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>
4694 <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>
4695 <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>
4696 <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>
4702 Resolving duplicate section names
4707 <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>
4708 <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>
4713 Resolving duplicate section names with differing case (bug 10721)
4718 <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>
4719 <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>
4731 Template with sections, __NOTOC__
4738 <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>
4739 <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>
4740 <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>
4741 <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>
4746 __NOEDITSECTION__ keyword
4752 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4753 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4758 Link inside a section heading
4760 ==Section with a [[Main Page|link]] in it==
4762 <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>
4767 TOC regression (bug 12077)
4774 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4776 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4778 <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>
4781 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4784 <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>
4785 <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>
4786 <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>
4791 BUG 1219 URL next to image (good)
4793 http://example.com [[Image:foobar.jpg]]
4795 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4800 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4803 The line above must have a trailing space!
4806 But just in case it doesn't...
4808 <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>
4809 <p>The line above must have a trailing space!
4811 <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>
4812 <p>But just in case it doesn't...
4817 Header with special characters (bug 25462)
4819 The tooltips shall not show entities to the user (ie. be double escaped)
4836 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4838 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4840 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4841 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4842 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4843 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4844 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4847 <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>
4850 <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>
4853 <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>
4856 <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>
4859 <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>
4865 BUG 1219 URL next to image (broken)
4867 http://example.com[[Image:foobar.jpg]]
4869 <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>
4874 Bug 1186 news: in the middle of text
4876 http://en.wikinews.org/wiki/Wikinews:Workplace
4878 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4884 Namespaced link must have a title
4893 Namespaced link must have a title (bad fragment version)
4895 [[Project:#fragment]]
4897 <p>[[Project:#fragment]]
4903 div with no attributes
4905 <div>HTML rocks</div>
4907 <div>HTML rocks</div>
4912 div with double-quoted attribute
4914 <div id="rock">HTML rocks</div>
4916 <div id="rock">HTML rocks</div>
4921 div with single-quoted attribute
4923 <div id='rock'>HTML rocks</div>
4925 <div id="rock">HTML rocks</div>
4930 div with unquoted attribute
4932 <div id=rock>HTML rocks</div>
4934 <div id="rock">HTML rocks</div>
4939 div with illegal double attributes
4941 <div align="center" align="right">HTML rocks</div>
4943 <div align="right">HTML rocks</div>
4948 HTML multiple attributes correction
4950 <p class="error" class="awesome">Awesome!</p>
4952 <p class="awesome">Awesome!</p>
4957 Table multiple attributes correction
4960 !+ class="error" class="awesome"| status
4965 <th class="awesome">status
4975 <DIV ALIGN="center">HTML ROCKS</DIV>
4977 <div align="center">HTML ROCKS</div>
4983 text with amp in the middle of nowhere
4987 <p>Remember AT&T?
4992 text with character entity: eacute
4994 I always thought é was a cute letter.
4996 <p>I always thought é was a cute letter.
5001 text with undefined character entity: xacute
5003 I always thought &xacute; was a cute letter.
5005 <p>I always thought &xacute; was a cute letter.
5017 [[Media:Foobar.jpg]]
5019 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
5024 Media link with text
5026 [[Media:Foobar.jpg|A neat file to look at]]
5028 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
5032 # FIXME: this is still bad HTML tag nesting
5034 Media link with nasty text
5035 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
5037 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
5039 <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>
5044 Media link to nonexistent file (bug 1702)
5046 [[Media:No such.jpg]]
5048 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
5053 Image link to nonexistent file (bug 1850 - good)
5055 [[Image:No such.jpg]]
5057 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
5062 :Image link to nonexistent file (bug 1850 - bad)
5064 [[:Image:No such.jpg]]
5066 <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>
5073 Character reference normalization in link text (bug 1938)
5075 [[Main Page|this&that]]
5077 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
5084 Test for unicode normalization
5086 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
5090 (bug 19451) Links should refer to the normalized form.
5098 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5099 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5100 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5101 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5102 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5107 Empty attribute crash test (bug 2067)
5109 <font color="">foo</font>
5111 <p><font color="">foo</font>
5116 Empty attribute crash test single-quotes (bug 2067)
5118 <font color=''>foo</font>
5120 <p><font color="">foo</font>
5125 Attribute test: equals, then nothing
5127 <font color=>foo</font>
5134 Attribute test: unquoted value
5136 <font color=x>foo</font>
5138 <p><font color="x">foo</font>
5143 Attribute test: unquoted but illegal value (hash)
5145 <font color=#x>foo</font>
5147 <p><font color="#x">foo</font>
5152 Attribute test: no value
5154 <font color>foo</font>
5156 <p><font color="color">foo</font>
5161 Bug 2095: link with three closing brackets
5165 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
5170 Bug 2095: link with pipe and three closing brackets
5174 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
5179 Bug 2095: link with pipe and three closing brackets, version 2
5181 [[Main Page|[http://example.com/]]]
5183 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
5193 Template:Dangerous attribute
5195 " onmouseover="alert(document.cookie)
5199 Template:Dangerous style attribute
5201 border-size: expression(alert(document.cookie))
5207 <div style="float: right; {{{1}}}">Magic div</div>
5211 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
5213 <div title="{{test}}"></div>
5215 <div title="This is a test template"></div>
5220 Bug 2304: HTML attribute safety (dangerous template; 2309)
5222 <div title="{{dangerous attribute}}"></div>
5224 <div title=""></div>
5229 Bug 2304: HTML attribute safety (dangerous style template; 2309)
5231 <div style="{{dangerous style attribute}}"></div>
5233 <div style="/* insecure input */"></div>
5238 Bug 2304: HTML attribute safety (safe parameter; 2309)
5240 {{div style|width: 200px}}
5242 <div style="float: right; width: 200px">Magic div</div>
5247 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
5249 {{div style|width: expression(alert(document.cookie))}}
5251 <div style="/* insecure input */">Magic div</div>
5256 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
5258 {{div style|"><script>alert(document.cookie)</script>}}
5260 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5265 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5267 {{div style|" ><script>alert(document.cookie)</script>}}
5269 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5274 Bug 2304: HTML attribute safety (link)
5276 <div title="[[Main Page]]"></div>
5278 <div title="[[Main Page]]"></div>
5283 Bug 2304: HTML attribute safety (italics)
5285 <div title="''foobar''"></div>
5287 <div title="''foobar''"></div>
5292 Bug 2304: HTML attribute safety (bold)
5294 <div title="'''foobar'''"></div>
5296 <div title="'''foobar'''"></div>
5302 Bug 2304: HTML attribute safety (ISBN)
5304 <div title="ISBN 1234567890"></div>
5306 <div title="ISBN 1234567890"></div>
5311 Bug 2304: HTML attribute safety (RFC)
5313 <div title="RFC 1234"></div>
5315 <div title="RFC 1234"></div>
5320 Bug 2304: HTML attribute safety (PMID)
5322 <div title="PMID 1234567890"></div>
5324 <div title="PMID 1234567890"></div>
5329 Bug 2304: HTML attribute safety (web link)
5331 <div title="http://example.com/"></div>
5333 <div title="http://example.com/"></div>
5338 Bug 2304: HTML attribute safety (named web link)
5340 <div title="[http://example.com/ link]"></div>
5342 <div title="[http://example.com/ link]"></div>
5347 Bug 3244: HTML attribute safety (extension; safe)
5349 <div style="<nowiki>background:blue</nowiki>"></div>
5351 <div style="background:blue"></div>
5356 Bug 3244: HTML attribute safety (extension; unsafe)
5358 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
5360 <div style="/* insecure input */"></div>
5364 # More MSIE fun discovered by Tom Gilder
5367 MSIE CSS safety test: spurious slash
5369 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
5371 <div style="/* insecure input */">evil</div>
5376 MSIE CSS safety test: hex code
5378 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
5380 <div style="/* insecure input */">evil</div>
5385 MSIE CSS safety test: comment in url
5387 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
5389 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
5394 MSIE CSS safety test: comment in expression
5396 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
5398 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5404 Table attribute legitimate extension
5407 !+ style="<nowiki>color:blue</nowiki>"| status
5412 <th style="color:blue">status
5420 Table attribute safety
5423 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5428 <th style="/* insecure input */">status
5436 CSS line continuation 1
5438 <div style="background-image: u\ rl(test.jpg);"></div>
5440 <div style="/* insecure input */"></div>
5445 CSS line continuation 2
5447 <div style="background-image: u\ rl(test.jpg); "></div>
5449 <div style="/* insecure input */"></div>
5460 Expansion of multi-line templates in attribute values (bug 6255)
5462 <div style="background: {{identity|#00FF00}}">-</div>
5464 <div style="background: #00FF00">-</div>
5470 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5472 <div style="background:
5475 <div style="background: #00FF00">-</div>
5480 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5482 <div style="background: #00FF00">-</div>
5484 <div style="background: #00FF00">-</div>
5489 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5492 Parser hook: empty input
5505 Parser hook: empty input using terminated empty elements
5518 Parser hook: empty input using terminated empty elements (space before)
5531 Parser hook: basic input
5545 Parser hook: case insensitive
5559 Parser hook: case insensitive, redux
5572 Parser hook: nested tags
5576 <tag><tag></tag></tag>
5587 Parser hook: basic arguments
5589 <tag width=200 height = "100" depth = '50' square></tag>
5608 Parser hook: argument containing a forward slash (bug 5344)
5610 <tag filename='/tmp/bla'></tag>
5616 string(8) "/tmp/bla"
5623 Parser hook: empty input using terminated empty elements (bug 2374)
5637 # </tag> should be output literally since there is no matching tag that begins it
5639 Parser hook: basic arguments using terminated empty elements (bug 2374)
5641 <tag width=200 height = "100" depth = '50' square/>
5664 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5668 Parser hook: static parser hook not inside a comment
5670 <statictag>hello, world</statictag>
5671 <statictag action=flush/>
5679 Parser hook: static parser hook inside a comment
5681 <!-- <statictag>hello, world</statictag> -->
5682 <statictag action=flush/>
5688 # Nested template calls; this case was broken by Parser.php rev 1.506,
5692 Template:One-parameter
5694 (My parameter is: {{{1}}})
5698 Template:Map-one-parameter
5704 Nested template calls
5706 {{Map-one-parameter|One-parameter|param}}
5708 <p>(My parameter is: param)
5717 Sanitizer: Closing of open tags
5719 <s></s><table></table>
5721 <s></s><table></table>
5726 Sanitizer: Closing of open but not closed tags
5735 Sanitizer: Closing of closed but not open tags
5744 Sanitizer: Closing of closed but not open table tags
5746 Table not started</td></tr></table>
5748 <p>Table not started</td></tr></table>
5753 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5755 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5757 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5762 Sanitizer: Validating the contents of the id attribute (bug 4515)
5768 Something, but definitely not <br id="9" />...
5772 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5776 <br id="foo" /><br id="foo" />
5778 Something need to be done. foo-2 ?
5782 Language converter: output gets cut off unexpectedly (bug 5757)
5786 this bit is safe: }-
5788 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5790 then we get cut off here: }-
5792 all additional text is vanished
5794 <p>this bit is safe: }-
5795 </p><p>but if we add a conversion instance: xxx
5796 </p><p>then we get cut off here: }-
5797 </p><p>all additional text is vanished
5802 Self closed html pairs (bug 5487)
5805 <center><font id="bug" />Centered text</center>
5806 <div><font id="bug2" />In div text</div>
5808 <center><font id="bug" />Centered text</center>
5809 <div><font id="bug2" />In div text</div>
5818 Punctuation: nbsp before exclamation
5822 <p>C'est grave !
5827 Punctuation: CSS !important (bug 11874)
5829 <div style="width:50% !important">important</div>
5831 <div style="width:50% !important">important</div>
5836 Punctuation: CSS ! important (bug 11874; with space after)
5838 <div style="width:50% ! important">important</div>
5840 <div style="width:50% ! important">important</div>
5846 HTML bullet list, closed tags (bug 5497)
5861 HTML bullet list, unclosed tags (bug 5497)
5878 HTML ordered list, closed tags (bug 5497)
5893 HTML ordered list, unclosed tags (bug 5497)
5910 HTML nested bullet list, closed tags (bug 5497)
5935 HTML nested bullet list, open tags (bug 5497)
5960 HTML nested ordered list, closed tags (bug 5497)
5985 HTML nested ordered list, open tags (bug 5497)
6010 HTML ordered list item with parameters oddity
6012 <ol><li id="fragment">One</li></ol>
6014 <ol><li id="fragment">One</li></ol>
6019 bug 5918: autonumbering
6021 [http://first/] [http://second] [ftp://ftp]
6025 [mailto:enclosed@mail.tld With target]
6027 [mailto:enclosed@mail.tld]
6029 mailto:inline@mail.tld
6031 <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>
6032 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
6033 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
6034 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
6035 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
6041 # Security and HTML correctness
6042 # From Nick Jenkins' fuzz testing
6046 Fuzz testing: Parser13
6060 Fuzz testing: Parser14
6065 <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>
6066 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6068 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
6075 Fuzz testing: Parser14-table
6081 <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>
6082 <table style="__TOC__">
6091 # Known to produce bogus xml (extra </td>)
6093 Fuzz testing: Parser16
6113 Fuzz testing: Parser21
6116 ! irc://{{ftp://a" onmouseover="alert('hello world');"
6121 <th><a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
6130 Fuzz testing: Parser22
6132 http://===r:::https://b
6137 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
6142 # Known to produce bad XML for now
6144 # Note: the current result listed for this is not what the original one was,
6145 # but the original bug was JavaScript injection, which is fixed in any case.
6146 # It's not clear that the original result listed was any more correct than the
6147 # current one. Original result:
6150 # <u class="|">}}}} >
6151 # <br style="onmouseover='alert(document.cookie);'" />
6153 # MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6159 # Known to produce bad XML for now
6161 Fuzz testing: Parser24
6168 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
6169 <br style="onmouseover='alert(document.cookie);' " />
6171 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6175 <u class="|">}}}} >
6176 <br style="onmouseover='alert(document.cookie);'" />
6177 </p><p>MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6188 # Note: the current result listed for this is not what the original one was,
6189 # but the original bug was JavaScript injection, which is fixed in any case.
6190 # It's not clear that the original result listed was any more correct than the
6191 # current one. Original result:
6194 # <li class="||">
6195 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6197 Fuzz testing: Parser25 (bug 6055)
6203 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
6205 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6210 Fuzz testing: URL adjacent extension (with space, clean)
6213 http://example.com <nowiki>junk</nowiki>
6215 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
6220 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
6223 http://example.com<nowiki>junk</nowiki>
6225 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
6230 Fuzz testing: URL adjacent extension (no space, dirty; pre)
6233 http://example.com<pre>junk</pre>
6235 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
6240 Fuzz testing: image with bogus manual thumbnail
6242 [[Image:foobar.jpg|thumbnail= ]]
6244 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
6249 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
6251 <pre dir=" "></pre>
6253 <pre dir=" "></pre>
6258 Parsing optional HTML elements (Bug 6171)
6263 <td> Some tabular data</td>
6264 <td> More tabular data ...
6265 <td> And yet som tabular data</td>
6271 <td> Some tabular data</td>
6272 <td> More tabular data ...
6273 </td><td> And yet som tabular data</td>
6280 Correct handling of <td>, <tr> (Bug 6171)
6285 <td> Some tabular data</td>
6286 <td> More tabular data ...</td>
6287 <td> And yet som tabular data</td>
6293 <td> Some tabular data</td>
6294 <td> More tabular data ...</td>
6295 <td> And yet som tabular data</td>
6303 Parsing crashing regression (fr:JavaScript)
6307 <p></body></x>
6312 Inline wiki vs wiki block nesting
6318 <p><b>Bold paragraph</b>
6319 </p><p>New wiki paragraph
6324 Inline HTML vs wiki block nesting
6332 <p><b>Bold paragraph</b>
6333 </p><p>New wiki paragraph
6337 # Original result was this:
6338 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6340 # While that might be marginally more intuitive, maybe, the six-apostrophe
6341 # construct is clearly pathological and the result stated here (which is what
6342 # the parser actually does) is about as reasonable as anything.
6344 Mixing markup for italics and bold
6347 '''bold''''''bold''bolditalics'''''
6349 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
6357 Article for special page transclusion test
6361 Special page transclusion
6364 {{Special:Prefixindex/Xyzzyx}}
6368 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6373 Special page transclusion twice (bug 5021)
6376 {{Special:Prefixindex/Xyzzyx}}
6377 {{Special:Prefixindex/Xyzzyx}}
6381 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6384 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6389 Transclusion of default MediaWiki message
6391 {{MediaWiki:Mainpage}}
6398 Transclusion of nonexistent MediaWiki message
6400 {{MediaWiki:Mainpagexxx}}
6402 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6407 Transclusion of MediaWiki message with underscore
6409 {{MediaWiki:history_short}}
6416 Transclusion of MediaWiki message with space
6418 {{MediaWiki:history short}}
6425 Invalid header with following text
6435 Section extraction test (section 0)
6455 Section extraction test (section 1)
6477 Section extraction test (section 2)
6498 Section extraction test (section 3)
6518 Section extraction test (section 4)
6542 Section extraction test (section 5)
6562 Section extraction test (section 6)
6583 Section extraction test (section 7)
6603 Section extraction test (section 8)
6623 Section extraction test (section 9)
6644 Section extraction test (section 10)
6664 Section extraction test (nonexistent section 11)
6683 Section extraction test with bogus heading (section 1)
6688 ==bogus== not a legal section
6692 ==bogus== not a legal section
6696 Section extraction test with bogus heading (section 2)
6701 ==bogus== not a legal section
6708 Section extraction test with comment after heading (section 1)
6720 Section extraction test with comment after heading (section 2)
6732 Section extraction test with bogus <nowiki> heading (section 1)
6737 ==bogus== <nowiki>not a legal section</nowiki>
6741 ==bogus== <nowiki>not a legal section</nowiki>
6745 Section extraction test with bogus <nowiki> heading (section 2)
6750 ==bogus== <nowiki>not a legal section</nowiki>
6757 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6758 # instead of respecting commented sections
6760 Section extraction prefixed by comment (section 1)
6771 Section extraction prefixed by comment (section 2)
6782 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6783 # instead of respecting HTML-style headings
6785 Section extraction, mixed wiki and html (section 1)
6801 Section extraction, mixed wiki and html (section 2)
6817 # Formerly testing for bug 3342
6819 Section extraction, heading surrounded by <noinclude>
6823 <noinclude>==unmarked==</noinclude>
6829 # Test behaviour of bug 19910
6831 Sectiion with all-equals
6836 The line above must have a trailing space
6839 But just in case it doesn't...
6843 But just in case it doesn't...
6847 Section replacement test (section 0)
6878 Section replacement test (section 1)
6907 Section replacement test (section 2)
6937 Section replacement test (section 3)
6968 Section replacement test (section 4)
6995 Section replacement test (section 5)
7026 Section replacement test (section 6)
7056 Section replacement test (section 7)
7087 Section replacement test (section 8)
7118 Section replacement test (section 9)
7147 Section replacement test (section 10)
7177 Section replacement test with initial whitespace (bug 13728)
7181 Preformatted initial line
7185 Preformatted initial line
7192 Section extraction, heading followed by pre with 20 spaces (bug 6398)
7204 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
7217 Section extraction, <pre> around bogus header (bug 10309)
7234 Section replacement, <pre> around bogus header (bug 10309)
7236 noxml replace=2,"xxx"
7257 Handling of 
 in URLs
7261 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
7268 5 quotes, code coverage +1 line
7275 Special:Search page linking.
7279 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
7294 * {{SUBJECTPAGENAME}}
7295 * {{SUBJECTPAGENAMEE}}
7302 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7304 <ul><li> Parser test
7305 </li><li> Parser test
7306 </li><li> Parser test
7307 </li><li> Parser_test
7308 </li><li> Parser test
7309 </li><li> Parser_test
7310 </li><li> Talk:Parser test
7311 </li><li> Talk:Parser_test
7312 </li><li> Parser test
7313 </li><li> Parser_test
7320 </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>
7324 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
7334 image4 |300px| centre
7335 image5.svg| http://///////
7340 <ul class="gallery">
7341 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7342 <div style="height: 150px;">Image1.png</div>
7343 <div class="gallerytext">
7346 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7347 <div style="height: 150px;">Image2.gif</div>
7348 <div class="gallerytext">
7353 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7354 <div style="height: 150px;">Image3</div>
7355 <div class="gallerytext">
7358 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7359 <div style="height: 150px;">Image4</div>
7360 <div class="gallerytext">
7365 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7366 <div style="height: 150px;">Image5.svg</div>
7367 <div class="gallerytext">
7368 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
7372 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7373 <div style="height: 150px;">* image6</div>
7374 <div class="gallerytext">
7382 Gallery (with options)
7384 <gallery widths='60px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
7385 File:Nonexistant.jpg|caption
7386 File:Nonexistant.jpg
7387 image:foobar.jpg|some '''caption''' [[Main Page]]
7389 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
7392 <ul class="gallery" style="max-width: 206px;_width: 206px;">
7393 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
7394 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7395 <div style="height: 70px;">Nonexistant.jpg</div>
7396 <div class="gallerytext">
7401 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7402 <div style="height: 70px;">Nonexistant.jpg</div>
7403 <div class="gallerytext">
7406 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7407 <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>
7408 <div class="gallerytext">
7409 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7413 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7414 <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>
7415 <div class="gallerytext">
7418 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
7419 <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>
7420 <div class="gallerytext">
7430 Gallery with wikitext inside caption
7433 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
7434 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
7437 <ul class="gallery">
7438 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7439 <div class="thumb" style="width: 150px;"><div style="margin:66px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7440 <div class="gallerytext">
7441 <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>
7445 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7446 <div class="thumb" style="width: 150px;"><div style="margin:66px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7447 <div class="gallerytext">
7448 <p>This is a test template
7457 gallery (with showfilename option)
7459 <gallery showfilename>
7460 File:Nonexistant.jpg|caption
7461 File:Nonexistant.jpg
7462 image:foobar.jpg|some '''caption''' [[Main Page]]
7466 <ul class="gallery">
7467 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7468 <div style="height: 150px;">Nonexistant.jpg</div>
7469 <div class="gallerytext">
7470 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7475 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7476 <div style="height: 150px;">Nonexistant.jpg</div>
7477 <div class="gallerytext">
7478 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7482 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7483 <div class="thumb" style="width: 150px;"><div style="margin:66px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7484 <div class="gallerytext">
7485 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7486 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7490 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7491 <div class="thumb" style="width: 150px;"><div style="margin:66px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7492 <div class="gallerytext">
7493 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7502 Gallery (with namespace-less filenames)
7505 File:Nonexistant.jpg
7511 <ul class="gallery">
7512 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7513 <div style="height: 150px;">Nonexistant.jpg</div>
7514 <div class="gallerytext">
7517 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7518 <div style="height: 150px;">Nonexistant.jpg</div>
7519 <div class="gallerytext">
7522 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7523 <div class="thumb" style="width: 150px;"><div style="margin:66px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7524 <div class="gallerytext">
7527 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7528 <div class="thumb" style="width: 150px;"><div style="margin:66px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7529 <div class="gallerytext">
7537 HTML Hex character encoding (spells the word "JavaScript")
7539 JavaScript
7541 <p>JavaScript
7546 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7550 <p>&#xsee;&#XSEE;
7555 HTML Hex character encoding mixed case
7564 __FORCETOC__ override
7576 ISBN 978-0-1234-56 789
7578 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7583 ISBN followed by 5 spaces
7594 ISBN ISBN 1234567890
7596 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7601 Bug 22905: <abbr> followed by ISBN followed by </a>
7603 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7605 <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>
7614 <p>RFC <a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc1234">RFC 1234</a>
7619 Double RFC with a wiki link
7623 <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>
7632 <p><a class="external mw-magiclink-rfc" href="http://tools.ietf.org/html/rfc983">RFC 983</a> 987
7637 Centre-aligned image
7639 [[Image:foobar.jpg|centre]]
7641 <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>
7648 [[Image:foobar.jpg|none]]
7650 <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>
7655 Width + Height sized image (using px) (height is ignored)
7657 [[Image:foobar.jpg|640x480px]]
7659 <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>
7664 Width-sized image (using px, no following whitespace)
7666 [[Image:foobar.jpg|640px]]
7668 <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>
7673 Width-sized image (using px, with following whitespace - test regression from r39467)
7675 [[Image:foobar.jpg|640px ]]
7677 <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>
7682 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7684 [[Image:foobar.jpg| 640px]]
7686 <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>
7691 Another italics / bold test
7699 # Note the results may be incorrect, as parserTest output included this:
7700 # XML error: Mismatched tag at byte 6120:
7701 # ...<dd> </dt></dl> </dd...
7709 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7720 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7722 Images with the "|" character in the comment
7724 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7726 <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>
7731 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7733 <html><script>alert(1);</script></html>
7735 <p><html><script>alert(1);</script></html>
7740 HTML with raw HTML ($wgRawHtml==true)
7744 <html><script>alert(1);</script></html>
7746 <p><script>alert(1);</script>
7751 Parents of subpages, one level up
7753 subpage title=[[Subpage test/L1/L2/L3]]
7757 <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>
7763 Parents of subpages, one level up, not named
7765 subpage title=[[Subpage test/L1/L2/L3]]
7769 <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>
7776 Parents of subpages, two levels up
7778 subpage title=[[Subpage test/L1/L2/L3]]
7784 <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
7785 </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>
7790 Parents of subpages, two levels up, without trailing slash or name.
7792 subpage title=[[Subpage test/L1/L2/L3]]
7801 Parents of subpages, two levels up, with lots of extra trailing slashes.
7803 subpage title=[[Subpage test/L1/L2/L3]]
7807 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7812 Definition list code coverage
7818 <dl><dt> title  </dt><dd> def
7819 </dd><dt> title </dt><dd> def
7820 </dd><dt>title</dt><dd> def
7826 Don't fall for the self-closing div
7828 <div>hello world</div/>
7830 <div>hello world</div>
7839 <p>[[:Template:Msg]]
7848 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7852 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7854 Always escape literal '>' in output, not just after '<'
7868 <p>This is a test template
7869 This is a test template
7881 Inclusion of !userCanEdit() content
7885 <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>
7891 Out-of-order TOC heading levels
7900 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7902 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7904 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7905 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7908 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7910 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7911 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7916 <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>
7917 <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>
7918 <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>
7919 <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>
7920 <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>
7921 <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>
7927 ISBN with a dummy number
7937 ISBN with space-delimited number
7941 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7947 ISBN with multiple spaces, no number
7966 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7967 </p><p>ISBN 12345678901
7973 ISBN with trailing year (bug 8110)
7975 ISBN 1-234-56789-0 - 2006
7977 ISBN 1 234 56789 0 - 2006
7979 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7980 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7988 {{anchorencode:foo bar©#%n}}
7990 <p>foo_bar.C2.A9.23.25n
7995 anchorencode trims spaces
7997 {{anchorencode: __pretty__please__}}
8004 anchorencode deals with links
8006 {{anchorencode: [[hello|world]] [[hi]]}}
8013 anchorencode deals with templates
8015 {{anchorencode: {{Foo}} }}
8022 anchorencode encodes like the TOC generator: (bug 18431)
8024 === _ +:.3A%3A&&]] ===
8025 {{anchorencode: _ +:.3A%3A&&]] }}
8028 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
8029 <p>.2B:.3A.253A.26.26.5D.5D
8033 # Expected output in the following test is not necessarily expected (there
8034 # should probably be <p> tags inside the <blockquote> in the output) -- it's
8035 # only testing for well-formedness.
8037 Bug 6200: blockquotes and paragraph formatting
8057 Bug 8293: Use of center tag ruins paragraph formatting
8079 ### Language variants related tests
8082 Self-link in language variants
8084 title=[[Dunav]] language=sr
8086 Both [[Dunav]] and [[Дунав]] are names for this river.
8088 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
8094 Link to pages in language variants
8098 Main Page can be written as [[Маин Паге]]
8100 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
8106 Multiple links to pages in language variants
8110 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
8112 <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>.
8118 Simple template in language variants
8124 <p>This is a test template
8130 Template with explicit namespace in language variants
8136 <p>This is a test template
8142 Basic test for template parameter in language variants
8146 {{парамтест|param=foo}}
8148 <p>This is a test template with parameter foo
8154 Simple category in language variants
8158 [[Category:МедиаWики Усер'с Гуиде]]
8160 <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>
8165 Stripping -{}- tags (language variants)
8169 Latin proverb: -{Ne nuntium necare}-
8171 <p>Latin proverb: Ne nuntium necare
8177 Prevent conversion with -{}- tags (language variants)
8179 language=sr variant=sr-ec
8181 Latinski: -{Ne nuntium necare}-
8183 <p>Латински: Ne nuntium necare
8189 Prevent conversion of text with -{}- tags (language variants)
8191 language=sr variant=sr-ec
8193 Latinski: -{Ne nuntium necare}-
8195 <p>Латински: Ne nuntium necare
8201 Prevent conversion of links with -{}- tags (language variants)
8203 language=sr variant=sr-ec
8207 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8213 -{}- tags within headlines (within html for parserConvert())
8215 language=sr variant=sr-ec
8219 <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>
8225 Explicit definition of language variant alternatives
8227 language=zh variant=zh-tw
8229 -{zh:China;zh-tw:Taiwan}-, not China
8231 <p>Taiwan, not China
8237 Explicit session-wise language variant mapping (A flag and - flag)
8239 language=zh variant=zh-tw
8241 Taiwan is not China.
8242 But -{A|zh:China;zh-tw:Taiwan}- is China,
8243 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
8244 and -{China}- is China.
8246 <p>Taiwan is not China.
8247 But Taiwan is Taiwan,
8248 (This should be stripped!)
8254 Explicit session-wise language variant mapping (H flag for hide)
8256 language=zh variant=zh-tw
8258 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
8261 <p>(This should be stripped!)
8267 Adding explicit conversion rule for title (T flag)
8269 language=zh variant=zh-tw showtitle
8271 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8274 <p>Should be stripped!
8279 Testing that changing the language variant here in the tests actually works
8281 language=zh variant=zh showtitle
8283 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8286 <p>Should be stripped!
8291 Bug 24072: more test on conversion rule for title
8293 language=zh variant=zh-tw showtitle
8295 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8296 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8299 <p>This should be stripped!
8300 This won't take interferes with the title rule.
8305 Raw output of variant escape tags (R flag)
8307 language=zh variant=zh-tw
8309 Raw: -{R|zh:China;zh-tw:Taiwan}-
8311 <p>Raw: zh:China;zh-tw:Taiwan
8316 Nested using of manual convert syntax
8318 language=zh variant=zh-hk
8320 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8322 <p>Nested: Hello Hong Kong!
8327 Do not convert roman numbers to language variants
8329 language=sr variant=sr-ec
8333 <p>Фридрих IV је цар.
8338 Unclosed language converter markup "-{"
8349 Don't convert raw rule "-{R|=>}-" to "=>"
8366 Bug 529: Uncovered bullet
8377 Bug 529: Uncovered table already at line-start
8405 Bug 529: Uncovered bullet in parser function result
8407 * Foo {{lc:{{bullet}} }}
8416 Bug 5678: Double-parsed template argument
8418 {{lc:{{{1}}}|hello}}
8425 Bug 5678: Double-parsed template invocation
8427 {{lc:{{paramtest {{!}} param = hello }} }}
8429 <p>{{paramtest | param = hello }}
8434 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8460 Morwen/13: Unclosed link followed by heading
8467 <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>
8472 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8479 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8484 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8491 <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>
8506 Paragraphs inside divs (no extra line breaks)
8518 Paragraphs inside divs (extra line break on open)
8533 Paragraphs inside divs (extra line break on close)
8548 Paragraphs inside divs (extra line break on open and close)
8565 Nesting tags, paragraphs on lines which begin with <div>
8569 <div></div><strong>A
8578 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8580 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8584 <blockquote>Line one
8586 Line two</blockquote>
8588 <blockquote>Line one
8589 Line two</blockquote>
8594 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8601 Line two</blockquote>
8606 Line two</blockquote>
8611 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8615 <blockquote>Line one
8620 <blockquote>Line one
8628 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8647 Paragraphs inside blockquotes/divs (no extra line breaks)
8649 <blockquote><div>Line one
8651 Line two</div></blockquote>
8653 <blockquote><div>Line one
8654 Line two</div></blockquote>
8659 Paragraphs inside blockquotes/divs (extra line break on open)
8664 Line two</div></blockquote>
8669 Line two</div></blockquote>
8674 Paragraphs inside blockquotes/divs (extra line break on close)
8676 <blockquote><div>Line one
8681 <blockquote><div>Line one
8689 Paragraphs inside blockquotes/divs (extra line break on open and close)
8706 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8708 wgLinkHolderBatchSize=0
8714 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
8715 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
8716 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
8721 Free external link invading image caption
8723 [[Image:Foobar.jpg|thumb|http://x|hello]]
8725 <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>
8730 Bug 15196: localised external link numbers
8734 [http://en.wikipedia.org/]
8736 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8741 Multibyte character in padleft
8743 {{padleft:-Hello|7|Æ}}
8750 Multibyte character in padright
8752 {{padright:Hello-|7|Æ}}
8765 <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>
8770 formatdate parser function
8772 {{#formatdate:2009-03-24}}
8774 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8779 formatdate parser function, with default format
8781 {{#formatdate:2009-03-24|mdy}}
8783 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8788 Linked date with autoformatting disabled
8790 wgUseDynamicDates=false
8794 <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>
8799 Spacing of numbers in formatted dates
8801 {{#formatdate:January 15}}
8803 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8808 Spacing of numbers in formatted dates (linked)
8810 wgUseDynamicDates=true
8814 <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>
8827 Edit comment with link
8831 I like the [[Main Page]] a lot
8833 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
8837 Edit comment with link and link text
8841 I like the [[Main Page|best pages]] a lot
8843 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8847 Edit comment with link and link text with suffix
8851 I like the [[Main Page|best page]]s a lot
8853 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8857 Edit comment with section link (non-local, eg in history list)
8859 comment title=[[Main Page]]
8861 /* External links */ removed bogus entries
8863 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
8867 Edit comment with section link (local, eg in diff view)
8869 comment local title=[[Main Page]]
8871 /* External links */ removed bogus entries
8873 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
8877 Edit comment with subpage link (bug 14080)
8881 title=[[Subpage test]]
8883 Poked at a [[/subpage]] here...
8885 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8889 Edit comment with subpage link and link text (bug 14080)
8893 title=[[Subpage test]]
8895 Poked at a [[/subpage|neat little page]] here...
8897 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8901 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8904 title=[[Subpage test]]
8906 Poked at a [[/subpage]] here...
8908 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8912 Edit comment with bare anchor link (local, as on diff)
8920 <a href="#section">#section</a>
8924 Edit comment with bare anchor link (non-local, as on history)
8931 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8935 Anchor starting with underscore
8939 <p><a href="#_ref">One</a>
8944 Id starting with underscore
8946 <div id="_ref"></div>
8948 <div id="_ref"></div>
8953 Space normalisation on autocomment (bug 22784)
8958 /* __hello__world__ */
8960 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
8964 percent-encoding and + signs in comments (Bug 26410)
8968 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8970 <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>
8974 Bad images - basic functionality
8981 Bad images - bug 16039: text after bad image disappears
8993 Verify that displaytitle works (bug #22501) no displaytitle
8997 wgAllowDisplayTitle=true
8998 wgRestrictDisplayTitle=false
9000 this is not the the title
9003 <p>this is not the the title
9008 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
9013 wgAllowDisplayTitle=true
9014 wgRestrictDisplayTitle=false
9016 this is not the the title
9017 {{DISPLAYTITLE:whatever}}
9020 <p>this is not the the title
9025 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
9030 wgAllowDisplayTitle=true
9031 wgRestrictDisplayTitle=true
9033 this is not the the title
9034 {{DISPLAYTITLE:whatever}}
9037 <p>this is not the the title
9042 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
9047 wgAllowDisplayTitle=true
9048 wgRestrictDisplayTitle=true
9050 this is not the the title
9051 {{DISPLAYTITLE:screen}}
9054 <p>this is not the the title
9059 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
9064 wgAllowDisplayTitle=false
9066 this is not the the title
9067 {{DISPLAYTITLE:screen}}
9070 <p>this is not the the title
9071 <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>
9076 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
9081 wgAllowDisplayTitle=false
9083 this is not the the title
9086 <p>this is not the the title
9091 preload: check <noinclude> and <includeonly>
9095 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
9101 preload: check <onlyinclude>
9105 Goodbye <onlyinclude>Hello world</onlyinclude>
9111 preload: can pass tags through if we want to
9115 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
9117 <includeonly>Hello world</includeonly>
9121 preload: check that it doesn't try to do tricks
9125 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9127 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9131 Play a bit with r67090 and bug 3158
9135 <div style="width:50% !important"> </div>
9136 <div style="width:50% !important"> </div>
9137 <div style="width:50% !important"> </div>
9138 <div style="border : solid;"> </div>
9140 <div style="width:50% !important"> </div>
9141 <div style="width:50% !important"> </div>
9142 <div style="width:50% !important"> </div>
9143 <div style="border : solid;"> </div>
9148 HTML5 data attributes
9150 <span data-foo="bar">Baz</span>
9151 <p data-abc-def_hij="">Quuz</p>
9153 <p><span data-foo="bar">Baz</span>
9155 <p data-abc-def_hij="">Quuz</p>
9160 percent-encoding and + signs in internal links (Bug 26410)
9162 [[User:+%]] [[Page+title%]]
9163 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
9164 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
9165 [[%33%45]] [[%33%45+]]
9167 <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>
9168 <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>
9169 <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>
9170 <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>
9175 Special characters in embedded file links (bug 27679)
9177 [[File:Contains & ampersand.jpg]]
9178 [[File:Does not exist.jpg|Title with & ampersand]]
9180 <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>
9181 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
9192 Try for 100% code coverage