1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
75 This is a simple paragraph.
77 <p>This is a simple paragraph.
97 * plain''italic''plain
98 * plain''italic''plain''italic''plain
99 * plain'''bold'''plain
100 * plain'''bold'''plain'''bold'''plain
101 * plain''italic''plain'''bold'''plain
102 * plain'''bold'''plain''italic''plain
103 * plain''italic'''bold-italic'''italic''plain
104 * plain'''bold''bold-italic''bold'''plain
105 * plain'''''bold-italic'''italic''plain
106 * plain'''''bold-italic''bold'''plain
107 * plain''italic'''bold-italic'''''plain
108 * plain'''bold''bold-italic'''''plain
109 * plain l'''italic''plain
110 * plain l''''bold''' plain
113 </li><li> plain<i>italic</i>plain
114 </li><li> plain<i>italic</i>plain<i>italic</i>plain
115 </li><li> plain<b>bold</b>plain
116 </li><li> plain<b>bold</b>plain<b>bold</b>plain
117 </li><li> plain<i>italic</i>plain<b>bold</b>plain
118 </li><li> plain<b>bold</b>plain<i>italic</i>plain
119 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
120 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
121 </li><li> plain<i><b>bold-italic</b>italic</i>plain
122 </li><li> plain<b><i>bold-italic</i>bold</b>plain
123 </li><li> plain<i>italic<b>bold-italic</b></i>plain
124 </li><li> plain<b>bold<i>bold-italic</i></b>plain
125 </li><li> plain l'<i>italic</i>plain
126 </li><li> plain l'<b>bold</b> plain
132 ### <nowiki> test cases
136 <nowiki> unordered list
138 <nowiki>* This is not an unordered list item.</nowiki>
140 <p>* This is not an unordered list item.
147 <nowiki>Lorem ipsum dolor
168 :There is not nowiki.
169 :There is <nowiki>nowiki</nowiki>.
171 #There is not nowiki.
172 #There is <nowiki>nowiki</nowiki>.
174 *There is not nowiki.
175 *There is <nowiki>nowiki</nowiki>.
177 <dl><dd>There is not nowiki.
178 </dd><dd>There is nowiki.
180 <ol><li>There is not nowiki.
181 </li><li>There is nowiki.
183 <ul><li>There is not nowiki.
184 </li><li>There is nowiki.
196 <!-- comment 1 --> asdf
232 asdf<!-- comment 1 -->jkl
242 <!-- foo --> b <!-- bar -->
256 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
262 Comment semantics and delimiters
264 <!-- --><!----><!-----><!------>
270 Comment semantics and delimiters, redux
272 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
273 -- foo -- funky huh? ... -->
279 Comment semantics and delimiters: directors cut
281 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
282 everything starting with < followed by !-- until the first -- and > we see,
283 that wouldn't be valid XML however, since in XML -- has to terminate a comment
291 Comment semantics: nesting
293 <!--<!-- no, we're not going to do anything fancy here -->-->
300 Comment semantics: unclosed comment at end
302 <!--This comment will run out to the end of the document
308 Comment in template title
317 Comment on its own line post-expand
329 ### Preformatted text
338 And a [[Main Page|link]]
344 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
349 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
366 Regression with preformatted in <center>
379 # Expected output in the following test is not really expected (there should be
380 # <pre> in the output) -- it's only testing for well-formedness.
382 Bug 6200: Preformatted in <blockquote>
395 <pre> with attributes (bug 3202)
397 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
399 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
404 <pre> with width attribute (bug 3202)
406 <pre width="8">Narrow screen goodies</pre>
408 <pre width="8">Narrow screen goodies</pre>
413 <pre> with forbidden attribute (bug 3202)
415 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
417 <pre width="8">Narrow screen goodies</pre>
422 <pre> with forbidden attribute values (bug 3202)
424 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
426 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
431 <nowiki> inside <pre> (bug 13238)
439 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
447 <pre><nowiki>Foo</nowiki></pre>
452 <nowiki> and <pre> preference (first one wins)
491 <dl><dt> name </dt><dd> Definition
497 Definition list for indentation only
501 <dl><dd> Indented text
507 Definition list with no space
511 <dl><dt>name</dt><dd>Definition
517 Definition list with URL link
519 ; http://example.com/ : definition
521 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
527 Definition list with bracketed URL link
529 ;[http://www.example.com/ Example]:Something about it
531 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
537 Definition list with wikilink containing colon
539 ; [[Help:FAQ]]: The least-read page on Wikipedia
541 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
546 # At Brion's and JeLuF's insistence... :)
548 Definition list with news link containing colon
550 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
552 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
558 Malformed definition list with colon
560 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
562 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
568 Definition lists: colon in external link text
570 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
572 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
578 Definition lists: colon in HTML attribute
580 ;<b style="display: inline">bold</b>
582 <dl><dt><b style="display: inline">bold</b>
589 Definition lists: self-closed tag
591 ;one<br/>two : two-line fun
593 <dl><dt>one<br />two </dt><dd> two-line fun
599 Bug 11748: Literal closing tags
605 <dd>test test test test test</dd>
607 <dd>test test test test test</dd>
612 <dd>test test test test test</dd>
614 <dd>test test test test test</dd>
619 Definition and unordered list using wiki syntax nested in unordered list using html tags.
628 <dl><dt> term </dt><dd> description
642 External links: non-bracketed
644 Non-bracketed: http://example.com
646 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
651 External links: numbered
653 Numbered: [http://example.com]
654 Numbered: [http://example.net]
655 Numbered: [http://example.com]
657 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
658 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
659 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
664 External links: specified text
666 Specified text: [http://example.com link]
668 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
673 External links: trail
675 Linktrails should not work for external links: [http://example.com link]s
677 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
682 External links: dollar sign in URL
684 http://example.com/1$2345
686 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
691 External links: dollar sign in URL (named)
693 [http://example.com/1$2345]
695 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
700 External links: open square bracket forbidden in URL (bug 4377)
702 http://example.com/1[2345
704 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
709 External links: open square bracket forbidden in URL (named) (bug 4377)
711 [http://example.com/1[2345]
713 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
718 External links: nowiki in URL link text (bug 6230)
720 [http://example.com/ <nowiki>''example site''</nowiki>]
722 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
727 External links: newline forbidden in text (bug 6230 regression check)
729 [http://example.com/ first
732 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
738 External links: protocol-relative URL in brackets
740 [//example.com/ Test]
742 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
747 External links: protocol-relative URL in brackets without text
751 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
756 External links: protocol-relative URL in free text is left alone
765 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
769 <p>foo//example.com/Foo
776 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
778 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
783 External image from https
785 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
787 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
792 Link to non-http image, no img tag
794 Link to non-http image, no img tag: ftp://example.com/test.jpg
796 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
801 External links: terminating separator
803 Terminating separator: http://example.com/thing,
805 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
810 External links: intervening separator
812 Intervening separator: http://example.com/1,2,3
814 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
819 External links: old bug with URL in query
821 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
823 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
828 External links: old URL-in-URL bug, mixed protocols
830 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
832 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
837 External links: URL in text
839 URL in text: [http://example.com http://example.com]
841 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
846 External links: Clickable images
848 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
850 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
855 External links: raw ampersand
857 Old & use: http://x&y
859 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
864 External links: encoded ampersand
866 Old & use: http://x&y
868 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
873 External links: encoded equals (bug 6102)
875 http://example.com/?foo=bar
877 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
882 External links: [raw ampersand]
884 Old & use: [http://x&y]
886 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
891 External links: [encoded ampersand]
893 Old & use: [http://x&y]
895 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
900 External links: [encoded equals] (bug 6102)
902 [http://example.com/?foo=bar]
904 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
909 External links: [IDN ignored character reference in hostname; strip it right off]
911 [http://e‌xample.com/]
913 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
918 External links: IDN ignored character reference in hostname; strip it right off
920 http://e‌xample.com/
922 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
927 External links: www.jpeg.org (bug 554)
931 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
936 External links: URL within URL (original bug 2)
938 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
940 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
945 BUG 361: URL inside bracketed URL
947 [http://www.example.com/foo http://www.example.com/bar]
949 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
954 BUG 361: URL within URL, not bracketed
956 http://www.example.com/foo?=http://www.example.com/bar
958 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
963 BUG 289: ">"-token in URL-tail
965 http://www.example.com/<hello>
967 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
972 BUG 289: literal ">"-token in URL-tail
974 http://www.example.com/<b>html</b>
976 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
981 BUG 289: ">"-token in bracketed URL
983 [http://www.example.com/<hello> stuff]
985 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
990 BUG 289: literal ">"-token in bracketed URL
992 [http://www.example.com/<b>html</b> stuff]
994 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
999 BUG 289: literal double quote at end of URL
1001 http://www.example.com/"hello"
1003 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1008 BUG 289: literal double quote in bracketed URL
1010 [http://www.example.com/"hello" stuff]
1012 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1017 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1019 [http://www.example.com test]
1021 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1026 External links: wiki links within external link (Bug 3695)
1028 [http://example.com [[wikilink]] embedded in ext link]
1030 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
1035 BUG 787: Links with one slash after the url protocol are invalid
1039 [http:/example.com title]
1041 <p>http:/example.com
1042 </p><p>[http:/example.com title]
1047 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1049 ''[http://example.com text'']
1050 [http://example.com '''text]'''
1051 ''Something [http://example.com in italic'']
1052 ''Something [http://example.com mixed''''', even bold]'''
1053 '''''Now [http://example.com both''''']
1055 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1056 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1057 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1058 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1059 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1065 Bug 4781: %26 in URL
1067 http://www.example.com/?title=AT%26T
1069 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1073 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
1074 # % is actually legal in HTML5. Any change in output would need testing though.
1076 Bug 4781, 5267: %25 in URL
1078 http://www.example.com/?title=100%25_Bran
1080 <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>
1085 Bug 4781, 5267: %28, %29 in URL
1087 http://www.example.com/?title=Ben-Hur_%281959_film%29
1089 <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>
1095 Bug 4781: %26 in autonumber URL
1097 [http://www.example.com/?title=AT%26T]
1099 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1104 Bug 4781, 5267: %26 in autonumber URL
1106 [http://www.example.com/?title=100%25_Bran]
1108 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1113 Bug 4781, 5267: %28, %29 in autonumber URL
1115 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1117 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1123 Bug 4781: %26 in bracketed URL
1125 [http://www.example.com/?title=AT%26T link]
1127 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1132 Bug 4781, 5267: %26 in bracketed URL
1134 [http://www.example.com/?title=100%25_Bran link]
1136 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1141 Bug 4781, 5267: %28, %29 in bracketed URL
1143 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1145 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1150 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1152 Some [http://example.com/ pretty ''italics'' and stuff]!
1154 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1159 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1161 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1163 <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>
1168 External link containing double-single-quotes with no space separating the url from text in italics
1170 [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]].]
1172 <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>
1177 URL-encoding in URL functions (single parameter)
1179 {{localurl:Some page|amp=&}}
1181 <p>/index.php?title=Some_page&amp=&
1186 URL-encoding in URL functions (multiple parameters)
1188 {{localurl:Some page|q=?&=&}}
1190 <p>/index.php?title=Some_page&q=?&amp=&
1197 http://example.com/index.php?foozoid%5B%5D=bar
1199 http://example.com/index.php?foozoid[]=bar
1201 <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>
1202 </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>
1207 IPv6 urls (bug 21261)
1211 http://[2404:130:0:1000::187:2]/index.php
1213 <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>
1224 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1226 Normal text. '''''Bold italic text.''''' Normal text.
1228 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1229 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1235 Unclosed and unmatched quotes
1237 '''''Bold italic text '''with bold deactivated''' in between.'''''
1239 '''''Bold italic text ''with italic deactivated'' in between.'''''
1243 ..spanning two paragraphs (should not work).'''
1245 '''Bold tag left open
1247 ''Italic tag left open
1251 <!-- Unmatching number of opening, closing tags: -->
1252 '''This year''''s election ''should'' beat '''last year''''s.
1254 ''Tom'''s car is bigger than ''Susan'''s.
1256 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1257 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1258 </p><p><b>Bold text..</b>
1259 </p><p>..spanning two paragraphs (should not work).
1260 </p><p><b>Bold tag left open</b>
1261 </p><p><i>Italic tag left open</i>
1263 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1264 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1271 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1274 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1275 # is the bare minimun required by the spec, see:
1276 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1278 A table with no data.
1284 # A table with nothing but a caption is invalid XHTML, we might want to render
1285 # this as <p>caption</p>
1287 A table with nothing but a caption
1295 </caption><tr><td></td></tr></table>
1321 Multiplication table
1323 {| border="1" cellpadding="2"
1324 |+Multiplication table
1326 ! × !! 1 !! 2 !! 3
1344 <table border="1" cellpadding="2">
1345 <caption>Multiplication table
1396 |rowspan=2| Cell 2, row 1 (and 2)
1407 <td rowspan="2"> Cell 2, row 1 (and 2)
1425 {| bgcolor=#ABCDEF border=2
1430 |the original table again
1438 <table bgcolor="#ABCDEF" border="2">
1446 <td>the original table again
1452 Invalid attributes in table cell (bug 1830)
1467 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1470 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1474 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
1475 <td>]" onmouseover="alert(document.cookie)">test
1484 Indented table markup mixed with indented pre content (proposed in bug 6200)
1489 Text that should be rendered preformatted
1497 <pre>Text that should be rendered preformatted
1510 Plain link, capitalized
1514 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1519 Plain link, uncapitalized
1523 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1530 [[Main Page|The Main Page]]
1532 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1541 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1546 Broken link with fragment
1548 [[Zigzagzogzagzig#zug]]
1550 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1555 Special page link with fragment
1557 [[Special:Version#anchor]]
1559 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1564 Nonexistent special page link with fragment
1566 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1568 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1575 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1577 <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>
1584 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1586 <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>!!!
1591 Link with 3 brackets
1600 Piped link with 3 brackets
1602 [[[main page|the main page]]]
1604 <p>[[[main page|the main page]]]
1609 Link with multiple pipes
1611 [[Main Page|The|Main|Page]]
1613 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1620 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1622 <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>
1627 Piped link to namespace
1629 [[Meta:Disclaimers|The disclaimers]]
1631 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1638 [[Usually caused by a typo (oops}]]
1640 <p>[[Usually caused by a typo (oops}]]
1645 Link containing % (not as a hex sequence)
1649 <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>
1654 Link containing % as a single hex sequence interpreted to char
1658 <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>
1663 Link containing % as a double hex sequence interpreted to hex sequence
1667 <p>[[7%2525 Solution]]
1672 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1673 Example for such a section: == < ==
1675 [[%23%3c]][[%23%3e]]
1677 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1682 Link containing "<#" and ">#" as a hex sequences
1684 [[%3c%23]][[%3e%23]]
1686 <p>[[%3c%23]][[%3e%23]]
1691 Link containing double-single-quotes '' (bug 4598)
1693 [[Lista d''e paise d''o munno]]
1695 <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>
1700 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1702 Some [[Link|pretty ''italics'' and stuff]]!
1704 <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>!
1709 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1711 ''Some [[Link|pretty ''italics'' and stuff]]!
1713 <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>
1718 Link with double quotes in title part (literal) and alternate part (interpreted)
1720 [[File:Denys Savchenko ''Pentecoste''.jpg]]
1724 [[''Pentecoste''|Pentecoste]]
1726 [[''Pentecoste''|''Pentecoste'']]
1728 <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>
1729 </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>
1730 </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>
1731 </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>
1738 [[http://www.example.com]]
1740 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
1745 Plain link to URL with link text
1747 [[http://www.example.com Link text]]
1749 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
1754 Plain link to protocol-relative URL
1756 [[//www.example.com]]
1758 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
1763 Plain link to protocol-relative URL with link text
1765 [[//www.example.com Link text]]
1767 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
1772 # I'm fairly sure the expected result here is wrong.
1773 # We want these to be URL links, not pseudo-pages with URLs for titles....
1774 # However the current output is also pretty screwy.
1777 # I'm changing it to match the current output--it arguably makes more
1778 # sense in the light of the test above. Old expected result was:
1779 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1781 # But I think this test is bordering on "garbage in, garbage out" anyway.
1786 Piped link to URL: [[http://www.example.com|an example URL]]
1788 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
1793 BUG 2: [[page|http://url/]] should link to page, not http://url/
1795 [[Main Page|http://url/]]
1797 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1802 BUG 337: Escaped self-links should be bold
1806 [[Bug462]] [[Bug462]]
1808 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1813 Self-link to section should not be bold
1817 [[Main Page#section]]
1819 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1830 Self-link to numeric title
1836 <p><strong class="selflink">0</strong>
1841 Link to numeric-equivalent title
1847 <p><a href="/wiki/00" title="00">00</a>
1852 <nowiki> inside a link
1854 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1856 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1861 Non-breaking spaces in title
1863 [[ Main Page ]]
1865 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
1870 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
1876 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
1881 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
1887 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
1892 Internal link with en linktrail: no apostrophes (bug 27473)
1898 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
1903 Internal link with ca linktrail with apostrophes (bug 27473)
1909 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
1914 Internal link with kaa linktrail with apostrophes (bug 27473)
1920 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
1925 ### Interwiki links (see maintenance/interwiki.sql)
1929 Inline interwiki link
1931 [[MeatBall:SoftSecurity]]
1933 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1938 Inline interwiki link with empty title (bug 2372)
1942 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
1947 Interwiki link encoding conversion (bug 1636)
1949 *[[Wikipedia:ro:Olteniţa]]
1950 *[[Wikipedia:ro:Olteniţa]]
1952 <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>
1953 </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>
1959 Interwiki link with fragment (bug 2130)
1961 [[MeatBall:SoftSecurity#foo]]
1963 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1978 Double interlanguage link
1989 Interlanguage link, with prefix links
2001 Double interlanguage link, with prefix links (bug 8897)
2028 Incorrecly removing closing slashes from correctly formed XHTML
2030 <br style="clear:both;" />
2032 <p><br style="clear:both;" />
2037 Failing to transform badly formed HTML into correct XHTML
2039 <br style="clear: left;">
2040 <br style="clear: right;">
2041 <br style="clear: both;">
2043 <p><br style="clear: left;" />
2044 <br style="clear: right;" />
2045 <br style="clear: both;" />
2050 Horizontal ruler (should it add that extra space?)
2064 ### Block-level elements
2087 <ol><li>Numbered list
2104 ***#Number on level 4
2106 **#Number on level 3
2107 **#Number on level 3
2112 <ol><li> with numbers
2114 <ul><li> and bullets
2116 <ol><li> and numbers
2118 </li><li>bullets again
2119 <ul><li>bullet level 2
2120 <ul><li>bullet level 3
2121 <ol><li>Number on level 4
2124 </li><li>bullet level 2
2125 <ol><li>Number on level 3
2126 </li><li>Number on level 3
2129 <ol><li>number level 2
2137 List items are not parsed correctly following a <pre> block (bug 785)
2143 <ul><li> <pre>foo</pre>
2144 </li><li> <pre>bar</pre>
2155 Magic Word: {{CURRENTDAY}}
2164 Magic Word: {{CURRENTDAY2}}
2173 Magic Word: {{CURRENTDAYNAME}}
2182 Magic Word: {{CURRENTDOW}}
2191 Magic Word: {{CURRENTMONTH}}
2200 Magic Word: {{CURRENTMONTHABBREV}}
2202 {{CURRENTMONTHABBREV}}
2209 Magic Word: {{CURRENTMONTHNAME}}
2211 {{CURRENTMONTHNAME}}
2218 Magic Word: {{CURRENTMONTHNAMEGEN}}
2220 {{CURRENTMONTHNAMEGEN}}
2227 Magic Word: {{CURRENTTIME}}
2236 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2245 Magic Word: {{CURRENTYEAR}}
2254 Magic Word: {{FULLPAGENAME}}
2256 title=[[User:Ævar Arnfjörð Bjarmason]]
2260 <p>User:Ævar Arnfjörð Bjarmason
2265 Magic Word: {{FULLPAGENAMEE}}
2267 title=[[User:Ævar Arnfjörð Bjarmason]]
2271 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2276 Magic Word: {{NAMESPACE}}
2278 title=[[User:Ævar Arnfjörð Bjarmason]]
2287 Magic Word: {{NAMESPACEE}}
2289 title=[[User:Ævar Arnfjörð Bjarmason]]
2298 Magic Word: {{NAMESPACENUMBER}}
2300 title=[[User:Ævar Arnfjörð Bjarmason]]
2309 Magic Word: {{NUMBEROFFILES}}
2318 Magic Word: {{PAGENAME}}
2320 title=[[User:Ævar Arnfjörð Bjarmason]]
2324 <p>Ævar Arnfjörð Bjarmason
2329 Magic Word: {{PAGENAME}} with metacharacters
2331 title=[['foo & bar = baz']]
2335 <p><i>'foo & bar = baz'</i>
2340 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2342 title=[[*RFC 1234 http://example.com/]]
2346 <p>*RFC 1234 http://example.com/
2351 Magic Word: {{PAGENAMEE}}
2353 title=[[User:Ævar Arnfjörð Bjarmason]]
2357 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2362 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2364 title=[[*RFC 1234 http://example.com/]]
2368 <p>*RFC_1234_http://example.com/
2373 Magic Word: {{REVISIONID}}
2382 Magic Word: {{SCRIPTPATH}}
2391 Magic Word: {{SERVER}}
2395 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2400 Magic Word: {{SERVERNAME}}
2409 Magic Word: {{SITENAME}}
2418 Namespace 1 {{ns:1}}
2427 Namespace 1 {{ns:01}}
2436 Namespace 0 {{ns:0}} (bug 4783)
2444 Namespace 0 {{ns:00}} (bug 4783)
2452 Namespace -1 {{ns:-1}}
2461 Namespace User {{ns:User}}
2470 Namespace User talk {{ns:User_talk}}
2479 Namespace User talk {{ns:uSeR tAlK}}
2488 Namespace File {{ns:File}}
2497 Namespace File {{ns:Image}}
2506 Namespace (lang=de) Benutzer {{ns:User}}
2517 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2523 <p>Benutzer Diskussion
2531 {{urlencode:hi world?!}}
2532 {{urlencode:hi world?!|WIKI}}
2533 {{urlencode:hi world?!|PATH}}
2534 {{urlencode:hi world?!|QUERY}}
2547 Magic links: internal link to RFC (bug 479)
2551 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2556 Magic links: RFC (bug 479)
2560 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
2565 Magic links: ISBN (bug 1937)
2569 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2574 Magic links: PMID incorrectly converts space to underscore
2578 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2587 Nonexistent template
2589 {{thistemplatedoesnotexist}}
2591 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2598 This is a test template
2606 <p>This is a test template
2611 Template with explicit namespace
2615 <p>This is a test template
2623 This is a test template with parameter {{{param}}}
2629 {{paramtest|param=foo}}
2631 <p>This is a test template with parameter foo
2636 Template:paramtestnum
2642 Template unnamed parameter
2644 {{paramtestnum|Main Page|the main page}}
2646 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2651 Template:templatesimple
2657 Template:templateredirect
2659 #redirect [[Template:templatesimple]]
2663 Template:templateasargtestnum
2669 Template:templateasargtest
2671 {{template{{{templ}}}}}
2675 Template:templateasargtest2
2681 Template with template name as unnamed argument
2683 {{templateasargtestnum|templatesimple}}
2690 Template with template name as argument
2692 {{templateasargtest|templ=simple}}
2699 Template with template name as argument (2)
2701 {{templateasargtest2|templ=templatesimple}}
2708 Template:templateasargtestdefault
2710 {{{{{templ|templatesimple}}}}}
2720 Template with default value
2722 {{templateasargtestdefault}}
2729 Template with default value (value set)
2731 {{templateasargtestdefault|templ=templa}}
2740 {{templateredirect}}
2747 Template with argument in separate line
2749 {{ templateasargtest |
2757 Template with complex template as argument
2760 param ={{ templateasargtest |
2763 <p>This is a test template with parameter (test)
2768 Template with thumb image (with link in description)
2771 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2773 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>
2778 Template:complextemplate
2780 {{{1}}} {{paramtest|
2781 param ={{{param}}}}}
2785 Template with complex arguments
2788 param ={{ templateasargtest |
2789 templ = simple }}|[[Template:complextemplate|link]]}}
2791 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2796 BUG 553: link with two variables in a piped link
2799 |[[{{{1}}}|{{{2}}}]]
2804 <td>[[{{{1}}}|{{{2}}}]]
2810 Magic variable as template parameter
2812 {{paramtest|param={{SITENAME}}}}
2814 <p>This is a test template with parameter MediaWiki
2821 [[{{{param}}}|link]]
2825 Template parameter as link source
2827 {{linktest|param=Main Page}}
2829 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2837 including another template, {{paramtest|param={{{arg}}}}}
2841 Template passing argument to another template
2843 {{paramtest2|arg='hmm'}}
2845 <p>including another template, This is a test template with parameter 'hmm'
2856 Template as link source
2860 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2878 Template infinite loop
2882 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
2887 Template from main namespace
2906 BUG 529: Template with table, not included at beginning of line
2925 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2945 BUG 41: Template parameters shown as broken links
2957 ''None'' of '''this''' should be
2959 but rather passed unmodified
2963 # hmm, fix this or just deprecate msgnw and document its behavior?
2969 {{msgnw:MSGNW test}}
2971 <p>''None'' of '''this''' should be
2973 but rather passed unmodified
2981 {{int:youhavenewmessages|lots of money|not!}}
2983 <p>You have lots of money (not!).
2990 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2994 <includeonly> and <noinclude> being included
3005 <onlyinclude>Foo</onlyinclude>bar
3009 <onlyinclude> being included
3021 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
3025 <onlyinclude> and <includeonly> being included
3034 <includeonly> and <noinclude> on a page
3036 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
3043 <onlyinclude> on a page
3045 <onlyinclude>Foo</onlyinclude>bar
3052 Template:Includeonly section
3055 ==Includeonly section==
3061 Bug 6563: Edit link generation for section shown by <includeonly>
3063 {{includeonly section}}
3065 <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>
3066 <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>
3070 # Uses same input as the contents of [[Template:Includeonly section]]
3072 Bug 6563: Section extraction for section shown by <includeonly>
3077 ==Includeonly section==
3085 Bug 6563: Edit link generation for section suppressed by <includeonly>
3088 ==Includeonly section==
3092 <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>
3097 Bug 6563: Section extraction for section suppressed by <includeonly>
3102 ==Includeonly section==
3110 ### Pre-save transform tests
3113 pre-save transform: subst:
3119 This is a test template
3123 pre-save transform: normal template
3133 pre-save transform: nonexistent template
3137 {{thistemplatedoesnotexist}}
3139 {{thistemplatedoesnotexist}}
3144 pre-save transform: subst magic variables
3153 # This is bug 89, which I fixed. -- wtm
3155 pre-save transform: subst: templates with parameters
3159 {{subst:paramtest|param="something else"}}
3161 This is a test template with parameter "something else"
3167 <nowiki>'''not wiki'''</nowiki>
3171 pre-save transform: nowiki in subst (bug 1188)
3175 {{subst:nowikitest}}
3177 <nowiki>'''not wiki'''</nowiki>
3182 Template:commenttest
3184 This template has <!-- a comment --> in it.
3188 pre-save transform: comment in subst (bug 1936)
3192 {{subst:commenttest}}
3194 This template has <!-- a comment --> in it.
3198 pre-save transform: unclosed tag
3202 <nowiki>'''not wiki'''
3204 <nowiki>'''not wiki'''
3208 pre-save transform: mixed tag case
3212 <NOwiki>'''not wiki'''</noWIKI>
3214 <NOwiki>'''not wiki'''</noWIKI>
3218 pre-save transform: unclosed comment in <nowiki>
3222 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3224 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3230 <span onmouseover="alert('crap')">Oh no</span>
3234 (confirming safety of fix for subst bug 1936)
3236 {{Template:dangerous}}
3238 <p><span>Oh no</span>
3243 pre-save transform: comment containing gallery (bug 5024)
3247 <!-- <gallery>data</gallery> -->
3249 <!-- <gallery>data</gallery> -->
3253 pre-save transform: comment containing extension
3257 <!-- <tag>data</tag> -->
3259 <!-- <tag>data</tag> -->
3263 pre-save transform: comment containing nowiki
3267 <!-- <nowiki>data</nowiki> -->
3269 <!-- <nowiki>data</nowiki> -->
3273 pre-save transform: <noinclude> in subst (bug 3298)
3283 pre-save transform: <onlyinclude> in subst (bug 3298)
3295 {{<includeonly>subst:</includeonly>Includes}}
3299 Template:SafeSubstTest
3301 {{<includeonly>safesubst:</includeonly>Includes}}
3305 bug 22297: safesubst: works during PST
3309 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3315 bug 22297: safesubst: works during normal parse
3324 subst: does not work during normal parse
3328 <p>{{subst:Includes}}
3333 pre-save transform: context links ("pipe trick")
3337 [[Article (context)|]]
3340 [[Bar:Article (context)|]]
3341 [[:Bar:Article (context)|]]
3343 [[|Article (context)]]
3347 [[Article (context)|Article]]
3348 [[Bar:Article|Article]]
3349 [[:Bar:Article|Article]]
3350 [[Bar:Article (context)|Article]]
3351 [[:Bar:Article (context)|Article]]
3353 [[Article (context)]]
3354 [[Bar:X (Y) Z|X (Y) Z]]
3355 [[:Bar:X (Y) Z|X (Y) Z]]
3359 pre-save transform: context links ("pipe trick") with interwiki prefix
3363 [[interwiki:Article|]]
3364 [[:interwiki:Article|]]
3365 [[interwiki:Bar:Article|]]
3366 [[:interwiki:Bar:Article|]]
3368 [[interwiki:Article|Article]]
3369 [[:interwiki:Article|Article]]
3370 [[interwiki:Bar:Article|Bar:Article]]
3371 [[:interwiki:Bar:Article|Bar:Article]]
3375 pre-save transform: context links ("pipe trick") with parens in title
3377 pst title=[[Somearticle (context)]]
3381 [[Article (context)|Article]]
3385 pre-save transform: context links ("pipe trick") with comma in title
3387 pst title=[[Someplace, Somewhere]]
3390 [[Otherplace, Elsewhere|]]
3391 [[Otherplace, Elsewhere, Anywhere|]]
3393 [[Otherplace, Somewhere|Otherplace]]
3394 [[Otherplace, Elsewhere|Otherplace]]
3395 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3399 pre-save transform: context links ("pipe trick") with parens and comma
3401 pst title=[[Someplace (IGNORED), Somewhere]]
3404 [[Otherplace (place), Elsewhere|]]
3406 [[Otherplace, Somewhere|Otherplace]]
3407 [[Otherplace (place), Elsewhere|Otherplace]]
3411 pre-save transform: context links ("pipe trick") with comma and parens
3413 pst title=[[Who, me? (context)]]
3416 [[Me, Myself, and I (1937 song)|]]
3418 [[Yes, you. (context)|Yes, you.]]
3419 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3423 pre-save transform: context links ("pipe trick") with namespace
3425 pst title=[[Ns:Somearticle]]
3429 [[Ns:Article|Article]]
3433 pre-save transform: context links ("pipe trick") with namespace and parens
3435 pst title=[[Ns:Somearticle (context)]]
3439 [[Ns:Article (context)|Article]]
3443 pre-save transform: context links ("pipe trick") with namespace and comma
3445 pst title=[[Ns:Somearticle, Context, Whatever]]
3449 [[Ns:Article, Context, Whatever|Article]]
3453 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3455 pst title=[[Ns:Somearticle, Context (context)]]
3459 [[Ns:Article (context)|Article]]
3463 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3465 pst title=[[Ns:Somearticle (IGNORED), Context]]
3469 [[Ns:Article, Context|Article]]
3473 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
3477 [[Article(context)|]]
3478 [[Bar:Article(context)|]]
3479 [[:Bar:Article(context)|]]
3480 [[|Article(context)]]
3484 [[Article(context)|Article]]
3485 [[Bar:Article(context)|Article]]
3486 [[:Bar:Article(context)|Article]]
3487 [[Article(context)]]
3488 [[Bar:X (Y) Z|X (Y) Z]]
3489 [[:Bar:X (Y) Z|X (Y) Z]]
3493 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
3497 [[Article (context)|]]
3498 [[Bar:Article (context)|]]
3499 [[:Bar:Article (context)|]]
3500 [[|Article (context)]]
3504 [[Article (context)|Article]]
3505 [[Bar:Article (context)|Article]]
3506 [[:Bar:Article (context)|Article]]
3507 [[Article (context)]]
3508 [[Bar:X (Y) Z|X (Y) Z]]
3509 [[:Bar:X (Y) Z|X (Y) Z]]
3513 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
3517 [[Article(context)|]]
3518 [[Bar:Article(context)|]]
3519 [[:Bar:Article(context)|]]
3520 [[|Article(context)]]
3524 [[Article(context)|Article]]
3525 [[Bar:Article(context)|Article]]
3526 [[:Bar:Article(context)|Article]]
3527 [[Article(context)]]
3529 [[:Bar:X(Y)Z|X(Y)Z]]
3533 pre-save transform: trim trailing empty lines
3537 Empty lines are trimmed
3543 Empty lines are trimmed
3547 pre-save transform: Signature expansion
3552 * <noinclude>~~~</noinclude>
3553 * <includeonly>~~~</includeonly>
3554 * <onlyinclude>~~~</onlyinclude>
3556 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
3557 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
3558 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
3559 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
3564 pre-save transform: Signature expansion in nowiki tags (bug 93)
3570 <nowiki>~~~~</nowiki>
3572 <includeonly><nowiki>~~~~</nowiki></includeonly>
3574 <noinclude><nowiki>~~~~</nowiki></noinclude>
3576 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3578 {{subst:Foo}} shall be converted to FOO
3580 As well as inside noinclude/onlyinclude
3581 <noinclude>{{subst:Foo}}</noinclude>
3582 <onlyinclude>{{subst:Foo}}</onlyinclude>
3584 But not inside includeonly
3585 <includeonly>{{subst:Foo}}</includeonly>
3589 <nowiki>~~~~</nowiki>
3591 <includeonly><nowiki>~~~~</nowiki></includeonly>
3593 <noinclude><nowiki>~~~~</nowiki></noinclude>
3595 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3597 FOO shall be converted to FOO
3599 As well as inside noinclude/onlyinclude
3600 <noinclude>FOO</noinclude>
3601 <onlyinclude>FOO</onlyinclude>
3603 But not inside includeonly
3604 <includeonly>{{subst:Foo}}</includeonly>
3608 ### Message transform tests
3611 message transform: magic variables
3621 message transform: should not transform wiki markup
3631 message transform: <noinclude> in transcluded template (bug 4926)
3641 message transform: <onlyinclude> in transcluded template (bug 4926)
3651 {{#special:}} page name, known
3655 {{#special:Recentchanges}}
3657 Special:RecentChanges
3661 {{#special:}} page name with subpage, known
3665 {{#special:Recentchanges/param}}
3667 Special:RecentChanges/param
3671 {{#special:}} page name, unknown
3675 {{#special:foobarnonexistent}}
3677 No such special page
3681 {{#speciale:}} page name, known
3685 {{#speciale:Recentchanges}}
3687 Special:RecentChanges
3691 {{#speciale:}} page name with subpage, known
3695 {{#speciale:Recentchanges/param}}
3697 Special:RecentChanges/param
3701 {{#speciale:}} page name, unknown
3705 {{#speciale:foobarnonexistent}}
3707 No_such_special_page
3716 [[Image:foobar.jpg]]
3718 <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>
3725 [[Image:foobar.jpg|right]]
3727 <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>
3732 Simple image (using File: namespace, now canonical)
3736 <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>
3743 [[Image:foobar.jpg|right|Caption text]]
3745 <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>
3750 Image with link parameter, wiki target
3752 [[Image:foobar.jpg|link=Target page]]
3754 <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>
3759 Image with link parameter, URL target
3761 [[Image:foobar.jpg|link=http://example.com/]]
3763 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3768 Image with link parameter, wgExternalLinkTarget
3770 [[Image:foobar.jpg|link=http://example.com/]]
3772 wgExternalLinkTarget='foobar'
3774 <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>
3779 Image with link parameter, wgExternalLinkTarget, unnamed parameter
3781 [[Image:foobar.jpg|link=http://example.com/|Title]]
3783 wgExternalLinkTarget='foobar'
3785 <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>
3790 Image with empty link parameter
3792 [[Image:foobar.jpg|link=]]
3794 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3799 Image with link parameter (wiki target) and unnamed parameter
3801 [[Image:foobar.jpg|link=Target page|Title]]
3803 <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>
3808 Image with link parameter (URL target) and unnamed parameter
3810 [[Image:foobar.jpg|link=http://example.com/|Title]]
3812 <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>
3817 Thumbnail image with link parameter
3819 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
3821 <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>
3826 Image with frame and link
3828 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3830 <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>
3835 Image with frame and link and explicit alt
3837 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3839 <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>
3844 Image with wiki markup in implicit alt
3846 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3848 <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>
3853 Image with wiki markup in explicit alt
3855 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3857 <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>
3862 Link to image page- image page normally doesn't exists, hence edit link
3863 Add test with existing image page
3864 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3868 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3873 bug 18784 Link to non-existent image page with caption should use caption as link text
3875 [[:Image:test|caption]]
3877 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
3882 Frameless image caption with a free URL
3884 [[Image:foobar.jpg|http://example.com]]
3886 <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>
3891 Thumbnail image caption with a free URL
3893 [[Image:foobar.jpg|thumb|http://example.com]]
3895 <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>
3900 Thumbnail image caption with a free URL and explicit alt
3902 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3904 <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>
3909 BUG 1887: A ISBN with a thumbnail
3911 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3913 <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>
3918 BUG 1887: A RFC with a thumbnail
3920 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3922 <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>
3927 BUG 1887: A mailto link with a thumbnail
3929 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3931 <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>
3935 # Pending resolution to bug 368
3937 BUG 648: Frameless image caption with a link
3939 [[Image:foobar.jpg|text with a [[link]] in it]]
3941 <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>
3946 BUG 648: Frameless image caption with a link (suffix)
3948 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3950 <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>
3955 BUG 648: Frameless image caption with an interwiki link
3957 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3959 <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>
3964 BUG 648: Frameless image caption with a piped interwiki link
3966 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3968 <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>
3973 Escape HTML special chars in image alt text
3975 [[Image:foobar.jpg|& < > "]]
3977 <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>
3982 BUG 499: Alt text should have Ӓ, not &1234;
3984 [[Image:foobar.jpg|♀]]
3986 <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>
3991 Broken image caption with link
3993 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3995 <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.
4000 Image caption containing another image
4002 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
4004 <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>
4009 Image caption containing a newline
4011 [[Image:Foobar.jpg|This
4014 <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>
4020 Bug 3090: External links other than http: in image captions
4022 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
4024 <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>
4031 #REDIRECT [[File:Barfoo.jpg]]
4037 [[Image:Barfoo.jpg]]
4039 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
4044 Missing image with uploads disabled
4048 [[Image:Foobaz.jpg]]
4050 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
4059 Subpage test/subpage
4067 subpage title=[[Subpage test]]
4071 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
4076 Subpage noslash link
4078 subpage title=[[Subpage test]]
4082 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4091 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4096 BUG 561: {{/Subpage}}
4098 subpage title=[[Page]]
4102 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4110 Category:MediaWiki User's Guide
4118 [[:Category:MediaWiki User's Guide]]
4120 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
4129 [[Category:MediaWiki User's Guide]]
4131 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4135 PAGESINCATEGORY invalid title fatal (r33546 fix)
4137 {{PAGESINCATEGORY:<bogus>}}
4144 ### Inter-language links
4147 Inter-language links
4153 [[zh:食品]]
4155 es:Alimento fr:Nourriture zh:食品
4162 Basic section headings
4169 ===Smaller headline===
4172 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
4175 <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>
4178 <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>
4184 Section headings with TOC
4187 === Subheadline 1 ===
4188 ===== Skipping a level =====
4189 ====== Skipping a level ======
4193 ===Another headline===
4195 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4197 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4199 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4201 <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>
4203 <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>
4210 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4212 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4217 <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>
4218 <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>
4219 <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>
4220 <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>
4221 <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>
4224 <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>
4228 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4230 Handling of sections up to level 6 and beyond
4233 == Level 2 Heading==
4234 === Level 3 Heading===
4235 ==== Level 4 Heading====
4236 ===== Level 5 Heading=====
4237 ====== Level 6 Heading======
4238 ======= Level 7 Heading=======
4239 ======== Level 8 Heading========
4240 ========= Level 9 Heading=========
4241 ========== Level 10 Heading==========
4243 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4245 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4247 <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>
4249 <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>
4251 <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>
4253 <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>
4255 <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>
4256 <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>
4257 <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>
4258 <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>
4259 <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>
4272 <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>
4273 <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>
4274 <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>
4275 <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>
4276 <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>
4277 <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>
4278 <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>
4279 <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>
4280 <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>
4281 <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>
4286 TOC regression (bug 9764)
4290 ==== title 1.1.1 ====
4295 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4297 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4299 <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>
4301 <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>
4304 <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>
4307 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4309 <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>
4314 <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>
4315 <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>
4316 <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>
4317 <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>
4318 <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>
4319 <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>
4324 TOC with wgMaxTocLevel=3 (bug 6204)
4330 ==== title 1.1.1 ====
4335 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4337 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4339 <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>
4340 <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>
4343 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4345 <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>
4350 <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>
4351 <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>
4352 <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>
4353 <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>
4354 <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>
4355 <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>
4360 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4366 ====Section 1.1.1====
4367 ====Section 1.1.1.1====
4370 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4372 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4374 <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>
4377 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4380 <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>
4381 <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>
4382 <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>
4383 <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>
4384 <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>
4390 Resolving duplicate section names
4395 <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>
4396 <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>
4401 Resolving duplicate section names with differing case (bug 10721)
4406 <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>
4407 <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>
4419 Template with sections, __NOTOC__
4426 <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>
4427 <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>
4428 <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>
4429 <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>
4434 __NOEDITSECTION__ keyword
4440 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4441 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4446 Link inside a section heading
4448 ==Section with a [[Main Page|link]] in it==
4450 <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>
4455 TOC regression (bug 12077)
4462 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4464 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4466 <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>
4469 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4472 <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>
4473 <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>
4474 <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>
4479 BUG 1219 URL next to image (good)
4481 http://example.com [[Image:foobar.jpg]]
4483 <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>
4488 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4491 The line above must have a trailing space!
4494 But just in case it doesn't...
4496 <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>
4497 <p>The line above must have a trailing space!
4499 <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>
4500 <p>But just in case it doesn't...
4505 Header with special characters (bug 25462)
4507 The tooltips shall not show entities to the user (ie. be double escaped)
4524 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4526 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4528 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4529 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4530 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4531 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4532 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4535 <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>
4538 <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>
4541 <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>
4544 <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>
4547 <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>
4553 BUG 1219 URL next to image (broken)
4555 http://example.com[[Image:foobar.jpg]]
4557 <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>
4562 Bug 1186 news: in the middle of text
4564 http://en.wikinews.org/wiki/Wikinews:Workplace
4566 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4572 Namespaced link must have a title
4581 Namespaced link must have a title (bad fragment version)
4583 [[Project:#fragment]]
4585 <p>[[Project:#fragment]]
4591 div with no attributes
4593 <div>HTML rocks</div>
4595 <div>HTML rocks</div>
4600 div with double-quoted attribute
4602 <div id="rock">HTML rocks</div>
4604 <div id="rock">HTML rocks</div>
4609 div with single-quoted attribute
4611 <div id='rock'>HTML rocks</div>
4613 <div id="rock">HTML rocks</div>
4618 div with unquoted attribute
4620 <div id=rock>HTML rocks</div>
4622 <div id="rock">HTML rocks</div>
4627 div with illegal double attributes
4629 <div id="a" id="b">HTML rocks</div>
4631 <div id="b">HTML rocks</div>
4636 HTML multiple attributes correction
4638 <p class="error" class="awesome">Awesome!</p>
4640 <p class="awesome">Awesome!</p>
4645 Table multiple attributes correction
4648 !+ class="error" class="awesome"| status
4653 <th class="awesome"> status
4661 <DIV ID="x">HTML ROCKS</DIV>
4663 <div id="x">HTML ROCKS</div>
4669 text with amp in the middle of nowhere
4673 <p>Remember AT&T?
4678 text with character entity: eacute
4680 I always thought é was a cute letter.
4682 <p>I always thought é was a cute letter.
4687 text with undefined character entity: xacute
4689 I always thought &xacute; was a cute letter.
4691 <p>I always thought &xacute; was a cute letter.
4703 [[Media:Foobar.jpg]]
4705 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4710 Media link with text
4712 [[Media:Foobar.jpg|A neat file to look at]]
4714 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4718 # FIXME: this is still bad HTML tag nesting
4720 Media link with nasty text
4721 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4723 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4725 <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>
4730 Media link to nonexistent file (bug 1702)
4732 [[Media:No such.jpg]]
4734 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4739 Image link to nonexistent file (bug 1850 - good)
4741 [[Image:No such.jpg]]
4743 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4748 :Image link to nonexistent file (bug 1850 - bad)
4750 [[:Image:No such.jpg]]
4752 <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>
4759 Character reference normalization in link text (bug 1938)
4761 [[Main Page|this&that]]
4763 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4770 Test for unicode normalization
4772 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4776 (bug 19451) Links should refer to the normalized form.
4784 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4785 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4786 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4787 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4788 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4793 Empty attribute crash test (bug 2067)
4795 <font color="">foo</font>
4797 <p><font color="">foo</font>
4802 Empty attribute crash test single-quotes (bug 2067)
4804 <font color=''>foo</font>
4806 <p><font color="">foo</font>
4811 Attribute test: equals, then nothing
4813 <font color=>foo</font>
4820 Attribute test: unquoted value
4822 <font color=x>foo</font>
4824 <p><font color="x">foo</font>
4829 Attribute test: unquoted but illegal value (hash)
4831 <font color=#x>foo</font>
4833 <p><font color="#x">foo</font>
4838 Attribute test: no value
4840 <font color>foo</font>
4842 <p><font color="color">foo</font>
4847 Bug 2095: link with three closing brackets
4851 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
4856 Bug 2095: link with pipe and three closing brackets
4860 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4865 Bug 2095: link with pipe and three closing brackets, version 2
4867 [[Main Page|[http://example.com/]]]
4869 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4879 Template:Dangerous attribute
4881 " onmouseover="alert(document.cookie)
4885 Template:Dangerous style attribute
4887 border-size: expression(alert(document.cookie))
4893 <div style="float: right; {{{1}}}">Magic div</div>
4897 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4899 <div title="{{test}}"></div>
4901 <div title="This is a test template"></div>
4906 Bug 2304: HTML attribute safety (dangerous template; 2309)
4908 <div title="{{dangerous attribute}}"></div>
4910 <div title=""></div>
4915 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4917 <div style="{{dangerous style attribute}}"></div>
4919 <div style="/* insecure input */"></div>
4924 Bug 2304: HTML attribute safety (safe parameter; 2309)
4926 {{div style|width: 200px}}
4928 <div style="float: right; width: 200px">Magic div</div>
4933 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4935 {{div style|width: expression(alert(document.cookie))}}
4937 <div style="/* insecure input */">Magic div</div>
4942 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4944 {{div style|"><script>alert(document.cookie)</script>}}
4946 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4951 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4953 {{div style|" ><script>alert(document.cookie)</script>}}
4955 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4960 Bug 2304: HTML attribute safety (link)
4962 <div title="[[Main Page]]"></div>
4964 <div title="[[Main Page]]"></div>
4969 Bug 2304: HTML attribute safety (italics)
4971 <div title="''foobar''"></div>
4973 <div title="''foobar''"></div>
4978 Bug 2304: HTML attribute safety (bold)
4980 <div title="'''foobar'''"></div>
4982 <div title="'''foobar'''"></div>
4988 Bug 2304: HTML attribute safety (ISBN)
4990 <div title="ISBN 1234567890"></div>
4992 <div title="ISBN 1234567890"></div>
4997 Bug 2304: HTML attribute safety (RFC)
4999 <div title="RFC 1234"></div>
5001 <div title="RFC 1234"></div>
5006 Bug 2304: HTML attribute safety (PMID)
5008 <div title="PMID 1234567890"></div>
5010 <div title="PMID 1234567890"></div>
5015 Bug 2304: HTML attribute safety (web link)
5017 <div title="http://example.com/"></div>
5019 <div title="http://example.com/"></div>
5024 Bug 2304: HTML attribute safety (named web link)
5026 <div title="[http://example.com/ link]"></div>
5028 <div title="[http://example.com/ link]"></div>
5033 Bug 3244: HTML attribute safety (extension; safe)
5035 <div style="<nowiki>background:blue</nowiki>"></div>
5037 <div style="background:blue"></div>
5042 Bug 3244: HTML attribute safety (extension; unsafe)
5044 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
5046 <div style="/* insecure input */"></div>
5050 # More MSIE fun discovered by Tom Gilder
5053 MSIE CSS safety test: spurious slash
5055 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
5057 <div style="/* insecure input */">evil</div>
5062 MSIE CSS safety test: hex code
5064 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
5066 <div style="/* insecure input */">evil</div>
5071 MSIE CSS safety test: comment in url
5073 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
5075 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
5080 MSIE CSS safety test: comment in expression
5082 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
5084 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5090 Table attribute legitimate extension
5093 !+ style="<nowiki>color:blue</nowiki>"| status
5098 <th style="color:blue"> status
5104 Table attribute safety
5107 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5112 <th style="/* insecure input */"> status
5118 CSS line continuation 1
5120 <div style="background-image: u\ rl(test.jpg);"></div>
5122 <div style="/* insecure input */"></div>
5127 CSS line continuation 2
5129 <div style="background-image: u\ rl(test.jpg); "></div>
5131 <div style="/* insecure input */"></div>
5142 Expansion of multi-line templates in attribute values (bug 6255)
5144 <div style="background: {{identity|#00FF00}}">-</div>
5146 <div style="background: #00FF00">-</div>
5152 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5154 <div style="background:
5157 <div style="background: #00FF00">-</div>
5162 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5164 <div style="background: #00FF00">-</div>
5166 <div style="background: #00FF00">-</div>
5171 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5174 Parser hook: empty input
5187 Parser hook: empty input using terminated empty elements
5200 Parser hook: empty input using terminated empty elements (space before)
5213 Parser hook: basic input
5227 Parser hook: case insensitive
5241 Parser hook: case insensitive, redux
5254 Parser hook: nested tags
5258 <tag><tag></tag></tag>
5269 Parser hook: basic arguments
5271 <tag width=200 height = "100" depth = '50' square></tag>
5290 Parser hook: argument containing a forward slash (bug 5344)
5292 <tag filename='/tmp/bla'></tag>
5298 string(8) "/tmp/bla"
5305 Parser hook: empty input using terminated empty elements (bug 2374)
5319 # </tag> should be output literally since there is no matching tag that begins it
5321 Parser hook: basic arguments using terminated empty elements (bug 2374)
5323 <tag width=200 height = "100" depth = '50' square/>
5346 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5350 Parser hook: static parser hook not inside a comment
5352 <statictag>hello, world</statictag>
5353 <statictag action=flush/>
5361 Parser hook: static parser hook inside a comment
5363 <!-- <statictag>hello, world</statictag> -->
5364 <statictag action=flush/>
5370 # Nested template calls; this case was broken by Parser.php rev 1.506,
5374 Template:One-parameter
5376 (My parameter is: {{{1}}})
5380 Template:Map-one-parameter
5386 Nested template calls
5388 {{Map-one-parameter|One-parameter|param}}
5390 <p>(My parameter is: param)
5399 Sanitizer: Closing of open tags
5401 <s></s><table></table>
5403 <s></s><table></table>
5408 Sanitizer: Closing of open but not closed tags
5417 Sanitizer: Closing of closed but not open tags
5426 Sanitizer: Closing of closed but not open table tags
5428 Table not started</td></tr></table>
5430 <p>Table not started</td></tr></table>
5435 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5437 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5439 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5444 Sanitizer: Validating the contents of the id attribute (bug 4515)
5450 Something, but definitely not <br id="9" />...
5454 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5458 <br id="foo" /><br id="foo" />
5460 Something need to be done. foo-2 ?
5464 Language converter: output gets cut off unexpectedly (bug 5757)
5468 this bit is safe: }-
5470 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5472 then we get cut off here: }-
5474 all additional text is vanished
5476 <p>this bit is safe: }-
5477 </p><p>but if we add a conversion instance: xxx
5478 </p><p>then we get cut off here: }-
5479 </p><p>all additional text is vanished
5484 Self closed html pairs (bug 5487)
5487 <center><font id="bug" />Centered text</center>
5488 <div><font id="bug2" />In div text</div>
5490 <center><font id="bug" />Centered text</center>
5491 <div><font id="bug2" />In div text</div>
5500 Punctuation: nbsp before exclamation
5504 <p>C'est grave !
5509 Punctuation: CSS !important (bug 11874)
5511 <div style="width:50% !important">important</div>
5513 <div style="width:50% !important">important</div>
5518 Punctuation: CSS ! important (bug 11874; with space after)
5520 <div style="width:50% ! important">important</div>
5522 <div style="width:50% ! important">important</div>
5528 HTML bullet list, closed tags (bug 5497)
5543 HTML bullet list, unclosed tags (bug 5497)
5560 HTML ordered list, closed tags (bug 5497)
5575 HTML ordered list, unclosed tags (bug 5497)
5592 HTML nested bullet list, closed tags (bug 5497)
5617 HTML nested bullet list, open tags (bug 5497)
5642 HTML nested ordered list, closed tags (bug 5497)
5667 HTML nested ordered list, open tags (bug 5497)
5692 HTML ordered list item with parameters oddity
5694 <ol><li id="fragment">One</li></ol>
5696 <ol><li id="fragment">One</li></ol>
5701 bug 5918: autonumbering
5703 [http://first/] [http://second] [ftp://ftp]
5707 [mailto:enclosed@mail.tld With target]
5709 [mailto:enclosed@mail.tld]
5711 mailto:inline@mail.tld
5713 <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>
5714 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
5715 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
5716 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
5717 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
5723 # Security and HTML correctness
5724 # From Nick Jenkins' fuzz testing
5728 Fuzz testing: Parser13
5743 Fuzz testing: Parser14
5748 <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>
5749 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5751 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5758 Fuzz testing: Parser14-table
5763 <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>
5764 <table style="__TOC__">
5770 # Known to produce bogus xml (extra </td>)
5772 Fuzz testing: Parser16
5792 Fuzz testing: Parser21
5795 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5800 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5810 Fuzz testing: Parser22
5812 http://===r:::https://b
5816 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
5824 # Known to produce bad XML for now
5826 Fuzz testing: Parser24
5833 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5834 <br style="onmouseover='alert(document.cookie);' " />
5836 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5841 <u class="|">}}}} >
5842 <br style="onmouseover='alert(document.cookie);'" />
5844 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5853 # Note: the current result listed for this is not what the original one was,
5854 # but the original bug was JavaScript injection, which is fixed in any case.
5855 # It's not clear that the original result listed was any more correct than the
5856 # current one. Original result:
5859 # <li class="||">
5860 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5862 Fuzz testing: Parser25 (bug 6055)
5868 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5870 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5875 Fuzz testing: URL adjacent extension (with space, clean)
5878 http://example.com <nowiki>junk</nowiki>
5880 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
5885 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5888 http://example.com<nowiki>junk</nowiki>
5890 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
5895 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5898 http://example.com<pre>junk</pre>
5900 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
5905 Fuzz testing: image with bogus manual thumbnail
5907 [[Image:foobar.jpg|thumbnail= ]]
5909 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5914 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5916 <pre dir=" "></pre>
5918 <pre dir=" "></pre>
5923 Parsing optional HTML elements (Bug 6171)
5928 <td> Some tabular data</td>
5929 <td> More tabular data ...
5930 <td> And yet som tabular data</td>
5936 <td> Some tabular data</td>
5937 <td> More tabular data ...
5938 </td><td> And yet som tabular data</td>
5945 Correct handling of <td>, <tr> (Bug 6171)
5950 <td> Some tabular data</td>
5951 <td> More tabular data ...</td>
5952 <td> And yet som tabular data</td>
5958 <td> Some tabular data</td>
5959 <td> More tabular data ...</td>
5960 <td> And yet som tabular data</td>
5968 Parsing crashing regression (fr:JavaScript)
5972 <p></body></x>
5977 Inline wiki vs wiki block nesting
5983 <p><b>Bold paragraph</b>
5984 </p><p>New wiki paragraph
5989 Inline HTML vs wiki block nesting
5997 <p><b>Bold paragraph</b>
5998 </p><p>New wiki paragraph
6002 # Original result was this:
6003 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
6005 # While that might be marginally more intuitive, maybe, the six-apostrophe
6006 # construct is clearly pathological and the result stated here (which is what
6007 # the parser actually does) is about as reasonable as anything.
6009 Mixing markup for italics and bold
6012 '''bold''''''bold''bolditalics'''''
6014 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
6022 Article for special page transclusion test
6026 Special page transclusion
6029 {{Special:Prefixindex/Xyzzyx}}
6033 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6038 Special page transclusion twice (bug 5021)
6041 {{Special:Prefixindex/Xyzzyx}}
6042 {{Special:Prefixindex/Xyzzyx}}
6046 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6049 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
6054 Transclusion of default MediaWiki message
6056 {{MediaWiki:Mainpage}}
6063 Transclusion of nonexistent MediaWiki message
6065 {{MediaWiki:Mainpagexxx}}
6067 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
6072 Transclusion of MediaWiki message with underscore
6074 {{MediaWiki:history_short}}
6081 Transclusion of MediaWiki message with space
6083 {{MediaWiki:history short}}
6090 Invalid header with following text
6100 Section extraction test (section 0)
6120 Section extraction test (section 1)
6142 Section extraction test (section 2)
6163 Section extraction test (section 3)
6183 Section extraction test (section 4)
6207 Section extraction test (section 5)
6227 Section extraction test (section 6)
6248 Section extraction test (section 7)
6268 Section extraction test (section 8)
6288 Section extraction test (section 9)
6309 Section extraction test (section 10)
6329 Section extraction test (nonexistent section 11)
6348 Section extraction test with bogus heading (section 1)
6353 ==bogus== not a legal section
6357 ==bogus== not a legal section
6361 Section extraction test with bogus heading (section 2)
6366 ==bogus== not a legal section
6373 Section extraction test with comment after heading (section 1)
6385 Section extraction test with comment after heading (section 2)
6397 Section extraction test with bogus <nowiki> heading (section 1)
6402 ==bogus== <nowiki>not a legal section</nowiki>
6406 ==bogus== <nowiki>not a legal section</nowiki>
6410 Section extraction test with bogus <nowiki> heading (section 2)
6415 ==bogus== <nowiki>not a legal section</nowiki>
6422 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6423 # instead of respecting commented sections
6425 Section extraction prefixed by comment (section 1)
6436 Section extraction prefixed by comment (section 2)
6447 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6448 # instead of respecting HTML-style headings
6450 Section extraction, mixed wiki and html (section 1)
6466 Section extraction, mixed wiki and html (section 2)
6482 # Formerly testing for bug 3342
6484 Section extraction, heading surrounded by <noinclude>
6488 <noinclude>==unmarked==</noinclude>
6494 # Test behaviour of bug 19910
6496 Sectiion with all-equals
6501 The line above must have a trailing space
6504 But just in case it doesn't...
6508 But just in case it doesn't...
6512 Section replacement test (section 0)
6543 Section replacement test (section 1)
6572 Section replacement test (section 2)
6602 Section replacement test (section 3)
6633 Section replacement test (section 4)
6660 Section replacement test (section 5)
6691 Section replacement test (section 6)
6721 Section replacement test (section 7)
6752 Section replacement test (section 8)
6783 Section replacement test (section 9)
6812 Section replacement test (section 10)
6842 Section replacement test with initial whitespace (bug 13728)
6846 Preformatted initial line
6850 Preformatted initial line
6857 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6869 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6882 Section extraction, <pre> around bogus header (bug 10309)
6899 Section replacement, <pre> around bogus header (bug 10309)
6901 noxml replace=2,"xxx"
6922 Handling of 
 in URLs
6926 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
6933 5 quotes, code coverage +1 line
6940 Special:Search page linking.
6944 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
6959 * {{SUBJECTPAGENAME}}
6960 * {{SUBJECTPAGENAMEE}}
6967 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6969 <ul><li> Parser test
6970 </li><li> Parser test
6971 </li><li> Parser test
6972 </li><li> Parser_test
6973 </li><li> Parser test
6974 </li><li> Parser_test
6975 </li><li> Talk:Parser test
6976 </li><li> Talk:Parser_test
6977 </li><li> Parser test
6978 </li><li> Parser_test
6985 </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>
6989 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6999 image4 |300px| centre
7000 image5.svg| http://///////
7005 <ul class="gallery">
7006 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7007 <div style="height: 150px;">Image1.png</div>
7008 <div class="gallerytext">
7011 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7012 <div style="height: 150px;">Image2.gif</div>
7013 <div class="gallerytext">
7018 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7019 <div style="height: 150px;">Image3</div>
7020 <div class="gallerytext">
7023 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7024 <div style="height: 150px;">Image4</div>
7025 <div class="gallerytext">
7030 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7031 <div style="height: 150px;">Image5.svg</div>
7032 <div class="gallerytext">
7033 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
7037 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7038 <div style="height: 150px;">* image6</div>
7039 <div class="gallerytext">
7047 Gallery (with options)
7049 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
7050 File:Nonexistant.jpg|caption
7051 File:Nonexistant.jpg
7052 image:foobar.jpg|some '''caption''' [[Main Page]]
7054 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
7057 <ul class="gallery" style="max-width: 226px;_width: 226px;">
7058 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
7059 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7060 <div style="height: 70px;">Nonexistant.jpg</div>
7061 <div class="gallerytext">
7066 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7067 <div style="height: 70px;">Nonexistant.jpg</div>
7068 <div class="gallerytext">
7071 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7072 <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>
7073 <div class="gallerytext">
7074 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7078 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7079 <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>
7080 <div class="gallerytext">
7083 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
7084 <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>
7085 <div class="gallerytext">
7095 Gallery with wikitext inside caption
7098 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
7099 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
7102 <ul class="gallery">
7103 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7104 <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>
7105 <div class="gallerytext">
7106 <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>
7110 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7111 <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>
7112 <div class="gallerytext">
7113 <p>This is a test template
7122 gallery (with showfilename option)
7124 <gallery showfilename>
7125 File:Nonexistant.jpg|caption
7126 File:Nonexistant.jpg
7127 image:foobar.jpg|some '''caption''' [[Main Page]]
7131 <ul class="gallery">
7132 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7133 <div style="height: 150px;">Nonexistant.jpg</div>
7134 <div class="gallerytext">
7135 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7140 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7141 <div style="height: 150px;">Nonexistant.jpg</div>
7142 <div class="gallerytext">
7143 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7147 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7148 <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>
7149 <div class="gallerytext">
7150 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7151 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7155 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7156 <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>
7157 <div class="gallerytext">
7158 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7167 Gallery (with namespace-less filenames)
7170 File:Nonexistant.jpg
7176 <ul class="gallery">
7177 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7178 <div style="height: 150px;">Nonexistant.jpg</div>
7179 <div class="gallerytext">
7182 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7183 <div style="height: 150px;">Nonexistant.jpg</div>
7184 <div class="gallerytext">
7187 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7188 <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>
7189 <div class="gallerytext">
7192 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7193 <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>
7194 <div class="gallerytext">
7202 HTML Hex character encoding (spells the word "JavaScript")
7204 JavaScript
7206 <p>JavaScript
7211 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7215 <p>&#xsee;&#XSEE;
7220 HTML Hex character encoding mixed case
7229 __FORCETOC__ override
7241 ISBN 978-0-1234-56 789
7243 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7248 ISBN followed by 5 spaces
7259 ISBN ISBN 1234567890
7261 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7266 Bug 22905: <abbr> followed by ISBN followed by </a>
7268 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7270 <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>
7279 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
7284 Double RFC with a wiki link
7288 <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>
7297 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
7302 Centre-aligned image
7304 [[Image:foobar.jpg|centre]]
7306 <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>
7313 [[Image:foobar.jpg|none]]
7315 <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>
7320 Width + Height sized image (using px) (height is ignored)
7322 [[Image:foobar.jpg|640x480px]]
7324 <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>
7329 Width-sized image (using px, no following whitespace)
7331 [[Image:foobar.jpg|640px]]
7333 <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>
7338 Width-sized image (using px, with following whitespace - test regression from r39467)
7340 [[Image:foobar.jpg|640px ]]
7342 <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>
7347 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7349 [[Image:foobar.jpg| 640px]]
7351 <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>
7356 Another italics / bold test
7364 # Note the results may be incorrect, as parserTest output included this:
7365 # XML error: Mismatched tag at byte 6120:
7366 # ...<dd> </dt></dl> </dd...
7374 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7385 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7387 Images with the "|" character in the comment
7389 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7391 <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>
7396 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7398 <html><script>alert(1);</script></html>
7400 <p><html><script>alert(1);</script></html>
7405 HTML with raw HTML ($wgRawHtml==true)
7409 <html><script>alert(1);</script></html>
7411 <p><script>alert(1);</script>
7416 Parents of subpages, one level up
7418 subpage title=[[Subpage test/L1/L2/L3]]
7422 <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>
7428 Parents of subpages, one level up, not named
7430 subpage title=[[Subpage test/L1/L2/L3]]
7434 <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>
7441 Parents of subpages, two levels up
7443 subpage title=[[Subpage test/L1/L2/L3]]
7449 <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
7450 </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>
7455 Parents of subpages, two levels up, without trailing slash or name.
7457 subpage title=[[Subpage test/L1/L2/L3]]
7466 Parents of subpages, two levels up, with lots of extra trailing slashes.
7468 subpage title=[[Subpage test/L1/L2/L3]]
7472 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7477 Definition list code coverage
7483 <dl><dt> title  </dt><dd> def
7484 </dd><dt> title </dt><dd> def
7485 </dd><dt>title</dt><dd> def
7491 Don't fall for the self-closing div
7493 <div>hello world</div/>
7495 <div>hello world</div>
7504 <p>[[:Template:Msg]]
7513 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7517 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7519 Always escape literal '>' in output, not just after '<'
7533 <p>This is a test template
7534 This is a test template
7546 Inclusion of !userCanEdit() content
7550 <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>
7556 Out-of-order TOC heading levels
7565 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7567 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7569 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7570 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7573 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7575 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7576 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7581 <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>
7582 <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>
7583 <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>
7584 <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>
7585 <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>
7586 <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>
7592 ISBN with a dummy number
7602 ISBN with space-delimited number
7606 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7612 ISBN with multiple spaces, no number
7631 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7632 </p><p>ISBN 12345678901
7638 ISBN with trailing year (bug 8110)
7640 ISBN 1-234-56789-0 - 2006
7642 ISBN 1 234 56789 0 - 2006
7644 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7645 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7653 {{anchorencode:foo bar©#%n}}
7655 <p>foo_bar.C2.A9.23.25n
7660 anchorencode trims spaces
7662 {{anchorencode: __pretty__please__}}
7669 anchorencode deals with links
7671 {{anchorencode: [[hello|world]] [[hi]]}}
7678 anchorencode deals with templates
7680 {{anchorencode: {{Foo}} }}
7687 anchorencode encodes like the TOC generator: (bug 18431)
7689 === _ +:.3A%3A&&]] ===
7690 {{anchorencode: _ +:.3A%3A&&]] }}
7693 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7694 <p>.2B:.3A.253A.26.26.5D.5D
7698 # Expected output in the following test is not necessarily expected (there
7699 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7700 # only testing for well-formedness.
7702 Bug 6200: blockquotes and paragraph formatting
7722 Bug 8293: Use of center tag ruins paragraph formatting
7744 ### Language variants related tests
7747 Self-link in language variants
7749 title=[[Dunav]] language=sr
7751 Both [[Dunav]] and [[Дунав]] are names for this river.
7753 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7759 Link to pages in language variants
7763 Main Page can be written as [[Маин Паге]]
7765 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7771 Multiple links to pages in language variants
7775 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7777 <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>.
7783 Simple template in language variants
7789 <p>This is a test template
7795 Template with explicit namespace in language variants
7801 <p>This is a test template
7807 Basic test for template parameter in language variants
7811 {{парамтест|param=foo}}
7813 <p>This is a test template with parameter foo
7819 Simple category in language variants
7823 [[Category:МедиаWики Усер'с Гуиде]]
7825 <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>
7830 Stripping -{}- tags (language variants)
7834 Latin proverb: -{Ne nuntium necare}-
7836 <p>Latin proverb: Ne nuntium necare
7842 Prevent conversion with -{}- tags (language variants)
7844 language=sr variant=sr-ec
7846 Latinski: -{Ne nuntium necare}-
7848 <p>Латински: Ne nuntium necare
7854 Prevent conversion of text with -{}- tags (language variants)
7856 language=sr variant=sr-ec
7858 Latinski: -{Ne nuntium necare}-
7860 <p>Латински: Ne nuntium necare
7866 Prevent conversion of links with -{}- tags (language variants)
7868 language=sr variant=sr-ec
7872 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7878 -{}- tags within headlines (within html for parserConvert())
7880 language=sr variant=sr-ec
7884 <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>
7890 Explicit definition of language variant alternatives
7892 language=zh variant=zh-tw
7894 -{zh:China;zh-tw:Taiwan}-, not China
7896 <p>Taiwan, not China
7902 Explicit session-wise language variant mapping (A flag and - flag)
7904 language=zh variant=zh-tw
7906 Taiwan is not China.
7907 But -{A|zh:China;zh-tw:Taiwan}- is China,
7908 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
7909 and -{China}- is China.
7911 <p>Taiwan is not China.
7912 But Taiwan is Taiwan,
7913 (This should be stripped!)
7919 Explicit session-wise language variant mapping (H flag for hide)
7921 language=zh variant=zh-tw
7923 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
7926 <p>(This should be stripped!)
7932 Adding explicit conversion rule for title (T flag)
7934 language=zh variant=zh-tw showtitle
7936 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7939 <p>Should be stripped!
7944 Testing that changing the language variant here in the tests actually works
7946 language=zh variant=zh showtitle
7948 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7951 <p>Should be stripped!
7956 Bug 24072: more test on conversion rule for title
7958 language=zh variant=zh-tw showtitle
7960 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7961 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
7964 <p>This should be stripped!
7965 This won't take interferes with the title rule.
7970 Raw output of variant escape tags (R flag)
7972 language=zh variant=zh-tw
7974 Raw: -{R|zh:China;zh-tw:Taiwan}-
7976 <p>Raw: zh:China;zh-tw:Taiwan
7981 Nested using of manual convert syntax
7983 language=zh variant=zh-hk
7985 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
7987 <p>Nested: Hello Hong Kong!
7992 Do not convert roman numbers to language variants
7994 language=sr variant=sr-ec
7998 <p>Фридрих IV је цар.
8003 Unclosed language converter markup "-{"
8014 Don't convert raw rule "-{R|=>}-" to "=>"
8031 Bug 529: Uncovered bullet
8042 Bug 529: Uncovered table already at line-start
8065 Bug 529: Uncovered bullet in parser function result
8067 * Foo {{lc:{{bullet}} }}
8076 Bug 5678: Double-parsed template argument
8078 {{lc:{{{1}}}|hello}}
8085 Bug 5678: Double-parsed template invocation
8087 {{lc:{{paramtest {{!}} param = hello }} }}
8089 <p>{{paramtest | param = hello }}
8094 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8120 Morwen/13: Unclosed link followed by heading
8127 <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>
8132 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8139 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8144 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8151 <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>
8166 Paragraphs inside divs (no extra line breaks)
8178 Paragraphs inside divs (extra line break on open)
8193 Paragraphs inside divs (extra line break on close)
8208 Paragraphs inside divs (extra line break on open and close)
8225 Nesting tags, paragraphs on lines which begin with <div>
8229 <div></div><strong>A
8238 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8240 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8244 <blockquote>Line one
8246 Line two</blockquote>
8248 <blockquote>Line one
8249 Line two</blockquote>
8254 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8261 Line two</blockquote>
8266 Line two</blockquote>
8271 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8275 <blockquote>Line one
8280 <blockquote>Line one
8288 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8307 Paragraphs inside blockquotes/divs (no extra line breaks)
8309 <blockquote><div>Line one
8311 Line two</div></blockquote>
8313 <blockquote><div>Line one
8314 Line two</div></blockquote>
8319 Paragraphs inside blockquotes/divs (extra line break on open)
8324 Line two</div></blockquote>
8329 Line two</div></blockquote>
8334 Paragraphs inside blockquotes/divs (extra line break on close)
8336 <blockquote><div>Line one
8341 <blockquote><div>Line one
8349 Paragraphs inside blockquotes/divs (extra line break on open and close)
8366 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8368 wgLinkHolderBatchSize=0
8374 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
8375 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
8376 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
8381 Free external link invading image caption
8383 [[Image:Foobar.jpg|thumb|http://x|hello]]
8385 <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>
8390 Bug 15196: localised external link numbers
8394 [http://en.wikipedia.org/]
8396 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8401 Multibyte character in padleft
8403 {{padleft:-Hello|7|Æ}}
8410 Multibyte character in padright
8412 {{padright:Hello-|7|Æ}}
8425 <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>
8430 formatdate parser function
8432 {{#formatdate:2009-03-24}}
8434 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8439 formatdate parser function, with default format
8441 {{#formatdate:2009-03-24|mdy}}
8443 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8448 Linked date with autoformatting disabled
8450 wgUseDynamicDates=false
8454 <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>
8459 Spacing of numbers in formatted dates
8461 {{#formatdate:January 15}}
8463 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8468 Spacing of numbers in formatted dates (linked)
8470 wgUseDynamicDates=true
8474 <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>
8487 Edit comment with link
8491 I like the [[Main Page]] a lot
8493 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
8497 Edit comment with link and link text
8501 I like the [[Main Page|best pages]] a lot
8503 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8507 Edit comment with link and link text with suffix
8511 I like the [[Main Page|best page]]s a lot
8513 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8517 Edit comment with section link (non-local, eg in history list)
8519 comment title=[[Main Page]]
8521 /* External links */ removed bogus entries
8523 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
8527 Edit comment with section link and text before it (non-local, eg in history list)
8529 comment title=[[Main Page]]
8531 pre-comment text /* External links */ removed bogus entries
8533 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>
8537 Edit comment with section link (local, eg in diff view)
8539 comment local title=[[Main Page]]
8541 /* External links */ removed bogus entries
8543 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
8547 Edit comment with subpage link (bug 14080)
8551 title=[[Subpage test]]
8553 Poked at a [[/subpage]] here...
8555 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8559 Edit comment with subpage link and link text (bug 14080)
8563 title=[[Subpage test]]
8565 Poked at a [[/subpage|neat little page]] here...
8567 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8571 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8574 title=[[Subpage test]]
8576 Poked at a [[/subpage]] here...
8578 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8582 Edit comment with bare anchor link (local, as on diff)
8590 <a href="#section">#section</a>
8594 Edit comment with bare anchor link (non-local, as on history)
8601 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8605 Anchor starting with underscore
8609 <p><a href="#_ref">One</a>
8614 Id starting with underscore
8616 <div id="_ref"></div>
8618 <div id="_ref"></div>
8623 Space normalisation on autocomment (bug 22784)
8628 /* __hello__world__ */
8630 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
8634 percent-encoding and + signs in comments (Bug 26410)
8638 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8640 <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>
8644 Bad images - basic functionality
8653 Bad images - bug 16039: text after bad image disappears
8667 Verify that displaytitle works (bug #22501) no displaytitle
8671 wgAllowDisplayTitle=true
8672 wgRestrictDisplayTitle=false
8674 this is not the the title
8677 <p>this is not the the title
8682 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8687 wgAllowDisplayTitle=true
8688 wgRestrictDisplayTitle=false
8690 this is not the the title
8691 {{DISPLAYTITLE:whatever}}
8694 <p>this is not the the title
8699 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8704 wgAllowDisplayTitle=true
8705 wgRestrictDisplayTitle=true
8707 this is not the the title
8708 {{DISPLAYTITLE:whatever}}
8711 <p>this is not the the title
8716 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8721 wgAllowDisplayTitle=true
8722 wgRestrictDisplayTitle=true
8724 this is not the the title
8725 {{DISPLAYTITLE:screen}}
8728 <p>this is not the the title
8733 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8738 wgAllowDisplayTitle=false
8740 this is not the the title
8741 {{DISPLAYTITLE:screen}}
8744 <p>this is not the the title
8745 <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>
8750 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8755 wgAllowDisplayTitle=false
8757 this is not the the title
8760 <p>this is not the the title
8765 preload: check <noinclude> and <includeonly>
8769 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8775 preload: check <onlyinclude>
8779 Goodbye <onlyinclude>Hello world</onlyinclude>
8785 preload: can pass tags through if we want to
8789 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8791 <includeonly>Hello world</includeonly>
8795 preload: check that it doesn't try to do tricks
8799 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8801 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8805 Play a bit with r67090 and bug 3158
8809 <div style="width:50% !important"> </div>
8810 <div style="width:50% !important"> </div>
8811 <div style="width:50% !important"> </div>
8812 <div style="border : solid;"> </div>
8814 <div style="width:50% !important"> </div>
8815 <div style="width:50% !important"> </div>
8816 <div style="width:50% !important"> </div>
8817 <div style="border : solid;"> </div>
8822 HTML5 data attributes
8824 <span data-foo="bar">Baz</span>
8825 <p data-abc-def_hij="">Quuz</p>
8827 <p><span data-foo="bar">Baz</span>
8829 <p data-abc-def_hij="">Quuz</p>
8834 percent-encoding and + signs in internal links (Bug 26410)
8836 [[User:+%]] [[Page+title%]]
8837 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
8838 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
8839 [[%33%45]] [[%33%45+]]
8841 <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>
8842 <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>
8843 <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>
8844 <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>
8849 Special characters in embedded file links (bug 27679)
8851 [[File:Contains & ampersand.jpg]]
8852 [[File:Does not exist.jpg|Title with & ampersand]]
8854 <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>
8855 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
8861 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
8863 Text's been normalized?
8865 <p>Text's been normalized?
8870 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
8872 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
8874 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
8879 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
8881 [http://www.example.org/ ideograms]
8883 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
8888 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
8890 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
8892 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
8916 Bug 31098 Template which includes system messages which includes the template
8920 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
8921 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
8926 Deprecated presentational attributes are converted to css
8929 | valign=top align=left width=100 height=25% | Asdf
8931 <ul type="disc"></ul>
8935 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
8937 <ul style="list-style-type: disc;"></ul>
8942 Bug31490 Turkish: ucfirst 'blah'
8953 Bug31490 Turkish: ucfirst 'ix'
8964 Bug31490 Turkish: lcfirst 'BLAH'
8975 Bug31490 Turkish: ucfırst (with a dotless i)
8981 <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>
8986 Bug31490 ucfırst (with a dotless i) with English language
8992 <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>
8997 Bug 26375: TOC with italics
9002 == ''Lost'' episodes ==
9004 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9006 <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>
9009 <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>
9014 Bug 26375: TOC with bold
9019 == '''should be bold''' then normal text ==
9021 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9023 <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>
9026 <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>
9031 Bug 33845: Headings become cursive in TOC when they contain an image
9036 == Image [[Image:foobar.jpg]] ==
9038 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9040 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
9043 <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>
9048 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
9053 == <blockquote>Quote</blockquote> ==
9055 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9057 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
9060 <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>
9065 Unclosed tags in TOC
9071 <small>Hanc marginis exiguitas non caperet.</small>
9074 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9076 <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>
9079 <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>
9080 <p><small>Hanc marginis exiguitas non caperet.</small>
9086 Multiple tags in TOC
9089 == <i>Foo</i> <b>Bar</b> ==
9091 == <i>Foo</i> <blockquote>Bar</blockquote> ==
9093 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9095 <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>
9096 <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>
9099 <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>
9100 <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>
9105 Tags with parameters in TOC
9108 == <sup class="in-h2">Hello</sup> ==
9110 == <sup class="a > b">Evilbye</sup> ==
9112 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9114 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
9115 <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>
9118 <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>
9119 <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>
9126 == {{int:headline_sample}} ==
9130 Bug 32057: Title needed when expanding <h> nodes.
9136 <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>
9141 Strip marker in urlencode
9143 {{urlencode:x<nowiki/>y}}
9144 {{urlencode:x<nowiki/>y|wiki}}
9145 {{urlencode:x<nowiki/>y|path}}
9172 Strip marker in formatNum
9174 {{formatnum:1<nowiki/>2}}
9175 {{formatnum:1<nowiki/>2|R}}
9183 Strip marker in grammar
9187 {{grammar:elative|foo<nowiki/>bar}}
9194 Strip marker in padleft
9196 {{padleft:|2|x<nowiki/>y}}
9203 Strip marker in padright
9205 {{padright:|2|x<nowiki/>y}}
9212 Strip marker in anchorencode
9214 {{anchorencode:x<nowiki/>y}}
9221 nowiki inside link inside heading (bug 18295)
9223 ==[[foo|x<nowiki>y</nowiki>z]]==
9225 <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>
9230 new support for bdi element (bug 31817)
9232 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
9234 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
9239 Ignore pipe between table row attributes
9243 |- id=foo | style='color: red'
9251 <tr id="foo" style="color: red">
9258 Gallery override link with WikiLink (bug 34852)
9261 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
9264 <ul class="gallery">
9265 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9266 <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>
9267 <div class="gallerytext">
9277 Gallery override link with absolute external link (bug 34852)
9280 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
9283 <ul class="gallery">
9284 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9285 <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>
9286 <div class="gallerytext">
9296 Gallery override link with malicious javascript (bug 34852)
9299 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
9302 <ul class="gallery">
9303 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9304 <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>
9305 <div class="gallerytext">
9320 Try for 100% code coverage