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 ### 2-quote opening sequence tests
141 Italics and bold: 2-quote opening sequence: (2,2)
151 Italics and bold: 2-quote opening sequence: (2,3)
161 Italics and bold: 2-quote opening sequence: (2,4)
171 Italics and bold: 2-quote opening sequence: (2,5)
181 ### 3-quote opening sequence tests
185 Italics and bold: 3-quote opening sequence: (3,2)
195 Italics and bold: 3-quote opening sequence: (3,3)
205 Italics and bold: 3-quote opening sequence: (3,4)
215 Italics and bold: 3-quote opening sequence: (3,5)
225 ### 4-quote opening sequence tests
229 Italics and bold: 4-quote opening sequence: (4,2)
239 Italics and bold: 4-quote opening sequence: (4,3)
249 Italics and bold: 4-quote opening sequence: (4,4)
259 Italics and bold: 4-quote opening sequence: (4,5)
269 ### 5-quote opening sequence tests
273 Italics and bold: 5-quote opening sequence: (5,2)
283 Italics and bold: 5-quote opening sequence: (5,3)
293 Italics and bold: 5-quote opening sequence: (5,4)
297 <p><i><b>foo'</b></i>
303 Italics and bold: 5-quote opening sequence: (5,5)
312 ### multiple quote sequences in a line
315 Italics and bold: multiple quote sequences: (2,4,2)
319 <p><i>foo'<b>bar</b></i>
325 Italics and bold: multiple quote sequences: (2,4,3)
329 <p><i>foo'<b>bar</b></i>
335 Italics and bold: multiple quote sequences: (2,4,4)
339 <p><i>foo'<b>bar'</b></i>
345 Italics and bold: multiple quote sequences: (3,4,2)
355 Italics and bold: multiple quote sequences: (3,4,3)
364 ### other quote tests
367 Italics and bold: other quote tests: (2,3,5)
369 ''this is about '''foo's family'''''
371 <p><i>this is about <b>foo's family</b></i>
377 Italics and bold: other quote tests: (2,(3,3),2)
379 ''this is about '''foo's''' family''
381 <p><i>this is about <b>foo's</b> family</i>
387 Italics and bold: other quote tests: (3,2,3,2)
389 '''this is about ''foo'''s family''
391 <p><b>this is about <i>foo</i></b><i>s family</i>
397 Italics and bold: other quote tests: (3,2,3,3)
399 '''this is about ''foo'''s family'''
401 <p>'<i>this is about </i>foo<b>s family</b>
408 Italics and bold: other quote tests: (3,(2,2),3)
410 '''this is about ''foo's'' family'''
412 <p><b>this is about <i>foo's</i> family</b>
417 ### <nowiki> test cases
421 <nowiki> unordered list
423 <nowiki>* This is not an unordered list item.</nowiki>
425 <p>* This is not an unordered list item.
432 <nowiki>Lorem ipsum dolor
453 :There is not nowiki.
454 :There is <nowiki>nowiki</nowiki>.
456 #There is not nowiki.
457 #There is <nowiki>nowiki</nowiki>.
459 *There is not nowiki.
460 *There is <nowiki>nowiki</nowiki>.
462 <dl><dd>There is not nowiki.
463 </dd><dd>There is nowiki.
465 <ol><li>There is not nowiki.
466 </li><li>There is nowiki.
468 <ul><li>There is not nowiki.
469 </li><li>There is nowiki.
481 <!-- comment 1 --> asdf
517 asdf<!-- comment 1 -->jkl
527 <!-- foo --> b <!-- bar -->
541 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
547 Comment semantics and delimiters
549 <!-- --><!----><!-----><!------>
555 Comment semantics and delimiters, redux
557 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
558 -- foo -- funky huh? ... -->
564 Comment semantics and delimiters: directors cut
566 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
567 everything starting with < followed by !-- until the first -- and > we see,
568 that wouldn't be valid XML however, since in XML -- has to terminate a comment
576 Comment semantics: nesting
578 <!--<!-- no, we're not going to do anything fancy here -->-->
585 Comment semantics: unclosed comment at end
587 <!--This comment will run out to the end of the document
593 Comment in template title
602 Comment on its own line post-expand
614 ### Preformatted text
623 And a [[Main Page|link]]
629 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
634 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
651 Regression with preformatted in <center>
664 # Expected output in the following test is not really expected (there should be
665 # <pre> in the output) -- it's only testing for well-formedness.
667 Bug 6200: Preformatted in <blockquote>
680 <pre> with attributes (bug 3202)
682 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
684 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
689 <pre> with width attribute (bug 3202)
691 <pre width="8">Narrow screen goodies</pre>
693 <pre width="8">Narrow screen goodies</pre>
698 <pre> with forbidden attribute (bug 3202)
700 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
702 <pre width="8">Narrow screen goodies</pre>
707 <pre> with forbidden attribute values (bug 3202)
709 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
711 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
716 <nowiki> inside <pre> (bug 13238)
724 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
732 <pre><nowiki>Foo</nowiki></pre>
737 <nowiki> and <pre> preference (first one wins)
776 <dl><dt> name </dt><dd> Definition
782 Definition list for indentation only
786 <dl><dd> Indented text
792 Definition list with no space
796 <dl><dt>name</dt><dd>Definition
802 Definition list with URL link
804 ; http://example.com/ : definition
806 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
812 Definition list with bracketed URL link
814 ;[http://www.example.com/ Example]:Something about it
816 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
822 Definition list with wikilink containing colon
824 ; [[Help:FAQ]]: The least-read page on Wikipedia
826 <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
831 # At Brion's and JeLuF's insistence... :)
833 Definition list with news link containing colon
835 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
837 <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!
843 Malformed definition list with colon
845 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
847 <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
853 Definition lists: colon in external link text
855 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
857 <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
863 Definition lists: colon in HTML attribute
865 ;<b style="display: inline">bold</b>
867 <dl><dt><b style="display: inline">bold</b>
874 Definition lists: self-closed tag
876 ;one<br/>two : two-line fun
878 <dl><dt>one<br />two </dt><dd> two-line fun
884 Bug 11748: Literal closing tags
890 <dd>test test test test test</dd>
892 <dd>test test test test test</dd>
897 <dd>test test test test test</dd>
899 <dd>test test test test test</dd>
904 Definition and unordered list using wiki syntax nested in unordered list using html tags.
913 <dl><dt> term </dt><dd> description
923 Definition list with empty definition and following paragraph
928 <dl><dt> term</dt><dd>
938 External links: non-bracketed
940 Non-bracketed: http://example.com
942 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
947 External links: numbered
949 Numbered: [http://example.com]
950 Numbered: [http://example.net]
951 Numbered: [http://example.com]
953 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
954 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
955 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
960 External links: specified text
962 Specified text: [http://example.com link]
964 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
969 External links: trail
971 Linktrails should not work for external links: [http://example.com link]s
973 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
978 External links: dollar sign in URL
980 http://example.com/1$2345
982 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
987 External links: dollar sign in URL (named)
989 [http://example.com/1$2345]
991 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
996 External links: open square bracket forbidden in URL (bug 4377)
998 http://example.com/1[2345
1000 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1005 External links: open square bracket forbidden in URL (named) (bug 4377)
1007 [http://example.com/1[2345]
1009 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1014 External links: nowiki in URL link text (bug 6230)
1016 [http://example.com/ <nowiki>''example site''</nowiki>]
1018 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1023 External links: newline forbidden in text (bug 6230 regression check)
1025 [http://example.com/ first
1028 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1034 External links: protocol-relative URL in brackets
1036 [//example.com/ Test]
1038 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1043 External links: protocol-relative URL in brackets without text
1047 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1052 External links: protocol-relative URL in free text is left alone
1056 <p>//example.com/Foo
1061 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1063 foo//example.com/Foo
1065 <p>foo//example.com/Foo
1072 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1074 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1079 External image from https
1081 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1083 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1088 Link to non-http image, no img tag
1090 Link to non-http image, no img tag: ftp://example.com/test.jpg
1092 <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>
1097 External links: terminating separator
1099 Terminating separator: http://example.com/thing,
1101 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1106 External links: intervening separator
1108 Intervening separator: http://example.com/1,2,3
1110 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1115 External links: old bug with URL in query
1117 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1119 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1124 External links: old URL-in-URL bug, mixed protocols
1126 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1128 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1133 External links: URL in text
1135 URL in text: [http://example.com http://example.com]
1137 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1142 External links: Clickable images
1144 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1146 <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>
1151 External links: raw ampersand
1153 Old & use: http://x&y
1155 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1160 External links: encoded ampersand
1162 Old & use: http://x&y
1164 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1169 External links: encoded equals (bug 6102)
1171 http://example.com/?foo=bar
1173 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1178 External links: [raw ampersand]
1180 Old & use: [http://x&y]
1182 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1187 External links: [encoded ampersand]
1189 Old & use: [http://x&y]
1191 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1196 External links: [encoded equals] (bug 6102)
1198 [http://example.com/?foo=bar]
1200 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1205 External links: [IDN ignored character reference in hostname; strip it right off]
1207 [http://e‌xample.com/]
1209 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1214 External links: IDN ignored character reference in hostname; strip it right off
1216 http://e‌xample.com/
1218 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1223 External links: www.jpeg.org (bug 554)
1227 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1232 External links: URL within URL (original bug 2)
1234 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
1236 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
1241 BUG 361: URL inside bracketed URL
1243 [http://www.example.com/foo http://www.example.com/bar]
1245 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
1250 BUG 361: URL within URL, not bracketed
1252 http://www.example.com/foo?=http://www.example.com/bar
1254 <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>
1259 BUG 289: ">"-token in URL-tail
1261 http://www.example.com/<hello>
1263 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
1268 BUG 289: literal ">"-token in URL-tail
1270 http://www.example.com/<b>html</b>
1272 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
1277 BUG 289: ">"-token in bracketed URL
1279 [http://www.example.com/<hello> stuff]
1281 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
1286 BUG 289: literal ">"-token in bracketed URL
1288 [http://www.example.com/<b>html</b> stuff]
1290 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1295 BUG 289: literal double quote at end of URL
1297 http://www.example.com/"hello"
1299 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1304 BUG 289: literal double quote in bracketed URL
1306 [http://www.example.com/"hello" stuff]
1308 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1313 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1315 [http://www.example.com test]
1317 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1322 External links: wiki links within external link (Bug 3695)
1324 [http://example.com [[wikilink]] embedded in ext link]
1326 <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>
1331 BUG 787: Links with one slash after the url protocol are invalid
1335 [http:/example.com title]
1337 <p>http:/example.com
1338 </p><p>[http:/example.com title]
1343 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1345 ''[http://example.com text'']
1346 [http://example.com '''text]'''
1347 ''Something [http://example.com in italic'']
1348 ''Something [http://example.com mixed''''', even bold]'''
1349 '''''Now [http://example.com both''''']
1351 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1352 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1353 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1354 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1355 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1361 Bug 4781: %26 in URL
1363 http://www.example.com/?title=AT%26T
1365 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1369 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
1370 # % is actually legal in HTML5. Any change in output would need testing though.
1372 Bug 4781, 5267: %25 in URL
1374 http://www.example.com/?title=100%25_Bran
1376 <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>
1381 Bug 4781, 5267: %28, %29 in URL
1383 http://www.example.com/?title=Ben-Hur_%281959_film%29
1385 <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>
1391 Bug 4781: %26 in autonumber URL
1393 [http://www.example.com/?title=AT%26T]
1395 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1400 Bug 4781, 5267: %26 in autonumber URL
1402 [http://www.example.com/?title=100%25_Bran]
1404 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1409 Bug 4781, 5267: %28, %29 in autonumber URL
1411 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1413 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1419 Bug 4781: %26 in bracketed URL
1421 [http://www.example.com/?title=AT%26T link]
1423 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1428 Bug 4781, 5267: %26 in bracketed URL
1430 [http://www.example.com/?title=100%25_Bran link]
1432 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1437 Bug 4781, 5267: %28, %29 in bracketed URL
1439 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1441 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1446 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1448 Some [http://example.com/ pretty ''italics'' and stuff]!
1450 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1455 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1457 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1459 <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>
1464 External link containing double-single-quotes with no space separating the url from text in italics
1466 [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]].]
1468 <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>
1473 URL-encoding in URL functions (single parameter)
1475 {{localurl:Some page|amp=&}}
1477 <p>/index.php?title=Some_page&amp=&
1482 URL-encoding in URL functions (multiple parameters)
1484 {{localurl:Some page|q=?&=&}}
1486 <p>/index.php?title=Some_page&q=?&amp=&
1493 http://example.com/index.php?foozoid%5B%5D=bar
1495 http://example.com/index.php?foozoid[]=bar
1497 <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>
1498 </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>
1503 IPv6 urls (bug 21261)
1507 http://[2404:130:0:1000::187:2]/index.php
1509 <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>
1520 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1522 Normal text. '''''Bold italic text.''''' Normal text.
1524 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1525 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1531 Unclosed and unmatched quotes
1533 '''''Bold italic text '''with bold deactivated''' in between.'''''
1535 '''''Bold italic text ''with italic deactivated'' in between.'''''
1539 ..spanning two paragraphs (should not work).'''
1541 '''Bold tag left open
1543 ''Italic tag left open
1547 <!-- Unmatching number of opening, closing tags: -->
1548 '''This year''''s election ''should'' beat '''last year''''s.
1550 ''Tom'''s car is bigger than ''Susan'''s.
1552 Plain ''italic'''s plain
1554 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1555 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1556 </p><p><b>Bold text..</b>
1557 </p><p>..spanning two paragraphs (should not work).
1558 </p><p><b>Bold tag left open</b>
1559 </p><p><i>Italic tag left open</i>
1561 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1562 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1563 </p><p>Plain <i>italic'</i>s plain
1570 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1573 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1574 # is the bare minimun required by the spec, see:
1575 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1577 A table with no data.
1583 # A table with nothing but a caption is invalid XHTML, we might want to render
1584 # this as <p>caption</p>
1586 A table with nothing but a caption
1594 </caption><tr><td></td></tr></table>
1620 Multiplication table
1622 {| border="1" cellpadding="2"
1623 |+Multiplication table
1625 ! × !! 1 !! 2 !! 3
1643 <table border="1" cellpadding="2">
1644 <caption>Multiplication table
1695 |rowspan=2| Cell 2, row 1 (and 2)
1706 <td rowspan="2"> Cell 2, row 1 (and 2)
1724 {| bgcolor=#ABCDEF border=2
1729 |the original table again
1737 <table bgcolor="#ABCDEF" border="2">
1745 <td>the original table again
1751 Invalid attributes in table cell (bug 1830)
1766 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1769 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1773 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
1774 <td>]" onmouseover="alert(document.cookie)">test
1783 Indented table markup mixed with indented pre content (proposed in bug 6200)
1788 Text that should be rendered preformatted
1796 <pre>Text that should be rendered preformatted
1809 Plain link, capitalized
1813 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1818 Plain link, uncapitalized
1822 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1829 [[Main Page|The Main Page]]
1831 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1840 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1845 Broken link with fragment
1847 [[Zigzagzogzagzig#zug]]
1849 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1854 Special page link with fragment
1856 [[Special:Version#anchor]]
1858 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1863 Nonexistent special page link with fragment
1865 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1867 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1874 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1876 <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>
1883 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1885 <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>!!!
1890 Link with 3 brackets
1899 Piped link with 3 brackets
1901 [[[main page|the main page]]]
1903 <p>[[[main page|the main page]]]
1908 Link with multiple pipes
1910 [[Main Page|The|Main|Page]]
1912 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1919 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1921 <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>
1926 Piped link to namespace
1928 [[Meta:Disclaimers|The disclaimers]]
1930 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1937 [[Usually caused by a typo (oops}]]
1939 <p>[[Usually caused by a typo (oops}]]
1944 Link containing % (not as a hex sequence)
1948 <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>
1953 Link containing % as a single hex sequence interpreted to char
1957 <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>
1962 Link containing % as a double hex sequence interpreted to hex sequence
1966 <p>[[7%2525 Solution]]
1971 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1972 Example for such a section: == < ==
1974 [[%23%3c]][[%23%3e]]
1976 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1981 Link containing "<#" and ">#" as a hex sequences
1983 [[%3c%23]][[%3e%23]]
1985 <p>[[%3c%23]][[%3e%23]]
1990 Link containing double-single-quotes '' (bug 4598)
1992 [[Lista d''e paise d''o munno]]
1994 <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>
1999 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2001 Some [[Link|pretty ''italics'' and stuff]]!
2003 <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>!
2008 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2010 ''Some [[Link|pretty ''italics'' and stuff]]!
2012 <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>
2017 Link with double quotes in title part (literal) and alternate part (interpreted)
2019 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2023 [[''Pentecoste''|Pentecoste]]
2025 [[''Pentecoste''|''Pentecoste'']]
2027 <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>
2028 </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>
2029 </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>
2030 </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>
2037 [[http://www.example.com]]
2039 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2044 Plain link to URL with link text
2046 [[http://www.example.com Link text]]
2048 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2053 Plain link to protocol-relative URL
2055 [[//www.example.com]]
2057 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2062 Plain link to protocol-relative URL with link text
2064 [[//www.example.com Link text]]
2066 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2071 # I'm fairly sure the expected result here is wrong.
2072 # We want these to be URL links, not pseudo-pages with URLs for titles....
2073 # However the current output is also pretty screwy.
2076 # I'm changing it to match the current output--it arguably makes more
2077 # sense in the light of the test above. Old expected result was:
2078 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2080 # But I think this test is bordering on "garbage in, garbage out" anyway.
2085 Piped link to URL: [[http://www.example.com|an example URL]]
2087 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2092 BUG 2: [[page|http://url/]] should link to page, not http://url/
2094 [[Main Page|http://url/]]
2096 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2101 BUG 337: Escaped self-links should be bold
2105 [[Bug462]] [[Bug462]]
2107 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2112 Self-link to section should not be bold
2116 [[Main Page#section]]
2118 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2129 Self-link to numeric title
2135 <p><strong class="selflink">0</strong>
2140 Link to numeric-equivalent title
2146 <p><a href="/wiki/00" title="00">00</a>
2151 <nowiki> inside a link
2153 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2155 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2160 Non-breaking spaces in title
2162 [[ Main Page ]]
2164 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2169 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2175 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2180 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2186 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2191 Internal link with en linktrail: no apostrophes (bug 27473)
2197 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2202 Internal link with ca linktrail with apostrophes (bug 27473)
2208 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2213 Internal link with kaa linktrail with apostrophes (bug 27473)
2219 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2224 ### Interwiki links (see maintenance/interwiki.sql)
2228 Inline interwiki link
2230 [[MeatBall:SoftSecurity]]
2232 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2237 Inline interwiki link with empty title (bug 2372)
2241 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
2246 Interwiki link encoding conversion (bug 1636)
2248 *[[Wikipedia:ro:Olteniţa]]
2249 *[[Wikipedia:ro:Olteniţa]]
2251 <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>
2252 </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>
2258 Interwiki link with fragment (bug 2130)
2260 [[MeatBall:SoftSecurity#foo]]
2262 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2277 Double interlanguage link
2288 Interlanguage link, with prefix links
2300 Double interlanguage link, with prefix links (bug 8897)
2327 Incorrecly removing closing slashes from correctly formed XHTML
2329 <br style="clear:both;" />
2331 <p><br style="clear:both;" />
2336 Failing to transform badly formed HTML into correct XHTML
2338 <br style="clear: left;">
2339 <br style="clear: right;">
2340 <br style="clear: both;">
2342 <p><br style="clear: left;" />
2343 <br style="clear: right;" />
2344 <br style="clear: both;" />
2349 Horizontal ruler (should it add that extra space?)
2363 ### Block-level elements
2386 <ol><li>Numbered list
2403 ***#Number on level 4
2405 **#Number on level 3
2406 **#Number on level 3
2410 #** Level 3, but ordered
2413 <ol><li> with numbers
2415 <ul><li> and bullets
2417 <ol><li> and numbers
2419 </li><li>bullets again
2420 <ul><li>bullet level 2
2421 <ul><li>bullet level 3
2422 <ol><li>Number on level 4
2425 </li><li>bullet level 2
2426 <ol><li>Number on level 3
2427 </li><li>Number on level 3
2430 <ol><li>number level 2
2433 <ul><li><ul><li> Level 3
2437 <ol><li><ul><li><ul><li> Level 3, but ordered
2471 Nested lists 3 (first element empty)
2484 Nested lists 4 (first element empty)
2497 Nested lists 5 (both elements empty)
2510 Nested lists 6 (both elements empty)
2523 Nested lists 7 (skip initial nesting levels)
2527 <ul><li><ul><li><ul><li> foo
2535 Nested lists 8 (multiple nesting transitions)
2543 <ul><li><ul><li> bar
2554 List items are not parsed correctly following a <pre> block (bug 785)
2560 <ul><li> <pre>foo</pre>
2561 </li><li> <pre>bar</pre>
2568 List items from template
2579 * notSOL{{inner list}}
2598 List interrupted by empty line or heading
2608 <ul><li><ul><li> bar
2611 <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>
2612 <ul><li> Another list item
2623 Magic Word: {{CURRENTDAY}}
2632 Magic Word: {{CURRENTDAY2}}
2641 Magic Word: {{CURRENTDAYNAME}}
2650 Magic Word: {{CURRENTDOW}}
2659 Magic Word: {{CURRENTMONTH}}
2668 Magic Word: {{CURRENTMONTHABBREV}}
2670 {{CURRENTMONTHABBREV}}
2677 Magic Word: {{CURRENTMONTHNAME}}
2679 {{CURRENTMONTHNAME}}
2686 Magic Word: {{CURRENTMONTHNAMEGEN}}
2688 {{CURRENTMONTHNAMEGEN}}
2695 Magic Word: {{CURRENTTIME}}
2704 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2713 Magic Word: {{CURRENTYEAR}}
2722 Magic Word: {{FULLPAGENAME}}
2724 title=[[User:Ævar Arnfjörð Bjarmason]]
2728 <p>User:Ævar Arnfjörð Bjarmason
2733 Magic Word: {{FULLPAGENAMEE}}
2735 title=[[User:Ævar Arnfjörð Bjarmason]]
2739 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2744 Magic Word: {{NAMESPACE}}
2746 title=[[User:Ævar Arnfjörð Bjarmason]]
2755 Magic Word: {{NAMESPACEE}}
2757 title=[[User:Ævar Arnfjörð Bjarmason]]
2766 Magic Word: {{NAMESPACENUMBER}}
2768 title=[[User:Ævar Arnfjörð Bjarmason]]
2777 Magic Word: {{NUMBEROFFILES}}
2786 Magic Word: {{PAGENAME}}
2788 title=[[User:Ævar Arnfjörð Bjarmason]]
2792 <p>Ævar Arnfjörð Bjarmason
2797 Magic Word: {{PAGENAME}} with metacharacters
2799 title=[['foo & bar = baz']]
2803 <p><i>'foo & bar = baz'</i>
2808 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2810 title=[[*RFC 1234 http://example.com/]]
2814 <p>*RFC 1234 http://example.com/
2819 Magic Word: {{PAGENAMEE}}
2821 title=[[User:Ævar Arnfjörð Bjarmason]]
2825 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2830 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2832 title=[[*RFC 1234 http://example.com/]]
2836 <p>*RFC_1234_http://example.com/
2841 Magic Word: {{REVISIONID}}
2850 Magic Word: {{SCRIPTPATH}}
2859 Magic Word: {{SERVER}}
2863 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2868 Magic Word: {{SERVERNAME}}
2877 Magic Word: {{SITENAME}}
2886 Namespace 1 {{ns:1}}
2895 Namespace 1 {{ns:01}}
2904 Namespace 0 {{ns:0}} (bug 4783)
2912 Namespace 0 {{ns:00}} (bug 4783)
2920 Namespace -1 {{ns:-1}}
2929 Namespace User {{ns:User}}
2938 Namespace User talk {{ns:User_talk}}
2947 Namespace User talk {{ns:uSeR tAlK}}
2956 Namespace File {{ns:File}}
2965 Namespace File {{ns:Image}}
2974 Namespace (lang=de) Benutzer {{ns:User}}
2985 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2991 <p>Benutzer Diskussion
2999 {{urlencode:hi world?!}}
3000 {{urlencode:hi world?!|WIKI}}
3001 {{urlencode:hi world?!|PATH}}
3002 {{urlencode:hi world?!|QUERY}}
3015 Magic links: internal link to RFC (bug 479)
3019 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3024 Magic links: RFC (bug 479)
3028 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3033 Magic links: ISBN (bug 1937)
3037 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3042 Magic links: PMID incorrectly converts space to underscore
3046 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3055 Nonexistent template
3057 {{thistemplatedoesnotexist}}
3059 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3066 This is a test template
3074 <p>This is a test template
3079 Template with explicit namespace
3083 <p>This is a test template
3091 This is a test template with parameter {{{param}}}
3097 {{paramtest|param=foo}}
3099 <p>This is a test template with parameter foo
3104 Template:paramtestnum
3110 Template unnamed parameter
3112 {{paramtestnum|Main Page|the main page}}
3114 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3119 Template:templatesimple
3125 Template:templateredirect
3127 #redirect [[Template:templatesimple]]
3131 Template:templateasargtestnum
3137 Template:templateasargtest
3139 {{template{{{templ}}}}}
3143 Template:templateasargtest2
3149 Template with template name as unnamed argument
3151 {{templateasargtestnum|templatesimple}}
3158 Template with template name as argument
3160 {{templateasargtest|templ=simple}}
3167 Template with template name as argument (2)
3169 {{templateasargtest2|templ=templatesimple}}
3176 Template:templateasargtestdefault
3178 {{{{{templ|templatesimple}}}}}
3188 Template with default value
3190 {{templateasargtestdefault}}
3197 Template with default value (value set)
3199 {{templateasargtestdefault|templ=templa}}
3208 {{templateredirect}}
3215 Template with argument in separate line
3217 {{ templateasargtest |
3225 Template with complex template as argument
3228 param ={{ templateasargtest |
3231 <p>This is a test template with parameter (test)
3236 Template with thumb image (with link in description)
3239 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
3241 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>
3246 Template:complextemplate
3248 {{{1}}} {{paramtest|
3249 param ={{{param}}}}}
3253 Template with complex arguments
3256 param ={{ templateasargtest |
3257 templ = simple }}|[[Template:complextemplate|link]]}}
3259 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
3264 BUG 553: link with two variables in a piped link
3267 |[[{{{1}}}|{{{2}}}]]
3272 <td>[[{{{1}}}|{{{2}}}]]
3278 Magic variable as template parameter
3280 {{paramtest|param={{SITENAME}}}}
3282 <p>This is a test template with parameter MediaWiki
3289 [[{{{param}}}|link]]
3293 Template parameter as link source
3295 {{linktest|param=Main Page}}
3297 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
3305 including another template, {{paramtest|param={{{arg}}}}}
3309 Template passing argument to another template
3311 {{paramtest2|arg='hmm'}}
3313 <p>including another template, This is a test template with parameter 'hmm'
3324 Template as link source
3328 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3346 Template infinite loop
3350 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
3355 Template from main namespace
3374 BUG 529: Template with table, not included at beginning of line
3393 BUG 523: Template shouldn't eat newline (or add an extra one before table)
3413 BUG 41: Template parameters shown as broken links
3425 ''None'' of '''this''' should be
3427 but rather passed unmodified
3431 # hmm, fix this or just deprecate msgnw and document its behavior?
3437 {{msgnw:MSGNW test}}
3439 <p>''None'' of '''this''' should be
3441 but rather passed unmodified
3449 {{int:youhavenewmessages|lots of money|not!}}
3451 <p>You have lots of money (not!).
3458 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3462 <includeonly> and <noinclude> being included
3473 <onlyinclude>Foo</onlyinclude>bar
3477 <onlyinclude> being included
3489 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3493 <onlyinclude> and <includeonly> being included
3502 <includeonly> and <noinclude> on a page
3504 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3511 <onlyinclude> on a page
3513 <onlyinclude>Foo</onlyinclude>bar
3520 Template:Includeonly section
3523 ==Includeonly section==
3529 Bug 6563: Edit link generation for section shown by <includeonly>
3531 {{includeonly section}}
3533 <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>
3534 <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>
3538 # Uses same input as the contents of [[Template:Includeonly section]]
3540 Bug 6563: Section extraction for section shown by <includeonly>
3545 ==Includeonly section==
3553 Bug 6563: Edit link generation for section suppressed by <includeonly>
3556 ==Includeonly section==
3560 <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>
3565 Bug 6563: Section extraction for section suppressed by <includeonly>
3570 ==Includeonly section==
3578 ### Pre-save transform tests
3581 pre-save transform: subst:
3587 This is a test template
3591 pre-save transform: normal template
3601 pre-save transform: nonexistent template
3605 {{thistemplatedoesnotexist}}
3607 {{thistemplatedoesnotexist}}
3612 pre-save transform: subst magic variables
3621 # This is bug 89, which I fixed. -- wtm
3623 pre-save transform: subst: templates with parameters
3627 {{subst:paramtest|param="something else"}}
3629 This is a test template with parameter "something else"
3635 <nowiki>'''not wiki'''</nowiki>
3639 pre-save transform: nowiki in subst (bug 1188)
3643 {{subst:nowikitest}}
3645 <nowiki>'''not wiki'''</nowiki>
3650 Template:commenttest
3652 This template has <!-- a comment --> in it.
3656 pre-save transform: comment in subst (bug 1936)
3660 {{subst:commenttest}}
3662 This template has <!-- a comment --> in it.
3666 pre-save transform: unclosed tag
3670 <nowiki>'''not wiki'''
3672 <nowiki>'''not wiki'''
3676 pre-save transform: mixed tag case
3680 <NOwiki>'''not wiki'''</noWIKI>
3682 <NOwiki>'''not wiki'''</noWIKI>
3686 pre-save transform: unclosed comment in <nowiki>
3690 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3692 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3698 <span onmouseover="alert('crap')">Oh no</span>
3702 (confirming safety of fix for subst bug 1936)
3704 {{Template:dangerous}}
3706 <p><span>Oh no</span>
3711 pre-save transform: comment containing gallery (bug 5024)
3715 <!-- <gallery>data</gallery> -->
3717 <!-- <gallery>data</gallery> -->
3721 pre-save transform: comment containing extension
3725 <!-- <tag>data</tag> -->
3727 <!-- <tag>data</tag> -->
3731 pre-save transform: comment containing nowiki
3735 <!-- <nowiki>data</nowiki> -->
3737 <!-- <nowiki>data</nowiki> -->
3741 pre-save transform: <noinclude> in subst (bug 3298)
3751 pre-save transform: <onlyinclude> in subst (bug 3298)
3763 {{<includeonly>subst:</includeonly>Includes}}
3767 Template:SafeSubstTest
3769 {{<includeonly>safesubst:</includeonly>Includes}}
3773 bug 22297: safesubst: works during PST
3777 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3783 bug 22297: safesubst: works during normal parse
3792 subst: does not work during normal parse
3796 <p>{{subst:Includes}}
3801 pre-save transform: context links ("pipe trick")
3805 [[Article (context)|]]
3808 [[Bar:Article (context)|]]
3809 [[:Bar:Article (context)|]]
3811 [[|Article (context)]]
3815 [[Article (context)|Article]]
3816 [[Bar:Article|Article]]
3817 [[:Bar:Article|Article]]
3818 [[Bar:Article (context)|Article]]
3819 [[:Bar:Article (context)|Article]]
3821 [[Article (context)]]
3822 [[Bar:X (Y) Z|X (Y) Z]]
3823 [[:Bar:X (Y) Z|X (Y) Z]]
3827 pre-save transform: context links ("pipe trick") with interwiki prefix
3831 [[interwiki:Article|]]
3832 [[:interwiki:Article|]]
3833 [[interwiki:Bar:Article|]]
3834 [[:interwiki:Bar:Article|]]
3836 [[interwiki:Article|Article]]
3837 [[:interwiki:Article|Article]]
3838 [[interwiki:Bar:Article|Bar:Article]]
3839 [[:interwiki:Bar:Article|Bar:Article]]
3843 pre-save transform: context links ("pipe trick") with parens in title
3845 pst title=[[Somearticle (context)]]
3849 [[Article (context)|Article]]
3853 pre-save transform: context links ("pipe trick") with comma in title
3855 pst title=[[Someplace, Somewhere]]
3858 [[Otherplace, Elsewhere|]]
3859 [[Otherplace, Elsewhere, Anywhere|]]
3861 [[Otherplace, Somewhere|Otherplace]]
3862 [[Otherplace, Elsewhere|Otherplace]]
3863 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3867 pre-save transform: context links ("pipe trick") with parens and comma
3869 pst title=[[Someplace (IGNORED), Somewhere]]
3872 [[Otherplace (place), Elsewhere|]]
3874 [[Otherplace, Somewhere|Otherplace]]
3875 [[Otherplace (place), Elsewhere|Otherplace]]
3879 pre-save transform: context links ("pipe trick") with comma and parens
3881 pst title=[[Who, me? (context)]]
3884 [[Me, Myself, and I (1937 song)|]]
3886 [[Yes, you. (context)|Yes, you.]]
3887 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3891 pre-save transform: context links ("pipe trick") with namespace
3893 pst title=[[Ns:Somearticle]]
3897 [[Ns:Article|Article]]
3901 pre-save transform: context links ("pipe trick") with namespace and parens
3903 pst title=[[Ns:Somearticle (context)]]
3907 [[Ns:Article (context)|Article]]
3911 pre-save transform: context links ("pipe trick") with namespace and comma
3913 pst title=[[Ns:Somearticle, Context, Whatever]]
3917 [[Ns:Article, Context, Whatever|Article]]
3921 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3923 pst title=[[Ns:Somearticle, Context (context)]]
3927 [[Ns:Article (context)|Article]]
3931 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3933 pst title=[[Ns:Somearticle (IGNORED), Context]]
3937 [[Ns:Article, Context|Article]]
3941 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
3945 [[Article(context)|]]
3946 [[Bar:Article(context)|]]
3947 [[:Bar:Article(context)|]]
3948 [[|Article(context)]]
3952 [[Article(context)|Article]]
3953 [[Bar:Article(context)|Article]]
3954 [[:Bar:Article(context)|Article]]
3955 [[Article(context)]]
3957 [[:Bar:X(Y)Z|X(Y)Z]]
3961 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
3965 [[Article (context)|]]
3966 [[Bar:Article (context)|]]
3967 [[:Bar:Article (context)|]]
3968 [[|Article (context)]]
3972 [[Article (context)|Article]]
3973 [[Bar:Article (context)|Article]]
3974 [[:Bar:Article (context)|Article]]
3975 [[Article (context)]]
3976 [[Bar:X (Y) Z|X (Y) Z]]
3977 [[:Bar:X (Y) Z|X (Y) Z]]
3981 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
3985 [[Article(context)|]]
3986 [[Bar:Article(context)|]]
3987 [[:Bar:Article(context)|]]
3988 [[|Article(context)]]
3992 [[Article(context)|Article]]
3993 [[Bar:Article(context)|Article]]
3994 [[:Bar:Article(context)|Article]]
3995 [[Article(context)]]
3997 [[:Bar:X(Y)Z|X(Y)Z]]
4001 pre-save transform: context links ("pipe trick") with commas (bug 21660)
4005 [[Article (context), context|]]
4006 [[Article (context),context|]]
4007 [[Bar:Article (context), context|]]
4008 [[Bar:Article (context),context|]]
4009 [[:Bar:Article (context), context|]]
4010 [[:Bar:Article (context),context|]]
4012 [[Article (context), context|Article]]
4013 [[Article (context),context|Article]]
4014 [[Bar:Article (context), context|Article]]
4015 [[Bar:Article (context),context|Article]]
4016 [[:Bar:Article (context), context|Article]]
4017 [[:Bar:Article (context),context|Article]]
4021 pre-save transform: trim trailing empty lines
4025 Empty lines are trimmed
4031 Empty lines are trimmed
4035 pre-save transform: Signature expansion
4040 * <noinclude>~~~</noinclude>
4041 * <includeonly>~~~</includeonly>
4042 * <onlyinclude>~~~</onlyinclude>
4044 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
4045 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
4046 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
4047 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
4052 pre-save transform: Signature expansion in nowiki tags (bug 93)
4058 <nowiki>~~~~</nowiki>
4060 <includeonly><nowiki>~~~~</nowiki></includeonly>
4062 <noinclude><nowiki>~~~~</nowiki></noinclude>
4064 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4066 {{subst:Foo}} shall be converted to FOO
4068 As well as inside noinclude/onlyinclude
4069 <noinclude>{{subst:Foo}}</noinclude>
4070 <onlyinclude>{{subst:Foo}}</onlyinclude>
4072 But not inside includeonly
4073 <includeonly>{{subst:Foo}}</includeonly>
4077 <nowiki>~~~~</nowiki>
4079 <includeonly><nowiki>~~~~</nowiki></includeonly>
4081 <noinclude><nowiki>~~~~</nowiki></noinclude>
4083 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
4085 FOO shall be converted to FOO
4087 As well as inside noinclude/onlyinclude
4088 <noinclude>FOO</noinclude>
4089 <onlyinclude>FOO</onlyinclude>
4091 But not inside includeonly
4092 <includeonly>{{subst:Foo}}</includeonly>
4096 ### Message transform tests
4099 message transform: magic variables
4109 message transform: should not transform wiki markup
4119 message transform: <noinclude> in transcluded template (bug 4926)
4129 message transform: <onlyinclude> in transcluded template (bug 4926)
4139 {{#special:}} page name, known
4143 {{#special:Recentchanges}}
4145 Special:RecentChanges
4149 {{#special:}} page name with subpage, known
4153 {{#special:Recentchanges/param}}
4155 Special:RecentChanges/param
4159 {{#special:}} page name, unknown
4163 {{#special:foobarnonexistent}}
4165 No such special page
4169 {{#speciale:}} page name, known
4173 {{#speciale:Recentchanges}}
4175 Special:RecentChanges
4179 {{#speciale:}} page name with subpage, known
4183 {{#speciale:Recentchanges/param}}
4185 Special:RecentChanges/param
4189 {{#speciale:}} page name, unknown
4193 {{#speciale:foobarnonexistent}}
4195 No_such_special_page
4204 [[Image:foobar.jpg]]
4206 <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>
4213 [[Image:foobar.jpg|right]]
4215 <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>
4220 Simple image (using File: namespace, now canonical)
4224 <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>
4231 [[Image:foobar.jpg|right|Caption text]]
4233 <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>
4238 Image with link parameter, wiki target
4240 [[Image:foobar.jpg|link=Target page]]
4242 <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>
4247 Image with link parameter, URL target
4249 [[Image:foobar.jpg|link=http://example.com/]]
4251 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
4256 Image with link parameter, wgExternalLinkTarget
4258 [[Image:foobar.jpg|link=http://example.com/]]
4260 wgExternalLinkTarget='foobar'
4262 <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>
4267 Image with link parameter, wgExternalLinkTarget, unnamed parameter
4269 [[Image:foobar.jpg|link=http://example.com/|Title]]
4271 wgExternalLinkTarget='foobar'
4273 <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>
4278 Image with empty link parameter
4280 [[Image:foobar.jpg|link=]]
4282 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
4287 Image with link parameter (wiki target) and unnamed parameter
4289 [[Image:foobar.jpg|link=Target page|Title]]
4291 <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>
4296 Image with link parameter (URL target) and unnamed parameter
4298 [[Image:foobar.jpg|link=http://example.com/|Title]]
4300 <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>
4305 Thumbnail image with link parameter
4307 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
4309 <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>
4314 Image with frame and link
4316 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
4318 <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>
4323 Image with frame and link and explicit alt
4325 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
4327 <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>
4332 Image with wiki markup in implicit alt
4334 [[Image:Foobar.jpg|testing '''bold''' in alt]]
4336 <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>
4341 Image with wiki markup in explicit alt
4343 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
4345 <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>
4350 Link to image page- image page normally doesn't exists, hence edit link
4351 Add test with existing image page
4352 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
4356 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
4361 bug 18784 Link to non-existent image page with caption should use caption as link text
4363 [[:Image:test|caption]]
4365 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
4370 Frameless image caption with a free URL
4372 [[Image:foobar.jpg|http://example.com]]
4374 <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>
4379 Thumbnail image caption with a free URL
4381 [[Image:foobar.jpg|thumb|http://example.com]]
4383 <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>
4388 Thumbnail image caption with a free URL and explicit alt
4390 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
4392 <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>
4397 BUG 1887: A ISBN with a thumbnail
4399 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
4401 <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>
4406 BUG 1887: A RFC with a thumbnail
4408 [[Image:foobar.jpg|thumb|This is RFC 12354]]
4410 <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>
4415 BUG 1887: A mailto link with a thumbnail
4417 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
4419 <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>
4423 # Pending resolution to bug 368
4425 BUG 648: Frameless image caption with a link
4427 [[Image:foobar.jpg|text with a [[link]] in it]]
4429 <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>
4434 BUG 648: Frameless image caption with a link (suffix)
4436 [[Image:foobar.jpg|text with a [[link]]foo in it]]
4438 <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>
4443 BUG 648: Frameless image caption with an interwiki link
4445 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
4447 <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>
4452 BUG 648: Frameless image caption with a piped interwiki link
4454 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
4456 <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>
4461 Escape HTML special chars in image alt text
4463 [[Image:foobar.jpg|& < > "]]
4465 <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>
4470 BUG 499: Alt text should have Ӓ, not &1234;
4472 [[Image:foobar.jpg|♀]]
4474 <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>
4479 Broken image caption with link
4481 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
4483 <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.
4488 Image caption containing another image
4490 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4492 <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>
4497 Image caption containing a newline
4499 [[Image:Foobar.jpg|This
4502 <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>
4508 Bug 3090: External links other than http: in image captions
4510 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4512 <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>
4519 #REDIRECT [[File:Barfoo.jpg]]
4525 [[Image:Barfoo.jpg]]
4527 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
4532 Missing image with uploads disabled
4536 [[Image:Foobaz.jpg]]
4538 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
4547 Subpage test/subpage
4555 subpage title=[[Subpage test]]
4559 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
4564 Subpage noslash link
4566 subpage title=[[Subpage test]]
4570 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4579 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4584 BUG 561: {{/Subpage}}
4586 subpage title=[[Page]]
4590 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4598 Category:MediaWiki User's Guide
4606 [[:Category:MediaWiki User's Guide]]
4608 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
4617 [[Category:MediaWiki User's Guide]]
4619 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4623 PAGESINCATEGORY invalid title fatal (r33546 fix)
4625 {{PAGESINCATEGORY:<bogus>}}
4632 ### Inter-language links
4635 Inter-language links
4641 [[zh:食品]]
4643 es:Alimento fr:Nourriture zh:食品
4650 Basic section headings
4657 ===Smaller headline===
4660 <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>
4663 <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>
4666 <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>
4672 Section headings with TOC
4675 === Subheadline 1 ===
4676 ===== Skipping a level =====
4677 ====== Skipping a level ======
4681 ===Another headline===
4683 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4685 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4687 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4689 <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>
4691 <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>
4698 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4700 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4705 <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>
4706 <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>
4707 <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>
4708 <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>
4709 <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>
4712 <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>
4716 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4718 Handling of sections up to level 6 and beyond
4721 == Level 2 Heading==
4722 === Level 3 Heading===
4723 ==== Level 4 Heading====
4724 ===== Level 5 Heading=====
4725 ====== Level 6 Heading======
4726 ======= Level 7 Heading=======
4727 ======== Level 8 Heading========
4728 ========= Level 9 Heading=========
4729 ========== Level 10 Heading==========
4731 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4733 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4735 <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>
4737 <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>
4739 <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>
4741 <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>
4743 <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>
4744 <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>
4745 <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>
4746 <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>
4747 <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>
4760 <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>
4761 <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>
4762 <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>
4763 <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>
4764 <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>
4765 <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>
4766 <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>
4767 <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>
4768 <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>
4769 <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>
4774 TOC regression (bug 9764)
4778 ==== title 1.1.1 ====
4783 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4785 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4787 <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>
4789 <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>
4792 <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>
4795 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4797 <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>
4802 <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>
4803 <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>
4804 <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>
4805 <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>
4806 <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>
4807 <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>
4812 TOC with wgMaxTocLevel=3 (bug 6204)
4818 ==== title 1.1.1 ====
4823 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4825 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4827 <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>
4828 <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>
4831 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4833 <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>
4838 <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>
4839 <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>
4840 <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>
4841 <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>
4842 <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>
4843 <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>
4848 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4854 ====Section 1.1.1====
4855 ====Section 1.1.1.1====
4858 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4860 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4862 <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>
4865 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4868 <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>
4869 <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>
4870 <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>
4871 <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>
4872 <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>
4878 Resolving duplicate section names
4883 <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>
4884 <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>
4889 Resolving duplicate section names with differing case (bug 10721)
4894 <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>
4895 <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>
4907 Template with sections, __NOTOC__
4914 <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>
4915 <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>
4916 <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>
4917 <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>
4922 __NOEDITSECTION__ keyword
4928 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4929 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4934 Link inside a section heading
4936 ==Section with a [[Main Page|link]] in it==
4938 <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>
4943 TOC regression (bug 12077)
4950 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4952 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4954 <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>
4957 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4960 <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>
4961 <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>
4962 <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>
4967 BUG 1219 URL next to image (good)
4969 http://example.com [[Image:foobar.jpg]]
4971 <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>
4976 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4979 The line above must have a trailing space!
4982 But just in case it doesn't...
4984 <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>
4985 <p>The line above must have a trailing space!
4987 <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>
4988 <p>But just in case it doesn't...
4993 Header with special characters (bug 25462)
4995 The tooltips shall not show entities to the user (ie. be double escaped)
5012 <p>The tooltips shall not show entities to the user (ie. be double escaped)
5014 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5016 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
5017 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
5018 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
5019 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
5020 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
5023 <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>
5026 <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>
5029 <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>
5032 <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>
5035 <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>
5041 BUG 1219 URL next to image (broken)
5043 http://example.com[[Image:foobar.jpg]]
5045 <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>
5050 Bug 1186 news: in the middle of text
5052 http://en.wikinews.org/wiki/Wikinews:Workplace
5054 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
5060 Namespaced link must have a title
5069 Namespaced link must have a title (bad fragment version)
5071 [[Project:#fragment]]
5073 <p>[[Project:#fragment]]
5079 div with no attributes
5081 <div>HTML rocks</div>
5083 <div>HTML rocks</div>
5088 div with double-quoted attribute
5090 <div id="rock">HTML rocks</div>
5092 <div id="rock">HTML rocks</div>
5097 div with single-quoted attribute
5099 <div id='rock'>HTML rocks</div>
5101 <div id="rock">HTML rocks</div>
5106 div with unquoted attribute
5108 <div id=rock>HTML rocks</div>
5110 <div id="rock">HTML rocks</div>
5115 div with illegal double attributes
5117 <div id="a" id="b">HTML rocks</div>
5119 <div id="b">HTML rocks</div>
5124 HTML multiple attributes correction
5126 <p class="error" class="awesome">Awesome!</p>
5128 <p class="awesome">Awesome!</p>
5133 Table multiple attributes correction
5136 !+ class="error" class="awesome"| status
5141 <th class="awesome"> status
5149 <DIV ID="x">HTML ROCKS</DIV>
5151 <div id="x">HTML ROCKS</div>
5157 text with amp in the middle of nowhere
5161 <p>Remember AT&T?
5166 text with character entity: eacute
5168 I always thought é was a cute letter.
5170 <p>I always thought é was a cute letter.
5175 text with undefined character entity: xacute
5177 I always thought &xacute; was a cute letter.
5179 <p>I always thought &xacute; was a cute letter.
5191 [[Media:Foobar.jpg]]
5193 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
5198 Media link with text
5200 [[Media:Foobar.jpg|A neat file to look at]]
5202 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
5206 # FIXME: this is still bad HTML tag nesting
5208 Media link with nasty text
5209 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
5211 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
5213 <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>
5218 Media link to nonexistent file (bug 1702)
5220 [[Media:No such.jpg]]
5222 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
5227 Image link to nonexistent file (bug 1850 - good)
5229 [[Image:No such.jpg]]
5231 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
5236 :Image link to nonexistent file (bug 1850 - bad)
5238 [[:Image:No such.jpg]]
5240 <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>
5247 Character reference normalization in link text (bug 1938)
5249 [[Main Page|this&that]]
5251 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
5258 Test for unicode normalization
5260 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
5264 (bug 19451) Links should refer to the normalized form.
5272 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5273 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5274 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5275 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5276 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
5281 Empty attribute crash test (bug 2067)
5283 <font color="">foo</font>
5285 <p><font color="">foo</font>
5290 Empty attribute crash test single-quotes (bug 2067)
5292 <font color=''>foo</font>
5294 <p><font color="">foo</font>
5299 Attribute test: equals, then nothing
5301 <font color=>foo</font>
5308 Attribute test: unquoted value
5310 <font color=x>foo</font>
5312 <p><font color="x">foo</font>
5317 Attribute test: unquoted but illegal value (hash)
5319 <font color=#x>foo</font>
5321 <p><font color="#x">foo</font>
5326 Attribute test: no value
5328 <font color>foo</font>
5330 <p><font color="color">foo</font>
5335 Bug 2095: link with three closing brackets
5339 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
5344 Bug 2095: link with pipe and three closing brackets
5348 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
5353 Bug 2095: link with pipe and three closing brackets, version 2
5355 [[Main Page|[http://example.com/]]]
5357 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
5367 Template:Dangerous attribute
5369 " onmouseover="alert(document.cookie)
5373 Template:Dangerous style attribute
5375 border-size: expression(alert(document.cookie))
5381 <div style="float: right; {{{1}}}">Magic div</div>
5385 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
5387 <div title="{{test}}"></div>
5389 <div title="This is a test template"></div>
5394 Bug 2304: HTML attribute safety (dangerous template; 2309)
5396 <div title="{{dangerous attribute}}"></div>
5398 <div title=""></div>
5403 Bug 2304: HTML attribute safety (dangerous style template; 2309)
5405 <div style="{{dangerous style attribute}}"></div>
5407 <div style="/* insecure input */"></div>
5412 Bug 2304: HTML attribute safety (safe parameter; 2309)
5414 {{div style|width: 200px}}
5416 <div style="float: right; width: 200px">Magic div</div>
5421 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
5423 {{div style|width: expression(alert(document.cookie))}}
5425 <div style="/* insecure input */">Magic div</div>
5430 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
5432 {{div style|"><script>alert(document.cookie)</script>}}
5434 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5439 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
5441 {{div style|" ><script>alert(document.cookie)</script>}}
5443 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
5448 Bug 2304: HTML attribute safety (link)
5450 <div title="[[Main Page]]"></div>
5452 <div title="[[Main Page]]"></div>
5457 Bug 2304: HTML attribute safety (italics)
5459 <div title="''foobar''"></div>
5461 <div title="''foobar''"></div>
5466 Bug 2304: HTML attribute safety (bold)
5468 <div title="'''foobar'''"></div>
5470 <div title="'''foobar'''"></div>
5476 Bug 2304: HTML attribute safety (ISBN)
5478 <div title="ISBN 1234567890"></div>
5480 <div title="ISBN 1234567890"></div>
5485 Bug 2304: HTML attribute safety (RFC)
5487 <div title="RFC 1234"></div>
5489 <div title="RFC 1234"></div>
5494 Bug 2304: HTML attribute safety (PMID)
5496 <div title="PMID 1234567890"></div>
5498 <div title="PMID 1234567890"></div>
5503 Bug 2304: HTML attribute safety (web link)
5505 <div title="http://example.com/"></div>
5507 <div title="http://example.com/"></div>
5512 Bug 2304: HTML attribute safety (named web link)
5514 <div title="[http://example.com/ link]"></div>
5516 <div title="[http://example.com/ link]"></div>
5521 Bug 3244: HTML attribute safety (extension; safe)
5523 <div style="<nowiki>background:blue</nowiki>"></div>
5525 <div style="background:blue"></div>
5530 Bug 3244: HTML attribute safety (extension; unsafe)
5532 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
5534 <div style="/* insecure input */"></div>
5538 # More MSIE fun discovered by Tom Gilder
5541 MSIE CSS safety test: spurious slash
5543 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
5545 <div style="/* insecure input */">evil</div>
5550 MSIE CSS safety test: hex code
5552 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
5554 <div style="/* insecure input */">evil</div>
5559 MSIE CSS safety test: comment in url
5561 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
5563 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
5568 MSIE CSS safety test: comment in expression
5570 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
5572 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5578 Table attribute legitimate extension
5581 !+ style="<nowiki>color:blue</nowiki>"| status
5586 <th style="color:blue"> status
5592 Table attribute safety
5595 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5600 <th style="/* insecure input */"> status
5606 CSS line continuation 1
5608 <div style="background-image: u\ rl(test.jpg);"></div>
5610 <div style="/* insecure input */"></div>
5615 CSS line continuation 2
5617 <div style="background-image: u\ rl(test.jpg); "></div>
5619 <div style="/* insecure input */"></div>
5630 Expansion of multi-line templates in attribute values (bug 6255)
5632 <div style="background: {{identity|#00FF00}}">-</div>
5634 <div style="background: #00FF00">-</div>
5640 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5642 <div style="background:
5645 <div style="background: #00FF00">-</div>
5650 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5652 <div style="background: #00FF00">-</div>
5654 <div style="background: #00FF00">-</div>
5659 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5662 Parser hook: empty input
5675 Parser hook: empty input using terminated empty elements
5688 Parser hook: empty input using terminated empty elements (space before)
5701 Parser hook: basic input
5715 Parser hook: case insensitive
5729 Parser hook: case insensitive, redux
5742 Parser hook: nested tags
5746 <tag><tag></tag></tag>
5757 Parser hook: basic arguments
5759 <tag width=200 height = "100" depth = '50' square></tag>
5778 Parser hook: argument containing a forward slash (bug 5344)
5780 <tag filename='/tmp/bla'></tag>
5786 string(8) "/tmp/bla"
5793 Parser hook: empty input using terminated empty elements (bug 2374)
5807 # </tag> should be output literally since there is no matching tag that begins it
5809 Parser hook: basic arguments using terminated empty elements (bug 2374)
5811 <tag width=200 height = "100" depth = '50' square/>
5834 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5838 Parser hook: static parser hook not inside a comment
5840 <statictag>hello, world</statictag>
5841 <statictag action=flush/>
5849 Parser hook: static parser hook inside a comment
5851 <!-- <statictag>hello, world</statictag> -->
5852 <statictag action=flush/>
5858 # Nested template calls; this case was broken by Parser.php rev 1.506,
5862 Template:One-parameter
5864 (My parameter is: {{{1}}})
5868 Template:Map-one-parameter
5874 Nested template calls
5876 {{Map-one-parameter|One-parameter|param}}
5878 <p>(My parameter is: param)
5887 Sanitizer: Closing of open tags
5889 <s></s><table></table>
5891 <s></s><table></table>
5896 Sanitizer: Closing of open but not closed tags
5905 Sanitizer: Closing of closed but not open tags
5914 Sanitizer: Closing of closed but not open table tags
5916 Table not started</td></tr></table>
5918 <p>Table not started</td></tr></table>
5923 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5925 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5927 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5932 Sanitizer: Validating the contents of the id attribute (bug 4515)
5938 Something, but definitely not <br id="9" />...
5942 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5946 <br id="foo" /><br id="foo" />
5948 Something need to be done. foo-2 ?
5952 Language converter: output gets cut off unexpectedly (bug 5757)
5956 this bit is safe: }-
5958 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5960 then we get cut off here: }-
5962 all additional text is vanished
5964 <p>this bit is safe: }-
5965 </p><p>but if we add a conversion instance: xxx
5966 </p><p>then we get cut off here: }-
5967 </p><p>all additional text is vanished
5972 Self closed html pairs (bug 5487)
5975 <center><font id="bug" />Centered text</center>
5976 <div><font id="bug2" />In div text</div>
5978 <center><font id="bug" />Centered text</center>
5979 <div><font id="bug2" />In div text</div>
5988 Punctuation: nbsp before exclamation
5992 <p>C'est grave !
5997 Punctuation: CSS !important (bug 11874)
5999 <div style="width:50% !important">important</div>
6001 <div style="width:50% !important">important</div>
6006 Punctuation: CSS ! important (bug 11874; with space after)
6008 <div style="width:50% ! important">important</div>
6010 <div style="width:50% ! important">important</div>
6016 HTML bullet list, closed tags (bug 5497)
6031 HTML bullet list, unclosed tags (bug 5497)
6048 HTML ordered list, closed tags (bug 5497)
6063 HTML ordered list, unclosed tags (bug 5497)
6080 HTML nested bullet list, closed tags (bug 5497)
6105 HTML nested bullet list, open tags (bug 5497)
6130 HTML nested ordered list, closed tags (bug 5497)
6155 HTML nested ordered list, open tags (bug 5497)
6180 HTML ordered list item with parameters oddity
6182 <ol><li id="fragment">One</li></ol>
6184 <ol><li id="fragment">One</li></ol>
6189 bug 5918: autonumbering
6191 [http://first/] [http://second] [ftp://ftp]
6195 [mailto:enclosed@mail.tld With target]
6197 [mailto:enclosed@mail.tld]
6199 mailto:inline@mail.tld
6201 <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>
6202 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
6203 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
6204 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
6205 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
6211 # Security and HTML correctness
6212 # From Nick Jenkins' fuzz testing
6216 Fuzz testing: Parser13
6231 Fuzz testing: Parser14
6236 <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>
6237 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6239 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
6246 Fuzz testing: Parser14-table
6251 <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>
6252 <table style="__TOC__">
6258 # Known to produce bogus xml (extra </td>)
6260 Fuzz testing: Parser16
6280 Fuzz testing: Parser21
6283 ! irc://{{ftp://a" onmouseover="alert('hello world');"
6288 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
6298 Fuzz testing: Parser22
6300 http://===r:::https://b
6304 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
6312 # Known to produce bad XML for now
6314 Fuzz testing: Parser24
6321 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
6322 <br style="onmouseover='alert(document.cookie);' " />
6324 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6329 <u class="|">}}}} >
6330 <br style="onmouseover='alert(document.cookie);'" />
6332 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
6341 # Note: the current result listed for this is not what the original one was,
6342 # but the original bug was JavaScript injection, which is fixed in any case.
6343 # It's not clear that the original result listed was any more correct than the
6344 # current one. Original result:
6347 # <li class="||">
6348 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6350 Fuzz testing: Parser25 (bug 6055)
6356 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
6358 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
6363 Fuzz testing: URL adjacent extension (with space, clean)
6366 http://example.com <nowiki>junk</nowiki>
6368 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
6373 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
6376 http://example.com<nowiki>junk</nowiki>
6378 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
6383 Fuzz testing: URL adjacent extension (no space, dirty; pre)
6386 http://example.com<pre>junk</pre>
6388 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
6393 Fuzz testing: image with bogus manual thumbnail
6395 [[Image:foobar.jpg|thumbnail= ]]
6397 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
6402 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
6404 <pre dir=" "></pre>
6406 <pre dir=" "></pre>
6411 Parsing optional HTML elements (Bug 6171)
6416 <td> Some tabular data</td>
6417 <td> More tabular data ...
6418 <td> And yet som tabular data</td>
6424 <td> Some tabular data</td>
6425 <td> More tabular data ...
6426 </td><td> And yet som tabular data</td>
6433 Correct handling of <td>, <tr> (Bug 6171)
6438 <td> Some tabular data</td>
6439 <td> More tabular data ...</td>
6440 <td> And yet som tabular data</td>
6446 <td> Some tabular data</td>
6447 <td> More tabular data ...</td>
6448 <td> And yet som tabular data</td>
6456 Parsing crashing regression (fr:JavaScript)
6460 <p></body></x>
6465 Inline wiki vs wiki block nesting
6471 <p><b>Bold paragraph</b>
6472 </p><p>New wiki paragraph
6477 Inline HTML vs wiki block nesting
6485 <p><b>Bold paragraph</b>
6486 </p><p>New wiki paragraph
6490 # Original result was this:
6491 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6493 # While that might be marginally more intuitive, maybe, the six-apostrophe
6494 # construct is clearly pathological and the result stated here (which is what
6495 # the parser actually does) is about as reasonable as anything.
6497 Mixing markup for italics and bold
6500 '''bold''''''bold''bolditalics'''''
6502 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
6510 Article for special page transclusion test
6514 Special page transclusion
6517 {{Special:Prefixindex/Xyzzyx}}
6519 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6524 Special page transclusion twice (bug 5021)
6527 {{Special:Prefixindex/Xyzzyx}}
6528 {{Special:Prefixindex/Xyzzyx}}
6530 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6531 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6536 Transclusion of default MediaWiki message
6538 {{MediaWiki:Mainpage}}
6545 Transclusion of nonexistent MediaWiki message
6547 {{MediaWiki:Mainpagexxx}}
6549 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6554 Transclusion of MediaWiki message with underscore
6556 {{MediaWiki:history_short}}
6563 Transclusion of MediaWiki message with space
6565 {{MediaWiki:history short}}
6572 Invalid header with following text
6582 Section extraction test (section 0)
6602 Section extraction test (section 1)
6624 Section extraction test (section 2)
6645 Section extraction test (section 3)
6665 Section extraction test (section 4)
6689 Section extraction test (section 5)
6709 Section extraction test (section 6)
6730 Section extraction test (section 7)
6750 Section extraction test (section 8)
6770 Section extraction test (section 9)
6791 Section extraction test (section 10)
6811 Section extraction test (nonexistent section 11)
6830 Section extraction test with bogus heading (section 1)
6835 ==bogus== not a legal section
6839 ==bogus== not a legal section
6843 Section extraction test with bogus heading (section 2)
6848 ==bogus== not a legal section
6855 Section extraction test with comment after heading (section 1)
6867 Section extraction test with comment after heading (section 2)
6879 Section extraction test with bogus <nowiki> heading (section 1)
6884 ==bogus== <nowiki>not a legal section</nowiki>
6888 ==bogus== <nowiki>not a legal section</nowiki>
6892 Section extraction test with bogus <nowiki> heading (section 2)
6897 ==bogus== <nowiki>not a legal section</nowiki>
6904 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6905 # instead of respecting commented sections
6907 Section extraction prefixed by comment (section 1)
6918 Section extraction prefixed by comment (section 2)
6929 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6930 # instead of respecting HTML-style headings
6932 Section extraction, mixed wiki and html (section 1)
6948 Section extraction, mixed wiki and html (section 2)
6964 # Formerly testing for bug 3342
6966 Section extraction, heading surrounded by <noinclude>
6970 <noinclude>==unmarked==</noinclude>
6976 # Test behaviour of bug 19910
6978 Sectiion with all-equals
6983 The line above must have a trailing space
6986 But just in case it doesn't...
6990 But just in case it doesn't...
6994 Section replacement test (section 0)
7025 Section replacement test (section 1)
7054 Section replacement test (section 2)
7084 Section replacement test (section 3)
7115 Section replacement test (section 4)
7142 Section replacement test (section 5)
7173 Section replacement test (section 6)
7203 Section replacement test (section 7)
7234 Section replacement test (section 8)
7265 Section replacement test (section 9)
7294 Section replacement test (section 10)
7324 Section replacement test with initial whitespace (bug 13728)
7328 Preformatted initial line
7332 Preformatted initial line
7339 Section extraction, heading followed by pre with 20 spaces (bug 6398)
7351 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
7364 Section extraction, <pre> around bogus header (bug 10309)
7381 Section replacement, <pre> around bogus header (bug 10309)
7383 noxml replace=2,"xxx"
7404 Handling of 
 in URLs
7408 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
7415 5 quotes, code coverage +1 line
7422 Special:Search page linking.
7426 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
7441 * {{SUBJECTPAGENAME}}
7442 * {{SUBJECTPAGENAMEE}}
7449 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
7451 <ul><li> Parser test
7452 </li><li> Parser test
7453 </li><li> Parser test
7454 </li><li> Parser_test
7455 </li><li> Parser test
7456 </li><li> Parser_test
7457 </li><li> Talk:Parser test
7458 </li><li> Talk:Parser_test
7459 </li><li> Parser test
7460 </li><li> Parser_test
7467 </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>
7471 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
7481 image4 |300px| centre
7482 image5.svg| http://///////
7487 <ul class="gallery">
7488 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7489 <div style="height: 150px;">Image1.png</div>
7490 <div class="gallerytext">
7493 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7494 <div style="height: 150px;">Image2.gif</div>
7495 <div class="gallerytext">
7500 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7501 <div style="height: 150px;">Image3</div>
7502 <div class="gallerytext">
7505 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7506 <div style="height: 150px;">Image4</div>
7507 <div class="gallerytext">
7512 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7513 <div style="height: 150px;">Image5.svg</div>
7514 <div class="gallerytext">
7515 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
7519 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7520 <div style="height: 150px;">* image6</div>
7521 <div class="gallerytext">
7529 Gallery (with options)
7531 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
7532 File:Nonexistant.jpg|caption
7533 File:Nonexistant.jpg
7534 image:foobar.jpg|some '''caption''' [[Main Page]]
7536 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
7539 <ul class="gallery" style="max-width: 226px;_width: 226px;">
7540 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
7541 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7542 <div style="height: 70px;">Nonexistant.jpg</div>
7543 <div class="gallerytext">
7548 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7549 <div style="height: 70px;">Nonexistant.jpg</div>
7550 <div class="gallerytext">
7553 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7554 <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>
7555 <div class="gallerytext">
7556 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7560 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7561 <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>
7562 <div class="gallerytext">
7565 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7566 <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>
7567 <div class="gallerytext">
7577 Gallery with wikitext inside caption
7580 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
7581 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
7584 <ul class="gallery">
7585 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7586 <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>
7587 <div class="gallerytext">
7588 <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>
7592 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7593 <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>
7594 <div class="gallerytext">
7595 <p>This is a test template
7604 gallery (with showfilename option)
7606 <gallery showfilename>
7607 File:Nonexistant.jpg|caption
7608 File:Nonexistant.jpg
7609 image:foobar.jpg|some '''caption''' [[Main Page]]
7613 <ul class="gallery">
7614 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7615 <div style="height: 150px;">Nonexistant.jpg</div>
7616 <div class="gallerytext">
7617 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7622 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7623 <div style="height: 150px;">Nonexistant.jpg</div>
7624 <div class="gallerytext">
7625 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7629 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7630 <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>
7631 <div class="gallerytext">
7632 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7633 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7637 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7638 <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>
7639 <div class="gallerytext">
7640 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7649 Gallery (with namespace-less filenames)
7652 File:Nonexistant.jpg
7658 <ul class="gallery">
7659 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7660 <div style="height: 150px;">Nonexistant.jpg</div>
7661 <div class="gallerytext">
7664 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7665 <div style="height: 150px;">Nonexistant.jpg</div>
7666 <div class="gallerytext">
7669 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7670 <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>
7671 <div class="gallerytext">
7674 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7675 <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>
7676 <div class="gallerytext">
7684 HTML Hex character encoding (spells the word "JavaScript")
7686 JavaScript
7688 <p>JavaScript
7693 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7697 <p>&#xsee;&#XSEE;
7702 HTML Hex character encoding mixed case
7711 __FORCETOC__ override
7723 ISBN 978-0-1234-56 789
7725 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7730 ISBN followed by 5 spaces
7741 ISBN ISBN 1234567890
7743 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7748 Bug 22905: <abbr> followed by ISBN followed by </a>
7750 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7752 <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>
7761 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
7766 Double RFC with a wiki link
7770 <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>
7779 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
7784 Centre-aligned image
7786 [[Image:foobar.jpg|centre]]
7788 <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>
7795 [[Image:foobar.jpg|none]]
7797 <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>
7802 Width + Height sized image (using px) (height is ignored)
7804 [[Image:foobar.jpg|640x480px]]
7806 <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>
7811 Width-sized image (using px, no following whitespace)
7813 [[Image:foobar.jpg|640px]]
7815 <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>
7820 Width-sized image (using px, with following whitespace - test regression from r39467)
7822 [[Image:foobar.jpg|640px ]]
7824 <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>
7829 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7831 [[Image:foobar.jpg| 640px]]
7833 <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>
7838 Another italics / bold test
7846 # Note the results may be incorrect, as parserTest output included this:
7847 # XML error: Mismatched tag at byte 6120:
7848 # ...<dd> </dt></dl> </dd...
7856 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7867 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7869 Images with the "|" character in the comment
7871 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7873 <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>
7878 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7880 <html><script>alert(1);</script></html>
7882 <p><html><script>alert(1);</script></html>
7887 HTML with raw HTML ($wgRawHtml==true)
7891 <html><script>alert(1);</script></html>
7893 <p><script>alert(1);</script>
7898 Parents of subpages, one level up
7900 subpage title=[[Subpage test/L1/L2/L3]]
7904 <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>
7910 Parents of subpages, one level up, not named
7912 subpage title=[[Subpage test/L1/L2/L3]]
7916 <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>
7923 Parents of subpages, two levels up
7925 subpage title=[[Subpage test/L1/L2/L3]]
7931 <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
7932 </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>
7937 Parents of subpages, two levels up, without trailing slash or name.
7939 subpage title=[[Subpage test/L1/L2/L3]]
7948 Parents of subpages, two levels up, with lots of extra trailing slashes.
7950 subpage title=[[Subpage test/L1/L2/L3]]
7954 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7959 Definition list code coverage
7965 <dl><dt> title  </dt><dd> def
7966 </dd><dt> title </dt><dd> def
7967 </dd><dt>title</dt><dd> def
7973 Don't fall for the self-closing div
7975 <div>hello world</div/>
7977 <div>hello world</div>
7986 <p>[[:Template:Msg]]
7995 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7999 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
8001 Always escape literal '>' in output, not just after '<'
8015 <p>This is a test template
8016 This is a test template
8028 Inclusion of !userCanEdit() content
8032 <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>
8038 Out-of-order TOC heading levels
8047 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8049 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
8051 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
8052 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
8055 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
8057 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
8058 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
8063 <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>
8064 <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>
8065 <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>
8066 <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>
8067 <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>
8068 <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>
8074 ISBN with a dummy number
8084 ISBN with space-delimited number
8088 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
8094 ISBN with multiple spaces, no number
8113 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
8114 </p><p>ISBN 12345678901
8120 ISBN with trailing year (bug 8110)
8122 ISBN 1-234-56789-0 - 2006
8124 ISBN 1 234 56789 0 - 2006
8126 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
8127 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
8135 {{anchorencode:foo bar©#%n}}
8137 <p>foo_bar.C2.A9.23.25n
8142 anchorencode trims spaces
8144 {{anchorencode: __pretty__please__}}
8151 anchorencode deals with links
8153 {{anchorencode: [[hello|world]] [[hi]]}}
8160 anchorencode deals with templates
8162 {{anchorencode: {{Foo}} }}
8169 anchorencode encodes like the TOC generator: (bug 18431)
8171 === _ +:.3A%3A&&]] ===
8172 {{anchorencode: _ +:.3A%3A&&]] }}
8175 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
8176 <p>.2B:.3A.253A.26.26.5D.5D
8180 # Expected output in the following test is not necessarily expected (there
8181 # should probably be <p> tags inside the <blockquote> in the output) -- it's
8182 # only testing for well-formedness.
8184 Bug 6200: blockquotes and paragraph formatting
8204 Bug 8293: Use of center tag ruins paragraph formatting
8226 ### Language variants related tests
8229 Self-link in language variants
8231 title=[[Dunav]] language=sr
8233 Both [[Dunav]] and [[Дунав]] are names for this river.
8235 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
8241 Link to pages in language variants
8245 Main Page can be written as [[Маин Паге]]
8247 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
8253 Multiple links to pages in language variants
8257 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
8259 <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>.
8265 Simple template in language variants
8271 <p>This is a test template
8277 Template with explicit namespace in language variants
8283 <p>This is a test template
8289 Basic test for template parameter in language variants
8293 {{парамтест|param=foo}}
8295 <p>This is a test template with parameter foo
8301 Simple category in language variants
8305 [[Category:МедиаWики Усер'с Гуиде]]
8307 <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>
8312 Stripping -{}- tags (language variants)
8316 Latin proverb: -{Ne nuntium necare}-
8318 <p>Latin proverb: Ne nuntium necare
8324 Prevent conversion with -{}- tags (language variants)
8326 language=sr variant=sr-ec
8328 Latinski: -{Ne nuntium necare}-
8330 <p>Латински: Ne nuntium necare
8336 Prevent conversion of text with -{}- tags (language variants)
8338 language=sr variant=sr-ec
8340 Latinski: -{Ne nuntium necare}-
8342 <p>Латински: Ne nuntium necare
8348 Prevent conversion of links with -{}- tags (language variants)
8350 language=sr variant=sr-ec
8354 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8360 -{}- tags within headlines (within html for parserConvert())
8362 language=sr variant=sr-ec
8366 <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>
8372 Explicit definition of language variant alternatives
8374 language=zh variant=zh-tw
8376 -{zh:China;zh-tw:Taiwan}-, not China
8378 <p>Taiwan, not China
8384 Explicit session-wise language variant mapping (A flag and - flag)
8386 language=zh variant=zh-tw
8388 Taiwan is not China.
8389 But -{A|zh:China;zh-tw:Taiwan}- is China,
8390 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
8391 and -{China}- is China.
8393 <p>Taiwan is not China.
8394 But Taiwan is Taiwan,
8395 (This should be stripped!)
8401 Explicit session-wise language variant mapping (H flag for hide)
8403 language=zh variant=zh-tw
8405 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
8408 <p>(This should be stripped!)
8414 Adding explicit conversion rule for title (T flag)
8416 language=zh variant=zh-tw showtitle
8418 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8421 <p>Should be stripped!
8426 Testing that changing the language variant here in the tests actually works
8428 language=zh variant=zh showtitle
8430 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8433 <p>Should be stripped!
8438 Bug 24072: more test on conversion rule for title
8440 language=zh variant=zh-tw showtitle
8442 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
8443 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
8446 <p>This should be stripped!
8447 This won't take interferes with the title rule.
8452 Raw output of variant escape tags (R flag)
8454 language=zh variant=zh-tw
8456 Raw: -{R|zh:China;zh-tw:Taiwan}-
8458 <p>Raw: zh:China;zh-tw:Taiwan
8463 Nested using of manual convert syntax
8465 language=zh variant=zh-hk
8467 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
8469 <p>Nested: Hello Hong Kong!
8474 Do not convert roman numbers to language variants
8476 language=sr variant=sr-ec
8480 <p>Фридрих IV је цар.
8485 Unclosed language converter markup "-{"
8496 Don't convert raw rule "-{R|=>}-" to "=>"
8513 Bug 529: Uncovered bullet
8524 Bug 529: Uncovered table already at line-start
8547 Bug 529: Uncovered bullet in parser function result
8549 * Foo {{lc:{{bullet}} }}
8558 Bug 5678: Double-parsed template argument
8560 {{lc:{{{1}}}|hello}}
8567 Bug 5678: Double-parsed template invocation
8569 {{lc:{{paramtest {{!}} param = hello }} }}
8571 <p>{{paramtest | param = hello }}
8576 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8602 Morwen/13: Unclosed link followed by heading
8609 <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>
8614 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8621 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8626 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8633 <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>
8648 Paragraphs inside divs (no extra line breaks)
8660 Paragraphs inside divs (extra line break on open)
8675 Paragraphs inside divs (extra line break on close)
8690 Paragraphs inside divs (extra line break on open and close)
8707 Nesting tags, paragraphs on lines which begin with <div>
8711 <div></div><strong>A
8720 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8722 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8726 <blockquote>Line one
8728 Line two</blockquote>
8730 <blockquote>Line one
8731 Line two</blockquote>
8736 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8743 Line two</blockquote>
8748 Line two</blockquote>
8753 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8757 <blockquote>Line one
8762 <blockquote>Line one
8770 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8789 Paragraphs inside blockquotes/divs (no extra line breaks)
8791 <blockquote><div>Line one
8793 Line two</div></blockquote>
8795 <blockquote><div>Line one
8796 Line two</div></blockquote>
8801 Paragraphs inside blockquotes/divs (extra line break on open)
8806 Line two</div></blockquote>
8811 Line two</div></blockquote>
8816 Paragraphs inside blockquotes/divs (extra line break on close)
8818 <blockquote><div>Line one
8823 <blockquote><div>Line one
8831 Paragraphs inside blockquotes/divs (extra line break on open and close)
8848 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8850 wgLinkHolderBatchSize=0
8856 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
8857 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
8858 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
8863 Free external link invading image caption
8865 [[Image:Foobar.jpg|thumb|http://x|hello]]
8867 <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>
8872 Bug 15196: localised external link numbers
8876 [http://en.wikipedia.org/]
8878 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8883 Multibyte character in padleft
8885 {{padleft:-Hello|7|Æ}}
8892 Multibyte character in padright
8894 {{padright:Hello-|7|Æ}}
8907 <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>
8912 formatdate parser function
8914 {{#formatdate:2009-03-24}}
8916 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8921 formatdate parser function, with default format
8923 {{#formatdate:2009-03-24|mdy}}
8925 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8930 Linked date with autoformatting disabled
8932 wgUseDynamicDates=false
8936 <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>
8941 Spacing of numbers in formatted dates
8943 {{#formatdate:January 15}}
8945 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8950 Spacing of numbers in formatted dates (linked)
8952 wgUseDynamicDates=true
8956 <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>
8969 Edit comment with link
8973 I like the [[Main Page]] a lot
8975 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
8979 Edit comment with link and link text
8983 I like the [[Main Page|best pages]] a lot
8985 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8989 Edit comment with link and link text with suffix
8993 I like the [[Main Page|best page]]s a lot
8995 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8999 Edit comment with section link (non-local, eg in history list)
9001 comment title=[[Main Page]]
9003 /* External links */ removed bogus entries
9005 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
9009 Edit comment with section link and text before it (non-local, eg in history list)
9011 comment title=[[Main Page]]
9013 pre-comment text /* External links */ removed bogus entries
9015 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>
9019 Edit comment with section link (local, eg in diff view)
9021 comment local title=[[Main Page]]
9023 /* External links */ removed bogus entries
9025 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
9029 Edit comment with subpage link (bug 14080)
9033 title=[[Subpage test]]
9035 Poked at a [[/subpage]] here...
9037 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
9041 Edit comment with subpage link and link text (bug 14080)
9045 title=[[Subpage test]]
9047 Poked at a [[/subpage|neat little page]] here...
9049 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
9053 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
9056 title=[[Subpage test]]
9058 Poked at a [[/subpage]] here...
9060 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
9064 Edit comment with bare anchor link (local, as on diff)
9072 <a href="#section">#section</a>
9076 Edit comment with bare anchor link (non-local, as on history)
9083 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
9087 Anchor starting with underscore
9091 <p><a href="#_ref">One</a>
9096 Id starting with underscore
9098 <div id="_ref"></div>
9100 <div id="_ref"></div>
9105 Space normalisation on autocomment (bug 22784)
9110 /* __hello__world__ */
9112 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
9116 percent-encoding and + signs in comments (Bug 26410)
9120 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
9122 <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>
9126 Bad images - basic functionality
9135 Bad images - bug 16039: text after bad image disappears
9149 Verify that displaytitle works (bug #22501) no displaytitle
9153 wgAllowDisplayTitle=true
9154 wgRestrictDisplayTitle=false
9156 this is not the the title
9159 <p>this is not the the title
9164 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
9169 wgAllowDisplayTitle=true
9170 wgRestrictDisplayTitle=false
9172 this is not the the title
9173 {{DISPLAYTITLE:whatever}}
9176 <p>this is not the the title
9181 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
9186 wgAllowDisplayTitle=true
9187 wgRestrictDisplayTitle=true
9189 this is not the the title
9190 {{DISPLAYTITLE:whatever}}
9193 <p>this is not the the title
9198 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
9203 wgAllowDisplayTitle=true
9204 wgRestrictDisplayTitle=true
9206 this is not the the title
9207 {{DISPLAYTITLE:screen}}
9210 <p>this is not the the title
9215 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
9220 wgAllowDisplayTitle=false
9222 this is not the the title
9223 {{DISPLAYTITLE:screen}}
9226 <p>this is not the the title
9227 <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>
9232 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
9237 wgAllowDisplayTitle=false
9239 this is not the the title
9242 <p>this is not the the title
9247 preload: check <noinclude> and <includeonly>
9251 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
9257 preload: check <onlyinclude>
9261 Goodbye <onlyinclude>Hello world</onlyinclude>
9267 preload: can pass tags through if we want to
9271 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
9273 <includeonly>Hello world</includeonly>
9277 preload: check that it doesn't try to do tricks
9281 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9283 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
9287 Play a bit with r67090 and bug 3158
9291 <div style="width:50% !important"> </div>
9292 <div style="width:50% !important"> </div>
9293 <div style="width:50% !important"> </div>
9294 <div style="border : solid;"> </div>
9296 <div style="width:50% !important"> </div>
9297 <div style="width:50% !important"> </div>
9298 <div style="width:50% !important"> </div>
9299 <div style="border : solid;"> </div>
9304 HTML5 data attributes
9306 <span data-foo="bar">Baz</span>
9307 <p data-abc-def_hij="">Quuz</p>
9309 <p><span data-foo="bar">Baz</span>
9311 <p data-abc-def_hij="">Quuz</p>
9316 percent-encoding and + signs in internal links (Bug 26410)
9318 [[User:+%]] [[Page+title%]]
9319 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
9320 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
9321 [[%33%45]] [[%33%45+]]
9323 <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>
9324 <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>
9325 <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>
9326 <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>
9331 Special characters in embedded file links (bug 27679)
9333 [[File:Contains & ampersand.jpg]]
9334 [[File:Does not exist.jpg|Title with & ampersand]]
9336 <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>
9337 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
9343 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
9345 Text's been normalized?
9347 <p>Text's been normalized?
9352 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
9354 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
9356 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
9361 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
9363 [http://www.example.org/ ideograms]
9365 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
9370 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
9372 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
9374 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
9398 Bug 31098 Template which includes system messages which includes the template
9402 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
9403 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
9408 Deprecated presentational attributes are converted to css
9411 | valign=top align=left width=100 height=25% | Asdf
9413 <ul type="disc"></ul>
9417 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
9419 <ul style="list-style-type: disc;"></ul>
9424 Bug31490 Turkish: ucfirst 'blah'
9435 Bug31490 Turkish: ucfirst 'ix'
9446 Bug31490 Turkish: lcfirst 'BLAH'
9457 Bug31490 Turkish: ucfırst (with a dotless i)
9463 <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>
9468 Bug31490 ucfırst (with a dotless i) with English language
9474 <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>
9479 Bug 26375: TOC with italics
9484 == ''Lost'' episodes ==
9486 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9488 <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>
9491 <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>
9496 Bug 26375: TOC with bold
9501 == '''should be bold''' then normal text ==
9503 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9505 <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>
9508 <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>
9513 Bug 33845: Headings become cursive in TOC when they contain an image
9518 == Image [[Image:foobar.jpg]] ==
9520 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9522 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
9525 <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>
9530 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
9535 == <blockquote>Quote</blockquote> ==
9537 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9539 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
9542 <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>
9547 Unclosed tags in TOC
9553 <small>Hanc marginis exiguitas non caperet.</small>
9556 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9558 <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>
9561 <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>
9562 <p><small>Hanc marginis exiguitas non caperet.</small>
9568 Multiple tags in TOC
9571 == <i>Foo</i> <b>Bar</b> ==
9573 == <i>Foo</i> <blockquote>Bar</blockquote> ==
9575 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9577 <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>
9578 <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>
9581 <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>
9582 <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>
9587 Tags with parameters in TOC
9590 == <sup class="in-h2">Hello</sup> ==
9592 == <sup class="a > b">Evilbye</sup> ==
9594 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9596 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
9597 <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>
9600 <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>
9601 <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>
9608 == {{int:headline_sample}} ==
9612 Bug 32057: Title needed when expanding <h> nodes.
9618 <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>
9623 Strip marker in urlencode
9625 {{urlencode:x<nowiki/>y}}
9626 {{urlencode:x<nowiki/>y|wiki}}
9627 {{urlencode:x<nowiki/>y|path}}
9654 Strip marker in formatNum
9656 {{formatnum:1<nowiki/>2}}
9657 {{formatnum:1<nowiki/>2|R}}
9665 Strip marker in grammar
9669 {{grammar:elative|foo<nowiki/>bar}}
9676 Strip marker in padleft
9678 {{padleft:|2|x<nowiki/>y}}
9685 Strip marker in padright
9687 {{padright:|2|x<nowiki/>y}}
9694 Strip marker in anchorencode
9696 {{anchorencode:x<nowiki/>y}}
9703 nowiki inside link inside heading (bug 18295)
9705 ==[[foo|x<nowiki>y</nowiki>z]]==
9707 <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>
9712 new support for bdi element (bug 31817)
9714 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
9716 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
9721 Ignore pipe between table row attributes
9725 |- id=foo | style='color: red'
9733 <tr id="foo" style="color: red">
9740 Gallery override link with WikiLink (bug 34852)
9743 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
9746 <ul class="gallery">
9747 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9748 <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>
9749 <div class="gallerytext">
9759 Gallery override link with absolute external link (bug 34852)
9762 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
9765 <ul class="gallery">
9766 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9767 <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>
9768 <div class="gallerytext">
9778 Gallery override link with malicious javascript (bug 34852)
9781 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
9784 <ul class="gallery">
9785 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9786 <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>
9787 <div class="gallerytext">
9797 Language parser function
9806 Padleft and padright as substr
9808 {{padleft:|3|abcde}}
9809 {{padright:|3|abcde}}
9817 Definition Lists: No nesting: Multiple dd's
9831 Definition Lists: Indentation: Regular
9847 Definition Lists: Indentation: Missing 1st level
9861 Definition Lists: Indentation: Multi-level indent
9865 <dl><dd><dl><dd><dl><dd>i3
9872 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
9873 ## as an empty dt item. It also ignores all but the last ";" when followed
9874 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
9875 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
9878 ## Ex: ";;t2 ::d2" is transformed into:
9890 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
9891 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
9902 ## All Parsoid only definition list tests have this difference.
9905 Definition Lists: Nesting: Multi-level (Parsoid only)
9935 Definition Lists: Nesting: Test 2 (Parsoid only)
9955 Definition Lists: Nesting: Test 3 (Parsoid only)
9983 Definition Lists: Nesting: Test 4
9988 <dl><dd><dl><dd><dl><dt>t3
9998 Definition Lists: Mixed Lists: Test 1
10004 <dl><dd><dl><dt><ul><li> foo
10016 Definition Lists: Mixed Lists: Test 2
10021 <ul><li><dl><dd> d1
10030 Definition Lists: Mixed Lists: Test 3
10035 <ul><li><dl><dd><dl><dd><dl><dd> d1
10046 Definition Lists: Mixed Lists: Test 4
10051 <ul><li><dl><dt>d1 </dt><dd>d2
10052 </dd><dt>d3 </dt><dd>d4
10060 Definition Lists: Mixed Lists: Test 5
10075 Definition Lists: Mixed Lists: Test 6
10080 <ol><li><ul><li><dl><dd>d1
10081 <dl><dd><dl><dd> d3
10092 Definition Lists: Mixed Lists: Test 7
10097 <dl><dd><ul><li> d1
10106 Definition Lists: Mixed Lists: Test 8
10111 <dl><dd><ul><li> d1
10113 <dl><dd><ul><li> d2
10122 Definition Lists: Mixed Lists: Test 9
10126 <ul><li><dl><dt>foo </dt><dd>bar
10134 Definition Lists: Mixed Lists: Test 10
10138 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
10147 Definition Lists: Mixed Lists: Test 11
10152 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
10157 <dl><dt>boo </dt><dd>baz
10168 Definition Lists: Weird Ones: Test 1
10170 *#;*::;; foo : bar (who uses this?)
10172 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
10190 Try for 100% code coverage