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>
622 External links: non-bracketed
624 Non-bracketed: http://example.com
626 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
631 External links: numbered
633 Numbered: [http://example.com]
634 Numbered: [http://example.net]
635 Numbered: [http://example.com]
637 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
638 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
639 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
644 External links: specified text
646 Specified text: [http://example.com link]
648 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
653 External links: trail
655 Linktrails should not work for external links: [http://example.com link]s
657 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
662 External links: dollar sign in URL
664 http://example.com/1$2345
666 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
671 External links: dollar sign in URL (named)
673 [http://example.com/1$2345]
675 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
680 External links: open square bracket forbidden in URL (bug 4377)
682 http://example.com/1[2345
684 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
689 External links: open square bracket forbidden in URL (named) (bug 4377)
691 [http://example.com/1[2345]
693 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
698 External links: nowiki in URL link text (bug 6230)
700 [http://example.com/ <nowiki>''example site''</nowiki>]
702 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
707 External links: newline forbidden in text (bug 6230 regression check)
709 [http://example.com/ first
712 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
718 External links: protocol-relative URL in brackets
720 [//example.com/ Test]
722 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
727 External links: protocol-relative URL in brackets without text
731 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
736 External links: protocol-relative URL in free text is left alone
745 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
749 <p>foo//example.com/Foo
756 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
758 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
763 External image from https
765 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
767 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
772 Link to non-http image, no img tag
774 Link to non-http image, no img tag: ftp://example.com/test.jpg
776 <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>
781 External links: terminating separator
783 Terminating separator: http://example.com/thing,
785 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
790 External links: intervening separator
792 Intervening separator: http://example.com/1,2,3
794 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
799 External links: old bug with URL in query
801 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
803 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
808 External links: old URL-in-URL bug, mixed protocols
810 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
812 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
817 External links: URL in text
819 URL in text: [http://example.com http://example.com]
821 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
826 External links: Clickable images
828 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
830 <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>
835 External links: raw ampersand
837 Old & use: http://x&y
839 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
844 External links: encoded ampersand
846 Old & use: http://x&y
848 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
853 External links: encoded equals (bug 6102)
855 http://example.com/?foo=bar
857 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
862 External links: [raw ampersand]
864 Old & use: [http://x&y]
866 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
871 External links: [encoded ampersand]
873 Old & use: [http://x&y]
875 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
880 External links: [encoded equals] (bug 6102)
882 [http://example.com/?foo=bar]
884 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
889 External links: [IDN ignored character reference in hostname; strip it right off]
891 [http://e‌xample.com/]
893 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
898 External links: IDN ignored character reference in hostname; strip it right off
900 http://e‌xample.com/
902 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
907 External links: www.jpeg.org (bug 554)
911 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
916 External links: URL within URL (original bug 2)
918 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
920 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
925 BUG 361: URL inside bracketed URL
927 [http://www.example.com/foo http://www.example.com/bar]
929 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
934 BUG 361: URL within URL, not bracketed
936 http://www.example.com/foo?=http://www.example.com/bar
938 <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>
943 BUG 289: ">"-token in URL-tail
945 http://www.example.com/<hello>
947 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
952 BUG 289: literal ">"-token in URL-tail
954 http://www.example.com/<b>html</b>
956 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
961 BUG 289: ">"-token in bracketed URL
963 [http://www.example.com/<hello> stuff]
965 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
970 BUG 289: literal ">"-token in bracketed URL
972 [http://www.example.com/<b>html</b> stuff]
974 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
979 BUG 289: literal double quote at end of URL
981 http://www.example.com/"hello"
983 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
988 BUG 289: literal double quote in bracketed URL
990 [http://www.example.com/"hello" stuff]
992 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
997 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
999 [http://www.example.com test]
1001 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1006 External links: wiki links within external link (Bug 3695)
1008 [http://example.com [[wikilink]] embedded in ext link]
1010 <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>
1015 BUG 787: Links with one slash after the url protocol are invalid
1019 [http:/example.com title]
1021 <p>http:/example.com
1022 </p><p>[http:/example.com title]
1027 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
1029 ''[http://example.com text'']
1030 [http://example.com '''text]'''
1031 ''Something [http://example.com in italic'']
1032 ''Something [http://example.com mixed''''', even bold]'''
1033 '''''Now [http://example.com both''''']
1035 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
1036 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
1037 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
1038 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
1039 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
1045 Bug 4781: %26 in URL
1047 http://www.example.com/?title=AT%26T
1049 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
1054 Bug 4781, 5267: %26 in URL
1056 http://www.example.com/?title=100%25_Bran
1058 <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>
1063 Bug 4781, 5267: %28, %29 in URL
1065 http://www.example.com/?title=Ben-Hur_%281959_film%29
1067 <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>
1073 Bug 4781: %26 in autonumber URL
1075 [http://www.example.com/?title=AT%26T]
1077 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
1082 Bug 4781, 5267: %26 in autonumber URL
1084 [http://www.example.com/?title=100%25_Bran]
1086 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
1091 Bug 4781, 5267: %28, %29 in autonumber URL
1093 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
1095 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
1101 Bug 4781: %26 in bracketed URL
1103 [http://www.example.com/?title=AT%26T link]
1105 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
1110 Bug 4781, 5267: %26 in bracketed URL
1112 [http://www.example.com/?title=100%25_Bran link]
1114 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
1119 Bug 4781, 5267: %28, %29 in bracketed URL
1121 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1123 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
1128 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1130 Some [http://example.com/ pretty ''italics'' and stuff]!
1132 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
1137 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1139 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1141 <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>
1146 External link containing double-single-quotes with no space separating the url from text in italics
1148 [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]].]
1150 <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>
1155 URL-encoding in URL functions (single parameter)
1157 {{localurl:Some page|amp=&}}
1159 <p>/index.php?title=Some_page&amp=&
1164 URL-encoding in URL functions (multiple parameters)
1166 {{localurl:Some page|q=?&=&}}
1168 <p>/index.php?title=Some_page&q=?&amp=&
1179 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1181 Normal text. '''''Bold italic text.''''' Normal text.
1183 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1184 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1190 Unclosed and unmatched quotes
1192 '''''Bold italic text '''with bold deactivated''' in between.'''''
1194 '''''Bold italic text ''with italic deactivated'' in between.'''''
1198 ..spanning two paragraphs (should not work).'''
1200 '''Bold tag left open
1202 ''Italic tag left open
1206 <!-- Unmatching number of opening, closing tags: -->
1207 '''This year''''s election ''should'' beat '''last year''''s.
1209 ''Tom'''s car is bigger than ''Susan'''s.
1211 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1212 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1213 </p><p><b>Bold text..</b>
1214 </p><p>..spanning two paragraphs (should not work).
1215 </p><p><b>Bold tag left open</b>
1216 </p><p><i>Italic tag left open</i>
1218 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1219 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1226 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1229 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1230 # is the bare minimun required by the spec, see:
1231 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1233 A table with no data.
1239 # A table with nothing but a caption is invalid XHTML, we might want to render
1240 # this as <p>caption</p>
1242 A table with nothing but a caption
1250 </caption><tr><td></td></tr></table>
1276 Multiplication table
1278 {| border="1" cellpadding="2"
1279 |+Multiplication table
1281 ! × !! 1 !! 2 !! 3
1299 <table border="1" cellpadding="2">
1300 <caption>Multiplication table
1351 |rowspan=2| Cell 2, row 1 (and 2)
1362 <td rowspan="2"> Cell 2, row 1 (and 2)
1380 {| bgcolor=#ABCDEF border=2
1385 |the original table again
1393 <table bgcolor="#ABCDEF" border="2">
1401 <td>the original table again
1407 Invalid attributes in table cell (bug 1830)
1422 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1425 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1429 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
1430 <td>]" onmouseover="alert(document.cookie)">test
1439 Indented table markup mixed with indented pre content (proposed in bug 6200)
1465 Plain link, capitalized
1469 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1474 Plain link, uncapitalized
1478 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1485 [[Main Page|The Main Page]]
1487 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1496 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1501 Broken link with fragment
1503 [[Zigzagzogzagzig#zug]]
1505 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1510 Special page link with fragment
1512 [[Special:Version#anchor]]
1514 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1519 Nonexistent special page link with fragment
1521 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1523 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1530 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1532 <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>
1539 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1541 <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>!!!
1546 Link with 3 brackets
1555 Piped link with 3 brackets
1557 [[[main page|the main page]]]
1559 <p>[[[main page|the main page]]]
1564 Link with multiple pipes
1566 [[Main Page|The|Main|Page]]
1568 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1575 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1577 <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>
1582 Piped link to namespace
1584 [[Meta:Disclaimers|The disclaimers]]
1586 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1593 [[Usually caused by a typo (oops}]]
1595 <p>[[Usually caused by a typo (oops}]]
1600 Link containing % (not as a hex sequence)
1604 <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>
1609 Link containing % as a single hex sequence interpreted to char
1613 <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>
1618 Link containing % as a double hex sequence interpreted to hex sequence
1622 <p>[[7%2525 Solution]]
1627 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1628 Example for such a section: == < ==
1630 [[%23%3c]][[%23%3e]]
1632 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1637 Link containing "<#" and ">#" as a hex sequences
1639 [[%3c%23]][[%3e%23]]
1641 <p>[[%3c%23]][[%3e%23]]
1646 Link containing double-single-quotes '' (bug 4598)
1648 [[Lista d''e paise d''o munno]]
1650 <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>
1655 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1657 Some [[Link|pretty ''italics'' and stuff]]!
1659 <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>!
1664 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1666 ''Some [[Link|pretty ''italics'' and stuff]]!
1668 <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>
1673 Link with double quotes in title part (literal) and alternate part (interpreted)
1675 [[File:Denys Savchenko ''Pentecoste''.jpg]]
1679 [[''Pentecoste''|Pentecoste]]
1681 [[''Pentecoste''|''Pentecoste'']]
1683 <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>
1684 </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>
1685 </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>
1686 </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>
1693 [[http://www.example.com]]
1695 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
1700 Plain link to URL with link text
1702 [[http://www.example.com Link text]]
1704 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
1709 Plain link to protocol-relative URL
1711 [[//www.example.com]]
1713 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
1718 Plain link to protocol-relative URL with link text
1720 [[//www.example.com Link text]]
1722 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
1727 # I'm fairly sure the expected result here is wrong.
1728 # We want these to be URL links, not pseudo-pages with URLs for titles....
1729 # However the current output is also pretty screwy.
1732 # I'm changing it to match the current output--it arguably makes more
1733 # sense in the light of the test above. Old expected result was:
1734 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1736 # But I think this test is bordering on "garbage in, garbage out" anyway.
1741 Piped link to URL: [[http://www.example.com|an example URL]]
1743 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
1748 BUG 2: [[page|http://url/]] should link to page, not http://url/
1750 [[Main Page|http://url/]]
1752 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1757 BUG 337: Escaped self-links should be bold
1761 [[Bug462]] [[Bug462]]
1763 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1768 Self-link to section should not be bold
1772 [[Main Page#section]]
1774 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1785 Self-link to numeric title
1791 <p><strong class="selflink">0</strong>
1796 Link to numeric-equivalent title
1802 <p><a href="/wiki/00" title="00">00</a>
1807 <nowiki> inside a link
1809 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1811 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1816 Non-breaking spaces in title
1818 [[ Main Page ]]
1820 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
1825 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
1831 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
1836 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
1842 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
1847 Internal link with en linktrail: no apostrophes (bug 27473)
1853 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
1858 Internal link with ca linktrail with apostrophes (bug 27473)
1864 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
1869 Internal link with kaa linktrail with apostrophes (bug 27473)
1875 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
1880 ### Interwiki links (see maintenance/interwiki.sql)
1884 Inline interwiki link
1886 [[MeatBall:SoftSecurity]]
1888 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1893 Inline interwiki link with empty title (bug 2372)
1897 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
1902 Interwiki link encoding conversion (bug 1636)
1904 *[[Wikipedia:ro:Olteniţa]]
1905 *[[Wikipedia:ro:Olteniţa]]
1907 <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>
1908 </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>
1914 Interwiki link with fragment (bug 2130)
1916 [[MeatBall:SoftSecurity#foo]]
1918 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1933 Double interlanguage link
1944 Interlanguage link, with prefix links
1956 Double interlanguage link, with prefix links (bug 8897)
1983 Incorrecly removing closing slashes from correctly formed XHTML
1985 <br style="clear:both;" />
1987 <p><br style="clear:both;" />
1992 Failing to transform badly formed HTML into correct XHTML
1994 <br style="clear: left;">
1995 <br style="clear: right;">
1996 <br style="clear: both;">
1998 <p><br style="clear: left;" />
1999 <br style="clear: right;" />
2000 <br style="clear: both;" />
2005 Horizontal ruler (should it add that extra space?)
2019 ### Block-level elements
2042 <ol><li>Numbered list
2059 ***#Number on level 4
2061 **#Number on level 3
2062 **#Number on level 3
2067 <ol><li> with numbers
2069 <ul><li> and bullets
2071 <ol><li> and numbers
2073 </li><li>bullets again
2074 <ul><li>bullet level 2
2075 <ul><li>bullet level 3
2076 <ol><li>Number on level 4
2079 </li><li>bullet level 2
2080 <ol><li>Number on level 3
2081 </li><li>Number on level 3
2084 <ol><li>number level 2
2092 List items are not parsed correctly following a <pre> block (bug 785)
2098 <ul><li> <pre>foo</pre>
2099 </li><li> <pre>bar</pre>
2110 Magic Word: {{CURRENTDAY}}
2119 Magic Word: {{CURRENTDAY2}}
2128 Magic Word: {{CURRENTDAYNAME}}
2137 Magic Word: {{CURRENTDOW}}
2146 Magic Word: {{CURRENTMONTH}}
2155 Magic Word: {{CURRENTMONTHABBREV}}
2157 {{CURRENTMONTHABBREV}}
2164 Magic Word: {{CURRENTMONTHNAME}}
2166 {{CURRENTMONTHNAME}}
2173 Magic Word: {{CURRENTMONTHNAMEGEN}}
2175 {{CURRENTMONTHNAMEGEN}}
2182 Magic Word: {{CURRENTTIME}}
2191 Magic Word: {{CURRENTWEEK}} (@bug 4594)
2200 Magic Word: {{CURRENTYEAR}}
2209 Magic Word: {{FULLPAGENAME}}
2211 title=[[User:Ævar Arnfjörð Bjarmason]]
2215 <p>User:Ævar Arnfjörð Bjarmason
2220 Magic Word: {{FULLPAGENAMEE}}
2222 title=[[User:Ævar Arnfjörð Bjarmason]]
2226 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2231 Magic Word: {{NAMESPACE}}
2233 title=[[User:Ævar Arnfjörð Bjarmason]]
2242 Magic Word: {{NAMESPACEE}}
2244 title=[[User:Ævar Arnfjörð Bjarmason]]
2253 Magic Word: {{NUMBEROFFILES}}
2262 Magic Word: {{PAGENAME}}
2264 title=[[User:Ævar Arnfjörð Bjarmason]]
2268 <p>Ævar Arnfjörð Bjarmason
2273 Magic Word: {{PAGENAME}} with metacharacters
2275 title=[['foo & bar = baz']]
2279 <p><i>'foo & bar = baz'</i>
2284 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
2286 title=[[*RFC 1234 http://example.com/]]
2290 <p>*RFC 1234 http://example.com/
2295 Magic Word: {{PAGENAMEE}}
2297 title=[[User:Ævar Arnfjörð Bjarmason]]
2301 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2306 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
2308 title=[[*RFC 1234 http://example.com/]]
2312 <p>*RFC_1234_http://example.com/
2317 Magic Word: {{REVISIONID}}
2326 Magic Word: {{SCRIPTPATH}}
2335 Magic Word: {{SERVER}}
2339 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
2344 Magic Word: {{SERVERNAME}}
2353 Magic Word: {{SITENAME}}
2362 Namespace 1 {{ns:1}}
2371 Namespace 1 {{ns:01}}
2380 Namespace 0 {{ns:0}} (bug 4783)
2388 Namespace 0 {{ns:00}} (bug 4783)
2396 Namespace -1 {{ns:-1}}
2405 Namespace User {{ns:User}}
2414 Namespace User talk {{ns:User_talk}}
2423 Namespace User talk {{ns:uSeR tAlK}}
2432 Namespace File {{ns:File}}
2441 Namespace File {{ns:Image}}
2450 Namespace (lang=de) Benutzer {{ns:User}}
2461 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2467 <p>Benutzer Diskussion
2475 {{urlencode:hi world?!}}
2476 {{urlencode:hi world?!|WIKI}}
2477 {{urlencode:hi world?!|PATH}}
2478 {{urlencode:hi world?!|QUERY}}
2491 Magic links: internal link to RFC (bug 479)
2495 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2500 Magic links: RFC (bug 479)
2504 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
2509 Magic links: ISBN (bug 1937)
2513 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2518 Magic links: PMID incorrectly converts space to underscore
2522 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
2531 Nonexistent template
2533 {{thistemplatedoesnotexist}}
2535 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2542 This is a test template
2550 <p>This is a test template
2555 Template with explicit namespace
2559 <p>This is a test template
2567 This is a test template with parameter {{{param}}}
2573 {{paramtest|param=foo}}
2575 <p>This is a test template with parameter foo
2580 Template:paramtestnum
2586 Template unnamed parameter
2588 {{paramtestnum|Main Page|the main page}}
2590 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2595 Template:templatesimple
2601 Template:templateredirect
2603 #redirect [[Template:templatesimple]]
2607 Template:templateasargtestnum
2613 Template:templateasargtest
2615 {{template{{{templ}}}}}
2619 Template:templateasargtest2
2625 Template with template name as unnamed argument
2627 {{templateasargtestnum|templatesimple}}
2634 Template with template name as argument
2636 {{templateasargtest|templ=simple}}
2643 Template with template name as argument (2)
2645 {{templateasargtest2|templ=templatesimple}}
2652 Template:templateasargtestdefault
2654 {{{{{templ|templatesimple}}}}}
2664 Template with default value
2666 {{templateasargtestdefault}}
2673 Template with default value (value set)
2675 {{templateasargtestdefault|templ=templa}}
2684 {{templateredirect}}
2691 Template with argument in separate line
2693 {{ templateasargtest |
2701 Template with complex template as argument
2704 param ={{ templateasargtest |
2707 <p>This is a test template with parameter (test)
2712 Template with thumb image (with link in description)
2715 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2717 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>
2722 Template:complextemplate
2724 {{{1}}} {{paramtest|
2725 param ={{{param}}}}}
2729 Template with complex arguments
2732 param ={{ templateasargtest |
2733 templ = simple }}|[[Template:complextemplate|link]]}}
2735 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2740 BUG 553: link with two variables in a piped link
2743 |[[{{{1}}}|{{{2}}}]]
2748 <td>[[{{{1}}}|{{{2}}}]]
2754 Magic variable as template parameter
2756 {{paramtest|param={{SITENAME}}}}
2758 <p>This is a test template with parameter MediaWiki
2765 [[{{{param}}}|link]]
2769 Template parameter as link source
2771 {{linktest|param=Main Page}}
2773 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2781 including another template, {{paramtest|param={{{arg}}}}}
2785 Template passing argument to another template
2787 {{paramtest2|arg='hmm'}}
2789 <p>including another template, This is a test template with parameter 'hmm'
2800 Template as link source
2804 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2822 Template infinite loop
2826 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
2831 Template from main namespace
2850 BUG 529: Template with table, not included at beginning of line
2869 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2889 BUG 41: Template parameters shown as broken links
2901 ''None'' of '''this''' should be
2903 but rather passed unmodified
2907 # hmm, fix this or just deprecate msgnw and document its behavior?
2913 {{msgnw:MSGNW test}}
2915 <p>''None'' of '''this''' should be
2917 but rather passed unmodified
2925 {{int:youhavenewmessages|lots of money|not!}}
2927 <p>You have lots of money (not!).
2934 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2938 <includeonly> and <noinclude> being included
2949 <onlyinclude>Foo</onlyinclude>bar
2953 <onlyinclude> being included
2965 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2969 <onlyinclude> and <includeonly> being included
2978 <includeonly> and <noinclude> on a page
2980 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2987 <onlyinclude> on a page
2989 <onlyinclude>Foo</onlyinclude>bar
2996 Template:Includeonly section
2999 ==Includeonly section==
3005 Bug 6563: Edit link generation for section shown by <includeonly>
3007 {{includeonly section}}
3009 <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>
3010 <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>
3014 # Uses same input as the contents of [[Template:Includeonly section]]
3016 Bug 6563: Section extraction for section shown by <includeonly>
3021 ==Includeonly section==
3029 Bug 6563: Edit link generation for section suppressed by <includeonly>
3032 ==Includeonly section==
3036 <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>
3041 Bug 6563: Section extraction for section suppressed by <includeonly>
3046 ==Includeonly section==
3054 ### Pre-save transform tests
3057 pre-save transform: subst:
3063 This is a test template
3067 pre-save transform: normal template
3077 pre-save transform: nonexistent template
3081 {{thistemplatedoesnotexist}}
3083 {{thistemplatedoesnotexist}}
3088 pre-save transform: subst magic variables
3097 # This is bug 89, which I fixed. -- wtm
3099 pre-save transform: subst: templates with parameters
3103 {{subst:paramtest|param="something else"}}
3105 This is a test template with parameter "something else"
3111 <nowiki>'''not wiki'''</nowiki>
3115 pre-save transform: nowiki in subst (bug 1188)
3119 {{subst:nowikitest}}
3121 <nowiki>'''not wiki'''</nowiki>
3126 Template:commenttest
3128 This template has <!-- a comment --> in it.
3132 pre-save transform: comment in subst (bug 1936)
3136 {{subst:commenttest}}
3138 This template has <!-- a comment --> in it.
3142 pre-save transform: unclosed tag
3146 <nowiki>'''not wiki'''
3148 <nowiki>'''not wiki'''
3152 pre-save transform: mixed tag case
3156 <NOwiki>'''not wiki'''</noWIKI>
3158 <NOwiki>'''not wiki'''</noWIKI>
3162 pre-save transform: unclosed comment in <nowiki>
3166 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3168 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
3174 <span onmouseover="alert('crap')">Oh no</span>
3178 (confirming safety of fix for subst bug 1936)
3180 {{Template:dangerous}}
3182 <p><span>Oh no</span>
3187 pre-save transform: comment containing gallery (bug 5024)
3191 <!-- <gallery>data</gallery> -->
3193 <!-- <gallery>data</gallery> -->
3197 pre-save transform: comment containing extension
3201 <!-- <tag>data</tag> -->
3203 <!-- <tag>data</tag> -->
3207 pre-save transform: comment containing nowiki
3211 <!-- <nowiki>data</nowiki> -->
3213 <!-- <nowiki>data</nowiki> -->
3217 pre-save transform: <noinclude> in subst (bug 3298)
3227 pre-save transform: <onlyinclude> in subst (bug 3298)
3239 {{<includeonly>subst:</includeonly>Includes}}
3243 Template:SafeSubstTest
3245 {{<includeonly>safesubst:</includeonly>Includes}}
3249 bug 22297: safesubst: works during PST
3253 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3259 bug 22297: safesubst: works during normal parse
3268 subst: does not work during normal parse
3272 <p>{{subst:Includes}}
3277 pre-save transform: context links ("pipe trick")
3281 [[Article (context)|]]
3284 [[Bar:Article (context)|]]
3285 [[:Bar:Article (context)|]]
3287 [[|Article (context)]]
3291 [[Article (context)|Article]]
3292 [[Bar:Article|Article]]
3293 [[:Bar:Article|Article]]
3294 [[Bar:Article (context)|Article]]
3295 [[:Bar:Article (context)|Article]]
3297 [[Article (context)]]
3298 [[Bar:X (Y) Z|X (Y) Z]]
3299 [[:Bar:X (Y) Z|X (Y) Z]]
3303 pre-save transform: context links ("pipe trick") with interwiki prefix
3307 [[interwiki:Article|]]
3308 [[:interwiki:Article|]]
3309 [[interwiki:Bar:Article|]]
3310 [[:interwiki:Bar:Article|]]
3312 [[interwiki:Article|Article]]
3313 [[:interwiki:Article|Article]]
3314 [[interwiki:Bar:Article|Bar:Article]]
3315 [[:interwiki:Bar:Article|Bar:Article]]
3319 pre-save transform: context links ("pipe trick") with parens in title
3321 pst title=[[Somearticle (context)]]
3325 [[Article (context)|Article]]
3329 pre-save transform: context links ("pipe trick") with comma in title
3331 pst title=[[Someplace, Somewhere]]
3334 [[Otherplace, Elsewhere|]]
3335 [[Otherplace, Elsewhere, Anywhere|]]
3337 [[Otherplace, Somewhere|Otherplace]]
3338 [[Otherplace, Elsewhere|Otherplace]]
3339 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3343 pre-save transform: context links ("pipe trick") with parens and comma
3345 pst title=[[Someplace (IGNORED), Somewhere]]
3348 [[Otherplace (place), Elsewhere|]]
3350 [[Otherplace, Somewhere|Otherplace]]
3351 [[Otherplace (place), Elsewhere|Otherplace]]
3355 pre-save transform: context links ("pipe trick") with comma and parens
3357 pst title=[[Who, me? (context)]]
3360 [[Me, Myself, and I (1937 song)|]]
3362 [[Yes, you. (context)|Yes, you.]]
3363 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3367 pre-save transform: context links ("pipe trick") with namespace
3369 pst title=[[Ns:Somearticle]]
3373 [[Ns:Article|Article]]
3377 pre-save transform: context links ("pipe trick") with namespace and parens
3379 pst title=[[Ns:Somearticle (context)]]
3383 [[Ns:Article (context)|Article]]
3387 pre-save transform: context links ("pipe trick") with namespace and comma
3389 pst title=[[Ns:Somearticle, Context, Whatever]]
3393 [[Ns:Article, Context, Whatever|Article]]
3397 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3399 pst title=[[Ns:Somearticle, Context (context)]]
3403 [[Ns:Article (context)|Article]]
3407 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3409 pst title=[[Ns:Somearticle (IGNORED), Context]]
3413 [[Ns:Article, Context|Article]]
3417 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
3421 [[Article(context)|]]
3422 [[Bar:Article(context)|]]
3423 [[:Bar:Article(context)|]]
3424 [[|Article(context)]]
3428 [[Article(context)|Article]]
3429 [[Bar:Article(context)|Article]]
3430 [[:Bar:Article(context)|Article]]
3431 [[Article(context)]]
3432 [[Bar:X (Y) Z|X (Y) Z]]
3433 [[:Bar:X (Y) Z|X (Y) Z]]
3437 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
3441 [[Article (context)|]]
3442 [[Bar:Article (context)|]]
3443 [[:Bar:Article (context)|]]
3444 [[|Article (context)]]
3448 [[Article (context)|Article]]
3449 [[Bar:Article (context)|Article]]
3450 [[:Bar:Article (context)|Article]]
3451 [[Article (context)]]
3452 [[Bar:X (Y) Z|X (Y) Z]]
3453 [[:Bar:X (Y) Z|X (Y) Z]]
3457 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
3461 [[Article(context)|]]
3462 [[Bar:Article(context)|]]
3463 [[:Bar:Article(context)|]]
3464 [[|Article(context)]]
3468 [[Article(context)|Article]]
3469 [[Bar:Article(context)|Article]]
3470 [[:Bar:Article(context)|Article]]
3471 [[Article(context)]]
3473 [[:Bar:X(Y)Z|X(Y)Z]]
3477 pre-save transform: trim trailing empty lines
3481 Empty lines are trimmed
3487 Empty lines are trimmed
3491 pre-save transform: Signature expansion
3496 * <noinclude>~~~</noinclude>
3497 * <includeonly>~~~</includeonly>
3498 * <onlyinclude>~~~</onlyinclude>
3500 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
3501 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
3502 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
3503 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
3508 pre-save transform: Signature expansion in nowiki tags (bug 93)
3514 <nowiki>~~~~</nowiki>
3516 <includeonly><nowiki>~~~~</nowiki></includeonly>
3518 <noinclude><nowiki>~~~~</nowiki></noinclude>
3520 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3522 {{subst:Foo}} shall be converted to FOO
3524 As well as inside noinclude/onlyinclude
3525 <noinclude>{{subst:Foo}}</noinclude>
3526 <onlyinclude>{{subst:Foo}}</onlyinclude>
3528 But not inside includeonly
3529 <includeonly>{{subst:Foo}}</includeonly>
3533 <nowiki>~~~~</nowiki>
3535 <includeonly><nowiki>~~~~</nowiki></includeonly>
3537 <noinclude><nowiki>~~~~</nowiki></noinclude>
3539 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
3541 FOO shall be converted to FOO
3543 As well as inside noinclude/onlyinclude
3544 <noinclude>FOO</noinclude>
3545 <onlyinclude>FOO</onlyinclude>
3547 But not inside includeonly
3548 <includeonly>{{subst:Foo}}</includeonly>
3552 ### Message transform tests
3555 message transform: magic variables
3565 message transform: should not transform wiki markup
3575 message transform: <noinclude> in transcluded template (bug 4926)
3585 message transform: <onlyinclude> in transcluded template (bug 4926)
3595 {{#special:}} page name, known
3599 {{#special:Recentchanges}}
3601 Special:RecentChanges
3605 {{#special:}} page name with subpage, known
3609 {{#special:Recentchanges/param}}
3611 Special:RecentChanges/param
3615 {{#special:}} page name, unknown
3619 {{#special:foobarnonexistent}}
3621 No such special page
3630 [[Image:foobar.jpg]]
3632 <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>
3639 [[Image:foobar.jpg|right]]
3641 <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>
3646 Simple image (using File: namespace, now canonical)
3650 <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>
3657 [[Image:foobar.jpg|right|Caption text]]
3659 <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>
3664 Image with link parameter, wiki target
3666 [[Image:foobar.jpg|link=Target page]]
3668 <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>
3673 Image with link parameter, URL target
3675 [[Image:foobar.jpg|link=http://example.com/]]
3677 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3682 Image with link parameter, wgExternalLinkTarget
3684 [[Image:foobar.jpg|link=http://example.com/]]
3686 wgExternalLinkTarget='foobar'
3688 <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>
3693 Image with link parameter, wgExternalLinkTarget, unnamed parameter
3695 [[Image:foobar.jpg|link=http://example.com/|Title]]
3697 wgExternalLinkTarget='foobar'
3699 <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>
3704 Image with empty link parameter
3706 [[Image:foobar.jpg|link=]]
3708 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3713 Image with link parameter (wiki target) and unnamed parameter
3715 [[Image:foobar.jpg|link=Target page|Title]]
3717 <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>
3722 Image with link parameter (URL target) and unnamed parameter
3724 [[Image:foobar.jpg|link=http://example.com/|Title]]
3726 <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>
3731 Thumbnail image with link parameter
3733 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
3735 <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>
3740 Image with frame and link
3742 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3744 <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>
3749 Image with frame and link and explicit alt
3751 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3753 <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>
3758 Image with wiki markup in implicit alt
3760 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3762 <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>
3767 Image with wiki markup in explicit alt
3769 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3771 <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>
3776 Link to image page- image page normally doesn't exists, hence edit link
3777 Add test with existing image page
3778 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3782 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3787 bug 18784 Link to non-existent image page with caption should use caption as link text
3789 [[:Image:test|caption]]
3791 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
3796 Frameless image caption with a free URL
3798 [[Image:foobar.jpg|http://example.com]]
3800 <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>
3805 Thumbnail image caption with a free URL
3807 [[Image:foobar.jpg|thumb|http://example.com]]
3809 <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>
3814 Thumbnail image caption with a free URL and explicit alt
3816 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3818 <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>
3823 BUG 1887: A ISBN with a thumbnail
3825 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3827 <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>
3832 BUG 1887: A RFC with a thumbnail
3834 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3836 <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>
3841 BUG 1887: A mailto link with a thumbnail
3843 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3845 <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>
3849 # Pending resolution to bug 368
3851 BUG 648: Frameless image caption with a link
3853 [[Image:foobar.jpg|text with a [[link]] in it]]
3855 <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>
3860 BUG 648: Frameless image caption with a link (suffix)
3862 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3864 <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>
3869 BUG 648: Frameless image caption with an interwiki link
3871 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3873 <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>
3878 BUG 648: Frameless image caption with a piped interwiki link
3880 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3882 <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>
3887 Escape HTML special chars in image alt text
3889 [[Image:foobar.jpg|& < > "]]
3891 <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>
3896 BUG 499: Alt text should have Ӓ, not &1234;
3898 [[Image:foobar.jpg|♀]]
3900 <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>
3905 Broken image caption with link
3907 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3909 <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.
3914 Image caption containing another image
3916 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3918 <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>
3923 Image caption containing a newline
3925 [[Image:Foobar.jpg|This
3928 <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>
3934 Bug 3090: External links other than http: in image captions
3936 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3938 <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>
3945 #REDIRECT [[File:Barfoo.jpg]]
3951 [[Image:Barfoo.jpg]]
3953 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
3958 Missing image with uploads disabled
3962 [[Image:Foobaz.jpg]]
3964 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
3973 Subpage test/subpage
3981 subpage title=[[Subpage test]]
3985 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3990 Subpage noslash link
3992 subpage title=[[Subpage test]]
3996 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
4005 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
4010 BUG 561: {{/Subpage}}
4012 subpage title=[[Page]]
4016 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
4024 Category:MediaWiki User's Guide
4032 [[:Category:MediaWiki User's Guide]]
4034 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
4043 [[Category:MediaWiki User's Guide]]
4045 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
4049 PAGESINCATEGORY invalid title fatal (r33546 fix)
4051 {{PAGESINCATEGORY:<bogus>}}
4058 ### Inter-language links
4061 Inter-language links
4067 [[zh:食品]]
4069 es:Alimento fr:Nourriture zh:食品
4076 Basic section headings
4083 ===Smaller headline===
4086 <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>
4089 <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>
4092 <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>
4098 Section headings with TOC
4101 === Subheadline 1 ===
4102 ===== Skipping a level =====
4103 ====== Skipping a level ======
4107 ===Another headline===
4109 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4111 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
4113 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
4115 <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>
4117 <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>
4124 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
4126 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
4131 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
4132 <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>
4133 <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>
4134 <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>
4135 <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>
4138 <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>
4142 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
4144 Handling of sections up to level 6 and beyond
4147 == Level 2 Heading==
4148 === Level 3 Heading===
4149 ==== Level 4 Heading====
4150 ===== Level 5 Heading=====
4151 ====== Level 6 Heading======
4152 ======= Level 7 Heading=======
4153 ======== Level 8 Heading========
4154 ========= Level 9 Heading=========
4155 ========== Level 10 Heading==========
4157 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4159 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
4161 <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>
4163 <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>
4165 <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>
4167 <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>
4169 <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>
4170 <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>
4171 <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>
4172 <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>
4173 <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>
4186 <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>
4187 <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>
4188 <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>
4189 <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>
4190 <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>
4191 <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>
4192 <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>
4193 <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>
4194 <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>
4195 <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>
4200 TOC regression (bug 9764)
4204 ==== title 1.1.1 ====
4209 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4211 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4213 <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>
4215 <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>
4218 <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>
4221 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4223 <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>
4228 <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>
4229 <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>
4230 <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>
4231 <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>
4232 <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>
4233 <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>
4238 TOC with wgMaxTocLevel=3 (bug 6204)
4244 ==== title 1.1.1 ====
4249 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4251 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4253 <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>
4254 <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>
4257 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
4259 <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>
4264 <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>
4265 <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>
4266 <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>
4267 <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>
4268 <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>
4269 <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>
4274 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
4280 ====Section 1.1.1====
4281 ====Section 1.1.1.1====
4284 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4286 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
4288 <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>
4291 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
4294 <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>
4295 <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>
4296 <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>
4297 <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>
4298 <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>
4304 Resolving duplicate section names
4309 <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>
4310 <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>
4315 Resolving duplicate section names with differing case (bug 10721)
4320 <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>
4321 <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>
4333 Template with sections, __NOTOC__
4340 <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>
4341 <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>
4342 <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>
4343 <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>
4348 __NOEDITSECTION__ keyword
4354 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
4355 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
4360 Link inside a section heading
4362 ==Section with a [[Main Page|link]] in it==
4364 <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>
4369 TOC regression (bug 12077)
4376 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4378 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4380 <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>
4383 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4386 <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>
4387 <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>
4388 <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>
4393 BUG 1219 URL next to image (good)
4395 http://example.com [[Image:foobar.jpg]]
4397 <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>
4402 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4405 The line above must have a trailing space!
4408 But just in case it doesn't...
4410 <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>
4411 <p>The line above must have a trailing space!
4413 <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>
4414 <p>But just in case it doesn't...
4419 Header with special characters (bug 25462)
4421 The tooltips shall not show entities to the user (ie. be double escaped)
4438 <p>The tooltips shall not show entities to the user (ie. be double escaped)
4440 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4442 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
4443 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
4444 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
4445 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
4446 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
4449 <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>
4452 <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>
4455 <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>
4458 <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>
4461 <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>
4467 BUG 1219 URL next to image (broken)
4469 http://example.com[[Image:foobar.jpg]]
4471 <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>
4476 Bug 1186 news: in the middle of text
4478 http://en.wikinews.org/wiki/Wikinews:Workplace
4480 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4486 Namespaced link must have a title
4495 Namespaced link must have a title (bad fragment version)
4497 [[Project:#fragment]]
4499 <p>[[Project:#fragment]]
4505 div with no attributes
4507 <div>HTML rocks</div>
4509 <div>HTML rocks</div>
4514 div with double-quoted attribute
4516 <div id="rock">HTML rocks</div>
4518 <div id="rock">HTML rocks</div>
4523 div with single-quoted attribute
4525 <div id='rock'>HTML rocks</div>
4527 <div id="rock">HTML rocks</div>
4532 div with unquoted attribute
4534 <div id=rock>HTML rocks</div>
4536 <div id="rock">HTML rocks</div>
4541 div with illegal double attributes
4543 <div id="a" id="b">HTML rocks</div>
4545 <div id="b">HTML rocks</div>
4550 HTML multiple attributes correction
4552 <p class="error" class="awesome">Awesome!</p>
4554 <p class="awesome">Awesome!</p>
4559 Table multiple attributes correction
4562 !+ class="error" class="awesome"| status
4567 <th class="awesome"> status
4575 <DIV ID="x">HTML ROCKS</DIV>
4577 <div id="x">HTML ROCKS</div>
4583 text with amp in the middle of nowhere
4587 <p>Remember AT&T?
4592 text with character entity: eacute
4594 I always thought é was a cute letter.
4596 <p>I always thought é was a cute letter.
4601 text with undefined character entity: xacute
4603 I always thought &xacute; was a cute letter.
4605 <p>I always thought &xacute; was a cute letter.
4617 [[Media:Foobar.jpg]]
4619 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4624 Media link with text
4626 [[Media:Foobar.jpg|A neat file to look at]]
4628 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4632 # FIXME: this is still bad HTML tag nesting
4634 Media link with nasty text
4635 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4637 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4639 <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>
4644 Media link to nonexistent file (bug 1702)
4646 [[Media:No such.jpg]]
4648 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4653 Image link to nonexistent file (bug 1850 - good)
4655 [[Image:No such.jpg]]
4657 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4662 :Image link to nonexistent file (bug 1850 - bad)
4664 [[:Image:No such.jpg]]
4666 <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>
4673 Character reference normalization in link text (bug 1938)
4675 [[Main Page|this&that]]
4677 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4684 Test for unicode normalization
4686 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4690 (bug 19451) Links should refer to the normalized form.
4698 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4699 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4700 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4701 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4702 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4707 Empty attribute crash test (bug 2067)
4709 <font color="">foo</font>
4711 <p><font color="">foo</font>
4716 Empty attribute crash test single-quotes (bug 2067)
4718 <font color=''>foo</font>
4720 <p><font color="">foo</font>
4725 Attribute test: equals, then nothing
4727 <font color=>foo</font>
4734 Attribute test: unquoted value
4736 <font color=x>foo</font>
4738 <p><font color="x">foo</font>
4743 Attribute test: unquoted but illegal value (hash)
4745 <font color=#x>foo</font>
4747 <p><font color="#x">foo</font>
4752 Attribute test: no value
4754 <font color>foo</font>
4756 <p><font color="color">foo</font>
4761 Bug 2095: link with three closing brackets
4765 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
4770 Bug 2095: link with pipe and three closing brackets
4774 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4779 Bug 2095: link with pipe and three closing brackets, version 2
4781 [[Main Page|[http://example.com/]]]
4783 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4793 Template:Dangerous attribute
4795 " onmouseover="alert(document.cookie)
4799 Template:Dangerous style attribute
4801 border-size: expression(alert(document.cookie))
4807 <div style="float: right; {{{1}}}">Magic div</div>
4811 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4813 <div title="{{test}}"></div>
4815 <div title="This is a test template"></div>
4820 Bug 2304: HTML attribute safety (dangerous template; 2309)
4822 <div title="{{dangerous attribute}}"></div>
4824 <div title=""></div>
4829 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4831 <div style="{{dangerous style attribute}}"></div>
4833 <div style="/* insecure input */"></div>
4838 Bug 2304: HTML attribute safety (safe parameter; 2309)
4840 {{div style|width: 200px}}
4842 <div style="float: right; width: 200px">Magic div</div>
4847 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4849 {{div style|width: expression(alert(document.cookie))}}
4851 <div style="/* insecure input */">Magic div</div>
4856 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4858 {{div style|"><script>alert(document.cookie)</script>}}
4860 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4865 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4867 {{div style|" ><script>alert(document.cookie)</script>}}
4869 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4874 Bug 2304: HTML attribute safety (link)
4876 <div title="[[Main Page]]"></div>
4878 <div title="[[Main Page]]"></div>
4883 Bug 2304: HTML attribute safety (italics)
4885 <div title="''foobar''"></div>
4887 <div title="''foobar''"></div>
4892 Bug 2304: HTML attribute safety (bold)
4894 <div title="'''foobar'''"></div>
4896 <div title="'''foobar'''"></div>
4902 Bug 2304: HTML attribute safety (ISBN)
4904 <div title="ISBN 1234567890"></div>
4906 <div title="ISBN 1234567890"></div>
4911 Bug 2304: HTML attribute safety (RFC)
4913 <div title="RFC 1234"></div>
4915 <div title="RFC 1234"></div>
4920 Bug 2304: HTML attribute safety (PMID)
4922 <div title="PMID 1234567890"></div>
4924 <div title="PMID 1234567890"></div>
4929 Bug 2304: HTML attribute safety (web link)
4931 <div title="http://example.com/"></div>
4933 <div title="http://example.com/"></div>
4938 Bug 2304: HTML attribute safety (named web link)
4940 <div title="[http://example.com/ link]"></div>
4942 <div title="[http://example.com/ link]"></div>
4947 Bug 3244: HTML attribute safety (extension; safe)
4949 <div style="<nowiki>background:blue</nowiki>"></div>
4951 <div style="background:blue"></div>
4956 Bug 3244: HTML attribute safety (extension; unsafe)
4958 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4960 <div style="/* insecure input */"></div>
4964 # More MSIE fun discovered by Tom Gilder
4967 MSIE CSS safety test: spurious slash
4969 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4971 <div style="/* insecure input */">evil</div>
4976 MSIE CSS safety test: hex code
4978 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4980 <div style="/* insecure input */">evil</div>
4985 MSIE CSS safety test: comment in url
4987 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4989 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4994 MSIE CSS safety test: comment in expression
4996 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4998 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
5004 Table attribute legitimate extension
5007 !+ style="<nowiki>color:blue</nowiki>"| status
5012 <th style="color:blue"> status
5018 Table attribute safety
5021 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
5026 <th style="/* insecure input */"> status
5032 CSS line continuation 1
5034 <div style="background-image: u\ rl(test.jpg);"></div>
5036 <div style="/* insecure input */"></div>
5041 CSS line continuation 2
5043 <div style="background-image: u\ rl(test.jpg); "></div>
5045 <div style="/* insecure input */"></div>
5056 Expansion of multi-line templates in attribute values (bug 6255)
5058 <div style="background: {{identity|#00FF00}}">-</div>
5060 <div style="background: #00FF00">-</div>
5066 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
5068 <div style="background:
5071 <div style="background: #00FF00">-</div>
5076 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
5078 <div style="background: #00FF00">-</div>
5080 <div style="background: #00FF00">-</div>
5085 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
5088 Parser hook: empty input
5101 Parser hook: empty input using terminated empty elements
5114 Parser hook: empty input using terminated empty elements (space before)
5127 Parser hook: basic input
5141 Parser hook: case insensitive
5155 Parser hook: case insensitive, redux
5168 Parser hook: nested tags
5172 <tag><tag></tag></tag>
5183 Parser hook: basic arguments
5185 <tag width=200 height = "100" depth = '50' square></tag>
5204 Parser hook: argument containing a forward slash (bug 5344)
5206 <tag filename='/tmp/bla'></tag>
5212 string(8) "/tmp/bla"
5219 Parser hook: empty input using terminated empty elements (bug 2374)
5233 # </tag> should be output literally since there is no matching tag that begins it
5235 Parser hook: basic arguments using terminated empty elements (bug 2374)
5237 <tag width=200 height = "100" depth = '50' square/>
5260 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
5264 Parser hook: static parser hook not inside a comment
5266 <statictag>hello, world</statictag>
5267 <statictag action=flush/>
5275 Parser hook: static parser hook inside a comment
5277 <!-- <statictag>hello, world</statictag> -->
5278 <statictag action=flush/>
5284 # Nested template calls; this case was broken by Parser.php rev 1.506,
5288 Template:One-parameter
5290 (My parameter is: {{{1}}})
5294 Template:Map-one-parameter
5300 Nested template calls
5302 {{Map-one-parameter|One-parameter|param}}
5304 <p>(My parameter is: param)
5313 Sanitizer: Closing of open tags
5315 <s></s><table></table>
5317 <s></s><table></table>
5322 Sanitizer: Closing of open but not closed tags
5331 Sanitizer: Closing of closed but not open tags
5340 Sanitizer: Closing of closed but not open table tags
5342 Table not started</td></tr></table>
5344 <p>Table not started</td></tr></table>
5349 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
5351 <span id="æ: v">byte</span>[[#æ: v|backlink]]
5353 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
5358 Sanitizer: Validating the contents of the id attribute (bug 4515)
5364 Something, but definitely not <br id="9" />...
5368 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
5372 <br id="foo" /><br id="foo" />
5374 Something need to be done. foo-2 ?
5378 Language converter: output gets cut off unexpectedly (bug 5757)
5382 this bit is safe: }-
5384 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
5386 then we get cut off here: }-
5388 all additional text is vanished
5390 <p>this bit is safe: }-
5391 </p><p>but if we add a conversion instance: xxx
5392 </p><p>then we get cut off here: }-
5393 </p><p>all additional text is vanished
5398 Self closed html pairs (bug 5487)
5401 <center><font id="bug" />Centered text</center>
5402 <div><font id="bug2" />In div text</div>
5404 <center><font id="bug" />Centered text</center>
5405 <div><font id="bug2" />In div text</div>
5414 Punctuation: nbsp before exclamation
5418 <p>C'est grave !
5423 Punctuation: CSS !important (bug 11874)
5425 <div style="width:50% !important">important</div>
5427 <div style="width:50% !important">important</div>
5432 Punctuation: CSS ! important (bug 11874; with space after)
5434 <div style="width:50% ! important">important</div>
5436 <div style="width:50% ! important">important</div>
5442 HTML bullet list, closed tags (bug 5497)
5457 HTML bullet list, unclosed tags (bug 5497)
5474 HTML ordered list, closed tags (bug 5497)
5489 HTML ordered list, unclosed tags (bug 5497)
5506 HTML nested bullet list, closed tags (bug 5497)
5531 HTML nested bullet list, open tags (bug 5497)
5556 HTML nested ordered list, closed tags (bug 5497)
5581 HTML nested ordered list, open tags (bug 5497)
5606 HTML ordered list item with parameters oddity
5608 <ol><li id="fragment">One</li></ol>
5610 <ol><li id="fragment">One</li></ol>
5615 bug 5918: autonumbering
5617 [http://first/] [http://second] [ftp://ftp]
5621 [mailto:enclosed@mail.tld With target]
5623 [mailto:enclosed@mail.tld]
5625 mailto:inline@mail.tld
5627 <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>
5628 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
5629 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
5630 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
5631 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
5637 # Security and HTML correctness
5638 # From Nick Jenkins' fuzz testing
5642 Fuzz testing: Parser13
5657 Fuzz testing: Parser14
5662 <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>
5663 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5665 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5672 Fuzz testing: Parser14-table
5677 <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>
5678 <table style="__TOC__">
5684 # Known to produce bogus xml (extra </td>)
5686 Fuzz testing: Parser16
5706 Fuzz testing: Parser21
5709 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5714 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5724 Fuzz testing: Parser22
5726 http://===r:::https://b
5730 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
5738 # Known to produce bad XML for now
5740 Fuzz testing: Parser24
5747 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5748 <br style="onmouseover='alert(document.cookie);' " />
5750 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5755 <u class="|">}}}} >
5756 <br style="onmouseover='alert(document.cookie);'" />
5758 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5767 # Note: the current result listed for this is not what the original one was,
5768 # but the original bug was JavaScript injection, which is fixed in any case.
5769 # It's not clear that the original result listed was any more correct than the
5770 # current one. Original result:
5773 # <li class="||">
5774 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5776 Fuzz testing: Parser25 (bug 6055)
5782 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5784 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5789 Fuzz testing: URL adjacent extension (with space, clean)
5792 http://example.com <nowiki>junk</nowiki>
5794 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
5799 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5802 http://example.com<nowiki>junk</nowiki>
5804 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
5809 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5812 http://example.com<pre>junk</pre>
5814 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
5819 Fuzz testing: image with bogus manual thumbnail
5821 [[Image:foobar.jpg|thumbnail= ]]
5823 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5828 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5830 <pre dir=" "></pre>
5832 <pre dir=" "></pre>
5837 Parsing optional HTML elements (Bug 6171)
5842 <td> Some tabular data</td>
5843 <td> More tabular data ...
5844 <td> And yet som tabular data</td>
5850 <td> Some tabular data</td>
5851 <td> More tabular data ...
5852 </td><td> And yet som tabular data</td>
5859 Correct handling of <td>, <tr> (Bug 6171)
5864 <td> Some tabular data</td>
5865 <td> More tabular data ...</td>
5866 <td> And yet som tabular data</td>
5872 <td> Some tabular data</td>
5873 <td> More tabular data ...</td>
5874 <td> And yet som tabular data</td>
5882 Parsing crashing regression (fr:JavaScript)
5886 <p></body></x>
5891 Inline wiki vs wiki block nesting
5897 <p><b>Bold paragraph</b>
5898 </p><p>New wiki paragraph
5903 Inline HTML vs wiki block nesting
5911 <p><b>Bold paragraph</b>
5912 </p><p>New wiki paragraph
5916 # Original result was this:
5917 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5919 # While that might be marginally more intuitive, maybe, the six-apostrophe
5920 # construct is clearly pathological and the result stated here (which is what
5921 # the parser actually does) is about as reasonable as anything.
5923 Mixing markup for italics and bold
5926 '''bold''''''bold''bolditalics'''''
5928 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5936 Article for special page transclusion test
5940 Special page transclusion
5943 {{Special:Prefixindex/Xyzzyx}}
5947 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5952 Special page transclusion twice (bug 5021)
5955 {{Special:Prefixindex/Xyzzyx}}
5956 {{Special:Prefixindex/Xyzzyx}}
5960 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5963 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5968 Transclusion of default MediaWiki message
5970 {{MediaWiki:Mainpage}}
5977 Transclusion of nonexistent MediaWiki message
5979 {{MediaWiki:Mainpagexxx}}
5981 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
5986 Transclusion of MediaWiki message with underscore
5988 {{MediaWiki:history_short}}
5995 Transclusion of MediaWiki message with space
5997 {{MediaWiki:history short}}
6004 Invalid header with following text
6014 Section extraction test (section 0)
6034 Section extraction test (section 1)
6056 Section extraction test (section 2)
6077 Section extraction test (section 3)
6097 Section extraction test (section 4)
6121 Section extraction test (section 5)
6141 Section extraction test (section 6)
6162 Section extraction test (section 7)
6182 Section extraction test (section 8)
6202 Section extraction test (section 9)
6223 Section extraction test (section 10)
6243 Section extraction test (nonexistent section 11)
6262 Section extraction test with bogus heading (section 1)
6267 ==bogus== not a legal section
6271 ==bogus== not a legal section
6275 Section extraction test with bogus heading (section 2)
6280 ==bogus== not a legal section
6287 Section extraction test with comment after heading (section 1)
6299 Section extraction test with comment after heading (section 2)
6311 Section extraction test with bogus <nowiki> heading (section 1)
6316 ==bogus== <nowiki>not a legal section</nowiki>
6320 ==bogus== <nowiki>not a legal section</nowiki>
6324 Section extraction test with bogus <nowiki> heading (section 2)
6329 ==bogus== <nowiki>not a legal section</nowiki>
6336 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
6337 # instead of respecting commented sections
6339 Section extraction prefixed by comment (section 1)
6350 Section extraction prefixed by comment (section 2)
6361 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
6362 # instead of respecting HTML-style headings
6364 Section extraction, mixed wiki and html (section 1)
6380 Section extraction, mixed wiki and html (section 2)
6396 # Formerly testing for bug 3342
6398 Section extraction, heading surrounded by <noinclude>
6402 <noinclude>==unmarked==</noinclude>
6408 # Test behaviour of bug 19910
6410 Sectiion with all-equals
6415 The line above must have a trailing space
6418 But just in case it doesn't...
6422 But just in case it doesn't...
6426 Section replacement test (section 0)
6457 Section replacement test (section 1)
6486 Section replacement test (section 2)
6516 Section replacement test (section 3)
6547 Section replacement test (section 4)
6574 Section replacement test (section 5)
6605 Section replacement test (section 6)
6635 Section replacement test (section 7)
6666 Section replacement test (section 8)
6697 Section replacement test (section 9)
6726 Section replacement test (section 10)
6756 Section replacement test with initial whitespace (bug 13728)
6760 Preformatted initial line
6764 Preformatted initial line
6771 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6783 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6796 Section extraction, <pre> around bogus header (bug 10309)
6813 Section replacement, <pre> around bogus header (bug 10309)
6815 noxml replace=2,"xxx"
6836 Handling of 
 in URLs
6840 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
6847 5 quotes, code coverage +1 line
6854 Special:Search page linking.
6858 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
6873 * {{SUBJECTPAGENAME}}
6874 * {{SUBJECTPAGENAMEE}}
6881 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6883 <ul><li> Parser test
6884 </li><li> Parser test
6885 </li><li> Parser test
6886 </li><li> Parser_test
6887 </li><li> Parser test
6888 </li><li> Parser_test
6889 </li><li> Talk:Parser test
6890 </li><li> Talk:Parser_test
6891 </li><li> Parser test
6892 </li><li> Parser_test
6899 </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>
6903 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6913 image4 |300px| centre
6914 image5.svg| http://///////
6919 <ul class="gallery">
6920 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6921 <div style="height: 150px;">Image1.png</div>
6922 <div class="gallerytext">
6925 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6926 <div style="height: 150px;">Image2.gif</div>
6927 <div class="gallerytext">
6932 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6933 <div style="height: 150px;">Image3</div>
6934 <div class="gallerytext">
6937 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6938 <div style="height: 150px;">Image4</div>
6939 <div class="gallerytext">
6944 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6945 <div style="height: 150px;">Image5.svg</div>
6946 <div class="gallerytext">
6947 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
6951 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
6952 <div style="height: 150px;">* image6</div>
6953 <div class="gallerytext">
6961 Gallery (with options)
6963 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
6964 File:Nonexistant.jpg|caption
6965 File:Nonexistant.jpg
6966 image:foobar.jpg|some '''caption''' [[Main Page]]
6968 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
6971 <ul class="gallery" style="max-width: 226px;_width: 226px;">
6972 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
6973 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
6974 <div style="height: 70px;">Nonexistant.jpg</div>
6975 <div class="gallerytext">
6980 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
6981 <div style="height: 70px;">Nonexistant.jpg</div>
6982 <div class="gallerytext">
6985 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
6986 <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>
6987 <div class="gallerytext">
6988 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6992 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
6993 <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>
6994 <div class="gallerytext">
6997 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
6998 <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>
6999 <div class="gallerytext">
7009 Gallery with wikitext inside caption
7012 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
7013 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
7016 <ul class="gallery">
7017 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7018 <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>
7019 <div class="gallerytext">
7020 <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>
7024 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7025 <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>
7026 <div class="gallerytext">
7027 <p>This is a test template
7036 gallery (with showfilename option)
7038 <gallery showfilename>
7039 File:Nonexistant.jpg|caption
7040 File:Nonexistant.jpg
7041 image:foobar.jpg|some '''caption''' [[Main Page]]
7045 <ul class="gallery">
7046 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7047 <div style="height: 150px;">Nonexistant.jpg</div>
7048 <div class="gallerytext">
7049 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7054 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7055 <div style="height: 150px;">Nonexistant.jpg</div>
7056 <div class="gallerytext">
7057 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
7061 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7062 <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>
7063 <div class="gallerytext">
7064 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7065 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7069 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7070 <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>
7071 <div class="gallerytext">
7072 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
7081 Gallery (with namespace-less filenames)
7084 File:Nonexistant.jpg
7090 <ul class="gallery">
7091 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7092 <div style="height: 150px;">Nonexistant.jpg</div>
7093 <div class="gallerytext">
7096 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7097 <div style="height: 150px;">Nonexistant.jpg</div>
7098 <div class="gallerytext">
7101 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7102 <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>
7103 <div class="gallerytext">
7106 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
7107 <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>
7108 <div class="gallerytext">
7116 HTML Hex character encoding (spells the word "JavaScript")
7118 JavaScript
7120 <p>JavaScript
7125 HTML Hex character encoding bogus encoding (bug 26437 regression check)
7129 <p>&#xsee;&#XSEE;
7134 HTML Hex character encoding mixed case
7143 __FORCETOC__ override
7155 ISBN 978-0-1234-56 789
7157 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
7162 ISBN followed by 5 spaces
7173 ISBN ISBN 1234567890
7175 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7180 Bug 22905: <abbr> followed by ISBN followed by </a>
7182 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
7184 <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>
7193 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
7198 Double RFC with a wiki link
7202 <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>
7211 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
7216 Centre-aligned image
7218 [[Image:foobar.jpg|centre]]
7220 <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>
7227 [[Image:foobar.jpg|none]]
7229 <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>
7234 Width + Height sized image (using px) (height is ignored)
7236 [[Image:foobar.jpg|640x480px]]
7238 <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>
7243 Width-sized image (using px, no following whitespace)
7245 [[Image:foobar.jpg|640px]]
7247 <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>
7252 Width-sized image (using px, with following whitespace - test regression from r39467)
7254 [[Image:foobar.jpg|640px ]]
7256 <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>
7261 Width-sized image (using px, with preceding whitespace - test regression from r39467)
7263 [[Image:foobar.jpg| 640px]]
7265 <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>
7270 Another italics / bold test
7278 # Note the results may be incorrect, as parserTest output included this:
7279 # XML error: Mismatched tag at byte 6120:
7280 # ...<dd> </dt></dl> </dd...
7288 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
7299 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
7301 Images with the "|" character in the comment
7303 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
7305 <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>
7310 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
7312 <html><script>alert(1);</script></html>
7314 <p><html><script>alert(1);</script></html>
7319 HTML with raw HTML ($wgRawHtml==true)
7323 <html><script>alert(1);</script></html>
7325 <p><script>alert(1);</script>
7330 Parents of subpages, one level up
7332 subpage title=[[Subpage test/L1/L2/L3]]
7336 <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>
7342 Parents of subpages, one level up, not named
7344 subpage title=[[Subpage test/L1/L2/L3]]
7348 <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>
7355 Parents of subpages, two levels up
7357 subpage title=[[Subpage test/L1/L2/L3]]
7363 <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
7364 </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>
7369 Parents of subpages, two levels up, without trailing slash or name.
7371 subpage title=[[Subpage test/L1/L2/L3]]
7380 Parents of subpages, two levels up, with lots of extra trailing slashes.
7382 subpage title=[[Subpage test/L1/L2/L3]]
7386 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
7391 Definition list code coverage
7397 <dl><dt> title  </dt><dd> def
7398 </dd><dt> title </dt><dd> def
7399 </dd><dt>title</dt><dd> def
7405 Don't fall for the self-closing div
7407 <div>hello world</div/>
7409 <div>hello world</div>
7418 <p>[[:Template:Msg]]
7427 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
7431 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
7433 Always escape literal '>' in output, not just after '<'
7447 <p>This is a test template
7448 This is a test template
7460 Inclusion of !userCanEdit() content
7464 <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>
7470 Out-of-order TOC heading levels
7479 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7481 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
7483 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
7484 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
7487 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7489 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7490 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7495 <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>
7496 <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>
7497 <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>
7498 <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>
7499 <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>
7500 <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>
7506 ISBN with a dummy number
7516 ISBN with space-delimited number
7520 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7526 ISBN with multiple spaces, no number
7545 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7546 </p><p>ISBN 12345678901
7552 ISBN with trailing year (bug 8110)
7554 ISBN 1-234-56789-0 - 2006
7556 ISBN 1 234 56789 0 - 2006
7558 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7559 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7567 {{anchorencode:foo bar©#%n}}
7569 <p>foo_bar.C2.A9.23.25n
7574 anchorencode trims spaces
7576 {{anchorencode: __pretty__please__}}
7583 anchorencode deals with links
7585 {{anchorencode: [[hello|world]] [[hi]]}}
7592 anchorencode deals with templates
7594 {{anchorencode: {{Foo}} }}
7601 anchorencode encodes like the TOC generator: (bug 18431)
7603 === _ +:.3A%3A&&]] ===
7604 {{anchorencode: _ +:.3A%3A&&]] }}
7607 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7608 <p>.2B:.3A.253A.26.26.5D.5D
7612 # Expected output in the following test is not necessarily expected (there
7613 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7614 # only testing for well-formedness.
7616 Bug 6200: blockquotes and paragraph formatting
7636 Bug 8293: Use of center tag ruins paragraph formatting
7658 ### Language variants related tests
7661 Self-link in language variants
7663 title=[[Dunav]] language=sr
7665 Both [[Dunav]] and [[Дунав]] are names for this river.
7667 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7673 Link to pages in language variants
7677 Main Page can be written as [[Маин Паге]]
7679 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7685 Multiple links to pages in language variants
7689 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7691 <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>.
7697 Simple template in language variants
7703 <p>This is a test template
7709 Template with explicit namespace in language variants
7715 <p>This is a test template
7721 Basic test for template parameter in language variants
7725 {{парамтест|param=foo}}
7727 <p>This is a test template with parameter foo
7733 Simple category in language variants
7737 [[Category:МедиаWики Усер'с Гуиде]]
7739 <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>
7744 Stripping -{}- tags (language variants)
7748 Latin proverb: -{Ne nuntium necare}-
7750 <p>Latin proverb: Ne nuntium necare
7756 Prevent conversion with -{}- tags (language variants)
7758 language=sr variant=sr-ec
7760 Latinski: -{Ne nuntium necare}-
7762 <p>Латински: Ne nuntium necare
7768 Prevent conversion of text with -{}- tags (language variants)
7770 language=sr variant=sr-ec
7772 Latinski: -{Ne nuntium necare}-
7774 <p>Латински: Ne nuntium necare
7780 Prevent conversion of links with -{}- tags (language variants)
7782 language=sr variant=sr-ec
7786 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
7792 -{}- tags within headlines (within html for parserConvert())
7794 language=sr variant=sr-ec
7798 <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>
7804 Explicit definition of language variant alternatives
7806 language=zh variant=zh-tw
7808 -{zh:China;zh-tw:Taiwan}-, not China
7810 <p>Taiwan, not China
7816 Explicit session-wise language variant mapping (A flag and - flag)
7818 language=zh variant=zh-tw
7820 Taiwan is not China.
7821 But -{A|zh:China;zh-tw:Taiwan}- is China,
7822 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
7823 and -{China}- is China.
7825 <p>Taiwan is not China.
7826 But Taiwan is Taiwan,
7827 (This should be stripped!)
7833 Explicit session-wise language variant mapping (H flag for hide)
7835 language=zh variant=zh-tw
7837 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
7840 <p>(This should be stripped!)
7846 Adding explicit conversion rule for title (T flag)
7848 language=zh variant=zh-tw showtitle
7850 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7853 <p>Should be stripped!
7858 Testing that changing the language variant here in the tests actually works
7860 language=zh variant=zh showtitle
7862 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7865 <p>Should be stripped!
7870 Bug 24072: more test on conversion rule for title
7872 language=zh variant=zh-tw showtitle
7874 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7875 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
7878 <p>This should be stripped!
7879 This won't take interferes with the title rule.
7884 Raw output of variant escape tags (R flag)
7886 language=zh variant=zh-tw
7888 Raw: -{R|zh:China;zh-tw:Taiwan}-
7890 <p>Raw: zh:China;zh-tw:Taiwan
7895 Nested using of manual convert syntax
7897 language=zh variant=zh-hk
7899 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
7901 <p>Nested: Hello Hong Kong!
7906 Do not convert roman numbers to language variants
7908 language=sr variant=sr-ec
7912 <p>Фридрих IV је цар.
7917 Unclosed language converter markup "-{"
7928 Don't convert raw rule "-{R|=>}-" to "=>"
7945 Bug 529: Uncovered bullet
7956 Bug 529: Uncovered table already at line-start
7979 Bug 529: Uncovered bullet in parser function result
7981 * Foo {{lc:{{bullet}} }}
7990 Bug 5678: Double-parsed template argument
7992 {{lc:{{{1}}}|hello}}
7999 Bug 5678: Double-parsed template invocation
8001 {{lc:{{paramtest {{!}} param = hello }} }}
8003 <p>{{paramtest | param = hello }}
8008 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
8034 Morwen/13: Unclosed link followed by heading
8041 <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>
8046 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
8053 <h1> <span class="mw-headline" id="heading">heading</span></h1>
8058 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
8065 <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>
8080 Paragraphs inside divs (no extra line breaks)
8092 Paragraphs inside divs (extra line break on open)
8107 Paragraphs inside divs (extra line break on close)
8122 Paragraphs inside divs (extra line break on open and close)
8139 Nesting tags, paragraphs on lines which begin with <div>
8143 <div></div><strong>A
8152 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
8154 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
8158 <blockquote>Line one
8160 Line two</blockquote>
8162 <blockquote>Line one
8163 Line two</blockquote>
8168 Bug 6200: paragraphs inside blockquotes (extra line break on open)
8175 Line two</blockquote>
8180 Line two</blockquote>
8185 Bug 6200: paragraphs inside blockquotes (extra line break on close)
8189 <blockquote>Line one
8194 <blockquote>Line one
8202 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
8221 Paragraphs inside blockquotes/divs (no extra line breaks)
8223 <blockquote><div>Line one
8225 Line two</div></blockquote>
8227 <blockquote><div>Line one
8228 Line two</div></blockquote>
8233 Paragraphs inside blockquotes/divs (extra line break on open)
8238 Line two</div></blockquote>
8243 Line two</div></blockquote>
8248 Paragraphs inside blockquotes/divs (extra line break on close)
8250 <blockquote><div>Line one
8255 <blockquote><div>Line one
8263 Paragraphs inside blockquotes/divs (extra line break on open and close)
8280 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
8282 wgLinkHolderBatchSize=0
8288 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
8289 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
8290 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
8295 Free external link invading image caption
8297 [[Image:Foobar.jpg|thumb|http://x|hello]]
8299 <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>
8304 Bug 15196: localised external link numbers
8308 [http://en.wikipedia.org/]
8310 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
8315 Multibyte character in padleft
8317 {{padleft:-Hello|7|Æ}}
8324 Multibyte character in padright
8326 {{padright:Hello-|7|Æ}}
8339 <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>
8344 formatdate parser function
8346 {{#formatdate:2009-03-24}}
8348 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
8353 formatdate parser function, with default format
8355 {{#formatdate:2009-03-24|mdy}}
8357 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
8362 Linked date with autoformatting disabled
8364 wgUseDynamicDates=false
8368 <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>
8373 Spacing of numbers in formatted dates
8375 {{#formatdate:January 15}}
8377 <p><span class="mw-formatted-date" title="01-15">January 15</span>
8382 Spacing of numbers in formatted dates (linked)
8384 wgUseDynamicDates=true
8388 <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>
8401 Edit comment with link
8405 I like the [[Main Page]] a lot
8407 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
8411 Edit comment with link and link text
8415 I like the [[Main Page|best pages]] a lot
8417 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8421 Edit comment with link and link text with suffix
8425 I like the [[Main Page|best page]]s a lot
8427 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
8431 Edit comment with section link (non-local, eg in history list)
8433 comment title=[[Main Page]]
8435 /* External links */ removed bogus entries
8437 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
8441 Edit comment with section link (local, eg in diff view)
8443 comment local title=[[Main Page]]
8445 /* External links */ removed bogus entries
8447 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
8451 Edit comment with subpage link (bug 14080)
8455 title=[[Subpage test]]
8457 Poked at a [[/subpage]] here...
8459 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
8463 Edit comment with subpage link and link text (bug 14080)
8467 title=[[Subpage test]]
8469 Poked at a [[/subpage|neat little page]] here...
8471 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
8475 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
8478 title=[[Subpage test]]
8480 Poked at a [[/subpage]] here...
8482 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
8486 Edit comment with bare anchor link (local, as on diff)
8494 <a href="#section">#section</a>
8498 Edit comment with bare anchor link (non-local, as on history)
8505 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8509 Anchor starting with underscore
8513 <p><a href="#_ref">One</a>
8518 Id starting with underscore
8520 <div id="_ref"></div>
8522 <div id="_ref"></div>
8527 Space normalisation on autocomment (bug 22784)
8532 /* __hello__world__ */
8534 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
8538 percent-encoding and + signs in comments (Bug 26410)
8542 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
8544 <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>
8550 Bad images - basic functionality
8559 Bad images - bug 16039: text after bad image disappears
8571 Verify that displaytitle works (bug #22501) no displaytitle
8575 wgAllowDisplayTitle=true
8576 wgRestrictDisplayTitle=false
8578 this is not the the title
8581 <p>this is not the the title
8586 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8591 wgAllowDisplayTitle=true
8592 wgRestrictDisplayTitle=false
8594 this is not the the title
8595 {{DISPLAYTITLE:whatever}}
8598 <p>this is not the the title
8603 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8608 wgAllowDisplayTitle=true
8609 wgRestrictDisplayTitle=true
8611 this is not the the title
8612 {{DISPLAYTITLE:whatever}}
8615 <p>this is not the the title
8620 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8625 wgAllowDisplayTitle=true
8626 wgRestrictDisplayTitle=true
8628 this is not the the title
8629 {{DISPLAYTITLE:screen}}
8632 <p>this is not the the title
8637 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8642 wgAllowDisplayTitle=false
8644 this is not the the title
8645 {{DISPLAYTITLE:screen}}
8648 <p>this is not the the title
8649 <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>
8654 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8659 wgAllowDisplayTitle=false
8661 this is not the the title
8664 <p>this is not the the title
8669 preload: check <noinclude> and <includeonly>
8673 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8679 preload: check <onlyinclude>
8683 Goodbye <onlyinclude>Hello world</onlyinclude>
8689 preload: can pass tags through if we want to
8693 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8695 <includeonly>Hello world</includeonly>
8699 preload: check that it doesn't try to do tricks
8703 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8705 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8709 Play a bit with r67090 and bug 3158
8713 <div style="width:50% !important"> </div>
8714 <div style="width:50% !important"> </div>
8715 <div style="width:50% !important"> </div>
8716 <div style="border : solid;"> </div>
8718 <div style="width:50% !important"> </div>
8719 <div style="width:50% !important"> </div>
8720 <div style="width:50% !important"> </div>
8721 <div style="border : solid;"> </div>
8726 HTML5 data attributes
8728 <span data-foo="bar">Baz</span>
8729 <p data-abc-def_hij="">Quuz</p>
8731 <p><span data-foo="bar">Baz</span>
8733 <p data-abc-def_hij="">Quuz</p>
8738 percent-encoding and + signs in internal links (Bug 26410)
8740 [[User:+%]] [[Page+title%]]
8741 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
8742 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
8743 [[%33%45]] [[%33%45+]]
8745 <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>
8746 <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>
8747 <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>
8748 <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>
8753 Special characters in embedded file links (bug 27679)
8755 [[File:Contains & ampersand.jpg]]
8756 [[File:Does not exist.jpg|Title with & ampersand]]
8758 <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>
8759 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
8765 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
8767 Text's been normalized?
8769 <p>Text's been normalized?
8774 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
8776 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
8778 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
8783 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
8785 [http://www.example.org/ ideograms]
8787 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
8792 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
8794 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
8796 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
8820 Bug 31098 Template which includes system messages which includes the template
8824 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
8825 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
8830 Deprecated presentational attributes are converted to css
8833 | valign=top align=left width=100 height=25% | Asdf
8835 <ul type="disc"></ul>
8839 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
8841 <ul style="list-style-type: disc;"></ul>
8846 Bug31490 Turkish: ucfirst 'blah'
8857 Bug31490 Turkish: ucfirst 'ix'
8868 Bug31490 Turkish: lcfirst 'BLAH'
8879 Bug31490 Turkish: ucfırst (with a dotless i)
8885 <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>
8890 Bug31490 ucfırst (with a dotless i) with English language
8896 <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>
8901 Bug 26375: TOC with italics
8906 == ''Lost'' episodes ==
8908 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8910 <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>
8913 <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>
8920 == {{int:headline_sample}} ==
8924 Bug 32057: Title needed when expanding <h> nodes.
8930 <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>
8935 Bug 32450: MediaWiki: js pages should ignore Category syntax
8937 title=[[MediaWiki:bug32450.js]]
8939 var foo = "[[Category:bug32450]]"
8941 <p>var foo = "[[Category:bug32450]]"
8946 Bug 32450: MediaWiki: css pages should ignore Category syntax
8948 title=[[MediaWiki:bug32450.css]]
8950 /** Css comment: "[[Category:bug32450]]" */
8952 <p>/** Css comment: "[[Category:bug32450]]" */
8957 Bug 31865: HTML-style tag <dws> is recognized and discarded.
8966 Bug 31865: XML-style tag <dws/> is recognized and discarded.
8975 Bug 31865: Spaces after <dws> tag are discarded.
8984 Bug 31865: Tabs after <dws> tag are discarded too.
8993 Bug 31865: Newlines after <dws> tag are discarded too.
9005 Bug 31865: Spaces before <dws> tag are not discarded.
9014 Bug 31865: <dws> Continuation is indented.
9024 Bug 31865: <dws> List item continuation.
9037 Bug 31865: <dws/> XML-style; asterisk after the tag does not start list item.
9053 Try for 100% code coverage