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
25 # For testing purposes, temporary articles can created:
26 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
27 # where '/' denotes a newline.
29 # This is the standard article assumed to exist.
66 This is a simple paragraph.
68 <p>This is a simple paragraph.
88 * plain''italic''plain
89 * plain''italic''plain''italic''plain
90 * plain'''bold'''plain
91 * plain'''bold'''plain'''bold'''plain
92 * plain''italic''plain'''bold'''plain
93 * plain'''bold'''plain''italic''plain
94 * plain''italic'''bold-italic'''italic''plain
95 * plain'''bold''bold-italic''bold'''plain
96 * plain'''''bold-italic'''italic''plain
97 * plain'''''bold-italic''bold'''plain
98 * plain''italic'''bold-italic'''''plain
99 * plain'''bold''bold-italic'''''plain
100 * plain l'''italic''plain
101 * plain l''''bold''' plain
104 </li><li> plain<i>italic</i>plain
105 </li><li> plain<i>italic</i>plain<i>italic</i>plain
106 </li><li> plain<b>bold</b>plain
107 </li><li> plain<b>bold</b>plain<b>bold</b>plain
108 </li><li> plain<i>italic</i>plain<b>bold</b>plain
109 </li><li> plain<b>bold</b>plain<i>italic</i>plain
110 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
111 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
112 </li><li> plain<i><b>bold-italic</b>italic</i>plain
113 </li><li> plain<b><i>bold-italic</i>bold</b>plain
114 </li><li> plain<i>italic<b>bold-italic</b></i>plain
115 </li><li> plain<b>bold<i>bold-italic</i></b>plain
116 </li><li> plain l'<i>italic</i>plain
117 </li><li> plain l'<b>bold</b> plain
123 ### <nowiki> test cases
127 <nowiki> unordered list
129 <nowiki>* This is not an unordered list item.</nowiki>
131 <p>* This is not an unordered list item.
138 <nowiki>Lorem ipsum dolor
159 :There is not nowiki.
160 :There is <nowiki>nowiki</nowiki>.
162 #There is not nowiki.
163 #There is <nowiki>nowiki</nowiki>.
165 *There is not nowiki.
166 *There is <nowiki>nowiki</nowiki>.
168 <dl><dd>There is not nowiki.
169 </dd><dd>There is nowiki.
171 <ol><li>There is not nowiki.
172 </li><li>There is nowiki.
174 <ul><li>There is not nowiki.
175 </li><li>There is nowiki.
187 <!-- comment 1 --> asdf
223 asdf<!-- comment 1 -->jkl
233 <!-- foo --> b <!-- bar -->
247 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
253 Comment semantics and delimiters
255 <!-- --><!----><!-----><!------>
261 Comment semantics and delimiters, redux
263 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
264 -- foo -- funky huh? ... -->
270 Comment semantics and delimiters: directors cut
272 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
273 everything starting with < followed by !-- until the first -- and > we see,
274 that wouldn't be valid XML however, since in XML -- has to terminate a comment
282 Comment semantics: nesting
284 <!--<!-- no, we're not going to do anything fancy here -->-->
291 Comment semantics: unclosed comment at end
293 <!--This comment will run out to the end of the document
299 Comment in template title
308 Comment on its own line post-expand
320 ### Preformatted text
329 And a [[Main Page|link]]
335 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
340 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
357 Regression with preformatted in <center>
371 <pre> with attributes (bug 3202)
373 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
375 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
380 <pre> with width attribute (bug 3202)
382 <pre width="8">Narrow screen goodies</pre>
384 <pre width="8">Narrow screen goodies</pre>
389 <pre> with forbidden attribute (bug 3202)
391 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
393 <pre width="8">Narrow screen goodies</pre>
398 <pre> with forbidden attribute values (bug 3202)
400 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
402 <pre width="8">Narrow screen goodies</pre>
414 <dl><dt> name </dt><dd> Definition
420 Definition list for indentation only
424 <dl><dd> Indented text
430 Definition list with no space
434 <dl><dt>name</dt><dd>Definition
440 Definition list with URL link
442 ; http://example.com/ : definition
444 <dl><dt> <a href="http://example.com/" class="external free" title="http://example.com/" rel="nofollow">http://example.com/</a> </dt><dd> definition
450 Definition list with bracketed URL link
452 ;[http://www.example.com/ Example]:Something about it
454 <dl><dt><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow">Example</a></dt><dd>Something about it
460 Definition list with wikilink containing colon
462 ; [[Help:FAQ]]: The least-read page on Wikipedia
464 <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
469 # At Brion's and JeLuF's insistence... :)
471 Definition list with news link containing colon
473 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
475 <dl><dt> <a href="news:alt.wikipedia.rox" class="external free" title="news:alt.wikipedia.rox" rel="nofollow">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
481 Malformed definition list with colon
483 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
485 <dl><dt> <a href="news:alt.wikipedia.rox" class="external free" title="news:alt.wikipedia.rox" rel="nofollow">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
491 Definition lists: colon in external link text
493 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
495 <dl><dt> <a href="http://www.wikipedia2.org/" class="external text" title="http://www.wikipedia2.org/" rel="nofollow">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
501 Definition lists: colon in HTML attribute
503 ;<b style="display: inline">bold</b>
505 <dl><dt><b style="display: inline">bold</b>
512 Definition lists: self-closed tag
514 ;one<br/>two : two-line fun
516 <dl><dt>one<br />two </dt><dd> two-line fun
526 External links: non-bracketed
528 Non-bracketed: http://example.com
530 <p>Non-bracketed: <a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a>
535 External links: numbered
537 Numbered: [http://example.com]
538 Numbered: [http://example.net]
539 Numbered: [http://example.com]
541 <p>Numbered: <a href="http://example.com" class="external autonumber" title="http://example.com" rel="nofollow">[1]</a>
542 Numbered: <a href="http://example.net" class="external autonumber" title="http://example.net" rel="nofollow">[2]</a>
543 Numbered: <a href="http://example.com" class="external autonumber" title="http://example.com" rel="nofollow">[3]</a>
548 External links: specified text
550 Specified text: [http://example.com link]
552 <p>Specified text: <a href="http://example.com" class="external text" title="http://example.com" rel="nofollow">link</a>
557 External links: trail
559 Linktrails should not work for external links: [http://example.com link]s
561 <p>Linktrails should not work for external links: <a href="http://example.com" class="external text" title="http://example.com" rel="nofollow">link</a>s
566 External links: dollar sign in URL
568 http://example.com/1$2345
570 <p><a href="http://example.com/1$2345" class="external free" title="http://example.com/1$2345" rel="nofollow">http://example.com/1$2345</a>
575 External links: dollar sign in URL (named)
577 [http://example.com/1$2345]
579 <p><a href="http://example.com/1$2345" class="external autonumber" title="http://example.com/1$2345" rel="nofollow">[1]</a>
584 External links: open square bracket forbidden in URL (bug 4377)
586 http://example.com/1[2345
588 <p><a href="http://example.com/1" class="external free" title="http://example.com/1" rel="nofollow">http://example.com/1</a>[2345
593 External links: open square bracket forbidden in URL (named) (bug 4377)
595 [http://example.com/1[2345]
597 <p><a href="http://example.com/1" class="external text" title="http://example.com/1" rel="nofollow">[2345</a>
602 External links: nowiki in URL link text (bug 6230)
604 [http://example.com/ <nowiki>''example site''</nowiki>]
606 <p><a href="http://example.com/" class="external text" title="http://example.com/" rel="nofollow">''example site''</a>
611 External links: newline forbidden in text (bug 6230 regression check)
613 [http://example.com/ first
616 <p>[<a href="http://example.com/" class="external free" title="http://example.com/" rel="nofollow">http://example.com/</a> first
624 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
626 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
631 External image from https
633 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
635 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
640 Link to non-http image, no img tag
642 Link to non-http image, no img tag: ftp://example.com/test.jpg
644 <p>Link to non-http image, no img tag: <a href="ftp://example.com/test.jpg" class="external free" title="ftp://example.com/test.jpg" rel="nofollow">ftp://example.com/test.jpg</a>
649 External links: terminating separator
651 Terminating separator: http://example.com/thing,
653 <p>Terminating separator: <a href="http://example.com/thing" class="external free" title="http://example.com/thing" rel="nofollow">http://example.com/thing</a>,
658 External links: intervening separator
660 Intervening separator: http://example.com/1,2,3
662 <p>Intervening separator: <a href="http://example.com/1,2,3" class="external free" title="http://example.com/1,2,3" rel="nofollow">http://example.com/1,2,3</a>
667 External links: old bug with URL in query
669 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
671 <p>Old bug with URL in query: <a href="http://example.com/thing?url=http://example.com" class="external text" title="http://example.com/thing?url=http://example.com" rel="nofollow">link</a>
676 External links: old URL-in-URL bug, mixed protocols
678 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
680 <p>And again with mixed protocols: <a href="ftp://example.com?url=http://example.com" class="external text" title="ftp://example.com?url=http://example.com" rel="nofollow">link</a>
685 External links: URL in text
687 URL in text: [http://example.com http://example.com]
689 <p>URL in text: <a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a>
694 External links: Clickable images
696 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
698 <p>ja-style clickable images: <a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
703 External links: raw ampersand
705 Old & use: http://x&y
707 <p>Old & use: <a href="http://x&y" class="external free" title="http://x&y" rel="nofollow">http://x&y</a>
712 External links: encoded ampersand
714 Old & use: http://x&y
716 <p>Old & use: <a href="http://x&y" class="external free" title="http://x&y" rel="nofollow">http://x&y</a>
721 External links: encoded equals (bug 6102)
723 http://example.com/?foo=bar
725 <p><a href="http://example.com/?foo=bar" class="external free" title="http://example.com/?foo=bar" rel="nofollow">http://example.com/?foo=bar</a>
730 External links: [raw ampersand]
732 Old & use: [http://x&y]
734 <p>Old & use: <a href="http://x&y" class="external autonumber" title="http://x&y" rel="nofollow">[1]</a>
739 External links: [encoded ampersand]
741 Old & use: [http://x&y]
743 <p>Old & use: <a href="http://x&y" class="external autonumber" title="http://x&y" rel="nofollow">[1]</a>
748 External links: [encoded equals] (bug 6102)
750 [http://example.com/?foo=bar]
752 <p><a href="http://example.com/?foo=bar" class="external autonumber" title="http://example.com/?foo=bar" rel="nofollow">[1]</a>
757 External links: [IDN ignored character reference in hostname; strip it right off]
759 [http://e‌xample.com/]
761 <p><a href="http://example.com/" class="external autonumber" title="http://example.com/" rel="nofollow">[1]</a>
766 External links: IDN ignored character reference in hostname; strip it right off
768 http://e‌xample.com/
770 <p><a href="http://example.com/" class="external free" title="http://example.com/" rel="nofollow">http://example.com/</a>
775 External links: www.jpeg.org (bug 554)
779 <p><a href="http://www.jpeg.org" class="external free" title="http://www.jpeg.org" rel="nofollow">http://www.jpeg.org</a>
784 External links: URL within URL (original bug 2)
786 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
788 <p><a href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp" class="external autonumber" title="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp" rel="nofollow">[1]</a>
793 BUG 361: URL inside bracketed URL
795 [http://www.example.com/foo http://www.example.com/bar]
797 <p><a href="http://www.example.com/foo" class="external text" title="http://www.example.com/foo" rel="nofollow">http://www.example.com/bar</a>
802 BUG 361: URL within URL, not bracketed
804 http://www.example.com/foo?=http://www.example.com/bar
806 <p><a href="http://www.example.com/foo?=http://www.example.com/bar" class="external free" title="http://www.example.com/foo?=http://www.example.com/bar" rel="nofollow">http://www.example.com/foo?=http://www.example.com/bar</a>
811 BUG 289: ">"-token in URL-tail
813 http://www.example.com/<hello>
815 <p><a href="http://www.example.com/" class="external free" title="http://www.example.com/" rel="nofollow">http://www.example.com/</a><hello>
820 BUG 289: literal ">"-token in URL-tail
822 http://www.example.com/<b>html</b>
824 <p><a href="http://www.example.com/" class="external free" title="http://www.example.com/" rel="nofollow">http://www.example.com/</a><b>html</b>
829 BUG 289: ">"-token in bracketed URL
831 [http://www.example.com/<hello> stuff]
833 <p><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow"><hello> stuff</a>
838 BUG 289: literal ">"-token in bracketed URL
840 [http://www.example.com/<b>html</b> stuff]
842 <p><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow"><b>html</b> stuff</a>
847 BUG 289: literal double quote at end of URL
849 http://www.example.com/"hello"
851 <p><a href="http://www.example.com/" class="external free" title="http://www.example.com/" rel="nofollow">http://www.example.com/</a>"hello"
856 BUG 289: literal double quote in bracketed URL
858 [http://www.example.com/"hello" stuff]
860 <p><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow">"hello" stuff</a>
865 External links: invalid character
866 Fixme: the missing char seems to have gone missing
870 [http://www.example.com test]
872 <p>[<a href="http://www.example.com" class="external free" title="http://www.example.com" rel="nofollow">http://www.example.com</a> test]
877 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
879 [http://www.example.com test]
881 <p><a href="http://www.example.com" class="external text" title="http://www.example.com" rel="nofollow">test</a>
886 External links: wiki links within external link (Bug 3695)
888 [http://example.com [[wikilink]] embedded in ext link]
890 <p><a href="http://example.com" class="external text" title="http://example.com" 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" title="http://example.com" rel="nofollow"> embedded in ext link</a>
895 BUG 787: Links with one slash after the url protocol are invalid
899 [http:/example.com title]
902 </p><p>[http:/example.com title]
907 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
909 ''[http://example.com text'']
910 [http://example.com '''text]'''
911 ''Something [http://example.com in italic'']
912 ''Something [http://example.com mixed''''', even bold]'''
913 '''''Now [http://example.com both''''']
915 <p><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><i>text</i></a>
916 <a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><b>text</b></a>
917 <i>Something </i><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><i>in italic</i></a>
918 <i>Something </i><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><i>mixed</i><b>, even bold</b></a>
919 <i><b>Now </b></i><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><i><b>both</b></i></a>
927 http://www.example.com/?title=AT%26T
929 <p><a href="http://www.example.com/?title=AT%26T" class="external free" title="http://www.example.com/?title=AT%26T" rel="nofollow">http://www.example.com/?title=AT%26T</a>
934 Bug 4781, 5267: %26 in URL
936 http://www.example.com/?title=100%25_Bran
938 <p><a href="http://www.example.com/?title=100%25_Bran" class="external free" title="http://www.example.com/?title=100%25_Bran" rel="nofollow">http://www.example.com/?title=100%25_Bran</a>
943 Bug 4781, 5267: %28, %29 in URL
945 http://www.example.com/?title=Ben-Hur_%281959_film%29
947 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external free" title="http://www.example.com/?title=Ben-Hur_%281959_film%29" rel="nofollow">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
953 Bug 4781: %26 in autonumber URL
955 [http://www.example.com/?title=AT%26T]
957 <p><a href="http://www.example.com/?title=AT%26T" class="external autonumber" title="http://www.example.com/?title=AT%26T" rel="nofollow">[1]</a>
962 Bug 4781, 5267: %26 in autonumber URL
964 [http://www.example.com/?title=100%25_Bran]
966 <p><a href="http://www.example.com/?title=100%25_Bran" class="external autonumber" title="http://www.example.com/?title=100%25_Bran" rel="nofollow">[1]</a>
971 Bug 4781, 5267: %28, %29 in autonumber URL
973 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
975 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external autonumber" title="http://www.example.com/?title=Ben-Hur_%281959_film%29" rel="nofollow">[1]</a>
981 Bug 4781: %26 in bracketed URL
983 [http://www.example.com/?title=AT%26T link]
985 <p><a href="http://www.example.com/?title=AT%26T" class="external text" title="http://www.example.com/?title=AT%26T" rel="nofollow">link</a>
990 Bug 4781, 5267: %26 in bracketed URL
992 [http://www.example.com/?title=100%25_Bran link]
994 <p><a href="http://www.example.com/?title=100%25_Bran" class="external text" title="http://www.example.com/?title=100%25_Bran" rel="nofollow">link</a>
999 Bug 4781, 5267: %28, %29 in bracketed URL
1001 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1003 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external text" title="http://www.example.com/?title=Ben-Hur_%281959_film%29" rel="nofollow">link</a>
1008 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1010 Some [http://example.com/ pretty ''italics'' and stuff]!
1012 <p>Some <a href="http://example.com/" class="external text" title="http://example.com/" rel="nofollow">pretty <i>italics</i> and stuff</a>!
1017 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1019 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1021 <p><i>Some </i><a href="http://example.com/" class="external text" title="http://example.com/" rel="nofollow"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1026 URL-encoding in URL functions (single parameter)
1028 {{localurl:Some page|amp=&}}
1030 <p>/index.php?title=Some_page&amp=&
1035 URL-encoding in URL functions (multiple parameters)
1037 {{localurl:Some page|q=?&=&}}
1039 <p>/index.php?title=Some_page&q=?&amp=&
1050 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1052 Normal text. '''''Bold italic text.''''' Normal text.
1054 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1055 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1061 Unclosed and unmatched quotes
1063 '''''Bold italic text '''with bold deactivated''' in between.'''''
1065 '''''Bold italic text ''with italic deactivated'' in between.'''''
1069 ..spanning two paragraphs (should not work).'''
1071 '''Bold tag left open
1073 ''Italic tag left open
1077 <!-- Unmatching number of opening, closing tags: -->
1078 '''This year''''s election ''should'' beat '''last year''''s.
1080 ''Tom'''s car is bigger than ''Susan'''s.
1082 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1083 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1084 </p><p><b>Bold text..</b>
1085 </p><p>..spanning two paragraphs (should not work).
1086 </p><p><b>Bold tag left open</b>
1087 </p><p><i>Italic tag left open</i>
1089 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1090 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1097 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1100 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1101 # is the bare minimun required by the spec, see:
1102 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1104 A table with no data.
1110 # A table with nothing but a caption is invalid XHTML, we might want to render
1111 # this as <p>caption</p>
1113 A table with nothing but a caption
1121 </caption><tr><td></td></tr></table>
1145 Multiplication table
1147 {| border="1" cellpadding="2"
1148 |+Multiplication table
1150 ! × !! 1 !! 2 !! 3
1168 <table border="1" cellpadding="2">
1169 <caption>Multiplication table
1172 <th> × </th><th> 1 </th><th> 2 </th><th> 3
1176 </th><td> 1 </td><td> 2 </td><td> 3
1180 </th><td> 2 </td><td> 4 </td><td> 6
1184 </th><td> 3 </td><td> 6 </td><td> 9
1188 </th><td> 4 </td><td> 8 </td><td> 12
1192 </th><td> 5 </td><td> 10 </td><td> 15
1200 {| align=right border=1
1202 |rowspan=2| Cell 2, row 1 (and 2)
1209 <table align="right" border="1">
1212 </td><td rowspan="2"> Cell 2, row 1 (and 2)
1213 </td><td> Cell 3, row 1
1217 </td><td> Cell 3, row 2
1228 {| bgcolor=#ABCDEF border=2
1233 |the original table again
1240 <table bgcolor="#ABCDEF" border="2">
1247 </td><td>the original table again
1253 Invalid attributes in table cell (bug 1830)
1267 # FIXME: It's not clear at all that this is the result we want, but the actual
1268 # output right now is invalid XML, so clearly something is wrong. The result
1269 # specified here is now valid XML, which is an improvement . . .
1271 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1274 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1278 <td><a href="ftp://|x||" class="external autonumber" title="ftp://|x||" rel="nofollow">[1]</a></td><td>" onmouseover="alert(document.cookie)">test
1290 Plain link, capitalized
1294 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1299 Plain link, uncapitalized
1303 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1310 [[Main Page|The Main Page]]
1312 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1321 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1326 Broken link with fragment
1328 [[Zigzagzogzagzig#zug]]
1330 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1335 Special page link with fragment
1337 [[Special:Version#anchor]]
1339 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1344 Nonexistent special page link with fragment
1346 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1348 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1355 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1357 <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>
1364 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1366 <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>!!!
1371 Link with 3 brackets
1380 Piped link with 3 brackets
1382 [[[main page|the main page]]]
1384 <p>[[[main page|the main page]]]
1389 Link with multiple pipes
1391 [[Main Page|The|Main|Page]]
1393 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1400 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1402 <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>
1407 Piped link to namespace
1409 [[Meta:Disclaimers|The disclaimers]]
1411 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1418 [[Usually caused by a typo (oops}]]
1420 <p>[[Usually caused by a typo (oops}]]
1425 Link containing % (not as a hex sequence)
1429 <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>
1434 Link containing % as a single hex sequence interpreted to char
1438 <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>
1443 Link containing % as a double hex sequence interpreted to hex sequence
1447 <p>[[7%2525 Solution]]
1452 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1453 Example for such a section: == < ==
1455 [[%23%3c]][[%23%3e]]
1457 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1462 Link containing "<#" and ">#" as a hex sequences
1464 [[%3c%23]][[%3e%23]]
1466 <p>[[%3c%23]][[%3e%23]]
1471 Link containing double-single-quotes '' (bug 4598)
1473 [[Lista d''e paise d''o munno]]
1475 <p><a href="/index.php?title=Lista_d%27%27e_paise_d%27%27o_munno&action=edit" class="new" title="Lista d''e paise d''o munno">Lista d''e paise d''o munno</a>
1480 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1482 Some [[Link|pretty ''italics'' and stuff]]!
1484 <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>!
1489 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1491 ''Some [[Link|pretty ''italics'' and stuff]]!
1493 <p><i>Some </i><a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1500 [[http://www.example.com]]
1502 <p>[<a href="http://www.example.com" class="external autonumber" title="http://www.example.com" rel="nofollow">[1]</a>]
1506 # I'm fairly sure the expected result here is wrong.
1507 # We want these to be URL links, not pseudo-pages with URLs for titles....
1508 # However the current output is also pretty screwy.
1511 # I'm changing it to match the current output--it arguably makes more
1512 # sense in the light of the test above. Old expected result was:
1513 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new" title="Http://www.example.com">an example URL</a>
1515 # But I think this test is bordering on "garbage in, garbage out" anyway.
1520 Piped link to URL: [[http://www.example.com|an example URL]]
1522 <p>Piped link to URL: [<a href="http://www.example.com|an" class="external text" title="http://www.example.com|an" rel="nofollow">example URL</a>]
1527 BUG 2: [[page|http://url/]] should link to page, not http://url/
1529 [[Main Page|http://url/]]
1531 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1536 BUG 337: Escaped self-links should be bold
1540 [[Bug462]] [[Bug462]]
1542 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1547 Self-link to section should not be bold
1551 [[Main Page#section]]
1553 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1564 Self-link to numeric title
1570 <p><strong class="selflink">0</strong>
1575 Link to numeric-equivalent title
1581 <p><a href="/wiki/00" title="00">00</a>
1586 <nowiki> inside a link
1588 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1590 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1595 ### Interwiki links (see maintenance/interwiki.sql)
1599 Inline interwiki link
1601 [[MeatBall:SoftSecurity]]
1603 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1608 Inline interwiki link with empty title (bug 2372)
1612 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw" title="meatball:">MeatBall:</a>
1617 Interwiki link encoding conversion (bug 1636)
1619 *[[Wikipedia:ro:Olteniţa]]
1620 *[[Wikipedia:ro:Olteniţa]]
1622 <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>
1623 </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>
1629 Interwiki link with fragment (bug 2130)
1631 [[MeatBall:SoftSecurity#foo]]
1633 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1648 Double interlanguage link
1659 Interlanguage link, with prefix links
1671 Double interlanguage link, with prefix links (bug 8897)
1698 Incorrecly removing closing slashes from correctly formed XHTML
1700 <br style="clear:both;" />
1702 <p><br style="clear:both;" />
1707 Failing to transform badly formed HTML into correct XHTML
1713 <p><br clear="left" />
1714 <br clear="right" />
1720 Horizontal ruler (should it add that extra space?)
1734 ### Block-level elements
1757 <ol><li>Numbered list
1774 ***#Number on level 4
1776 **#Number on level 3
1777 **#Number on level 3
1782 <ol><li> with numbers
1784 <ul><li> and bullets
1786 <ol><li> and numbers
1788 </li><li>bullets again
1789 <ul><li>bullet level 2
1790 <ul><li>bullet level 3
1791 <ol><li>Number on level 4
1794 </li><li>bullet level 2
1795 <ol><li>Number on level 3
1796 </li><li>Number on level 3
1799 <ol><li>number level 2
1807 List items are not parsed correctly following a <pre> block (bug 785)
1813 <ul><li> <pre>foo</pre>
1814 </li><li> <pre>bar</pre>
1825 Magic Word: {{CURRENTDAY}}
1834 Magic Word: {{CURRENTDAY2}}
1843 Magic Word: {{CURRENTDAYNAME}}
1852 Magic Word: {{CURRENTDOW}}
1861 Magic Word: {{CURRENTMONTH}}
1870 Magic Word: {{CURRENTMONTHABBREV}}
1872 {{CURRENTMONTHABBREV}}
1879 Magic Word: {{CURRENTMONTHNAME}}
1881 {{CURRENTMONTHNAME}}
1888 Magic Word: {{CURRENTMONTHNAMEGEN}}
1890 {{CURRENTMONTHNAMEGEN}}
1897 Magic Word: {{CURRENTTIME}}
1906 Magic Word: {{CURRENTWEEK}} (@bug 4594)
1915 Magic Word: {{CURRENTYEAR}}
1924 Magic Word: {{FULLPAGENAME}}
1926 title=[[User:Ævar Arnfjörð Bjarmason]]
1930 <p>User:Ævar Arnfjörð Bjarmason
1935 Magic Word: {{FULLPAGENAMEE}}
1937 title=[[User:Ævar Arnfjörð Bjarmason]]
1941 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
1946 Magic Word: {{NAMESPACE}}
1948 title=[[User:Ævar Arnfjörð Bjarmason]]
1958 Magic Word: {{NAMESPACEE}}
1960 title=[[User:Ævar Arnfjörð Bjarmason]]
1970 Magic Word: {{NUMBEROFARTICLES}}
1972 {{NUMBEROFARTICLES}}
1979 Magic Word: {{NUMBEROFFILES}}
1988 Magic Word: {{PAGENAME}}
1990 title=[[User:Ævar Arnfjörð Bjarmason]]
1995 <p>Ævar Arnfjörð Bjarmason
2000 Magic Word: {{PAGENAMEE}}
2002 title=[[User:Ævar Arnfjörð Bjarmason]]
2006 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2011 Magic Word: {{REVISIONID}}
2020 Magic Word: {{SCRIPTPATH}}
2029 Magic Word: {{SERVER}}
2033 <p><a href="http://localhost" class="external free" title="http://localhost" rel="nofollow">http://localhost</a>
2038 Magic Word: {{SERVERNAME}}
2047 Magic Word: {{SITENAME}}
2056 Namespace 1 {{ns:1}}
2065 Namespace 1 {{ns:01}}
2074 Namespace 0 {{ns:0}} (bug 4783)
2082 Namespace 0 {{ns:00}} (bug 4783)
2090 Namespace -1 {{ns:-1}}
2099 Namespace User {{ns:User}}
2108 Namespace User talk {{ns:User_talk}}
2117 Namespace User talk {{ns:uSeR tAlK}}
2126 Namespace File {{ns:File}}
2135 Namespace File {{ns:Image}}
2144 Namespace (lang=de) Benutzer {{ns:User}}
2155 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2161 <p>Benutzer Diskussion
2170 Magic links: internal link to RFC (bug 479)
2174 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2179 Magic links: RFC (bug 479)
2183 <p><a href="http://tools.ietf.org/html/rfc822" class="external" title="http://tools.ietf.org/html/rfc822">RFC 822</a>
2188 Magic links: ISBN (bug 1937)
2192 <p><a href="/wiki/Special:BookSources/0306406152" class="internal">ISBN 0-306-40615-2</a>
2197 Magic links: PMID incorrectly converts space to underscore
2201 <p><a href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=1234" class="external" title="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=1234">PMID 1234</a>
2210 Nonexistent template
2212 {{thistemplatedoesnotexist}}
2214 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2221 This is a test template
2229 <p>This is a test template
2234 Template with explicit namespace
2238 <p>This is a test template
2246 This is a test template with parameter {{{param}}}
2252 {{paramtest|param=foo}}
2254 <p>This is a test template with parameter foo
2259 Template:paramtestnum
2265 Template unnamed parameter
2267 {{paramtestnum|Main Page|the main page}}
2269 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2274 Template:templatesimple
2280 Template:templateredirect
2282 #redirect [[Template:templatesimple]]
2286 Template:templateasargtestnum
2292 Template:templateasargtest
2294 {{template{{{templ}}}}}
2298 Template:templateasargtest2
2304 Template with template name as unnamed argument
2306 {{templateasargtestnum|templatesimple}}
2313 Template with template name as argument
2315 {{templateasargtest|templ=simple}}
2322 Template with template name as argument (2)
2324 {{templateasargtest2|templ=templatesimple}}
2331 Template:templateasargtestdefault
2333 {{{{{templ|templatesimple}}}}}
2343 Template with default value
2345 {{templateasargtestdefault}}
2352 Template with default value (value set)
2354 {{templateasargtestdefault|templ=templa}}
2363 {{templateredirect}}
2370 Template with argument in separate line
2372 {{ templateasargtest |
2380 Template with complex template as argument
2383 param ={{ templateasargtest |
2386 <p>This is a test template with parameter (test)
2391 Template with thumb image (with link in description)
2394 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2396 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>
2401 Template:complextemplate
2403 {{{1}}} {{paramtest|
2404 param ={{{param}}}}}
2408 Template with complex arguments
2411 param ={{ templateasargtest |
2412 templ = simple }}|[[Template:complextemplate|link]]}}
2414 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2419 BUG 553: link with two variables in a piped link
2422 |[[{{{1}}}|{{{2}}}]]
2427 <td>[[{{{1}}}|{{{2}}}]]
2433 Magic variable as template parameter
2435 {{paramtest|param={{SITENAME}}}}
2437 <p>This is a test template with parameter MediaWiki
2444 [[{{{param}}}|link]]
2448 Template parameter as link source
2450 {{linktest|param=Main Page}}
2452 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2460 including another template, {{paramtest|param={{{arg}}}}}
2464 Template passing argument to another template
2466 {{paramtest2|arg='hmm'}}
2468 <p>including another template, This is a test template with parameter 'hmm'
2479 Template as link source
2483 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2501 Template infinite loop
2505 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
2510 Template from main namespace
2529 BUG 529: Template with table, not included at beginning of line
2546 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2564 BUG 41: Template parameters shown as broken links
2576 ''None'' of '''this''' should be
2578 but rather passed unmodified
2582 # hmm, fix this or just deprecate msgnw and document its behavior?
2588 {{msgnw:MSGNW test}}
2590 <p>''None'' of '''this''' should be
2592 but rather passed unmodified
2600 {{int:youhavenewmessages|lots of money|not!}}
2602 <p>You have lots of money (not!).
2609 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2613 <includeonly> and <noinclude> being included
2624 <onlyinclude>Foo</onlyinclude>bar
2628 <onlyinclude> being included
2640 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2644 <onlyinclude> and <includeonly> being included
2653 <includeonly> and <noinclude> on a page
2655 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2662 <onlyinclude> on a page
2664 <onlyinclude>Foo</onlyinclude>bar
2671 Template:Includeonly section
2674 ==Includeonly section==
2680 Bug 6563: Edit link generation for section shown by <includeonly>
2682 {{includeonly section}}
2684 <a name="Includeonly_section" id="Includeonly_section"></a><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">Includeonly section</span></h2>
2685 <a name="Section_T-1" id="Section_T-1"></a><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">Section T-1</span></h2>
2689 # Uses same input as the contents of [[Template:Includeonly section]]
2691 Bug 6563: Section extraction for section shown by <includeonly>
2696 ==Includeonly section==
2704 Bug 6563: Edit link generation for section suppressed by <includeonly>
2707 ==Includeonly section==
2711 <a name="Section_1" id="Section_1"></a><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">Section 1</span></h2>
2716 Bug 6563: Section extraction for section suppressed by <includeonly>
2721 ==Includeonly section==
2729 ### Pre-save transform tests
2732 pre-save transform: subst:
2738 This is a test template
2742 pre-save transform: normal template
2752 pre-save transform: nonexistent template
2756 {{thistemplatedoesnotexist}}
2758 {{thistemplatedoesnotexist}}
2763 pre-save transform: subst magic variables
2772 # This is bug 89, which I fixed. -- wtm
2774 pre-save transform: subst: templates with parameters
2778 {{subst:paramtest|param="something else"}}
2780 This is a test template with parameter "something else"
2786 <nowiki>'''not wiki'''</nowiki>
2790 pre-save transform: nowiki in subst (bug 1188)
2794 {{subst:nowikitest}}
2796 <nowiki>'''not wiki'''</nowiki>
2801 Template:commenttest
2803 This template has <!-- a comment --> in it.
2807 pre-save transform: comment in subst (bug 1936)
2811 {{subst:commenttest}}
2813 This template has <!-- a comment --> in it.
2817 pre-save transform: unclosed tag
2821 <nowiki>'''not wiki'''
2823 <nowiki>'''not wiki'''
2827 pre-save transform: mixed tag case
2831 <NOwiki>'''not wiki'''</noWIKI>
2833 <NOwiki>'''not wiki'''</noWIKI>
2837 pre-save transform: unclosed comment in <nowiki>
2841 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2843 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2849 <span onmouseover="alert('crap')">Oh no</span>
2853 (confirming safety of fix for subst bug 1936)
2855 {{Template:dangerous}}
2857 <p><span>Oh no</span>
2862 pre-save transform: comment containing gallery (bug 5024)
2866 <!-- <gallery>data</gallery> -->
2868 <!-- <gallery>data</gallery> -->
2872 pre-save transform: comment containing extension
2876 <!-- <tag>data</tag> -->
2878 <!-- <tag>data</tag> -->
2882 pre-save transform: comment containing nowiki
2886 <!-- <nowiki>data</nowiki> -->
2888 <!-- <nowiki>data</nowiki> -->
2892 pre-save transform: comment containing math
2896 <!-- <math>data</math> -->
2898 <!-- <math>data</math> -->
2902 pre-save transform: <noinclude> in subst (bug 3298)
2912 pre-save transform: <onlyinclude> in subst (bug 3298)
2922 pre-save transform: context links ("pipe trick")
2926 [[Article (context)|]]
2929 [[Bar:Article (context)|]]
2930 [[:Bar:Article (context)|]]
2932 [[|Article (context)]]
2936 [[Article (context)|Article]]
2937 [[Bar:Article|Article]]
2938 [[:Bar:Article|Article]]
2939 [[Bar:Article (context)|Article]]
2940 [[:Bar:Article (context)|Article]]
2942 [[Article (context)]]
2943 [[Bar:X (Y) Z|X (Y) Z]]
2944 [[:Bar:X (Y) Z|X (Y) Z]]
2948 pre-save transform: context links ("pipe trick") with interwiki prefix
2952 [[interwiki:Article|]]
2953 [[:interwiki:Article|]]
2954 [[interwiki:Bar:Article|]]
2955 [[:interwiki:Bar:Article|]]
2957 [[interwiki:Article|Article]]
2958 [[:interwiki:Article|Article]]
2959 [[interwiki:Bar:Article|Bar:Article]]
2960 [[:interwiki:Bar:Article|Bar:Article]]
2964 pre-save transform: context links ("pipe trick") with parens in title
2966 pst title=[[Somearticle (context)]]
2970 [[Article (context)|Article]]
2974 pre-save transform: context links ("pipe trick") with comma in title
2976 pst title=[[Someplace, Somewhere]]
2979 [[Otherplace, Elsewhere|]]
2980 [[Otherplace, Elsewhere, Anywhere|]]
2982 [[Otherplace, Somewhere|Otherplace]]
2983 [[Otherplace, Elsewhere|Otherplace]]
2984 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
2988 pre-save transform: context links ("pipe trick") with parens and comma
2990 pst title=[[Someplace (IGNORED), Somewhere]]
2993 [[Otherplace (place), Elsewhere|]]
2995 [[Otherplace, Somewhere|Otherplace]]
2996 [[Otherplace (place), Elsewhere|Otherplace]]
3000 pre-save transform: context links ("pipe trick") with comma and parens
3002 pst title=[[Who, me? (context)]]
3005 [[Me, Myself, and I (1937 song)|]]
3007 [[Yes, you. (context)|Yes, you.]]
3008 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3012 pre-save transform: context links ("pipe trick") with namespace
3014 pst title=[[Ns:Somearticle]]
3018 [[Ns:Article|Article]]
3022 pre-save transform: context links ("pipe trick") with namespace and parens
3024 pst title=[[Ns:Somearticle (context)]]
3028 [[Ns:Article (context)|Article]]
3032 pre-save transform: context links ("pipe trick") with namespace and comma
3034 pst title=[[Ns:Somearticle, Context, Whatever]]
3038 [[Ns:Article, Context, Whatever|Article]]
3042 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3044 pst title=[[Ns:Somearticle, Context (context)]]
3048 [[Ns:Article (context)|Article]]
3052 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3054 pst title=[[Ns:Somearticle (IGNORED), Context]]
3058 [[Ns:Article, Context|Article]]
3063 ### Message transform tests
3066 message transform: magic variables
3076 message transform: should not transform wiki markup
3086 message transform: <noinclude> in transcluded template (bug 4926)
3096 message transform: <onlyinclude> in transcluded template (bug 4926)
3106 {{#special:}} page name, known
3110 {{#special:Recentchanges}}
3112 Special:RecentChanges
3116 {{#special:}} page name, unknown
3120 {{#special:foobarnonexistent}}
3122 No such special page
3131 [[Image:foobar.jpg]]
3133 <p><a href="/wiki/File:Foobar.jpg" class="image" title="Image:foobar.jpg"><img alt="Image:foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3140 [[Image:foobar.jpg|right]]
3142 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Foobar.jpg"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
3147 Simple image (using File: namespace, now canonical)
3151 <p><a href="/wiki/File:Foobar.jpg" class="image" title="File:foobar.jpg"><img alt="File:foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3158 [[Image:foobar.jpg|right|Caption text]]
3160 <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>
3165 Image with link parameter, wiki target
3167 [[Image:foobar.jpg|link=Target page]]
3169 <p><a href="/wiki/Target_page" title="Target page"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3174 Image with link parameter, URL target
3176 [[Image:foobar.jpg|link=http://example.com/]]
3178 <p><a href="http://example.com/"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3183 Image with empty link parameter
3185 [[Image:foobar.jpg|link=]]
3187 <p><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3192 Image with link parameter (wiki target) and unnamed parameter
3194 [[Image:foobar.jpg|link=Target page|Title]]
3196 <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>
3201 Image with link parameter (URL target) and unnamed parameter
3203 [[Image:foobar.jpg|link=http://example.com/|Title]]
3205 <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>
3212 Image with frame and link
3214 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3216 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image" title="This is a test image Main Page"><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>
3221 Image with frame and link and explicit alt
3223 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3225 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image" title="This is a test image Main Page"><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>
3230 Image with wiki markup in implicit alt
3232 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3234 <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>
3239 Image with wiki markup in explicit alt
3241 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3243 <p><a href="/wiki/File:Foobar.jpg" class="image" title="Foobar.jpg"><img alt="testing bold in alt" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3248 Link to image page- image page normally doesn't exists, hence edit link
3249 Add test with existing image page
3250 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3254 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3259 Frameless image caption with a free URL
3261 [[Image:foobar.jpg|http://example.com]]
3263 <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>
3268 Thumbnail image caption with a free URL
3270 [[Image:foobar.jpg|thumb|http://example.com]]
3272 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image" title="http://example.com"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-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" title="http://example.com" rel="nofollow">http://example.com</a></div></div></div>
3277 Thumbnail image caption with a free URL and explicit alt
3279 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3281 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image" title="http://example.com"><img alt="Alteration" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-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" title="http://example.com" rel="nofollow">http://example.com</a></div></div></div>
3286 BUG 1887: A ISBN with a thumbnail
3288 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3290 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image" title="ISBN 1235467890"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-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">ISBN 1235467890</a></div></div></div>
3295 BUG 1887: A RFC with a thumbnail
3297 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3299 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image" title="This is RFC 12354"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-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" title="http://tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
3304 BUG 1887: A mailto link with a thumbnail
3306 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3308 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image" title="Please mailto:nobody@example.com"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-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" title="mailto:nobody@example.com" rel="nofollow">mailto:nobody@example.com</a></div></div></div>
3313 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
3314 so math is not stripped and turns up as escaped <math> tags.
3316 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3318 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image" title="<math>2+2</math>"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-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>
3323 BUG 1887, part 2: A <math> with a thumbnail- math enabled
3327 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3329 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image" title="2 + 2"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-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>
3333 # Pending resolution to bug 368
3335 BUG 648: Frameless image caption with a link
3337 [[Image:foobar.jpg|text with a [[link]] in it]]
3339 <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>
3344 BUG 648: Frameless image caption with a link (suffix)
3346 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3348 <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>
3353 BUG 648: Frameless image caption with an interwiki link
3355 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3357 <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>
3362 BUG 648: Frameless image caption with a piped interwiki link
3364 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3366 <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>
3371 Escape HTML special chars in image alt text
3373 [[Image:foobar.jpg|& < > "]]
3375 <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>
3380 BUG 499: Alt text should have Ӓ, not &1234;
3382 [[Image:foobar.jpg|♀]]
3384 <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>
3389 Broken image caption with link
3391 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3393 <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.
3398 Image caption containing another image
3400 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3402 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image" title="This is a caption with another File:Icon.png inside it!"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-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">File:Icon.png</a> inside it!</div></div></div>
3407 Image caption containing a newline
3409 [[Image:Foobar.jpg|This
3412 <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>
3418 Bug 3090: External links other than http: in image captions
3420 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3422 <div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image" title="This caption has irc and Secure ext links in it."><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-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" title="irc://example.net" rel="nofollow">irc</a> and <a href="https://example.com" class="external text" title="https://example.com" rel="nofollow">Secure</a> ext links in it.</div></div></div>
3431 Subpage test/subpage
3439 subpage title=[[Subpage test]]
3443 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3448 Subpage noslash link
3450 subpage title=[[Subpage test]]
3454 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3463 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
3468 BUG 561: {{/Subpage}}
3470 subpage title=[[Page]]
3474 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
3482 Category:MediaWiki User's Guide
3490 [[:Category:MediaWiki User's Guide]]
3492 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
3501 [[Category:MediaWiki User's Guide]]
3503 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3507 PAGESINCATEGORY invalid title fatal (r33546 fix)
3509 {{PAGESINCATEGORY:<bogus>}}
3516 ### Inter-language links
3519 Inter-language links
3525 [[zh:食品]]
3527 es:Alimento fr:Nourriture zh:食品
3534 Basic section headings
3541 ===Smaller headline===
3544 <a name="Headline_1" id="Headline_1"></a><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"> Headline 1 </span></h2>
3547 <a name="Headline_2" id="Headline_2"></a><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">Headline 2</span></h2>
3550 <a name="Smaller_headline" id="Smaller_headline"></a><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">Smaller headline</span></h3>
3556 Section headings with TOC
3559 === Subheadline 1 ===
3560 ===== Skipping a level =====
3561 ====== Skipping a level ======
3565 ===Another headline===
3567 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3569 <li class="toclevel-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3571 <li class="toclevel-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3573 <li class="toclevel-3"><a href="#Skipping_a_level"><span class="tocnumber">1.1.1</span> <span class="toctext">Skipping a level</span></a>
3575 <li class="toclevel-4"><a href="#Skipping_a_level_2"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Skipping a level</span></a></li>
3582 <li class="toclevel-1"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
3584 <li class="toclevel-2"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
3588 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3589 <a name="Headline_1" id="Headline_1"></a><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"> Headline 1 </span></h2>
3590 <a name="Subheadline_1" id="Subheadline_1"></a><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"> Subheadline 1 </span></h3>
3591 <a name="Skipping_a_level" id="Skipping_a_level"></a><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"> Skipping a level </span></h5>
3592 <a name="Skipping_a_level_2" id="Skipping_a_level_2"></a><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"> Skipping a level </span></h6>
3593 <a name="Headline_2" id="Headline_2"></a><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"> Headline 2 </span></h2>
3596 <a name="Another_headline" id="Another_headline"></a><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">Another headline</span></h3>
3600 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
3602 Handling of sections up to level 6 and beyond
3605 == Level 2 Heading==
3606 === Level 3 Heading===
3607 ==== Level 4 Heading====
3608 ===== Level 5 Heading=====
3609 ====== Level 6 Heading======
3610 ======= Level 7 Heading=======
3611 ======== Level 8 Heading========
3612 ========= Level 9 Heading=========
3613 ========== Level 10 Heading==========
3615 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3617 <li class="toclevel-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
3619 <li class="toclevel-2"><a href="#Level_2_Heading"><span class="tocnumber">1.1</span> <span class="toctext">Level 2 Heading</span></a>
3621 <li class="toclevel-3"><a href="#Level_3_Heading"><span class="tocnumber">1.1.1</span> <span class="toctext">Level 3 Heading</span></a>
3623 <li class="toclevel-4"><a href="#Level_4_Heading"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Level 4 Heading</span></a>
3625 <li class="toclevel-5"><a href="#Level_5_Heading"><span class="tocnumber">1.1.1.1.1</span> <span class="toctext">Level 5 Heading</span></a>
3627 <li class="toclevel-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>
3628 <li class="toclevel-6"><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>
3629 <li class="toclevel-6"><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>
3630 <li class="toclevel-6"><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>
3631 <li class="toclevel-6"><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>
3643 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3644 <a name="Level_1_Heading" id="Level_1_Heading"></a><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"> Level 1 Heading</span></h1>
3645 <a name="Level_2_Heading" id="Level_2_Heading"></a><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"> Level 2 Heading</span></h2>
3646 <a name="Level_3_Heading" id="Level_3_Heading"></a><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"> Level 3 Heading</span></h3>
3647 <a name="Level_4_Heading" id="Level_4_Heading"></a><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"> Level 4 Heading</span></h4>
3648 <a name="Level_5_Heading" id="Level_5_Heading"></a><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"> Level 5 Heading</span></h5>
3649 <a name="Level_6_Heading" id="Level_6_Heading"></a><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"> Level 6 Heading</span></h6>
3650 <a name=".3D_Level_7_Heading.3D" id=".3D_Level_7_Heading.3D"></a><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">= Level 7 Heading=</span></h6>
3651 <a name=".3D.3D_Level_8_Heading.3D.3D" id=".3D.3D_Level_8_Heading.3D.3D"></a><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">== Level 8 Heading==</span></h6>
3652 <a name=".3D.3D.3D_Level_9_Heading.3D.3D.3D" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D"></a><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">=== Level 9 Heading===</span></h6>
3653 <a name=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D"></a><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">==== Level 10 Heading====</span></h6>
3658 TOC regression (bug 9764)
3662 ==== title 1.1.1 ====
3667 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3669 <li class="toclevel-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3671 <li class="toclevel-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a>
3673 <li class="toclevel-3"><a href="#title_1.1.1"><span class="tocnumber">1.1.1</span> <span class="toctext">title 1.1.1</span></a></li>
3676 <li class="toclevel-2"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
3679 <li class="toclevel-1"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3681 <li class="toclevel-2"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
3685 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3686 <a name="title_1" id="title_1"></a><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"> title 1 </span></h2>
3687 <a name="title_1.1" id="title_1.1"></a><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"> title 1.1 </span></h3>
3688 <a name="title_1.1.1" id="title_1.1.1"></a><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"> title 1.1.1 </span></h4>
3689 <a name="title_1.2" id="title_1.2"></a><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"> title 1.2 </span></h3>
3690 <a name="title_2" id="title_2"></a><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"> title 2 </span></h2>
3691 <a name="title_2.1" id="title_2.1"></a><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"> title 2.1 </span></h3>
3696 TOC with wgMaxTocLevel=3 (bug 6204)
3702 ==== title 1.1.1 ====
3707 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3709 <li class="toclevel-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3711 <li class="toclevel-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
3712 <li class="toclevel-2"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
3715 <li class="toclevel-1"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3717 <li class="toclevel-2"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
3721 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3722 <a name="title_1" id="title_1"></a><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"> title 1 </span></h2>
3723 <a name="title_1.1" id="title_1.1"></a><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"> title 1.1 </span></h3>
3724 <a name="title_1.1.1" id="title_1.1.1"></a><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"> title 1.1.1 </span></h4>
3725 <a name="title_1.2" id="title_1.2"></a><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"> title 1.2 </span></h3>
3726 <a name="title_2" id="title_2"></a><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"> title 2 </span></h2>
3727 <a name="title_2.1" id="title_2.1"></a><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"> title 2.1 </span></h3>
3732 Resolving duplicate section names
3737 <a name="Foo_bar" id="Foo_bar"></a><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"> Foo bar </span></h2>
3738 <a name="Foo_bar_2" id="Foo_bar_2"></a><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"> Foo bar </span></h2>
3743 Resolving duplicate section names with differing case (bug 10721)
3748 <a name="Foo_bar" id="Foo_bar"></a><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"> Foo bar </span></h2>
3749 <a name="Foo_Bar_2" id="Foo_Bar_2"></a><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"> Foo Bar </span></h2>
3761 Template with sections, __NOTOC__
3768 <a name="Section_0" id="Section_0"></a><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">Section 0</span></h2>
3769 <a name="Section_1" id="Section_1"></a><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">Section 1</span></h3>
3770 <a name="Section_2" id="Section_2"></a><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">Section 2</span></h2>
3771 <a name="Section_4" id="Section_4"></a><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">Section 4</span></h2>
3776 __NOEDITSECTION__ keyword
3782 <a name="Section_1" id="Section_1"></a><h2> <span class="mw-headline">Section 1</span></h2>
3783 <a name="Section_2" id="Section_2"></a><h2> <span class="mw-headline">Section 2</span></h2>
3788 Link inside a section heading
3790 ==Section with a [[Main Page|link]] in it==
3792 <a name="Section_with_a_link_in_it" id="Section_with_a_link_in_it"></a><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">Section with a <a href="/wiki/Main_Page" title="Main Page">link</a> in it</span></h2>
3797 TOC regression (bug 12077)
3804 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3806 <li class="toclevel-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3808 <li class="toclevel-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
3811 <li class="toclevel-1"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
3813 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3814 <a name="title_1" id="title_1"></a><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"> title 1 </span></h2>
3815 <a name="title_1.1" id="title_1.1"></a><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"> title 1.1 </span></h3>
3816 <a name="title_2" id="title_2"></a><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"> title 2 </span></h2>
3821 BUG 1219 URL next to image (good)
3823 http://example.com [[Image:foobar.jpg]]
3825 <p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a> <a href="/wiki/File:Foobar.jpg" class="image" title="Image:foobar.jpg"><img alt="Image:foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3830 BUG 1219 URL next to image (broken)
3832 http://example.com[[Image:foobar.jpg]]
3834 <p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a><a href="/wiki/File:Foobar.jpg" class="image" title="Image:foobar.jpg"><img alt="Image:foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3839 Bug 1186 news: in the middle of text
3841 http://en.wikinews.org/wiki/Wikinews:Workplace
3843 <p><a href="http://en.wikinews.org/wiki/Wikinews:Workplace" class="external free" title="http://en.wikinews.org/wiki/Wikinews:Workplace" rel="nofollow">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
3849 Namespaced link must have a title
3858 Namespaced link must have a title (bad fragment version)
3860 [[Project:#fragment]]
3862 <p>[[Project:#fragment]]
3868 div with no attributes
3870 <div>HTML rocks</div>
3872 <div>HTML rocks</div>
3877 div with double-quoted attribute
3879 <div id="rock">HTML rocks</div>
3881 <div id="rock">HTML rocks</div>
3886 div with single-quoted attribute
3888 <div id='rock'>HTML rocks</div>
3890 <div id="rock">HTML rocks</div>
3895 div with unquoted attribute
3897 <div id=rock>HTML rocks</div>
3899 <div id="rock">HTML rocks</div>
3904 div with illegal double attributes
3906 <div align="center" align="right">HTML rocks</div>
3908 <div align="right">HTML rocks</div>
3913 HTML multiple attributes correction
3915 <p class="error" class="awesome">Awesome!</p>
3917 <p class="awesome">Awesome!</p>
3922 Table multiple attributes correction
3925 !+ class="error" class="awesome"| status
3930 <th class="awesome"> status
3938 <DIV ALIGN="center">HTML ROCKS</DIV>
3940 <div align="center">HTML ROCKS</div>
3946 text with amp in the middle of nowhere
3950 <p>Remember AT&T?
3955 text with character entity: eacute
3957 I always thought é was a cute letter.
3959 <p>I always thought é was a cute letter.
3964 text with undefined character entity: xacute
3966 I always thought &xacute; was a cute letter.
3968 <p>I always thought &xacute; was a cute letter.
3980 [[Media:Foobar.jpg]]
3982 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
3987 Media link with text
3989 [[Media:Foobar.jpg|A neat file to look at]]
3991 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
3995 # FIXME: this is still bad HTML tag nesting
3997 Media link with nasty text
3998 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4000 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4002 <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>
4007 Media link to nonexistent file (bug 1702)
4009 [[Media:No such.jpg]]
4011 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4016 Image link to nonexistent file (bug 1850 - good)
4018 [[Image:No such.jpg]]
4020 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4025 :Image link to nonexistent file (bug 1850 - bad)
4027 [[:Image:No such.jpg]]
4029 <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>
4036 Character reference normalization in link text (bug 1938)
4038 [[Main Page|this&that]]
4040 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4045 Empty attribute crash test (bug 2067)
4047 <font color="">foo</font>
4049 <p><font color="">foo</font>
4054 Empty attribute crash test single-quotes (bug 2067)
4056 <font color=''>foo</font>
4058 <p><font color="">foo</font>
4063 Attribute test: equals, then nothing
4065 <font color=>foo</font>
4072 Attribute test: unquoted value
4074 <font color=x>foo</font>
4076 <p><font color="x">foo</font>
4081 Attribute test: unquoted but illegal value (hash)
4083 <font color=#x>foo</font>
4085 <p><font color="#x">foo</font>
4090 Attribute test: no value
4092 <font color>foo</font>
4094 <p><font color="color">foo</font>
4099 Bug 2095: link with three closing brackets
4103 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
4108 Bug 2095: link with pipe and three closing brackets
4112 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4117 Bug 2095: link with pipe and three closing brackets, version 2
4119 [[Main Page|[http://example.com/]]]
4121 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4131 Template:Dangerous attribute
4133 " onmouseover="alert(document.cookie)
4137 Template:Dangerous style attribute
4139 border-size: expression(alert(document.cookie))
4145 <div style="float: right; {{{1}}}">Magic div</div>
4149 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4151 <div title="{{test}}"></div>
4153 <div title="This is a test template"></div>
4158 Bug 2304: HTML attribute safety (dangerous template; 2309)
4160 <div title="{{dangerous attribute}}"></div>
4162 <div title=""></div>
4167 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4169 <div style="{{dangerous style attribute}}"></div>
4176 Bug 2304: HTML attribute safety (safe parameter; 2309)
4178 {{div style|width: 200px}}
4180 <div style="float: right; width: 200px">Magic div</div>
4185 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4187 {{div style|width: expression(alert(document.cookie))}}
4189 <div>Magic div</div>
4194 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4196 {{div style|"><script>alert(document.cookie)</script>}}
4198 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4203 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4205 {{div style|" ><script>alert(document.cookie)</script>}}
4207 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4212 Bug 2304: HTML attribute safety (link)
4214 <div title="[[Main Page]]"></div>
4216 <div title="[[Main Page]]"></div>
4221 Bug 2304: HTML attribute safety (italics)
4223 <div title="''foobar''"></div>
4225 <div title="''foobar''"></div>
4230 Bug 2304: HTML attribute safety (bold)
4232 <div title="'''foobar'''"></div>
4234 <div title="'''foobar'''"></div>
4240 Bug 2304: HTML attribute safety (ISBN)
4242 <div title="ISBN 1234567890"></div>
4244 <div title="ISBN 1234567890"></div>
4249 Bug 2304: HTML attribute safety (RFC)
4251 <div title="RFC 1234"></div>
4253 <div title="RFC 1234"></div>
4258 Bug 2304: HTML attribute safety (PMID)
4260 <div title="PMID 1234567890"></div>
4262 <div title="PMID 1234567890"></div>
4267 Bug 2304: HTML attribute safety (web link)
4269 <div title="http://example.com/"></div>
4271 <div title="http://example.com/"></div>
4276 Bug 2304: HTML attribute safety (named web link)
4278 <div title="[http://example.com/ link]"></div>
4280 <div title="[http://example.com/ link]"></div>
4285 Bug 3244: HTML attribute safety (extension; safe)
4287 <div style="<nowiki>background:blue</nowiki>"></div>
4289 <div style="background:blue"></div>
4294 Bug 3244: HTML attribute safety (extension; unsafe)
4296 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4303 Math section safety when disabled
4305 <math><script>alert(document.cookies);</script></math>
4307 <p><math><script>alert(document.cookies);</script></math>
4311 # More MSIE fun discovered by Tom Gilder
4314 MSIE CSS safety test: spurious slash
4316 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4323 MSIE CSS safety test: hex code
4325 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4332 MSIE CSS safety test: comment in url
4334 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4336 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4341 MSIE CSS safety test: comment in expression
4343 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4345 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4351 Table attribute legitimate extension
4354 !+ style="<nowiki>color:blue</nowiki>"| status
4359 <th style="color:blue"> status
4365 Table attribute safety
4368 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4386 Expansion of multi-line templates in attribute values (bug 6255)
4388 <div style="background: {{identity|#00FF00}}">-</div>
4390 <div style="background: #00FF00">-</div>
4396 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
4398 <div style="background:
4401 <div style="background: #00FF00">-</div>
4406 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
4408 <div style="background: #00FF00">-</div>
4410 <div style="background: #00FF00">-</div>
4415 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
4418 Parser hook: empty input
4431 Parser hook: empty input using terminated empty elements
4444 Parser hook: empty input using terminated empty elements (space before)
4457 Parser hook: basic input
4471 Parser hook: case insensitive
4485 Parser hook: case insensitive, redux
4498 Parser hook: nested tags
4502 <tag><tag></tag></tag>
4513 Parser hook: basic arguments
4515 <tag width=200 height = "100" depth = '50' square></tag>
4534 Parser hook: argument containing a forward slash (bug 5344)
4536 <tag filename='/tmp/bla'></tag>
4542 string(8) "/tmp/bla"
4549 Parser hook: empty input using terminated empty elements (bug 2374)
4563 # </tag> should be output literally since there is no matching tag that begins it
4565 Parser hook: basic arguments using terminated empty elements (bug 2374)
4567 <tag width=200 height = "100" depth = '50' square/>
4590 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
4594 Parser hook: static parser hook not inside a comment
4596 <statictag>hello, world</statictag>
4597 <statictag action=flush/>
4605 Parser hook: static parser hook inside a comment
4607 <!-- <statictag>hello, world</statictag> -->
4608 <statictag action=flush/>
4614 # Nested template calls; this case was broken by Parser.php rev 1.506,
4618 Template:One-parameter
4620 (My parameter is: {{{1}}})
4624 Template:Map-one-parameter
4630 Nested template calls
4632 {{Map-one-parameter|One-parameter|param}}
4634 <p>(My parameter is: param)
4643 Sanitizer: Closing of open tags
4645 <s></s><table></table>
4647 <s></s><table></table>
4652 Sanitizer: Closing of open but not closed tags
4661 Sanitizer: Closing of closed but not open tags
4670 Sanitizer: Closing of closed but not open table tags
4672 Table not started</td></tr></table>
4674 <p>Table not started</td></tr></table>
4679 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
4681 <span id="æ: v">byte</span>[[#æ: v|backlink]]
4683 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
4688 Sanitizer: Validating the contents of the id attribute (bug 4515)
4694 Something, but defenetly not <br id="9" />...
4698 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
4702 <br id="foo" /><br id="foo" />
4704 Something need to be done. foo-2 ?
4708 Language converter: output gets cut off unexpectedly (bug 5757)
4712 this bit is safe: }-
4714 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
4716 then we get cut off here: }-
4718 all additional text is vanished
4720 <p>this bit is safe: }-
4721 </p><p>but if we add a conversion instance: xxx
4722 </p><p>then we get cut off here: }-
4723 </p><p>all additional text is vanished
4728 Self closed html pairs (bug 5487)
4731 <center><font id="bug" />Centered text</center>
4732 <div><font id="bug2" />In div text</div>
4734 <center><font id="bug" />Centered text</center>
4735 <div><font id="bug2" />In div text</div>
4744 Punctuation: nbsp before exclamation
4748 <p>C'est grave !
4753 Punctuation: CSS !important (bug 11874)
4755 <div style="width:50% !important">important</div>
4757 <div style="width:50% !important">important</div>
4762 Punctuation: CSS ! important (bug 11874; with space after)
4764 <div style="width:50% ! important">important</div>
4766 <div style="width:50% ! important">important</div>
4772 HTML bullet list, closed tags (bug 5497)
4787 HTML bullet list, unclosed tags (bug 5497)
4802 HTML ordered list, closed tags (bug 5497)
4817 HTML ordered list, unclosed tags (bug 5497)
4832 HTML nested bullet list, closed tags (bug 5497)
4857 HTML nested bullet list, open tags (bug 5497)
4880 HTML nested ordered list, closed tags (bug 5497)
4905 HTML nested ordered list, open tags (bug 5497)
4928 HTML ordered list item with parameters oddity
4930 <ol><li id="fragment">One</li></ol>
4932 <ol><li id="fragment">One</li></ol>
4937 bug 5918: autonumbering
4939 [http://first/] [http://second] [ftp://ftp]
4943 [mailto:enclosed@mail.tld With target]
4945 [mailto:enclosed@mail.tld]
4947 mailto:inline@mail.tld
4949 <p><a href="http://first/" class="external autonumber" title="http://first/" rel="nofollow">[1]</a> <a href="http://second" class="external autonumber" title="http://second" rel="nofollow">[2]</a> <a href="ftp://ftp" class="external autonumber" title="ftp://ftp" rel="nofollow">[3]</a>
4950 </p><p><a href="ftp://inlineftp" class="external free" title="ftp://inlineftp" rel="nofollow">ftp://inlineftp</a>
4951 </p><p><a href="mailto:enclosed@mail.tld" class="external text" title="mailto:enclosed@mail.tld" rel="nofollow">With target</a>
4952 </p><p><a href="mailto:enclosed@mail.tld" class="external autonumber" title="mailto:enclosed@mail.tld" rel="nofollow">[4]</a>
4953 </p><p><a href="mailto:inline@mail.tld" class="external free" title="mailto:inline@mail.tld" rel="nofollow">mailto:inline@mail.tld</a>
4959 # Security and HTML correctness
4960 # From Nick Jenkins' fuzz testing
4964 Fuzz testing: Parser13
4979 Fuzz testing: Parser14
4984 <a name="onmouseover.3D" id="onmouseover.3D"></a><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"> onmouseover= </span></h2>
4985 http://<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4987 <li class="toclevel-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
4989 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
4994 Fuzz testing: Parser14-table
4999 <a name="a" id="a"></a><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">a</span></h2>
5000 <table style="__TOC__">
5006 # Known to produce bogus xml (extra </td>)
5008 Fuzz testing: Parser16
5017 <th>https://</th><th></th><th></th><th>
5025 Fuzz testing: Parser21
5028 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5033 <th> <a href="irc://{{ftp://a" class="external free" title="irc://{{ftp://a" rel="nofollow">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5042 Fuzz testing: Parser22
5044 http://===r:::https://b
5048 <p><a href="http://===r:::https://b" class="external free" title="http://===r:::https://b" rel="nofollow">http://===r:::https://b</a>
5056 # Known to produce bad XML for now
5058 Fuzz testing: Parser24
5065 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5066 <br style="onmouseover='alert(document.cookie);' " />
5068 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5073 <u class="|">}}}} >
5074 <br style="onmouseover='alert(document.cookie);'" />
5076 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5085 # Note: the current result listed for this is not what the original one was,
5086 # but the original bug was JavaScript injection, which is fixed in any case.
5087 # It's not clear that the original result listed was any more correct than the
5088 # current one. Original result:
5091 # <li class="||">
5092 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5094 Fuzz testing: Parser25 (bug 6055)
5100 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5102 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5107 Fuzz testing: URL adjacent extension (with space, clean)
5110 http://example.com <nowiki>junk</nowiki>
5112 <p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a> junk
5117 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5120 http://example.com<nowiki>junk</nowiki>
5122 <p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a>junk
5127 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5130 http://example.com<pre>junk</pre>
5132 <a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a><pre>junk</pre>
5137 Fuzz testing: image with bogus manual thumbnail
5139 [[Image:foobar.jpg|thumbnail= ]]
5141 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5146 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5148 <pre dir=" "></pre>
5150 <pre dir=" "></pre>
5155 Parsing optional HTML elements (Bug 6171)
5160 <td> Some tabular data</td>
5161 <td> More tabular data ...
5162 <td> And yet som tabular data</td>
5168 <td> Some tabular data</td>
5169 <td> More tabular data ...
5170 </td><td> And yet som tabular data</td>
5177 Correct handling of <td>, <tr> (Bug 6171)
5182 <td> Some tabular data</td>
5183 <td> More tabular data ...</td>
5184 <td> And yet som tabular data</td>
5190 <td> Some tabular data</td>
5191 <td> More tabular data ...</td>
5192 <td> And yet som tabular data</td>
5200 Parsing crashing regression (fr:JavaScript)
5204 <p></body></x>
5209 Inline wiki vs wiki block nesting
5215 <p><b>Bold paragraph</b>
5216 </p><p>New wiki paragraph
5221 Inline HTML vs wiki block nesting
5227 <p><b>Bold paragraph</b>
5228 </p><p>New wiki paragraph
5232 # Original result was this:
5233 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5235 # While that might be marginally more intuitive, maybe, the six-apostrophe
5236 # construct is clearly pathological and the result stated here (which is what
5237 # the parser actually does) is about as reasonable as anything.
5239 Mixing markup for italics and bold
5242 '''bold''''''bold''bolditalics'''''
5244 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5252 Article for special page transclusion test
5256 Special page transclusion
5259 {{Special:Prefixindex/Xyzzyx}}
5263 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5268 Special page transclusion twice (bug 5021)
5271 {{Special:Prefixindex/Xyzzyx}}
5272 {{Special:Prefixindex/Xyzzyx}}
5276 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5279 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5284 Transclusion of default MediaWiki message
5286 {{MediaWiki:Mainpage}}
5293 Transclusion of nonexistent MediaWiki message
5295 {{MediaWiki:Mainpagexxx}}
5297 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
5302 Transclusion of MediaWiki message with underscore
5304 {{MediaWiki:history_short}}
5311 Transclusion of MediaWiki message with space
5313 {{MediaWiki:history short}}
5320 Invalid header with following text
5330 Section extraction test (section 0)
5350 Section extraction test (section 1)
5372 Section extraction test (section 2)
5393 Section extraction test (section 3)
5413 Section extraction test (section 4)
5437 Section extraction test (section 5)
5457 Section extraction test (section 6)
5478 Section extraction test (section 7)
5498 Section extraction test (section 8)
5518 Section extraction test (section 9)
5539 Section extraction test (section 10)
5559 Section extraction test (nonexistent section 11)
5578 Section extraction test with bogus heading (section 1)
5583 ==bogus== not a legal section
5587 ==bogus== not a legal section
5591 Section extraction test with bogus heading (section 2)
5596 ==bogus== not a legal section
5603 Section extraction test with comment after heading (section 1)
5615 Section extraction test with comment after heading (section 2)
5627 Section extraction test with bogus <nowiki> heading (section 1)
5632 ==bogus== <nowiki>not a legal section</nowiki>
5636 ==bogus== <nowiki>not a legal section</nowiki>
5640 Section extraction test with bogus <nowiki> heading (section 2)
5645 ==bogus== <nowiki>not a legal section</nowiki>
5652 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
5653 # instead of respecting commented sections
5655 Section extraction prefixed by comment (section 1)
5666 Section extraction prefixed by comment (section 2)
5677 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
5678 # instead of respecting HTML-style headings
5680 Section extraction, mixed wiki and html (section 1)
5696 Section extraction, mixed wiki and html (section 2)
5712 # Formerly testing for bug 3342
5714 Section extraction, heading surrounded by <noinclude>
5718 <noinclude>==unmarked==</noinclude>
5726 Section replacement test (section 0)
5757 Section replacement test (section 1)
5786 Section replacement test (section 2)
5816 Section replacement test (section 3)
5847 Section replacement test (section 4)
5874 Section replacement test (section 5)
5905 Section replacement test (section 6)
5935 Section replacement test (section 7)
5966 Section replacement test (section 8)
5997 Section replacement test (section 9)
6026 Section replacement test (section 10)
6056 Section replacement test with initial whitespace (bug 13728)
6060 Preformatted initial line
6064 Preformatted initial line
6071 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6083 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6096 Section extraction, <pre> around bogus header (bug 10309)
6113 Section replacement, <pre> around bogus header (bug 10309)
6115 noxml replace=2,"xxx"
6136 Handling of 
 in URLs
6140 <ul><li><ul><li><a href="irc://%0Aa" class="external free" title="irc://%0Aa" rel="nofollow">irc://%0Aa</a>
6147 5 quotes, code coverage +1 line
6154 Special:Search page linking.
6158 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
6173 * {{SUBJECTPAGENAME}}
6174 * {{SUBJECTPAGENAMEE}}
6181 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6183 <ul><li> Parser test
6184 </li><li> Parser test
6185 </li><li> Parser test
6186 </li><li> Parser_test
6187 </li><li> Parser test
6188 </li><li> Parser_test
6189 </li><li> Talk:Parser test
6190 </li><li> Talk:Parser_test
6191 </li><li> Parser test
6192 </li><li> Parser_test
6199 </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>
6203 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6213 image4 |300px| centre
6214 image5.svg| http://///////
6219 <table class="gallery" cellspacing="0" cellpadding="0">
6221 <td><div class="gallerybox" style="width: 155px;">
6222 <div style="height: 152px;">Image1.png</div>
6223 <div class="gallerytext">
6226 <td><div class="gallerybox" style="width: 155px;">
6227 <div style="height: 152px;">Image2.gif</div>
6228 <div class="gallerytext">
6233 <td><div class="gallerybox" style="width: 155px;">
6234 <div style="height: 152px;">Image3</div>
6235 <div class="gallerytext">
6238 <td><div class="gallerybox" style="width: 155px;">
6239 <div style="height: 152px;">Image4</div>
6240 <div class="gallerytext">
6247 <td><div class="gallerybox" style="width: 155px;">
6248 <div style="height: 152px;">Image5.svg</div>
6249 <div class="gallerytext">
6250 <p><a href="http://///////" class="external free" title="http://///////" rel="nofollow">http://///////</a>
6254 <td><div class="gallerybox" style="width: 155px;">
6255 <div style="height: 152px;">* image6</div>
6256 <div class="gallerytext">
6265 HTML Hex character encoding (spells the word "JavaScript")
6267 JavaScript
6269 <p>JavaScript
6274 __FORCETOC__ override
6286 ISBN 978-0-1234-56 789
6288 <p><a href="/wiki/Special:BookSources/9780123456" class="internal">ISBN 978-0-1234-56</a> 789
6293 ISBN followed by 5 spaces
6304 ISBN ISBN 1234567890
6306 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1234567890</a>
6315 <p>RFC <a href="http://tools.ietf.org/html/rfc1234" class="external" title="http://tools.ietf.org/html/rfc1234">RFC 1234</a>
6320 Double RFC with a wiki link
6324 <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>
6333 <p><a href="http://tools.ietf.org/html/rfc983" class="external" title="http://tools.ietf.org/html/rfc983">RFC 983</a> 987
6338 Centre-aligned image
6340 [[Image:foobar.jpg|centre]]
6342 <div class="center"><div class="floatnone"><a href="/wiki/File:Foobar.jpg" class="image" title="Foobar.jpg"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div></div>
6349 [[Image:foobar.jpg|none]]
6351 <div class="floatnone"><a href="/wiki/File:Foobar.jpg" class="image" title="Foobar.jpg"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
6356 Width + Height sized image (using px) (height is ignored)
6358 [[Image:foobar.jpg|640x480px]]
6360 <p><a href="/wiki/File:Foobar.jpg" class="image" title="Foobar.jpg"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" /></a>
6365 Width-sized image (using px, no following whitespace)
6367 [[Image:foobar.jpg|640px]]
6369 <p><a href="/wiki/File:Foobar.jpg" class="image" title="Foobar.jpg"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" /></a>
6374 Width-sized image (using px, with following whitespace - test regression from r39467)
6376 [[Image:foobar.jpg|640px ]]
6378 <p><a href="/wiki/File:Foobar.jpg" class="image" title="Foobar.jpg"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" /></a>
6383 Width-sized image (using px, with preceding whitespace - test regression from r39467)
6385 [[Image:foobar.jpg| 640px]]
6387 <p><a href="/wiki/File:Foobar.jpg" class="image" title="Foobar.jpg"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" /></a>
6392 Another italics / bold test
6400 # Note the results may be incorrect, as parserTest output included this:
6401 # XML error: Mismatched tag at byte 6120:
6402 # ...<dd> </dt></dl> </dd...
6408 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
6419 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
6421 Images with the "|" character in the comment
6423 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
6425 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image" title="An external URL"><img alt="An external URL" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-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=|left|&param2=|x" class="external text" title="http://test/?param1=|left|&param2=|x" rel="nofollow">external</a> URL</div></div></div>
6430 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
6432 <html><script>alert(1);</script></html>
6434 <p><html><script>alert(1);</script></html>
6439 HTML with raw HTML ($wgRawHtml==true)
6443 <html><script>alert(1);</script></html>
6445 <p><script>alert(1);</script>
6450 Parents of subpages, one level up
6452 subpage title=[[Subpage test/L1/L2/L3]]
6456 <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>
6462 Parents of subpages, one level up, not named
6464 subpage title=[[Subpage test/L1/L2/L3]]
6468 <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>
6475 Parents of subpages, two levels up
6478 subpage title=[[Subpage test/L1/L2/L3]]
6482 <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>
6487 Parents of subpages, two levels up, without trailing slash or name.
6489 subpage title=[[Subpage test/L1/L2/L3]]
6498 Parents of subpages, two levels up, with lots of extra trailing slashes.
6500 subpage title=[[Subpage test/L1/L2/L3]]
6504 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
6509 Definition list code coverage
6515 <dl><dt> title </dt><dd> def
6516 </dd><dt> title </dt><dd> def
6517 </dd><dt>title</dt><dd> def
6523 Don't fall for the self-closing div
6525 <div>hello world</div/>
6527 <div>hello world</div>
6536 <p>[[:Template:Msg]]
6545 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
6549 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
6551 Always escape literal '>' in output, not just after '<'
6565 <p>This is a test template
6566 This is a test template
6578 Inclusion of !userCanEdit() content
6582 <a name="header" id="header"></a><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">header</span></h2>
6588 Out-of-order TOC heading levels
6597 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6599 <li class="toclevel-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
6601 <li class="toclevel-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
6602 <li class="toclevel-2"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
6605 <li class="toclevel-1"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
6607 <li class="toclevel-2"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
6608 <li class="toclevel-2"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
6612 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
6613 <a name="2" id="2"></a><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">2</span></h2>
6614 <a name="6" id="6"></a><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">6</span></h6>
6615 <a name="3" id="3"></a><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">3</span></h3>
6616 <a name="1" id="1"></a><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">1</span></h1>
6617 <a name="5" id="5"></a><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">5</span></h5>
6618 <a name="2_2" id="2_2"></a><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">2</span></h2>
6624 ISBN with a dummy number
6634 ISBN with space-delimited number
6638 <p><a href="/wiki/Special:BookSources/9290170328" class="internal">ISBN 92 9017 032 8</a>
6644 ISBN with multiple spaces, no number
6663 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1234567890</a>
6664 </p><p>ISBN 12345678901
6670 ISBN with trailing year (bug 8110)
6672 ISBN 1-234-56789-0 - 2006
6674 ISBN 1 234 56789 0 - 2006
6676 <p><a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1-234-56789-0</a> - 2006
6677 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1 234 56789 0</a> - 2006
6685 {{anchorencode:foo bar©#%n}}
6687 <p>foo_bar.C2.A9.23.25n
6693 Bug 8293: Use of center tag ruins paragraph formatting
6715 ### Language variants related tests
6718 Self-link in language variants
6720 title=[[Dunav]] language=sr
6722 Both [[Dunav]] and [[Дунав]] are names for this river.
6724 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
6730 Link to pages in language variants
6734 Main Page can be written as [[Маин Паге]]
6736 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
6742 Multiple links to pages in language variants
6746 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
6748 <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>.
6754 Simple template in language variants
6760 <p>This is a test template
6766 Template with explicit namespace in language variants
6772 <p>This is a test template
6778 Basic test for template parameter in language variants
6782 {{парамтест|param=foo}}
6784 <p>This is a test template with parameter foo
6790 Simple category in language variants
6794 [[:Category:МедиаWики Усер'с Гуиде]]
6796 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6801 Stripping -{}- tags (language variants)
6805 Latin proverb: -{Ne nuntium necare}-
6807 <p>Latin proverb: Ne nuntium necare
6813 Prevent conversion with -{}- tags (language variants)
6815 language=sr variant=sr-ec
6817 Latinski: -{Ne nuntium necare}-
6819 <p>Латински: Ne nuntium necare
6825 Prevent conversion of text with -{}- tags (language variants)
6827 language=sr variant=sr-ec
6829 Latinski: -{Ne nuntium necare}-
6831 <p>Латински: Ne nuntium necare
6837 Prevent conversion of links with -{}- tags (language variants)
6839 language=sr variant=sr-ec
6843 <p><a href="/index.php?title=Main_Page&variant=sr-ec" title="Main Page">Main Page</a>
6849 -{}- tags within headlines (within html for parserConvert())
6851 language=sr variant=sr-ec
6855 <a name="-.7BNaslov.7D-" id="-.7BNaslov.7D-"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Уреди део: Naslov">уреди</a>]</span> <span class="mw-headline"> Naslov </span></h2>
6861 Explicit definition of language variant alternatives
6863 language=zh variant=zh-tw
6865 -{zh:China;zh-tw:Taiwan}-, not China
6867 <p>Taiwan, not China
6873 Adding explicit session-wise language variant mapping (A flag)
6875 language=zh variant=zh-tw
6877 -{A|zh:China;zh-tw:Taiwan}- is China
6885 Adding explicit conversion rule for title (T flag)
6887 language=zh variant=zh-tw
6889 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
6891 <p>Should be stripped!
6897 Raw output of variant escape tags (R flag)
6899 language=zh variant=zh-tw
6901 Raw: -{R|zh:China;zh-tw:Taiwan}-
6903 <p>Raw: zh:China;zh-tw:Taiwan
6909 Do not convert roman numbers to language variants
6911 language=sr variant=sr-ec
6915 <p>Фридрих IV је цар.
6926 Bug 529: Uncovered bullet
6937 Bug 529: Uncovered table already at line-start
6958 Bug 529: Uncovered bullet in parser function result
6960 * Foo {{lc:{{bullet}} }}
6969 Bug 5678: Double-parsed template argument
6971 {{lc:{{{1}}}|hello}}
6978 Bug 5678: Double-parsed template invocation
6980 {{lc:{{paramtest {{!}} param = hello }} }}
6982 <p>{{paramtest | param = hello }}
6987 Morwen/13: Unclosed link followed by heading
6994 <a name="heading" id="heading"></a><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">heading</span></h2>
6999 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
7006 <a name="heading" id="heading"></a><h1> <span class="mw-headline">heading</span></h1>
7011 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
7018 <a name="heading" id="heading"></a><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">heading</span></h2>
7033 Paragraphs inside divs (no extra line breaks)
7045 Paragraphs inside divs (extra line break on open)
7060 Paragraphs inside divs (extra line break on close)
7075 Paragraphs inside divs (extra line break on open and close)
7091 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
7093 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
7095 <blockquote>Line one
7097 Line two</blockquote>
7099 <blockquote>Line one
7100 Line two</blockquote>
7105 Bug 6200: paragraphs inside blockquotes (extra line break on open)
7110 Line two</blockquote>
7115 Line two</blockquote>
7120 Bug 6200: paragraphs inside blockquotes (extra line break on close)
7122 <blockquote>Line one
7127 <blockquote>Line one
7135 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
7152 Paragraphs inside blockquotes/divs (no extra line breaks)
7154 <blockquote><div>Line one
7156 Line two</div></blockquote>
7158 <blockquote><div>Line one
7159 Line two</div></blockquote>
7164 Paragraphs inside blockquotes/divs (extra line break on open)
7169 Line two</div></blockquote>
7174 Line two</div></blockquote>
7179 Paragraphs inside blockquotes/divs (extra line break on close)
7181 <blockquote><div>Line one
7186 <blockquote><div>Line one
7194 Paragraphs inside blockquotes/divs (extra line break on open and close)
7211 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
7213 wgLinkHolderBatchSize=0
7219 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
7220 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
7221 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
7226 Free external link invading image caption
7228 [[Image:Foobar.jpg|thumb|http://x|hello]]
7230 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image" title="hello"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-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>
7235 Bug 15196: localised external link numbers
7239 [http://en.wikipedia.org/]
7241 <p><a href="http://en.wikipedia.org/" class="external autonumber" title="http://en.wikipedia.org/" rel="nofollow">[۱]</a>
7246 Multibyte character in padleft
7248 {{padleft:-Hello|7|Æ}}
7255 Multibyte character in padright
7257 {{padright:Hello-|7|Æ}}
7270 <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>
7275 formatdate parser function
7277 {{#formatdate:2009-03-24}}
7279 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
7284 formatdate parser function, with default format
7286 {{#formatdate:2009-03-24|mdy}}
7288 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
7293 Linked date with autoformatting disabled
7295 wgUseDynamicDates=false
7299 <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>
7304 Spacing of numbers in formatted dates
7306 {{#formatdate:January 15}}
7308 <p><span class="mw-formatted-date" title="01-15">January 15</span>
7322 Try for 100% code coverage