1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
75 This is a simple paragraph.
77 <p>This is a simple paragraph.
97 * plain''italic''plain
98 * plain''italic''plain''italic''plain
99 * plain'''bold'''plain
100 * plain'''bold'''plain'''bold'''plain
101 * plain''italic''plain'''bold'''plain
102 * plain'''bold'''plain''italic''plain
103 * plain''italic'''bold-italic'''italic''plain
104 * plain'''bold''bold-italic''bold'''plain
105 * plain'''''bold-italic'''italic''plain
106 * plain'''''bold-italic''bold'''plain
107 * plain''italic'''bold-italic'''''plain
108 * plain'''bold''bold-italic'''''plain
109 * plain l'''italic''plain
110 * plain l''''bold''' plain
113 </li><li> plain<i>italic</i>plain
114 </li><li> plain<i>italic</i>plain<i>italic</i>plain
115 </li><li> plain<b>bold</b>plain
116 </li><li> plain<b>bold</b>plain<b>bold</b>plain
117 </li><li> plain<i>italic</i>plain<b>bold</b>plain
118 </li><li> plain<b>bold</b>plain<i>italic</i>plain
119 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
120 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
121 </li><li> plain<i><b>bold-italic</b>italic</i>plain
122 </li><li> plain<b><i>bold-italic</i>bold</b>plain
123 </li><li> plain<i>italic<b>bold-italic</b></i>plain
124 </li><li> plain<b>bold<i>bold-italic</i></b>plain
125 </li><li> plain l'<i>italic</i>plain
126 </li><li> plain l'<b>bold</b> plain
132 ### <nowiki> test cases
136 <nowiki> unordered list
138 <nowiki>* This is not an unordered list item.</nowiki>
140 <p>* This is not an unordered list item.
147 <nowiki>Lorem ipsum dolor
168 :There is not nowiki.
169 :There is <nowiki>nowiki</nowiki>.
171 #There is not nowiki.
172 #There is <nowiki>nowiki</nowiki>.
174 *There is not nowiki.
175 *There is <nowiki>nowiki</nowiki>.
177 <dl><dd>There is not nowiki.
178 </dd><dd>There is nowiki.
180 <ol><li>There is not nowiki.
181 </li><li>There is nowiki.
183 <ul><li>There is not nowiki.
184 </li><li>There is nowiki.
196 <!-- comment 1 --> asdf
232 asdf<!-- comment 1 -->jkl
242 <!-- foo --> b <!-- bar -->
256 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
262 Comment semantics and delimiters
264 <!-- --><!----><!-----><!------>
270 Comment semantics and delimiters, redux
272 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
273 -- foo -- funky huh? ... -->
279 Comment semantics and delimiters: directors cut
281 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
282 everything starting with < followed by !-- until the first -- and > we see,
283 that wouldn't be valid XML however, since in XML -- has to terminate a comment
291 Comment semantics: nesting
293 <!--<!-- no, we're not going to do anything fancy here -->-->
300 Comment semantics: unclosed comment at end
302 <!--This comment will run out to the end of the document
308 Comment in template title
317 Comment on its own line post-expand
329 ### Preformatted text
338 And a [[Main Page|link]]
344 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
349 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
366 Regression with preformatted in <center>
379 # Expected output in the following test is not really expected (there should be
380 # <pre> in the output) -- it's only testing for well-formedness.
382 Bug 6200: Preformatted in <blockquote>
395 <pre> with attributes (bug 3202)
397 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
399 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
404 <pre> with width attribute (bug 3202)
406 <pre width="8">Narrow screen goodies</pre>
408 <pre width="8">Narrow screen goodies</pre>
413 <pre> with forbidden attribute (bug 3202)
415 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
417 <pre width="8">Narrow screen goodies</pre>
422 <pre> with forbidden attribute values (bug 3202)
424 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
426 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
431 <nowiki> inside <pre> (bug 13238)
439 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
447 <pre><nowiki>Foo</nowiki></pre>
452 <nowiki> and <pre> preference (first one wins)
491 <dl><dt> name </dt><dd> Definition
497 Definition list for indentation only
501 <dl><dd> Indented text
507 Definition list with no space
511 <dl><dt>name</dt><dd>Definition
517 Definition list with URL link
519 ; http://example.com/ : definition
521 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
527 Definition list with bracketed URL link
529 ;[http://www.example.com/ Example]:Something about it
531 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
537 Definition list with wikilink containing colon
539 ; [[Help:FAQ]]: The least-read page on Wikipedia
541 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
546 # At Brion's and JeLuF's insistence... :)
548 Definition list with news link containing colon
550 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
552 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
558 Malformed definition list with colon
560 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
562 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
568 Definition lists: colon in external link text
570 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
572 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
578 Definition lists: colon in HTML attribute
580 ;<b style="display: inline">bold</b>
582 <dl><dt><b style="display: inline">bold</b>
589 Definition lists: self-closed tag
591 ;one<br/>two : two-line fun
593 <dl><dt>one<br />two </dt><dd> two-line fun
599 Bug 11748: Literal closing tags
605 <dd>test test test test test</dd>
607 <dd>test test test test test</dd>
612 <dd>test test test test test</dd>
614 <dd>test test test test test</dd>
619 Definition and unordered list using wiki syntax nested in unordered list using html tags.
628 <dl><dt> term </dt><dd> description
642 External links: non-bracketed
644 Non-bracketed: http://example.com
646 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
651 External links: numbered
653 Numbered: [http://example.com]
654 Numbered: [http://example.net]
655 Numbered: [http://example.com]
657 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
658 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
659 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
664 External links: specified text
666 Specified text: [http://example.com link]
668 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
673 External links: trail
675 Linktrails should not work for external links: [http://example.com link]s
677 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
682 External links: dollar sign in URL
684 http://example.com/1$2345
686 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
691 External links: dollar sign in URL (named)
693 [http://example.com/1$2345]
695 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
700 External links: open square bracket forbidden in URL (bug 4377)
702 http://example.com/1[2345
704 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
709 External links: open square bracket forbidden in URL (named) (bug 4377)
711 [http://example.com/1[2345]
713 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
718 External links: nowiki in URL link text (bug 6230)
720 [http://example.com/ <nowiki>''example site''</nowiki>]
722 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
727 External links: newline forbidden in text (bug 6230 regression check)
729 [http://example.com/ first
732 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
738 External links: protocol-relative URL in brackets
740 [//example.com/ Test]
742 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
747 External links: protocol-relative URL in brackets without text
751 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
756 External links: protocol-relative URL in free text is left alone
765 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
769 <p>foo//example.com/Foo
776 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
778 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
783 External image from https
785 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
787 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
792 Link to non-http image, no img tag
794 Link to non-http image, no img tag: ftp://example.com/test.jpg
796 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
801 External links: terminating separator
803 Terminating separator: http://example.com/thing,
805 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
810 External links: intervening separator
812 Intervening separator: http://example.com/1,2,3
814 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
819 External links: old bug with URL in query
821 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
823 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
828 External links: old URL-in-URL bug, mixed protocols
830 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
832 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
837 External links: URL in text
839 URL in text: [http://example.com http://example.com]
841 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
846 External links: Clickable images
848 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
850 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
855 External links: raw ampersand
857 Old & use: http://x&y
859 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
864 External links: encoded ampersand
866 Old & use: http://x&y
868 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
873 External links: encoded equals (bug 6102)
875 http://example.com/?foo=bar
877 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
882 External links: [raw ampersand]
884 Old & use: [http://x&y]
886 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
891 External links: [encoded ampersand]
893 Old & use: [http://x&y]
895 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
900 External links: [encoded equals] (bug 6102)
902 [http://example.com/?foo=bar]
904 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
909 External links: [IDN ignored character reference in hostname; strip it right off]
911 [http://e‌xample.com/]
913 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
918 External links: IDN ignored character reference in hostname; strip it right off
920 http://e‌xample.com/
922 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
927 External links: www.jpeg.org (bug 554)
931 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
936 External links: URL within URL (original bug 2)
938 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
940 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
945 BUG 361: URL inside bracketed URL
947 [http://www.example.com/foo http://www.example.com/bar]
949 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
954 BUG 361: URL within URL, not bracketed
956 http://www.example.com/foo?=http://www.example.com/bar
958 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
963 BUG 289: ">"-token in URL-tail
965 http://www.example.com/<hello>
967 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
972 BUG 289: literal ">"-token in URL-tail
974 http://www.example.com/<b>html</b>
976 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
981 BUG 289: ">"-token in bracketed URL
983 [http://www.example.com/<hello> stuff]
985 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
990 BUG 289: literal ">"-token in bracketed URL
992 [http://www.example.com/<b>html</b> stuff]
994 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
999 BUG 289: literal double quote at end of URL
1001 http://www.example.com/"hello"
1003 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1008 BUG 289: literal double quote in bracketed URL
1010 [http://www.example.com/"hello" stuff]
1012 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1017 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1019 [http://www.example.com test]
1021 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1026 External links: wiki links within external link (Bug 3695)
1028 [http://example.com [[wikilink]] embedded in ext link]
1030 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
1035 BUG 787: Links with one slash after the url protocol are invalid
1039 [http:/example.com title]
1041 <p>http:/example.com
1042 </p><p>[http:/example.com title]
1047 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1049 ''[http://example.com text'']
1050 [http://example.com '''text]'''
1051 ''Something [http://example.com in italic'']
1052 ''Something [http://example.com mixed''''', even bold]'''
1053 '''''Now [http://example.com both''''']
1055 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1056 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1057 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1058 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1059 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1065 Bug 4781: %26 in URL
1067 http://www.example.com/?title=AT%26T
1069 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1074 Bug 4781, 5267: %26 in URL
1076 http://www.example.com/?title=100%25_Bran
1078 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
1083 Bug 4781, 5267: %28, %29 in URL
1085 http://www.example.com/?title=Ben-Hur_%281959_film%29
1087 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
1093 Bug 4781: %26 in autonumber URL
1095 [http://www.example.com/?title=AT%26T]
1097 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1102 Bug 4781, 5267: %26 in autonumber URL
1104 [http://www.example.com/?title=100%25_Bran]
1106 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1111 Bug 4781, 5267: %28, %29 in autonumber URL
1113 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1115 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1121 Bug 4781: %26 in bracketed URL
1123 [http://www.example.com/?title=AT%26T link]
1125 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1130 Bug 4781, 5267: %26 in bracketed URL
1132 [http://www.example.com/?title=100%25_Bran link]
1134 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1139 Bug 4781, 5267: %28, %29 in bracketed URL
1141 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1143 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1148 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1150 Some [http://example.com/ pretty ''italics'' and stuff]!
1152 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1157 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1159 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1161 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1166 External link containing double-single-quotes with no space separating the url from text in italics
1168 [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]].]
1170 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
1175 URL-encoding in URL functions (single parameter)
1177 {{localurl:Some page|amp=&}}
1179 <p>/index.php?title=Some_page&amp=&
1184 URL-encoding in URL functions (multiple parameters)
1186 {{localurl:Some page|q=?&=&}}
1188 <p>/index.php?title=Some_page&q=?&amp=&
1195 http://example.com/index.php?foozoid%5B%5D=bar
1197 http://example.com/index.php?foozoid[]=bar
1199 <p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
1200 </p><p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
1205 IPv6 urls (bug 21261)
1209 http://[2404:130:0:1000::187:2]/index.php
1211 <p><a rel="nofollow" class="external free" href="http://[2404:130:0:1000::187:2]/index.php">http://2404:130:0:1000::187:2/index.php</a>
1222 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1224 Normal text. '''''Bold italic text.''''' Normal text.
1226 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1227 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1233 Unclosed and unmatched quotes
1235 '''''Bold italic text '''with bold deactivated''' in between.'''''
1237 '''''Bold italic text ''with italic deactivated'' in between.'''''
1241 ..spanning two paragraphs (should not work).'''
1243 '''Bold tag left open
1245 ''Italic tag left open
1249 <!-- Unmatching number of opening, closing tags: -->
1250 '''This year''''s election ''should'' beat '''last year''''s.
1252 ''Tom'''s car is bigger than ''Susan'''s.
1254 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1255 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1256 </p><p><b>Bold text..</b>
1257 </p><p>..spanning two paragraphs (should not work).
1258 </p><p><b>Bold tag left open</b>
1259 </p><p><i>Italic tag left open</i>
1261 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1262 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1269 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1272 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1273 # is the bare minimun required by the spec, see:
1274 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1276 A table with no data.
1282 # A table with nothing but a caption is invalid XHTML, we might want to render
1283 # this as <p>caption</p>
1285 A table with nothing but a caption
1293 </caption><tr><td></td></tr></table>
1319 Multiplication table
1321 {| border="1" cellpadding="2"
1322 |+Multiplication table
1324 ! × !! 1 !! 2 !! 3
1342 <table border="1" cellpadding="2">
1343 <caption>Multiplication table
1394 |rowspan=2| Cell 2, row 1 (and 2)
1405 <td rowspan="2"> Cell 2, row 1 (and 2)
1423 {| bgcolor=#ABCDEF border=2
1428 |the original table again
1436 <table bgcolor="#ABCDEF" border="2">
1444 <td>the original table again
1450 Invalid attributes in table cell (bug 1830)
1465 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1468 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1472 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
1473 <td>]" onmouseover="alert(document.cookie)">test
1482 Indented table markup mixed with indented pre content (proposed in bug 6200)
1508 Plain link, capitalized
1512 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1517 Plain link, uncapitalized
1521 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1528 [[Main Page|The Main Page]]
1530 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1539 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1544 Broken link with fragment
1546 [[Zigzagzogzagzig#zug]]
1548 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1553 Special page link with fragment
1555 [[Special:Version#anchor]]
1557 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1562 Nonexistent special page link with fragment
1564 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1566 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1573 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1575 <p>xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a>, xxx<a href="/wiki/Main_Page" title="Main Page">Main Page</a>, Xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a> XXX<a href="/wiki/Main_Page" title="Main Page">main Page</a>, XXX<a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1582 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1584 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>!!!
1589 Link with 3 brackets
1598 Piped link with 3 brackets
1600 [[[main page|the main page]]]
1602 <p>[[[main page|the main page]]]
1607 Link with multiple pipes
1609 [[Main Page|The|Main|Page]]
1611 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1618 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1620 <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>
1625 Piped link to namespace
1627 [[Meta:Disclaimers|The disclaimers]]
1629 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1636 [[Usually caused by a typo (oops}]]
1638 <p>[[Usually caused by a typo (oops}]]
1643 Link containing % (not as a hex sequence)
1647 <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>
1652 Link containing % as a single hex sequence interpreted to char
1656 <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>
1661 Link containing % as a double hex sequence interpreted to hex sequence
1665 <p>[[7%2525 Solution]]
1670 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1671 Example for such a section: == < ==
1673 [[%23%3c]][[%23%3e]]
1675 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1680 Link containing "<#" and ">#" as a hex sequences
1682 [[%3c%23]][[%3e%23]]
1684 <p>[[%3c%23]][[%3e%23]]
1689 Link containing double-single-quotes '' (bug 4598)
1691 [[Lista d''e paise d''o munno]]
1693 <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>
1698 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1700 Some [[Link|pretty ''italics'' and stuff]]!
1702 <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>!
1707 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1709 ''Some [[Link|pretty ''italics'' and stuff]]!
1711 <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>
1716 Link with double quotes in title part (literal) and alternate part (interpreted)
1718 [[File:Denys Savchenko ''Pentecoste''.jpg]]
1722 [[''Pentecoste''|Pentecoste]]
1724 [[''Pentecoste''|''Pentecoste'']]
1726 <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>
1727 </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>
1728 </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>
1729 </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>
1736 [[http://www.example.com]]
1738 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
1743 Plain link to URL with link text
1745 [[http://www.example.com Link text]]
1747 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
1752 Plain link to protocol-relative URL
1754 [[//www.example.com]]
1756 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
1761 Plain link to protocol-relative URL with link text
1763 [[//www.example.com Link text]]
1765 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
1770 # I'm fairly sure the expected result here is wrong.
1771 # We want these to be URL links, not pseudo-pages with URLs for titles....
1772 # However the current output is also pretty screwy.
1775 # I'm changing it to match the current output--it arguably makes more
1776 # sense in the light of the test above. Old expected result was:
1777 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1779 # But I think this test is bordering on "garbage in, garbage out" anyway.
1784 Piped link to URL: [[http://www.example.com|an example URL]]
1786 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
1791 BUG 2: [[page|http://url/]] should link to page, not http://url/
1793 [[Main Page|http://url/]]
1795 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1800 BUG 337: Escaped self-links should be bold
1804 [[Bug462]] [[Bug462]]
1806 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1811 Self-link to section should not be bold
1815 [[Main Page#section]]
1817 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1828 Self-link to numeric title
1834 <p><strong class="selflink">0</strong>
1839 Link to numeric-equivalent title
1845 <p><a href="/wiki/00" title="00">00</a>
1850 <nowiki> inside a link
1852 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1854 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1859 Non-breaking spaces in title
1861 [[ Main Page ]]
1863 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
1868 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
1874 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
1879 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
1885 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
1890 Internal link with en linktrail: no apostrophes (bug 27473)
1896 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
1901 Internal link with ca linktrail with apostrophes (bug 27473)
1907 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
1912 Internal link with kaa linktrail with apostrophes (bug 27473)
1918 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
1923 ### Interwiki links (see maintenance/interwiki.sql)
1927 Inline interwiki link
1929 [[MeatBall:SoftSecurity]]
1931 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1936 Inline interwiki link with empty title (bug 2372)
1940 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
1945 Interwiki link encoding conversion (bug 1636)
1947 *[[Wikipedia:ro:Olteniţa]]
1948 *[[Wikipedia:ro:Olteniţa]]
1950 <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>
1951 </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>
1957 Interwiki link with fragment (bug 2130)
1959 [[MeatBall:SoftSecurity#foo]]
1961 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1976 Double interlanguage link
1987 Interlanguage link, with prefix links
1999 Double interlanguage link, with prefix links (bug 8897)
2026 Incorrecly removing closing slashes from correctly formed XHTML
2028 <br style="clear:both;" />
2030 <p><br style="clear:both;" />
2035 Failing to transform badly formed HTML into correct XHTML
2037 <br style="clear: left;">
2038 <br style="clear: right;">
2039 <br style="clear: both;">
2041 <p><br style="clear: left;" />
2042 <br style="clear: right;" />
2043 <br style="clear: both;" />
2048 Horizontal ruler (should it add that extra space?)
2062 ### Block-level elements
2085 <ol><li>Numbered list
2102 ***#Number on level 4
2104 **#Number on level 3
2105 **#Number on level 3
2110 <ol><li> with numbers
2112 <ul><li> and bullets
2114 <ol><li> and numbers
2116 </li><li>bullets again
2117 <ul><li>bullet level 2
2118 <ul><li>bullet level 3
2119 <ol><li>Number on level 4
2122 </li><li>bullet level 2
2123 <ol><li>Number on level 3
2124 </li><li>Number on level 3
2127 <ol><li>number level 2
2135 List items are not parsed correctly following a <pre> block (bug 785)
2141 <ul><li> <pre>foo</pre>
2142 </li><li> <pre>bar</pre>
2153 Magic Word: {{CURRENTDAY}}
2162 Magic Word: {{CURRENTDAY2}}
2171 Magic Word: {{CURRENTDAYNAME}}
2180 Magic Word: {{CURRENTDOW}}
2189 Magic Word: {{CURRENTMONTH}}
2198 Magic Word: {{CURRENTMONTHABBREV}}
2200 {{CURRENTMONTHABBREV}}
2207 Magic Word: {{CURRENTMONTHNAME}}
2209 {{CURRENTMONTHNAME}}
2216 Magic Word: {{CURRENTMONTHNAMEGEN}}
2218 {{CURRENTMONTHNAMEGEN}}
2225 Magic Word: {{CURRENTTIME}}
2234 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2243 Magic Word: {{CURRENTYEAR}}
2252 Magic Word: {{FULLPAGENAME}}
2254 title=[[User:Ævar Arnfjörð Bjarmason]]
2258 <p>User:Ævar Arnfjörð Bjarmason
2263 Magic Word: {{FULLPAGENAMEE}}
2265 title=[[User:Ævar Arnfjörð Bjarmason]]
2269 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2274 Magic Word: {{NAMESPACE}}
2276 title=[[User:Ævar Arnfjörð Bjarmason]]
2285 Magic Word: {{NAMESPACEE}}
2287 title=[[User:Ævar Arnfjörð Bjarmason]]
2296 Magic Word: {{NUMBEROFFILES}}
2305 Magic Word: {{PAGENAME}}
2307 title=[[User:Ævar Arnfjörð Bjarmason]]
2311 <p>Ævar Arnfjörð Bjarmason
2316 Magic Word: {{PAGENAME}} with metacharacters
2318 title=[['foo & bar = baz']]
2322 <p><i>'foo & bar = baz'</i>
2327 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2329 title=[[*RFC 1234 http://example.com/]]
2333 <p>*RFC 1234 http://example.com/
2338 Magic Word: {{PAGENAMEE}}
2340 title=[[User:Ævar Arnfjörð Bjarmason]]
2344 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2349 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2351 title=[[*RFC 1234 http://example.com/]]
2355 <p>*RFC_1234_http://example.com/
2360 Magic Word: {{REVISIONID}}
2369 Magic Word: {{SCRIPTPATH}}
2378 Magic Word: {{SERVER}}
2382 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2387 Magic Word: {{SERVERNAME}}
2396 Magic Word: {{SITENAME}}
2405 Namespace 1 {{ns:1}}
2414 Namespace 1 {{ns:01}}
2423 Namespace 0 {{ns:0}} (bug 4783)
2431 Namespace 0 {{ns:00}} (bug 4783)
2439 Namespace -1 {{ns:-1}}
2448 Namespace User {{ns:User}}
2457 Namespace User talk {{ns:User_talk}}
2466 Namespace User talk {{ns:uSeR tAlK}}
2475 Namespace File {{ns:File}}
2484 Namespace File {{ns:Image}}
2493 Namespace (lang=de) Benutzer {{ns:User}}
2504 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2510 <p>Benutzer Diskussion
2518 {{urlencode:hi world?!}}
2519 {{urlencode:hi world?!|WIKI}}
2520 {{urlencode:hi world?!|PATH}}
2521 {{urlencode:hi world?!|QUERY}}
2534 Magic links: internal link to RFC (bug 479)
2538 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2543 Magic links: RFC (bug 479)
2547 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
2552 Magic links: ISBN (bug 1937)
2556 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2561 Magic links: PMID incorrectly converts space to underscore
2565 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2574 Nonexistent template
2576 {{thistemplatedoesnotexist}}
2578 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2585 This is a test template
2593 <p>This is a test template
2598 Template with explicit namespace
2602 <p>This is a test template
2610 This is a test template with parameter {{{param}}}
2616 {{paramtest|param=foo}}
2618 <p>This is a test template with parameter foo
2623 Template:paramtestnum
2629 Template unnamed parameter
2631 {{paramtestnum|Main Page|the main page}}
2633 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2638 Template:templatesimple
2644 Template:templateredirect
2646 #redirect [[Template:templatesimple]]
2650 Template:templateasargtestnum
2656 Template:templateasargtest
2658 {{template{{{templ}}}}}
2662 Template:templateasargtest2
2668 Template with template name as unnamed argument
2670 {{templateasargtestnum|templatesimple}}
2677 Template with template name as argument
2679 {{templateasargtest|templ=simple}}
2686 Template with template name as argument (2)
2688 {{templateasargtest2|templ=templatesimple}}
2695 Template:templateasargtestdefault
2697 {{{{{templ|templatesimple}}}}}
2707 Template with default value
2709 {{templateasargtestdefault}}
2716 Template with default value (value set)
2718 {{templateasargtestdefault|templ=templa}}
2727 {{templateredirect}}
2734 Template with argument in separate line
2736 {{ templateasargtest |
2744 Template with complex template as argument
2747 param ={{ templateasargtest |
2750 <p>This is a test template with parameter (test)
2755 Template with thumb image (with link in description)
2758 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2760 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>
2765 Template:complextemplate
2767 {{{1}}} {{paramtest|
2768 param ={{{param}}}}}
2772 Template with complex arguments
2775 param ={{ templateasargtest |
2776 templ = simple }}|[[Template:complextemplate|link]]}}
2778 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2783 BUG 553: link with two variables in a piped link
2786 |[[{{{1}}}|{{{2}}}]]
2791 <td>[[{{{1}}}|{{{2}}}]]
2797 Magic variable as template parameter
2799 {{paramtest|param={{SITENAME}}}}
2801 <p>This is a test template with parameter MediaWiki
2808 [[{{{param}}}|link]]
2812 Template parameter as link source
2814 {{linktest|param=Main Page}}
2816 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2824 including another template, {{paramtest|param={{{arg}}}}}
2828 Template passing argument to another template
2830 {{paramtest2|arg='hmm'}}
2832 <p>including another template, This is a test template with parameter 'hmm'
2843 Template as link source
2847 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2865 Template infinite loop
2869 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
2874 Template from main namespace
2893 BUG 529: Template with table, not included at beginning of line
2912 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2932 BUG 41: Template parameters shown as broken links
2944 ''None'' of '''this''' should be
2946 but rather passed unmodified
2950 # hmm, fix this or just deprecate msgnw and document its behavior?
2956 {{msgnw:MSGNW test}}
2958 <p>''None'' of '''this''' should be
2960 but rather passed unmodified
2968 {{int:youhavenewmessages|lots of money|not!}}
2970 <p>You have lots of money (not!).
2977 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2981 <includeonly> and <noinclude> being included
2992 <onlyinclude>Foo</onlyinclude>bar
2996 <onlyinclude> being included
3008 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3012 <onlyinclude> and <includeonly> being included
3021 <includeonly> and <noinclude> on a page
3023 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3030 <onlyinclude> on a page
3032 <onlyinclude>Foo</onlyinclude>bar
3039 Template:Includeonly section
3042 ==Includeonly section==
3048 Bug 6563: Edit link generation for section shown by <includeonly>
3050 {{includeonly section}}
3052 <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>
3053 <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>
3057 # Uses same input as the contents of [[Template:Includeonly section]]
3059 Bug 6563: Section extraction for section shown by <includeonly>
3064 ==Includeonly section==
3072 Bug 6563: Edit link generation for section suppressed by <includeonly>
3075 ==Includeonly section==
3079 <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>
3084 Bug 6563: Section extraction for section suppressed by <includeonly>
3089 ==Includeonly section==
3097 ### Pre-save transform tests
3100 pre-save transform: subst:
3106 This is a test template
3110 pre-save transform: normal template
3120 pre-save transform: nonexistent template
3124 {{thistemplatedoesnotexist}}
3126 {{thistemplatedoesnotexist}}
3131 pre-save transform: subst magic variables
3140 # This is bug 89, which I fixed. -- wtm
3142 pre-save transform: subst: templates with parameters
3146 {{subst:paramtest|param="something else"}}
3148 This is a test template with parameter "something else"
3154 <nowiki>'''not wiki'''</nowiki>
3158 pre-save transform: nowiki in subst (bug 1188)
3162 {{subst:nowikitest}}
3164 <nowiki>'''not wiki'''</nowiki>
3169 Template:commenttest
3171 This template has <!-- a comment --> in it.
3175 pre-save transform: comment in subst (bug 1936)
3179 {{subst:commenttest}}
3181 This template has <!-- a comment --> in it.
3185 pre-save transform: unclosed tag
3189 <nowiki>'''not wiki'''
3191 <nowiki>'''not wiki'''
3195 pre-save transform: mixed tag case
3199 <NOwiki>'''not wiki'''</noWIKI>
3201 <NOwiki>'''not wiki'''</noWIKI>
3205 pre-save transform: unclosed comment in <nowiki>
3209 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3211 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3217 <span onmouseover="alert('crap')">Oh no</span>
3221 (confirming safety of fix for subst bug 1936)
3223 {{Template:dangerous}}
3225 <p><span>Oh no</span>
3230 pre-save transform: comment containing gallery (bug 5024)
3234 <!-- <gallery>data</gallery> -->
3236 <!-- <gallery>data</gallery> -->
3240 pre-save transform: comment containing extension
3244 <!-- <tag>data</tag> -->
3246 <!-- <tag>data</tag> -->
3250 pre-save transform: comment containing nowiki
3254 <!-- <nowiki>data</nowiki> -->
3256 <!-- <nowiki>data</nowiki> -->
3260 pre-save transform: <noinclude> in subst (bug 3298)
3270 pre-save transform: <onlyinclude> in subst (bug 3298)
3282 {{<includeonly>subst:</includeonly>Includes}}
3286 Template:SafeSubstTest
3288 {{<includeonly>safesubst:</includeonly>Includes}}
3292 bug 22297: safesubst: works during PST
3296 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3302 bug 22297: safesubst: works during normal parse
3311 subst: does not work during normal parse
3315 <p>{{subst:Includes}}
3320 pre-save transform: context links ("pipe trick")
3324 [[Article (context)|]]
3327 [[Bar:Article (context)|]]
3328 [[:Bar:Article (context)|]]
3330 [[|Article (context)]]
3334 [[Article (context)|Article]]
3335 [[Bar:Article|Article]]
3336 [[:Bar:Article|Article]]
3337 [[Bar:Article (context)|Article]]
3338 [[:Bar:Article (context)|Article]]
3340 [[Article (context)]]
3341 [[Bar:X (Y) Z|X (Y) Z]]
3342 [[:Bar:X (Y) Z|X (Y) Z]]
3346 pre-save transform: context links ("pipe trick") with interwiki prefix
3350 [[interwiki:Article|]]
3351 [[:interwiki:Article|]]
3352 [[interwiki:Bar:Article|]]
3353 [[:interwiki:Bar:Article|]]
3355 [[interwiki:Article|Article]]
3356 [[:interwiki:Article|Article]]
3357 [[interwiki:Bar:Article|Bar:Article]]
3358 [[:interwiki:Bar:Article|Bar:Article]]
3362 pre-save transform: context links ("pipe trick") with parens in title
3364 pst title=[[Somearticle (context)]]
3368 [[Article (context)|Article]]
3372 pre-save transform: context links ("pipe trick") with comma in title
3374 pst title=[[Someplace, Somewhere]]
3377 [[Otherplace, Elsewhere|]]
3378 [[Otherplace, Elsewhere, Anywhere|]]
3380 [[Otherplace, Somewhere|Otherplace]]
3381 [[Otherplace, Elsewhere|Otherplace]]
3382 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3386 pre-save transform: context links ("pipe trick") with parens and comma
3388 pst title=[[Someplace (IGNORED), Somewhere]]
3391 [[Otherplace (place), Elsewhere|]]
3393 [[Otherplace, Somewhere|Otherplace]]
3394 [[Otherplace (place), Elsewhere|Otherplace]]
3398 pre-save transform: context links ("pipe trick") with comma and parens
3400 pst title=[[Who, me? (context)]]
3403 [[Me, Myself, and I (1937 song)|]]
3405 [[Yes, you. (context)|Yes, you.]]
3406 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3410 pre-save transform: context links ("pipe trick") with namespace
3412 pst title=[[Ns:Somearticle]]
3416 [[Ns:Article|Article]]
3420 pre-save transform: context links ("pipe trick") with namespace and parens
3422 pst title=[[Ns:Somearticle (context)]]
3426 [[Ns:Article (context)|Article]]
3430 pre-save transform: context links ("pipe trick") with namespace and comma
3432 pst title=[[Ns:Somearticle, Context, Whatever]]
3436 [[Ns:Article, Context, Whatever|Article]]
3440 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3442 pst title=[[Ns:Somearticle, Context (context)]]
3446 [[Ns:Article (context)|Article]]
3450 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3452 pst title=[[Ns:Somearticle (IGNORED), Context]]
3456 [[Ns:Article, Context|Article]]
3460 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
3464 [[Article(context)|]]
3465 [[Bar:Article(context)|]]
3466 [[:Bar:Article(context)|]]
3467 [[|Article(context)]]
3471 [[Article(context)|Article]]
3472 [[Bar:Article(context)|Article]]
3473 [[:Bar:Article(context)|Article]]
3474 [[Article(context)]]
3475 [[Bar:X (Y) Z|X (Y) Z]]
3476 [[:Bar:X (Y) Z|X (Y) Z]]
3480 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
3484 [[Article (context)|]]
3485 [[Bar:Article (context)|]]
3486 [[:Bar:Article (context)|]]
3487 [[|Article (context)]]
3491 [[Article (context)|Article]]
3492 [[Bar:Article (context)|Article]]
3493 [[:Bar:Article (context)|Article]]
3494 [[Article (context)]]
3495 [[Bar:X (Y) Z|X (Y) Z]]
3496 [[:Bar:X (Y) Z|X (Y) Z]]
3500 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
3504 [[Article(context)|]]
3505 [[Bar:Article(context)|]]
3506 [[:Bar:Article(context)|]]
3507 [[|Article(context)]]
3511 [[Article(context)|Article]]
3512 [[Bar:Article(context)|Article]]
3513 [[:Bar:Article(context)|Article]]
3514 [[Article(context)]]
3516 [[:Bar:X(Y)Z|X(Y)Z]]
3520 pre-save transform: trim trailing empty lines
3524 Empty lines are trimmed
3530 Empty lines are trimmed
3534 pre-save transform: Signature expansion
3539 * <noinclude>~~~</noinclude>
3540 * <includeonly>~~~</includeonly>
3541 * <onlyinclude>~~~</onlyinclude>
3543 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
3544 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
3545 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
3546 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
3551 pre-save transform: Signature expansion in nowiki tags (bug 93)
3557 <nowiki>~~~~</nowiki>
3559 <includeonly><nowiki>~~~~</nowiki></includeonly>
3561 <noinclude><nowiki>~~~~</nowiki></noinclude>
3563 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3565 {{subst:Foo}} shall be converted to FOO
3567 As well as inside noinclude/onlyinclude
3568 <noinclude>{{subst:Foo}}</noinclude>
3569 <onlyinclude>{{subst:Foo}}</onlyinclude>
3571 But not inside includeonly
3572 <includeonly>{{subst:Foo}}</includeonly>
3576 <nowiki>~~~~</nowiki>
3578 <includeonly><nowiki>~~~~</nowiki></includeonly>
3580 <noinclude><nowiki>~~~~</nowiki></noinclude>
3582 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3584 FOO shall be converted to FOO
3586 As well as inside noinclude/onlyinclude
3587 <noinclude>FOO</noinclude>
3588 <onlyinclude>FOO</onlyinclude>
3590 But not inside includeonly
3591 <includeonly>{{subst:Foo}}</includeonly>
3595 ### Message transform tests
3598 message transform: magic variables
3608 message transform: should not transform wiki markup
3618 message transform: <noinclude> in transcluded template (bug 4926)
3628 message transform: <onlyinclude> in transcluded template (bug 4926)
3638 {{#special:}} page name, known
3642 {{#special:Recentchanges}}
3644 Special:RecentChanges
3648 {{#special:}} page name with subpage, known
3652 {{#special:Recentchanges/param}}
3654 Special:RecentChanges/param
3658 {{#special:}} page name, unknown
3662 {{#special:foobarnonexistent}}
3664 No such special page
3673 [[Image:foobar.jpg]]
3675 <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>
3682 [[Image:foobar.jpg|right]]
3684 <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>
3689 Simple image (using File: namespace, now canonical)
3693 <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>
3700 [[Image:foobar.jpg|right|Caption text]]
3702 <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>
3707 Image with link parameter, wiki target
3709 [[Image:foobar.jpg|link=Target page]]
3711 <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>
3716 Image with link parameter, URL target
3718 [[Image:foobar.jpg|link=http://example.com/]]
3720 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3725 Image with link parameter, wgExternalLinkTarget
3727 [[Image:foobar.jpg|link=http://example.com/]]
3729 wgExternalLinkTarget='foobar'
3731 <p><a href="http://example.com/" target="foobar"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3736 Image with link parameter, wgExternalLinkTarget, unnamed parameter
3738 [[Image:foobar.jpg|link=http://example.com/|Title]]
3740 wgExternalLinkTarget='foobar'
3742 <p><a href="http://example.com/" title="Title" target="foobar"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3747 Image with empty link parameter
3749 [[Image:foobar.jpg|link=]]
3751 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3756 Image with link parameter (wiki target) and unnamed parameter
3758 [[Image:foobar.jpg|link=Target page|Title]]
3760 <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>
3765 Image with link parameter (URL target) and unnamed parameter
3767 [[Image:foobar.jpg|link=http://example.com/|Title]]
3769 <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>
3774 Thumbnail image with link parameter
3776 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
3778 <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>
3783 Image with frame and link
3785 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3787 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
3792 Image with frame and link and explicit alt
3794 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3796 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Altitude" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
3801 Image with wiki markup in implicit alt
3803 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3805 <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>
3810 Image with wiki markup in explicit alt
3812 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3814 <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>
3819 Link to image page- image page normally doesn't exists, hence edit link
3820 Add test with existing image page
3821 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3825 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3830 bug 18784 Link to non-existent image page with caption should use caption as link text
3832 [[:Image:test|caption]]
3834 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
3839 Frameless image caption with a free URL
3841 [[Image:foobar.jpg|http://example.com]]
3843 <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>
3848 Thumbnail image caption with a free URL
3850 [[Image:foobar.jpg|thumb|http://example.com]]
3852 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
3857 Thumbnail image caption with a free URL and explicit alt
3859 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3861 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
3866 BUG 1887: A ISBN with a thumbnail
3868 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3870 <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>
3875 BUG 1887: A RFC with a thumbnail
3877 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3879 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
3884 BUG 1887: A mailto link with a thumbnail
3886 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3888 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
3892 # Pending resolution to bug 368
3894 BUG 648: Frameless image caption with a link
3896 [[Image:foobar.jpg|text with a [[link]] in it]]
3898 <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>
3903 BUG 648: Frameless image caption with a link (suffix)
3905 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3907 <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>
3912 BUG 648: Frameless image caption with an interwiki link
3914 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3916 <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>
3921 BUG 648: Frameless image caption with a piped interwiki link
3923 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3925 <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>
3930 Escape HTML special chars in image alt text
3932 [[Image:foobar.jpg|& < > "]]
3934 <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>
3939 BUG 499: Alt text should have Ӓ, not &1234;
3941 [[Image:foobar.jpg|♀]]
3943 <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>
3948 Broken image caption with link
3950 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3952 <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.
3957 Image caption containing another image
3959 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3961 <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>
3966 Image caption containing a newline
3968 [[Image:Foobar.jpg|This
3971 <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>
3977 Bug 3090: External links other than http: in image captions
3979 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3981 <div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="200" height="23" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This caption has <a rel="nofollow" class="external text" href="irc://example.net">irc</a> and <a rel="nofollow" class="external text" href="https://example.com">Secure</a> ext links in it.</div></div></div>
3988 #REDIRECT [[File:Barfoo.jpg]]
3994 [[Image:Barfoo.jpg]]
3996 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
4001 Missing image with uploads disabled
4005 [[Image:Foobaz.jpg]]
4007 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
4016 Subpage test/subpage
4024 subpage title=[[Subpage test]]
4028 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
4033 Subpage noslash link
4035 subpage title=[[Subpage test]]
4039 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4048 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4053 BUG 561: {{/Subpage}}
4055 subpage title=[[Page]]
4059 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4067 Category:MediaWiki User's Guide
4075 [[:Category:MediaWiki User's Guide]]
4077 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
4086 [[Category:MediaWiki User's Guide]]
4088 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4092 PAGESINCATEGORY invalid title fatal (r33546 fix)
4094 {{PAGESINCATEGORY:<bogus>}}
4101 ### Inter-language links
4104 Inter-language links
4110 [[zh:食品]]
4112 es:Alimento fr:Nourriture zh:食品
4119 Basic section headings
4126 ===Smaller headline===
4129 <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>
4132 <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>
4135 <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>
4141 Section headings with TOC
4144 === Subheadline 1 ===
4145 ===== Skipping a level =====
4146 ====== Skipping a level ======
4150 ===Another headline===
4152 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4154 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4156 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4158 <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>
4160 <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>
4167 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4169 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4174 <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>
4175 <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>
4176 <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>
4177 <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>
4178 <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>
4181 <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>
4185 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4187 Handling of sections up to level 6 and beyond
4190 == Level 2 Heading==
4191 === Level 3 Heading===
4192 ==== Level 4 Heading====
4193 ===== Level 5 Heading=====
4194 ====== Level 6 Heading======
4195 ======= Level 7 Heading=======
4196 ======== Level 8 Heading========
4197 ========= Level 9 Heading=========
4198 ========== Level 10 Heading==========
4200 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4202 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4204 <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>
4206 <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>
4208 <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>
4210 <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>
4212 <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>
4213 <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>
4214 <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>
4215 <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>
4216 <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>
4229 <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>
4230 <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>
4231 <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>
4232 <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>
4233 <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>
4234 <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>
4235 <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>
4236 <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>
4237 <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>
4238 <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>
4243 TOC regression (bug 9764)
4247 ==== title 1.1.1 ====
4252 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4254 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4256 <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>
4258 <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>
4261 <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>
4264 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4266 <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>
4271 <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>
4272 <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>
4273 <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>
4274 <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>
4275 <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>
4276 <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>
4281 TOC with wgMaxTocLevel=3 (bug 6204)
4287 ==== title 1.1.1 ====
4292 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4294 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4296 <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>
4297 <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>
4300 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4302 <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>
4307 <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>
4308 <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>
4309 <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>
4310 <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>
4311 <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>
4312 <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>
4317 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4323 ====Section 1.1.1====
4324 ====Section 1.1.1.1====
4327 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4329 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4331 <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>
4334 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4337 <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>
4338 <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>
4339 <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>
4340 <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>
4341 <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>
4347 Resolving duplicate section names
4352 <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>
4353 <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>
4358 Resolving duplicate section names with differing case (bug 10721)
4363 <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>
4364 <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>
4376 Template with sections, __NOTOC__
4383 <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>
4384 <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>
4385 <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>
4386 <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>
4391 __NOEDITSECTION__ keyword
4397 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4398 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4403 Link inside a section heading
4405 ==Section with a [[Main Page|link]] in it==
4407 <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>
4412 TOC regression (bug 12077)
4419 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4421 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4423 <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>
4426 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4429 <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>
4430 <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>
4431 <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>
4436 BUG 1219 URL next to image (good)
4438 http://example.com [[Image:foobar.jpg]]
4440 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4445 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4448 The line above must have a trailing space!
4451 But just in case it doesn't...
4453 <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>
4454 <p>The line above must have a trailing space!
4456 <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>
4457 <p>But just in case it doesn't...
4462 Header with special characters (bug 25462)
4464 The tooltips shall not show entities to the user (ie. be double escaped)
4481 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4483 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4485 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4486 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4487 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4488 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4489 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4492 <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>
4495 <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>
4498 <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>
4501 <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>
4504 <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>
4510 BUG 1219 URL next to image (broken)
4512 http://example.com[[Image:foobar.jpg]]
4514 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4519 Bug 1186 news: in the middle of text
4521 http://en.wikinews.org/wiki/Wikinews:Workplace
4523 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4529 Namespaced link must have a title
4538 Namespaced link must have a title (bad fragment version)
4540 [[Project:#fragment]]
4542 <p>[[Project:#fragment]]
4548 div with no attributes
4550 <div>HTML rocks</div>
4552 <div>HTML rocks</div>
4557 div with double-quoted attribute
4559 <div id="rock">HTML rocks</div>
4561 <div id="rock">HTML rocks</div>
4566 div with single-quoted attribute
4568 <div id='rock'>HTML rocks</div>
4570 <div id="rock">HTML rocks</div>
4575 div with unquoted attribute
4577 <div id=rock>HTML rocks</div>
4579 <div id="rock">HTML rocks</div>
4584 div with illegal double attributes
4586 <div id="a" id="b">HTML rocks</div>
4588 <div id="b">HTML rocks</div>
4593 HTML multiple attributes correction
4595 <p class="error" class="awesome">Awesome!</p>
4597 <p class="awesome">Awesome!</p>
4602 Table multiple attributes correction
4605 !+ class="error" class="awesome"| status
4610 <th class="awesome"> status
4618 <DIV ID="x">HTML ROCKS</DIV>
4620 <div id="x">HTML ROCKS</div>
4626 text with amp in the middle of nowhere
4630 <p>Remember AT&T?
4635 text with character entity: eacute
4637 I always thought é was a cute letter.
4639 <p>I always thought é was a cute letter.
4644 text with undefined character entity: xacute
4646 I always thought &xacute; was a cute letter.
4648 <p>I always thought &xacute; was a cute letter.
4660 [[Media:Foobar.jpg]]
4662 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4667 Media link with text
4669 [[Media:Foobar.jpg|A neat file to look at]]
4671 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4675 # FIXME: this is still bad HTML tag nesting
4677 Media link with nasty text
4678 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4680 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4682 <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>
4687 Media link to nonexistent file (bug 1702)
4689 [[Media:No such.jpg]]
4691 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4696 Image link to nonexistent file (bug 1850 - good)
4698 [[Image:No such.jpg]]
4700 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4705 :Image link to nonexistent file (bug 1850 - bad)
4707 [[:Image:No such.jpg]]
4709 <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>
4716 Character reference normalization in link text (bug 1938)
4718 [[Main Page|this&that]]
4720 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4727 Test for unicode normalization
4729 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4733 (bug 19451) Links should refer to the normalized form.
4741 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4742 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4743 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4744 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4745 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4750 Empty attribute crash test (bug 2067)
4752 <font color="">foo</font>
4754 <p><font color="">foo</font>
4759 Empty attribute crash test single-quotes (bug 2067)
4761 <font color=''>foo</font>
4763 <p><font color="">foo</font>
4768 Attribute test: equals, then nothing
4770 <font color=>foo</font>
4777 Attribute test: unquoted value
4779 <font color=x>foo</font>
4781 <p><font color="x">foo</font>
4786 Attribute test: unquoted but illegal value (hash)
4788 <font color=#x>foo</font>
4790 <p><font color="#x">foo</font>
4795 Attribute test: no value
4797 <font color>foo</font>
4799 <p><font color="color">foo</font>
4804 Bug 2095: link with three closing brackets
4808 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
4813 Bug 2095: link with pipe and three closing brackets
4817 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4822 Bug 2095: link with pipe and three closing brackets, version 2
4824 [[Main Page|[http://example.com/]]]
4826 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4836 Template:Dangerous attribute
4838 " onmouseover="alert(document.cookie)
4842 Template:Dangerous style attribute
4844 border-size: expression(alert(document.cookie))
4850 <div style="float: right; {{{1}}}">Magic div</div>
4854 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4856 <div title="{{test}}"></div>
4858 <div title="This is a test template"></div>
4863 Bug 2304: HTML attribute safety (dangerous template; 2309)
4865 <div title="{{dangerous attribute}}"></div>
4867 <div title=""></div>
4872 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4874 <div style="{{dangerous style attribute}}"></div>
4876 <div style="/* insecure input */"></div>
4881 Bug 2304: HTML attribute safety (safe parameter; 2309)
4883 {{div style|width: 200px}}
4885 <div style="float: right; width: 200px">Magic div</div>
4890 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4892 {{div style|width: expression(alert(document.cookie))}}
4894 <div style="/* insecure input */">Magic div</div>
4899 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4901 {{div style|"><script>alert(document.cookie)</script>}}
4903 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4908 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4910 {{div style|" ><script>alert(document.cookie)</script>}}
4912 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4917 Bug 2304: HTML attribute safety (link)
4919 <div title="[[Main Page]]"></div>
4921 <div title="[[Main Page]]"></div>
4926 Bug 2304: HTML attribute safety (italics)
4928 <div title="''foobar''"></div>
4930 <div title="''foobar''"></div>
4935 Bug 2304: HTML attribute safety (bold)
4937 <div title="'''foobar'''"></div>
4939 <div title="'''foobar'''"></div>
4945 Bug 2304: HTML attribute safety (ISBN)
4947 <div title="ISBN 1234567890"></div>
4949 <div title="ISBN 1234567890"></div>
4954 Bug 2304: HTML attribute safety (RFC)
4956 <div title="RFC 1234"></div>
4958 <div title="RFC 1234"></div>
4963 Bug 2304: HTML attribute safety (PMID)
4965 <div title="PMID 1234567890"></div>
4967 <div title="PMID 1234567890"></div>
4972 Bug 2304: HTML attribute safety (web link)
4974 <div title="http://example.com/"></div>
4976 <div title="http://example.com/"></div>
4981 Bug 2304: HTML attribute safety (named web link)
4983 <div title="[http://example.com/ link]"></div>
4985 <div title="[http://example.com/ link]"></div>
4990 Bug 3244: HTML attribute safety (extension; safe)
4992 <div style="<nowiki>background:blue</nowiki>"></div>
4994 <div style="background:blue"></div>
4999 Bug 3244: HTML attribute safety (extension; unsafe)
5001 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
5003 <div style="/* insecure input */"></div>
5007 # More MSIE fun discovered by Tom Gilder
5010 MSIE CSS safety test: spurious slash
5012 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
5014 <div style="/* insecure input */">evil</div>
5019 MSIE CSS safety test: hex code
5021 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
5023 <div style="/* insecure input */">evil</div>
5028 MSIE CSS safety test: comment in url
5030 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
5032 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
5037 MSIE CSS safety test: comment in expression
5039 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
5041 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5047 Table attribute legitimate extension
5050 !+ style="<nowiki>color:blue</nowiki>"| status
5055 <th style="color:blue"> status
5061 Table attribute safety
5064 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5069 <th style="/* insecure input */"> status
5075 CSS line continuation 1
5077 <div style="background-image: u\ rl(test.jpg);"></div>
5079 <div style="/* insecure input */"></div>
5084 CSS line continuation 2
5086 <div style="background-image: u\ rl(test.jpg); "></div>
5088 <div style="/* insecure input */"></div>
5099 Expansion of multi-line templates in attribute values (bug 6255)
5101 <div style="background: {{identity|#00FF00}}">-</div>
5103 <div style="background: #00FF00">-</div>
5109 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5111 <div style="background:
5114 <div style="background: #00FF00">-</div>
5119 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5121 <div style="background: #00FF00">-</div>
5123 <div style="background: #00FF00">-</div>
5128 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5131 Parser hook: empty input
5144 Parser hook: empty input using terminated empty elements
5157 Parser hook: empty input using terminated empty elements (space before)
5170 Parser hook: basic input
5184 Parser hook: case insensitive
5198 Parser hook: case insensitive, redux
5211 Parser hook: nested tags
5215 <tag><tag></tag></tag>
5226 Parser hook: basic arguments
5228 <tag width=200 height = "100" depth = '50' square></tag>
5247 Parser hook: argument containing a forward slash (bug 5344)
5249 <tag filename='/tmp/bla'></tag>
5255 string(8) "/tmp/bla"
5262 Parser hook: empty input using terminated empty elements (bug 2374)
5276 # </tag> should be output literally since there is no matching tag that begins it
5278 Parser hook: basic arguments using terminated empty elements (bug 2374)
5280 <tag width=200 height = "100" depth = '50' square/>
5303 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5307 Parser hook: static parser hook not inside a comment
5309 <statictag>hello, world</statictag>
5310 <statictag action=flush/>
5318 Parser hook: static parser hook inside a comment
5320 <!-- <statictag>hello, world</statictag> -->
5321 <statictag action=flush/>
5327 # Nested template calls; this case was broken by Parser.php rev 1.506,
5331 Template:One-parameter
5333 (My parameter is: {{{1}}})
5337 Template:Map-one-parameter
5343 Nested template calls
5345 {{Map-one-parameter|One-parameter|param}}
5347 <p>(My parameter is: param)
5356 Sanitizer: Closing of open tags
5358 <s></s><table></table>
5360 <s></s><table></table>
5365 Sanitizer: Closing of open but not closed tags
5374 Sanitizer: Closing of closed but not open tags
5383 Sanitizer: Closing of closed but not open table tags
5385 Table not started</td></tr></table>
5387 <p>Table not started</td></tr></table>
5392 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5394 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5396 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5401 Sanitizer: Validating the contents of the id attribute (bug 4515)
5407 Something, but definitely not <br id="9" />...
5411 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5415 <br id="foo" /><br id="foo" />
5417 Something need to be done. foo-2 ?
5421 Language converter: output gets cut off unexpectedly (bug 5757)
5425 this bit is safe: }-
5427 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5429 then we get cut off here: }-
5431 all additional text is vanished
5433 <p>this bit is safe: }-
5434 </p><p>but if we add a conversion instance: xxx
5435 </p><p>then we get cut off here: }-
5436 </p><p>all additional text is vanished
5441 Self closed html pairs (bug 5487)
5444 <center><font id="bug" />Centered text</center>
5445 <div><font id="bug2" />In div text</div>
5447 <center><font id="bug" />Centered text</center>
5448 <div><font id="bug2" />In div text</div>
5457 Punctuation: nbsp before exclamation
5461 <p>C'est grave !
5466 Punctuation: CSS !important (bug 11874)
5468 <div style="width:50% !important">important</div>
5470 <div style="width:50% !important">important</div>
5475 Punctuation: CSS ! important (bug 11874; with space after)
5477 <div style="width:50% ! important">important</div>
5479 <div style="width:50% ! important">important</div>
5485 HTML bullet list, closed tags (bug 5497)
5500 HTML bullet list, unclosed tags (bug 5497)
5517 HTML ordered list, closed tags (bug 5497)
5532 HTML ordered list, unclosed tags (bug 5497)
5549 HTML nested bullet list, closed tags (bug 5497)
5574 HTML nested bullet list, open tags (bug 5497)
5599 HTML nested ordered list, closed tags (bug 5497)
5624 HTML nested ordered list, open tags (bug 5497)
5649 HTML ordered list item with parameters oddity
5651 <ol><li id="fragment">One</li></ol>
5653 <ol><li id="fragment">One</li></ol>
5658 bug 5918: autonumbering
5660 [http://first/] [http://second] [ftp://ftp]
5664 [mailto:enclosed@mail.tld With target]
5666 [mailto:enclosed@mail.tld]
5668 mailto:inline@mail.tld
5670 <p><a rel="nofollow" class="external autonumber" href="http://first/">[1]</a> <a rel="nofollow" class="external autonumber" href="http://second">[2]</a> <a rel="nofollow" class="external autonumber" href="ftp://ftp">[3]</a>
5671 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
5672 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
5673 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
5674 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
5680 # Security and HTML correctness
5681 # From Nick Jenkins' fuzz testing
5685 Fuzz testing: Parser13
5700 Fuzz testing: Parser14
5705 <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>
5706 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5708 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5715 Fuzz testing: Parser14-table
5720 <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>
5721 <table style="__TOC__">
5727 # Known to produce bogus xml (extra </td>)
5729 Fuzz testing: Parser16
5749 Fuzz testing: Parser21
5752 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5757 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5767 Fuzz testing: Parser22
5769 http://===r:::https://b
5773 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
5781 # Known to produce bad XML for now
5783 Fuzz testing: Parser24
5790 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5791 <br style="onmouseover='alert(document.cookie);' " />
5793 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5798 <u class="|">}}}} >
5799 <br style="onmouseover='alert(document.cookie);'" />
5801 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5810 # Note: the current result listed for this is not what the original one was,
5811 # but the original bug was JavaScript injection, which is fixed in any case.
5812 # It's not clear that the original result listed was any more correct than the
5813 # current one. Original result:
5816 # <li class="||">
5817 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5819 Fuzz testing: Parser25 (bug 6055)
5825 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5827 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5832 Fuzz testing: URL adjacent extension (with space, clean)
5835 http://example.com <nowiki>junk</nowiki>
5837 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
5842 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5845 http://example.com<nowiki>junk</nowiki>
5847 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
5852 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5855 http://example.com<pre>junk</pre>
5857 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
5862 Fuzz testing: image with bogus manual thumbnail
5864 [[Image:foobar.jpg|thumbnail= ]]
5866 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5871 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5873 <pre dir=" "></pre>
5875 <pre dir=" "></pre>
5880 Parsing optional HTML elements (Bug 6171)
5885 <td> Some tabular data</td>
5886 <td> More tabular data ...
5887 <td> And yet som tabular data</td>
5893 <td> Some tabular data</td>
5894 <td> More tabular data ...
5895 </td><td> And yet som tabular data</td>
5902 Correct handling of <td>, <tr> (Bug 6171)
5907 <td> Some tabular data</td>
5908 <td> More tabular data ...</td>
5909 <td> And yet som tabular data</td>
5915 <td> Some tabular data</td>
5916 <td> More tabular data ...</td>
5917 <td> And yet som tabular data</td>
5925 Parsing crashing regression (fr:JavaScript)
5929 <p></body></x>
5934 Inline wiki vs wiki block nesting
5940 <p><b>Bold paragraph</b>
5941 </p><p>New wiki paragraph
5946 Inline HTML vs wiki block nesting
5954 <p><b>Bold paragraph</b>
5955 </p><p>New wiki paragraph
5959 # Original result was this:
5960 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5962 # While that might be marginally more intuitive, maybe, the six-apostrophe
5963 # construct is clearly pathological and the result stated here (which is what
5964 # the parser actually does) is about as reasonable as anything.
5966 Mixing markup for italics and bold
5969 '''bold''''''bold''bolditalics'''''
5971 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5979 Article for special page transclusion test
5983 Special page transclusion
5986 {{Special:Prefixindex/Xyzzyx}}
5990 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5995 Special page transclusion twice (bug 5021)
5998 {{Special:Prefixindex/Xyzzyx}}
5999 {{Special:Prefixindex/Xyzzyx}}
6003 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6006 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6011 Transclusion of default MediaWiki message
6013 {{MediaWiki:Mainpage}}
6020 Transclusion of nonexistent MediaWiki message
6022 {{MediaWiki:Mainpagexxx}}
6024 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6029 Transclusion of MediaWiki message with underscore
6031 {{MediaWiki:history_short}}
6038 Transclusion of MediaWiki message with space
6040 {{MediaWiki:history short}}
6047 Invalid header with following text
6057 Section extraction test (section 0)
6077 Section extraction test (section 1)
6099 Section extraction test (section 2)
6120 Section extraction test (section 3)
6140 Section extraction test (section 4)
6164 Section extraction test (section 5)
6184 Section extraction test (section 6)
6205 Section extraction test (section 7)
6225 Section extraction test (section 8)
6245 Section extraction test (section 9)
6266 Section extraction test (section 10)
6286 Section extraction test (nonexistent section 11)
6305 Section extraction test with bogus heading (section 1)
6310 ==bogus== not a legal section
6314 ==bogus== not a legal section
6318 Section extraction test with bogus heading (section 2)
6323 ==bogus== not a legal section
6330 Section extraction test with comment after heading (section 1)
6342 Section extraction test with comment after heading (section 2)
6354 Section extraction test with bogus <nowiki> heading (section 1)
6359 ==bogus== <nowiki>not a legal section</nowiki>
6363 ==bogus== <nowiki>not a legal section</nowiki>
6367 Section extraction test with bogus <nowiki> heading (section 2)
6372 ==bogus== <nowiki>not a legal section</nowiki>
6379 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6380 # instead of respecting commented sections
6382 Section extraction prefixed by comment (section 1)
6393 Section extraction prefixed by comment (section 2)
6404 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6405 # instead of respecting HTML-style headings
6407 Section extraction, mixed wiki and html (section 1)
6423 Section extraction, mixed wiki and html (section 2)
6439 # Formerly testing for bug 3342
6441 Section extraction, heading surrounded by <noinclude>
6445 <noinclude>==unmarked==</noinclude>
6451 # Test behaviour of bug 19910
6453 Sectiion with all-equals
6458 The line above must have a trailing space
6461 But just in case it doesn't...
6465 But just in case it doesn't...
6469 Section replacement test (section 0)
6500 Section replacement test (section 1)
6529 Section replacement test (section 2)
6559 Section replacement test (section 3)
6590 Section replacement test (section 4)
6617 Section replacement test (section 5)
6648 Section replacement test (section 6)
6678 Section replacement test (section 7)
6709 Section replacement test (section 8)
6740 Section replacement test (section 9)
6769 Section replacement test (section 10)
6799 Section replacement test with initial whitespace (bug 13728)
6803 Preformatted initial line
6807 Preformatted initial line
6814 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6826 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6839 Section extraction, <pre> around bogus header (bug 10309)
6856 Section replacement, <pre> around bogus header (bug 10309)
6858 noxml replace=2,"xxx"
6879 Handling of 
 in URLs
6883 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
6890 5 quotes, code coverage +1 line
6897 Special:Search page linking.
6901 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
6916 * {{SUBJECTPAGENAME}}
6917 * {{SUBJECTPAGENAMEE}}
6924 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6926 <ul><li> Parser test
6927 </li><li> Parser test
6928 </li><li> Parser test
6929 </li><li> Parser_test
6930 </li><li> Parser test
6931 </li><li> Parser_test
6932 </li><li> Talk:Parser test
6933 </li><li> Talk:Parser_test
6934 </li><li> Parser test
6935 </li><li> Parser_test
6942 </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>
6946 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6956 image4 |300px| centre
6957 image5.svg| http://///////
6962 <ul class="gallery">
6963 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6964 <div style="height: 150px;">Image1.png</div>
6965 <div class="gallerytext">
6968 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6969 <div style="height: 150px;">Image2.gif</div>
6970 <div class="gallerytext">
6975 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6976 <div style="height: 150px;">Image3</div>
6977 <div class="gallerytext">
6980 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6981 <div style="height: 150px;">Image4</div>
6982 <div class="gallerytext">
6987 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6988 <div style="height: 150px;">Image5.svg</div>
6989 <div class="gallerytext">
6990 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
6994 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6995 <div style="height: 150px;">* image6</div>
6996 <div class="gallerytext">
7004 Gallery (with options)
7006 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
7007 File:Nonexistant.jpg|caption
7008 File:Nonexistant.jpg
7009 image:foobar.jpg|some '''caption''' [[Main Page]]
7011 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
7014 <ul class="gallery" style="max-width: 226px;_width: 226px;">
7015 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
7016 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7017 <div style="height: 70px;">Nonexistant.jpg</div>
7018 <div class="gallerytext">
7023 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7024 <div style="height: 70px;">Nonexistant.jpg</div>
7025 <div class="gallerytext">
7028 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7029 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="70" height="8" /></a></div></div>
7030 <div class="gallerytext">
7031 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7035 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7036 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="70" height="8" /></a></div></div>
7037 <div class="gallerytext">
7040 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7041 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="This is a foo-bar." src="http://example.com/images/3/3a/Foobar.jpg" width="70" height="8" /></a></div></div>
7042 <div class="gallerytext">
7052 Gallery with wikitext inside caption
7055 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
7056 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
7059 <ul class="gallery">
7060 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7061 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7062 <div class="gallerytext">
7063 <p><a href="/wiki/File:Foobar.jpg" class="image" title="desc"><img alt="inneralt" src="http://example.com/images/3/3a/Foobar.jpg" width="20" height="2" /></a>
7067 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7068 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7069 <div class="gallerytext">
7070 <p>This is a test template
7079 gallery (with showfilename option)
7081 <gallery showfilename>
7082 File:Nonexistant.jpg|caption
7083 File:Nonexistant.jpg
7084 image:foobar.jpg|some '''caption''' [[Main Page]]
7088 <ul class="gallery">
7089 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7090 <div style="height: 150px;">Nonexistant.jpg</div>
7091 <div class="gallerytext">
7092 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7097 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7098 <div style="height: 150px;">Nonexistant.jpg</div>
7099 <div class="gallerytext">
7100 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7104 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7105 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7106 <div class="gallerytext">
7107 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7108 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7112 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7113 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7114 <div class="gallerytext">
7115 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7124 Gallery (with namespace-less filenames)
7127 File:Nonexistant.jpg
7133 <ul class="gallery">
7134 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7135 <div style="height: 150px;">Nonexistant.jpg</div>
7136 <div class="gallerytext">
7139 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7140 <div style="height: 150px;">Nonexistant.jpg</div>
7141 <div class="gallerytext">
7144 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7145 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7146 <div class="gallerytext">
7149 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7150 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
7151 <div class="gallerytext">
7159 HTML Hex character encoding (spells the word "JavaScript")
7161 JavaScript
7163 <p>JavaScript
7168 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7172 <p>&#xsee;&#XSEE;
7177 HTML Hex character encoding mixed case
7186 __FORCETOC__ override
7198 ISBN 978-0-1234-56 789
7200 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7205 ISBN followed by 5 spaces
7216 ISBN ISBN 1234567890
7218 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7223 Bug 22905: <abbr> followed by ISBN followed by </a>
7225 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7227 <p><abbr>(fr)</abbr> <a href="/wiki/Special:BookSources/2753300917" class="internal mw-magiclink-isbn">ISBN 2753300917</a> <a rel="nofollow" class="external text" href="http://www.example.com">example.com</a>
7236 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
7241 Double RFC with a wiki link
7245 <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>
7254 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
7259 Centre-aligned image
7261 [[Image:foobar.jpg|centre]]
7263 <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>
7270 [[Image:foobar.jpg|none]]
7272 <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>
7277 Width + Height sized image (using px) (height is ignored)
7279 [[Image:foobar.jpg|640x480px]]
7281 <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>
7286 Width-sized image (using px, no following whitespace)
7288 [[Image:foobar.jpg|640px]]
7290 <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>
7295 Width-sized image (using px, with following whitespace - test regression from r39467)
7297 [[Image:foobar.jpg|640px ]]
7299 <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>
7304 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7306 [[Image:foobar.jpg| 640px]]
7308 <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>
7313 Another italics / bold test
7321 # Note the results may be incorrect, as parserTest output included this:
7322 # XML error: Mismatched tag at byte 6120:
7323 # ...<dd> </dt></dl> </dd...
7331 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7342 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7344 Images with the "|" character in the comment
7346 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7348 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>An <a rel="nofollow" class="external text" href="http://test/?param1=%7Cleft%7C&param2=%7Cx">external</a> URL</div></div></div>
7353 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7355 <html><script>alert(1);</script></html>
7357 <p><html><script>alert(1);</script></html>
7362 HTML with raw HTML ($wgRawHtml==true)
7366 <html><script>alert(1);</script></html>
7368 <p><script>alert(1);</script>
7373 Parents of subpages, one level up
7375 subpage title=[[Subpage test/L1/L2/L3]]
7379 <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>
7385 Parents of subpages, one level up, not named
7387 subpage title=[[Subpage test/L1/L2/L3]]
7391 <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>
7398 Parents of subpages, two levels up
7400 subpage title=[[Subpage test/L1/L2/L3]]
7406 <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
7407 </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>
7412 Parents of subpages, two levels up, without trailing slash or name.
7414 subpage title=[[Subpage test/L1/L2/L3]]
7423 Parents of subpages, two levels up, with lots of extra trailing slashes.
7425 subpage title=[[Subpage test/L1/L2/L3]]
7429 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7434 Definition list code coverage
7440 <dl><dt> title  </dt><dd> def
7441 </dd><dt> title </dt><dd> def
7442 </dd><dt>title</dt><dd> def
7448 Don't fall for the self-closing div
7450 <div>hello world</div/>
7452 <div>hello world</div>
7461 <p>[[:Template:Msg]]
7470 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7474 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7476 Always escape literal '>' in output, not just after '<'
7490 <p>This is a test template
7491 This is a test template
7503 Inclusion of !userCanEdit() content
7507 <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>
7513 Out-of-order TOC heading levels
7522 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7524 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7526 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7527 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7530 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7532 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7533 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7538 <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>
7539 <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>
7540 <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>
7541 <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>
7542 <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>
7543 <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>
7549 ISBN with a dummy number
7559 ISBN with space-delimited number
7563 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7569 ISBN with multiple spaces, no number
7588 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7589 </p><p>ISBN 12345678901
7595 ISBN with trailing year (bug 8110)
7597 ISBN 1-234-56789-0 - 2006
7599 ISBN 1 234 56789 0 - 2006
7601 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7602 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7610 {{anchorencode:foo bar©#%n}}
7612 <p>foo_bar.C2.A9.23.25n
7617 anchorencode trims spaces
7619 {{anchorencode: __pretty__please__}}
7626 anchorencode deals with links
7628 {{anchorencode: [[hello|world]] [[hi]]}}
7635 anchorencode deals with templates
7637 {{anchorencode: {{Foo}} }}
7644 anchorencode encodes like the TOC generator: (bug 18431)
7646 === _ +:.3A%3A&&]] ===
7647 {{anchorencode: _ +:.3A%3A&&]] }}
7650 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7651 <p>.2B:.3A.253A.26.26.5D.5D
7655 # Expected output in the following test is not necessarily expected (there
7656 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7657 # only testing for well-formedness.
7659 Bug 6200: blockquotes and paragraph formatting
7679 Bug 8293: Use of center tag ruins paragraph formatting
7701 ### Language variants related tests
7704 Self-link in language variants
7706 title=[[Dunav]] language=sr
7708 Both [[Dunav]] and [[Дунав]] are names for this river.
7710 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7716 Link to pages in language variants
7720 Main Page can be written as [[Маин Паге]]
7722 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7728 Multiple links to pages in language variants
7732 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7734 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a> can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a> same as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>.
7740 Simple template in language variants
7746 <p>This is a test template
7752 Template with explicit namespace in language variants
7758 <p>This is a test template
7764 Basic test for template parameter in language variants
7768 {{парамтест|param=foo}}
7770 <p>This is a test template with parameter foo
7776 Simple category in language variants
7780 [[Category:МедиаWики Усер'с Гуиде]]
7782 <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>
7787 Stripping -{}- tags (language variants)
7791 Latin proverb: -{Ne nuntium necare}-
7793 <p>Latin proverb: Ne nuntium necare
7799 Prevent conversion with -{}- tags (language variants)
7801 language=sr variant=sr-ec
7803 Latinski: -{Ne nuntium necare}-
7805 <p>Латински: Ne nuntium necare
7811 Prevent conversion of text with -{}- tags (language variants)
7813 language=sr variant=sr-ec
7815 Latinski: -{Ne nuntium necare}-
7817 <p>Латински: Ne nuntium necare
7823 Prevent conversion of links with -{}- tags (language variants)
7825 language=sr variant=sr-ec
7829 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7835 -{}- tags within headlines (within html for parserConvert())
7837 language=sr variant=sr-ec
7841 <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>
7847 Explicit definition of language variant alternatives
7849 language=zh variant=zh-tw
7851 -{zh:China;zh-tw:Taiwan}-, not China
7853 <p>Taiwan, not China
7859 Explicit session-wise language variant mapping (A flag and - flag)
7861 language=zh variant=zh-tw
7863 Taiwan is not China.
7864 But -{A|zh:China;zh-tw:Taiwan}- is China,
7865 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
7866 and -{China}- is China.
7868 <p>Taiwan is not China.
7869 But Taiwan is Taiwan,
7870 (This should be stripped!)
7876 Explicit session-wise language variant mapping (H flag for hide)
7878 language=zh variant=zh-tw
7880 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
7883 <p>(This should be stripped!)
7889 Adding explicit conversion rule for title (T flag)
7891 language=zh variant=zh-tw showtitle
7893 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7896 <p>Should be stripped!
7901 Testing that changing the language variant here in the tests actually works
7903 language=zh variant=zh showtitle
7905 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7908 <p>Should be stripped!
7913 Bug 24072: more test on conversion rule for title
7915 language=zh variant=zh-tw showtitle
7917 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7918 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
7921 <p>This should be stripped!
7922 This won't take interferes with the title rule.
7927 Raw output of variant escape tags (R flag)
7929 language=zh variant=zh-tw
7931 Raw: -{R|zh:China;zh-tw:Taiwan}-
7933 <p>Raw: zh:China;zh-tw:Taiwan
7938 Nested using of manual convert syntax
7940 language=zh variant=zh-hk
7942 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
7944 <p>Nested: Hello Hong Kong!
7949 Do not convert roman numbers to language variants
7951 language=sr variant=sr-ec
7955 <p>Фридрих IV је цар.
7960 Unclosed language converter markup "-{"
7971 Don't convert raw rule "-{R|=>}-" to "=>"
7988 Bug 529: Uncovered bullet
7999 Bug 529: Uncovered table already at line-start
8022 Bug 529: Uncovered bullet in parser function result
8024 * Foo {{lc:{{bullet}} }}
8033 Bug 5678: Double-parsed template argument
8035 {{lc:{{{1}}}|hello}}
8042 Bug 5678: Double-parsed template invocation
8044 {{lc:{{paramtest {{!}} param = hello }} }}
8046 <p>{{paramtest | param = hello }}
8051 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8077 Morwen/13: Unclosed link followed by heading
8084 <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>
8089 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8096 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8101 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8108 <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>
8123 Paragraphs inside divs (no extra line breaks)
8135 Paragraphs inside divs (extra line break on open)
8150 Paragraphs inside divs (extra line break on close)
8165 Paragraphs inside divs (extra line break on open and close)
8182 Nesting tags, paragraphs on lines which begin with <div>
8186 <div></div><strong>A
8195 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8197 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8201 <blockquote>Line one
8203 Line two</blockquote>
8205 <blockquote>Line one
8206 Line two</blockquote>
8211 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8218 Line two</blockquote>
8223 Line two</blockquote>
8228 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8232 <blockquote>Line one
8237 <blockquote>Line one
8245 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8264 Paragraphs inside blockquotes/divs (no extra line breaks)
8266 <blockquote><div>Line one
8268 Line two</div></blockquote>
8270 <blockquote><div>Line one
8271 Line two</div></blockquote>
8276 Paragraphs inside blockquotes/divs (extra line break on open)
8281 Line two</div></blockquote>
8286 Line two</div></blockquote>
8291 Paragraphs inside blockquotes/divs (extra line break on close)
8293 <blockquote><div>Line one
8298 <blockquote><div>Line one
8306 Paragraphs inside blockquotes/divs (extra line break on open and close)
8323 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8325 wgLinkHolderBatchSize=0
8331 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
8332 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
8333 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
8338 Free external link invading image caption
8340 [[Image:Foobar.jpg|thumb|http://x|hello]]
8342 <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>
8347 Bug 15196: localised external link numbers
8351 [http://en.wikipedia.org/]
8353 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8358 Multibyte character in padleft
8360 {{padleft:-Hello|7|Æ}}
8367 Multibyte character in padright
8369 {{padright:Hello-|7|Æ}}
8382 <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>
8387 formatdate parser function
8389 {{#formatdate:2009-03-24}}
8391 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8396 formatdate parser function, with default format
8398 {{#formatdate:2009-03-24|mdy}}
8400 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8405 Linked date with autoformatting disabled
8407 wgUseDynamicDates=false
8411 <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>
8416 Spacing of numbers in formatted dates
8418 {{#formatdate:January 15}}
8420 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8425 Spacing of numbers in formatted dates (linked)
8427 wgUseDynamicDates=true
8431 <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>
8444 Edit comment with link
8448 I like the [[Main Page]] a lot
8450 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
8454 Edit comment with link and link text
8458 I like the [[Main Page|best pages]] a lot
8460 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8464 Edit comment with link and link text with suffix
8468 I like the [[Main Page|best page]]s a lot
8470 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8474 Edit comment with section link (non-local, eg in history list)
8476 comment title=[[Main Page]]
8478 /* External links */ removed bogus entries
8480 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
8484 Edit comment with section link (local, eg in diff view)
8486 comment local title=[[Main Page]]
8488 /* External links */ removed bogus entries
8490 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
8494 Edit comment with subpage link (bug 14080)
8498 title=[[Subpage test]]
8500 Poked at a [[/subpage]] here...
8502 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8506 Edit comment with subpage link and link text (bug 14080)
8510 title=[[Subpage test]]
8512 Poked at a [[/subpage|neat little page]] here...
8514 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8518 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8521 title=[[Subpage test]]
8523 Poked at a [[/subpage]] here...
8525 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8529 Edit comment with bare anchor link (local, as on diff)
8537 <a href="#section">#section</a>
8541 Edit comment with bare anchor link (non-local, as on history)
8548 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8552 Anchor starting with underscore
8556 <p><a href="#_ref">One</a>
8561 Id starting with underscore
8563 <div id="_ref"></div>
8565 <div id="_ref"></div>
8570 Space normalisation on autocomment (bug 22784)
8575 /* __hello__world__ */
8577 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
8581 percent-encoding and + signs in comments (Bug 26410)
8585 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8587 <a href="/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">ABC3D% ++</a> <a href="/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">+%20</a>
8593 Bad images - basic functionality
8602 Bad images - bug 16039: text after bad image disappears
8614 Verify that displaytitle works (bug #22501) no displaytitle
8618 wgAllowDisplayTitle=true
8619 wgRestrictDisplayTitle=false
8621 this is not the the title
8624 <p>this is not the the title
8629 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8634 wgAllowDisplayTitle=true
8635 wgRestrictDisplayTitle=false
8637 this is not the the title
8638 {{DISPLAYTITLE:whatever}}
8641 <p>this is not the the title
8646 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8651 wgAllowDisplayTitle=true
8652 wgRestrictDisplayTitle=true
8654 this is not the the title
8655 {{DISPLAYTITLE:whatever}}
8658 <p>this is not the the title
8663 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8668 wgAllowDisplayTitle=true
8669 wgRestrictDisplayTitle=true
8671 this is not the the title
8672 {{DISPLAYTITLE:screen}}
8675 <p>this is not the the title
8680 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8685 wgAllowDisplayTitle=false
8687 this is not the the title
8688 {{DISPLAYTITLE:screen}}
8691 <p>this is not the the title
8692 <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>
8697 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8702 wgAllowDisplayTitle=false
8704 this is not the the title
8707 <p>this is not the the title
8712 preload: check <noinclude> and <includeonly>
8716 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8722 preload: check <onlyinclude>
8726 Goodbye <onlyinclude>Hello world</onlyinclude>
8732 preload: can pass tags through if we want to
8736 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8738 <includeonly>Hello world</includeonly>
8742 preload: check that it doesn't try to do tricks
8746 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8748 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8752 Play a bit with r67090 and bug 3158
8756 <div style="width:50% !important"> </div>
8757 <div style="width:50% !important"> </div>
8758 <div style="width:50% !important"> </div>
8759 <div style="border : solid;"> </div>
8761 <div style="width:50% !important"> </div>
8762 <div style="width:50% !important"> </div>
8763 <div style="width:50% !important"> </div>
8764 <div style="border : solid;"> </div>
8769 HTML5 data attributes
8771 <span data-foo="bar">Baz</span>
8772 <p data-abc-def_hij="">Quuz</p>
8774 <p><span data-foo="bar">Baz</span>
8776 <p data-abc-def_hij="">Quuz</p>
8781 percent-encoding and + signs in internal links (Bug 26410)
8783 [[User:+%]] [[Page+title%]]
8784 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
8785 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
8786 [[%33%45]] [[%33%45+]]
8788 <p><a href="/index.php?title=User:%2B%25&action=edit&redlink=1" class="new" title="User:+% (page does not exist)">User:+%</a> <a href="/index.php?title=Page%2Btitle%25&action=edit&redlink=1" class="new" title="Page+title% (page does not exist)">Page+title%</a>
8789 <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%20</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+ </a> <a href="/index.php?title=%25%2Br&action=edit&redlink=1" class="new" title="%+r (page does not exist)">%+r</a>
8790 <a href="/index.php?title=%25&action=edit&redlink=1" class="new" title="% (page does not exist)">%</a> <a href="/index.php?title=%2B&action=edit&redlink=1" class="new" title="+ (page does not exist)">+</a> <a href="/index.php?title=Special:Upload&wpDestFile=%25%2Babc9" class="new" title="File:%+abc9">bar</a>
8791 <a href="/index.php?title=3E&action=edit&redlink=1" class="new" title="3E (page does not exist)">3E</a> <a href="/index.php?title=3E%2B&action=edit&redlink=1" class="new" title="3E+ (page does not exist)">3E+</a>
8796 Special characters in embedded file links (bug 27679)
8798 [[File:Contains & ampersand.jpg]]
8799 [[File:Does not exist.jpg|Title with & ampersand]]
8801 <p><a href="/index.php?title=Special:Upload&wpDestFile=Contains_%26_ampersand.jpg" class="new" title="File:Contains & ampersand.jpg">File:Contains & ampersand.jpg</a>
8802 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
8808 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
8810 Text's been normalized?
8812 <p>Text's been normalized?
8817 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
8819 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
8821 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
8826 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
8828 [http://www.example.org/ ideograms]
8830 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
8835 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
8837 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
8839 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
8863 Bug 31098 Template which includes system messages which includes the template
8867 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
8868 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
8873 Deprecated presentational attributes are converted to css
8876 | valign=top align=left width=100 height=25% | Asdf
8878 <ul type="disc"></ul>
8882 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
8884 <ul style="list-style-type: disc;"></ul>
8889 Bug31490 Turkish: ucfirst 'blah'
8900 Bug31490 Turkish: ucfirst 'ix'
8911 Bug31490 Turkish: lcfirst 'BLAH'
8922 Bug31490 Turkish: ucfırst (with a dotless i)
8928 <p><a href="/index.php?title=%C5%9Eablon:Ucf%C4%B1rst:blah&action=edit&redlink=1" class="new" title="Şablon:Ucfırst:blah (sayfa mevcut değil)">Şablon:Ucfırst:blah</a>
8933 Bug31490 ucfırst (with a dotless i) with English language
8939 <p><a href="/index.php?title=Template:Ucf%C4%B1rst:blah&action=edit&redlink=1" class="new" title="Template:Ucfırst:blah (page does not exist)">Template:Ucfırst:blah</a>
8944 Bug 26375: TOC with italics
8949 == ''Lost'' episodes ==
8951 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8953 <li class="toclevel-1 tocsection-1"><a href="#Lost_episodes"><span class="tocnumber">1</span> <span class="toctext"><i>Lost</i> episodes</span></a></li>
8956 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Lost episodes">edit</a>]</span> <span class="mw-headline" id="Lost_episodes"> <i>Lost</i> episodes </span></h2>
8963 == {{int:headline_sample}} ==
8967 Bug 32057: Title needed when expanding <h> nodes.
8973 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Headline text">edit</a>]</span> <span class="mw-headline" id="Headline_text"> Headline text </span></h2>
8978 Bug 32450: MediaWiki: js pages should ignore Category syntax
8980 title=[[MediaWiki:bug32450.js]]
8982 var foo = "[[Category:bug32450]]"
8984 <p>var foo = "[[Category:bug32450]]"
8989 Bug 32450: MediaWiki: css pages should ignore Category syntax
8991 title=[[MediaWiki:bug32450.css]]
8993 /** Css comment: "[[Category:bug32450]]" */
8995 <p>/** Css comment: "[[Category:bug32450]]" */
9005 Try for 100% code coverage