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>
438 <dl><dt> name </dt><dd> Definition
444 Definition list for indentation only
448 <dl><dd> Indented text
454 Definition list with no space
458 <dl><dt>name</dt><dd>Definition
464 Definition list with URL link
466 ; http://example.com/ : definition
468 <dl><dt> <a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a> </dt><dd> definition
474 Definition list with bracketed URL link
476 ;[http://www.example.com/ Example]:Something about it
478 <dl><dt><a href="http://www.example.com/" class="external text" rel="nofollow">Example</a></dt><dd>Something about it
484 Definition list with wikilink containing colon
486 ; [[Help:FAQ]]: The least-read page on Wikipedia
488 <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
493 # At Brion's and JeLuF's insistence... :)
495 Definition list with news link containing colon
497 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
499 <dl><dt> <a href="news:alt.wikipedia.rox" class="external free" rel="nofollow">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
505 Malformed definition list with colon
507 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
509 <dl><dt> <a href="news:alt.wikipedia.rox" class="external free" rel="nofollow">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
515 Definition lists: colon in external link text
517 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
519 <dl><dt> <a href="http://www.wikipedia2.org/" class="external text" rel="nofollow">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
525 Definition lists: colon in HTML attribute
527 ;<b style="display: inline">bold</b>
529 <dl><dt><b style="display: inline">bold</b>
536 Definition lists: self-closed tag
538 ;one<br/>two : two-line fun
540 <dl><dt>one<br />two </dt><dd> two-line fun
550 External links: non-bracketed
552 Non-bracketed: http://example.com
554 <p>Non-bracketed: <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>
559 External links: numbered
561 Numbered: [http://example.com]
562 Numbered: [http://example.net]
563 Numbered: [http://example.com]
565 <p>Numbered: <a href="http://example.com" class="external autonumber" rel="nofollow">[1]</a>
566 Numbered: <a href="http://example.net" class="external autonumber" rel="nofollow">[2]</a>
567 Numbered: <a href="http://example.com" class="external autonumber" rel="nofollow">[3]</a>
572 External links: specified text
574 Specified text: [http://example.com link]
576 <p>Specified text: <a href="http://example.com" class="external text" rel="nofollow">link</a>
581 External links: trail
583 Linktrails should not work for external links: [http://example.com link]s
585 <p>Linktrails should not work for external links: <a href="http://example.com" class="external text" rel="nofollow">link</a>s
590 External links: dollar sign in URL
592 http://example.com/1$2345
594 <p><a href="http://example.com/1$2345" class="external free" rel="nofollow">http://example.com/1$2345</a>
599 External links: dollar sign in URL (named)
601 [http://example.com/1$2345]
603 <p><a href="http://example.com/1$2345" class="external autonumber" rel="nofollow">[1]</a>
608 External links: open square bracket forbidden in URL (bug 4377)
610 http://example.com/1[2345
612 <p><a href="http://example.com/1" class="external free" rel="nofollow">http://example.com/1</a>[2345
617 External links: open square bracket forbidden in URL (named) (bug 4377)
619 [http://example.com/1[2345]
621 <p><a href="http://example.com/1" class="external text" rel="nofollow">[2345</a>
626 External links: nowiki in URL link text (bug 6230)
628 [http://example.com/ <nowiki>''example site''</nowiki>]
630 <p><a href="http://example.com/" class="external text" rel="nofollow">''example site''</a>
635 External links: newline forbidden in text (bug 6230 regression check)
637 [http://example.com/ first
640 <p>[<a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a> first
648 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
650 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
655 External image from https
657 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
659 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
664 Link to non-http image, no img tag
666 Link to non-http image, no img tag: ftp://example.com/test.jpg
668 <p>Link to non-http image, no img tag: <a href="ftp://example.com/test.jpg" class="external free" rel="nofollow">ftp://example.com/test.jpg</a>
673 External links: terminating separator
675 Terminating separator: http://example.com/thing,
677 <p>Terminating separator: <a href="http://example.com/thing" class="external free" rel="nofollow">http://example.com/thing</a>,
682 External links: intervening separator
684 Intervening separator: http://example.com/1,2,3
686 <p>Intervening separator: <a href="http://example.com/1,2,3" class="external free" rel="nofollow">http://example.com/1,2,3</a>
691 External links: old bug with URL in query
693 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
695 <p>Old bug with URL in query: <a href="http://example.com/thing?url=http://example.com" class="external text" rel="nofollow">link</a>
700 External links: old URL-in-URL bug, mixed protocols
702 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
704 <p>And again with mixed protocols: <a href="ftp://example.com?url=http://example.com" class="external text" rel="nofollow">link</a>
709 External links: URL in text
711 URL in text: [http://example.com http://example.com]
713 <p>URL in text: <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>
718 External links: Clickable images
720 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
722 <p>ja-style clickable images: <a href="http://example.com" class="external text" rel="nofollow"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
727 External links: raw ampersand
729 Old & use: http://x&y
731 <p>Old & use: <a href="http://x&y" class="external free" rel="nofollow">http://x&y</a>
736 External links: encoded ampersand
738 Old & use: http://x&y
740 <p>Old & use: <a href="http://x&y" class="external free" rel="nofollow">http://x&y</a>
745 External links: encoded equals (bug 6102)
747 http://example.com/?foo=bar
749 <p><a href="http://example.com/?foo=bar" class="external free" rel="nofollow">http://example.com/?foo=bar</a>
754 External links: [raw ampersand]
756 Old & use: [http://x&y]
758 <p>Old & use: <a href="http://x&y" class="external autonumber" rel="nofollow">[1]</a>
763 External links: [encoded ampersand]
765 Old & use: [http://x&y]
767 <p>Old & use: <a href="http://x&y" class="external autonumber" rel="nofollow">[1]</a>
772 External links: [encoded equals] (bug 6102)
774 [http://example.com/?foo=bar]
776 <p><a href="http://example.com/?foo=bar" class="external autonumber" rel="nofollow">[1]</a>
781 External links: [IDN ignored character reference in hostname; strip it right off]
783 [http://e‌xample.com/]
785 <p><a href="http://example.com/" class="external autonumber" rel="nofollow">[1]</a>
790 External links: IDN ignored character reference in hostname; strip it right off
792 http://e‌xample.com/
794 <p><a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a>
799 External links: www.jpeg.org (bug 554)
803 <p><a href="http://www.jpeg.org" class="external free" rel="nofollow">http://www.jpeg.org</a>
808 External links: URL within URL (original bug 2)
810 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
812 <p><a href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp" class="external autonumber" rel="nofollow">[1]</a>
817 BUG 361: URL inside bracketed URL
819 [http://www.example.com/foo http://www.example.com/bar]
821 <p><a href="http://www.example.com/foo" class="external text" rel="nofollow">http://www.example.com/bar</a>
826 BUG 361: URL within URL, not bracketed
828 http://www.example.com/foo?=http://www.example.com/bar
830 <p><a href="http://www.example.com/foo?=http://www.example.com/bar" class="external free" rel="nofollow">http://www.example.com/foo?=http://www.example.com/bar</a>
835 BUG 289: ">"-token in URL-tail
837 http://www.example.com/<hello>
839 <p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a><hello>
844 BUG 289: literal ">"-token in URL-tail
846 http://www.example.com/<b>html</b>
848 <p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a><b>html</b>
853 BUG 289: ">"-token in bracketed URL
855 [http://www.example.com/<hello> stuff]
857 <p><a href="http://www.example.com/" class="external text" rel="nofollow"><hello> stuff</a>
862 BUG 289: literal ">"-token in bracketed URL
864 [http://www.example.com/<b>html</b> stuff]
866 <p><a href="http://www.example.com/" class="external text" rel="nofollow"><b>html</b> stuff</a>
871 BUG 289: literal double quote at end of URL
873 http://www.example.com/"hello"
875 <p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a>"hello"
880 BUG 289: literal double quote in bracketed URL
882 [http://www.example.com/"hello" stuff]
884 <p><a href="http://www.example.com/" class="external text" rel="nofollow">"hello" stuff</a>
889 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
891 [http://www.example.com test]
893 <p><a href="http://www.example.com" class="external text" rel="nofollow">test</a>
898 External links: wiki links within external link (Bug 3695)
900 [http://example.com [[wikilink]] embedded in ext link]
902 <p><a href="http://example.com" class="external text" rel="nofollow"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a href="http://example.com" class="external text" rel="nofollow"> embedded in ext link</a>
907 BUG 787: Links with one slash after the url protocol are invalid
911 [http:/example.com title]
914 </p><p>[http:/example.com title]
919 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
921 ''[http://example.com text'']
922 [http://example.com '''text]'''
923 ''Something [http://example.com in italic'']
924 ''Something [http://example.com mixed''''', even bold]'''
925 '''''Now [http://example.com both''''']
927 <p><a href="http://example.com" class="external text" rel="nofollow"><i>text</i></a>
928 <a href="http://example.com" class="external text" rel="nofollow"><b>text</b></a>
929 <i>Something </i><a href="http://example.com" class="external text" rel="nofollow"><i>in italic</i></a>
930 <i>Something </i><a href="http://example.com" class="external text" rel="nofollow"><i>mixed</i><b>, even bold</b></a>
931 <i><b>Now </b></i><a href="http://example.com" class="external text" rel="nofollow"><i><b>both</b></i></a>
939 http://www.example.com/?title=AT%26T
941 <p><a href="http://www.example.com/?title=AT%26T" class="external free" rel="nofollow">http://www.example.com/?title=AT%26T</a>
946 Bug 4781, 5267: %26 in URL
948 http://www.example.com/?title=100%25_Bran
950 <p><a href="http://www.example.com/?title=100%25_Bran" class="external free" rel="nofollow">http://www.example.com/?title=100%25_Bran</a>
955 Bug 4781, 5267: %28, %29 in URL
957 http://www.example.com/?title=Ben-Hur_%281959_film%29
959 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external free" rel="nofollow">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
965 Bug 4781: %26 in autonumber URL
967 [http://www.example.com/?title=AT%26T]
969 <p><a href="http://www.example.com/?title=AT%26T" class="external autonumber" rel="nofollow">[1]</a>
974 Bug 4781, 5267: %26 in autonumber URL
976 [http://www.example.com/?title=100%25_Bran]
978 <p><a href="http://www.example.com/?title=100%25_Bran" class="external autonumber" rel="nofollow">[1]</a>
983 Bug 4781, 5267: %28, %29 in autonumber URL
985 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
987 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external autonumber" rel="nofollow">[1]</a>
993 Bug 4781: %26 in bracketed URL
995 [http://www.example.com/?title=AT%26T link]
997 <p><a href="http://www.example.com/?title=AT%26T" class="external text" rel="nofollow">link</a>
1002 Bug 4781, 5267: %26 in bracketed URL
1004 [http://www.example.com/?title=100%25_Bran link]
1006 <p><a href="http://www.example.com/?title=100%25_Bran" class="external text" rel="nofollow">link</a>
1011 Bug 4781, 5267: %28, %29 in bracketed URL
1013 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1015 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external text" rel="nofollow">link</a>
1020 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1022 Some [http://example.com/ pretty ''italics'' and stuff]!
1024 <p>Some <a href="http://example.com/" class="external text" rel="nofollow">pretty <i>italics</i> and stuff</a>!
1029 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1031 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1033 <p><i>Some </i><a href="http://example.com/" class="external text" rel="nofollow"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1038 External link containing double-single-quotes with no space separating the url from text in italics
1040 [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]].]
1042 <p><a href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm" class="external text" rel="nofollow"><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>
1047 URL-encoding in URL functions (single parameter)
1049 {{localurl:Some page|amp=&}}
1051 <p>/index.php?title=Some_page&amp=&
1056 URL-encoding in URL functions (multiple parameters)
1058 {{localurl:Some page|q=?&=&}}
1060 <p>/index.php?title=Some_page&q=?&amp=&
1071 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1073 Normal text. '''''Bold italic text.''''' Normal text.
1075 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1076 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1082 Unclosed and unmatched quotes
1084 '''''Bold italic text '''with bold deactivated''' in between.'''''
1086 '''''Bold italic text ''with italic deactivated'' in between.'''''
1090 ..spanning two paragraphs (should not work).'''
1092 '''Bold tag left open
1094 ''Italic tag left open
1098 <!-- Unmatching number of opening, closing tags: -->
1099 '''This year''''s election ''should'' beat '''last year''''s.
1101 ''Tom'''s car is bigger than ''Susan'''s.
1103 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1104 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1105 </p><p><b>Bold text..</b>
1106 </p><p>..spanning two paragraphs (should not work).
1107 </p><p><b>Bold tag left open</b>
1108 </p><p><i>Italic tag left open</i>
1110 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1111 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1118 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1121 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1122 # is the bare minimun required by the spec, see:
1123 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1125 A table with no data.
1131 # A table with nothing but a caption is invalid XHTML, we might want to render
1132 # this as <p>caption</p>
1134 A table with nothing but a caption
1142 </caption><tr><td></td></tr></table>
1168 Multiplication table
1170 {| border="1" cellpadding="2"
1171 |+Multiplication table
1173 ! × !! 1 !! 2 !! 3
1191 <table border="1" cellpadding="2">
1192 <caption>Multiplication table
1241 {| align=right border=1
1243 |rowspan=2| Cell 2, row 1 (and 2)
1250 <table align="right" border="1">
1254 <td rowspan="2"> Cell 2, row 1 (and 2)
1272 {| bgcolor=#ABCDEF border=2
1277 |the original table again
1285 <table bgcolor="#ABCDEF" border="2">
1293 <td>the original table again
1299 Invalid attributes in table cell (bug 1830)
1314 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1317 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1321 <td>[<a href="ftp://%7Cx" class="external free" rel="nofollow">ftp://%7Cx</a></td>
1322 <td>]" onmouseover="alert(document.cookie)">test
1334 Plain link, capitalized
1338 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1343 Plain link, uncapitalized
1347 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1354 [[Main Page|The Main Page]]
1356 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1365 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1370 Broken link with fragment
1372 [[Zigzagzogzagzig#zug]]
1374 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1379 Special page link with fragment
1381 [[Special:Version#anchor]]
1383 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1388 Nonexistent special page link with fragment
1390 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1392 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1399 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1401 <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>
1408 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1410 <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>!!!
1415 Link with 3 brackets
1424 Piped link with 3 brackets
1426 [[[main page|the main page]]]
1428 <p>[[[main page|the main page]]]
1433 Link with multiple pipes
1435 [[Main Page|The|Main|Page]]
1437 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1444 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1446 <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>
1451 Piped link to namespace
1453 [[Meta:Disclaimers|The disclaimers]]
1455 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1462 [[Usually caused by a typo (oops}]]
1464 <p>[[Usually caused by a typo (oops}]]
1469 Link containing % (not as a hex sequence)
1473 <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>
1478 Link containing % as a single hex sequence interpreted to char
1482 <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>
1487 Link containing % as a double hex sequence interpreted to hex sequence
1491 <p>[[7%2525 Solution]]
1496 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1497 Example for such a section: == < ==
1499 [[%23%3c]][[%23%3e]]
1501 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1506 Link containing "<#" and ">#" as a hex sequences
1508 [[%3c%23]][[%3e%23]]
1510 <p>[[%3c%23]][[%3e%23]]
1515 Link containing double-single-quotes '' (bug 4598)
1517 [[Lista d''e paise d''o munno]]
1519 <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>
1524 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1526 Some [[Link|pretty ''italics'' and stuff]]!
1528 <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>!
1533 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1535 ''Some [[Link|pretty ''italics'' and stuff]]!
1537 <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>
1542 Link with double quotes in title part (literal) and alternate part (interpreted)
1544 [[File:Denys Savchenko ''Pentecoste''.jpg]]
1548 [[''Pentecoste''|Pentecoste]]
1550 [[''Pentecoste''|''Pentecoste'']]
1552 <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>
1553 </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>
1554 </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>
1555 </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>
1562 [[http://www.example.com]]
1564 <p>[<a href="http://www.example.com" class="external autonumber" rel="nofollow">[1]</a>]
1568 # I'm fairly sure the expected result here is wrong.
1569 # We want these to be URL links, not pseudo-pages with URLs for titles....
1570 # However the current output is also pretty screwy.
1573 # I'm changing it to match the current output--it arguably makes more
1574 # sense in the light of the test above. Old expected result was:
1575 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1577 # But I think this test is bordering on "garbage in, garbage out" anyway.
1582 Piped link to URL: [[http://www.example.com|an example URL]]
1584 <p>Piped link to URL: [<a href="http://www.example.com%7Can" class="external text" rel="nofollow">example URL</a>]
1589 BUG 2: [[page|http://url/]] should link to page, not http://url/
1591 [[Main Page|http://url/]]
1593 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1598 BUG 337: Escaped self-links should be bold
1602 [[Bug462]] [[Bug462]]
1604 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1609 Self-link to section should not be bold
1613 [[Main Page#section]]
1615 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1626 Self-link to numeric title
1632 <p><strong class="selflink">0</strong>
1637 Link to numeric-equivalent title
1643 <p><a href="/wiki/00" title="00">00</a>
1648 <nowiki> inside a link
1650 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1652 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1657 Non-breaking spaces in title
1659 [[ Main Page ]]
1661 <p><a href="/wiki/Main_Page" title="Main Page"> Main Page </a>
1667 ### Interwiki links (see maintenance/interwiki.sql)
1671 Inline interwiki link
1673 [[MeatBall:SoftSecurity]]
1675 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1680 Inline interwiki link with empty title (bug 2372)
1684 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw" title="meatball:">MeatBall:</a>
1689 Interwiki link encoding conversion (bug 1636)
1691 *[[Wikipedia:ro:Olteniţa]]
1692 *[[Wikipedia:ro:Olteniţa]]
1694 <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>
1695 </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>
1701 Interwiki link with fragment (bug 2130)
1703 [[MeatBall:SoftSecurity#foo]]
1705 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1720 Double interlanguage link
1731 Interlanguage link, with prefix links
1743 Double interlanguage link, with prefix links (bug 8897)
1770 Incorrecly removing closing slashes from correctly formed XHTML
1772 <br style="clear:both;" />
1774 <p><br style="clear:both;" />
1779 Failing to transform badly formed HTML into correct XHTML
1785 <p><br clear="left" />
1786 <br clear="right" />
1792 Horizontal ruler (should it add that extra space?)
1806 ### Block-level elements
1829 <ol><li>Numbered list
1846 ***#Number on level 4
1848 **#Number on level 3
1849 **#Number on level 3
1854 <ol><li> with numbers
1856 <ul><li> and bullets
1858 <ol><li> and numbers
1860 </li><li>bullets again
1861 <ul><li>bullet level 2
1862 <ul><li>bullet level 3
1863 <ol><li>Number on level 4
1866 </li><li>bullet level 2
1867 <ol><li>Number on level 3
1868 </li><li>Number on level 3
1871 <ol><li>number level 2
1879 List items are not parsed correctly following a <pre> block (bug 785)
1885 <ul><li> <pre>foo</pre>
1886 </li><li> <pre>bar</pre>
1897 Magic Word: {{CURRENTDAY}}
1906 Magic Word: {{CURRENTDAY2}}
1915 Magic Word: {{CURRENTDAYNAME}}
1924 Magic Word: {{CURRENTDOW}}
1933 Magic Word: {{CURRENTMONTH}}
1942 Magic Word: {{CURRENTMONTHABBREV}}
1944 {{CURRENTMONTHABBREV}}
1951 Magic Word: {{CURRENTMONTHNAME}}
1953 {{CURRENTMONTHNAME}}
1960 Magic Word: {{CURRENTMONTHNAMEGEN}}
1962 {{CURRENTMONTHNAMEGEN}}
1969 Magic Word: {{CURRENTTIME}}
1978 Magic Word: {{CURRENTWEEK}} (@bug 4594)
1987 Magic Word: {{CURRENTYEAR}}
1996 Magic Word: {{FULLPAGENAME}}
1998 title=[[User:Ævar Arnfjörð Bjarmason]]
2002 <p>User:Ævar Arnfjörð Bjarmason
2007 Magic Word: {{FULLPAGENAMEE}}
2009 title=[[User:Ævar Arnfjörð Bjarmason]]
2013 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2018 Magic Word: {{NAMESPACE}}
2020 title=[[User:Ævar Arnfjörð Bjarmason]]
2029 Magic Word: {{NAMESPACEE}}
2031 title=[[User:Ævar Arnfjörð Bjarmason]]
2040 Magic Word: {{NUMBEROFFILES}}
2049 Magic Word: {{PAGENAME}}
2051 title=[[User:Ævar Arnfjörð Bjarmason]]
2055 <p>Ævar Arnfjörð Bjarmason
2060 Magic Word: {{PAGENAMEE}}
2062 title=[[User:Ævar Arnfjörð Bjarmason]]
2066 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2071 Magic Word: {{REVISIONID}}
2080 Magic Word: {{SCRIPTPATH}}
2089 Magic Word: {{SERVER}}
2093 <p><a href="http://localhost" class="external free" rel="nofollow">http://localhost</a>
2098 Magic Word: {{SERVERNAME}}
2107 Magic Word: {{SITENAME}}
2116 Namespace 1 {{ns:1}}
2125 Namespace 1 {{ns:01}}
2134 Namespace 0 {{ns:0}} (bug 4783)
2142 Namespace 0 {{ns:00}} (bug 4783)
2150 Namespace -1 {{ns:-1}}
2159 Namespace User {{ns:User}}
2168 Namespace User talk {{ns:User_talk}}
2177 Namespace User talk {{ns:uSeR tAlK}}
2186 Namespace File {{ns:File}}
2195 Namespace File {{ns:Image}}
2204 Namespace (lang=de) Benutzer {{ns:User}}
2215 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2221 <p>Benutzer Diskussion
2229 {{urlencode:hi world?!}}
2230 {{urlencode:hi world?!|WIKI}}
2231 {{urlencode:hi world?!|PATH}}
2232 {{urlencode:hi world?!|QUERY}}
2245 Magic links: internal link to RFC (bug 479)
2249 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2254 Magic links: RFC (bug 479)
2258 <p><a href="http://tools.ietf.org/html/rfc822" class="external mw-magiclink-rfc">RFC 822</a>
2263 Magic links: ISBN (bug 1937)
2267 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2272 Magic links: PMID incorrectly converts space to underscore
2276 <p><a href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract" class="external mw-magiclink-pmid">PMID 1234</a>
2285 Nonexistent template
2287 {{thistemplatedoesnotexist}}
2289 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2296 This is a test template
2304 <p>This is a test template
2309 Template with explicit namespace
2313 <p>This is a test template
2321 This is a test template with parameter {{{param}}}
2327 {{paramtest|param=foo}}
2329 <p>This is a test template with parameter foo
2334 Template:paramtestnum
2340 Template unnamed parameter
2342 {{paramtestnum|Main Page|the main page}}
2344 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2349 Template:templatesimple
2355 Template:templateredirect
2357 #redirect [[Template:templatesimple]]
2361 Template:templateasargtestnum
2367 Template:templateasargtest
2369 {{template{{{templ}}}}}
2373 Template:templateasargtest2
2379 Template with template name as unnamed argument
2381 {{templateasargtestnum|templatesimple}}
2388 Template with template name as argument
2390 {{templateasargtest|templ=simple}}
2397 Template with template name as argument (2)
2399 {{templateasargtest2|templ=templatesimple}}
2406 Template:templateasargtestdefault
2408 {{{{{templ|templatesimple}}}}}
2418 Template with default value
2420 {{templateasargtestdefault}}
2427 Template with default value (value set)
2429 {{templateasargtestdefault|templ=templa}}
2438 {{templateredirect}}
2445 Template with argument in separate line
2447 {{ templateasargtest |
2455 Template with complex template as argument
2458 param ={{ templateasargtest |
2461 <p>This is a test template with parameter (test)
2466 Template with thumb image (with link in description)
2469 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2471 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>
2476 Template:complextemplate
2478 {{{1}}} {{paramtest|
2479 param ={{{param}}}}}
2483 Template with complex arguments
2486 param ={{ templateasargtest |
2487 templ = simple }}|[[Template:complextemplate|link]]}}
2489 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2494 BUG 553: link with two variables in a piped link
2497 |[[{{{1}}}|{{{2}}}]]
2502 <td>[[{{{1}}}|{{{2}}}]]
2508 Magic variable as template parameter
2510 {{paramtest|param={{SITENAME}}}}
2512 <p>This is a test template with parameter MediaWiki
2519 [[{{{param}}}|link]]
2523 Template parameter as link source
2525 {{linktest|param=Main Page}}
2527 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2535 including another template, {{paramtest|param={{{arg}}}}}
2539 Template passing argument to another template
2541 {{paramtest2|arg='hmm'}}
2543 <p>including another template, This is a test template with parameter 'hmm'
2554 Template as link source
2558 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2576 Template infinite loop
2580 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
2585 Template from main namespace
2604 BUG 529: Template with table, not included at beginning of line
2623 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2643 BUG 41: Template parameters shown as broken links
2655 ''None'' of '''this''' should be
2657 but rather passed unmodified
2661 # hmm, fix this or just deprecate msgnw and document its behavior?
2667 {{msgnw:MSGNW test}}
2669 <p>''None'' of '''this''' should be
2671 but rather passed unmodified
2679 {{int:youhavenewmessages|lots of money|not!}}
2681 <p>You have lots of money (not!).
2688 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2692 <includeonly> and <noinclude> being included
2703 <onlyinclude>Foo</onlyinclude>bar
2707 <onlyinclude> being included
2719 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2723 <onlyinclude> and <includeonly> being included
2732 <includeonly> and <noinclude> on a page
2734 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2741 <onlyinclude> on a page
2743 <onlyinclude>Foo</onlyinclude>bar
2750 Template:Includeonly section
2753 ==Includeonly section==
2759 Bug 6563: Edit link generation for section shown by <includeonly>
2761 {{includeonly section}}
2763 <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>
2764 <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>
2768 # Uses same input as the contents of [[Template:Includeonly section]]
2770 Bug 6563: Section extraction for section shown by <includeonly>
2775 ==Includeonly section==
2783 Bug 6563: Edit link generation for section suppressed by <includeonly>
2786 ==Includeonly section==
2790 <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>
2795 Bug 6563: Section extraction for section suppressed by <includeonly>
2800 ==Includeonly section==
2808 ### Pre-save transform tests
2811 pre-save transform: subst:
2817 This is a test template
2821 pre-save transform: normal template
2831 pre-save transform: nonexistent template
2835 {{thistemplatedoesnotexist}}
2837 {{thistemplatedoesnotexist}}
2842 pre-save transform: subst magic variables
2851 # This is bug 89, which I fixed. -- wtm
2853 pre-save transform: subst: templates with parameters
2857 {{subst:paramtest|param="something else"}}
2859 This is a test template with parameter "something else"
2865 <nowiki>'''not wiki'''</nowiki>
2869 pre-save transform: nowiki in subst (bug 1188)
2873 {{subst:nowikitest}}
2875 <nowiki>'''not wiki'''</nowiki>
2880 Template:commenttest
2882 This template has <!-- a comment --> in it.
2886 pre-save transform: comment in subst (bug 1936)
2890 {{subst:commenttest}}
2892 This template has <!-- a comment --> in it.
2896 pre-save transform: unclosed tag
2900 <nowiki>'''not wiki'''
2902 <nowiki>'''not wiki'''
2906 pre-save transform: mixed tag case
2910 <NOwiki>'''not wiki'''</noWIKI>
2912 <NOwiki>'''not wiki'''</noWIKI>
2916 pre-save transform: unclosed comment in <nowiki>
2920 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2922 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2928 <span onmouseover="alert('crap')">Oh no</span>
2932 (confirming safety of fix for subst bug 1936)
2934 {{Template:dangerous}}
2936 <p><span>Oh no</span>
2941 pre-save transform: comment containing gallery (bug 5024)
2945 <!-- <gallery>data</gallery> -->
2947 <!-- <gallery>data</gallery> -->
2951 pre-save transform: comment containing extension
2955 <!-- <tag>data</tag> -->
2957 <!-- <tag>data</tag> -->
2961 pre-save transform: comment containing nowiki
2965 <!-- <nowiki>data</nowiki> -->
2967 <!-- <nowiki>data</nowiki> -->
2971 pre-save transform: comment containing math
2975 <!-- <math>data</math> -->
2977 <!-- <math>data</math> -->
2981 pre-save transform: <noinclude> in subst (bug 3298)
2991 pre-save transform: <onlyinclude> in subst (bug 3298)
3003 {{<includeonly>subst:</includeonly>Includes}}
3007 Template:SafeSubstTest
3009 {{<includeonly>safesubst:</includeonly>Includes}}
3013 bug 22297: safesubst: works during PST
3017 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
3023 bug 22297: safesubst: works during normal parse
3032 subst: does not work during normal parse
3036 <p>{{subst:Includes}}
3041 pre-save transform: context links ("pipe trick")
3045 [[Article (context)|]]
3048 [[Bar:Article (context)|]]
3049 [[:Bar:Article (context)|]]
3051 [[|Article (context)]]
3055 [[Article (context)|Article]]
3056 [[Bar:Article|Article]]
3057 [[:Bar:Article|Article]]
3058 [[Bar:Article (context)|Article]]
3059 [[:Bar:Article (context)|Article]]
3061 [[Article (context)]]
3062 [[Bar:X (Y) Z|X (Y) Z]]
3063 [[:Bar:X (Y) Z|X (Y) Z]]
3067 pre-save transform: context links ("pipe trick") with interwiki prefix
3071 [[interwiki:Article|]]
3072 [[:interwiki:Article|]]
3073 [[interwiki:Bar:Article|]]
3074 [[:interwiki:Bar:Article|]]
3076 [[interwiki:Article|Article]]
3077 [[:interwiki:Article|Article]]
3078 [[interwiki:Bar:Article|Bar:Article]]
3079 [[:interwiki:Bar:Article|Bar:Article]]
3083 pre-save transform: context links ("pipe trick") with parens in title
3085 pst title=[[Somearticle (context)]]
3089 [[Article (context)|Article]]
3093 pre-save transform: context links ("pipe trick") with comma in title
3095 pst title=[[Someplace, Somewhere]]
3098 [[Otherplace, Elsewhere|]]
3099 [[Otherplace, Elsewhere, Anywhere|]]
3101 [[Otherplace, Somewhere|Otherplace]]
3102 [[Otherplace, Elsewhere|Otherplace]]
3103 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3107 pre-save transform: context links ("pipe trick") with parens and comma
3109 pst title=[[Someplace (IGNORED), Somewhere]]
3112 [[Otherplace (place), Elsewhere|]]
3114 [[Otherplace, Somewhere|Otherplace]]
3115 [[Otherplace (place), Elsewhere|Otherplace]]
3119 pre-save transform: context links ("pipe trick") with comma and parens
3121 pst title=[[Who, me? (context)]]
3124 [[Me, Myself, and I (1937 song)|]]
3126 [[Yes, you. (context)|Yes, you.]]
3127 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3131 pre-save transform: context links ("pipe trick") with namespace
3133 pst title=[[Ns:Somearticle]]
3137 [[Ns:Article|Article]]
3141 pre-save transform: context links ("pipe trick") with namespace and parens
3143 pst title=[[Ns:Somearticle (context)]]
3147 [[Ns:Article (context)|Article]]
3151 pre-save transform: context links ("pipe trick") with namespace and comma
3153 pst title=[[Ns:Somearticle, Context, Whatever]]
3157 [[Ns:Article, Context, Whatever|Article]]
3161 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3163 pst title=[[Ns:Somearticle, Context (context)]]
3167 [[Ns:Article (context)|Article]]
3171 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3173 pst title=[[Ns:Somearticle (IGNORED), Context]]
3177 [[Ns:Article, Context|Article]]
3182 ### Message transform tests
3185 message transform: magic variables
3195 message transform: should not transform wiki markup
3205 message transform: <noinclude> in transcluded template (bug 4926)
3215 message transform: <onlyinclude> in transcluded template (bug 4926)
3225 {{#special:}} page name, known
3229 {{#special:Recentchanges}}
3231 Special:RecentChanges
3235 {{#special:}} page name with subpage, known
3239 {{#special:Recentchanges/param}}
3241 Special:RecentChanges/param
3245 {{#special:}} page name, unknown
3249 {{#special:foobarnonexistent}}
3251 No such special page
3260 [[Image:foobar.jpg]]
3262 <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>
3269 [[Image:foobar.jpg|right]]
3271 <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>
3276 Simple image (using File: namespace, now canonical)
3280 <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>
3287 [[Image:foobar.jpg|right|Caption text]]
3289 <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>
3294 Image with link parameter, wiki target
3296 [[Image:foobar.jpg|link=Target page]]
3298 <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>
3303 Image with link parameter, URL target
3305 [[Image:foobar.jpg|link=http://example.com/]]
3307 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3312 Image with empty link parameter
3314 [[Image:foobar.jpg|link=]]
3316 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3321 Image with link parameter (wiki target) and unnamed parameter
3323 [[Image:foobar.jpg|link=Target page|Title]]
3325 <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>
3330 Image with link parameter (URL target) and unnamed parameter
3332 [[Image:foobar.jpg|link=http://example.com/|Title]]
3334 <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>
3339 Thumbnail image with link parameter
3341 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
3343 <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>
3348 Image with frame and link
3350 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3352 <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>
3357 Image with frame and link and explicit alt
3359 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3361 <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>
3366 Image with wiki markup in implicit alt
3368 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3370 <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>
3375 Image with wiki markup in explicit alt
3377 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3379 <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>
3384 Link to image page- image page normally doesn't exists, hence edit link
3385 Add test with existing image page
3386 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3390 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3395 bug 18784 Link to non-existent image page with caption should use caption as link text
3397 [[:Image:test|caption]]
3399 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
3404 Frameless image caption with a free URL
3406 [[Image:foobar.jpg|http://example.com]]
3408 <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>
3413 Thumbnail image caption with a free URL
3415 [[Image:foobar.jpg|thumb|http://example.com]]
3417 <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="http://example.com" class="external free" rel="nofollow">http://example.com</a></div></div></div>
3422 Thumbnail image caption with a free URL and explicit alt
3424 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3426 <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 href="http://example.com" class="external free" rel="nofollow">http://example.com</a></div></div></div>
3431 BUG 1887: A ISBN with a thumbnail
3433 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3435 <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>
3440 BUG 1887: A RFC with a thumbnail
3442 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3444 <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 href="http://tools.ietf.org/html/rfc12354" class="external mw-magiclink-rfc">RFC 12354</a></div></div></div>
3449 BUG 1887: A mailto link with a thumbnail
3451 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3453 <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 href="mailto:nobody@example.com" class="external free" rel="nofollow">mailto:nobody@example.com</a></div></div></div>
3458 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
3459 so math is not stripped and turns up as escaped <math> tags.
3461 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3463 <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><math>2+2</math></div></div></div>
3468 BUG 1887, part 2: A <math> with a thumbnail- math enabled
3472 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3474 <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><span class="texhtml">2 + 2</span></div></div></div>
3478 # Pending resolution to bug 368
3480 BUG 648: Frameless image caption with a link
3482 [[Image:foobar.jpg|text with a [[link]] in it]]
3484 <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>
3489 BUG 648: Frameless image caption with a link (suffix)
3491 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3493 <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>
3498 BUG 648: Frameless image caption with an interwiki link
3500 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3502 <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>
3507 BUG 648: Frameless image caption with a piped interwiki link
3509 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3511 <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>
3516 Escape HTML special chars in image alt text
3518 [[Image:foobar.jpg|& < > "]]
3520 <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>
3525 BUG 499: Alt text should have Ӓ, not &1234;
3527 [[Image:foobar.jpg|♀]]
3529 <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>
3534 Broken image caption with link
3536 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3538 <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.
3543 Image caption containing another image
3545 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3547 <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>
3552 Image caption containing a newline
3554 [[Image:Foobar.jpg|This
3557 <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>
3563 Bug 3090: External links other than http: in image captions
3565 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3567 <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 href="irc://example.net" class="external text" rel="nofollow">irc</a> and <a href="https://example.com" class="external text" rel="nofollow">Secure</a> ext links in it.</div></div></div>
3574 #REDIRECT [[File:Barfoo.jpg]]
3580 [[Image:Barfoo.jpg]]
3582 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
3587 Missing image with uploads disabled
3591 [[Image:Foobaz.jpg]]
3593 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
3602 Subpage test/subpage
3610 subpage title=[[Subpage test]]
3614 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3619 Subpage noslash link
3621 subpage title=[[Subpage test]]
3625 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3634 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
3639 BUG 561: {{/Subpage}}
3641 subpage title=[[Page]]
3645 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
3653 Category:MediaWiki User's Guide
3661 [[:Category:MediaWiki User's Guide]]
3663 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
3672 [[Category:MediaWiki User's Guide]]
3674 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3678 PAGESINCATEGORY invalid title fatal (r33546 fix)
3680 {{PAGESINCATEGORY:<bogus>}}
3687 ### Inter-language links
3690 Inter-language links
3696 [[zh:食品]]
3698 es:Alimento fr:Nourriture zh:食品
3705 Basic section headings
3712 ===Smaller headline===
3715 <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>
3718 <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>
3721 <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>
3727 Section headings with TOC
3730 === Subheadline 1 ===
3731 ===== Skipping a level =====
3732 ====== Skipping a level ======
3736 ===Another headline===
3738 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3740 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3742 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3744 <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>
3746 <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>
3753 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
3755 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
3760 <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>
3761 <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>
3762 <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>
3763 <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>
3764 <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>
3767 <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>
3771 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
3773 Handling of sections up to level 6 and beyond
3776 == Level 2 Heading==
3777 === Level 3 Heading===
3778 ==== Level 4 Heading====
3779 ===== Level 5 Heading=====
3780 ====== Level 6 Heading======
3781 ======= Level 7 Heading=======
3782 ======== Level 8 Heading========
3783 ========= Level 9 Heading=========
3784 ========== Level 10 Heading==========
3786 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3788 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
3790 <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>
3792 <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>
3794 <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>
3796 <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>
3798 <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>
3799 <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>
3800 <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>
3801 <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>
3802 <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>
3815 <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>
3816 <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>
3817 <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>
3818 <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>
3819 <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>
3820 <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>
3821 <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>
3822 <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>
3823 <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>
3824 <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>
3829 TOC regression (bug 9764)
3833 ==== title 1.1.1 ====
3838 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3840 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3842 <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>
3844 <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>
3847 <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>
3850 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3852 <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>
3857 <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>
3858 <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>
3859 <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>
3860 <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>
3861 <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>
3862 <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>
3867 TOC with wgMaxTocLevel=3 (bug 6204)
3873 ==== title 1.1.1 ====
3878 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3880 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3882 <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>
3883 <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>
3886 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3888 <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>
3893 <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>
3894 <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>
3895 <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>
3896 <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>
3897 <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>
3898 <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>
3903 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
3909 ====Section 1.1.1====
3910 ====Section 1.1.1.1====
3913 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3915 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
3917 <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>
3920 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
3923 <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>
3924 <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>
3925 <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>
3926 <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>
3927 <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>
3933 Resolving duplicate section names
3938 <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>
3939 <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>
3944 Resolving duplicate section names with differing case (bug 10721)
3949 <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>
3950 <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>
3962 Template with sections, __NOTOC__
3969 <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>
3970 <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>
3971 <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>
3972 <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>
3977 __NOEDITSECTION__ keyword
3983 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
3984 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
3989 Link inside a section heading
3991 ==Section with a [[Main Page|link]] in it==
3993 <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>
3998 TOC regression (bug 12077)
4005 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4007 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
4009 <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>
4012 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
4015 <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>
4016 <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>
4017 <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>
4022 BUG 1219 URL next to image (good)
4024 http://example.com [[Image:foobar.jpg]]
4026 <p><a href="http://example.com" class="external free" rel="nofollow">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>
4031 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
4034 The line above must have a trailing space!
4037 But just in case it doesn't...
4039 <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>
4040 <p>The line above must have a trailing space!
4042 <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>
4043 <p>But just in case it doesn't...
4048 BUG 1219 URL next to image (broken)
4050 http://example.com[[Image:foobar.jpg]]
4052 <p><a href="http://example.com" class="external free" rel="nofollow">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>
4057 Bug 1186 news: in the middle of text
4059 http://en.wikinews.org/wiki/Wikinews:Workplace
4061 <p><a href="http://en.wikinews.org/wiki/Wikinews:Workplace" class="external free" rel="nofollow">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
4067 Namespaced link must have a title
4076 Namespaced link must have a title (bad fragment version)
4078 [[Project:#fragment]]
4080 <p>[[Project:#fragment]]
4086 div with no attributes
4088 <div>HTML rocks</div>
4090 <div>HTML rocks</div>
4095 div with double-quoted attribute
4097 <div id="rock">HTML rocks</div>
4099 <div id="rock">HTML rocks</div>
4104 div with single-quoted attribute
4106 <div id='rock'>HTML rocks</div>
4108 <div id="rock">HTML rocks</div>
4113 div with unquoted attribute
4115 <div id=rock>HTML rocks</div>
4117 <div id="rock">HTML rocks</div>
4122 div with illegal double attributes
4124 <div align="center" align="right">HTML rocks</div>
4126 <div align="right">HTML rocks</div>
4131 HTML multiple attributes correction
4133 <p class="error" class="awesome">Awesome!</p>
4135 <p class="awesome">Awesome!</p>
4140 Table multiple attributes correction
4143 !+ class="error" class="awesome"| status
4148 <th class="awesome"> status
4156 <DIV ALIGN="center">HTML ROCKS</DIV>
4158 <div align="center">HTML ROCKS</div>
4164 text with amp in the middle of nowhere
4168 <p>Remember AT&T?
4173 text with character entity: eacute
4175 I always thought é was a cute letter.
4177 <p>I always thought é was a cute letter.
4182 text with undefined character entity: xacute
4184 I always thought &xacute; was a cute letter.
4186 <p>I always thought &xacute; was a cute letter.
4198 [[Media:Foobar.jpg]]
4200 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4205 Media link with text
4207 [[Media:Foobar.jpg|A neat file to look at]]
4209 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4213 # FIXME: this is still bad HTML tag nesting
4215 Media link with nasty text
4216 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4218 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4220 <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>
4225 Media link to nonexistent file (bug 1702)
4227 [[Media:No such.jpg]]
4229 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4234 Image link to nonexistent file (bug 1850 - good)
4236 [[Image:No such.jpg]]
4238 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4243 :Image link to nonexistent file (bug 1850 - bad)
4245 [[:Image:No such.jpg]]
4247 <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>
4254 Character reference normalization in link text (bug 1938)
4256 [[Main Page|this&that]]
4258 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4265 Test for unicode normalization
4267 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
4271 (bug 19451) Links should refer to the normalized form.
4279 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4280 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4281 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4282 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4283 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
4288 Empty attribute crash test (bug 2067)
4290 <font color="">foo</font>
4292 <p><font color="">foo</font>
4297 Empty attribute crash test single-quotes (bug 2067)
4299 <font color=''>foo</font>
4301 <p><font color="">foo</font>
4306 Attribute test: equals, then nothing
4308 <font color=>foo</font>
4315 Attribute test: unquoted value
4317 <font color=x>foo</font>
4319 <p><font color="x">foo</font>
4324 Attribute test: unquoted but illegal value (hash)
4326 <font color=#x>foo</font>
4328 <p><font color="#x">foo</font>
4333 Attribute test: no value
4335 <font color>foo</font>
4337 <p><font color="color">foo</font>
4342 Bug 2095: link with three closing brackets
4346 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
4351 Bug 2095: link with pipe and three closing brackets
4355 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4360 Bug 2095: link with pipe and three closing brackets, version 2
4362 [[Main Page|[http://example.com/]]]
4364 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4374 Template:Dangerous attribute
4376 " onmouseover="alert(document.cookie)
4380 Template:Dangerous style attribute
4382 border-size: expression(alert(document.cookie))
4388 <div style="float: right; {{{1}}}">Magic div</div>
4392 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4394 <div title="{{test}}"></div>
4396 <div title="This is a test template"></div>
4401 Bug 2304: HTML attribute safety (dangerous template; 2309)
4403 <div title="{{dangerous attribute}}"></div>
4405 <div title=""></div>
4410 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4412 <div style="{{dangerous style attribute}}"></div>
4414 <div style="/* insecure input */"></div>
4419 Bug 2304: HTML attribute safety (safe parameter; 2309)
4421 {{div style|width: 200px}}
4423 <div style="float: right; width: 200px">Magic div</div>
4428 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4430 {{div style|width: expression(alert(document.cookie))}}
4432 <div style="/* insecure input */">Magic div</div>
4437 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4439 {{div style|"><script>alert(document.cookie)</script>}}
4441 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4446 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4448 {{div style|" ><script>alert(document.cookie)</script>}}
4450 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4455 Bug 2304: HTML attribute safety (link)
4457 <div title="[[Main Page]]"></div>
4459 <div title="[[Main Page]]"></div>
4464 Bug 2304: HTML attribute safety (italics)
4466 <div title="''foobar''"></div>
4468 <div title="''foobar''"></div>
4473 Bug 2304: HTML attribute safety (bold)
4475 <div title="'''foobar'''"></div>
4477 <div title="'''foobar'''"></div>
4483 Bug 2304: HTML attribute safety (ISBN)
4485 <div title="ISBN 1234567890"></div>
4487 <div title="ISBN 1234567890"></div>
4492 Bug 2304: HTML attribute safety (RFC)
4494 <div title="RFC 1234"></div>
4496 <div title="RFC 1234"></div>
4501 Bug 2304: HTML attribute safety (PMID)
4503 <div title="PMID 1234567890"></div>
4505 <div title="PMID 1234567890"></div>
4510 Bug 2304: HTML attribute safety (web link)
4512 <div title="http://example.com/"></div>
4514 <div title="http://example.com/"></div>
4519 Bug 2304: HTML attribute safety (named web link)
4521 <div title="[http://example.com/ link]"></div>
4523 <div title="[http://example.com/ link]"></div>
4528 Bug 3244: HTML attribute safety (extension; safe)
4530 <div style="<nowiki>background:blue</nowiki>"></div>
4532 <div style="background:blue"></div>
4537 Bug 3244: HTML attribute safety (extension; unsafe)
4539 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4541 <div style="/* insecure input */"></div>
4546 Math section safety when disabled
4548 <math><script>alert(document.cookies);</script></math>
4550 <p><math><script>alert(document.cookies);</script></math>
4554 # More MSIE fun discovered by Tom Gilder
4557 MSIE CSS safety test: spurious slash
4559 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4561 <div style="/* insecure input */">evil</div>
4566 MSIE CSS safety test: hex code
4568 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4570 <div style="/* insecure input */">evil</div>
4575 MSIE CSS safety test: comment in url
4577 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4579 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4584 MSIE CSS safety test: comment in expression
4586 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4588 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4594 Table attribute legitimate extension
4597 !+ style="<nowiki>color:blue</nowiki>"| status
4602 <th style="color:blue"> status
4608 Table attribute safety
4611 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4616 <th style="/* insecure input */"> status
4622 CSS line continuation 1
4624 <div style="background-image: u\ rl(test.jpg);"></div>
4626 <div style="/* insecure input */"></div>
4631 CSS line continuation 2
4633 <div style="background-image: u\ rl(test.jpg); "></div>
4635 <div style="/* insecure input */"></div>
4646 Expansion of multi-line templates in attribute values (bug 6255)
4648 <div style="background: {{identity|#00FF00}}">-</div>
4650 <div style="background: #00FF00">-</div>
4656 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
4658 <div style="background:
4661 <div style="background: #00FF00">-</div>
4666 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
4668 <div style="background: #00FF00">-</div>
4670 <div style="background: #00FF00">-</div>
4675 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
4678 Parser hook: empty input
4691 Parser hook: empty input using terminated empty elements
4704 Parser hook: empty input using terminated empty elements (space before)
4717 Parser hook: basic input
4731 Parser hook: case insensitive
4745 Parser hook: case insensitive, redux
4758 Parser hook: nested tags
4762 <tag><tag></tag></tag>
4773 Parser hook: basic arguments
4775 <tag width=200 height = "100" depth = '50' square></tag>
4794 Parser hook: argument containing a forward slash (bug 5344)
4796 <tag filename='/tmp/bla'></tag>
4802 string(8) "/tmp/bla"
4809 Parser hook: empty input using terminated empty elements (bug 2374)
4823 # </tag> should be output literally since there is no matching tag that begins it
4825 Parser hook: basic arguments using terminated empty elements (bug 2374)
4827 <tag width=200 height = "100" depth = '50' square/>
4850 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
4854 Parser hook: static parser hook not inside a comment
4856 <statictag>hello, world</statictag>
4857 <statictag action=flush/>
4865 Parser hook: static parser hook inside a comment
4867 <!-- <statictag>hello, world</statictag> -->
4868 <statictag action=flush/>
4874 # Nested template calls; this case was broken by Parser.php rev 1.506,
4878 Template:One-parameter
4880 (My parameter is: {{{1}}})
4884 Template:Map-one-parameter
4890 Nested template calls
4892 {{Map-one-parameter|One-parameter|param}}
4894 <p>(My parameter is: param)
4903 Sanitizer: Closing of open tags
4905 <s></s><table></table>
4907 <s></s><table></table>
4912 Sanitizer: Closing of open but not closed tags
4921 Sanitizer: Closing of closed but not open tags
4930 Sanitizer: Closing of closed but not open table tags
4932 Table not started</td></tr></table>
4934 <p>Table not started</td></tr></table>
4939 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
4941 <span id="æ: v">byte</span>[[#æ: v|backlink]]
4943 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
4948 Sanitizer: Validating the contents of the id attribute (bug 4515)
4954 Something, but definitely not <br id="9" />...
4958 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
4962 <br id="foo" /><br id="foo" />
4964 Something need to be done. foo-2 ?
4968 Language converter: output gets cut off unexpectedly (bug 5757)
4972 this bit is safe: }-
4974 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
4976 then we get cut off here: }-
4978 all additional text is vanished
4980 <p>this bit is safe: }-
4981 </p><p>but if we add a conversion instance: xxx
4982 </p><p>then we get cut off here: }-
4983 </p><p>all additional text is vanished
4988 Self closed html pairs (bug 5487)
4991 <center><font id="bug" />Centered text</center>
4992 <div><font id="bug2" />In div text</div>
4994 <center><font id="bug" />Centered text</center>
4995 <div><font id="bug2" />In div text</div>
5004 Punctuation: nbsp before exclamation
5008 <p>C'est grave !
5013 Punctuation: CSS !important (bug 11874)
5015 <div style="width:50% !important">important</div>
5017 <div style="width:50% !important">important</div>
5022 Punctuation: CSS ! important (bug 11874; with space after)
5024 <div style="width:50% ! important">important</div>
5026 <div style="width:50% ! important">important</div>
5032 HTML bullet list, closed tags (bug 5497)
5047 HTML bullet list, unclosed tags (bug 5497)
5064 HTML ordered list, closed tags (bug 5497)
5079 HTML ordered list, unclosed tags (bug 5497)
5096 HTML nested bullet list, closed tags (bug 5497)
5121 HTML nested bullet list, open tags (bug 5497)
5146 HTML nested ordered list, closed tags (bug 5497)
5171 HTML nested ordered list, open tags (bug 5497)
5196 HTML ordered list item with parameters oddity
5198 <ol><li id="fragment">One</li></ol>
5200 <ol><li id="fragment">One</li></ol>
5205 bug 5918: autonumbering
5207 [http://first/] [http://second] [ftp://ftp]
5211 [mailto:enclosed@mail.tld With target]
5213 [mailto:enclosed@mail.tld]
5215 mailto:inline@mail.tld
5217 <p><a href="http://first/" class="external autonumber" rel="nofollow">[1]</a> <a href="http://second" class="external autonumber" rel="nofollow">[2]</a> <a href="ftp://ftp" class="external autonumber" rel="nofollow">[3]</a>
5218 </p><p><a href="ftp://inlineftp" class="external free" rel="nofollow">ftp://inlineftp</a>
5219 </p><p><a href="mailto:enclosed@mail.tld" class="external text" rel="nofollow">With target</a>
5220 </p><p><a href="mailto:enclosed@mail.tld" class="external autonumber" rel="nofollow">[4]</a>
5221 </p><p><a href="mailto:inline@mail.tld" class="external free" rel="nofollow">mailto:inline@mail.tld</a>
5227 # Security and HTML correctness
5228 # From Nick Jenkins' fuzz testing
5232 Fuzz testing: Parser13
5247 Fuzz testing: Parser14
5252 <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>
5253 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5255 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5262 Fuzz testing: Parser14-table
5267 <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>
5268 <table style="__TOC__">
5274 # Known to produce bogus xml (extra </td>)
5276 Fuzz testing: Parser16
5296 Fuzz testing: Parser21
5299 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5304 <th> <a href="irc://{{ftp://a" class="external free" rel="nofollow">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5314 Fuzz testing: Parser22
5316 http://===r:::https://b
5320 <p><a href="http://===r:::https://b" class="external free" rel="nofollow">http://===r:::https://b</a>
5328 # Known to produce bad XML for now
5330 Fuzz testing: Parser24
5337 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5338 <br style="onmouseover='alert(document.cookie);' " />
5340 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5345 <u class="|">}}}} >
5346 <br style="onmouseover='alert(document.cookie);'" />
5348 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5357 # Note: the current result listed for this is not what the original one was,
5358 # but the original bug was JavaScript injection, which is fixed in any case.
5359 # It's not clear that the original result listed was any more correct than the
5360 # current one. Original result:
5363 # <li class="||">
5364 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5366 Fuzz testing: Parser25 (bug 6055)
5372 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5374 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5379 Fuzz testing: URL adjacent extension (with space, clean)
5382 http://example.com <nowiki>junk</nowiki>
5384 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a> junk
5389 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5392 http://example.com<nowiki>junk</nowiki>
5394 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>junk
5399 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5402 http://example.com<pre>junk</pre>
5404 <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a><pre>junk</pre>
5409 Fuzz testing: image with bogus manual thumbnail
5411 [[Image:foobar.jpg|thumbnail= ]]
5413 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5418 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5420 <pre dir=" "></pre>
5422 <pre dir=" "></pre>
5427 Parsing optional HTML elements (Bug 6171)
5432 <td> Some tabular data</td>
5433 <td> More tabular data ...
5434 <td> And yet som tabular data</td>
5440 <td> Some tabular data</td>
5441 <td> More tabular data ...
5442 </td><td> And yet som tabular data</td>
5449 Correct handling of <td>, <tr> (Bug 6171)
5454 <td> Some tabular data</td>
5455 <td> More tabular data ...</td>
5456 <td> And yet som tabular data</td>
5462 <td> Some tabular data</td>
5463 <td> More tabular data ...</td>
5464 <td> And yet som tabular data</td>
5472 Parsing crashing regression (fr:JavaScript)
5476 <p></body></x>
5481 Inline wiki vs wiki block nesting
5487 <p><b>Bold paragraph</b>
5488 </p><p>New wiki paragraph
5493 Inline HTML vs wiki block nesting
5501 <p><b>Bold paragraph</b>
5502 </p><p>New wiki paragraph
5506 # Original result was this:
5507 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5509 # While that might be marginally more intuitive, maybe, the six-apostrophe
5510 # construct is clearly pathological and the result stated here (which is what
5511 # the parser actually does) is about as reasonable as anything.
5513 Mixing markup for italics and bold
5516 '''bold''''''bold''bolditalics'''''
5518 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5526 Article for special page transclusion test
5530 Special page transclusion
5533 {{Special:Prefixindex/Xyzzyx}}
5537 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5542 Special page transclusion twice (bug 5021)
5545 {{Special:Prefixindex/Xyzzyx}}
5546 {{Special:Prefixindex/Xyzzyx}}
5550 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5553 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5558 Transclusion of default MediaWiki message
5560 {{MediaWiki:Mainpage}}
5567 Transclusion of nonexistent MediaWiki message
5569 {{MediaWiki:Mainpagexxx}}
5571 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
5576 Transclusion of MediaWiki message with underscore
5578 {{MediaWiki:history_short}}
5585 Transclusion of MediaWiki message with space
5587 {{MediaWiki:history short}}
5594 Invalid header with following text
5604 Section extraction test (section 0)
5624 Section extraction test (section 1)
5646 Section extraction test (section 2)
5667 Section extraction test (section 3)
5687 Section extraction test (section 4)
5711 Section extraction test (section 5)
5731 Section extraction test (section 6)
5752 Section extraction test (section 7)
5772 Section extraction test (section 8)
5792 Section extraction test (section 9)
5813 Section extraction test (section 10)
5833 Section extraction test (nonexistent section 11)
5852 Section extraction test with bogus heading (section 1)
5857 ==bogus== not a legal section
5861 ==bogus== not a legal section
5865 Section extraction test with bogus heading (section 2)
5870 ==bogus== not a legal section
5877 Section extraction test with comment after heading (section 1)
5889 Section extraction test with comment after heading (section 2)
5901 Section extraction test with bogus <nowiki> heading (section 1)
5906 ==bogus== <nowiki>not a legal section</nowiki>
5910 ==bogus== <nowiki>not a legal section</nowiki>
5914 Section extraction test with bogus <nowiki> heading (section 2)
5919 ==bogus== <nowiki>not a legal section</nowiki>
5926 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
5927 # instead of respecting commented sections
5929 Section extraction prefixed by comment (section 1)
5940 Section extraction prefixed by comment (section 2)
5951 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
5952 # instead of respecting HTML-style headings
5954 Section extraction, mixed wiki and html (section 1)
5970 Section extraction, mixed wiki and html (section 2)
5986 # Formerly testing for bug 3342
5988 Section extraction, heading surrounded by <noinclude>
5992 <noinclude>==unmarked==</noinclude>
5998 # Test behaviour of bug 19910
6000 Sectiion with all-equals
6005 The line above must have a trailing space
6008 But just in case it doesn't...
6012 But just in case it doesn't...
6016 Section replacement test (section 0)
6047 Section replacement test (section 1)
6076 Section replacement test (section 2)
6106 Section replacement test (section 3)
6137 Section replacement test (section 4)
6164 Section replacement test (section 5)
6195 Section replacement test (section 6)
6225 Section replacement test (section 7)
6256 Section replacement test (section 8)
6287 Section replacement test (section 9)
6316 Section replacement test (section 10)
6346 Section replacement test with initial whitespace (bug 13728)
6350 Preformatted initial line
6354 Preformatted initial line
6361 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6373 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6386 Section extraction, <pre> around bogus header (bug 10309)
6403 Section replacement, <pre> around bogus header (bug 10309)
6405 noxml replace=2,"xxx"
6426 Handling of 
 in URLs
6430 <ul><li><ul><li><a href="irc://%0Aa" class="external free" rel="nofollow">irc://%0Aa</a>
6437 5 quotes, code coverage +1 line
6444 Special:Search page linking.
6448 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
6463 * {{SUBJECTPAGENAME}}
6464 * {{SUBJECTPAGENAMEE}}
6471 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6473 <ul><li> Parser test
6474 </li><li> Parser test
6475 </li><li> Parser test
6476 </li><li> Parser_test
6477 </li><li> Parser test
6478 </li><li> Parser_test
6479 </li><li> Talk:Parser test
6480 </li><li> Talk:Parser_test
6481 </li><li> Parser test
6482 </li><li> Parser_test
6489 </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>
6493 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6503 image4 |300px| centre
6504 image5.svg| http://///////
6509 <table class="gallery" cellspacing="0" cellpadding="0">
6511 <td><div class="gallerybox" style="width: 155px;">
6512 <div style="height: 152px;">Image1.png</div>
6513 <div class="gallerytext">
6516 <td><div class="gallerybox" style="width: 155px;">
6517 <div style="height: 152px;">Image2.gif</div>
6518 <div class="gallerytext">
6523 <td><div class="gallerybox" style="width: 155px;">
6524 <div style="height: 152px;">Image3</div>
6525 <div class="gallerytext">
6528 <td><div class="gallerybox" style="width: 155px;">
6529 <div style="height: 152px;">Image4</div>
6530 <div class="gallerytext">
6537 <td><div class="gallerybox" style="width: 155px;">
6538 <div style="height: 152px;">Image5.svg</div>
6539 <div class="gallerytext">
6540 <p><a href="http://///////" class="external free" rel="nofollow">http://///////</a>
6544 <td><div class="gallerybox" style="width: 155px;">
6545 <div style="height: 152px;">* image6</div>
6546 <div class="gallerytext">
6555 Gallery (with options)
6557 <gallery widths='60px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
6558 File:Nonexistant.jpg|caption
6559 File:Nonexistant.jpg
6560 image:foobar.jpg|some '''caption''' [[Main Page]]
6564 <table class="gallery" cellspacing="0" cellpadding="0">
6565 <caption>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></caption>
6567 <td><div class="gallerybox" style="width: 95px;">
6568 <div style="height: 52px;">Nonexistant.jpg</div>
6569 <div class="gallerytext">
6574 <td><div class="gallerybox" style="width: 95px;">
6575 <div style="height: 52px;">Nonexistant.jpg</div>
6576 <div class="gallerytext">
6581 <td><div class="gallerybox" style="width: 95px;">
6582 <div class="thumb" style="padding: 19px 0; width: 90px;"><div style="margin-left: auto; margin-right: auto; width: 60px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="60" height="7" /></a></div></div>
6583 <div class="gallerytext">
6584 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6588 <td><div class="gallerybox" style="width: 95px;">
6589 <div class="thumb" style="padding: 19px 0; width: 90px;"><div style="margin-left: auto; margin-right: auto; width: 60px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="60" height="7" /></a></div></div>
6590 <div class="gallerytext">
6599 gallery (with showfilename option)
6601 <gallery showfilename>
6602 File:Nonexistant.jpg|caption
6603 File:Nonexistant.jpg
6604 image:foobar.jpg|some '''caption''' [[Main Page]]
6608 <table class="gallery" cellspacing="0" cellpadding="0">
6610 <td><div class="gallerybox" style="width: 155px;">
6611 <div style="height: 152px;">Nonexistant.jpg</div>
6612 <div class="gallerytext">
6613 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
6618 <td><div class="gallerybox" style="width: 155px;">
6619 <div style="height: 152px;">Nonexistant.jpg</div>
6620 <div class="gallerytext">
6621 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
6625 <td><div class="gallerybox" style="width: 155px;">
6626 <div class="thumb" style="padding: 66px 0; width: 150px;"><div style="margin-left: auto; margin-right: auto; width: 120px;"><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>
6627 <div class="gallerytext">
6628 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
6629 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6633 <td><div class="gallerybox" style="width: 155px;">
6634 <div class="thumb" style="padding: 66px 0; width: 150px;"><div style="margin-left: auto; margin-right: auto; width: 120px;"><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>
6635 <div class="gallerytext">
6636 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
6646 HTML Hex character encoding (spells the word "JavaScript")
6648 JavaScript
6650 <p>JavaScript
6655 __FORCETOC__ override
6667 ISBN 978-0-1234-56 789
6669 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
6674 ISBN followed by 5 spaces
6685 ISBN ISBN 1234567890
6687 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
6692 Bug 22905: <abbr> followed by ISBN followed by </a>
6694 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
6696 <p><abbr>(fr)</abbr> <a href="/wiki/Special:BookSources/2753300917" class="internal mw-magiclink-isbn">ISBN 2753300917</a> <a href="http://www.example.com" class="external text" rel="nofollow">example.com</a>
6705 <p>RFC <a href="http://tools.ietf.org/html/rfc1234" class="external mw-magiclink-rfc">RFC 1234</a>
6710 Double RFC with a wiki link
6714 <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>
6723 <p><a href="http://tools.ietf.org/html/rfc983" class="external mw-magiclink-rfc">RFC 983</a> 987
6728 Centre-aligned image
6730 [[Image:foobar.jpg|centre]]
6732 <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>
6739 [[Image:foobar.jpg|none]]
6741 <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>
6746 Width + Height sized image (using px) (height is ignored)
6748 [[Image:foobar.jpg|640x480px]]
6750 <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>
6755 Width-sized image (using px, no following whitespace)
6757 [[Image:foobar.jpg|640px]]
6759 <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>
6764 Width-sized image (using px, with following whitespace - test regression from r39467)
6766 [[Image:foobar.jpg|640px ]]
6768 <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>
6773 Width-sized image (using px, with preceding whitespace - test regression from r39467)
6775 [[Image:foobar.jpg| 640px]]
6777 <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>
6782 Another italics / bold test
6790 # Note the results may be incorrect, as parserTest output included this:
6791 # XML error: Mismatched tag at byte 6120:
6792 # ...<dd> </dt></dl> </dd...
6800 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
6811 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
6813 Images with the "|" character in the comment
6815 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
6817 <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 href="http://test/?param1=%7Cleft%7C&param2=%7Cx" class="external text" rel="nofollow">external</a> URL</div></div></div>
6822 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
6824 <html><script>alert(1);</script></html>
6826 <p><html><script>alert(1);</script></html>
6831 HTML with raw HTML ($wgRawHtml==true)
6835 <html><script>alert(1);</script></html>
6837 <p><script>alert(1);</script>
6842 Parents of subpages, one level up
6844 subpage title=[[Subpage test/L1/L2/L3]]
6848 <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>
6854 Parents of subpages, one level up, not named
6856 subpage title=[[Subpage test/L1/L2/L3]]
6860 <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>
6867 Parents of subpages, two levels up
6869 subpage title=[[Subpage test/L1/L2/L3]]
6875 <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
6876 </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>
6881 Parents of subpages, two levels up, without trailing slash or name.
6883 subpage title=[[Subpage test/L1/L2/L3]]
6892 Parents of subpages, two levels up, with lots of extra trailing slashes.
6894 subpage title=[[Subpage test/L1/L2/L3]]
6898 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
6903 Definition list code coverage
6909 <dl><dt> title  </dt><dd> def
6910 </dd><dt> title </dt><dd> def
6911 </dd><dt>title</dt><dd> def
6917 Don't fall for the self-closing div
6919 <div>hello world</div/>
6921 <div>hello world</div>
6930 <p>[[:Template:Msg]]
6939 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
6943 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
6945 Always escape literal '>' in output, not just after '<'
6959 <p>This is a test template
6960 This is a test template
6972 Inclusion of !userCanEdit() content
6976 <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>
6982 Out-of-order TOC heading levels
6991 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6993 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
6995 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
6996 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
6999 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
7001 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
7002 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
7007 <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>
7008 <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>
7009 <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>
7010 <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>
7011 <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>
7012 <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>
7018 ISBN with a dummy number
7028 ISBN with space-delimited number
7032 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
7038 ISBN with multiple spaces, no number
7057 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
7058 </p><p>ISBN 12345678901
7064 ISBN with trailing year (bug 8110)
7066 ISBN 1-234-56789-0 - 2006
7068 ISBN 1 234 56789 0 - 2006
7070 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
7071 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
7079 {{anchorencode:foo bar©#%n}}
7081 <p>foo_bar.C2.A9.23.25n
7086 anchorencode trims spaces
7088 {{anchorencode: __pretty__please__}}
7095 anchorencode deals with links
7097 {{anchorencode: [[hello|world]] [[hi]]}}
7104 anchorencode deals with templates
7106 {{anchorencode: {{Foo}} }}
7113 anchorencode encodes like the TOC generator: (bug 18431)
7115 === _ +:.3A%3A&&]] ===
7116 {{anchorencode: _ +:.3A%3A&&]] }}
7119 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
7120 <p>.2B:.3A.253A.26.26.5D.5D
7124 # Expected output in the following test is not necessarily expected (there
7125 # should probably be <p> tags inside the <blockquote> in the output) -- it's
7126 # only testing for well-formedness.
7128 Bug 6200: blockquotes and paragraph formatting
7148 Bug 8293: Use of center tag ruins paragraph formatting
7170 ### Language variants related tests
7173 Self-link in language variants
7175 title=[[Dunav]] language=sr
7177 Both [[Dunav]] and [[Дунав]] are names for this river.
7179 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
7185 Link to pages in language variants
7189 Main Page can be written as [[Маин Паге]]
7191 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
7197 Multiple links to pages in language variants
7201 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
7203 <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>.
7209 Simple template in language variants
7215 <p>This is a test template
7221 Template with explicit namespace in language variants
7227 <p>This is a test template
7233 Basic test for template parameter in language variants
7237 {{парамтест|param=foo}}
7239 <p>This is a test template with parameter foo
7245 Simple category in language variants
7249 [[Category:МедиаWики Усер'с Гуиде]]
7251 <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>
7256 Stripping -{}- tags (language variants)
7260 Latin proverb: -{Ne nuntium necare}-
7262 <p>Latin proverb: Ne nuntium necare
7268 Prevent conversion with -{}- tags (language variants)
7270 language=sr variant=sr-ec
7272 Latinski: -{Ne nuntium necare}-
7274 <p>Латински: Ne nuntium necare
7280 Prevent conversion of text with -{}- tags (language variants)
7282 language=sr variant=sr-ec
7284 Latinski: -{Ne nuntium necare}-
7286 <p>Латински: Ne nuntium necare
7292 Prevent conversion of links with -{}- tags (language variants)
7294 language=sr variant=sr-ec
7298 <p><a href="/index.php?title=Main_Page&variant=sr-ec" title="Main Page">Main Page</a>
7304 -{}- tags within headlines (within html for parserConvert())
7306 language=sr variant=sr-ec
7310 <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>
7316 Explicit definition of language variant alternatives
7318 language=zh variant=zh-tw
7320 -{zh:China;zh-tw:Taiwan}-, not China
7322 <p>Taiwan, not China
7328 Explicit session-wise language variant mapping (A flag and - flag)
7330 language=zh variant=zh-tw
7332 Taiwan is not China.
7333 But -{A|zh:China;zh-tw:Taiwan}- is China,
7334 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
7335 and -{China}- is China.
7337 <p>Taiwan is not China.
7338 But Taiwan is Taiwan,
7339 (This should be stripped!)
7345 Explicit session-wise language variant mapping (H flag for hide)
7347 language=zh variant=zh-tw
7349 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
7352 <p>(This should be stripped!)
7358 Adding explicit conversion rule for title (T flag)
7360 language=zh variant=zh-tw showtitle
7362 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7365 <p>Should be stripped!
7370 Testing that changing the language variant here in the tests actually works
7372 language=zh variant=zh showtitle
7374 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7377 <p>Should be stripped!
7382 Bug 24072: more test on conversion rule for title
7384 language=zh variant=zh-tw showtitle
7386 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
7387 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
7390 <p>This should be stripped!
7391 This won't take interferes with the title rule.
7396 Raw output of variant escape tags (R flag)
7398 language=zh variant=zh-tw
7400 Raw: -{R|zh:China;zh-tw:Taiwan}-
7402 <p>Raw: zh:China;zh-tw:Taiwan
7407 Nested using of manual convert syntax
7409 language=zh variant=zh-hk
7411 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
7413 <p>Nested: Hello Hong Kong!
7418 Do not convert roman numbers to language variants
7420 language=sr variant=sr-ec
7424 <p>Фридрих IV је цар.
7429 Unclosed language converter markup "-{"
7440 Don't convert raw rule "-{R|=>}-" to "=>"
7457 Bug 529: Uncovered bullet
7468 Bug 529: Uncovered table already at line-start
7491 Bug 529: Uncovered bullet in parser function result
7493 * Foo {{lc:{{bullet}} }}
7502 Bug 5678: Double-parsed template argument
7504 {{lc:{{{1}}}|hello}}
7511 Bug 5678: Double-parsed template invocation
7513 {{lc:{{paramtest {{!}} param = hello }} }}
7515 <p>{{paramtest | param = hello }}
7520 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
7546 Morwen/13: Unclosed link followed by heading
7553 <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>
7558 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
7565 <h1> <span class="mw-headline" id="heading">heading</span></h1>
7570 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
7577 <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>
7592 Paragraphs inside divs (no extra line breaks)
7604 Paragraphs inside divs (extra line break on open)
7619 Paragraphs inside divs (extra line break on close)
7634 Paragraphs inside divs (extra line break on open and close)
7651 Nesting tags, paragraphs on lines which begin with <div>
7655 <div></div><strong>A
7664 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
7666 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
7670 <blockquote>Line one
7672 Line two</blockquote>
7674 <blockquote>Line one
7675 Line two</blockquote>
7680 Bug 6200: paragraphs inside blockquotes (extra line break on open)
7687 Line two</blockquote>
7692 Line two</blockquote>
7697 Bug 6200: paragraphs inside blockquotes (extra line break on close)
7701 <blockquote>Line one
7706 <blockquote>Line one
7714 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
7733 Paragraphs inside blockquotes/divs (no extra line breaks)
7735 <blockquote><div>Line one
7737 Line two</div></blockquote>
7739 <blockquote><div>Line one
7740 Line two</div></blockquote>
7745 Paragraphs inside blockquotes/divs (extra line break on open)
7750 Line two</div></blockquote>
7755 Line two</div></blockquote>
7760 Paragraphs inside blockquotes/divs (extra line break on close)
7762 <blockquote><div>Line one
7767 <blockquote><div>Line one
7775 Paragraphs inside blockquotes/divs (extra line break on open and close)
7792 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
7794 wgLinkHolderBatchSize=0
7800 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
7801 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
7802 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
7807 Free external link invading image caption
7809 [[Image:Foobar.jpg|thumb|http://x|hello]]
7811 <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>
7816 Bug 15196: localised external link numbers
7820 [http://en.wikipedia.org/]
7822 <p><a href="http://en.wikipedia.org/" class="external autonumber" rel="nofollow">[۱]</a>
7827 Multibyte character in padleft
7829 {{padleft:-Hello|7|Æ}}
7836 Multibyte character in padright
7838 {{padright:Hello-|7|Æ}}
7851 <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>
7856 formatdate parser function
7858 {{#formatdate:2009-03-24}}
7860 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
7865 formatdate parser function, with default format
7867 {{#formatdate:2009-03-24|mdy}}
7869 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
7874 Linked date with autoformatting disabled
7876 wgUseDynamicDates=false
7880 <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>
7885 Spacing of numbers in formatted dates
7887 {{#formatdate:January 15}}
7889 <p><span class="mw-formatted-date" title="01-15">January 15</span>
7894 Spacing of numbers in formatted dates (linked)
7896 wgUseDynamicDates=true
7900 <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>
7913 Edit comment with link
7917 I like the [[Main Page]] a lot
7919 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
7923 Edit comment with link and link text
7927 I like the [[Main Page|best pages]] a lot
7929 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
7933 Edit comment with link and link text with suffix
7937 I like the [[Main Page|best page]]s a lot
7939 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
7943 Edit comment with section link (non-local, eg in history list)
7945 comment title=[[Main Page]]
7947 /* External links */ removed bogus entries
7949 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
7953 Edit comment with section link (local, eg in diff view)
7955 comment local title=[[Main Page]]
7957 /* External links */ removed bogus entries
7959 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
7963 Edit comment with subpage link (bug 14080)
7967 title=[[Subpage test]]
7969 Poked at a [[/subpage]] here...
7971 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
7975 Edit comment with subpage link and link text (bug 14080)
7979 title=[[Subpage test]]
7981 Poked at a [[/subpage|neat little page]] here...
7983 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
7987 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
7990 title=[[Subpage test]]
7992 Poked at a [[/subpage]] here...
7994 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
7998 Edit comment with bare anchor link (local, as on diff)
8006 <a href="#section">#section</a>
8010 Edit comment with bare anchor link (non-local, as on history)
8017 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
8021 Space normalisation on autocomment (bug 22784)
8026 /* __hello__world__ */
8028 <span class="autocomment"><a href="/wiki/Main_Page#hello_world" title="Main Page">→</a>__hello__world__</span>
8032 Bad images - basic functionality
8039 Bad images - bug 16039: text after bad image disappears
8051 Verify that displaytitle works (bug #22501) no displaytitle
8055 wgAllowDisplayTitle=true
8056 wgRestrictDisplayTitle=false
8058 this is not the the title
8061 <p>this is not the the title
8066 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
8071 wgAllowDisplayTitle=true
8072 wgRestrictDisplayTitle=false
8074 this is not the the title
8075 {{DISPLAYTITLE:whatever}}
8078 <p>this is not the the title
8083 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
8088 wgAllowDisplayTitle=true
8089 wgRestrictDisplayTitle=true
8091 this is not the the title
8092 {{DISPLAYTITLE:whatever}}
8095 <p>this is not the the title
8100 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
8105 wgAllowDisplayTitle=true
8106 wgRestrictDisplayTitle=true
8108 this is not the the title
8109 {{DISPLAYTITLE:screen}}
8112 <p>this is not the the title
8117 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
8122 wgAllowDisplayTitle=false
8124 this is not the the title
8125 {{DISPLAYTITLE:screen}}
8128 <p>this is not the the title
8129 <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>
8134 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
8139 wgAllowDisplayTitle=false
8141 this is not the the title
8144 <p>this is not the the title
8149 preload: check <noinclude> and <includeonly>
8153 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
8159 preload: check <onlyinclude>
8163 Goodbye <onlyinclude>Hello world</onlyinclude>
8169 preload: can pass tags through if we want to
8173 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
8175 <includeonly>Hello world</includeonly>
8179 preload: check that it doesn't try to do tricks
8183 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8185 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
8189 Play a bit with r67090 and bug 3158
8193 <div style="width:50% !important"> </div>
8194 <div style="width:50% !important"> </div>
8195 <div style="width:50% !important"> </div>
8196 <div style="border : solid;"> </div>
8198 <div style="width:50% !important"> </div>
8199 <div style="width:50% !important"> </div>
8200 <div style="width:50% !important"> </div>
8201 <div style="border : solid;"> </div>
8206 HTML5 data attributes
8208 <span data-foo="bar">Baz</span>
8209 <p data-abc-def_hij="">Quuz</p>
8211 <p><span data-foo="bar">Baz</span>
8213 <p data-abc-def_hij="">Quuz</p>
8224 Try for 100% code coverage