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]]
81 This is a simple paragraph.
83 <p>This is a simple paragraph.
103 * plain''italic''plain
104 * plain''italic''plain''italic''plain
105 * plain'''bold'''plain
106 * plain'''bold'''plain'''bold'''plain
107 * plain''italic''plain'''bold'''plain
108 * plain'''bold'''plain''italic''plain
109 * plain''italic'''bold-italic'''italic''plain
110 * plain'''bold''bold-italic''bold'''plain
111 * plain'''''bold-italic'''italic''plain
112 * plain'''''bold-italic''bold'''plain
113 * plain''italic'''bold-italic'''''plain
114 * plain'''bold''bold-italic'''''plain
115 * plain l'''italic''plain
116 * plain l''''bold''' plain
119 </li><li> plain<i>italic</i>plain
120 </li><li> plain<i>italic</i>plain<i>italic</i>plain
121 </li><li> plain<b>bold</b>plain
122 </li><li> plain<b>bold</b>plain<b>bold</b>plain
123 </li><li> plain<i>italic</i>plain<b>bold</b>plain
124 </li><li> plain<b>bold</b>plain<i>italic</i>plain
125 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
126 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
127 </li><li> plain<i><b>bold-italic</b>italic</i>plain
128 </li><li> plain<b><i>bold-italic</i>bold</b>plain
129 </li><li> plain<i>italic<b>bold-italic</b></i>plain
130 </li><li> plain<b>bold<i>bold-italic</i></b>plain
131 </li><li> plain l'<i>italic</i>plain
132 </li><li> plain l'<b>bold</b> plain
138 ### <nowiki> test cases
142 <nowiki> unordered list
144 <nowiki>* This is not an unordered list item.</nowiki>
146 <p>* This is not an unordered list item.
153 <nowiki>Lorem ipsum dolor
174 :There is not nowiki.
175 :There is <nowiki>nowiki</nowiki>.
177 #There is not nowiki.
178 #There is <nowiki>nowiki</nowiki>.
180 *There is not nowiki.
181 *There is <nowiki>nowiki</nowiki>.
183 <dl><dd>There is not nowiki.
184 </dd><dd>There is nowiki.
186 <ol><li>There is not nowiki.
187 </li><li>There is nowiki.
189 <ul><li>There is not nowiki.
190 </li><li>There is nowiki.
202 <!-- comment 1 --> asdf
238 asdf<!-- comment 1 -->jkl
248 <!-- foo --> b <!-- bar -->
262 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
268 Comment semantics and delimiters
270 <!-- --><!----><!-----><!------>
276 Comment semantics and delimiters, redux
278 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
279 -- foo -- funky huh? ... -->
285 Comment semantics and delimiters: directors cut
287 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
288 everything starting with < followed by !-- until the first -- and > we see,
289 that wouldn't be valid XML however, since in XML -- has to terminate a comment
297 Comment semantics: nesting
299 <!--<!-- no, we're not going to do anything fancy here -->-->
306 Comment semantics: unclosed comment at end
308 <!--This comment will run out to the end of the document
314 Comment in template title
323 Comment on its own line post-expand
335 ### Preformatted text
344 And a [[Main Page|link]]
350 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
355 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
372 Regression with preformatted in <center>
385 # Expected output in the following test is not really expected (there should be
386 # <pre> in the output) -- it's only testing for well-formedness.
388 Bug 6200: Preformatted in <blockquote>
401 <pre> with attributes (bug 3202)
403 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
405 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
410 <pre> with width attribute (bug 3202)
412 <pre width="8">Narrow screen goodies</pre>
414 <pre width="8">Narrow screen goodies</pre>
419 <pre> with forbidden attribute (bug 3202)
421 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
423 <pre width="8">Narrow screen goodies</pre>
428 <pre> with forbidden attribute values (bug 3202)
430 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
432 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
437 <nowiki> inside <pre> (bug 13238)
445 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
453 <pre><nowiki>Foo</nowiki></pre>
458 <nowiki> and <pre> preference (first one wins)
497 <dl><dt> name </dt><dd> Definition
503 Definition list for indentation only
507 <dl><dd> Indented text
513 Definition list with no space
517 <dl><dt>name</dt><dd>Definition
523 Definition list with URL link
525 ; http://example.com/ : definition
527 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
533 Definition list with bracketed URL link
535 ;[http://www.example.com/ Example]:Something about it
537 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
543 Definition list with wikilink containing colon
545 ; [[Help:FAQ]]: The least-read page on Wikipedia
547 <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
552 # At Brion's and JeLuF's insistence... :)
554 Definition list with news link containing colon
556 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
558 <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!
564 Malformed definition list with colon
566 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
568 <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
574 Definition lists: colon in external link text
576 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
578 <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
584 Definition lists: colon in HTML attribute
586 ;<b style="display: inline">bold</b>
588 <dl><dt><b style="display: inline">bold</b>
595 Definition lists: self-closed tag
597 ;one<br/>two : two-line fun
599 <dl><dt>one<br />two </dt><dd> two-line fun
605 Bug 11748: Literal closing tags
611 <dd>test test test test test</dd>
613 <dd>test test test test test</dd>
618 <dd>test test test test test</dd>
620 <dd>test test test test test</dd>
625 Definition and unordered list using wiki syntax nested in unordered list using html tags.
634 <dl><dt> term </dt><dd> description
644 Definition list with empty definition and following paragraph
649 <dl><dt> term</dt><dd>
659 External links: non-bracketed
661 Non-bracketed: http://example.com
663 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
668 External links: numbered
670 Numbered: [http://example.com]
671 Numbered: [http://example.net]
672 Numbered: [http://example.com]
674 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
675 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
676 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
681 External links: specified text
683 Specified text: [http://example.com link]
685 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
690 External links: trail
692 Linktrails should not work for external links: [http://example.com link]s
694 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
699 External links: dollar sign in URL
701 http://example.com/1$2345
703 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
708 External links: dollar sign in URL (named)
710 [http://example.com/1$2345]
712 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
717 External links: open square bracket forbidden in URL (bug 4377)
719 http://example.com/1[2345
721 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
726 External links: open square bracket forbidden in URL (named) (bug 4377)
728 [http://example.com/1[2345]
730 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
735 External links: nowiki in URL link text (bug 6230)
737 [http://example.com/ <nowiki>''example site''</nowiki>]
739 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
744 External links: newline forbidden in text (bug 6230 regression check)
746 [http://example.com/ first
749 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
755 External links: protocol-relative URL in brackets
757 [//example.com/ Test]
759 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
764 External links: protocol-relative URL in brackets without text
768 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
773 External links: protocol-relative URL in free text is left alone
782 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
786 <p>foo//example.com/Foo
793 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
795 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
800 External image from https
802 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
804 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
809 Link to non-http image, no img tag
811 Link to non-http image, no img tag: ftp://example.com/test.jpg
813 <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>
818 External links: terminating separator
820 Terminating separator: http://example.com/thing,
822 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
827 External links: intervening separator
829 Intervening separator: http://example.com/1,2,3
831 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
836 External links: old bug with URL in query
838 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
840 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
845 External links: old URL-in-URL bug, mixed protocols
847 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
849 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
854 External links: URL in text
856 URL in text: [http://example.com http://example.com]
858 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
863 External links: Clickable images
865 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
867 <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>
872 External links: raw ampersand
874 Old & use: http://x&y
876 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
881 External links: encoded ampersand
883 Old & use: http://x&y
885 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
890 External links: encoded equals (bug 6102)
892 http://example.com/?foo=bar
894 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
899 External links: [raw ampersand]
901 Old & use: [http://x&y]
903 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
908 External links: [encoded ampersand]
910 Old & use: [http://x&y]
912 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
917 External links: [encoded equals] (bug 6102)
919 [http://example.com/?foo=bar]
921 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
926 External links: [IDN ignored character reference in hostname; strip it right off]
928 [http://e‌xample.com/]
930 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
935 External links: IDN ignored character reference in hostname; strip it right off
937 http://e‌xample.com/
939 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
944 External links: www.jpeg.org (bug 554)
948 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
953 External links: URL within URL (original bug 2)
955 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
957 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
962 BUG 361: URL inside bracketed URL
964 [http://www.example.com/foo http://www.example.com/bar]
966 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
971 BUG 361: URL within URL, not bracketed
973 http://www.example.com/foo?=http://www.example.com/bar
975 <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>
980 BUG 289: ">"-token in URL-tail
982 http://www.example.com/<hello>
984 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
989 BUG 289: literal ">"-token in URL-tail
991 http://www.example.com/<b>html</b>
993 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
998 BUG 289: ">"-token in bracketed URL
1000 [http://www.example.com/<hello> stuff]
1002 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
1007 BUG 289: literal ">"-token in bracketed URL
1009 [http://www.example.com/<b>html</b> stuff]
1011 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1016 BUG 289: literal double quote at end of URL
1018 http://www.example.com/"hello"
1020 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1025 BUG 289: literal double quote in bracketed URL
1027 [http://www.example.com/"hello" stuff]
1029 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1034 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1036 [http://www.example.com test]
1038 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1043 External links: wiki links within external link (Bug 3695)
1045 [http://example.com [[wikilink]] embedded in ext link]
1047 <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>
1052 BUG 787: Links with one slash after the url protocol are invalid
1056 [http:/example.com title]
1058 <p>http:/example.com
1059 </p><p>[http:/example.com title]
1064 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1066 ''[http://example.com text'']
1067 [http://example.com '''text]'''
1068 ''Something [http://example.com in italic'']
1069 ''Something [http://example.com mixed''''', even bold]'''
1070 '''''Now [http://example.com both''''']
1072 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1073 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1074 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1075 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1076 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1082 Bug 4781: %26 in URL
1084 http://www.example.com/?title=AT%26T
1086 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1090 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
1091 # % is actually legal in HTML5. Any change in output would need testing though.
1093 Bug 4781, 5267: %25 in URL
1095 http://www.example.com/?title=100%25_Bran
1097 <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>
1102 Bug 4781, 5267: %28, %29 in URL
1104 http://www.example.com/?title=Ben-Hur_%281959_film%29
1106 <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>
1112 Bug 4781: %26 in autonumber URL
1114 [http://www.example.com/?title=AT%26T]
1116 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1121 Bug 4781, 5267: %26 in autonumber URL
1123 [http://www.example.com/?title=100%25_Bran]
1125 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1130 Bug 4781, 5267: %28, %29 in autonumber URL
1132 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1134 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1140 Bug 4781: %26 in bracketed URL
1142 [http://www.example.com/?title=AT%26T link]
1144 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1149 Bug 4781, 5267: %26 in bracketed URL
1151 [http://www.example.com/?title=100%25_Bran link]
1153 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1158 Bug 4781, 5267: %28, %29 in bracketed URL
1160 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1162 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1167 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1169 Some [http://example.com/ pretty ''italics'' and stuff]!
1171 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1176 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1178 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1180 <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>
1185 External link containing double-single-quotes with no space separating the url from text in italics
1187 [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]].]
1189 <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>
1194 URL-encoding in URL functions (single parameter)
1196 {{localurl:Some page|amp=&}}
1198 <p>/index.php?title=Some_page&amp=&
1203 URL-encoding in URL functions (multiple parameters)
1205 {{localurl:Some page|q=?&=&}}
1207 <p>/index.php?title=Some_page&q=?&amp=&
1214 http://example.com/index.php?foozoid%5B%5D=bar
1216 http://example.com/index.php?foozoid[]=bar
1218 <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>
1219 </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>
1224 IPv6 urls (bug 21261)
1228 http://[2404:130:0:1000::187:2]/index.php
1230 <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>
1241 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1243 Normal text. '''''Bold italic text.''''' Normal text.
1245 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1246 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1252 Unclosed and unmatched quotes
1254 '''''Bold italic text '''with bold deactivated''' in between.'''''
1256 '''''Bold italic text ''with italic deactivated'' in between.'''''
1260 ..spanning two paragraphs (should not work).'''
1262 '''Bold tag left open
1264 ''Italic tag left open
1268 <!-- Unmatching number of opening, closing tags: -->
1269 '''This year''''s election ''should'' beat '''last year''''s.
1271 ''Tom'''s car is bigger than ''Susan'''s.
1273 Plain ''italic'''s plain
1275 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1276 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1277 </p><p><b>Bold text..</b>
1278 </p><p>..spanning two paragraphs (should not work).
1279 </p><p><b>Bold tag left open</b>
1280 </p><p><i>Italic tag left open</i>
1282 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1283 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1284 </p><p>Plain <i>italic'</i>s plain
1291 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1294 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1295 # is the bare minimun required by the spec, see:
1296 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1298 A table with no data.
1304 # A table with nothing but a caption is invalid XHTML, we might want to render
1305 # this as <p>caption</p>
1307 A table with nothing but a caption
1315 </caption><tr><td></td></tr></table>
1341 Multiplication table
1343 {| border="1" cellpadding="2"
1344 |+Multiplication table
1346 ! × !! 1 !! 2 !! 3
1364 <table border="1" cellpadding="2">
1365 <caption>Multiplication table
1416 |rowspan=2| Cell 2, row 1 (and 2)
1427 <td rowspan="2"> Cell 2, row 1 (and 2)
1445 {| bgcolor=#ABCDEF border=2
1450 |the original table again
1458 <table bgcolor="#ABCDEF" border="2">
1466 <td>the original table again
1472 Invalid attributes in table cell (bug 1830)
1487 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1490 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1494 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
1495 <td>]" onmouseover="alert(document.cookie)">test
1504 Indented table markup mixed with indented pre content (proposed in bug 6200)
1509 Text that should be rendered preformatted
1517 <pre>Text that should be rendered preformatted
1530 Plain link, capitalized
1534 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1539 Plain link, uncapitalized
1543 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1550 [[Main Page|The Main Page]]
1552 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1561 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1566 Broken link with fragment
1568 [[Zigzagzogzagzig#zug]]
1570 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1575 Special page link with fragment
1577 [[Special:Version#anchor]]
1579 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1584 Nonexistent special page link with fragment
1586 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1588 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1595 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1597 <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>
1604 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1606 <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>!!!
1611 Link with 3 brackets
1620 Piped link with 3 brackets
1622 [[[main page|the main page]]]
1624 <p>[[[main page|the main page]]]
1629 Link with multiple pipes
1631 [[Main Page|The|Main|Page]]
1633 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1640 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1642 <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>
1647 Piped link to namespace
1649 [[Meta:Disclaimers|The disclaimers]]
1651 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1658 [[Usually caused by a typo (oops}]]
1660 <p>[[Usually caused by a typo (oops}]]
1665 Link containing % (not as a hex sequence)
1669 <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>
1674 Link containing % as a single hex sequence interpreted to char
1678 <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>
1683 Link containing % as a double hex sequence interpreted to hex sequence
1687 <p>[[7%2525 Solution]]
1692 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1693 Example for such a section: == < ==
1695 [[%23%3c]][[%23%3e]]
1697 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1702 Link containing "<#" and ">#" as a hex sequences
1704 [[%3c%23]][[%3e%23]]
1706 <p>[[%3c%23]][[%3e%23]]
1711 Link containing double-single-quotes '' (bug 4598)
1713 [[Lista d''e paise d''o munno]]
1715 <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>
1720 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1722 Some [[Link|pretty ''italics'' and stuff]]!
1724 <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>!
1729 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1731 ''Some [[Link|pretty ''italics'' and stuff]]!
1733 <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>
1738 Link with double quotes in title part (literal) and alternate part (interpreted)
1740 [[File:Denys Savchenko ''Pentecoste''.jpg]]
1744 [[''Pentecoste''|Pentecoste]]
1746 [[''Pentecoste''|''Pentecoste'']]
1748 <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>
1749 </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>
1750 </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>
1751 </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>
1758 [[http://www.example.com]]
1760 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
1765 Plain link to URL with link text
1767 [[http://www.example.com Link text]]
1769 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
1774 Plain link to protocol-relative URL
1776 [[//www.example.com]]
1778 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
1783 Plain link to protocol-relative URL with link text
1785 [[//www.example.com Link text]]
1787 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
1792 # I'm fairly sure the expected result here is wrong.
1793 # We want these to be URL links, not pseudo-pages with URLs for titles....
1794 # However the current output is also pretty screwy.
1797 # I'm changing it to match the current output--it arguably makes more
1798 # sense in the light of the test above. Old expected result was:
1799 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1801 # But I think this test is bordering on "garbage in, garbage out" anyway.
1806 Piped link to URL: [[http://www.example.com|an example URL]]
1808 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
1813 BUG 2: [[page|http://url/]] should link to page, not http://url/
1815 [[Main Page|http://url/]]
1817 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1822 BUG 337: Escaped self-links should be bold
1826 [[Bug462]] [[Bug462]]
1828 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1833 Self-link to section should not be bold
1837 [[Main Page#section]]
1839 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1850 Self-link to numeric title
1856 <p><strong class="selflink">0</strong>
1861 Link to numeric-equivalent title
1867 <p><a href="/wiki/00" title="00">00</a>
1872 <nowiki> inside a link
1874 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1876 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1881 Non-breaking spaces in title
1883 [[ Main Page ]]
1885 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
1890 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
1896 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
1901 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
1907 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
1912 Internal link with en linktrail: no apostrophes (bug 27473)
1918 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
1923 Internal link with ca linktrail with apostrophes (bug 27473)
1929 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
1934 Internal link with kaa linktrail with apostrophes (bug 27473)
1940 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
1945 ### Interwiki links (see maintenance/interwiki.sql)
1949 Inline interwiki link
1951 [[MeatBall:SoftSecurity]]
1953 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1958 Inline interwiki link with empty title (bug 2372)
1962 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
1967 Interwiki link encoding conversion (bug 1636)
1969 *[[Wikipedia:ro:Olteniţa]]
1970 *[[Wikipedia:ro:Olteniţa]]
1972 <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>
1973 </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>
1979 Interwiki link with fragment (bug 2130)
1981 [[MeatBall:SoftSecurity#foo]]
1983 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1998 Double interlanguage link
2009 Interlanguage link, with prefix links
2021 Double interlanguage link, with prefix links (bug 8897)
2048 Incorrecly removing closing slashes from correctly formed XHTML
2050 <br style="clear:both;" />
2052 <p><br style="clear:both;" />
2057 Failing to transform badly formed HTML into correct XHTML
2059 <br style="clear: left;">
2060 <br style="clear: right;">
2061 <br style="clear: both;">
2063 <p><br style="clear: left;" />
2064 <br style="clear: right;" />
2065 <br style="clear: both;" />
2070 Horizontal ruler (should it add that extra space?)
2084 ### Block-level elements
2107 <ol><li>Numbered list
2124 ***#Number on level 4
2126 **#Number on level 3
2127 **#Number on level 3
2131 #** Level 3, but ordered
2134 <ol><li> with numbers
2136 <ul><li> and bullets
2138 <ol><li> and numbers
2140 </li><li>bullets again
2141 <ul><li>bullet level 2
2142 <ul><li>bullet level 3
2143 <ol><li>Number on level 4
2146 </li><li>bullet level 2
2147 <ol><li>Number on level 3
2148 </li><li>Number on level 3
2151 <ol><li>number level 2
2154 <ul><li><ul><li> Level 3
2158 <ol><li><ul><li><ul><li> Level 3, but ordered
2192 Nested lists 3 (first element empty)
2205 Nested lists 4 (first element empty)
2218 Nested lists 5 (both elements empty)
2231 Nested lists 6 (both elements empty)
2244 Nested lists 7 (skip initial nesting levels)
2248 <ul><li><ul><li><ul><li> foo
2256 Nested lists 8 (multiple nesting transitions)
2264 <ul><li><ul><li> bar
2275 List items are not parsed correctly following a <pre> block (bug 785)
2281 <ul><li> <pre>foo</pre>
2282 </li><li> <pre>bar</pre>
2289 List items from template
2300 * notSOL{{inner list}}
2319 List interrupted by empty line or heading
2329 <ul><li><ul><li> bar
2332 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: A heading">edit</a>]</span> <span class="mw-headline" id="A_heading"> A heading </span></h2>
2333 <ul><li> Another list item
2344 Magic Word: {{CURRENTDAY}}
2353 Magic Word: {{CURRENTDAY2}}
2362 Magic Word: {{CURRENTDAYNAME}}
2371 Magic Word: {{CURRENTDOW}}
2380 Magic Word: {{CURRENTMONTH}}
2389 Magic Word: {{CURRENTMONTHABBREV}}
2391 {{CURRENTMONTHABBREV}}
2398 Magic Word: {{CURRENTMONTHNAME}}
2400 {{CURRENTMONTHNAME}}
2407 Magic Word: {{CURRENTMONTHNAMEGEN}}
2409 {{CURRENTMONTHNAMEGEN}}
2416 Magic Word: {{CURRENTTIME}}
2425 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2434 Magic Word: {{CURRENTYEAR}}
2443 Magic Word: {{FULLPAGENAME}}
2445 title=[[User:Ævar Arnfjörð Bjarmason]]
2449 <p>User:Ævar Arnfjörð Bjarmason
2454 Magic Word: {{FULLPAGENAMEE}}
2456 title=[[User:Ævar Arnfjörð Bjarmason]]
2460 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2465 Magic Word: {{NAMESPACE}}
2467 title=[[User:Ævar Arnfjörð Bjarmason]]
2476 Magic Word: {{NAMESPACEE}}
2478 title=[[User:Ævar Arnfjörð Bjarmason]]
2487 Magic Word: {{NAMESPACENUMBER}}
2489 title=[[User:Ævar Arnfjörð Bjarmason]]
2498 Magic Word: {{NUMBEROFFILES}}
2507 Magic Word: {{PAGENAME}}
2509 title=[[User:Ævar Arnfjörð Bjarmason]]
2513 <p>Ævar Arnfjörð Bjarmason
2518 Magic Word: {{PAGENAME}} with metacharacters
2520 title=[['foo & bar = baz']]
2524 <p><i>'foo & bar = baz'</i>
2529 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2531 title=[[*RFC 1234 http://example.com/]]
2535 <p>*RFC 1234 http://example.com/
2540 Magic Word: {{PAGENAMEE}}
2542 title=[[User:Ævar Arnfjörð Bjarmason]]
2546 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2551 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2553 title=[[*RFC 1234 http://example.com/]]
2557 <p>*RFC_1234_http://example.com/
2562 Magic Word: {{REVISIONID}}
2571 Magic Word: {{SCRIPTPATH}}
2580 Magic Word: {{SERVER}}
2584 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2589 Magic Word: {{SERVERNAME}}
2598 Magic Word: {{SITENAME}}
2607 Namespace 1 {{ns:1}}
2616 Namespace 1 {{ns:01}}
2625 Namespace 0 {{ns:0}} (bug 4783)
2633 Namespace 0 {{ns:00}} (bug 4783)
2641 Namespace -1 {{ns:-1}}
2650 Namespace User {{ns:User}}
2659 Namespace User talk {{ns:User_talk}}
2668 Namespace User talk {{ns:uSeR tAlK}}
2677 Namespace File {{ns:File}}
2686 Namespace File {{ns:Image}}
2695 Namespace (lang=de) Benutzer {{ns:User}}
2706 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2712 <p>Benutzer Diskussion
2720 {{urlencode:hi world?!}}
2721 {{urlencode:hi world?!|WIKI}}
2722 {{urlencode:hi world?!|PATH}}
2723 {{urlencode:hi world?!|QUERY}}
2736 Magic links: internal link to RFC (bug 479)
2740 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2745 Magic links: RFC (bug 479)
2749 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
2754 Magic links: ISBN (bug 1937)
2758 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2763 Magic links: PMID incorrectly converts space to underscore
2767 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2776 Nonexistent template
2778 {{thistemplatedoesnotexist}}
2780 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2787 This is a test template
2795 <p>This is a test template
2800 Template with explicit namespace
2804 <p>This is a test template
2812 This is a test template with parameter {{{param}}}
2818 {{paramtest|param=foo}}
2820 <p>This is a test template with parameter foo
2825 Template:paramtestnum
2831 Template unnamed parameter
2833 {{paramtestnum|Main Page|the main page}}
2835 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2840 Template:templatesimple
2846 Template:templateredirect
2848 #redirect [[Template:templatesimple]]
2852 Template:templateasargtestnum
2858 Template:templateasargtest
2860 {{template{{{templ}}}}}
2864 Template:templateasargtest2
2870 Template with template name as unnamed argument
2872 {{templateasargtestnum|templatesimple}}
2879 Template with template name as argument
2881 {{templateasargtest|templ=simple}}
2888 Template with template name as argument (2)
2890 {{templateasargtest2|templ=templatesimple}}
2897 Template:templateasargtestdefault
2899 {{{{{templ|templatesimple}}}}}
2909 Template with default value
2911 {{templateasargtestdefault}}
2918 Template with default value (value set)
2920 {{templateasargtestdefault|templ=templa}}
2929 {{templateredirect}}
2936 Template with argument in separate line
2938 {{ templateasargtest |
2946 Template with complex template as argument
2949 param ={{ templateasargtest |
2952 <p>This is a test template with parameter (test)
2957 Template with thumb image (with link in description)
2960 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2962 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>
2967 Template:complextemplate
2969 {{{1}}} {{paramtest|
2970 param ={{{param}}}}}
2974 Template with complex arguments
2977 param ={{ templateasargtest |
2978 templ = simple }}|[[Template:complextemplate|link]]}}
2980 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2985 BUG 553: link with two variables in a piped link
2988 |[[{{{1}}}|{{{2}}}]]
2993 <td>[[{{{1}}}|{{{2}}}]]
2999 Magic variable as template parameter
3001 {{paramtest|param={{SITENAME}}}}
3003 <p>This is a test template with parameter MediaWiki
3010 [[{{{param}}}|link]]
3014 Template parameter as link source
3016 {{linktest|param=Main Page}}
3018 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3026 including another template, {{paramtest|param={{{arg}}}}}
3030 Template passing argument to another template
3032 {{paramtest2|arg='hmm'}}
3034 <p>including another template, This is a test template with parameter 'hmm'
3045 Template as link source
3049 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3067 Template infinite loop
3071 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
3076 Template from main namespace
3095 BUG 529: Template with table, not included at beginning of line
3114 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3134 BUG 41: Template parameters shown as broken links
3146 ''None'' of '''this''' should be
3148 but rather passed unmodified
3152 # hmm, fix this or just deprecate msgnw and document its behavior?
3158 {{msgnw:MSGNW test}}
3160 <p>''None'' of '''this''' should be
3162 but rather passed unmodified
3170 {{int:youhavenewmessages|lots of money|not!}}
3172 <p>You have lots of money (not!).
3179 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3183 <includeonly> and <noinclude> being included
3194 <onlyinclude>Foo</onlyinclude>bar
3198 <onlyinclude> being included
3210 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3214 <onlyinclude> and <includeonly> being included
3223 <includeonly> and <noinclude> on a page
3225 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3232 <onlyinclude> on a page
3234 <onlyinclude>Foo</onlyinclude>bar
3241 Template:Includeonly section
3244 ==Includeonly section==
3250 Bug 6563: Edit link generation for section shown by <includeonly>
3252 {{includeonly section}}
3254 <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>
3255 <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>
3259 # Uses same input as the contents of [[Template:Includeonly section]]
3261 Bug 6563: Section extraction for section shown by <includeonly>
3266 ==Includeonly section==
3274 Bug 6563: Edit link generation for section suppressed by <includeonly>
3277 ==Includeonly section==
3281 <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>
3286 Bug 6563: Section extraction for section suppressed by <includeonly>
3291 ==Includeonly section==
3299 ### Pre-save transform tests
3302 pre-save transform: subst:
3308 This is a test template
3312 pre-save transform: normal template
3322 pre-save transform: nonexistent template
3326 {{thistemplatedoesnotexist}}
3328 {{thistemplatedoesnotexist}}
3333 pre-save transform: subst magic variables
3342 # This is bug 89, which I fixed. -- wtm
3344 pre-save transform: subst: templates with parameters
3348 {{subst:paramtest|param="something else"}}
3350 This is a test template with parameter "something else"
3356 <nowiki>'''not wiki'''</nowiki>
3360 pre-save transform: nowiki in subst (bug 1188)
3364 {{subst:nowikitest}}
3366 <nowiki>'''not wiki'''</nowiki>
3371 Template:commenttest
3373 This template has <!-- a comment --> in it.
3377 pre-save transform: comment in subst (bug 1936)
3381 {{subst:commenttest}}
3383 This template has <!-- a comment --> in it.
3387 pre-save transform: unclosed tag
3391 <nowiki>'''not wiki'''
3393 <nowiki>'''not wiki'''
3397 pre-save transform: mixed tag case
3401 <NOwiki>'''not wiki'''</noWIKI>
3403 <NOwiki>'''not wiki'''</noWIKI>
3407 pre-save transform: unclosed comment in <nowiki>
3411 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3413 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3419 <span onmouseover="alert('crap')">Oh no</span>
3423 (confirming safety of fix for subst bug 1936)
3425 {{Template:dangerous}}
3427 <p><span>Oh no</span>
3432 pre-save transform: comment containing gallery (bug 5024)
3436 <!-- <gallery>data</gallery> -->
3438 <!-- <gallery>data</gallery> -->
3442 pre-save transform: comment containing extension
3446 <!-- <tag>data</tag> -->
3448 <!-- <tag>data</tag> -->
3452 pre-save transform: comment containing nowiki
3456 <!-- <nowiki>data</nowiki> -->
3458 <!-- <nowiki>data</nowiki> -->
3462 pre-save transform: <noinclude> in subst (bug 3298)
3472 pre-save transform: <onlyinclude> in subst (bug 3298)
3484 {{<includeonly>subst:</includeonly>Includes}}
3488 Template:SafeSubstTest
3490 {{<includeonly>safesubst:</includeonly>Includes}}
3494 bug 22297: safesubst: works during PST
3498 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3504 bug 22297: safesubst: works during normal parse
3513 subst: does not work during normal parse
3517 <p>{{subst:Includes}}
3522 pre-save transform: context links ("pipe trick")
3526 [[Article (context)|]]
3529 [[Bar:Article (context)|]]
3530 [[:Bar:Article (context)|]]
3532 [[|Article (context)]]
3536 [[Article (context)|Article]]
3537 [[Bar:Article|Article]]
3538 [[:Bar:Article|Article]]
3539 [[Bar:Article (context)|Article]]
3540 [[:Bar:Article (context)|Article]]
3542 [[Article (context)]]
3543 [[Bar:X (Y) Z|X (Y) Z]]
3544 [[:Bar:X (Y) Z|X (Y) Z]]
3548 pre-save transform: context links ("pipe trick") with interwiki prefix
3552 [[interwiki:Article|]]
3553 [[:interwiki:Article|]]
3554 [[interwiki:Bar:Article|]]
3555 [[:interwiki:Bar:Article|]]
3557 [[interwiki:Article|Article]]
3558 [[:interwiki:Article|Article]]
3559 [[interwiki:Bar:Article|Bar:Article]]
3560 [[:interwiki:Bar:Article|Bar:Article]]
3564 pre-save transform: context links ("pipe trick") with parens in title
3566 pst title=[[Somearticle (context)]]
3570 [[Article (context)|Article]]
3574 pre-save transform: context links ("pipe trick") with comma in title
3576 pst title=[[Someplace, Somewhere]]
3579 [[Otherplace, Elsewhere|]]
3580 [[Otherplace, Elsewhere, Anywhere|]]
3582 [[Otherplace, Somewhere|Otherplace]]
3583 [[Otherplace, Elsewhere|Otherplace]]
3584 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3588 pre-save transform: context links ("pipe trick") with parens and comma
3590 pst title=[[Someplace (IGNORED), Somewhere]]
3593 [[Otherplace (place), Elsewhere|]]
3595 [[Otherplace, Somewhere|Otherplace]]
3596 [[Otherplace (place), Elsewhere|Otherplace]]
3600 pre-save transform: context links ("pipe trick") with comma and parens
3602 pst title=[[Who, me? (context)]]
3605 [[Me, Myself, and I (1937 song)|]]
3607 [[Yes, you. (context)|Yes, you.]]
3608 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3612 pre-save transform: context links ("pipe trick") with namespace
3614 pst title=[[Ns:Somearticle]]
3618 [[Ns:Article|Article]]
3622 pre-save transform: context links ("pipe trick") with namespace and parens
3624 pst title=[[Ns:Somearticle (context)]]
3628 [[Ns:Article (context)|Article]]
3632 pre-save transform: context links ("pipe trick") with namespace and comma
3634 pst title=[[Ns:Somearticle, Context, Whatever]]
3638 [[Ns:Article, Context, Whatever|Article]]
3642 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3644 pst title=[[Ns:Somearticle, Context (context)]]
3648 [[Ns:Article (context)|Article]]
3652 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3654 pst title=[[Ns:Somearticle (IGNORED), Context]]
3658 [[Ns:Article, Context|Article]]
3662 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
3666 [[Article(context)|]]
3667 [[Bar:Article(context)|]]
3668 [[:Bar:Article(context)|]]
3669 [[|Article(context)]]
3673 [[Article(context)|Article]]
3674 [[Bar:Article(context)|Article]]
3675 [[:Bar:Article(context)|Article]]
3676 [[Article(context)]]
3678 [[:Bar:X(Y)Z|X(Y)Z]]
3682 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
3686 [[Article (context)|]]
3687 [[Bar:Article (context)|]]
3688 [[:Bar:Article (context)|]]
3689 [[|Article (context)]]
3693 [[Article (context)|Article]]
3694 [[Bar:Article (context)|Article]]
3695 [[:Bar:Article (context)|Article]]
3696 [[Article (context)]]
3697 [[Bar:X (Y) Z|X (Y) Z]]
3698 [[:Bar:X (Y) Z|X (Y) Z]]
3702 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
3706 [[Article(context)|]]
3707 [[Bar:Article(context)|]]
3708 [[:Bar:Article(context)|]]
3709 [[|Article(context)]]
3713 [[Article(context)|Article]]
3714 [[Bar:Article(context)|Article]]
3715 [[:Bar:Article(context)|Article]]
3716 [[Article(context)]]
3718 [[:Bar:X(Y)Z|X(Y)Z]]
3722 pre-save transform: context links ("pipe trick") with commas (bug 21660)
3726 [[Article (context), context|]]
3727 [[Article (context),context|]]
3728 [[Bar:Article (context), context|]]
3729 [[Bar:Article (context),context|]]
3730 [[:Bar:Article (context), context|]]
3731 [[:Bar:Article (context),context|]]
3733 [[Article (context), context|Article]]
3734 [[Article (context),context|Article]]
3735 [[Bar:Article (context), context|Article]]
3736 [[Bar:Article (context),context|Article]]
3737 [[:Bar:Article (context), context|Article]]
3738 [[:Bar:Article (context),context|Article]]
3742 pre-save transform: trim trailing empty lines
3746 Empty lines are trimmed
3752 Empty lines are trimmed
3756 pre-save transform: Signature expansion
3761 * <noinclude>~~~</noinclude>
3762 * <includeonly>~~~</includeonly>
3763 * <onlyinclude>~~~</onlyinclude>
3765 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
3766 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
3767 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
3768 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
3773 pre-save transform: Signature expansion in nowiki tags (bug 93)
3779 <nowiki>~~~~</nowiki>
3781 <includeonly><nowiki>~~~~</nowiki></includeonly>
3783 <noinclude><nowiki>~~~~</nowiki></noinclude>
3785 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3787 {{subst:Foo}} shall be converted to FOO
3789 As well as inside noinclude/onlyinclude
3790 <noinclude>{{subst:Foo}}</noinclude>
3791 <onlyinclude>{{subst:Foo}}</onlyinclude>
3793 But not inside includeonly
3794 <includeonly>{{subst:Foo}}</includeonly>
3798 <nowiki>~~~~</nowiki>
3800 <includeonly><nowiki>~~~~</nowiki></includeonly>
3802 <noinclude><nowiki>~~~~</nowiki></noinclude>
3804 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3806 FOO shall be converted to FOO
3808 As well as inside noinclude/onlyinclude
3809 <noinclude>FOO</noinclude>
3810 <onlyinclude>FOO</onlyinclude>
3812 But not inside includeonly
3813 <includeonly>{{subst:Foo}}</includeonly>
3817 ### Message transform tests
3820 message transform: magic variables
3830 message transform: should not transform wiki markup
3840 message transform: <noinclude> in transcluded template (bug 4926)
3850 message transform: <onlyinclude> in transcluded template (bug 4926)
3860 {{#special:}} page name, known
3864 {{#special:Recentchanges}}
3866 Special:RecentChanges
3870 {{#special:}} page name with subpage, known
3874 {{#special:Recentchanges/param}}
3876 Special:RecentChanges/param
3880 {{#special:}} page name, unknown
3884 {{#special:foobarnonexistent}}
3886 No such special page
3890 {{#speciale:}} page name, known
3894 {{#speciale:Recentchanges}}
3896 Special:RecentChanges
3900 {{#speciale:}} page name with subpage, known
3904 {{#speciale:Recentchanges/param}}
3906 Special:RecentChanges/param
3910 {{#speciale:}} page name, unknown
3914 {{#speciale:foobarnonexistent}}
3916 No_such_special_page
3925 [[Image:foobar.jpg]]
3927 <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>
3934 [[Image:foobar.jpg|right]]
3936 <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>
3941 Simple image (using File: namespace, now canonical)
3945 <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>
3952 [[Image:foobar.jpg|right|Caption text]]
3954 <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>
3959 Image with link parameter, wiki target
3961 [[Image:foobar.jpg|link=Target page]]
3963 <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>
3968 Image with link parameter, URL target
3970 [[Image:foobar.jpg|link=http://example.com/]]
3972 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3977 Image with link parameter, wgExternalLinkTarget
3979 [[Image:foobar.jpg|link=http://example.com/]]
3981 wgExternalLinkTarget='foobar'
3983 <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>
3988 Image with link parameter, wgExternalLinkTarget, unnamed parameter
3990 [[Image:foobar.jpg|link=http://example.com/|Title]]
3992 wgExternalLinkTarget='foobar'
3994 <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>
3999 Image with empty link parameter
4001 [[Image:foobar.jpg|link=]]
4003 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
4008 Image with link parameter (wiki target) and unnamed parameter
4010 [[Image:foobar.jpg|link=Target page|Title]]
4012 <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>
4017 Image with link parameter (URL target) and unnamed parameter
4019 [[Image:foobar.jpg|link=http://example.com/|Title]]
4021 <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>
4026 Thumbnail image with link parameter
4028 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
4030 <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>
4035 Image with frame and link
4037 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
4039 <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>
4044 Image with frame and link and explicit alt
4046 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
4048 <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>
4053 Image with wiki markup in implicit alt
4055 [[Image:Foobar.jpg|testing '''bold''' in alt]]
4057 <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>
4062 Image with wiki markup in explicit alt
4064 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
4066 <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>
4071 Link to image page- image page normally doesn't exists, hence edit link
4072 Add test with existing image page
4073 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
4077 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
4082 bug 18784 Link to non-existent image page with caption should use caption as link text
4084 [[:Image:test|caption]]
4086 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
4091 Frameless image caption with a free URL
4093 [[Image:foobar.jpg|http://example.com]]
4095 <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>
4100 Thumbnail image caption with a free URL
4102 [[Image:foobar.jpg|thumb|http://example.com]]
4104 <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>
4109 Thumbnail image caption with a free URL and explicit alt
4111 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
4113 <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>
4118 BUG 1887: A ISBN with a thumbnail
4120 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
4122 <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>
4127 BUG 1887: A RFC with a thumbnail
4129 [[Image:foobar.jpg|thumb|This is RFC 12354]]
4131 <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>
4136 BUG 1887: A mailto link with a thumbnail
4138 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
4140 <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>
4144 # Pending resolution to bug 368
4146 BUG 648: Frameless image caption with a link
4148 [[Image:foobar.jpg|text with a [[link]] in it]]
4150 <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>
4155 BUG 648: Frameless image caption with a link (suffix)
4157 [[Image:foobar.jpg|text with a [[link]]foo in it]]
4159 <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>
4164 BUG 648: Frameless image caption with an interwiki link
4166 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4168 <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>
4173 BUG 648: Frameless image caption with a piped interwiki link
4175 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4177 <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>
4182 Escape HTML special chars in image alt text
4184 [[Image:foobar.jpg|& < > "]]
4186 <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>
4191 BUG 499: Alt text should have Ӓ, not &1234;
4193 [[Image:foobar.jpg|♀]]
4195 <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>
4200 Broken image caption with link
4202 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4204 <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.
4209 Image caption containing another image
4211 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4213 <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>
4218 Image caption containing a newline
4220 [[Image:Foobar.jpg|This
4223 <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>
4229 Bug 3090: External links other than http: in image captions
4231 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4233 <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>
4240 #REDIRECT [[File:Barfoo.jpg]]
4246 [[Image:Barfoo.jpg]]
4248 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
4253 Missing image with uploads disabled
4257 [[Image:Foobaz.jpg]]
4259 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
4268 Subpage test/subpage
4276 subpage title=[[Subpage test]]
4280 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
4285 Subpage noslash link
4287 subpage title=[[Subpage test]]
4291 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4300 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4305 BUG 561: {{/Subpage}}
4307 subpage title=[[Page]]
4311 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4319 Category:MediaWiki User's Guide
4327 [[:Category:MediaWiki User's Guide]]
4329 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
4338 [[Category:MediaWiki User's Guide]]
4340 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4344 PAGESINCATEGORY invalid title fatal (r33546 fix)
4346 {{PAGESINCATEGORY:<bogus>}}
4353 ### Inter-language links
4356 Inter-language links
4362 [[zh:食品]]
4364 es:Alimento fr:Nourriture zh:食品
4371 Basic section headings
4378 ===Smaller headline===
4381 <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>
4384 <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>
4387 <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>
4393 Section headings with TOC
4396 === Subheadline 1 ===
4397 ===== Skipping a level =====
4398 ====== Skipping a level ======
4402 ===Another headline===
4404 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4406 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4408 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4410 <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>
4412 <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>
4419 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4421 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4426 <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>
4427 <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>
4428 <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>
4429 <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>
4430 <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>
4433 <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>
4437 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4439 Handling of sections up to level 6 and beyond
4442 == Level 2 Heading==
4443 === Level 3 Heading===
4444 ==== Level 4 Heading====
4445 ===== Level 5 Heading=====
4446 ====== Level 6 Heading======
4447 ======= Level 7 Heading=======
4448 ======== Level 8 Heading========
4449 ========= Level 9 Heading=========
4450 ========== Level 10 Heading==========
4452 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4454 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4456 <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>
4458 <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>
4460 <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>
4462 <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>
4464 <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>
4465 <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>
4466 <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>
4467 <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>
4468 <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>
4481 <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>
4482 <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>
4483 <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>
4484 <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>
4485 <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>
4486 <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>
4487 <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>
4488 <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>
4489 <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>
4490 <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>
4495 TOC regression (bug 9764)
4499 ==== title 1.1.1 ====
4504 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4506 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4508 <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>
4510 <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>
4513 <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>
4516 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4518 <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>
4523 <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>
4524 <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>
4525 <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>
4526 <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>
4527 <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>
4528 <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>
4533 TOC with wgMaxTocLevel=3 (bug 6204)
4539 ==== title 1.1.1 ====
4544 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4546 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4548 <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>
4549 <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>
4552 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4554 <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>
4559 <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>
4560 <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>
4561 <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>
4562 <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>
4563 <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>
4564 <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>
4569 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4575 ====Section 1.1.1====
4576 ====Section 1.1.1.1====
4579 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4581 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4583 <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>
4586 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4589 <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>
4590 <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>
4591 <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>
4592 <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>
4593 <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>
4599 Resolving duplicate section names
4604 <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>
4605 <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>
4610 Resolving duplicate section names with differing case (bug 10721)
4615 <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>
4616 <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>
4628 Template with sections, __NOTOC__
4635 <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>
4636 <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>
4637 <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>
4638 <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>
4643 __NOEDITSECTION__ keyword
4649 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4650 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4655 Link inside a section heading
4657 ==Section with a [[Main Page|link]] in it==
4659 <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>
4664 TOC regression (bug 12077)
4671 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4673 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4675 <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>
4678 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4681 <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>
4682 <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>
4683 <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>
4688 BUG 1219 URL next to image (good)
4690 http://example.com [[Image:foobar.jpg]]
4692 <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>
4697 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4700 The line above must have a trailing space!
4703 But just in case it doesn't...
4705 <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>
4706 <p>The line above must have a trailing space!
4708 <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>
4709 <p>But just in case it doesn't...
4714 Header with special characters (bug 25462)
4716 The tooltips shall not show entities to the user (ie. be double escaped)
4733 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4735 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4737 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4738 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4739 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4740 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4741 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4744 <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>
4747 <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>
4750 <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>
4753 <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>
4756 <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>
4762 BUG 1219 URL next to image (broken)
4764 http://example.com[[Image:foobar.jpg]]
4766 <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>
4771 Bug 1186 news: in the middle of text
4773 http://en.wikinews.org/wiki/Wikinews:Workplace
4775 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4781 Namespaced link must have a title
4790 Namespaced link must have a title (bad fragment version)
4792 [[Project:#fragment]]
4794 <p>[[Project:#fragment]]
4800 div with no attributes
4802 <div>HTML rocks</div>
4804 <div>HTML rocks</div>
4809 div with double-quoted attribute
4811 <div id="rock">HTML rocks</div>
4813 <div id="rock">HTML rocks</div>
4818 div with single-quoted attribute
4820 <div id='rock'>HTML rocks</div>
4822 <div id="rock">HTML rocks</div>
4827 div with unquoted attribute
4829 <div id=rock>HTML rocks</div>
4831 <div id="rock">HTML rocks</div>
4836 div with illegal double attributes
4838 <div id="a" id="b">HTML rocks</div>
4840 <div id="b">HTML rocks</div>
4845 HTML multiple attributes correction
4847 <p class="error" class="awesome">Awesome!</p>
4849 <p class="awesome">Awesome!</p>
4854 Table multiple attributes correction
4857 !+ class="error" class="awesome"| status
4862 <th class="awesome"> status
4870 <DIV ID="x">HTML ROCKS</DIV>
4872 <div id="x">HTML ROCKS</div>
4878 text with amp in the middle of nowhere
4882 <p>Remember AT&T?
4887 text with character entity: eacute
4889 I always thought é was a cute letter.
4891 <p>I always thought é was a cute letter.
4896 text with undefined character entity: xacute
4898 I always thought &xacute; was a cute letter.
4900 <p>I always thought &xacute; was a cute letter.
4912 [[Media:Foobar.jpg]]
4914 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4919 Media link with text
4921 [[Media:Foobar.jpg|A neat file to look at]]
4923 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4927 # FIXME: this is still bad HTML tag nesting
4929 Media link with nasty text
4930 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4932 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4934 <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>
4939 Media link to nonexistent file (bug 1702)
4941 [[Media:No such.jpg]]
4943 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4948 Image link to nonexistent file (bug 1850 - good)
4950 [[Image:No such.jpg]]
4952 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4957 :Image link to nonexistent file (bug 1850 - bad)
4959 [[:Image:No such.jpg]]
4961 <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>
4968 Character reference normalization in link text (bug 1938)
4970 [[Main Page|this&that]]
4972 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4979 Test for unicode normalization
4981 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4985 (bug 19451) Links should refer to the normalized form.
4993 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4994 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4995 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4996 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4997 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5002 Empty attribute crash test (bug 2067)
5004 <font color="">foo</font>
5006 <p><font color="">foo</font>
5011 Empty attribute crash test single-quotes (bug 2067)
5013 <font color=''>foo</font>
5015 <p><font color="">foo</font>
5020 Attribute test: equals, then nothing
5022 <font color=>foo</font>
5029 Attribute test: unquoted value
5031 <font color=x>foo</font>
5033 <p><font color="x">foo</font>
5038 Attribute test: unquoted but illegal value (hash)
5040 <font color=#x>foo</font>
5042 <p><font color="#x">foo</font>
5047 Attribute test: no value
5049 <font color>foo</font>
5051 <p><font color="color">foo</font>
5056 Bug 2095: link with three closing brackets
5060 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
5065 Bug 2095: link with pipe and three closing brackets
5069 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
5074 Bug 2095: link with pipe and three closing brackets, version 2
5076 [[Main Page|[http://example.com/]]]
5078 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
5088 Template:Dangerous attribute
5090 " onmouseover="alert(document.cookie)
5094 Template:Dangerous style attribute
5096 border-size: expression(alert(document.cookie))
5102 <div style="float: right; {{{1}}}">Magic div</div>
5106 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
5108 <div title="{{test}}"></div>
5110 <div title="This is a test template"></div>
5115 Bug 2304: HTML attribute safety (dangerous template; 2309)
5117 <div title="{{dangerous attribute}}"></div>
5119 <div title=""></div>
5124 Bug 2304: HTML attribute safety (dangerous style template; 2309)
5126 <div style="{{dangerous style attribute}}"></div>
5128 <div style="/* insecure input */"></div>
5133 Bug 2304: HTML attribute safety (safe parameter; 2309)
5135 {{div style|width: 200px}}
5137 <div style="float: right; width: 200px">Magic div</div>
5142 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
5144 {{div style|width: expression(alert(document.cookie))}}
5146 <div style="/* insecure input */">Magic div</div>
5151 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
5153 {{div style|"><script>alert(document.cookie)</script>}}
5155 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5160 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5162 {{div style|" ><script>alert(document.cookie)</script>}}
5164 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5169 Bug 2304: HTML attribute safety (link)
5171 <div title="[[Main Page]]"></div>
5173 <div title="[[Main Page]]"></div>
5178 Bug 2304: HTML attribute safety (italics)
5180 <div title="''foobar''"></div>
5182 <div title="''foobar''"></div>
5187 Bug 2304: HTML attribute safety (bold)
5189 <div title="'''foobar'''"></div>
5191 <div title="'''foobar'''"></div>
5197 Bug 2304: HTML attribute safety (ISBN)
5199 <div title="ISBN 1234567890"></div>
5201 <div title="ISBN 1234567890"></div>
5206 Bug 2304: HTML attribute safety (RFC)
5208 <div title="RFC 1234"></div>
5210 <div title="RFC 1234"></div>
5215 Bug 2304: HTML attribute safety (PMID)
5217 <div title="PMID 1234567890"></div>
5219 <div title="PMID 1234567890"></div>
5224 Bug 2304: HTML attribute safety (web link)
5226 <div title="http://example.com/"></div>
5228 <div title="http://example.com/"></div>
5233 Bug 2304: HTML attribute safety (named web link)
5235 <div title="[http://example.com/ link]"></div>
5237 <div title="[http://example.com/ link]"></div>
5242 Bug 3244: HTML attribute safety (extension; safe)
5244 <div style="<nowiki>background:blue</nowiki>"></div>
5246 <div style="background:blue"></div>
5251 Bug 3244: HTML attribute safety (extension; unsafe)
5253 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
5255 <div style="/* insecure input */"></div>
5259 # More MSIE fun discovered by Tom Gilder
5262 MSIE CSS safety test: spurious slash
5264 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
5266 <div style="/* insecure input */">evil</div>
5271 MSIE CSS safety test: hex code
5273 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
5275 <div style="/* insecure input */">evil</div>
5280 MSIE CSS safety test: comment in url
5282 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
5284 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
5289 MSIE CSS safety test: comment in expression
5291 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
5293 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5299 Table attribute legitimate extension
5302 !+ style="<nowiki>color:blue</nowiki>"| status
5307 <th style="color:blue"> status
5313 Table attribute safety
5316 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5321 <th style="/* insecure input */"> status
5327 CSS line continuation 1
5329 <div style="background-image: u\ rl(test.jpg);"></div>
5331 <div style="/* insecure input */"></div>
5336 CSS line continuation 2
5338 <div style="background-image: u\ rl(test.jpg); "></div>
5340 <div style="/* insecure input */"></div>
5351 Expansion of multi-line templates in attribute values (bug 6255)
5353 <div style="background: {{identity|#00FF00}}">-</div>
5355 <div style="background: #00FF00">-</div>
5361 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5363 <div style="background:
5366 <div style="background: #00FF00">-</div>
5371 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5373 <div style="background: #00FF00">-</div>
5375 <div style="background: #00FF00">-</div>
5380 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5383 Parser hook: empty input
5396 Parser hook: empty input using terminated empty elements
5409 Parser hook: empty input using terminated empty elements (space before)
5422 Parser hook: basic input
5436 Parser hook: case insensitive
5450 Parser hook: case insensitive, redux
5463 Parser hook: nested tags
5467 <tag><tag></tag></tag>
5478 Parser hook: basic arguments
5480 <tag width=200 height = "100" depth = '50' square></tag>
5499 Parser hook: argument containing a forward slash (bug 5344)
5501 <tag filename='/tmp/bla'></tag>
5507 string(8) "/tmp/bla"
5514 Parser hook: empty input using terminated empty elements (bug 2374)
5528 # </tag> should be output literally since there is no matching tag that begins it
5530 Parser hook: basic arguments using terminated empty elements (bug 2374)
5532 <tag width=200 height = "100" depth = '50' square/>
5555 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5559 Parser hook: static parser hook not inside a comment
5561 <statictag>hello, world</statictag>
5562 <statictag action=flush/>
5570 Parser hook: static parser hook inside a comment
5572 <!-- <statictag>hello, world</statictag> -->
5573 <statictag action=flush/>
5579 # Nested template calls; this case was broken by Parser.php rev 1.506,
5583 Template:One-parameter
5585 (My parameter is: {{{1}}})
5589 Template:Map-one-parameter
5595 Nested template calls
5597 {{Map-one-parameter|One-parameter|param}}
5599 <p>(My parameter is: param)
5608 Sanitizer: Closing of open tags
5610 <s></s><table></table>
5612 <s></s><table></table>
5617 Sanitizer: Closing of open but not closed tags
5626 Sanitizer: Closing of closed but not open tags
5635 Sanitizer: Closing of closed but not open table tags
5637 Table not started</td></tr></table>
5639 <p>Table not started</td></tr></table>
5644 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5646 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5648 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5653 Sanitizer: Validating the contents of the id attribute (bug 4515)
5659 Something, but definitely not <br id="9" />...
5663 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5667 <br id="foo" /><br id="foo" />
5669 Something need to be done. foo-2 ?
5673 Language converter: output gets cut off unexpectedly (bug 5757)
5677 this bit is safe: }-
5679 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5681 then we get cut off here: }-
5683 all additional text is vanished
5685 <p>this bit is safe: }-
5686 </p><p>but if we add a conversion instance: xxx
5687 </p><p>then we get cut off here: }-
5688 </p><p>all additional text is vanished
5693 Self closed html pairs (bug 5487)
5696 <center><font id="bug" />Centered text</center>
5697 <div><font id="bug2" />In div text</div>
5699 <center><font id="bug" />Centered text</center>
5700 <div><font id="bug2" />In div text</div>
5709 Punctuation: nbsp before exclamation
5713 <p>C'est grave !
5718 Punctuation: CSS !important (bug 11874)
5720 <div style="width:50% !important">important</div>
5722 <div style="width:50% !important">important</div>
5727 Punctuation: CSS ! important (bug 11874; with space after)
5729 <div style="width:50% ! important">important</div>
5731 <div style="width:50% ! important">important</div>
5737 HTML bullet list, closed tags (bug 5497)
5752 HTML bullet list, unclosed tags (bug 5497)
5769 HTML ordered list, closed tags (bug 5497)
5784 HTML ordered list, unclosed tags (bug 5497)
5801 HTML nested bullet list, closed tags (bug 5497)
5826 HTML nested bullet list, open tags (bug 5497)
5851 HTML nested ordered list, closed tags (bug 5497)
5876 HTML nested ordered list, open tags (bug 5497)
5901 HTML ordered list item with parameters oddity
5903 <ol><li id="fragment">One</li></ol>
5905 <ol><li id="fragment">One</li></ol>
5910 bug 5918: autonumbering
5912 [http://first/] [http://second] [ftp://ftp]
5916 [mailto:enclosed@mail.tld With target]
5918 [mailto:enclosed@mail.tld]
5920 mailto:inline@mail.tld
5922 <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>
5923 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
5924 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
5925 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
5926 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
5932 # Security and HTML correctness
5933 # From Nick Jenkins' fuzz testing
5937 Fuzz testing: Parser13
5952 Fuzz testing: Parser14
5957 <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>
5958 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5960 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5967 Fuzz testing: Parser14-table
5972 <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>
5973 <table style="__TOC__">
5979 # Known to produce bogus xml (extra </td>)
5981 Fuzz testing: Parser16
6001 Fuzz testing: Parser21
6004 ! irc://{{ftp://a" onmouseover="alert('hello world');"
6009 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
6019 Fuzz testing: Parser22
6021 http://===r:::https://b
6025 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
6033 # Known to produce bad XML for now
6035 Fuzz testing: Parser24
6042 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
6043 <br style="onmouseover='alert(document.cookie);' " />
6045 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6050 <u class="|">}}}} >
6051 <br style="onmouseover='alert(document.cookie);'" />
6053 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6062 # Note: the current result listed for this is not what the original one was,
6063 # but the original bug was JavaScript injection, which is fixed in any case.
6064 # It's not clear that the original result listed was any more correct than the
6065 # current one. Original result:
6068 # <li class="||">
6069 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6071 Fuzz testing: Parser25 (bug 6055)
6077 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
6079 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6084 Fuzz testing: URL adjacent extension (with space, clean)
6087 http://example.com <nowiki>junk</nowiki>
6089 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
6094 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
6097 http://example.com<nowiki>junk</nowiki>
6099 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
6104 Fuzz testing: URL adjacent extension (no space, dirty; pre)
6107 http://example.com<pre>junk</pre>
6109 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
6114 Fuzz testing: image with bogus manual thumbnail
6116 [[Image:foobar.jpg|thumbnail= ]]
6118 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
6123 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
6125 <pre dir=" "></pre>
6127 <pre dir=" "></pre>
6132 Parsing optional HTML elements (Bug 6171)
6137 <td> Some tabular data</td>
6138 <td> More tabular data ...
6139 <td> And yet som tabular data</td>
6145 <td> Some tabular data</td>
6146 <td> More tabular data ...
6147 </td><td> And yet som tabular data</td>
6154 Correct handling of <td>, <tr> (Bug 6171)
6159 <td> Some tabular data</td>
6160 <td> More tabular data ...</td>
6161 <td> And yet som tabular data</td>
6167 <td> Some tabular data</td>
6168 <td> More tabular data ...</td>
6169 <td> And yet som tabular data</td>
6177 Parsing crashing regression (fr:JavaScript)
6181 <p></body></x>
6186 Inline wiki vs wiki block nesting
6192 <p><b>Bold paragraph</b>
6193 </p><p>New wiki paragraph
6198 Inline HTML vs wiki block nesting
6206 <p><b>Bold paragraph</b>
6207 </p><p>New wiki paragraph
6211 # Original result was this:
6212 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6214 # While that might be marginally more intuitive, maybe, the six-apostrophe
6215 # construct is clearly pathological and the result stated here (which is what
6216 # the parser actually does) is about as reasonable as anything.
6218 Mixing markup for italics and bold
6221 '''bold''''''bold''bolditalics'''''
6223 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
6231 Article for special page transclusion test
6235 Special page transclusion
6238 {{Special:Prefixindex/Xyzzyx}}
6240 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6245 Special page transclusion twice (bug 5021)
6248 {{Special:Prefixindex/Xyzzyx}}
6249 {{Special:Prefixindex/Xyzzyx}}
6251 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6252 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6257 Transclusion of default MediaWiki message
6259 {{MediaWiki:Mainpage}}
6266 Transclusion of nonexistent MediaWiki message
6268 {{MediaWiki:Mainpagexxx}}
6270 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6275 Transclusion of MediaWiki message with underscore
6277 {{MediaWiki:history_short}}
6284 Transclusion of MediaWiki message with space
6286 {{MediaWiki:history short}}
6293 Invalid header with following text
6303 Section extraction test (section 0)
6323 Section extraction test (section 1)
6345 Section extraction test (section 2)
6366 Section extraction test (section 3)
6386 Section extraction test (section 4)
6410 Section extraction test (section 5)
6430 Section extraction test (section 6)
6451 Section extraction test (section 7)
6471 Section extraction test (section 8)
6491 Section extraction test (section 9)
6512 Section extraction test (section 10)
6532 Section extraction test (nonexistent section 11)
6551 Section extraction test with bogus heading (section 1)
6556 ==bogus== not a legal section
6560 ==bogus== not a legal section
6564 Section extraction test with bogus heading (section 2)
6569 ==bogus== not a legal section
6576 Section extraction test with comment after heading (section 1)
6588 Section extraction test with comment after heading (section 2)
6600 Section extraction test with bogus <nowiki> heading (section 1)
6605 ==bogus== <nowiki>not a legal section</nowiki>
6609 ==bogus== <nowiki>not a legal section</nowiki>
6613 Section extraction test with bogus <nowiki> heading (section 2)
6618 ==bogus== <nowiki>not a legal section</nowiki>
6625 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6626 # instead of respecting commented sections
6628 Section extraction prefixed by comment (section 1)
6639 Section extraction prefixed by comment (section 2)
6650 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6651 # instead of respecting HTML-style headings
6653 Section extraction, mixed wiki and html (section 1)
6669 Section extraction, mixed wiki and html (section 2)
6685 # Formerly testing for bug 3342
6687 Section extraction, heading surrounded by <noinclude>
6691 <noinclude>==unmarked==</noinclude>
6697 # Test behaviour of bug 19910
6699 Sectiion with all-equals
6704 The line above must have a trailing space
6707 But just in case it doesn't...
6711 But just in case it doesn't...
6715 Section replacement test (section 0)
6746 Section replacement test (section 1)
6775 Section replacement test (section 2)
6805 Section replacement test (section 3)
6836 Section replacement test (section 4)
6863 Section replacement test (section 5)
6894 Section replacement test (section 6)
6924 Section replacement test (section 7)
6955 Section replacement test (section 8)
6986 Section replacement test (section 9)
7015 Section replacement test (section 10)
7045 Section replacement test with initial whitespace (bug 13728)
7049 Preformatted initial line
7053 Preformatted initial line
7060 Section extraction, heading followed by pre with 20 spaces (bug 6398)
7072 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
7085 Section extraction, <pre> around bogus header (bug 10309)
7102 Section replacement, <pre> around bogus header (bug 10309)
7104 noxml replace=2,"xxx"
7125 Handling of 
 in URLs
7129 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
7136 5 quotes, code coverage +1 line
7143 Special:Search page linking.
7147 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
7162 * {{SUBJECTPAGENAME}}
7163 * {{SUBJECTPAGENAMEE}}
7170 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7172 <ul><li> Parser test
7173 </li><li> Parser test
7174 </li><li> Parser test
7175 </li><li> Parser_test
7176 </li><li> Parser test
7177 </li><li> Parser_test
7178 </li><li> Talk:Parser test
7179 </li><li> Talk:Parser_test
7180 </li><li> Parser test
7181 </li><li> Parser_test
7188 </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>
7192 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
7202 image4 |300px| centre
7203 image5.svg| http://///////
7208 <ul class="gallery">
7209 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7210 <div style="height: 150px;">Image1.png</div>
7211 <div class="gallerytext">
7214 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7215 <div style="height: 150px;">Image2.gif</div>
7216 <div class="gallerytext">
7221 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7222 <div style="height: 150px;">Image3</div>
7223 <div class="gallerytext">
7226 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7227 <div style="height: 150px;">Image4</div>
7228 <div class="gallerytext">
7233 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7234 <div style="height: 150px;">Image5.svg</div>
7235 <div class="gallerytext">
7236 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
7240 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7241 <div style="height: 150px;">* image6</div>
7242 <div class="gallerytext">
7250 Gallery (with options)
7252 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
7253 File:Nonexistant.jpg|caption
7254 File:Nonexistant.jpg
7255 image:foobar.jpg|some '''caption''' [[Main Page]]
7257 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
7260 <ul class="gallery" style="max-width: 226px;_width: 226px;">
7261 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
7262 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7263 <div style="height: 70px;">Nonexistant.jpg</div>
7264 <div class="gallerytext">
7269 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7270 <div style="height: 70px;">Nonexistant.jpg</div>
7271 <div class="gallerytext">
7274 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7275 <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>
7276 <div class="gallerytext">
7277 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7281 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7282 <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>
7283 <div class="gallerytext">
7286 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7287 <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>
7288 <div class="gallerytext">
7298 Gallery with wikitext inside caption
7301 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
7302 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
7305 <ul class="gallery">
7306 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7307 <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>
7308 <div class="gallerytext">
7309 <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>
7313 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7314 <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>
7315 <div class="gallerytext">
7316 <p>This is a test template
7325 gallery (with showfilename option)
7327 <gallery showfilename>
7328 File:Nonexistant.jpg|caption
7329 File:Nonexistant.jpg
7330 image:foobar.jpg|some '''caption''' [[Main Page]]
7334 <ul class="gallery">
7335 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7336 <div style="height: 150px;">Nonexistant.jpg</div>
7337 <div class="gallerytext">
7338 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7343 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7344 <div style="height: 150px;">Nonexistant.jpg</div>
7345 <div class="gallerytext">
7346 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7350 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7351 <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>
7352 <div class="gallerytext">
7353 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7354 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7358 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7359 <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>
7360 <div class="gallerytext">
7361 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7370 Gallery (with namespace-less filenames)
7373 File:Nonexistant.jpg
7379 <ul class="gallery">
7380 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7381 <div style="height: 150px;">Nonexistant.jpg</div>
7382 <div class="gallerytext">
7385 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7386 <div style="height: 150px;">Nonexistant.jpg</div>
7387 <div class="gallerytext">
7390 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7391 <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>
7392 <div class="gallerytext">
7395 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7396 <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>
7397 <div class="gallerytext">
7405 HTML Hex character encoding (spells the word "JavaScript")
7407 JavaScript
7409 <p>JavaScript
7414 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7418 <p>&#xsee;&#XSEE;
7423 HTML Hex character encoding mixed case
7432 __FORCETOC__ override
7444 ISBN 978-0-1234-56 789
7446 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7451 ISBN followed by 5 spaces
7462 ISBN ISBN 1234567890
7464 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7469 Bug 22905: <abbr> followed by ISBN followed by </a>
7471 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7473 <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>
7482 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
7487 Double RFC with a wiki link
7491 <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>
7500 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
7505 Centre-aligned image
7507 [[Image:foobar.jpg|centre]]
7509 <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>
7516 [[Image:foobar.jpg|none]]
7518 <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>
7523 Width + Height sized image (using px) (height is ignored)
7525 [[Image:foobar.jpg|640x480px]]
7527 <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>
7532 Width-sized image (using px, no following whitespace)
7534 [[Image:foobar.jpg|640px]]
7536 <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>
7541 Width-sized image (using px, with following whitespace - test regression from r39467)
7543 [[Image:foobar.jpg|640px ]]
7545 <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>
7550 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7552 [[Image:foobar.jpg| 640px]]
7554 <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>
7559 Another italics / bold test
7567 # Note the results may be incorrect, as parserTest output included this:
7568 # XML error: Mismatched tag at byte 6120:
7569 # ...<dd> </dt></dl> </dd...
7577 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7588 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7590 Images with the "|" character in the comment
7592 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7594 <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>
7599 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7601 <html><script>alert(1);</script></html>
7603 <p><html><script>alert(1);</script></html>
7608 HTML with raw HTML ($wgRawHtml==true)
7612 <html><script>alert(1);</script></html>
7614 <p><script>alert(1);</script>
7619 Parents of subpages, one level up
7621 subpage title=[[Subpage test/L1/L2/L3]]
7625 <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>
7631 Parents of subpages, one level up, not named
7633 subpage title=[[Subpage test/L1/L2/L3]]
7637 <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>
7644 Parents of subpages, two levels up
7646 subpage title=[[Subpage test/L1/L2/L3]]
7652 <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
7653 </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>
7658 Parents of subpages, two levels up, without trailing slash or name.
7660 subpage title=[[Subpage test/L1/L2/L3]]
7669 Parents of subpages, two levels up, with lots of extra trailing slashes.
7671 subpage title=[[Subpage test/L1/L2/L3]]
7675 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7680 Definition list code coverage
7686 <dl><dt> title  </dt><dd> def
7687 </dd><dt> title </dt><dd> def
7688 </dd><dt>title</dt><dd> def
7694 Don't fall for the self-closing div
7696 <div>hello world</div/>
7698 <div>hello world</div>
7707 <p>[[:Template:Msg]]
7716 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7720 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7722 Always escape literal '>' in output, not just after '<'
7736 <p>This is a test template
7737 This is a test template
7749 Inclusion of !userCanEdit() content
7753 <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>
7759 Out-of-order TOC heading levels
7768 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7770 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7772 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7773 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7776 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7778 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7779 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7784 <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>
7785 <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>
7786 <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>
7787 <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>
7788 <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>
7789 <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>
7795 ISBN with a dummy number
7805 ISBN with space-delimited number
7809 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7815 ISBN with multiple spaces, no number
7834 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7835 </p><p>ISBN 12345678901
7841 ISBN with trailing year (bug 8110)
7843 ISBN 1-234-56789-0 - 2006
7845 ISBN 1 234 56789 0 - 2006
7847 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7848 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7856 {{anchorencode:foo bar©#%n}}
7858 <p>foo_bar.C2.A9.23.25n
7863 anchorencode trims spaces
7865 {{anchorencode: __pretty__please__}}
7872 anchorencode deals with links
7874 {{anchorencode: [[hello|world]] [[hi]]}}
7881 anchorencode deals with templates
7883 {{anchorencode: {{Foo}} }}
7890 anchorencode encodes like the TOC generator: (bug 18431)
7892 === _ +:.3A%3A&&]] ===
7893 {{anchorencode: _ +:.3A%3A&&]] }}
7896 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7897 <p>.2B:.3A.253A.26.26.5D.5D
7901 # Expected output in the following test is not necessarily expected (there
7902 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7903 # only testing for well-formedness.
7905 Bug 6200: blockquotes and paragraph formatting
7925 Bug 8293: Use of center tag ruins paragraph formatting
7947 ### Language variants related tests
7950 Self-link in language variants
7952 title=[[Dunav]] language=sr
7954 Both [[Dunav]] and [[Дунав]] are names for this river.
7956 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7962 Link to pages in language variants
7966 Main Page can be written as [[Маин Паге]]
7968 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7974 Multiple links to pages in language variants
7978 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7980 <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>.
7986 Simple template in language variants
7992 <p>This is a test template
7998 Template with explicit namespace in language variants
8004 <p>This is a test template
8010 Basic test for template parameter in language variants
8014 {{парамтест|param=foo}}
8016 <p>This is a test template with parameter foo
8022 Simple category in language variants
8026 [[Category:МедиаWики Усер'с Гуиде]]
8028 <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>
8033 Stripping -{}- tags (language variants)
8037 Latin proverb: -{Ne nuntium necare}-
8039 <p>Latin proverb: Ne nuntium necare
8045 Prevent conversion with -{}- tags (language variants)
8047 language=sr variant=sr-ec
8049 Latinski: -{Ne nuntium necare}-
8051 <p>Латински: Ne nuntium necare
8057 Prevent conversion of text with -{}- tags (language variants)
8059 language=sr variant=sr-ec
8061 Latinski: -{Ne nuntium necare}-
8063 <p>Латински: Ne nuntium necare
8069 Prevent conversion of links with -{}- tags (language variants)
8071 language=sr variant=sr-ec
8075 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8081 -{}- tags within headlines (within html for parserConvert())
8083 language=sr variant=sr-ec
8087 <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>
8093 Explicit definition of language variant alternatives
8095 language=zh variant=zh-tw
8097 -{zh:China;zh-tw:Taiwan}-, not China
8099 <p>Taiwan, not China
8105 Explicit session-wise language variant mapping (A flag and - flag)
8107 language=zh variant=zh-tw
8109 Taiwan is not China.
8110 But -{A|zh:China;zh-tw:Taiwan}- is China,
8111 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
8112 and -{China}- is China.
8114 <p>Taiwan is not China.
8115 But Taiwan is Taiwan,
8116 (This should be stripped!)
8122 Explicit session-wise language variant mapping (H flag for hide)
8124 language=zh variant=zh-tw
8126 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
8129 <p>(This should be stripped!)
8135 Adding explicit conversion rule for title (T flag)
8137 language=zh variant=zh-tw showtitle
8139 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8142 <p>Should be stripped!
8147 Testing that changing the language variant here in the tests actually works
8149 language=zh variant=zh showtitle
8151 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8154 <p>Should be stripped!
8159 Bug 24072: more test on conversion rule for title
8161 language=zh variant=zh-tw showtitle
8163 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8164 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8167 <p>This should be stripped!
8168 This won't take interferes with the title rule.
8173 Raw output of variant escape tags (R flag)
8175 language=zh variant=zh-tw
8177 Raw: -{R|zh:China;zh-tw:Taiwan}-
8179 <p>Raw: zh:China;zh-tw:Taiwan
8184 Nested using of manual convert syntax
8186 language=zh variant=zh-hk
8188 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8190 <p>Nested: Hello Hong Kong!
8195 Do not convert roman numbers to language variants
8197 language=sr variant=sr-ec
8201 <p>Фридрих IV је цар.
8206 Unclosed language converter markup "-{"
8217 Don't convert raw rule "-{R|=>}-" to "=>"
8234 Bug 529: Uncovered bullet
8245 Bug 529: Uncovered table already at line-start
8268 Bug 529: Uncovered bullet in parser function result
8270 * Foo {{lc:{{bullet}} }}
8279 Bug 5678: Double-parsed template argument
8281 {{lc:{{{1}}}|hello}}
8288 Bug 5678: Double-parsed template invocation
8290 {{lc:{{paramtest {{!}} param = hello }} }}
8292 <p>{{paramtest | param = hello }}
8297 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8323 Morwen/13: Unclosed link followed by heading
8330 <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>
8335 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8342 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8347 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8354 <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>
8369 Paragraphs inside divs (no extra line breaks)
8381 Paragraphs inside divs (extra line break on open)
8396 Paragraphs inside divs (extra line break on close)
8411 Paragraphs inside divs (extra line break on open and close)
8428 Nesting tags, paragraphs on lines which begin with <div>
8432 <div></div><strong>A
8441 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8443 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8447 <blockquote>Line one
8449 Line two</blockquote>
8451 <blockquote>Line one
8452 Line two</blockquote>
8457 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8464 Line two</blockquote>
8469 Line two</blockquote>
8474 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8478 <blockquote>Line one
8483 <blockquote>Line one
8491 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8510 Paragraphs inside blockquotes/divs (no extra line breaks)
8512 <blockquote><div>Line one
8514 Line two</div></blockquote>
8516 <blockquote><div>Line one
8517 Line two</div></blockquote>
8522 Paragraphs inside blockquotes/divs (extra line break on open)
8527 Line two</div></blockquote>
8532 Line two</div></blockquote>
8537 Paragraphs inside blockquotes/divs (extra line break on close)
8539 <blockquote><div>Line one
8544 <blockquote><div>Line one
8552 Paragraphs inside blockquotes/divs (extra line break on open and close)
8569 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8571 wgLinkHolderBatchSize=0
8577 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
8578 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
8579 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
8584 Free external link invading image caption
8586 [[Image:Foobar.jpg|thumb|http://x|hello]]
8588 <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>
8593 Bug 15196: localised external link numbers
8597 [http://en.wikipedia.org/]
8599 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8604 Multibyte character in padleft
8606 {{padleft:-Hello|7|Æ}}
8613 Multibyte character in padright
8615 {{padright:Hello-|7|Æ}}
8628 <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>
8633 formatdate parser function
8635 {{#formatdate:2009-03-24}}
8637 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8642 formatdate parser function, with default format
8644 {{#formatdate:2009-03-24|mdy}}
8646 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8651 Linked date with autoformatting disabled
8653 wgUseDynamicDates=false
8657 <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>
8662 Spacing of numbers in formatted dates
8664 {{#formatdate:January 15}}
8666 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8671 Spacing of numbers in formatted dates (linked)
8673 wgUseDynamicDates=true
8677 <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>
8690 Edit comment with link
8694 I like the [[Main Page]] a lot
8696 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
8700 Edit comment with link and link text
8704 I like the [[Main Page|best pages]] a lot
8706 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8710 Edit comment with link and link text with suffix
8714 I like the [[Main Page|best page]]s a lot
8716 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8720 Edit comment with section link (non-local, eg in history list)
8722 comment title=[[Main Page]]
8724 /* External links */ removed bogus entries
8726 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
8730 Edit comment with section link and text before it (non-local, eg in history list)
8732 comment title=[[Main Page]]
8734 pre-comment text /* External links */ removed bogus entries
8736 pre-comment text - <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
8740 Edit comment with section link (local, eg in diff view)
8742 comment local title=[[Main Page]]
8744 /* External links */ removed bogus entries
8746 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
8750 Edit comment with subpage link (bug 14080)
8754 title=[[Subpage test]]
8756 Poked at a [[/subpage]] here...
8758 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8762 Edit comment with subpage link and link text (bug 14080)
8766 title=[[Subpage test]]
8768 Poked at a [[/subpage|neat little page]] here...
8770 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8774 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8777 title=[[Subpage test]]
8779 Poked at a [[/subpage]] here...
8781 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8785 Edit comment with bare anchor link (local, as on diff)
8793 <a href="#section">#section</a>
8797 Edit comment with bare anchor link (non-local, as on history)
8804 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8808 Anchor starting with underscore
8812 <p><a href="#_ref">One</a>
8817 Id starting with underscore
8819 <div id="_ref"></div>
8821 <div id="_ref"></div>
8826 Space normalisation on autocomment (bug 22784)
8831 /* __hello__world__ */
8833 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
8837 percent-encoding and + signs in comments (Bug 26410)
8841 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8843 <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>
8847 Bad images - basic functionality
8856 Bad images - bug 16039: text after bad image disappears
8870 Verify that displaytitle works (bug #22501) no displaytitle
8874 wgAllowDisplayTitle=true
8875 wgRestrictDisplayTitle=false
8877 this is not the the title
8880 <p>this is not the the title
8885 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8890 wgAllowDisplayTitle=true
8891 wgRestrictDisplayTitle=false
8893 this is not the the title
8894 {{DISPLAYTITLE:whatever}}
8897 <p>this is not the the title
8902 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8907 wgAllowDisplayTitle=true
8908 wgRestrictDisplayTitle=true
8910 this is not the the title
8911 {{DISPLAYTITLE:whatever}}
8914 <p>this is not the the title
8919 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8924 wgAllowDisplayTitle=true
8925 wgRestrictDisplayTitle=true
8927 this is not the the title
8928 {{DISPLAYTITLE:screen}}
8931 <p>this is not the the title
8936 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8941 wgAllowDisplayTitle=false
8943 this is not the the title
8944 {{DISPLAYTITLE:screen}}
8947 <p>this is not the the title
8948 <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>
8953 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8958 wgAllowDisplayTitle=false
8960 this is not the the title
8963 <p>this is not the the title
8968 preload: check <noinclude> and <includeonly>
8972 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8978 preload: check <onlyinclude>
8982 Goodbye <onlyinclude>Hello world</onlyinclude>
8988 preload: can pass tags through if we want to
8992 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8994 <includeonly>Hello world</includeonly>
8998 preload: check that it doesn't try to do tricks
9002 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9004 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9008 Play a bit with r67090 and bug 3158
9012 <div style="width:50% !important"> </div>
9013 <div style="width:50% !important"> </div>
9014 <div style="width:50% !important"> </div>
9015 <div style="border : solid;"> </div>
9017 <div style="width:50% !important"> </div>
9018 <div style="width:50% !important"> </div>
9019 <div style="width:50% !important"> </div>
9020 <div style="border : solid;"> </div>
9025 HTML5 data attributes
9027 <span data-foo="bar">Baz</span>
9028 <p data-abc-def_hij="">Quuz</p>
9030 <p><span data-foo="bar">Baz</span>
9032 <p data-abc-def_hij="">Quuz</p>
9037 percent-encoding and + signs in internal links (Bug 26410)
9039 [[User:+%]] [[Page+title%]]
9040 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
9041 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
9042 [[%33%45]] [[%33%45+]]
9044 <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>
9045 <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>
9046 <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>
9047 <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>
9052 Special characters in embedded file links (bug 27679)
9054 [[File:Contains & ampersand.jpg]]
9055 [[File:Does not exist.jpg|Title with & ampersand]]
9057 <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>
9058 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
9064 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
9066 Text's been normalized?
9068 <p>Text's been normalized?
9073 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
9075 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
9077 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
9082 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
9084 [http://www.example.org/ ideograms]
9086 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
9091 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
9093 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
9095 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
9119 Bug 31098 Template which includes system messages which includes the template
9123 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
9124 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
9129 Deprecated presentational attributes are converted to css
9132 | valign=top align=left width=100 height=25% | Asdf
9134 <ul type="disc"></ul>
9138 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
9140 <ul style="list-style-type: disc;"></ul>
9145 Bug31490 Turkish: ucfirst 'blah'
9156 Bug31490 Turkish: ucfirst 'ix'
9167 Bug31490 Turkish: lcfirst 'BLAH'
9178 Bug31490 Turkish: ucfırst (with a dotless i)
9184 <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>
9189 Bug31490 ucfırst (with a dotless i) with English language
9195 <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>
9200 Bug 26375: TOC with italics
9205 == ''Lost'' episodes ==
9207 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9209 <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>
9212 <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>
9217 Bug 26375: TOC with bold
9222 == '''should be bold''' then normal text ==
9224 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9226 <li class="toclevel-1 tocsection-1"><a href="#should_be_bold_then_normal_text"><span class="tocnumber">1</span> <span class="toctext"><b>should be bold</b> then normal text</span></a></li>
9229 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: should be bold then normal text">edit</a>]</span> <span class="mw-headline" id="should_be_bold_then_normal_text"> <b>should be bold</b> then normal text </span></h2>
9234 Bug 33845: Headings become cursive in TOC when they contain an image
9239 == Image [[Image:foobar.jpg]] ==
9241 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9243 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
9246 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Image">edit</a>]</span> <span class="mw-headline" id="Image"> Image <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> </span></h2>
9251 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
9256 == <blockquote>Quote</blockquote> ==
9258 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9260 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
9263 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Quote">edit</a>]</span> <span class="mw-headline" id="Quote"> <blockquote>Quote</blockquote> </span></h2>
9268 Unclosed tags in TOC
9274 <small>Hanc marginis exiguitas non caperet.</small>
9277 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9279 <li class="toclevel-1 tocsection-1"><a href="#Proof:_2_.3C_3"><span class="tocnumber">1</span> <span class="toctext">Proof: 2 < 3</span></a></li>
9282 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Proof: 2 < 3">edit</a>]</span> <span class="mw-headline" id="Proof:_2_.3C_3"> Proof: 2 < 3 </span></h2>
9283 <p><small>Hanc marginis exiguitas non caperet.</small>
9289 Multiple tags in TOC
9292 == <i>Foo</i> <b>Bar</b> ==
9294 == <i>Foo</i> <blockquote>Bar</blockquote> ==
9296 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9298 <li class="toclevel-1 tocsection-1"><a href="#Foo_Bar"><span class="tocnumber">1</span> <span class="toctext"><i>Foo</i> <b>Bar</b></span></a></li>
9299 <li class="toclevel-1 tocsection-2"><a href="#Foo_Bar_2"><span class="tocnumber">2</span> <span class="toctext"><i>Foo</i> Bar</span></a></li>
9302 <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"> <i>Foo</i> <b>Bar</b> </span></h2>
9303 <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"> <i>Foo</i> <blockquote>Bar</blockquote> </span></h2>
9308 Tags with parameters in TOC
9311 == <sup class="in-h2">Hello</sup> ==
9313 == <sup class="a > b">Evilbye</sup> ==
9315 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9317 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
9318 <li class="toclevel-1 tocsection-2"><a href="#b.22.3EEvilbye"><span class="tocnumber">2</span> <span class="toctext"><sup> b">Evilbye</sup></span></a></li>
9321 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Hello">edit</a>]</span> <span class="mw-headline" id="Hello"> <sup class="in-h2">Hello</sup> </span></h2>
9322 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">Evilbye">edit</a>]</span> <span class="mw-headline" id="b.22.3EEvilbye"> <sup> b">Evilbye</sup> </span></h2>
9329 == {{int:headline_sample}} ==
9333 Bug 32057: Title needed when expanding <h> nodes.
9339 <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>
9344 Strip marker in urlencode
9346 {{urlencode:x<nowiki/>y}}
9347 {{urlencode:x<nowiki/>y|wiki}}
9348 {{urlencode:x<nowiki/>y|path}}
9375 Strip marker in formatNum
9377 {{formatnum:1<nowiki/>2}}
9378 {{formatnum:1<nowiki/>2|R}}
9386 Strip marker in grammar
9390 {{grammar:elative|foo<nowiki/>bar}}
9397 Strip marker in padleft
9399 {{padleft:|2|x<nowiki/>y}}
9406 Strip marker in padright
9408 {{padright:|2|x<nowiki/>y}}
9415 Strip marker in anchorencode
9417 {{anchorencode:x<nowiki/>y}}
9424 nowiki inside link inside heading (bug 18295)
9426 ==[[foo|x<nowiki>y</nowiki>z]]==
9428 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: xyz">edit</a>]</span> <span class="mw-headline" id="xyz"><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">xyz</a></span></h2>
9433 new support for bdi element (bug 31817)
9435 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
9437 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
9442 Ignore pipe between table row attributes
9446 |- id=foo | style='color: red'
9454 <tr id="foo" style="color: red">
9461 Gallery override link with WikiLink (bug 34852)
9464 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
9467 <ul class="gallery">
9468 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9469 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/InterWikiLink"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
9470 <div class="gallerytext">
9480 Gallery override link with absolute external link (bug 34852)
9483 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
9486 <ul class="gallery">
9487 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9488 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="http://www.example.org"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
9489 <div class="gallerytext">
9499 Gallery override link with malicious javascript (bug 34852)
9502 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
9505 <ul class="gallery">
9506 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9507 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/%22_onclick%3D%22alert(%27malicious_javascript_code!%27);"><img alt="galleryalt" src="http://example.com/images/3/3a/Foobar.jpg" width="120" height="14" /></a></div></div>
9508 <div class="gallerytext">
9518 Language parser function
9527 Padleft and padright as substr
9529 {{padleft:|3|abcde}}
9530 {{padright:|3|abcde}}
9538 Definition Lists: No nesting: Multiple dd's
9552 Definition Lists: Indentation: Regular
9568 Definition Lists: Indentation: Missing 1st level
9582 Definition Lists: Indentation: Multi-level indent
9586 <dl><dd><dl><dd><dl><dd>i3
9593 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
9594 ## as an empty dt item. It also ignores all but the last ";" when followed
9595 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
9596 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
9599 ## Ex: ";;t2 ::d2" is transformed into:
9611 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
9612 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
9623 ## All Parsoid only definition list tests have this difference.
9626 Definition Lists: Nesting: Multi-level (Parsoid only)
9656 Definition Lists: Nesting: Test 2 (Parsoid only)
9676 Definition Lists: Nesting: Test 3 (Parsoid only)
9704 Definition Lists: Nesting: Test 4
9709 <dl><dd><dl><dd><dl><dt>t3
9719 Definition Lists: Mixed Lists: Test 1
9725 <dl><dd><dl><dt><ul><li> foo
9737 Definition Lists: Mixed Lists: Test 2
9751 Definition Lists: Mixed Lists: Test 3
9756 <ul><li><dl><dd><dl><dd><dl><dd> d1
9767 Definition Lists: Mixed Lists: Test 4
9772 <ul><li><dl><dt>d1 </dt><dd>d2
9773 </dd><dt>d3 </dt><dd>d4
9781 Definition Lists: Mixed Lists: Test 5
9796 Definition Lists: Mixed Lists: Test 6
9801 <ol><li><ul><li><dl><dd>d1
9813 Definition Lists: Mixed Lists: Test 7
9827 Definition Lists: Mixed Lists: Test 8
9843 Definition Lists: Mixed Lists: Test 9
9847 <ul><li><dl><dt>foo </dt><dd>bar
9855 Definition Lists: Mixed Lists: Test 10
9859 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
9868 Definition Lists: Mixed Lists: Test 11
9873 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
9878 <dl><dt>boo </dt><dd>baz
9889 Definition Lists: Weird Ones: Test 1
9891 *#;*::;; foo : bar (who uses this?)
9893 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
9912 Try for 100% code coverage