1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
75 This is a simple paragraph.
77 <p>This is a simple paragraph.
97 * plain''italic''plain
98 * plain''italic''plain''italic''plain
99 * plain'''bold'''plain
100 * plain'''bold'''plain'''bold'''plain
101 * plain''italic''plain'''bold'''plain
102 * plain'''bold'''plain''italic''plain
103 * plain''italic'''bold-italic'''italic''plain
104 * plain'''bold''bold-italic''bold'''plain
105 * plain'''''bold-italic'''italic''plain
106 * plain'''''bold-italic''bold'''plain
107 * plain''italic'''bold-italic'''''plain
108 * plain'''bold''bold-italic'''''plain
109 * plain l'''italic''plain
110 * plain l''''bold''' plain
113 </li><li> plain<i>italic</i>plain
114 </li><li> plain<i>italic</i>plain<i>italic</i>plain
115 </li><li> plain<b>bold</b>plain
116 </li><li> plain<b>bold</b>plain<b>bold</b>plain
117 </li><li> plain<i>italic</i>plain<b>bold</b>plain
118 </li><li> plain<b>bold</b>plain<i>italic</i>plain
119 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
120 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
121 </li><li> plain<i><b>bold-italic</b>italic</i>plain
122 </li><li> plain<b><i>bold-italic</i>bold</b>plain
123 </li><li> plain<i>italic<b>bold-italic</b></i>plain
124 </li><li> plain<b>bold<i>bold-italic</i></b>plain
125 </li><li> plain l'<i>italic</i>plain
126 </li><li> plain l'<b>bold</b> plain
132 ### <nowiki> test cases
136 <nowiki> unordered list
138 <nowiki>* This is not an unordered list item.</nowiki>
140 <p>* This is not an unordered list item.
147 <nowiki>Lorem ipsum dolor
168 :There is not nowiki.
169 :There is <nowiki>nowiki</nowiki>.
171 #There is not nowiki.
172 #There is <nowiki>nowiki</nowiki>.
174 *There is not nowiki.
175 *There is <nowiki>nowiki</nowiki>.
177 <dl><dd>There is not nowiki.
178 </dd><dd>There is nowiki.
180 <ol><li>There is not nowiki.
181 </li><li>There is nowiki.
183 <ul><li>There is not nowiki.
184 </li><li>There is nowiki.
196 <!-- comment 1 --> asdf
232 asdf<!-- comment 1 -->jkl
242 <!-- foo --> b <!-- bar -->
256 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
262 Comment semantics and delimiters
264 <!-- --><!----><!-----><!------>
270 Comment semantics and delimiters, redux
272 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
273 -- foo -- funky huh? ... -->
279 Comment semantics and delimiters: directors cut
281 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
282 everything starting with < followed by !-- until the first -- and > we see,
283 that wouldn't be valid XML however, since in XML -- has to terminate a comment
291 Comment semantics: nesting
293 <!--<!-- no, we're not going to do anything fancy here -->-->
300 Comment semantics: unclosed comment at end
302 <!--This comment will run out to the end of the document
308 Comment in template title
317 Comment on its own line post-expand
329 ### Preformatted text
338 And a [[Main Page|link]]
344 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
349 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
366 Regression with preformatted in <center>
379 # Expected output in the following test is not really expected (there should be
380 # <pre> in the output) -- it's only testing for well-formedness.
382 Bug 6200: Preformatted in <blockquote>
395 <pre> with attributes (bug 3202)
397 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
399 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
404 <pre> with width attribute (bug 3202)
406 <pre width="8">Narrow screen goodies</pre>
408 <pre width="8">Narrow screen goodies</pre>
413 <pre> with forbidden attribute (bug 3202)
415 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
417 <pre width="8">Narrow screen goodies</pre>
422 <pre> with forbidden attribute values (bug 3202)
424 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
426 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
431 <nowiki> inside <pre> (bug 13238)
439 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
447 <pre><nowiki>Foo</nowiki></pre>
452 <nowiki> and <pre> preference (first one wins)
491 <dl><dt> name </dt><dd> Definition
497 Definition list for indentation only
501 <dl><dd> Indented text
507 Definition list with no space
511 <dl><dt>name</dt><dd>Definition
517 Definition list with URL link
519 ; http://example.com/ : definition
521 <dl><dt> <a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a> </dt><dd> definition
527 Definition list with bracketed URL link
529 ;[http://www.example.com/ Example]:Something about it
531 <dl><dt><a href="http://www.example.com/" class="external text" rel="nofollow">Example</a></dt><dd>Something about it
537 Definition list with wikilink containing colon
539 ; [[Help:FAQ]]: The least-read page on Wikipedia
541 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
546 # At Brion's and JeLuF's insistence... :)
548 Definition list with news link containing colon
550 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
552 <dl><dt> <a href="news:alt.wikipedia.rox" class="external free" rel="nofollow">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
558 Malformed definition list with colon
560 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
562 <dl><dt> <a href="news:alt.wikipedia.rox" class="external free" rel="nofollow">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
568 Definition lists: colon in external link text
570 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
572 <dl><dt> <a href="http://www.wikipedia2.org/" class="external text" rel="nofollow">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
578 Definition lists: colon in HTML attribute
580 ;<b style="display: inline">bold</b>
582 <dl><dt><b style="display: inline">bold</b>
589 Definition lists: self-closed tag
591 ;one<br/>two : two-line fun
593 <dl><dt>one<br />two </dt><dd> two-line fun
603 External links: non-bracketed
605 Non-bracketed: http://example.com
607 <p>Non-bracketed: <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>
612 External links: numbered
614 Numbered: [http://example.com]
615 Numbered: [http://example.net]
616 Numbered: [http://example.com]
618 <p>Numbered: <a href="http://example.com" class="external autonumber" rel="nofollow">[1]</a>
619 Numbered: <a href="http://example.net" class="external autonumber" rel="nofollow">[2]</a>
620 Numbered: <a href="http://example.com" class="external autonumber" rel="nofollow">[3]</a>
625 External links: specified text
627 Specified text: [http://example.com link]
629 <p>Specified text: <a href="http://example.com" class="external text" rel="nofollow">link</a>
634 External links: trail
636 Linktrails should not work for external links: [http://example.com link]s
638 <p>Linktrails should not work for external links: <a href="http://example.com" class="external text" rel="nofollow">link</a>s
643 External links: dollar sign in URL
645 http://example.com/1$2345
647 <p><a href="http://example.com/1$2345" class="external free" rel="nofollow">http://example.com/1$2345</a>
652 External links: dollar sign in URL (named)
654 [http://example.com/1$2345]
656 <p><a href="http://example.com/1$2345" class="external autonumber" rel="nofollow">[1]</a>
661 External links: open square bracket forbidden in URL (bug 4377)
663 http://example.com/1[2345
665 <p><a href="http://example.com/1" class="external free" rel="nofollow">http://example.com/1</a>[2345
670 External links: open square bracket forbidden in URL (named) (bug 4377)
672 [http://example.com/1[2345]
674 <p><a href="http://example.com/1" class="external text" rel="nofollow">[2345</a>
679 External links: nowiki in URL link text (bug 6230)
681 [http://example.com/ <nowiki>''example site''</nowiki>]
683 <p><a href="http://example.com/" class="external text" rel="nofollow">''example site''</a>
688 External links: newline forbidden in text (bug 6230 regression check)
690 [http://example.com/ first
693 <p>[<a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a> first
701 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
703 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
708 External image from https
710 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
712 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
717 Link to non-http image, no img tag
719 Link to non-http image, no img tag: ftp://example.com/test.jpg
721 <p>Link to non-http image, no img tag: <a href="ftp://example.com/test.jpg" class="external free" rel="nofollow">ftp://example.com/test.jpg</a>
726 External links: terminating separator
728 Terminating separator: http://example.com/thing,
730 <p>Terminating separator: <a href="http://example.com/thing" class="external free" rel="nofollow">http://example.com/thing</a>,
735 External links: intervening separator
737 Intervening separator: http://example.com/1,2,3
739 <p>Intervening separator: <a href="http://example.com/1,2,3" class="external free" rel="nofollow">http://example.com/1,2,3</a>
744 External links: old bug with URL in query
746 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
748 <p>Old bug with URL in query: <a href="http://example.com/thing?url=http://example.com" class="external text" rel="nofollow">link</a>
753 External links: old URL-in-URL bug, mixed protocols
755 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
757 <p>And again with mixed protocols: <a href="ftp://example.com?url=http://example.com" class="external text" rel="nofollow">link</a>
762 External links: URL in text
764 URL in text: [http://example.com http://example.com]
766 <p>URL in text: <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>
771 External links: Clickable images
773 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
775 <p>ja-style clickable images: <a href="http://example.com" class="external text" rel="nofollow"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
780 External links: raw ampersand
782 Old & use: http://x&y
784 <p>Old & use: <a href="http://x&y" class="external free" rel="nofollow">http://x&y</a>
789 External links: encoded ampersand
791 Old & use: http://x&y
793 <p>Old & use: <a href="http://x&y" class="external free" rel="nofollow">http://x&y</a>
798 External links: encoded equals (bug 6102)
800 http://example.com/?foo=bar
802 <p><a href="http://example.com/?foo=bar" class="external free" rel="nofollow">http://example.com/?foo=bar</a>
807 External links: [raw ampersand]
809 Old & use: [http://x&y]
811 <p>Old & use: <a href="http://x&y" class="external autonumber" rel="nofollow">[1]</a>
816 External links: [encoded ampersand]
818 Old & use: [http://x&y]
820 <p>Old & use: <a href="http://x&y" class="external autonumber" rel="nofollow">[1]</a>
825 External links: [encoded equals] (bug 6102)
827 [http://example.com/?foo=bar]
829 <p><a href="http://example.com/?foo=bar" class="external autonumber" rel="nofollow">[1]</a>
834 External links: [IDN ignored character reference in hostname; strip it right off]
836 [http://e‌xample.com/]
838 <p><a href="http://example.com/" class="external autonumber" rel="nofollow">[1]</a>
843 External links: IDN ignored character reference in hostname; strip it right off
845 http://e‌xample.com/
847 <p><a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a>
852 External links: www.jpeg.org (bug 554)
856 <p><a href="http://www.jpeg.org" class="external free" rel="nofollow">http://www.jpeg.org</a>
861 External links: URL within URL (original bug 2)
863 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
865 <p><a href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp" class="external autonumber" rel="nofollow">[1]</a>
870 BUG 361: URL inside bracketed URL
872 [http://www.example.com/foo http://www.example.com/bar]
874 <p><a href="http://www.example.com/foo" class="external text" rel="nofollow">http://www.example.com/bar</a>
879 BUG 361: URL within URL, not bracketed
881 http://www.example.com/foo?=http://www.example.com/bar
883 <p><a href="http://www.example.com/foo?=http://www.example.com/bar" class="external free" rel="nofollow">http://www.example.com/foo?=http://www.example.com/bar</a>
888 BUG 289: ">"-token in URL-tail
890 http://www.example.com/<hello>
892 <p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a><hello>
897 BUG 289: literal ">"-token in URL-tail
899 http://www.example.com/<b>html</b>
901 <p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a><b>html</b>
906 BUG 289: ">"-token in bracketed URL
908 [http://www.example.com/<hello> stuff]
910 <p><a href="http://www.example.com/" class="external text" rel="nofollow"><hello> stuff</a>
915 BUG 289: literal ">"-token in bracketed URL
917 [http://www.example.com/<b>html</b> stuff]
919 <p><a href="http://www.example.com/" class="external text" rel="nofollow"><b>html</b> stuff</a>
924 BUG 289: literal double quote at end of URL
926 http://www.example.com/"hello"
928 <p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a>"hello"
933 BUG 289: literal double quote in bracketed URL
935 [http://www.example.com/"hello" stuff]
937 <p><a href="http://www.example.com/" class="external text" rel="nofollow">"hello" stuff</a>
942 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
944 [http://www.example.com test]
946 <p><a href="http://www.example.com" class="external text" rel="nofollow">test</a>
951 External links: wiki links within external link (Bug 3695)
953 [http://example.com [[wikilink]] embedded in ext link]
955 <p><a href="http://example.com" class="external text" rel="nofollow"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a href="http://example.com" class="external text" rel="nofollow"> embedded in ext link</a>
960 BUG 787: Links with one slash after the url protocol are invalid
964 [http:/example.com title]
967 </p><p>[http:/example.com title]
972 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
974 ''[http://example.com text'']
975 [http://example.com '''text]'''
976 ''Something [http://example.com in italic'']
977 ''Something [http://example.com mixed''''', even bold]'''
978 '''''Now [http://example.com both''''']
980 <p><a href="http://example.com" class="external text" rel="nofollow"><i>text</i></a>
981 <a href="http://example.com" class="external text" rel="nofollow"><b>text</b></a>
982 <i>Something </i><a href="http://example.com" class="external text" rel="nofollow"><i>in italic</i></a>
983 <i>Something </i><a href="http://example.com" class="external text" rel="nofollow"><i>mixed</i><b>, even bold</b></a>
984 <i><b>Now </b></i><a href="http://example.com" class="external text" rel="nofollow"><i><b>both</b></i></a>
992 http://www.example.com/?title=AT%26T
994 <p><a href="http://www.example.com/?title=AT%26T" class="external free" rel="nofollow">http://www.example.com/?title=AT%26T</a>
999 Bug 4781, 5267: %26 in URL
1001 http://www.example.com/?title=100%25_Bran
1003 <p><a href="http://www.example.com/?title=100%25_Bran" class="external free" rel="nofollow">http://www.example.com/?title=100%25_Bran</a>
1008 Bug 4781, 5267: %28, %29 in URL
1010 http://www.example.com/?title=Ben-Hur_%281959_film%29
1012 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external free" rel="nofollow">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
1018 Bug 4781: %26 in autonumber URL
1020 [http://www.example.com/?title=AT%26T]
1022 <p><a href="http://www.example.com/?title=AT%26T" class="external autonumber" rel="nofollow">[1]</a>
1027 Bug 4781, 5267: %26 in autonumber URL
1029 [http://www.example.com/?title=100%25_Bran]
1031 <p><a href="http://www.example.com/?title=100%25_Bran" class="external autonumber" rel="nofollow">[1]</a>
1036 Bug 4781, 5267: %28, %29 in autonumber URL
1038 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1040 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external autonumber" rel="nofollow">[1]</a>
1046 Bug 4781: %26 in bracketed URL
1048 [http://www.example.com/?title=AT%26T link]
1050 <p><a href="http://www.example.com/?title=AT%26T" class="external text" rel="nofollow">link</a>
1055 Bug 4781, 5267: %26 in bracketed URL
1057 [http://www.example.com/?title=100%25_Bran link]
1059 <p><a href="http://www.example.com/?title=100%25_Bran" class="external text" rel="nofollow">link</a>
1064 Bug 4781, 5267: %28, %29 in bracketed URL
1066 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1068 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external text" rel="nofollow">link</a>
1073 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1075 Some [http://example.com/ pretty ''italics'' and stuff]!
1077 <p>Some <a href="http://example.com/" class="external text" rel="nofollow">pretty <i>italics</i> and stuff</a>!
1082 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1084 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1086 <p><i>Some </i><a href="http://example.com/" class="external text" rel="nofollow"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1091 External link containing double-single-quotes with no space separating the url from text in italics
1093 [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]].]
1095 <p><a href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm" class="external text" rel="nofollow"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
1100 URL-encoding in URL functions (single parameter)
1102 {{localurl:Some page|amp=&}}
1104 <p>/index.php?title=Some_page&amp=&
1109 URL-encoding in URL functions (multiple parameters)
1111 {{localurl:Some page|q=?&=&}}
1113 <p>/index.php?title=Some_page&q=?&amp=&
1124 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1126 Normal text. '''''Bold italic text.''''' Normal text.
1128 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1129 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1135 Unclosed and unmatched quotes
1137 '''''Bold italic text '''with bold deactivated''' in between.'''''
1139 '''''Bold italic text ''with italic deactivated'' in between.'''''
1143 ..spanning two paragraphs (should not work).'''
1145 '''Bold tag left open
1147 ''Italic tag left open
1151 <!-- Unmatching number of opening, closing tags: -->
1152 '''This year''''s election ''should'' beat '''last year''''s.
1154 ''Tom'''s car is bigger than ''Susan'''s.
1156 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1157 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1158 </p><p><b>Bold text..</b>
1159 </p><p>..spanning two paragraphs (should not work).
1160 </p><p><b>Bold tag left open</b>
1161 </p><p><i>Italic tag left open</i>
1163 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1164 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1171 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1174 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1175 # is the bare minimun required by the spec, see:
1176 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1178 A table with no data.
1184 # A table with nothing but a caption is invalid XHTML, we might want to render
1185 # this as <p>caption</p>
1187 A table with nothing but a caption
1195 </caption><tr><td></td></tr></table>
1221 Multiplication table
1223 {| border="1" cellpadding="2"
1224 |+Multiplication table
1226 ! × !! 1 !! 2 !! 3
1244 <table border="1" cellpadding="2">
1245 <caption>Multiplication table
1294 {| align=right border=1
1296 |rowspan=2| Cell 2, row 1 (and 2)
1303 <table align="right" border="1">
1307 <td rowspan="2"> Cell 2, row 1 (and 2)
1325 {| bgcolor=#ABCDEF border=2
1330 |the original table again
1338 <table bgcolor="#ABCDEF" border="2">
1346 <td>the original table again
1352 Invalid attributes in table cell (bug 1830)
1367 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1370 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1374 <td>[<a href="ftp://%7Cx" class="external free" rel="nofollow">ftp://%7Cx</a></td>
1375 <td>]" onmouseover="alert(document.cookie)">test
1387 Plain link, capitalized
1391 <p><a href="/wiki/Main_Page">Main Page</a>
1396 Plain link, uncapitalized
1400 <p><a href="/wiki/Main_Page">main Page</a>
1407 [[Main Page|The Main Page]]
1409 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1418 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1423 Broken link with fragment
1425 [[Zigzagzogzagzig#zug]]
1427 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1432 Special page link with fragment
1434 [[Special:Version#anchor]]
1436 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1441 Nonexistent special page link with fragment
1443 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1445 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1452 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1454 <p>xxx<a href="/wiki/Main_Page">main Page</a>, xxx<a href="/wiki/Main_Page">Main Page</a>, Xxx<a href="/wiki/Main_Page">main Page</a> XXX<a href="/wiki/Main_Page">main Page</a>, XXX<a href="/wiki/Main_Page">Main Page</a>
1461 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1463 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page">Main Page</a>XXX, <a href="/wiki/Main_Page">Main Page</a>!!!
1468 Link with 3 brackets
1477 Piped link with 3 brackets
1479 [[[main page|the main page]]]
1481 <p>[[[main page|the main page]]]
1486 Link with multiple pipes
1488 [[Main Page|The|Main|Page]]
1490 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1497 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1499 <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>
1504 Piped link to namespace
1506 [[Meta:Disclaimers|The disclaimers]]
1508 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1515 [[Usually caused by a typo (oops}]]
1517 <p>[[Usually caused by a typo (oops}]]
1522 Link containing % (not as a hex sequence)
1526 <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>
1531 Link containing % as a single hex sequence interpreted to char
1535 <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>
1540 Link containing % as a double hex sequence interpreted to hex sequence
1544 <p>[[7%2525 Solution]]
1549 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1550 Example for such a section: == < ==
1552 [[%23%3c]][[%23%3e]]
1554 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1559 Link containing "<#" and ">#" as a hex sequences
1561 [[%3c%23]][[%3e%23]]
1563 <p>[[%3c%23]][[%3e%23]]
1568 Link containing double-single-quotes '' (bug 4598)
1570 [[Lista d''e paise d''o munno]]
1572 <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>
1577 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1579 Some [[Link|pretty ''italics'' and stuff]]!
1581 <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>!
1586 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1588 ''Some [[Link|pretty ''italics'' and stuff]]!
1590 <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>
1595 Link with double quotes in title part (literal) and alternate part (interpreted)
1597 [[File:Denys Savchenko ''Pentecoste''.jpg]]
1601 [[''Pentecoste''|Pentecoste]]
1603 [[''Pentecoste''|''Pentecoste'']]
1605 <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>
1606 </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>
1607 </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>
1608 </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>
1615 [[http://www.example.com]]
1617 <p>[<a href="http://www.example.com" class="external autonumber" rel="nofollow">[1]</a>]
1621 # I'm fairly sure the expected result here is wrong.
1622 # We want these to be URL links, not pseudo-pages with URLs for titles....
1623 # However the current output is also pretty screwy.
1626 # I'm changing it to match the current output--it arguably makes more
1627 # sense in the light of the test above. Old expected result was:
1628 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1630 # But I think this test is bordering on "garbage in, garbage out" anyway.
1635 Piped link to URL: [[http://www.example.com|an example URL]]
1637 <p>Piped link to URL: [<a href="http://www.example.com%7Can" class="external text" rel="nofollow">example URL</a>]
1642 BUG 2: [[page|http://url/]] should link to page, not http://url/
1644 [[Main Page|http://url/]]
1646 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1651 BUG 337: Escaped self-links should be bold
1655 [[Bug462]] [[Bug462]]
1657 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1662 Self-link to section should not be bold
1666 [[Main Page#section]]
1668 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1679 Self-link to numeric title
1685 <p><strong class="selflink">0</strong>
1690 Link to numeric-equivalent title
1696 <p><a href="/wiki/00">00</a>
1701 <nowiki> inside a link
1703 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1705 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1710 Non-breaking spaces in title
1712 [[ Main Page ]]
1714 <p><a href="/wiki/Main_Page" title="Main Page"> Main Page </a>
1720 ### Interwiki links (see maintenance/interwiki.sql)
1724 Inline interwiki link
1726 [[MeatBall:SoftSecurity]]
1728 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw">MeatBall:SoftSecurity</a>
1733 Inline interwiki link with empty title (bug 2372)
1737 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw">MeatBall:</a>
1742 Interwiki link encoding conversion (bug 1636)
1744 *[[Wikipedia:ro:Olteniţa]]
1745 *[[Wikipedia:ro:Olteniţa]]
1747 <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>
1748 </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>
1754 Interwiki link with fragment (bug 2130)
1756 [[MeatBall:SoftSecurity#foo]]
1758 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1773 Double interlanguage link
1784 Interlanguage link, with prefix links
1796 Double interlanguage link, with prefix links (bug 8897)
1823 Incorrecly removing closing slashes from correctly formed XHTML
1825 <br style="clear:both;" />
1827 <p><br style="clear:both;" />
1832 Failing to transform badly formed HTML into correct XHTML
1838 <p><br clear="left" />
1839 <br clear="right" />
1845 Horizontal ruler (should it add that extra space?)
1859 ### Block-level elements
1882 <ol><li>Numbered list
1899 ***#Number on level 4
1901 **#Number on level 3
1902 **#Number on level 3
1907 <ol><li> with numbers
1909 <ul><li> and bullets
1911 <ol><li> and numbers
1913 </li><li>bullets again
1914 <ul><li>bullet level 2
1915 <ul><li>bullet level 3
1916 <ol><li>Number on level 4
1919 </li><li>bullet level 2
1920 <ol><li>Number on level 3
1921 </li><li>Number on level 3
1924 <ol><li>number level 2
1932 List items are not parsed correctly following a <pre> block (bug 785)
1938 <ul><li> <pre>foo</pre>
1939 </li><li> <pre>bar</pre>
1950 Magic Word: {{CURRENTDAY}}
1959 Magic Word: {{CURRENTDAY2}}
1968 Magic Word: {{CURRENTDAYNAME}}
1977 Magic Word: {{CURRENTDOW}}
1986 Magic Word: {{CURRENTMONTH}}
1995 Magic Word: {{CURRENTMONTHABBREV}}
1997 {{CURRENTMONTHABBREV}}
2004 Magic Word: {{CURRENTMONTHNAME}}
2006 {{CURRENTMONTHNAME}}
2013 Magic Word: {{CURRENTMONTHNAMEGEN}}
2015 {{CURRENTMONTHNAMEGEN}}
2022 Magic Word: {{CURRENTTIME}}
2031 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2040 Magic Word: {{CURRENTYEAR}}
2049 Magic Word: {{FULLPAGENAME}}
2051 title=[[User:Ævar Arnfjörð Bjarmason]]
2055 <p>User:Ævar Arnfjörð Bjarmason
2060 Magic Word: {{FULLPAGENAMEE}}
2062 title=[[User:Ævar Arnfjörð Bjarmason]]
2066 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2071 Magic Word: {{NAMESPACE}}
2073 title=[[User:Ævar Arnfjörð Bjarmason]]
2082 Magic Word: {{NAMESPACEE}}
2084 title=[[User:Ævar Arnfjörð Bjarmason]]
2093 Magic Word: {{NUMBEROFFILES}}
2102 Magic Word: {{PAGENAME}}
2104 title=[[User:Ævar Arnfjörð Bjarmason]]
2108 <p>Ævar Arnfjörð Bjarmason
2113 Magic Word: {{PAGENAMEE}}
2115 title=[[User:Ævar Arnfjörð Bjarmason]]
2119 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2124 Magic Word: {{REVISIONID}}
2133 Magic Word: {{SCRIPTPATH}}
2142 Magic Word: {{SERVER}}
2146 <p><a href="http://Britney-Spears" class="external free" rel="nofollow">http://Britney-Spears</a>
2151 Magic Word: {{SERVERNAME}}
2160 Magic Word: {{SITENAME}}
2169 Namespace 1 {{ns:1}}
2178 Namespace 1 {{ns:01}}
2187 Namespace 0 {{ns:0}} (bug 4783)
2195 Namespace 0 {{ns:00}} (bug 4783)
2203 Namespace -1 {{ns:-1}}
2212 Namespace User {{ns:User}}
2221 Namespace User talk {{ns:User_talk}}
2230 Namespace User talk {{ns:uSeR tAlK}}
2239 Namespace File {{ns:File}}
2248 Namespace File {{ns:Image}}
2257 Namespace (lang=de) Benutzer {{ns:User}}
2268 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2274 <p>Benutzer Diskussion
2282 {{urlencode:hi world?!}}
2283 {{urlencode:hi world?!|WIKI}}
2284 {{urlencode:hi world?!|PATH}}
2285 {{urlencode:hi world?!|QUERY}}
2298 Magic links: internal link to RFC (bug 479)
2302 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2307 Magic links: RFC (bug 479)
2311 <p><a href="http://tools.ietf.org/html/rfc822" class="external mw-magiclink-rfc">RFC 822</a>
2316 Magic links: ISBN (bug 1937)
2320 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2325 Magic links: PMID incorrectly converts space to underscore
2329 <p><a href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract" class="external mw-magiclink-pmid">PMID 1234</a>
2338 Nonexistent template
2340 {{thistemplatedoesnotexist}}
2342 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2349 This is a test template
2357 <p>This is a test template
2362 Template with explicit namespace
2366 <p>This is a test template
2374 This is a test template with parameter {{{param}}}
2380 {{paramtest|param=foo}}
2382 <p>This is a test template with parameter foo
2387 Template:paramtestnum
2393 Template unnamed parameter
2395 {{paramtestnum|Main Page|the main page}}
2397 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2402 Template:templatesimple
2408 Template:templateredirect
2410 #redirect [[Template:templatesimple]]
2414 Template:templateasargtestnum
2420 Template:templateasargtest
2422 {{template{{{templ}}}}}
2426 Template:templateasargtest2
2432 Template with template name as unnamed argument
2434 {{templateasargtestnum|templatesimple}}
2441 Template with template name as argument
2443 {{templateasargtest|templ=simple}}
2450 Template with template name as argument (2)
2452 {{templateasargtest2|templ=templatesimple}}
2459 Template:templateasargtestdefault
2461 {{{{{templ|templatesimple}}}}}
2471 Template with default value
2473 {{templateasargtestdefault}}
2480 Template with default value (value set)
2482 {{templateasargtestdefault|templ=templa}}
2491 {{templateredirect}}
2498 Template with argument in separate line
2500 {{ templateasargtest |
2508 Template with complex template as argument
2511 param ={{ templateasargtest |
2514 <p>This is a test template with parameter (test)
2519 Template with thumb image (with link in description)
2522 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2524 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>
2529 Template:complextemplate
2531 {{{1}}} {{paramtest|
2532 param ={{{param}}}}}
2536 Template with complex arguments
2539 param ={{ templateasargtest |
2540 templ = simple }}|[[Template:complextemplate|link]]}}
2542 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2547 BUG 553: link with two variables in a piped link
2550 |[[{{{1}}}|{{{2}}}]]
2555 <td>[[{{{1}}}|{{{2}}}]]
2561 Magic variable as template parameter
2563 {{paramtest|param={{SITENAME}}}}
2565 <p>This is a test template with parameter MediaWiki
2572 [[{{{param}}}|link]]
2576 Template parameter as link source
2578 {{linktest|param=Main Page}}
2580 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2588 including another template, {{paramtest|param={{{arg}}}}}
2592 Template passing argument to another template
2594 {{paramtest2|arg='hmm'}}
2596 <p>including another template, This is a test template with parameter 'hmm'
2607 Template as link source
2611 <p><a href="/wiki/Main_Page">Main Page</a>
2629 Template infinite loop
2633 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1">Template:Loop1</a></span>
2638 Template from main namespace
2657 BUG 529: Template with table, not included at beginning of line
2676 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2696 BUG 41: Template parameters shown as broken links
2708 ''None'' of '''this''' should be
2710 but rather passed unmodified
2714 # hmm, fix this or just deprecate msgnw and document its behavior?
2720 {{msgnw:MSGNW test}}
2722 <p>''None'' of '''this''' should be
2724 but rather passed unmodified
2732 {{int:youhavenewmessages|lots of money|not!}}
2734 <p>You have lots of money (not!).
2741 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2745 <includeonly> and <noinclude> being included
2756 <onlyinclude>Foo</onlyinclude>bar
2760 <onlyinclude> being included
2772 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2776 <onlyinclude> and <includeonly> being included
2785 <includeonly> and <noinclude> on a page
2787 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2794 <onlyinclude> on a page
2796 <onlyinclude>Foo</onlyinclude>bar
2803 Template:Includeonly section
2806 ==Includeonly section==
2812 Bug 6563: Edit link generation for section shown by <includeonly>
2814 {{includeonly section}}
2816 <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>
2817 <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>
2821 # Uses same input as the contents of [[Template:Includeonly section]]
2823 Bug 6563: Section extraction for section shown by <includeonly>
2828 ==Includeonly section==
2836 Bug 6563: Edit link generation for section suppressed by <includeonly>
2839 ==Includeonly section==
2843 <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>
2848 Bug 6563: Section extraction for section suppressed by <includeonly>
2853 ==Includeonly section==
2861 ### Pre-save transform tests
2864 pre-save transform: subst:
2870 This is a test template
2874 pre-save transform: normal template
2884 pre-save transform: nonexistent template
2888 {{thistemplatedoesnotexist}}
2890 {{thistemplatedoesnotexist}}
2895 pre-save transform: subst magic variables
2904 # This is bug 89, which I fixed. -- wtm
2906 pre-save transform: subst: templates with parameters
2910 {{subst:paramtest|param="something else"}}
2912 This is a test template with parameter "something else"
2918 <nowiki>'''not wiki'''</nowiki>
2922 pre-save transform: nowiki in subst (bug 1188)
2926 {{subst:nowikitest}}
2928 <nowiki>'''not wiki'''</nowiki>
2933 Template:commenttest
2935 This template has <!-- a comment --> in it.
2939 pre-save transform: comment in subst (bug 1936)
2943 {{subst:commenttest}}
2945 This template has <!-- a comment --> in it.
2949 pre-save transform: unclosed tag
2953 <nowiki>'''not wiki'''
2955 <nowiki>'''not wiki'''
2959 pre-save transform: mixed tag case
2963 <NOwiki>'''not wiki'''</noWIKI>
2965 <NOwiki>'''not wiki'''</noWIKI>
2969 pre-save transform: unclosed comment in <nowiki>
2973 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2975 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2981 <span onmouseover="alert('crap')">Oh no</span>
2985 (confirming safety of fix for subst bug 1936)
2987 {{Template:dangerous}}
2989 <p><span>Oh no</span>
2994 pre-save transform: comment containing gallery (bug 5024)
2998 <!-- <gallery>data</gallery> -->
3000 <!-- <gallery>data</gallery> -->
3004 pre-save transform: comment containing extension
3008 <!-- <tag>data</tag> -->
3010 <!-- <tag>data</tag> -->
3014 pre-save transform: comment containing nowiki
3018 <!-- <nowiki>data</nowiki> -->
3020 <!-- <nowiki>data</nowiki> -->
3024 pre-save transform: comment containing math
3028 <!-- <math>data</math> -->
3030 <!-- <math>data</math> -->
3034 pre-save transform: <noinclude> in subst (bug 3298)
3044 pre-save transform: <onlyinclude> in subst (bug 3298)
3056 {{<includeonly>subst:</includeonly>Includes}}
3060 Template:SafeSubstTest
3062 {{<includeonly>safesubst:</includeonly>Includes}}
3066 bug 22297: safesubst: works during PST
3070 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3076 bug 22297: safesubst: works during normal parse
3085 subst: does not work during normal parse
3089 <p>{{subst:Includes}}
3094 pre-save transform: context links ("pipe trick")
3098 [[Article (context)|]]
3101 [[Bar:Article (context)|]]
3102 [[:Bar:Article (context)|]]
3104 [[|Article (context)]]
3108 [[Article (context)|Article]]
3109 [[Bar:Article|Article]]
3110 [[:Bar:Article|Article]]
3111 [[Bar:Article (context)|Article]]
3112 [[:Bar:Article (context)|Article]]
3114 [[Article (context)]]
3115 [[Bar:X (Y) Z|X (Y) Z]]
3116 [[:Bar:X (Y) Z|X (Y) Z]]
3120 pre-save transform: context links ("pipe trick") with interwiki prefix
3124 [[interwiki:Article|]]
3125 [[:interwiki:Article|]]
3126 [[interwiki:Bar:Article|]]
3127 [[:interwiki:Bar:Article|]]
3129 [[interwiki:Article|Article]]
3130 [[:interwiki:Article|Article]]
3131 [[interwiki:Bar:Article|Bar:Article]]
3132 [[:interwiki:Bar:Article|Bar:Article]]
3136 pre-save transform: context links ("pipe trick") with parens in title
3138 pst title=[[Somearticle (context)]]
3142 [[Article (context)|Article]]
3146 pre-save transform: context links ("pipe trick") with comma in title
3148 pst title=[[Someplace, Somewhere]]
3151 [[Otherplace, Elsewhere|]]
3152 [[Otherplace, Elsewhere, Anywhere|]]
3154 [[Otherplace, Somewhere|Otherplace]]
3155 [[Otherplace, Elsewhere|Otherplace]]
3156 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3160 pre-save transform: context links ("pipe trick") with parens and comma
3162 pst title=[[Someplace (IGNORED), Somewhere]]
3165 [[Otherplace (place), Elsewhere|]]
3167 [[Otherplace, Somewhere|Otherplace]]
3168 [[Otherplace (place), Elsewhere|Otherplace]]
3172 pre-save transform: context links ("pipe trick") with comma and parens
3174 pst title=[[Who, me? (context)]]
3177 [[Me, Myself, and I (1937 song)|]]
3179 [[Yes, you. (context)|Yes, you.]]
3180 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3184 pre-save transform: context links ("pipe trick") with namespace
3186 pst title=[[Ns:Somearticle]]
3190 [[Ns:Article|Article]]
3194 pre-save transform: context links ("pipe trick") with namespace and parens
3196 pst title=[[Ns:Somearticle (context)]]
3200 [[Ns:Article (context)|Article]]
3204 pre-save transform: context links ("pipe trick") with namespace and comma
3206 pst title=[[Ns:Somearticle, Context, Whatever]]
3210 [[Ns:Article, Context, Whatever|Article]]
3214 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3216 pst title=[[Ns:Somearticle, Context (context)]]
3220 [[Ns:Article (context)|Article]]
3224 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3226 pst title=[[Ns:Somearticle (IGNORED), Context]]
3230 [[Ns:Article, Context|Article]]
3235 ### Message transform tests
3238 message transform: magic variables
3248 message transform: should not transform wiki markup
3258 message transform: <noinclude> in transcluded template (bug 4926)
3268 message transform: <onlyinclude> in transcluded template (bug 4926)
3278 {{#special:}} page name, known
3282 {{#special:Recentchanges}}
3284 Special:RecentChanges
3288 {{#special:}} page name with subpage, known
3292 {{#special:Recentchanges/param}}
3294 Special:RecentChanges/param
3298 {{#special:}} page name, unknown
3302 {{#special:foobarnonexistent}}
3304 No such special page
3313 [[Image:foobar.jpg]]
3315 <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>
3322 [[Image:foobar.jpg|right]]
3324 <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>
3329 Simple image (using File: namespace, now canonical)
3333 <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>
3340 [[Image:foobar.jpg|right|Caption text]]
3342 <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>
3347 Image with link parameter, wiki target
3349 [[Image:foobar.jpg|link=Target page]]
3351 <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>
3356 Image with link parameter, URL target
3358 [[Image:foobar.jpg|link=http://example.com/]]
3360 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3365 Image with empty link parameter
3367 [[Image:foobar.jpg|link=]]
3369 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3374 Image with link parameter (wiki target) and unnamed parameter
3376 [[Image:foobar.jpg|link=Target page|Title]]
3378 <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>
3383 Image with link parameter (URL target) and unnamed parameter
3385 [[Image:foobar.jpg|link=http://example.com/|Title]]
3387 <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>
3392 Thumbnail image with link parameter
3394 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
3396 <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>
3401 Image with frame and link
3403 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3405 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page">Main Page</a></div></div></div>
3410 Image with frame and link and explicit alt
3412 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3414 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Altitude" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page">Main Page</a></div></div></div>
3419 Image with wiki markup in implicit alt
3421 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3423 <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>
3428 Image with wiki markup in explicit alt
3430 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3432 <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>
3437 Link to image page- image page normally doesn't exists, hence edit link
3438 Add test with existing image page
3439 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3443 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3448 bug 18784 Link to non-existent image page with caption should use caption as link text
3450 [[:Image:test|caption]]
3452 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
3457 Frameless image caption with a free URL
3459 [[Image:foobar.jpg|http://example.com]]
3461 <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>
3466 Thumbnail image caption with a free URL
3468 [[Image:foobar.jpg|thumb|http://example.com]]
3470 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a></div></div></div>
3475 Thumbnail image caption with a free URL and explicit alt
3477 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3479 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a></div></div></div>
3484 BUG 1887: A ISBN with a thumbnail
3486 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3488 <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>
3493 BUG 1887: A RFC with a thumbnail
3495 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3497 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a href="http://tools.ietf.org/html/rfc12354" class="external mw-magiclink-rfc">RFC 12354</a></div></div></div>
3502 BUG 1887: A mailto link with a thumbnail
3504 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3506 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a href="mailto:nobody@example.com" class="external free" rel="nofollow">mailto:nobody@example.com</a></div></div></div>
3511 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
3512 so math is not stripped and turns up as escaped <math> tags.
3514 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3516 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><math>2+2</math></div></div></div>
3521 BUG 1887, part 2: A <math> with a thumbnail- math enabled
3525 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3527 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><span class="texhtml">2 + 2</span></div></div></div>
3531 # Pending resolution to bug 368
3533 BUG 648: Frameless image caption with a link
3535 [[Image:foobar.jpg|text with a [[link]] in it]]
3537 <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>
3542 BUG 648: Frameless image caption with a link (suffix)
3544 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3546 <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>
3551 BUG 648: Frameless image caption with an interwiki link
3553 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3555 <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>
3560 BUG 648: Frameless image caption with a piped interwiki link
3562 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3564 <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>
3569 Escape HTML special chars in image alt text
3571 [[Image:foobar.jpg|& < > "]]
3573 <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>
3578 BUG 499: Alt text should have Ӓ, not &1234;
3580 [[Image:foobar.jpg|♀]]
3582 <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>
3587 Broken image caption with link
3589 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3591 <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.
3596 Image caption containing another image
3598 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3600 <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>
3605 Image caption containing a newline
3607 [[Image:Foobar.jpg|This
3610 <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>
3616 Bug 3090: External links other than http: in image captions
3618 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3620 <div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="200" height="23" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This caption has <a href="irc://example.net" class="external text" rel="nofollow">irc</a> and <a href="https://example.com" class="external text" rel="nofollow">Secure</a> ext links in it.</div></div></div>
3627 #REDIRECT [[File:Barfoo.jpg]]
3633 [[Image:Barfoo.jpg]]
3635 <p><a href="/wiki/File:Barfoo.jpg">File:Barfoo.jpg</a>
3640 Missing image with uploads disabled
3644 [[Image:Foobaz.jpg]]
3646 <p><a href="/wiki/File:Foobaz.jpg">File:Foobaz.jpg</a>
3655 Subpage test/subpage
3663 subpage title=[[Subpage test]]
3667 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3672 Subpage noslash link
3674 subpage title=[[Subpage test]]
3678 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3687 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
3692 BUG 561: {{/Subpage}}
3694 subpage title=[[Page]]
3698 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
3706 Category:MediaWiki User's Guide
3714 [[:Category:MediaWiki User's Guide]]
3716 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide">Category:MediaWiki User's Guide</a>
3725 [[Category:MediaWiki User's Guide]]
3727 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3731 PAGESINCATEGORY invalid title fatal (r33546 fix)
3733 {{PAGESINCATEGORY:<bogus>}}
3740 ### Inter-language links
3743 Inter-language links
3749 [[zh:食品]]
3751 es:Alimento fr:Nourriture zh:食品
3758 Basic section headings
3765 ===Smaller headline===
3768 <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>
3771 <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>
3774 <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>
3780 Section headings with TOC
3783 === Subheadline 1 ===
3784 ===== Skipping a level =====
3785 ====== Skipping a level ======
3789 ===Another headline===
3791 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3793 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3795 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3797 <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>
3799 <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>
3806 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
3808 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
3813 <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>
3814 <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>
3815 <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>
3816 <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>
3817 <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>
3820 <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>
3824 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
3826 Handling of sections up to level 6 and beyond
3829 == Level 2 Heading==
3830 === Level 3 Heading===
3831 ==== Level 4 Heading====
3832 ===== Level 5 Heading=====
3833 ====== Level 6 Heading======
3834 ======= Level 7 Heading=======
3835 ======== Level 8 Heading========
3836 ========= Level 9 Heading=========
3837 ========== Level 10 Heading==========
3839 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3841 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
3843 <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>
3845 <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>
3847 <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>
3849 <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>
3851 <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>
3852 <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>
3853 <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>
3854 <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>
3855 <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>
3868 <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>
3869 <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>
3870 <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>
3871 <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>
3872 <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>
3873 <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>
3874 <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>
3875 <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>
3876 <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>
3877 <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>
3882 TOC regression (bug 9764)
3886 ==== title 1.1.1 ====
3891 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3893 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3895 <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>
3897 <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>
3900 <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>
3903 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3905 <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>
3910 <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>
3911 <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>
3912 <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>
3913 <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>
3914 <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>
3915 <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>
3920 TOC with wgMaxTocLevel=3 (bug 6204)
3926 ==== title 1.1.1 ====
3931 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3933 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3935 <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>
3936 <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>
3939 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3941 <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>
3946 <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>
3947 <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>
3948 <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>
3949 <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>
3950 <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>
3951 <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>
3956 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
3962 ====Section 1.1.1====
3963 ====Section 1.1.1.1====
3966 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3968 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
3970 <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>
3973 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
3976 <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>
3977 <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>
3978 <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>
3979 <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>
3980 <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>
3986 Resolving duplicate section names
3991 <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>
3992 <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>
3997 Resolving duplicate section names with differing case (bug 10721)
4002 <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>
4003 <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>
4015 Template with sections, __NOTOC__
4022 <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>
4023 <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>
4024 <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>
4025 <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>
4030 __NOEDITSECTION__ keyword
4036 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4037 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4042 Link inside a section heading
4044 ==Section with a [[Main Page|link]] in it==
4046 <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>
4051 TOC regression (bug 12077)
4058 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4060 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4062 <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>
4065 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4068 <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>
4069 <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>
4070 <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>
4075 BUG 1219 URL next to image (good)
4077 http://example.com [[Image:foobar.jpg]]
4079 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a> <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4084 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4087 The line above must have a trailing space!
4090 But just in case it doesn't...
4092 <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>
4093 <p>The line above must have a trailing space!
4095 <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>
4096 <p>But just in case it doesn't...
4101 Header with special characters (bug 25462)
4103 The tooltips shall not show entities to the user (ie. be double escaped)
4120 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4122 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4124 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4125 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4126 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4127 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4128 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4131 <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>
4134 <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>
4137 <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>
4140 <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>
4143 <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>
4149 BUG 1219 URL next to image (broken)
4151 http://example.com[[Image:foobar.jpg]]
4153 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4158 Bug 1186 news: in the middle of text
4160 http://en.wikinews.org/wiki/Wikinews:Workplace
4162 <p><a href="http://en.wikinews.org/wiki/Wikinews:Workplace" class="external free" rel="nofollow">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4168 Namespaced link must have a title
4177 Namespaced link must have a title (bad fragment version)
4179 [[Project:#fragment]]
4181 <p>[[Project:#fragment]]
4187 div with no attributes
4189 <div>HTML rocks</div>
4191 <div>HTML rocks</div>
4196 div with double-quoted attribute
4198 <div id="rock">HTML rocks</div>
4200 <div id="rock">HTML rocks</div>
4205 div with single-quoted attribute
4207 <div id='rock'>HTML rocks</div>
4209 <div id="rock">HTML rocks</div>
4214 div with unquoted attribute
4216 <div id=rock>HTML rocks</div>
4218 <div id="rock">HTML rocks</div>
4223 div with illegal double attributes
4225 <div align="center" align="right">HTML rocks</div>
4227 <div align="right">HTML rocks</div>
4232 HTML multiple attributes correction
4234 <p class="error" class="awesome">Awesome!</p>
4236 <p class="awesome">Awesome!</p>
4241 Table multiple attributes correction
4244 !+ class="error" class="awesome"| status
4249 <th class="awesome"> status
4257 <DIV ALIGN="center">HTML ROCKS</DIV>
4259 <div align="center">HTML ROCKS</div>
4265 text with amp in the middle of nowhere
4269 <p>Remember AT&T?
4274 text with character entity: eacute
4276 I always thought é was a cute letter.
4278 <p>I always thought é was a cute letter.
4283 text with undefined character entity: xacute
4285 I always thought &xacute; was a cute letter.
4287 <p>I always thought &xacute; was a cute letter.
4299 [[Media:Foobar.jpg]]
4301 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4306 Media link with text
4308 [[Media:Foobar.jpg|A neat file to look at]]
4310 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4314 # FIXME: this is still bad HTML tag nesting
4316 Media link with nasty text
4317 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4319 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4321 <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>
4326 Media link to nonexistent file (bug 1702)
4328 [[Media:No such.jpg]]
4330 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4335 Image link to nonexistent file (bug 1850 - good)
4337 [[Image:No such.jpg]]
4339 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4344 :Image link to nonexistent file (bug 1850 - bad)
4346 [[:Image:No such.jpg]]
4348 <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>
4355 Character reference normalization in link text (bug 1938)
4357 [[Main Page|this&that]]
4359 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4366 Test for unicode normalization
4368 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4372 (bug 19451) Links should refer to the normalized form.
4380 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4381 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4382 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4383 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4384 <a href="/wiki/%D7%90%D6%B7">אַ</a>
4389 Empty attribute crash test (bug 2067)
4391 <font color="">foo</font>
4393 <p><font color="">foo</font>
4398 Empty attribute crash test single-quotes (bug 2067)
4400 <font color=''>foo</font>
4402 <p><font color="">foo</font>
4407 Attribute test: equals, then nothing
4409 <font color=>foo</font>
4416 Attribute test: unquoted value
4418 <font color=x>foo</font>
4420 <p><font color="x">foo</font>
4425 Attribute test: unquoted but illegal value (hash)
4427 <font color=#x>foo</font>
4429 <p><font color="#x">foo</font>
4434 Attribute test: no value
4436 <font color>foo</font>
4438 <p><font color="color">foo</font>
4443 Bug 2095: link with three closing brackets
4447 <p><a href="/wiki/Main_Page">Main Page</a>]
4452 Bug 2095: link with pipe and three closing brackets
4456 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4461 Bug 2095: link with pipe and three closing brackets, version 2
4463 [[Main Page|[http://example.com/]]]
4465 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4475 Template:Dangerous attribute
4477 " onmouseover="alert(document.cookie)
4481 Template:Dangerous style attribute
4483 border-size: expression(alert(document.cookie))
4489 <div style="float: right; {{{1}}}">Magic div</div>
4493 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4495 <div title="{{test}}"></div>
4497 <div title="This is a test template"></div>
4502 Bug 2304: HTML attribute safety (dangerous template; 2309)
4504 <div title="{{dangerous attribute}}"></div>
4506 <div title=""></div>
4511 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4513 <div style="{{dangerous style attribute}}"></div>
4515 <div style="/* insecure input */"></div>
4520 Bug 2304: HTML attribute safety (safe parameter; 2309)
4522 {{div style|width: 200px}}
4524 <div style="float: right; width: 200px">Magic div</div>
4529 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4531 {{div style|width: expression(alert(document.cookie))}}
4533 <div style="/* insecure input */">Magic div</div>
4538 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4540 {{div style|"><script>alert(document.cookie)</script>}}
4542 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4547 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4549 {{div style|" ><script>alert(document.cookie)</script>}}
4551 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4556 Bug 2304: HTML attribute safety (link)
4558 <div title="[[Main Page]]"></div>
4560 <div title="[[Main Page]]"></div>
4565 Bug 2304: HTML attribute safety (italics)
4567 <div title="''foobar''"></div>
4569 <div title="''foobar''"></div>
4574 Bug 2304: HTML attribute safety (bold)
4576 <div title="'''foobar'''"></div>
4578 <div title="'''foobar'''"></div>
4584 Bug 2304: HTML attribute safety (ISBN)
4586 <div title="ISBN 1234567890"></div>
4588 <div title="ISBN 1234567890"></div>
4593 Bug 2304: HTML attribute safety (RFC)
4595 <div title="RFC 1234"></div>
4597 <div title="RFC 1234"></div>
4602 Bug 2304: HTML attribute safety (PMID)
4604 <div title="PMID 1234567890"></div>
4606 <div title="PMID 1234567890"></div>
4611 Bug 2304: HTML attribute safety (web link)
4613 <div title="http://example.com/"></div>
4615 <div title="http://example.com/"></div>
4620 Bug 2304: HTML attribute safety (named web link)
4622 <div title="[http://example.com/ link]"></div>
4624 <div title="[http://example.com/ link]"></div>
4629 Bug 3244: HTML attribute safety (extension; safe)
4631 <div style="<nowiki>background:blue</nowiki>"></div>
4633 <div style="background:blue"></div>
4638 Bug 3244: HTML attribute safety (extension; unsafe)
4640 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4642 <div style="/* insecure input */"></div>
4647 Math section safety when disabled
4649 <math><script>alert(document.cookies);</script></math>
4651 <p><math><script>alert(document.cookies);</script></math>
4655 # More MSIE fun discovered by Tom Gilder
4658 MSIE CSS safety test: spurious slash
4660 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4662 <div style="/* insecure input */">evil</div>
4667 MSIE CSS safety test: hex code
4669 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4671 <div style="/* insecure input */">evil</div>
4676 MSIE CSS safety test: comment in url
4678 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4680 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4685 MSIE CSS safety test: comment in expression
4687 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4689 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4695 Table attribute legitimate extension
4698 !+ style="<nowiki>color:blue</nowiki>"| status
4703 <th style="color:blue"> status
4709 Table attribute safety
4712 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4717 <th style="/* insecure input */"> status
4723 CSS line continuation 1
4725 <div style="background-image: u\ rl(test.jpg);"></div>
4727 <div style="/* insecure input */"></div>
4732 CSS line continuation 2
4734 <div style="background-image: u\ rl(test.jpg); "></div>
4736 <div style="/* insecure input */"></div>
4747 Expansion of multi-line templates in attribute values (bug 6255)
4749 <div style="background: {{identity|#00FF00}}">-</div>
4751 <div style="background: #00FF00">-</div>
4757 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
4759 <div style="background:
4762 <div style="background: #00FF00">-</div>
4767 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
4769 <div style="background: #00FF00">-</div>
4771 <div style="background: #00FF00">-</div>
4776 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
4779 Parser hook: empty input
4792 Parser hook: empty input using terminated empty elements
4805 Parser hook: empty input using terminated empty elements (space before)
4818 Parser hook: basic input
4832 Parser hook: case insensitive
4846 Parser hook: case insensitive, redux
4859 Parser hook: nested tags
4863 <tag><tag></tag></tag>
4874 Parser hook: basic arguments
4876 <tag width=200 height = "100" depth = '50' square></tag>
4895 Parser hook: argument containing a forward slash (bug 5344)
4897 <tag filename='/tmp/bla'></tag>
4903 string(8) "/tmp/bla"
4910 Parser hook: empty input using terminated empty elements (bug 2374)
4924 # </tag> should be output literally since there is no matching tag that begins it
4926 Parser hook: basic arguments using terminated empty elements (bug 2374)
4928 <tag width=200 height = "100" depth = '50' square/>
4951 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
4955 Parser hook: static parser hook not inside a comment
4957 <statictag>hello, world</statictag>
4958 <statictag action=flush/>
4966 Parser hook: static parser hook inside a comment
4968 <!-- <statictag>hello, world</statictag> -->
4969 <statictag action=flush/>
4975 # Nested template calls; this case was broken by Parser.php rev 1.506,
4979 Template:One-parameter
4981 (My parameter is: {{{1}}})
4985 Template:Map-one-parameter
4991 Nested template calls
4993 {{Map-one-parameter|One-parameter|param}}
4995 <p>(My parameter is: param)
5004 Sanitizer: Closing of open tags
5006 <s></s><table></table>
5008 <s></s><table></table>
5013 Sanitizer: Closing of open but not closed tags
5022 Sanitizer: Closing of closed but not open tags
5031 Sanitizer: Closing of closed but not open table tags
5033 Table not started</td></tr></table>
5035 <p>Table not started</td></tr></table>
5040 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5042 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5044 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5049 Sanitizer: Validating the contents of the id attribute (bug 4515)
5055 Something, but definitely not <br id="9" />...
5059 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5063 <br id="foo" /><br id="foo" />
5065 Something need to be done. foo-2 ?
5069 Language converter: output gets cut off unexpectedly (bug 5757)
5073 this bit is safe: }-
5075 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5077 then we get cut off here: }-
5079 all additional text is vanished
5081 <p>this bit is safe: }-
5082 </p><p>but if we add a conversion instance: xxx
5083 </p><p>then we get cut off here: }-
5084 </p><p>all additional text is vanished
5089 Self closed html pairs (bug 5487)
5092 <center><font id="bug" />Centered text</center>
5093 <div><font id="bug2" />In div text</div>
5095 <center><font id="bug" />Centered text</center>
5096 <div><font id="bug2" />In div text</div>
5105 Punctuation: nbsp before exclamation
5109 <p>C'est grave !
5114 Punctuation: CSS !important (bug 11874)
5116 <div style="width:50% !important">important</div>
5118 <div style="width:50% !important">important</div>
5123 Punctuation: CSS ! important (bug 11874; with space after)
5125 <div style="width:50% ! important">important</div>
5127 <div style="width:50% ! important">important</div>
5133 HTML bullet list, closed tags (bug 5497)
5148 HTML bullet list, unclosed tags (bug 5497)
5165 HTML ordered list, closed tags (bug 5497)
5180 HTML ordered list, unclosed tags (bug 5497)
5197 HTML nested bullet list, closed tags (bug 5497)
5222 HTML nested bullet list, open tags (bug 5497)
5247 HTML nested ordered list, closed tags (bug 5497)
5272 HTML nested ordered list, open tags (bug 5497)
5297 HTML ordered list item with parameters oddity
5299 <ol><li id="fragment">One</li></ol>
5301 <ol><li id="fragment">One</li></ol>
5306 bug 5918: autonumbering
5308 [http://first/] [http://second] [ftp://ftp]
5312 [mailto:enclosed@mail.tld With target]
5314 [mailto:enclosed@mail.tld]
5316 mailto:inline@mail.tld
5318 <p><a href="http://first/" class="external autonumber" rel="nofollow">[1]</a> <a href="http://second" class="external autonumber" rel="nofollow">[2]</a> <a href="ftp://ftp" class="external autonumber" rel="nofollow">[3]</a>
5319 </p><p><a href="ftp://inlineftp" class="external free" rel="nofollow">ftp://inlineftp</a>
5320 </p><p><a href="mailto:enclosed@mail.tld" class="external text" rel="nofollow">With target</a>
5321 </p><p><a href="mailto:enclosed@mail.tld" class="external autonumber" rel="nofollow">[4]</a>
5322 </p><p><a href="mailto:inline@mail.tld" class="external free" rel="nofollow">mailto:inline@mail.tld</a>
5328 # Security and HTML correctness
5329 # From Nick Jenkins' fuzz testing
5333 Fuzz testing: Parser13
5348 Fuzz testing: Parser14
5353 <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>
5354 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5356 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5363 Fuzz testing: Parser14-table
5368 <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>
5369 <table style="__TOC__">
5375 # Known to produce bogus xml (extra </td>)
5377 Fuzz testing: Parser16
5397 Fuzz testing: Parser21
5400 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5405 <th> <a href="irc://{{ftp://a" class="external free" rel="nofollow">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5415 Fuzz testing: Parser22
5417 http://===r:::https://b
5421 <p><a href="http://===r:::https://b" class="external free" rel="nofollow">http://===r:::https://b</a>
5429 # Known to produce bad XML for now
5431 Fuzz testing: Parser24
5438 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5439 <br style="onmouseover='alert(document.cookie);' " />
5441 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5446 <u class="|">}}}} >
5447 <br style="onmouseover='alert(document.cookie);'" />
5449 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5458 # Note: the current result listed for this is not what the original one was,
5459 # but the original bug was JavaScript injection, which is fixed in any case.
5460 # It's not clear that the original result listed was any more correct than the
5461 # current one. Original result:
5464 # <li class="||">
5465 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5467 Fuzz testing: Parser25 (bug 6055)
5473 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5475 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5480 Fuzz testing: URL adjacent extension (with space, clean)
5483 http://example.com <nowiki>junk</nowiki>
5485 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a> junk
5490 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5493 http://example.com<nowiki>junk</nowiki>
5495 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>junk
5500 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5503 http://example.com<pre>junk</pre>
5505 <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a><pre>junk</pre>
5510 Fuzz testing: image with bogus manual thumbnail
5512 [[Image:foobar.jpg|thumbnail= ]]
5514 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5519 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5521 <pre dir=" "></pre>
5523 <pre dir=" "></pre>
5528 Parsing optional HTML elements (Bug 6171)
5533 <td> Some tabular data</td>
5534 <td> More tabular data ...
5535 <td> And yet som tabular data</td>
5541 <td> Some tabular data</td>
5542 <td> More tabular data ...
5543 </td><td> And yet som tabular data</td>
5550 Correct handling of <td>, <tr> (Bug 6171)
5555 <td> Some tabular data</td>
5556 <td> More tabular data ...</td>
5557 <td> And yet som tabular data</td>
5563 <td> Some tabular data</td>
5564 <td> More tabular data ...</td>
5565 <td> And yet som tabular data</td>
5573 Parsing crashing regression (fr:JavaScript)
5577 <p></body></x>
5582 Inline wiki vs wiki block nesting
5588 <p><b>Bold paragraph</b>
5589 </p><p>New wiki paragraph
5594 Inline HTML vs wiki block nesting
5602 <p><b>Bold paragraph</b>
5603 </p><p>New wiki paragraph
5607 # Original result was this:
5608 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5610 # While that might be marginally more intuitive, maybe, the six-apostrophe
5611 # construct is clearly pathological and the result stated here (which is what
5612 # the parser actually does) is about as reasonable as anything.
5614 Mixing markup for italics and bold
5617 '''bold''''''bold''bolditalics'''''
5619 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5627 Article for special page transclusion test
5631 Special page transclusion
5634 {{Special:Prefixindex/Xyzzyx}}
5638 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5643 Special page transclusion twice (bug 5021)
5646 {{Special:Prefixindex/Xyzzyx}}
5647 {{Special:Prefixindex/Xyzzyx}}
5651 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5654 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx">Xyzzyx</a></td></tr></table>
5659 Transclusion of default MediaWiki message
5661 {{MediaWiki:Mainpage}}
5668 Transclusion of nonexistent MediaWiki message
5670 {{MediaWiki:Mainpagexxx}}
5672 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
5677 Transclusion of MediaWiki message with underscore
5679 {{MediaWiki:history_short}}
5686 Transclusion of MediaWiki message with space
5688 {{MediaWiki:history short}}
5695 Invalid header with following text
5705 Section extraction test (section 0)
5725 Section extraction test (section 1)
5747 Section extraction test (section 2)
5768 Section extraction test (section 3)
5788 Section extraction test (section 4)
5812 Section extraction test (section 5)
5832 Section extraction test (section 6)
5853 Section extraction test (section 7)
5873 Section extraction test (section 8)
5893 Section extraction test (section 9)
5914 Section extraction test (section 10)
5934 Section extraction test (nonexistent section 11)
5953 Section extraction test with bogus heading (section 1)
5958 ==bogus== not a legal section
5962 ==bogus== not a legal section
5966 Section extraction test with bogus heading (section 2)
5971 ==bogus== not a legal section
5978 Section extraction test with comment after heading (section 1)
5990 Section extraction test with comment after heading (section 2)
6002 Section extraction test with bogus <nowiki> heading (section 1)
6007 ==bogus== <nowiki>not a legal section</nowiki>
6011 ==bogus== <nowiki>not a legal section</nowiki>
6015 Section extraction test with bogus <nowiki> heading (section 2)
6020 ==bogus== <nowiki>not a legal section</nowiki>
6027 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6028 # instead of respecting commented sections
6030 Section extraction prefixed by comment (section 1)
6041 Section extraction prefixed by comment (section 2)
6052 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6053 # instead of respecting HTML-style headings
6055 Section extraction, mixed wiki and html (section 1)
6071 Section extraction, mixed wiki and html (section 2)
6087 # Formerly testing for bug 3342
6089 Section extraction, heading surrounded by <noinclude>
6093 <noinclude>==unmarked==</noinclude>
6099 # Test behaviour of bug 19910
6101 Sectiion with all-equals
6106 The line above must have a trailing space
6109 But just in case it doesn't...
6113 But just in case it doesn't...
6117 Section replacement test (section 0)
6148 Section replacement test (section 1)
6177 Section replacement test (section 2)
6207 Section replacement test (section 3)
6238 Section replacement test (section 4)
6265 Section replacement test (section 5)
6296 Section replacement test (section 6)
6326 Section replacement test (section 7)
6357 Section replacement test (section 8)
6388 Section replacement test (section 9)
6417 Section replacement test (section 10)
6447 Section replacement test with initial whitespace (bug 13728)
6451 Preformatted initial line
6455 Preformatted initial line
6462 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6474 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6487 Section extraction, <pre> around bogus header (bug 10309)
6504 Section replacement, <pre> around bogus header (bug 10309)
6506 noxml replace=2,"xxx"
6527 Handling of 
 in URLs
6531 <ul><li><ul><li><a href="irc://%0Aa" class="external free" rel="nofollow">irc://%0Aa</a>
6538 5 quotes, code coverage +1 line
6545 Special:Search page linking.
6549 <p><a href="/wiki/Special:Search">Special:Search</a>
6564 * {{SUBJECTPAGENAME}}
6565 * {{SUBJECTPAGENAMEE}}
6572 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6574 <ul><li> Parser test
6575 </li><li> Parser test
6576 </li><li> Parser test
6577 </li><li> Parser_test
6578 </li><li> Parser test
6579 </li><li> Parser_test
6580 </li><li> Talk:Parser test
6581 </li><li> Talk:Parser_test
6582 </li><li> Parser test
6583 </li><li> Parser_test
6590 </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>
6594 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6604 image4 |300px| centre
6605 image5.svg| http://///////
6610 <ul class="gallery">
6611 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6612 <div style="height: 152px;">Image1.png</div>
6613 <div class="gallerytext">
6616 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6617 <div style="height: 152px;">Image2.gif</div>
6618 <div class="gallerytext">
6623 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6624 <div style="height: 152px;">Image3</div>
6625 <div class="gallerytext">
6628 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6629 <div style="height: 152px;">Image4</div>
6630 <div class="gallerytext">
6635 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6636 <div style="height: 152px;">Image5.svg</div>
6637 <div class="gallerytext">
6638 <p><a href="http://///////" class="external free" rel="nofollow">http://///////</a>
6642 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6643 <div style="height: 152px;">* image6</div>
6644 <div class="gallerytext">
6652 Gallery (with options)
6654 <gallery widths='60px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
6655 File:Nonexistant.jpg|caption
6656 File:Nonexistant.jpg
6657 image:foobar.jpg|some '''caption''' [[Main Page]]
6661 <ul class="gallery" style="max-width: 220px;_width: 220px;">
6662 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page">Main Page</a></li>
6663 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6664 <div style="height: 52px;">Nonexistant.jpg</div>
6665 <div class="gallerytext">
6670 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6671 <div style="height: 52px;">Nonexistant.jpg</div>
6672 <div class="gallerytext">
6675 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6676 <div class="thumb" style="padding: 19px 0; width: 90px;"><div style="margin-left: auto; margin-right: auto; width: 60px;"><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>
6677 <div class="gallerytext">
6678 <p>some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
6682 <li class="gallerybox" style="width: 95px"><div style="width: 95px">
6683 <div class="thumb" style="padding: 19px 0; width: 90px;"><div style="margin-left: auto; margin-right: auto; width: 60px;"><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>
6684 <div class="gallerytext">
6692 gallery (with showfilename option)
6694 <gallery showfilename>
6695 File:Nonexistant.jpg|caption
6696 File:Nonexistant.jpg
6697 image:foobar.jpg|some '''caption''' [[Main Page]]
6701 <ul class="gallery">
6702 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6703 <div style="height: 152px;">Nonexistant.jpg</div>
6704 <div class="gallerytext">
6705 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
6710 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6711 <div style="height: 152px;">Nonexistant.jpg</div>
6712 <div class="gallerytext">
6713 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
6717 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6718 <div class="thumb" style="padding: 66px 0; width: 150px;"><div style="margin-left: auto; margin-right: auto; width: 120px;"><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>
6719 <div class="gallerytext">
6720 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
6721 some <b>caption</b> <a href="/wiki/Main_Page">Main Page</a>
6725 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6726 <div class="thumb" style="padding: 66px 0; width: 150px;"><div style="margin-left: auto; margin-right: auto; width: 120px;"><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>
6727 <div class="gallerytext">
6728 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
6737 HTML Hex character encoding (spells the word "JavaScript")
6739 JavaScript
6741 <p>JavaScript
6746 __FORCETOC__ override
6758 ISBN 978-0-1234-56 789
6760 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
6765 ISBN followed by 5 spaces
6776 ISBN ISBN 1234567890
6778 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
6783 Bug 22905: <abbr> followed by ISBN followed by </a>
6785 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
6787 <p><abbr>(fr)</abbr> <a href="/wiki/Special:BookSources/2753300917" class="internal mw-magiclink-isbn">ISBN 2753300917</a> <a href="http://www.example.com" class="external text" rel="nofollow">example.com</a>
6796 <p>RFC <a href="http://tools.ietf.org/html/rfc1234" class="external mw-magiclink-rfc">RFC 1234</a>
6801 Double RFC with a wiki link
6805 <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>
6814 <p><a href="http://tools.ietf.org/html/rfc983" class="external mw-magiclink-rfc">RFC 983</a> 987
6819 Centre-aligned image
6821 [[Image:foobar.jpg|centre]]
6823 <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>
6830 [[Image:foobar.jpg|none]]
6832 <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>
6837 Width + Height sized image (using px) (height is ignored)
6839 [[Image:foobar.jpg|640x480px]]
6841 <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>
6846 Width-sized image (using px, no following whitespace)
6848 [[Image:foobar.jpg|640px]]
6850 <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>
6855 Width-sized image (using px, with following whitespace - test regression from r39467)
6857 [[Image:foobar.jpg|640px ]]
6859 <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>
6864 Width-sized image (using px, with preceding whitespace - test regression from r39467)
6866 [[Image:foobar.jpg| 640px]]
6868 <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>
6873 Another italics / bold test
6881 # Note the results may be incorrect, as parserTest output included this:
6882 # XML error: Mismatched tag at byte 6120:
6883 # ...<dd> </dt></dl> </dd...
6891 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
6902 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
6904 Images with the "|" character in the comment
6906 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
6908 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>An <a href="http://test/?param1=%7Cleft%7C&param2=%7Cx" class="external text" rel="nofollow">external</a> URL</div></div></div>
6913 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
6915 <html><script>alert(1);</script></html>
6917 <p><html><script>alert(1);</script></html>
6922 HTML with raw HTML ($wgRawHtml==true)
6926 <html><script>alert(1);</script></html>
6928 <p><script>alert(1);</script>
6933 Parents of subpages, one level up
6935 subpage title=[[Subpage test/L1/L2/L3]]
6939 <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>
6945 Parents of subpages, one level up, not named
6947 subpage title=[[Subpage test/L1/L2/L3]]
6951 <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>
6958 Parents of subpages, two levels up
6960 subpage title=[[Subpage test/L1/L2/L3]]
6966 <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
6967 </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>
6972 Parents of subpages, two levels up, without trailing slash or name.
6974 subpage title=[[Subpage test/L1/L2/L3]]
6983 Parents of subpages, two levels up, with lots of extra trailing slashes.
6985 subpage title=[[Subpage test/L1/L2/L3]]
6989 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
6994 Definition list code coverage
7000 <dl><dt> title  </dt><dd> def
7001 </dd><dt> title </dt><dd> def
7002 </dd><dt>title</dt><dd> def
7008 Don't fall for the self-closing div
7010 <div>hello world</div/>
7012 <div>hello world</div>
7021 <p>[[:Template:Msg]]
7030 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7034 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7036 Always escape literal '>' in output, not just after '<'
7050 <p>This is a test template
7051 This is a test template
7063 Inclusion of !userCanEdit() content
7067 <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>
7073 Out-of-order TOC heading levels
7082 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7084 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7086 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7087 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7090 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7092 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7093 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7098 <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>
7099 <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>
7100 <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>
7101 <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>
7102 <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>
7103 <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>
7109 ISBN with a dummy number
7119 ISBN with space-delimited number
7123 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7129 ISBN with multiple spaces, no number
7148 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7149 </p><p>ISBN 12345678901
7155 ISBN with trailing year (bug 8110)
7157 ISBN 1-234-56789-0 - 2006
7159 ISBN 1 234 56789 0 - 2006
7161 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7162 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7170 {{anchorencode:foo bar©#%n}}
7172 <p>foo_bar.C2.A9.23.25n
7177 anchorencode trims spaces
7179 {{anchorencode: __pretty__please__}}
7186 anchorencode deals with links
7188 {{anchorencode: [[hello|world]] [[hi]]}}
7195 anchorencode deals with templates
7197 {{anchorencode: {{Foo}} }}
7204 anchorencode encodes like the TOC generator: (bug 18431)
7206 === _ +:.3A%3A&&]] ===
7207 {{anchorencode: _ +:.3A%3A&&]] }}
7210 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7211 <p>.2B:.3A.253A.26.26.5D.5D
7215 # Expected output in the following test is not necessarily expected (there
7216 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7217 # only testing for well-formedness.
7219 Bug 6200: blockquotes and paragraph formatting
7239 Bug 8293: Use of center tag ruins paragraph formatting
7261 ### Language variants related tests
7264 Self-link in language variants
7266 title=[[Dunav]] language=sr
7268 Both [[Dunav]] and [[Дунав]] are names for this river.
7270 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7276 Link to pages in language variants
7280 Main Page can be written as [[Маин Паге]]
7282 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7288 Multiple links to pages in language variants
7292 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7294 <p><a href="/wiki/Main_Page">Main Page</a> can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a> same as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>.
7300 Simple template in language variants
7306 <p>This is a test template
7312 Template with explicit namespace in language variants
7318 <p>This is a test template
7324 Basic test for template parameter in language variants
7328 {{парамтест|param=foo}}
7330 <p>This is a test template with parameter foo
7336 Simple category in language variants
7340 [[Category:МедиаWики Усер'с Гуиде]]
7342 <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>
7347 Stripping -{}- tags (language variants)
7351 Latin proverb: -{Ne nuntium necare}-
7353 <p>Latin proverb: Ne nuntium necare
7359 Prevent conversion with -{}- tags (language variants)
7361 language=sr variant=sr-ec
7363 Latinski: -{Ne nuntium necare}-
7365 <p>Латински: Ne nuntium necare
7371 Prevent conversion of text with -{}- tags (language variants)
7373 language=sr variant=sr-ec
7375 Latinski: -{Ne nuntium necare}-
7377 <p>Латински: Ne nuntium necare
7383 Prevent conversion of links with -{}- tags (language variants)
7385 language=sr variant=sr-ec
7389 <p><a href="/wiki/Main_Page">Main Page</a>
7395 -{}- tags within headlines (within html for parserConvert())
7397 language=sr variant=sr-ec
7401 <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>
7407 Explicit definition of language variant alternatives
7409 language=zh variant=zh-tw
7411 -{zh:China;zh-tw:Taiwan}-, not China
7413 <p>Taiwan, not China
7419 Explicit session-wise language variant mapping (A flag and - flag)
7421 language=zh variant=zh-tw
7423 Taiwan is not China.
7424 But -{A|zh:China;zh-tw:Taiwan}- is China,
7425 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
7426 and -{China}- is China.
7428 <p>Taiwan is not China.
7429 But Taiwan is Taiwan,
7430 (This should be stripped!)
7436 Explicit session-wise language variant mapping (H flag for hide)
7438 language=zh variant=zh-tw
7440 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
7443 <p>(This should be stripped!)
7449 Adding explicit conversion rule for title (T flag)
7451 language=zh variant=zh-tw showtitle
7453 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7456 <p>Should be stripped!
7461 Testing that changing the language variant here in the tests actually works
7463 language=zh variant=zh showtitle
7465 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7468 <p>Should be stripped!
7473 Bug 24072: more test on conversion rule for title
7475 language=zh variant=zh-tw showtitle
7477 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7478 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
7481 <p>This should be stripped!
7482 This won't take interferes with the title rule.
7487 Raw output of variant escape tags (R flag)
7489 language=zh variant=zh-tw
7491 Raw: -{R|zh:China;zh-tw:Taiwan}-
7493 <p>Raw: zh:China;zh-tw:Taiwan
7498 Nested using of manual convert syntax
7500 language=zh variant=zh-hk
7502 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
7504 <p>Nested: Hello Hong Kong!
7509 Do not convert roman numbers to language variants
7511 language=sr variant=sr-ec
7515 <p>Фридрих IV је цар.
7520 Unclosed language converter markup "-{"
7531 Don't convert raw rule "-{R|=>}-" to "=>"
7548 Bug 529: Uncovered bullet
7559 Bug 529: Uncovered table already at line-start
7582 Bug 529: Uncovered bullet in parser function result
7584 * Foo {{lc:{{bullet}} }}
7593 Bug 5678: Double-parsed template argument
7595 {{lc:{{{1}}}|hello}}
7602 Bug 5678: Double-parsed template invocation
7604 {{lc:{{paramtest {{!}} param = hello }} }}
7606 <p>{{paramtest | param = hello }}
7611 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
7637 Morwen/13: Unclosed link followed by heading
7644 <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>
7649 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
7656 <h1> <span class="mw-headline" id="heading">heading</span></h1>
7661 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
7668 <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>
7683 Paragraphs inside divs (no extra line breaks)
7695 Paragraphs inside divs (extra line break on open)
7710 Paragraphs inside divs (extra line break on close)
7725 Paragraphs inside divs (extra line break on open and close)
7742 Nesting tags, paragraphs on lines which begin with <div>
7746 <div></div><strong>A
7755 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
7757 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
7761 <blockquote>Line one
7763 Line two</blockquote>
7765 <blockquote>Line one
7766 Line two</blockquote>
7771 Bug 6200: paragraphs inside blockquotes (extra line break on open)
7778 Line two</blockquote>
7783 Line two</blockquote>
7788 Bug 6200: paragraphs inside blockquotes (extra line break on close)
7792 <blockquote>Line one
7797 <blockquote>Line one
7805 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
7824 Paragraphs inside blockquotes/divs (no extra line breaks)
7826 <blockquote><div>Line one
7828 Line two</div></blockquote>
7830 <blockquote><div>Line one
7831 Line two</div></blockquote>
7836 Paragraphs inside blockquotes/divs (extra line break on open)
7841 Line two</div></blockquote>
7846 Line two</div></blockquote>
7851 Paragraphs inside blockquotes/divs (extra line break on close)
7853 <blockquote><div>Line one
7858 <blockquote><div>Line one
7866 Paragraphs inside blockquotes/divs (extra line break on open and close)
7883 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
7885 wgLinkHolderBatchSize=0
7891 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw">meatball:1</a>
7892 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw">meatball:2</a>
7893 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw">meatball:3</a>
7898 Free external link invading image caption
7900 [[Image:Foobar.jpg|thumb|http://x|hello]]
7902 <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>
7907 Bug 15196: localised external link numbers
7911 [http://en.wikipedia.org/]
7913 <p><a href="http://en.wikipedia.org/" class="external autonumber" rel="nofollow">[۱]</a>
7918 Multibyte character in padleft
7920 {{padleft:-Hello|7|Æ}}
7927 Multibyte character in padright
7929 {{padright:Hello-|7|Æ}}
7942 <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>
7947 formatdate parser function
7949 {{#formatdate:2009-03-24}}
7951 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
7956 formatdate parser function, with default format
7958 {{#formatdate:2009-03-24|mdy}}
7960 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
7965 Linked date with autoformatting disabled
7967 wgUseDynamicDates=false
7971 <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>
7976 Spacing of numbers in formatted dates
7978 {{#formatdate:January 15}}
7980 <p><span class="mw-formatted-date" title="01-15">January 15</span>
7985 Spacing of numbers in formatted dates (linked)
7987 wgUseDynamicDates=true
7991 <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>
8004 Edit comment with link
8008 I like the [[Main Page]] a lot
8010 I like the <a href="/wiki/Main_Page">Main Page</a> a lot
8014 Edit comment with link and link text
8018 I like the [[Main Page|best pages]] a lot
8020 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8024 Edit comment with link and link text with suffix
8028 I like the [[Main Page|best page]]s a lot
8030 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8034 Edit comment with section link (non-local, eg in history list)
8036 comment title=[[Main Page]]
8038 /* External links */ removed bogus entries
8040 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
8044 Edit comment with section link (local, eg in diff view)
8046 comment local title=[[Main Page]]
8048 /* External links */ removed bogus entries
8050 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
8054 Edit comment with subpage link (bug 14080)
8058 title=[[Subpage test]]
8060 Poked at a [[/subpage]] here...
8062 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8066 Edit comment with subpage link and link text (bug 14080)
8070 title=[[Subpage test]]
8072 Poked at a [[/subpage|neat little page]] here...
8074 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8078 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8081 title=[[Subpage test]]
8083 Poked at a [[/subpage]] here...
8085 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8089 Edit comment with bare anchor link (local, as on diff)
8097 <a href="#section">#section</a>
8101 Edit comment with bare anchor link (non-local, as on history)
8108 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8112 Space normalisation on autocomment (bug 22784)
8117 /* __hello__world__ */
8119 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
8123 Bad images - basic functionality
8130 Bad images - bug 16039: text after bad image disappears
8142 Verify that displaytitle works (bug #22501) no displaytitle
8146 wgAllowDisplayTitle=true
8147 wgRestrictDisplayTitle=false
8149 this is not the the title
8152 <p>this is not the the title
8157 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8162 wgAllowDisplayTitle=true
8163 wgRestrictDisplayTitle=false
8165 this is not the the title
8166 {{DISPLAYTITLE:whatever}}
8169 <p>this is not the the title
8174 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8179 wgAllowDisplayTitle=true
8180 wgRestrictDisplayTitle=true
8182 this is not the the title
8183 {{DISPLAYTITLE:whatever}}
8186 <p>this is not the the title
8191 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8196 wgAllowDisplayTitle=true
8197 wgRestrictDisplayTitle=true
8199 this is not the the title
8200 {{DISPLAYTITLE:screen}}
8203 <p>this is not the the title
8208 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8213 wgAllowDisplayTitle=false
8215 this is not the the title
8216 {{DISPLAYTITLE:screen}}
8219 <p>this is not the the title
8220 <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>
8225 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8230 wgAllowDisplayTitle=false
8232 this is not the the title
8235 <p>this is not the the title
8240 preload: check <noinclude> and <includeonly>
8244 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8250 preload: check <onlyinclude>
8254 Goodbye <onlyinclude>Hello world</onlyinclude>
8260 preload: can pass tags through if we want to
8264 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8266 <includeonly>Hello world</includeonly>
8270 preload: check that it doesn't try to do tricks
8274 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8276 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8280 Play a bit with r67090 and bug 3158
8284 <div style="width:50% !important"> </div>
8285 <div style="width:50% !important"> </div>
8286 <div style="width:50% !important"> </div>
8287 <div style="border : solid;"> </div>
8289 <div style="width:50% !important"> </div>
8290 <div style="width:50% !important"> </div>
8291 <div style="width:50% !important"> </div>
8292 <div style="border : solid;"> </div>
8297 HTML5 data attributes
8299 <span data-foo="bar">Baz</span>
8300 <p data-abc-def_hij="">Quuz</p>
8302 <p><span data-foo="bar">Baz</span>
8304 <p data-abc-def_hij="">Quuz</p>
8315 Try for 100% code coverage