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.
61 This is a simple paragraph.
63 <p>This is a simple paragraph.
83 * plain''italic''plain
84 * plain''italic''plain''italic''plain
85 * plain'''bold'''plain
86 * plain'''bold'''plain'''bold'''plain
87 * plain''italic''plain'''bold'''plain
88 * plain'''bold'''plain''italic''plain
89 * plain''italic'''bold-italic'''italic''plain
90 * plain'''bold''bold-italic''bold'''plain
91 * plain'''''bold-italic'''italic''plain
92 * plain'''''bold-italic''bold'''plain
93 * plain''italic'''bold-italic'''''plain
94 * plain'''bold''bold-italic'''''plain
95 * plain l'''italic''plain
96 * plain l''''bold''' plain
99 </li><li> plain<i>italic</i>plain
100 </li><li> plain<i>italic</i>plain<i>italic</i>plain
101 </li><li> plain<b>bold</b>plain
102 </li><li> plain<b>bold</b>plain<b>bold</b>plain
103 </li><li> plain<i>italic</i>plain<b>bold</b>plain
104 </li><li> plain<b>bold</b>plain<i>italic</i>plain
105 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
106 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
107 </li><li> plain<i><b>bold-italic</b>italic</i>plain
108 </li><li> plain<b><i>bold-italic</i>bold</b>plain
109 </li><li> plain<i>italic<b>bold-italic</b></i>plain
110 </li><li> plain<b>bold<i>bold-italic</i></b>plain
111 </li><li> plain l'<i>italic</i>plain
112 </li><li> plain l'<b>bold</b> plain
118 ### <nowiki> test cases
122 <nowiki> unordered list
124 <nowiki>* This is not an unordered list item.</nowiki>
126 <p>* This is not an unordered list item.
133 <nowiki>Lorem ipsum dolor
154 :There is not nowiki.
155 :There is <nowiki>nowiki</nowiki>.
157 #There is not nowiki.
158 #There is <nowiki>nowiki</nowiki>.
160 *There is not nowiki.
161 *There is <nowiki>nowiki</nowiki>.
163 <dl><dd>There is not nowiki.
164 </dd><dd>There is nowiki.
166 <ol><li>There is not nowiki.
167 </li><li>There is nowiki.
169 <ul><li>There is not nowiki.
170 </li><li>There is nowiki.
182 <!-- comment 1 --> asdf
218 asdf<!-- comment 1 -->jkl
228 <!-- foo --> b <!-- bar -->
242 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
248 Comment semantics and delimiters
250 <!-- --><!----><!-----><!------>
256 Comment semantics and delimiters, redux
258 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
259 -- foo -- funky huh? ... -->
265 Comment semantics and delimiters: directors cut
267 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
268 everything starting with < followed by !-- until the first -- and > we see,
269 that wouldn't be valid XML however, since in XML -- has to terminate a comment
277 Comment semantics: nesting
279 <!--<!-- no, we're not going to do anything fancy here -->-->
286 Comment semantics: unclosed comment at end
288 <!--This comment will run out to the end of the document
294 Comment in template title
303 Comment on its own line post-expand
315 ### Preformatted text
324 And a [[Main Page|link]]
330 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
335 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
352 Regression with preformatted in <center>
366 <pre> with attributes (bug 3202)
368 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
370 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
375 <pre> with width attribute (bug 3202)
377 <pre width="8">Narrow screen goodies</pre>
379 <pre width="8">Narrow screen goodies</pre>
384 <pre> with forbidden attribute (bug 3202)
386 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
388 <pre width="8">Narrow screen goodies</pre>
393 <pre> with forbidden attribute values (bug 3202)
395 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
397 <pre width="8">Narrow screen goodies</pre>
409 <dl><dt> name </dt><dd> Definition
415 Definition list for indentation only
419 <dl><dd> Indented text
425 Definition list with no space
429 <dl><dt>name</dt><dd>Definition
435 Definition list with URL link
437 ; http://example.com/ : definition
439 <dl><dt> <a href="http://example.com/" class="external free" title="http://example.com/" rel="nofollow">http://example.com/</a> </dt><dd> definition
445 Definition list with bracketed URL link
447 ;[http://www.example.com/ Example]:Something about it
449 <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
455 Definition list with wikilink containing colon
457 ; [[Help:FAQ]]: The least-read page on Wikipedia
459 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit" class="new" title="Help:FAQ">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
464 # At Brion's and JeLuF's insistence... :)
466 Definition list with news link containing colon
468 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
470 <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!
476 Malformed definition list with colon
478 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
480 <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
486 Definition lists: colon in external link text
488 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
490 <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
496 Definition lists: colon in HTML attribute
498 ;<b style="display: inline">bold</b>
500 <dl><dt><b style="display: inline">bold</b>
507 Definition lists: self-closed tag
509 ;one<br/>two : two-line fun
511 <dl><dt>one<br />two </dt><dd> two-line fun
521 External links: non-bracketed
523 Non-bracketed: http://example.com
525 <p>Non-bracketed: <a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a>
530 External links: numbered
532 Numbered: [http://example.com]
533 Numbered: [http://example.net]
534 Numbered: [http://example.org]
536 <p>Numbered: <a href="http://example.com" class="external autonumber" title="http://example.com" rel="nofollow">[1]</a>
537 Numbered: <a href="http://example.net" class="external autonumber" title="http://example.net" rel="nofollow">[2]</a>
538 Numbered: <a href="http://example.org" class="external autonumber" title="http://example.org" rel="nofollow">[3]</a>
543 External links: specified text
545 Specified text: [http://example.com link]
547 <p>Specified text: <a href="http://example.com" class="external text" title="http://example.com" rel="nofollow">link</a>
552 External links: trail
554 Linktrails should not work for external links: [http://example.com link]s
556 <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
561 External links: dollar sign in URL
563 http://example.com/1$2345
565 <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>
570 External links: dollar sign in URL (named)
572 [http://example.com/1$2345]
574 <p><a href="http://example.com/1$2345" class="external autonumber" title="http://example.com/1$2345" rel="nofollow">[1]</a>
579 External links: open square bracket forbidden in URL (bug 4377)
581 http://example.com/1[2345
583 <p><a href="http://example.com/1" class="external free" title="http://example.com/1" rel="nofollow">http://example.com/1</a>[2345
588 External links: open square bracket forbidden in URL (named) (bug 4377)
590 [http://example.com/1[2345]
592 <p><a href="http://example.com/1" class="external text" title="http://example.com/1" rel="nofollow">[2345</a>
597 External links: nowiki in URL link text (bug 6230)
599 [http://example.com/ <nowiki>''example site''</nowiki>]
601 <p><a href="http://example.com/" class="external text" title="http://example.com/" rel="nofollow">''example site''</a>
606 External links: newline forbidden in text (bug 6230 regression check)
608 [http://example.com/ first
611 <p>[<a href="http://example.com/" class="external free" title="http://example.com/" rel="nofollow">http://example.com/</a> first
619 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
621 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
626 External image from https
628 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
630 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
635 Link to non-http image, no img tag
637 Link to non-http image, no img tag: ftp://example.com/test.jpg
639 <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>
644 External links: terminating separator
646 Terminating separator: http://example.com/thing,
648 <p>Terminating separator: <a href="http://example.com/thing" class="external free" title="http://example.com/thing" rel="nofollow">http://example.com/thing</a>,
653 External links: intervening separator
655 Intervening separator: http://example.com/1,2,3
657 <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>
662 External links: old bug with URL in query
664 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
666 <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>
671 External links: old URL-in-URL bug, mixed protocols
673 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
675 <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>
680 External links: URL in text
682 URL in text: [http://example.com http://example.com]
684 <p>URL in text: <a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a>
689 External links: Clickable images
691 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
693 <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>
698 External links: raw ampersand
700 Old & use: http://x&y
702 <p>Old & use: <a href="http://x&y" class="external free" title="http://x&y" rel="nofollow">http://x&y</a>
707 External links: encoded ampersand
709 Old & use: http://x&y
711 <p>Old & use: <a href="http://x&y" class="external free" title="http://x&y" rel="nofollow">http://x&y</a>
716 External links: encoded equals (bug 6102)
718 http://example.com/?foo=bar
720 <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>
725 External links: [raw ampersand]
727 Old & use: [http://x&y]
729 <p>Old & use: <a href="http://x&y" class="external autonumber" title="http://x&y" rel="nofollow">[1]</a>
734 External links: [encoded ampersand]
736 Old & use: [http://x&y]
738 <p>Old & use: <a href="http://x&y" class="external autonumber" title="http://x&y" rel="nofollow">[1]</a>
743 External links: [encoded equals] (bug 6102)
745 [http://example.com/?foo=bar]
747 <p><a href="http://example.com/?foo=bar" class="external autonumber" title="http://example.com/?foo=bar" rel="nofollow">[1]</a>
752 External links: [IDN ignored character reference in hostname; strip it right off]
754 [http://e‌xample.com/]
756 <p><a href="http://example.com/" class="external autonumber" title="http://example.com/" rel="nofollow">[1]</a>
761 External links: IDN ignored character reference in hostname; strip it right off
763 http://e‌xample.com/
765 <p><a href="http://example.com/" class="external free" title="http://example.com/" rel="nofollow">http://example.com/</a>
770 External links: www.jpeg.org (bug 554)
774 <p><a href="http://www.jpeg.org" class="external free" title="http://www.jpeg.org" rel="nofollow">http://www.jpeg.org</a>
779 External links: URL within URL (original bug 2)
781 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
783 <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>
788 BUG 361: URL inside bracketed URL
790 [http://www.example.com/foo http://www.example.com/bar]
792 <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>
797 BUG 361: URL within URL, not bracketed
799 http://www.example.com/foo?=http://www.example.com/bar
801 <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>
806 BUG 289: ">"-token in URL-tail
808 http://www.example.com/<hello>
810 <p><a href="http://www.example.com/" class="external free" title="http://www.example.com/" rel="nofollow">http://www.example.com/</a><hello>
815 BUG 289: literal ">"-token in URL-tail
817 http://www.example.com/<b>html</b>
819 <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>
824 BUG 289: ">"-token in bracketed URL
826 [http://www.example.com/<hello> stuff]
828 <p><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow"><hello> stuff</a>
833 BUG 289: literal ">"-token in bracketed URL
835 [http://www.example.com/<b>html</b> stuff]
837 <p><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow"><b>html</b> stuff</a>
842 BUG 289: literal double quote at end of URL
844 http://www.example.com/"hello"
846 <p><a href="http://www.example.com/" class="external free" title="http://www.example.com/" rel="nofollow">http://www.example.com/</a>"hello"
851 BUG 289: literal double quote in bracketed URL
853 [http://www.example.com/"hello" stuff]
855 <p><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow">"hello" stuff</a>
860 External links: invalid character
861 Fixme: the missing char seems to have gone missing
865 [http://www.example.com test]
867 <p>[<a href="http://www.example.com" class="external free" title="http://www.example.com" rel="nofollow">http://www.example.com</a> test]
872 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
874 [http://www.example.com test]
876 <p><a href="http://www.example.com" class="external text" title="http://www.example.com" rel="nofollow">test</a>
881 External links: wiki links within external link (Bug 3695)
883 [http://example.com [[wikilink]] embedded in ext link]
885 <p><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"></a><a href="/index.php?title=Wikilink&action=edit" class="new" title="Wikilink">wikilink</a><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"> embedded in ext link</a>
890 BUG 787: Links with one slash after the url protocol are invalid
894 [http:/example.com title]
897 </p><p>[http:/example.com title]
902 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
904 ''[http://example.com text'']
905 [http://example.com '''text]'''
906 ''Something [http://example.com in italic'']
907 ''Something [http://example.com mixed''''', even bold]'''
908 '''''Now [http://example.com both''''']
910 <p><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><i>text</i></a>
911 <a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><b>text</b></a>
912 <i>Something </i><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><i>in italic</i></a>
913 <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>
914 <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>
922 http://www.example.com/?title=AT%26T
924 <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>
929 Bug 4781, 5267: %26 in URL
931 http://www.example.com/?title=100%25_Bran
933 <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>
938 Bug 4781, 5267: %28, %29 in URL
940 http://www.example.com/?title=Ben-Hur_%281959_film%29
942 <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>
948 Bug 4781: %26 in autonumber URL
950 [http://www.example.com/?title=AT%26T]
952 <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>
957 Bug 4781, 5267: %26 in autonumber URL
959 [http://www.example.com/?title=100%25_Bran]
961 <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>
966 Bug 4781, 5267: %28, %29 in autonumber URL
968 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
970 <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>
976 Bug 4781: %26 in bracketed URL
978 [http://www.example.com/?title=AT%26T link]
980 <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>
985 Bug 4781, 5267: %26 in bracketed URL
987 [http://www.example.com/?title=100%25_Bran link]
989 <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>
994 Bug 4781, 5267: %28, %29 in bracketed URL
996 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
998 <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>
1003 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1005 Some [http://example.com/ pretty ''italics'' and stuff]!
1007 <p>Some <a href="http://example.com/" class="external text" title="http://example.com/" rel="nofollow">pretty <i>italics</i> and stuff</a>!
1012 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1014 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1016 <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>
1021 URL-encoding in URL functions (single parameter)
1023 {{localurl:Some page|amp=&}}
1025 <p>/index.php?title=Some_page&amp=%26
1030 URL-encoding in URL functions (multiple parameters)
1032 {{localurl:Some page|q=?&=&}}
1034 <p>/index.php?title=Some_page&q=%3F&amp=%26
1045 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1047 Normal text. '''''Bold italic text.''''' Normal text.
1049 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1050 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1056 Unclosed and unmatched quotes
1058 '''''Bold italic text '''with bold deactivated''' in between.'''''
1060 '''''Bold italic text ''with italic deactivated'' in between.'''''
1064 ..spanning two paragraphs (should not work).'''
1066 '''Bold tag left open
1068 ''Italic tag left open
1072 <!-- Unmatching number of opening, closing tags: -->
1073 '''This year''''s election ''should'' beat '''last year''''s.
1075 ''Tom'''s car is bigger than ''Susan'''s.
1077 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1078 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1079 </p><p><b>Bold text..</b>
1080 </p><p>..spanning two paragraphs (should not work).
1081 </p><p><b>Bold tag left open</b>
1082 </p><p><i>Italic tag left open</i>
1084 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1085 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1092 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1095 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1096 # is the bare minimun required by the spec, see:
1097 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1099 A table with no data.
1105 # A table with nothing but a caption is invalid XHTML, we might want to render
1106 # this as <p>caption</p>
1108 A table with nothing but a caption
1116 </caption><tr><td></td></tr></table>
1140 Multiplication table
1142 {| border="1" cellpadding="2"
1143 |+Multiplication table
1145 ! × !! 1 !! 2 !! 3
1163 <table border="1" cellpadding="2">
1164 <caption>Multiplication table
1167 <th> × </th><th> 1 </th><th> 2 </th><th> 3
1171 </th><td> 1 </td><td> 2 </td><td> 3
1175 </th><td> 2 </td><td> 4 </td><td> 6
1179 </th><td> 3 </td><td> 6 </td><td> 9
1183 </th><td> 4 </td><td> 8 </td><td> 12
1187 </th><td> 5 </td><td> 10 </td><td> 15
1195 {| align=right border=1
1197 |rowspan=2| Cell 2, row 1 (and 2)
1204 <table align="right" border="1">
1207 </td><td rowspan="2"> Cell 2, row 1 (and 2)
1208 </td><td> Cell 3, row 1
1212 </td><td> Cell 3, row 2
1223 {| bgcolor=#ABCDEF border=2
1228 |the original table again
1235 <table bgcolor="#ABCDEF" border="2">
1242 </td><td>the original table again
1248 Invalid attributes in table cell (bug 1830)
1262 # FIXME: this one has incorrect tag nesting still.
1264 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1267 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1271 <td><a href="ftp://|x||" class="external autonumber" title="ftp://|x||" rel="nofollow">[1]</td><td></a>" onmouseover="alert(document.cookie)">test
1283 Plain link, capitalized
1287 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1292 Plain link, uncapitalized
1296 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1303 [[Main Page|The Main Page]]
1305 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1314 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit" class="new" title="Zigzagzogzagzig">Zigzagzogzagzig</a>
1321 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1323 <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>
1330 [[Main Page]]xxx, [[Main Page]]XXX
1332 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX
1337 Link with 3 brackets
1346 Piped link with 3 brackets
1348 [[[main page|the main page]]]
1350 <p>[[[main page|the main page]]]
1355 Link with multiple pipes
1357 [[Main Page|The|Main|Page]]
1359 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1366 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1368 <p><a href="/index.php?title=Talk:Parser_testing&action=edit" class="new" title="Talk:Parser testing">Talk:Parser testing</a>, <a href="/index.php?title=Meta:Disclaimers&action=edit" class="new" title="Meta:Disclaimers">Meta:Disclaimers</a>
1373 Piped link to namespace
1375 [[Meta:Disclaimers|The disclaimers]]
1377 <p><a href="/index.php?title=Meta:Disclaimers&action=edit" class="new" title="Meta:Disclaimers">The disclaimers</a>
1384 [[Usually caused by a typo (oops}]]
1386 <p>[[Usually caused by a typo (oops}]]
1391 Link containing % (not as a hex sequence)
1395 <p><a href="/index.php?title=7%25_Solution&action=edit" class="new" title="7% Solution">7% Solution</a>
1400 Link containing % as a single hex sequence interpreted to char
1404 <p><a href="/index.php?title=7%25_Solution&action=edit" class="new" title="7% Solution">7% Solution</a>
1409 Link containing % as a double hex sequence interpreted to hex sequence
1413 <p>[[7%2525 Solution]]
1418 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1419 Example for such a section: == < ==
1421 [[%23%3c]][[%23%3e]]
1423 <p><a href="#.3C" title="">#<</a><a href="#.3E" title="">#></a>
1428 Link containing "<#" and ">#" as a hex sequences
1430 [[%3c%23]][[%3e%23]]
1432 <p>[[%3c%23]][[%3e%23]]
1437 Link containing double-single-quotes '' (bug 4598)
1439 [[Lista d''e paise d''o munno]]
1441 <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>
1446 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1448 Some [[Link|pretty ''italics'' and stuff]]!
1450 <p>Some <a href="/index.php?title=Link&action=edit" class="new" title="Link">pretty <i>italics</i> and stuff</a>!
1455 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1457 ''Some [[Link|pretty ''italics'' and stuff]]!
1459 <p><i>Some </i><a href="/index.php?title=Link&action=edit" class="new" title="Link"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1466 [[http://www.example.org]]
1468 <p>[<a href="http://www.example.org" class="external autonumber" title="http://www.example.org" rel="nofollow">[1]</a>]
1472 # I'm fairly sure the expected result here is wrong.
1473 # We want these to be URL links, not pseudo-pages with URLs for titles....
1474 # However the current output is also pretty screwy.
1477 # I'm changing it to match the current output--it arguably makes more
1478 # sense in the light of the test above. Old expected result was:
1479 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.org&action=edit" class="new" title="Http://www.example.org">an example URL</a>
1481 # But I think this test is bordering on "garbage in, garbage out" anyway.
1486 Piped link to URL: [[http://www.example.org|an example URL]]
1488 <p>Piped link to URL: [<a href="http://www.example.org|an" class="external text" title="http://www.example.org|an" rel="nofollow">example URL</a>]
1493 BUG 2: [[page|http://url/]] should link to page, not http://url/
1495 [[Main Page|http://url/]]
1497 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1502 BUG 337: Escaped self-links should be bold
1506 [[Bug462]] [[Bug462]]
1508 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1513 Self-link to section should not be bold
1517 [[Main Page#section]]
1519 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1530 Self-link to numeric title
1536 <p><strong class="selflink">0</strong>
1541 Link to numeric-equivalent title
1547 <p><a href="/wiki/00" title="00">00</a>
1552 <nowiki> inside a link
1554 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1556 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1561 ### Interwiki links (see maintenance/interwiki.sql)
1565 Inline interwiki link
1567 [[MeatBall:SoftSecurity]]
1569 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1574 Inline interwiki link with empty title (bug 2372)
1578 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw" title="meatball:">MeatBall:</a>
1583 Interwiki link encoding conversion (bug 1636)
1585 *[[Wikipedia:ro:Olteniţa]]
1586 *[[Wikipedia:ro:Olteniţa]]
1588 <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>
1589 </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>
1595 Interwiki link with fragment (bug 2130)
1597 [[MeatBall:SoftSecurity#foo]]
1599 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1614 Double interlanguage link
1625 Interlanguage link, with prefix links
1637 Double interlanguage link, with prefix links (bug 8897)
1664 Incorrecly removing closing slashes from correctly formed XHTML
1666 <br style="clear:both;" />
1668 <p><br style="clear:both;" />
1673 Failing to transform badly formed HTML into correct XHTML
1679 <p><br clear="left" />
1680 <br clear="right" />
1686 Horizontal ruler (should it add that extra space?)
1700 ### Block-level elements
1723 <ol><li>Numbered list
1740 ***#Number on level 4
1742 **#Number on level 3
1743 **#Number on level 3
1748 <ol><li> with numbers
1750 <ul><li> and bullets
1752 <ol><li> and numbers
1754 </li><li>bullets again
1755 <ul><li>bullet level 2
1756 <ul><li>bullet level 3
1757 <ol><li>Number on level 4
1760 </li><li>bullet level 2
1761 <ol><li>Number on level 3
1762 </li><li>Number on level 3
1765 <ol><li>number level 2
1773 List items are not parsed correctly following a <pre> block (bug 785)
1779 <ul><li> <pre>foo</pre>
1780 </li><li> <pre>bar</pre>
1791 Magic Word: {{CURRENTDAY}}
1800 Magic Word: {{CURRENTDAY2}}
1809 Magic Word: {{CURRENTDAYNAME}}
1818 Magic Word: {{CURRENTDOW}}
1827 Magic Word: {{CURRENTMONTH}}
1836 Magic Word: {{CURRENTMONTHABBREV}}
1838 {{CURRENTMONTHABBREV}}
1845 Magic Word: {{CURRENTMONTHNAME}}
1847 {{CURRENTMONTHNAME}}
1854 Magic Word: {{CURRENTMONTHNAMEGEN}}
1856 {{CURRENTMONTHNAMEGEN}}
1863 Magic Word: {{CURRENTTIME}}
1872 Magic Word: {{CURRENTWEEK}} (@bug 4594)
1881 Magic Word: {{CURRENTYEAR}}
1890 Magic Word: {{FULLPAGENAME}}
1892 title=[[User:Ævar Arnfjörð Bjarmason]]
1896 <p>User:Ævar Arnfjörð Bjarmason
1901 Magic Word: {{FULLPAGENAMEE}}
1903 title=[[User:Ævar Arnfjörð Bjarmason]]
1907 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
1912 Magic Word: {{NAMESPACE}}
1914 title=[[User:Ævar Arnfjörð Bjarmason]]
1924 Magic Word: {{NAMESPACEE}}
1926 title=[[User:Ævar Arnfjörð Bjarmason]]
1936 Magic Word: {{NUMBEROFARTICLES}}
1938 {{NUMBEROFARTICLES}}
1945 Magic Word: {{NUMBEROFFILES}}
1954 Magic Word: {{PAGENAME}}
1956 title=[[User:Ævar Arnfjörð Bjarmason]]
1961 <p>Ævar Arnfjörð Bjarmason
1966 Magic Word: {{PAGENAMEE}}
1968 title=[[User:Ævar Arnfjörð Bjarmason]]
1972 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
1977 Magic Word: {{REVISIONID}}
1986 Magic Word: {{SCRIPTPATH}}
1995 Magic Word: {{SERVER}}
1999 <p><a href="http://localhost" class="external free" title="http://localhost" rel="nofollow">http://localhost</a>
2004 Magic Word: {{SERVERNAME}}
2013 Magic Word: {{SITENAME}}
2022 Namespace 1 {{ns:1}}
2031 Namespace 1 {{ns:01}}
2040 Namespace 0 {{ns:0}} (bug 4783)
2048 Namespace 0 {{ns:00}} (bug 4783)
2056 Namespace -1 {{ns:-1}}
2065 Namespace Project {{ns:User}}
2078 Magic links: internal link to RFC (bug 479)
2082 <p><a href="/index.php?title=RFC_123&action=edit" class="new" title="RFC 123">RFC 123</a>
2087 Magic links: RFC (bug 479)
2091 <p><a href="http://tools.ietf.org/html/rfc822" class="external" title="http://tools.ietf.org/html/rfc822">RFC 822</a>
2096 Magic links: ISBN (bug 1937)
2100 <p><a href="/index.php?title=Special:Booksources&isbn=0306406152" class="internal">ISBN 0-306-40615-2</a>
2105 Magic links: PMID incorrectly converts space to underscore
2109 <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>
2118 Nonexistant template
2120 {{thistemplatedoesnotexist}}
2122 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit" class="new" title="Template:Thistemplatedoesnotexist">Template:Thistemplatedoesnotexist</a>
2129 This is a test template
2137 <p>This is a test template
2142 Template with explicit namespace
2146 <p>This is a test template
2154 This is a test template with parameter {{{param}}}
2160 {{paramtest|param=foo}}
2162 <p>This is a test template with parameter foo
2167 Template:paramtestnum
2173 Template unnamed parameter
2175 {{paramtestnum|Main Page|the main page}}
2177 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2182 Template:templatesimple
2188 Template:templateredirect
2190 #redirect [[Template:templatesimple]]
2194 Template:templateasargtestnum
2200 Template:templateasargtest
2202 {{template{{{templ}}}}}
2206 Template:templateasargtest2
2212 Template with template name as unnamed argument
2214 {{templateasargtestnum|templatesimple}}
2221 Template with template name as argument
2223 {{templateasargtest|templ=simple}}
2230 Template with template name as argument (2)
2232 {{templateasargtest2|templ=templatesimple}}
2239 Template:templateasargtestdefault
2241 {{{{{templ|templatesimple}}}}}
2251 Template with default value
2253 {{templateasargtestdefault}}
2260 Template with default value (value set)
2262 {{templateasargtestdefault|templ=templa}}
2271 {{templateredirect}}
2278 Template with argument in separate line
2280 {{ templateasargtest |
2288 Template with complex template as argument
2291 param ={{ templateasargtest |
2294 <p>This is a test template with parameter (test)
2299 Template with thumb image (with link in description)
2302 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2304 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="Image:Noimage.png">Image:Noimage.png</a> <div class="thumbcaption"><a href="/index.php?title=No_link&action=edit" class="new" title="No link">link</a> <a href="/index.php?title=No_link&action=edit" class="new" title="No link">caption</a></div></div></div>
2309 Template:complextemplate
2311 {{{1}}} {{paramtest|
2312 param ={{{param}}}}}
2316 Template with complex arguments
2319 param ={{ templateasargtest |
2320 templ = simple }}|[[Template:complextemplate|link]]}}
2322 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2327 BUG 553: link with two variables in a piped link
2330 |[[{{{1}}}|{{{2}}}]]
2335 <td>[[{{{1}}}|{{{2}}}]]
2341 Magic variable as template parameter
2343 {{paramtest|param={{SITENAME}}}}
2345 <p>This is a test template with parameter MediaWiki
2352 [[{{{param}}}|link]]
2356 Template parameter as link source
2358 {{linktest|param=Main Page}}
2360 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2368 including another template, {{paramtest|param={{{arg}}}}}
2372 Template passing argument to another template
2374 {{paramtest2|arg='hmm'}}
2376 <p>including another template, This is a test template with parameter 'hmm'
2387 Template as link source
2391 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2409 Template infinite loop
2413 <p><a href="/index.php?title=Loop1&action=edit" class="new" title="Loop1">loop1</a><!-- WARNING: template loop detected -->
2418 Template from main namespace
2437 BUG 529: Template with table, not included at beginning of line
2454 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2472 BUG 41: Template parameters shown as broken links
2484 ''None'' of '''this''' should be
2486 but rather passed unmodified
2490 # hmm, fix this or just deprecate msgnw and document its behavior?
2496 {{msgnw:MSGNW test}}
2498 <p>''None'' of '''this''' should be
2500 but rather passed unmodified
2508 {{int:youhavenewmessages|lots of money|not!}}
2510 <p>You have lots of money (not!).
2517 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2521 <includeonly> and <noinclude> being included
2532 <onlyinclude>Foo</onlyinclude>bar
2536 <onlyinclude> being included
2548 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2552 <onlyinclude> and <includeonly> being included
2561 <includeonly> and <noinclude> on a page
2563 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2570 <onlyinclude> on a page
2572 <onlyinclude>Foo</onlyinclude>bar
2579 Template:Includeonly section
2582 ==Includeonly section==
2588 Bug 6563: Edit link generation for section shown by <includeonly>
2590 {{includeonly section}}
2592 <a name="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>
2593 <a name="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>
2597 # Uses same input as the contents of [[Template:Includeonly section]]
2599 Bug 6563: Section extraction for section shown by <includeonly>
2604 ==Includeonly section==
2612 Bug 6563: Edit link generation for section suppressed by <includeonly>
2615 ==Includeonly section==
2619 <a name="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>
2624 Bug 6563: Section extraction for section suppressed by <includeonly>
2629 ==Includeonly section==
2637 ### Pre-save transform tests
2640 pre-save transform: subst:
2646 This is a test template
2650 pre-save transform: normal template
2660 pre-save transform: nonexistant template
2664 {{thistemplatedoesnotexist}}
2666 {{thistemplatedoesnotexist}}
2671 pre-save transform: subst magic variables
2680 # This is bug 89, which I fixed. -- wtm
2682 pre-save transform: subst: templates with parameters
2686 {{subst:paramtest|param="something else"}}
2688 This is a test template with parameter "something else"
2694 <nowiki>'''not wiki'''</nowiki>
2698 pre-save transform: nowiki in subst (bug 1188)
2702 {{subst:nowikitest}}
2704 <nowiki>'''not wiki'''</nowiki>
2709 Template:commenttest
2711 This template has <!-- a comment --> in it.
2715 pre-save transform: comment in subst (bug 1936)
2719 {{subst:commenttest}}
2721 This template has <!-- a comment --> in it.
2725 pre-save transform: unclosed tag
2729 <nowiki>'''not wiki'''
2731 <nowiki>'''not wiki'''
2735 pre-save transform: mixed tag case
2739 <NOwiki>'''not wiki'''</noWIKI>
2741 <NOwiki>'''not wiki'''</noWIKI>
2745 pre-save transform: unclosed comment in <nowiki>
2749 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2751 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2757 <span onmouseover="alert('crap')">Oh no</span>
2761 (confirming safety of fix for subst bug 1936)
2763 {{Template:dangerous}}
2765 <p><span>Oh no</span>
2770 pre-save transform: comment containing gallery (bug 5024)
2774 <!-- <gallery>data</gallery> -->
2776 <!-- <gallery>data</gallery> -->
2780 pre-save transform: comment containing extension
2784 <!-- <tag>data</tag> -->
2786 <!-- <tag>data</tag> -->
2790 pre-save transform: comment containing nowiki
2794 <!-- <nowiki>data</nowiki> -->
2796 <!-- <nowiki>data</nowiki> -->
2800 pre-save transform: comment containing math
2804 <!-- <math>data</math> -->
2806 <!-- <math>data</math> -->
2810 pre-save transform: <noinclude> in subst (bug 3298)
2820 pre-save transform: <onlyinclude> in subst (bug 3298)
2830 pre-save transform: context links ("pipe trick")
2834 [[Article (context)|]]
2837 [[Bar:Article (context)|]]
2838 [[:Bar:Article (context)|]]
2840 [[|Article (context)]]
2844 [[Article (context)|Article]]
2845 [[Bar:Article|Article]]
2846 [[:Bar:Article|Article]]
2847 [[Bar:Article (context)|Article]]
2848 [[:Bar:Article (context)|Article]]
2850 [[Article (context)]]
2851 [[Bar:X (Y) Z|X (Y) Z]]
2852 [[:Bar:X (Y) Z|X (Y) Z]]
2856 pre-save transform: context links ("pipe trick") with interwiki prefix
2860 [[interwiki:Article|]]
2861 [[:interwiki:Article|]]
2862 [[interwiki:Bar:Article|]]
2863 [[:interwiki:Bar:Article|]]
2865 [[interwiki:Article|Article]]
2866 [[:interwiki:Article|Article]]
2867 [[interwiki:Bar:Article|Bar:Article]]
2868 [[:interwiki:Bar:Article|Bar:Article]]
2872 pre-save transform: context links ("pipe trick") with parens in title
2874 pst title=[[Somearticle (context)]]
2878 [[Article (context)|Article]]
2882 pre-save transform: context links ("pipe trick") with comma in title
2884 pst title=[[Someplace, Somewhere]]
2887 [[Otherplace, Elsewhere|]]
2888 [[Otherplace, Elsewhere, Anywhere|]]
2890 [[Otherplace, Somewhere|Otherplace]]
2891 [[Otherplace, Elsewhere|Otherplace]]
2892 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
2896 pre-save transform: context links ("pipe trick") with parens and comma
2898 pst title=[[Someplace (IGNORED), Somewhere]]
2901 [[Otherplace (place), Elsewhere|]]
2903 [[Otherplace, Somewhere|Otherplace]]
2904 [[Otherplace (place), Elsewhere|Otherplace]]
2908 pre-save transform: context links ("pipe trick") with comma and parens
2910 pst title=[[Who, me? (context)]]
2913 [[Me, Myself, and I (1937 song)|]]
2915 [[Yes, you. (context)|Yes, you.]]
2916 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
2920 pre-save transform: context links ("pipe trick") with namespace
2922 pst title=[[Ns:Somearticle]]
2926 [[Ns:Article|Article]]
2930 pre-save transform: context links ("pipe trick") with namespace and parens
2932 pst title=[[Ns:Somearticle (context)]]
2936 [[Ns:Article (context)|Article]]
2940 pre-save transform: context links ("pipe trick") with namespace and comma
2942 pst title=[[Ns:Somearticle, Context, Whatever]]
2946 [[Ns:Article, Context, Whatever|Article]]
2950 pre-save transform: context links ("pipe trick") with namespace, comma and parens
2952 pst title=[[Ns:Somearticle, Context (context)]]
2956 [[Ns:Article (context)|Article]]
2960 pre-save transform: context links ("pipe trick") with namespace, parens and comma
2962 pst title=[[Ns:Somearticle (IGNORED), Context]]
2966 [[Ns:Article, Context|Article]]
2971 ### Message transform tests
2974 message transform: magic variables
2984 message transform: should not transform wiki markup
2994 message transform: <noinclude> in transcluded template (bug 4926)
3004 message transform: <onlyinclude> in transcluded template (bug 4926)
3014 {{#special:}} page name, known
3018 {{#special:Recentchanges}}
3020 Special:Recentchanges
3024 {{#special:}} page name, unknown
3028 {{#special:foobarnonexistent}}
3030 No such special page
3039 [[Image:foobar.jpg]]
3041 <p><a href="/wiki/Image: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" border="0" /></a>
3048 [[Image:foobar.jpg|right]]
3050 <div class="floatright"><span><a href="/wiki/Image:Foobar.jpg" class="image" title="Foobar.jpg"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" border="0" /></a></span></div>
3057 [[Image:foobar.jpg|right|Caption text]]
3059 <div class="floatright"><span><a href="/wiki/Image:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" border="0" /></a></span></div>
3064 Image with frame and link
3066 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3068 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/Image:Foobar.jpg" class="image" title="This is a test image Main Page"><img alt="This is a test image Main Page" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" border="0" 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>
3073 Link to image page- image page normally doesn't exists, hence edit link
3074 Add test with existing image page
3075 #<p><a href="/wiki/Image:Test" title="Image:Test">Image:test</a>
3079 <p><a href="/index.php?title=Image:Test&action=edit" class="new" title="Image:Test">Image:test</a>
3084 Frameless image caption with a free URL
3086 [[Image:foobar.jpg|http://example.com]]
3088 <p><a href="/wiki/Image: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" border="0" /></a>
3093 Thumbnail image caption with a free URL
3095 [[Image:foobar.jpg|thumb|http://example.com]]
3097 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="image" title="http://example.com"><img alt="http://example.com" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" border="0" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image: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>
3102 BUG 1887: A ISBN with a thumbnail
3104 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3106 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="image" title="ISBN 1235467890"><img alt="ISBN 1235467890" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" border="0" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="/index.php?title=Special:Booksources&isbn=1235467890" class="internal">ISBN 1235467890</a></div></div></div>
3111 BUG 1887: A RFC with a thumbnail
3113 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3115 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="image" title="This is RFC 12354"><img alt="This is RFC 12354" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" border="0" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image: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>
3120 BUG 1887: A mailto link with a thumbnail
3122 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3124 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="image" title="Please mailto:nobody@example.com"><img alt="Please mailto:nobody@example.com" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" border="0" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image: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>
3129 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
3130 so math is not stripped and turns up as escaped <math> tags.
3132 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3134 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="image" title="<math>2+2</math>"><img alt="<math>2+2</math>" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" border="0" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image: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>
3139 BUG 1887, part 2: A <math> with a thumbnail- math enabled
3143 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3145 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="image" title="2 + 2"><img alt="2 + 2" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" border="0" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image: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>
3149 # Pending resolution to bug 368
3151 BUG 648: Frameless image caption with a link
3153 [[Image:foobar.jpg|text with a [[link]] in it]]
3155 <p><a href="/wiki/Image: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" border="0" /></a>
3160 BUG 648: Frameless image caption with a link (suffix)
3162 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3164 <p><a href="/wiki/Image: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" border="0" /></a>
3169 BUG 648: Frameless image caption with an interwiki link
3171 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3173 <p><a href="/wiki/Image: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" border="0" /></a>
3178 BUG 648: Frameless image caption with a piped interwiki link
3180 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3182 <p><a href="/wiki/Image: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" border="0" /></a>
3187 Escape HTML special chars in image alt text
3189 [[Image:foobar.jpg|& < > "]]
3191 <p><a href="/wiki/Image:Foobar.jpg" class="image" title="& < > ""><img alt="& < > "" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" border="0" /></a>
3196 BUG 499: Alt text should have Ӓ, not &1234;
3198 [[Image:foobar.jpg|♀]]
3200 <p><a href="/wiki/Image:Foobar.jpg" class="image" title="♀"><img alt="♀" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" border="0" /></a>
3205 Broken image caption with link
3207 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3209 <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.
3214 Image caption containing another image
3216 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3218 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="image" title="This is a caption with another Image:Icon.png inside it!"><img alt="This is a caption with another Image:Icon.png inside it!" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" border="0" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image: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="Image:Icon.png">Image:Icon.png</a> inside it!</div></div></div>
3223 Image caption containing a newline
3225 [[Image:Foobar.jpg|This
3228 <p><a href="/wiki/Image: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" border="0" /></a>
3234 Bug 3090: External links other than http: in image captions
3236 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3238 <div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/Image:Foobar.jpg" class="image" title="This caption has irc and Secure ext links in it."><img alt="This caption has irc and Secure ext links in it." src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" border="0" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image: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>
3247 Subpage test/subpage
3255 subpage title=[[Subpage test]]
3259 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3264 Subpage noslash link
3266 subpage title=[[Subpage test]]
3270 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3279 <p><a href="/index.php?title=/subpage&action=edit" class="new" title="/subpage">/subpage</a>
3284 BUG 561: {{/Subpage}}
3286 subpage title=[[Page]]
3290 <p><a href="/index.php?title=Page/Subpage&action=edit" class="new" title="Page/Subpage">Page/Subpage</a>
3298 Category:MediaWiki User's Guide
3306 [[:Category:MediaWiki User's Guide]]
3308 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
3317 [[Category:MediaWiki User's Guide]]
3319 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3323 ### Inter-language links
3326 Inter-language links
3332 [[zh:食品]]
3334 es:Alimento fr:Nourriture zh:食品
3341 Basic section headings
3348 ===Smaller headline===
3351 <a name="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>
3354 <a name="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>
3357 <a name="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>
3363 Section headings with TOC
3366 === Subheadline 1 ===
3367 ===== Skipping a level =====
3368 ====== Skipping a level ======
3372 ===Another headline===
3374 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3376 <li class="toclevel-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3378 <li class="toclevel-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3380 <li class="toclevel-3"><a href="#Skipping_a_level"><span class="tocnumber">1.1.1</span> <span class="toctext">Skipping a level</span></a>
3382 <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>
3389 <li class="toclevel-1"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
3391 <li class="toclevel-2"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
3395 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3396 <a name="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>
3397 <a name="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>
3398 <a name="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>
3399 <a name="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>
3400 <a name="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>
3403 <a name="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>
3407 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
3409 Handling of sections up to level 6 and beyond
3412 == Level 2 Heading==
3413 === Level 3 Heading===
3414 ==== Level 4 Heading====
3415 ===== Level 5 Heading=====
3416 ====== Level 6 Heading======
3417 ======= Level 7 Heading=======
3418 ======== Level 8 Heading========
3419 ========= Level 9 Heading=========
3420 ========== Level 10 Heading==========
3422 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3424 <li class="toclevel-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
3426 <li class="toclevel-2"><a href="#Level_2_Heading"><span class="tocnumber">1.1</span> <span class="toctext">Level 2 Heading</span></a>
3428 <li class="toclevel-3"><a href="#Level_3_Heading"><span class="tocnumber">1.1.1</span> <span class="toctext">Level 3 Heading</span></a>
3430 <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>
3432 <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>
3434 <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>
3435 <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>
3436 <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>
3437 <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>
3438 <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>
3450 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3451 <a name="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>
3452 <a name="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>
3453 <a name="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>
3454 <a name="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>
3455 <a name="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>
3456 <a name="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>
3457 <a name=".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>
3458 <a name=".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>
3459 <a name=".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>
3460 <a name=".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>
3465 TOC regression (bug 9764)
3469 ==== title 1.1.1 ====
3474 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3476 <li class="toclevel-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3478 <li class="toclevel-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a>
3480 <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>
3483 <li class="toclevel-2"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
3486 <li class="toclevel-1"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3488 <li class="toclevel-2"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
3492 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3493 <a name="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>
3494 <a name="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>
3495 <a name="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>
3496 <a name="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>
3497 <a name="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>
3498 <a name="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>
3503 TOC with wgMaxTocLevel=3 (bug 6204)
3509 ==== title 1.1.1 ====
3514 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3516 <li class="toclevel-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3518 <li class="toclevel-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
3519 <li class="toclevel-2"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
3522 <li class="toclevel-1"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3524 <li class="toclevel-2"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
3528 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3529 <a name="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>
3530 <a name="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>
3531 <a name="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>
3532 <a name="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>
3533 <a name="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>
3534 <a name="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>
3539 Resolving duplicate section names
3544 <a name="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>
3545 <a name="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>
3557 Template with sections, __NOTOC__
3564 <a name="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>
3565 <a name="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>
3566 <a name="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>
3567 <a name="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>
3572 __NOEDITSECTION__ keyword
3578 <a name="Section_1"></a><h2> <span class="mw-headline">Section 1</span></h2>
3579 <a name="Section_2"></a><h2> <span class="mw-headline">Section 2</span></h2>
3584 Link inside a section heading
3586 ==Section with a [[Main Page|link]] in it==
3588 <a name="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>
3594 BUG 1219 URL next to image (good)
3596 http://example.com [[Image:foobar.jpg]]
3598 <p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a> <a href="/wiki/Image: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" border="0" /></a>
3603 BUG 1219 URL next to image (broken)
3605 http://example.com[[Image:foobar.jpg]]
3607 <p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a><a href="/wiki/Image: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" border="0" /></a>
3612 Bug 1186 news: in the middle of text
3614 http://en.wikinews.org/wiki/Wikinews:Workplace
3616 <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>
3622 Namespaced link must have a title
3631 Namespaced link must have a title (bad fragment version)
3633 [[Project:#fragment]]
3635 <p>[[Project:#fragment]]
3641 div with no attributes
3643 <div>HTML rocks</div>
3645 <div>HTML rocks</div>
3650 div with double-quoted attribute
3652 <div id="rock">HTML rocks</div>
3654 <div id="rock">HTML rocks</div>
3659 div with single-quoted attribute
3661 <div id='rock'>HTML rocks</div>
3663 <div id="rock">HTML rocks</div>
3668 div with unquoted attribute
3670 <div id=rock>HTML rocks</div>
3672 <div id="rock">HTML rocks</div>
3677 div with illegal double attributes
3679 <div align="center" align="right">HTML rocks</div>
3681 <div align="right">HTML rocks</div>
3686 HTML multiple attributes correction
3688 <p class="error" class="awesome">Awesome!</p>
3690 <p class="awesome">Awesome!</p>
3695 Table multiple attributes correction
3698 !+ class="error" class="awesome"| status
3703 <th class="awesome"> status
3711 <DIV ALIGN="center">HTML ROCKS</DIV>
3713 <div align="center">HTML ROCKS</div>
3719 text with amp in the middle of nowhere
3723 <p>Remember AT&T?
3728 text with character entity: eacute
3730 I always thought é was a cute letter.
3732 <p>I always thought é was a cute letter.
3737 text with undefined character entity: xacute
3739 I always thought &xacute; was a cute letter.
3741 <p>I always thought &xacute; was a cute letter.
3753 [[Media:Foobar.jpg]]
3755 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
3760 Media link with text
3762 [[Media:Foobar.jpg|A neat file to look at]]
3764 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
3768 # FIXME: this is still bad HTML tag nesting
3770 Media link with nasty text
3771 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
3773 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
3775 <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>
3780 Media link to nonexistent file (bug 1702)
3782 [[Media:No such.jpg]]
3784 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
3789 Image link to nonexistent file (bug 1850 - good)
3791 [[Image:No such.jpg]]
3793 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="Image:No such.jpg">Image:No such.jpg</a>
3798 :Image link to nonexistent file (bug 1850 - bad)
3800 [[:Image:No such.jpg]]
3802 <p><a href="/index.php?title=Image:No_such.jpg&action=edit" class="new" title="Image:No such.jpg">Image:No such.jpg</a>
3809 Character reference normalization in link text (bug 1938)
3811 [[Main Page|this&that]]
3813 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
3818 Empty attribute crash test (bug 2067)
3820 <font color="">foo</font>
3822 <p><font color="">foo</font>
3827 Empty attribute crash test single-quotes (bug 2067)
3829 <font color=''>foo</font>
3831 <p><font color="">foo</font>
3836 Attribute test: equals, then nothing
3838 <font color=>foo</font>
3845 Attribute test: unquoted value
3847 <font color=x>foo</font>
3849 <p><font color="x">foo</font>
3854 Attribute test: unquoted but illegal value (hash)
3856 <font color=#x>foo</font>
3858 <p><font color="#x">foo</font>
3863 Attribute test: no value
3865 <font color>foo</font>
3867 <p><font color="color">foo</font>
3872 Bug 2095: link with three closing brackets
3876 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
3881 Bug 2095: link with pipe and three closing brackets
3885 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
3890 Bug 2095: link with pipe and three closing brackets, version 2
3892 [[Main Page|[http://example.com/]]]
3894 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
3904 Template:Dangerous attribute
3906 " onmouseover="alert(document.cookie)
3910 Template:Dangerous style attribute
3912 border-size: expression(alert(document.cookie))
3918 <div style="float: right; {{{1}}}">Magic div</div>
3922 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
3924 <div title="{{test}}"></div>
3926 <div title="This is a test template"></div>
3931 Bug 2304: HTML attribute safety (dangerous template; 2309)
3933 <div title="{{dangerous attribute}}"></div>
3935 <div title=""></div>
3940 Bug 2304: HTML attribute safety (dangerous style template; 2309)
3942 <div style="{{dangerous style attribute}}"></div>
3949 Bug 2304: HTML attribute safety (safe parameter; 2309)
3951 {{div style|width: 200px}}
3953 <div style="float: right; width: 200px">Magic div</div>
3958 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
3960 {{div style|width: expression(alert(document.cookie))}}
3962 <div>Magic div</div>
3967 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
3969 {{div style|"><script>alert(document.cookie)</script>}}
3971 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
3976 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
3978 {{div style|" ><script>alert(document.cookie)</script>}}
3980 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
3985 Bug 2304: HTML attribute safety (link)
3987 <div title="[[Main Page]]"></div>
3989 <div title="[[Main Page]]"></div>
3994 Bug 2304: HTML attribute safety (italics)
3996 <div title="''foobar''"></div>
3998 <div title="''foobar''"></div>
4003 Bug 2304: HTML attribute safety (bold)
4005 <div title="'''foobar'''"></div>
4007 <div title="'''foobar'''"></div>
4013 Bug 2304: HTML attribute safety (ISBN)
4015 <div title="ISBN 1234567890"></div>
4017 <div title="ISBN 1234567890"></div>
4022 Bug 2304: HTML attribute safety (RFC)
4024 <div title="RFC 1234"></div>
4026 <div title="RFC 1234"></div>
4031 Bug 2304: HTML attribute safety (PMID)
4033 <div title="PMID 1234567890"></div>
4035 <div title="PMID 1234567890"></div>
4040 Bug 2304: HTML attribute safety (web link)
4042 <div title="http://example.com/"></div>
4044 <div title="http://example.com/"></div>
4049 Bug 2304: HTML attribute safety (named web link)
4051 <div title="[http://example.com/ link]"></div>
4053 <div title="[http://example.com/ link]"></div>
4058 Bug 3244: HTML attribute safety (extension; safe)
4060 <div style="<nowiki>background:blue</nowiki>"></div>
4062 <div style="background:blue"></div>
4067 Bug 3244: HTML attribute safety (extension; unsafe)
4069 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4076 Math section safety when disabled
4078 <math><script>alert(document.cookies);</script></math>
4080 <p><math><script>alert(document.cookies);</script></math>
4084 # More MSIE fun discovered by Tom Gilder
4087 MSIE CSS safety test: spurious slash
4089 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4096 MSIE CSS safety test: hex code
4098 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4105 MSIE CSS safety test: comment in url
4107 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4109 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4114 MSIE CSS safety test: comment in expression
4116 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4118 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4124 Table attribute legitimate extension
4127 !+ style="<nowiki>color:blue</nowiki>"| status
4132 <th style="color:blue"> status
4138 Table attribute safety
4141 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4159 Expansion of multi-line templates in attribute values (bug 6255)
4161 <div style="background: {{identity|#00FF00}}">-</div>
4163 <div style="background: #00FF00">-</div>
4169 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
4171 <div style="background:
4174 <div style="background: #00FF00">-</div>
4179 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
4181 <div style="background: #00FF00">-</div>
4183 <div style="background: #00FF00">-</div>
4188 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
4191 Parser hook: empty input
4204 Parser hook: empty input using terminated empty elements
4217 Parser hook: empty input using terminated empty elements (space before)
4230 Parser hook: basic input
4244 Parser hook: case insensitive
4258 Parser hook: case insensitive, redux
4271 Parser hook: nested tags
4275 <tag><tag></tag></tag>
4286 Parser hook: basic arguments
4288 <tag width=200 height = "100" depth = '50' square></tag>
4307 Parser hook: argument containing a forward slash (bug 5344)
4309 <tag filename='/tmp/bla'></tag>
4315 string(8) "/tmp/bla"
4322 Parser hook: empty input using terminated empty elements (bug 2374)
4336 # </tag> should be output literally since there is no matching tag that begins it
4338 Parser hook: basic arguments using terminated empty elements (bug 2374)
4340 <tag width=200 height = "100" depth = '50' square/>
4363 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
4367 Parser hook: static parser hook not inside a comment
4369 <statictag>hello, world</statictag>
4370 <statictag action=flush/>
4378 Parser hook: static parser hook inside a comment
4380 <!-- <statictag>hello, world</statictag> -->
4381 <statictag action=flush/>
4387 # Nested template calls; this case was broken by Parser.php rev 1.506,
4391 Template:One-parameter
4393 (My parameter is: {{{1}}})
4397 Template:Map-one-parameter
4403 Nested template calls
4405 {{Map-one-parameter|One-parameter|param}}
4407 <p>(My parameter is: param)
4416 Sanitizer: Closing of open tags
4418 <s></s><table></table>
4420 <s></s><table></table>
4425 Sanitizer: Closing of open but not closed tags
4434 Sanitizer: Closing of closed but not open tags
4443 Sanitizer: Closing of closed but not open table tags
4445 Table not started</td></tr></table>
4447 <p>Table not started</td></tr></table>
4452 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
4454 <span id="æ: v">byte</span>[[#æ: v|backlink]]
4456 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v" title="">backlink</a>
4461 Sanitizer: Validating the contents of the id attribute (bug 4515)
4467 Something, but defenetly not <br id="9" />...
4471 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
4475 <br id="foo" /><br id="foo" />
4477 Something need to be done. foo-2 ?
4481 Language converter: output gets cut off unexpectedly (bug 5757)
4485 this bit is safe: }-
4487 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
4489 then we get cut off here: }-
4491 all additional text is vanished
4493 <p>this bit is safe: }-
4494 </p><p>but if we add a conversion instance: xxx
4495 </p><p>then we get cut off here: }-
4496 </p><p>all additional text is vanished
4501 Self closed html pairs (bug 5487)
4504 <center><font id="bug" />Centered text</center>
4505 <div><font id="bug2" />In div text</div>
4507 <center><font id="bug" />Centered text</center>
4508 <div><font id="bug2" />In div text</div>
4517 HTML bullet list, closed tags (bug 5497)
4532 HTML bullet list, unclosed tags (bug 5497)
4547 HTML ordered list, closed tags (bug 5497)
4562 HTML ordered list, unclosed tags (bug 5497)
4577 HTML nested bullet list, closed tags (bug 5497)
4602 HTML nested bullet list, open tags (bug 5497)
4625 HTML nested ordered list, closed tags (bug 5497)
4650 HTML nested ordered list, open tags (bug 5497)
4673 HTML ordered list item with parameters oddity
4675 <ol><li id="fragment">One</li></ol>
4677 <ol><li id="fragment">One</li></ol>
4682 bug 5918: autonumbering
4684 [http://first/] [http://second] [ftp://ftp]
4688 [mailto:enclosed@mail.tld With target]
4690 [mailto:enclosed@mail.tld]
4692 mailto:inline@mail.tld
4694 <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>
4695 </p><p><a href="ftp://inlineftp" class="external free" title="ftp://inlineftp" rel="nofollow">ftp://inlineftp</a>
4696 </p><p><a href="mailto:enclosed@mail.tld" class="external text" title="mailto:enclosed@mail.tld" rel="nofollow">With target</a>
4697 </p><p><a href="mailto:enclosed@mail.tld" class="external autonumber" title="mailto:enclosed@mail.tld" rel="nofollow">[4]</a>
4698 </p><p><a href="mailto:inline@mail.tld" class="external free" title="mailto:inline@mail.tld" rel="nofollow">mailto:inline@mail.tld</a>
4704 # Security and HTML correctness
4705 # From Nick Jenkins' fuzz testing
4709 Fuzz testing: Parser13
4724 Fuzz testing: Parser14
4729 <a name="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>
4730 http://<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4732 <li class="toclevel-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
4734 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
4739 Fuzz testing: Parser14-table
4744 <a name="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>
4745 <table style="__TOC__">
4751 # Known to produce bogus xml (extra </td>)
4753 Fuzz testing: Parser16
4762 <th>https://</th><th></th><th></th><th>
4770 Fuzz testing: Parser21
4773 ! irc://{{ftp://a" onmouseover="alert('hello world');"
4778 <th> <a href="irc://{{ftp://a" class="external free" title="irc://{{ftp://a" rel="nofollow">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
4787 Fuzz testing: Parser22
4789 http://===r:::https://b
4793 <p><a href="http://===r:::https://b" class="external free" title="http://===r:::https://b" rel="nofollow">http://===r:::https://b</a>
4801 # Known to produce bad XML for now
4803 Fuzz testing: Parser24
4810 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
4811 <br style="onmouseover='alert(document.cookie);' " />
4813 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
4818 <u class="|">}}}} >
4819 <br style="onmouseover='alert(document.cookie);'" />
4821 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
4830 # Known to produce bad XML for now
4832 Fuzz testing: Parser25 (bug 6055)
4840 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
4844 <li class="||">
4845 }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
4850 Fuzz testing: URL adjacent extension (with space, clean)
4853 http://example.com <nowiki>junk</nowiki>
4855 <p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a> junk
4860 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
4863 http://example.com<nowiki>junk</nowiki>
4865 <p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a>junk
4870 Fuzz testing: URL adjacent extension (no space, dirty; pre)
4873 http://example.com<pre>junk</pre>
4875 <a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a><pre>junk</pre>
4880 Fuzz testing: image with bogus manual thumbnail
4882 [[Image:foobar.jpg|thumbnail= ]]
4884 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
4889 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
4891 <pre dir=" "></pre>
4893 <pre dir=" "></pre>
4898 Parsing optional HTML elements (Bug 6171)
4903 <td> Some tabular data</td>
4904 <td> More tabular data ...
4905 <td> And yet som tabular data</td>
4911 <td> Some tabular data</td>
4912 <td> More tabular data ...
4913 </td><td> And yet som tabular data</td>
4920 Correct handling of <td>, <tr> (Bug 6171)
4925 <td> Some tabular data</td>
4926 <td> More tabular data ...</td>
4927 <td> And yet som tabular data</td>
4933 <td> Some tabular data</td>
4934 <td> More tabular data ...</td>
4935 <td> And yet som tabular data</td>
4943 Parsing crashing regression (fr:JavaScript)
4947 <p></body></x>
4952 Inline wiki vs wiki block nesting
4958 <p><b>Bold paragraph</b>
4959 </p><p>New wiki paragraph
4964 Inline HTML vs wiki block nesting
4970 <p><b>Bold paragraph</b>
4971 </p><p>New wiki paragraph
4977 Mixing markup for italics and bold
4980 '''bold''''''bold''bolditalics'''''
4982 <p><b>bold</b><b>bold<i>bolditalics</i></b>
4990 Article for special page transclusion test
4994 Special page transclusion
4997 {{Special:Prefixindex/Xyzzyx}}
5001 <table style="background: inherit;" border="0" width="100%"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5006 Special page transclusion twice (bug 5021)
5009 {{Special:Prefixindex/Xyzzyx}}
5010 {{Special:Prefixindex/Xyzzyx}}
5014 <table style="background: inherit;" border="0" width="100%"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5017 <table style="background: inherit;" border="0" width="100%"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5022 Transclusion of default MediaWiki message
5024 {{MediaWiki:Mainpage}}
5031 Transclusion of nonexistent MediaWiki message
5033 {{MediaWiki:Mainpagexxx}}
5035 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit" class="new" title="MediaWiki:Mainpagexxx">MediaWiki:Mainpagexxx</a>
5040 Transclusion of MediaWiki message with underscore
5042 {{MediaWiki:history_short}}
5049 Transclusion of MediaWiki message with space
5051 {{MediaWiki:history short}}
5058 Invalid header with following text
5068 Section extraction test (section 0)
5088 Section extraction test (section 1)
5110 Section extraction test (section 2)
5131 Section extraction test (section 3)
5151 Section extraction test (section 4)
5175 Section extraction test (section 5)
5195 Section extraction test (section 6)
5216 Section extraction test (section 7)
5236 Section extraction test (section 8)
5256 Section extraction test (section 9)
5277 Section extraction test (section 10)
5297 Section extraction test (nonexistent section 11)
5316 Section extraction test with bogus heading (section 1)
5321 ==bogus== not a legal section
5325 ==bogus== not a legal section
5329 Section extraction test with bogus heading (section 2)
5334 ==bogus== not a legal section
5341 Section extraction test with comment after heading (section 1)
5346 ==unmarked== <!-- an unmarked section -->
5350 ==unmarked== <!-- an unmarked section -->
5354 Section extraction test with comment after heading (section 2)
5359 ==unmarked== <!-- an unmarked section -->
5366 Section extraction test with bogus <nowiki> heading (section 1)
5371 ==bogus== <nowiki>not a legal section</nowiki>
5375 ==bogus== <nowiki>not a legal section</nowiki>
5379 Section extraction test with bogus <nowiki> heading (section 2)
5384 ==bogus== <nowiki>not a legal section</nowiki>
5391 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
5392 # instead of respecting commented sections
5394 Section extraction prefixed by comment (section 1)
5405 Section extraction prefixed by comment (section 2)
5416 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
5417 # instead of respecting HTML-style headings
5419 Section extraction, mixed wiki and html (section 1)
5435 Section extraction, mixed wiki and html (section 2)
5451 # Formerly testing for bug 3342
5453 Section extraction, heading surrounded by <noinclude>
5457 <noinclude>==unmarked==</noinclude>
5465 Section replacement test (section 0)
5496 Section replacement test (section 1)
5525 Section replacement test (section 2)
5555 Section replacement test (section 3)
5586 Section replacement test (section 4)
5613 Section replacement test (section 5)
5644 Section replacement test (section 6)
5674 Section replacement test (section 7)
5705 Section replacement test (section 8)
5736 Section replacement test (section 9)
5765 Section replacement test (section 10)
5796 Section extraction, heading followed by pre with 20 spaces (bug 6398)
5808 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
5821 Section extraction, <pre> around bogus header (bug 10309)
5838 Section replacement, <pre> around bogus header (bug 10309)
5840 noxml replace=2,"xxx"
5861 Handling of 
 in URLs
5865 <ul><li><ul><li><a href="irc://%0Aa" class="external free" title="irc://%0Aa" rel="nofollow">irc://%0Aa</a>
5872 5 quotes, code coverage +1 line
5879 Special:Search page linking.
5883 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
5898 * {{SUBJECTPAGENAME}}
5899 * {{SUBJECTPAGENAMEE}}
5906 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
5908 <ul><li> Parser test
5909 </li><li> Parser test
5910 </li><li> Parser test
5911 </li><li> Parser_test
5912 </li><li> Parser test
5913 </li><li> Parser_test
5914 </li><li> Talk:Parser test
5915 </li><li> Talk:Parser_test
5916 </li><li> Parser test
5917 </li><li> Parser_test
5924 </li><li> <a href="/index.php?title=Template:Dynamic&action=edit" class="new" title="Template:Dynamic">Template:Dynamic</a>
5928 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
5938 image4 |300px| centre
5939 image5.svg| http://///////
5944 <table class="gallery" cellspacing="0" cellpadding="0">
5946 <td><div class="gallerybox" style="width: 155px;">
5947 <div style="height: 152px;">Image1.png</div>
5948 <div class="gallerytext">
5951 <td><div class="gallerybox" style="width: 155px;">
5952 <div style="height: 152px;">Image2.gif</div>
5953 <div class="gallerytext">
5958 <td><div class="gallerybox" style="width: 155px;">
5959 <div style="height: 152px;">Image3</div>
5960 <div class="gallerytext">
5963 <td><div class="gallerybox" style="width: 155px;">
5964 <div style="height: 152px;">Image4</div>
5965 <div class="gallerytext">
5972 <td><div class="gallerybox" style="width: 155px;">
5973 <div style="height: 152px;">Image5.svg</div>
5974 <div class="gallerytext">
5975 <pre><a href="http://///////" class="external free" title="http://///////" rel="nofollow">http://///////</a>
5979 <td><div class="gallerybox" style="width: 155px;">
5980 <div style="height: 152px;">* image6</div>
5981 <div class="gallerytext">
5990 HTML Hex character encoding (spells the word "JavaScript")
5992 JavaScript
5994 <p>JavaScript
5999 __FORCETOC__ override
6011 ISBN 978-0-1234-56 789
6013 <p><a href="/index.php?title=Special:Booksources&isbn=9780123456" class="internal">ISBN 978-0-1234-56</a> 789
6018 ISBN followed by 5 spaces
6029 ISBN ISBN 1234567890
6031 <p>ISBN <a href="/index.php?title=Special:Booksources&isbn=1234567890" class="internal">ISBN 1234567890</a>
6040 <p>RFC <a href="http://tools.ietf.org/html/rfc1234" class="external" title="http://tools.ietf.org/html/rfc1234">RFC 1234</a>
6045 Double RFC with a wiki link
6049 <p>RFC <a href="/index.php?title=RFC_1234&action=edit" class="new" title="RFC 1234">RFC 1234</a>
6058 <p><a href="http://tools.ietf.org/html/rfc983" class="external" title="http://tools.ietf.org/html/rfc983">RFC 983</a> 987
6063 Centre-aligned image
6065 [[Image:foobar.jpg|centre]]
6067 <div class="center"><div class="floatnone"><span><a href="/wiki/Image:Foobar.jpg" class="image" title="Foobar.jpg"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" border="0" /></a></span></div></div>
6074 [[Image:foobar.jpg|none]]
6076 <div class="floatnone"><span><a href="/wiki/Image:Foobar.jpg" class="image" title="Foobar.jpg"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" border="0" /></a></span></div>
6081 Width + Height sized image (using px) (height is ignored)
6083 [[Image:foobar.jpg|640x480px]]
6085 <p><a href="/wiki/Image: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" border="0" /></a>
6090 Another italics / bold test
6098 # Note the results may be incorrect, as parserTest output included this:
6099 # XML error: Mismatched tag at byte 6120:
6100 # ...<dd> </dt></dl> </dd...
6106 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
6117 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
6119 Images with the "|" character in the comment
6121 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
6123 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/Image: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" border="0" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image: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>
6128 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
6130 <html><script>alert(1);</script></html>
6132 <p><html><script>alert(1);</script></html>
6137 HTML with raw HTML ($wgRawHtml==true)
6141 <html><script>alert(1);</script></html>
6143 <p><script>alert(1);</script>
6148 Parents of subpages, one level up
6150 subpage title=[[Subpage test/L1/L2/L3]]
6154 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit" class="new" title="Subpage test/L1/L2">L2</a>
6160 Parents of subpages, one level up, not named
6162 subpage title=[[Subpage test/L1/L2/L3]]
6166 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit" class="new" title="Subpage test/L1/L2">Subpage test/L1/L2</a>
6173 Parents of subpages, two levels up
6176 subpage title=[[Subpage test/L1/L2/L3]]
6180 <p><a href="/index.php?title=Subpage_test/L1&action=edit" class="new" title="Subpage test/L1">L1</a>
6185 # Question: should result be "/index.php?title=Subpage_test/L1&action=edit" instead?
6187 Parents of subpages, two levels up, without trailing slash or name.
6189 subpage title=[[Subpage test/L1/L2/L3]]
6193 <p><a href="/index.php?title=Subpage_test/L1/L2/..&action=edit" class="new" title="Subpage test/L1">../..</a>
6197 # Question: Why should the link text in the above test be "../..", yet in this test the "../.." part is silently dropped?
6198 # Current result: <p><a href="/index.php?title=Subpage_test/L1////&action=edit" class="new" title="Subpage test/L1////">///
6200 Parents of subpages, two levels up, with lots of extra trailing slashes.
6202 subpage title=[[Subpage test/L1/L2/L3]]
6206 <p><a href="/index.php?title=Subpage_test/L1&action=edit" class="new" title="Subpage test/L1">Subpage test/L1</a>
6211 Definition list code coverage
6217 <dl><dt> title </dt><dd> def
6218 </dd><dt> title </dt><dd> def
6219 </dd><dt>title</dt><dd> def
6225 Don't fall for the self-closing div
6227 <div>hello world</div/>
6229 <div>hello world</div>
6238 <p>[[:Template:Msg]]
6247 <p><a href="/index.php?title=Template:QUERTY&action=edit" class="new" title="Template:QUERTY">Template:QUERTY</a>
6251 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
6253 Always escape literal '>' in output, not just after '<'
6267 <p>This is a test template
6268 This is a test template
6280 Inclusion of !userCanEdit() content
6284 <a name="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>
6290 Out-of-order TOC heading levels
6299 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6301 <li class="toclevel-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
6303 <li class="toclevel-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
6304 <li class="toclevel-2"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
6307 <li class="toclevel-1"><a href="#1_7"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
6309 <li class="toclevel-2"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
6310 <li class="toclevel-2"><a href="#2_4"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
6314 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
6315 <a name="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>
6316 <a name="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>
6317 <a name="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>
6318 <a name="1_7"></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>
6319 <a name="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>
6320 <a name="2_4"></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>
6326 ISBN with a dummy number
6336 ISBN with space-delimited number
6340 <p><a href="/index.php?title=Special:Booksources&isbn=9290170328" class="internal">ISBN 92 9017 032 8</a>
6346 ISBN with multiple spaces, no number
6365 </p><p><a href="/index.php?title=Special:Booksources&isbn=1234567890" class="internal">ISBN 1234567890</a>
6366 </p><p>ISBN 12345678901
6372 ISBN with trailing year (bug 8110)
6374 ISBN 1-234-56789-0 - 2006
6376 ISBN 1 234 56789 0 - 2006
6378 <p><a href="/index.php?title=Special:Booksources&isbn=1234567890" class="internal">ISBN 1-234-56789-0</a> - 2006
6379 </p><p><a href="/index.php?title=Special:Booksources&isbn=1234567890" class="internal">ISBN 1 234 56789 0</a> - 2006
6385 Pages in namespace (Magic word disabled currently)
6387 {{PAGESINNAMESPACE:}}
6396 {{anchorencode:foo bar©#%n}}
6398 <p>foo_bar.C2.A9.23.25n
6404 Bug 8293: Use of center tag ruins paragraph formatting
6426 ### Language variants related tests
6429 Self-link in language variants
6431 title=[[Dunav]] language=sr
6433 Both [[Dunav]] and [[Дунав]] are names for this river.
6435 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
6441 Link to pages in language variants
6445 Main Page can be written as [[Маин Паге]]
6447 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
6453 Multiple links to pages in language variants
6457 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
6459 <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>.
6465 Simple template in language variants
6471 <p>This is a test template
6477 Template with explicit namespace in language variants
6483 <p>This is a test template
6489 Basic test for template parameter in language variants
6493 {{парамтест|param=foo}}
6495 <p>This is a test template with parameter foo
6501 Simple category in language variants
6505 [[:Category:МедиаWики Усер'с Гуиде]]
6507 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6512 Stripping -{}- tags (language variants)
6516 Latin proverb: -{Ne nuntium necare}-
6518 <p>Latin proverb: Ne nuntium necare
6524 Prevent conversion with -{}- tags (language variants)
6526 language=sr variant=sr-ec
6528 Latinski: -{Ne nuntium necare}-
6530 <p>Латински: Ne nuntium necare
6536 Prevent conversion of text with -{}- tags (language variants)
6538 language=sr variant=sr-ec
6540 Latinski: -{Ne nuntium necare}-
6542 <p>Латински: Ne nuntium necare
6548 Prevent conversion of links with -{}- tags (language variants)
6550 language=sr variant=sr-ec
6554 <p><a href="/index.php?title=Main_Page&variant=sr-ec" title="Main Page">Main Page</a>
6560 -{}- tags within headlines (within html for parserConvert())
6562 language=sr variant=sr-ec
6566 <a name="-.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>
6572 Explicit definition of language variant alternatives
6574 language=zh variant=zh-tw
6576 -{zh:China;zh-tw:Taiwan}-, not China
6578 <p>Taiwan, not China
6584 Adding explicit session-wise language variant mapping (A flag)
6586 language=zh variant=zh-tw
6588 -{A|zh:China;zh-tw:Taiwan}- is China
6596 Adding explicit conversion rule for title (T flag)
6598 language=zh variant=zh-tw
6600 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
6602 <p>Should be stripped!
6608 Raw output of variant escape tags (R flag)
6610 language=zh variant=zh-tw
6612 Raw: -{R|zh:China;zh-tw:Taiwan}-
6614 <p>Raw: zh:China;zh-tw:Taiwan
6620 Do not convert roman numbers to language variants
6622 language=sr variant=sr-ec
6626 <p>Фридрих IV је цар.
6637 Bug 529: Uncovered bullet
6648 Bug 529: Uncovered table already at line-start
6669 Bug 529: Uncovered bullet in parser function result
6671 * Foo {{lc:{{bullet}} }}
6690 Try for 100% code coverage