1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
25 # For testing purposes, temporary articles can created:
26 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
27 # where '/' denotes a newline.
29 # This is the standard article assumed to exist.
66 This is a simple paragraph.
68 <p>This is a simple paragraph.
88 * plain''italic''plain
89 * plain''italic''plain''italic''plain
90 * plain'''bold'''plain
91 * plain'''bold'''plain'''bold'''plain
92 * plain''italic''plain'''bold'''plain
93 * plain'''bold'''plain''italic''plain
94 * plain''italic'''bold-italic'''italic''plain
95 * plain'''bold''bold-italic''bold'''plain
96 * plain'''''bold-italic'''italic''plain
97 * plain'''''bold-italic''bold'''plain
98 * plain''italic'''bold-italic'''''plain
99 * plain'''bold''bold-italic'''''plain
100 * plain l'''italic''plain
101 * plain l''''bold''' plain
104 </li><li> plain<i>italic</i>plain
105 </li><li> plain<i>italic</i>plain<i>italic</i>plain
106 </li><li> plain<b>bold</b>plain
107 </li><li> plain<b>bold</b>plain<b>bold</b>plain
108 </li><li> plain<i>italic</i>plain<b>bold</b>plain
109 </li><li> plain<b>bold</b>plain<i>italic</i>plain
110 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
111 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
112 </li><li> plain<i><b>bold-italic</b>italic</i>plain
113 </li><li> plain<b><i>bold-italic</i>bold</b>plain
114 </li><li> plain<i>italic<b>bold-italic</b></i>plain
115 </li><li> plain<b>bold<i>bold-italic</i></b>plain
116 </li><li> plain l'<i>italic</i>plain
117 </li><li> plain l'<b>bold</b> plain
123 ### <nowiki> test cases
127 <nowiki> unordered list
129 <nowiki>* This is not an unordered list item.</nowiki>
131 <p>* This is not an unordered list item.
138 <nowiki>Lorem ipsum dolor
159 :There is not nowiki.
160 :There is <nowiki>nowiki</nowiki>.
162 #There is not nowiki.
163 #There is <nowiki>nowiki</nowiki>.
165 *There is not nowiki.
166 *There is <nowiki>nowiki</nowiki>.
168 <dl><dd>There is not nowiki.
169 </dd><dd>There is nowiki.
171 <ol><li>There is not nowiki.
172 </li><li>There is nowiki.
174 <ul><li>There is not nowiki.
175 </li><li>There is nowiki.
187 <!-- comment 1 --> asdf
223 asdf<!-- comment 1 -->jkl
233 <!-- foo --> b <!-- bar -->
247 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
253 Comment semantics and delimiters
255 <!-- --><!----><!-----><!------>
261 Comment semantics and delimiters, redux
263 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
264 -- foo -- funky huh? ... -->
270 Comment semantics and delimiters: directors cut
272 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
273 everything starting with < followed by !-- until the first -- and > we see,
274 that wouldn't be valid XML however, since in XML -- has to terminate a comment
282 Comment semantics: nesting
284 <!--<!-- no, we're not going to do anything fancy here -->-->
291 Comment semantics: unclosed comment at end
293 <!--This comment will run out to the end of the document
299 Comment in template title
308 Comment on its own line post-expand
320 Empty SGML directive (bug 15453)
329 ### Preformatted text
338 And a [[Main Page|link]]
344 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
349 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
366 Regression with preformatted in <center>
380 <pre> with attributes (bug 3202)
382 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
384 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
389 <pre> with width attribute (bug 3202)
391 <pre width="8">Narrow screen goodies</pre>
393 <pre width="8">Narrow screen goodies</pre>
398 <pre> with forbidden attribute (bug 3202)
400 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
402 <pre width="8">Narrow screen goodies</pre>
407 <pre> with forbidden attribute values (bug 3202)
409 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
411 <pre width="8">Narrow screen goodies</pre>
423 <dl><dt> name </dt><dd> Definition
429 Definition list for indentation only
433 <dl><dd> Indented text
439 Definition list with no space
443 <dl><dt>name</dt><dd>Definition
449 Definition list with URL link
451 ; http://example.com/ : definition
453 <dl><dt> <a href="http://example.com/" class="external free" title="http://example.com/" rel="nofollow">http://example.com/</a> </dt><dd> definition
459 Definition list with bracketed URL link
461 ;[http://www.example.com/ Example]:Something about it
463 <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
469 Definition list with wikilink containing colon
471 ; [[Help:FAQ]]: The least-read page on Wikipedia
473 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (not yet written)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
478 # At Brion's and JeLuF's insistence... :)
480 Definition list with news link containing colon
482 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
484 <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!
490 Malformed definition list with colon
492 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
494 <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
500 Definition lists: colon in external link text
502 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
504 <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
510 Definition lists: colon in HTML attribute
512 ;<b style="display: inline">bold</b>
514 <dl><dt><b style="display: inline">bold</b>
521 Definition lists: self-closed tag
523 ;one<br/>two : two-line fun
525 <dl><dt>one<br />two </dt><dd> two-line fun
535 External links: non-bracketed
537 Non-bracketed: http://example.com
539 <p>Non-bracketed: <a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a>
544 External links: numbered
546 Numbered: [http://example.com]
547 Numbered: [http://example.net]
548 Numbered: [http://example.com]
550 <p>Numbered: <a href="http://example.com" class="external autonumber" title="http://example.com" rel="nofollow">[1]</a>
551 Numbered: <a href="http://example.net" class="external autonumber" title="http://example.net" rel="nofollow">[2]</a>
552 Numbered: <a href="http://example.com" class="external autonumber" title="http://example.com" rel="nofollow">[3]</a>
557 External links: specified text
559 Specified text: [http://example.com link]
561 <p>Specified text: <a href="http://example.com" class="external text" title="http://example.com" rel="nofollow">link</a>
566 External links: trail
568 Linktrails should not work for external links: [http://example.com link]s
570 <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
575 External links: dollar sign in URL
577 http://example.com/1$2345
579 <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>
584 External links: dollar sign in URL (named)
586 [http://example.com/1$2345]
588 <p><a href="http://example.com/1$2345" class="external autonumber" title="http://example.com/1$2345" rel="nofollow">[1]</a>
593 External links: open square bracket forbidden in URL (bug 4377)
595 http://example.com/1[2345
597 <p><a href="http://example.com/1" class="external free" title="http://example.com/1" rel="nofollow">http://example.com/1</a>[2345
602 External links: open square bracket forbidden in URL (named) (bug 4377)
604 [http://example.com/1[2345]
606 <p><a href="http://example.com/1" class="external text" title="http://example.com/1" rel="nofollow">[2345</a>
611 External links: nowiki in URL link text (bug 6230)
613 [http://example.com/ <nowiki>''example site''</nowiki>]
615 <p><a href="http://example.com/" class="external text" title="http://example.com/" rel="nofollow">''example site''</a>
620 External links: newline forbidden in text (bug 6230 regression check)
622 [http://example.com/ first
625 <p>[<a href="http://example.com/" class="external free" title="http://example.com/" rel="nofollow">http://example.com/</a> first
633 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
635 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
640 External image from https
642 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
644 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
649 Link to non-http image, no img tag
651 Link to non-http image, no img tag: ftp://example.com/test.jpg
653 <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>
658 External links: terminating separator
660 Terminating separator: http://example.com/thing,
662 <p>Terminating separator: <a href="http://example.com/thing" class="external free" title="http://example.com/thing" rel="nofollow">http://example.com/thing</a>,
667 External links: intervening separator
669 Intervening separator: http://example.com/1,2,3
671 <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>
676 External links: old bug with URL in query
678 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
680 <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>
685 External links: old URL-in-URL bug, mixed protocols
687 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
689 <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>
694 External links: URL in text
696 URL in text: [http://example.com http://example.com]
698 <p>URL in text: <a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a>
703 External links: Clickable images
705 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
707 <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>
712 External links: raw ampersand
714 Old & use: http://x&y
716 <p>Old & use: <a href="http://x&y" class="external free" title="http://x&y" rel="nofollow">http://x&y</a>
721 External links: encoded ampersand
723 Old & use: http://x&y
725 <p>Old & use: <a href="http://x&y" class="external free" title="http://x&y" rel="nofollow">http://x&y</a>
730 External links: encoded equals (bug 6102)
732 http://example.com/?foo=bar
734 <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>
739 External links: [raw ampersand]
741 Old & use: [http://x&y]
743 <p>Old & use: <a href="http://x&y" class="external autonumber" title="http://x&y" rel="nofollow">[1]</a>
748 External links: [encoded ampersand]
750 Old & use: [http://x&y]
752 <p>Old & use: <a href="http://x&y" class="external autonumber" title="http://x&y" rel="nofollow">[1]</a>
757 External links: [encoded equals] (bug 6102)
759 [http://example.com/?foo=bar]
761 <p><a href="http://example.com/?foo=bar" class="external autonumber" title="http://example.com/?foo=bar" rel="nofollow">[1]</a>
766 External links: [IDN ignored character reference in hostname; strip it right off]
768 [http://e‌xample.com/]
770 <p><a href="http://example.com/" class="external autonumber" title="http://example.com/" rel="nofollow">[1]</a>
775 External links: IDN ignored character reference in hostname; strip it right off
777 http://e‌xample.com/
779 <p><a href="http://example.com/" class="external free" title="http://example.com/" rel="nofollow">http://example.com/</a>
784 External links: www.jpeg.org (bug 554)
788 <p><a href="http://www.jpeg.org" class="external free" title="http://www.jpeg.org" rel="nofollow">http://www.jpeg.org</a>
793 External links: URL within URL (original bug 2)
795 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
797 <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>
802 BUG 361: URL inside bracketed URL
804 [http://www.example.com/foo http://www.example.com/bar]
806 <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>
811 BUG 361: URL within URL, not bracketed
813 http://www.example.com/foo?=http://www.example.com/bar
815 <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>
820 BUG 289: ">"-token in URL-tail
822 http://www.example.com/<hello>
824 <p><a href="http://www.example.com/" class="external free" title="http://www.example.com/" rel="nofollow">http://www.example.com/</a><hello>
829 BUG 289: literal ">"-token in URL-tail
831 http://www.example.com/<b>html</b>
833 <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>
838 BUG 289: ">"-token in bracketed URL
840 [http://www.example.com/<hello> stuff]
842 <p><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow"><hello> stuff</a>
847 BUG 289: literal ">"-token in bracketed URL
849 [http://www.example.com/<b>html</b> stuff]
851 <p><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow"><b>html</b> stuff</a>
856 BUG 289: literal double quote at end of URL
858 http://www.example.com/"hello"
860 <p><a href="http://www.example.com/" class="external free" title="http://www.example.com/" rel="nofollow">http://www.example.com/</a>"hello"
865 BUG 289: literal double quote in bracketed URL
867 [http://www.example.com/"hello" stuff]
869 <p><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow">"hello" stuff</a>
874 External links: invalid character
875 Fixme: the missing char seems to have gone missing
879 [http://www.example.com test]
881 <p>[<a href="http://www.example.com" class="external free" title="http://www.example.com" rel="nofollow">http://www.example.com</a> test]
886 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
888 [http://www.example.com test]
890 <p><a href="http://www.example.com" class="external text" title="http://www.example.com" rel="nofollow">test</a>
895 External links: wiki links within external link (Bug 3695)
897 [http://example.com [[wikilink]] embedded in ext link]
899 <p><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (not yet written)">wikilink</a><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"> embedded in ext link</a>
904 BUG 787: Links with one slash after the url protocol are invalid
908 [http:/example.com title]
911 </p><p>[http:/example.com title]
916 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
918 ''[http://example.com text'']
919 [http://example.com '''text]'''
920 ''Something [http://example.com in italic'']
921 ''Something [http://example.com mixed''''', even bold]'''
922 '''''Now [http://example.com both''''']
924 <p><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><i>text</i></a>
925 <a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><b>text</b></a>
926 <i>Something </i><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><i>in italic</i></a>
927 <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>
928 <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>
936 http://www.example.com/?title=AT%26T
938 <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>
943 Bug 4781, 5267: %26 in URL
945 http://www.example.com/?title=100%25_Bran
947 <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>
952 Bug 4781, 5267: %28, %29 in URL
954 http://www.example.com/?title=Ben-Hur_%281959_film%29
956 <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>
962 Bug 4781: %26 in autonumber URL
964 [http://www.example.com/?title=AT%26T]
966 <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>
971 Bug 4781, 5267: %26 in autonumber URL
973 [http://www.example.com/?title=100%25_Bran]
975 <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>
980 Bug 4781, 5267: %28, %29 in autonumber URL
982 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
984 <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>
990 Bug 4781: %26 in bracketed URL
992 [http://www.example.com/?title=AT%26T link]
994 <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>
999 Bug 4781, 5267: %26 in bracketed URL
1001 [http://www.example.com/?title=100%25_Bran link]
1003 <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>
1008 Bug 4781, 5267: %28, %29 in bracketed URL
1010 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1012 <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>
1017 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1019 Some [http://example.com/ pretty ''italics'' and stuff]!
1021 <p>Some <a href="http://example.com/" class="external text" title="http://example.com/" rel="nofollow">pretty <i>italics</i> and stuff</a>!
1026 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1028 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1030 <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>
1035 URL-encoding in URL functions (single parameter)
1037 {{localurl:Some page|amp=&}}
1039 <p>/index.php?title=Some_page&amp=&
1044 URL-encoding in URL functions (multiple parameters)
1046 {{localurl:Some page|q=?&=&}}
1048 <p>/index.php?title=Some_page&q=?&amp=&
1059 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1061 Normal text. '''''Bold italic text.''''' Normal text.
1063 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1064 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1070 Unclosed and unmatched quotes
1072 '''''Bold italic text '''with bold deactivated''' in between.'''''
1074 '''''Bold italic text ''with italic deactivated'' in between.'''''
1078 ..spanning two paragraphs (should not work).'''
1080 '''Bold tag left open
1082 ''Italic tag left open
1086 <!-- Unmatching number of opening, closing tags: -->
1087 '''This year''''s election ''should'' beat '''last year''''s.
1089 ''Tom'''s car is bigger than ''Susan'''s.
1091 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1092 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1093 </p><p><b>Bold text..</b>
1094 </p><p>..spanning two paragraphs (should not work).
1095 </p><p><b>Bold tag left open</b>
1096 </p><p><i>Italic tag left open</i>
1098 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1099 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1106 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1109 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1110 # is the bare minimun required by the spec, see:
1111 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1113 A table with no data.
1119 # A table with nothing but a caption is invalid XHTML, we might want to render
1120 # this as <p>caption</p>
1122 A table with nothing but a caption
1130 </caption><tr><td></td></tr></table>
1154 Multiplication table
1156 {| border="1" cellpadding="2"
1157 |+Multiplication table
1159 ! × !! 1 !! 2 !! 3
1177 <table border="1" cellpadding="2">
1178 <caption>Multiplication table
1181 <th> × </th><th> 1 </th><th> 2 </th><th> 3
1185 </th><td> 1 </td><td> 2 </td><td> 3
1189 </th><td> 2 </td><td> 4 </td><td> 6
1193 </th><td> 3 </td><td> 6 </td><td> 9
1197 </th><td> 4 </td><td> 8 </td><td> 12
1201 </th><td> 5 </td><td> 10 </td><td> 15
1209 {| align=right border=1
1211 |rowspan=2| Cell 2, row 1 (and 2)
1218 <table align="right" border="1">
1221 </td><td rowspan="2"> Cell 2, row 1 (and 2)
1222 </td><td> Cell 3, row 1
1226 </td><td> Cell 3, row 2
1237 {| bgcolor=#ABCDEF border=2
1242 |the original table again
1249 <table bgcolor="#ABCDEF" border="2">
1256 </td><td>the original table again
1262 Invalid attributes in table cell (bug 1830)
1276 # FIXME: It's not clear at all that this is the result we want, but the actual
1277 # output right now is invalid XML, so clearly something is wrong. The result
1278 # specified here is now valid XML, which is an improvement . . .
1280 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1283 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1287 <td><a href="ftp://|x||" class="external autonumber" title="ftp://|x||" rel="nofollow">[1]</a></td><td>" onmouseover="alert(document.cookie)">test
1299 Plain link, capitalized
1303 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1308 Plain link, uncapitalized
1312 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1319 [[Main Page|The Main Page]]
1321 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1330 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (not yet written)">Zigzagzogzagzig</a>
1335 Broken link with fragment
1337 [[Zigzagzogzagzig#zug]]
1339 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (not yet written)">Zigzagzogzagzig#zug</a>
1344 Special page link with fragment
1346 [[Special:Version#anchor]]
1348 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1353 Nonexistent special page link with fragment
1355 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1357 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (not yet written)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1364 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1366 <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>
1373 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1375 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>!!!
1380 Link with 3 brackets
1389 Piped link with 3 brackets
1391 [[[main page|the main page]]]
1393 <p>[[[main page|the main page]]]
1398 Link with multiple pipes
1400 [[Main Page|The|Main|Page]]
1402 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1409 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1411 <p><a href="/index.php?title=Talk:Parser_testing&action=edit&redlink=1" class="new" title="Talk:Parser testing (not yet written)">Talk:Parser testing</a>, <a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (not yet written)">Meta:Disclaimers</a>
1416 Piped link to namespace
1418 [[Meta:Disclaimers|The disclaimers]]
1420 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (not yet written)">The disclaimers</a>
1427 [[Usually caused by a typo (oops}]]
1429 <p>[[Usually caused by a typo (oops}]]
1434 Link containing % (not as a hex sequence)
1438 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (not yet written)">7% Solution</a>
1443 Link containing % as a single hex sequence interpreted to char
1447 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (not yet written)">7% Solution</a>
1452 Link containing % as a double hex sequence interpreted to hex sequence
1456 <p>[[7%2525 Solution]]
1461 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1462 Example for such a section: == < ==
1464 [[%23%3c]][[%23%3e]]
1466 <p><a href="#.3C" title="">#<</a><a href="#.3E" title="">#></a>
1471 Link containing "<#" and ">#" as a hex sequences
1473 [[%3c%23]][[%3e%23]]
1475 <p>[[%3c%23]][[%3e%23]]
1480 Link containing double-single-quotes '' (bug 4598)
1482 [[Lista d''e paise d''o munno]]
1484 <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>
1489 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1491 Some [[Link|pretty ''italics'' and stuff]]!
1493 <p>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (not yet written)">pretty <i>italics</i> and stuff</a>!
1498 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1500 ''Some [[Link|pretty ''italics'' and stuff]]!
1502 <p><i>Some </i><a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (not yet written)"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1509 [[http://www.example.com]]
1511 <p>[<a href="http://www.example.com" class="external autonumber" title="http://www.example.com" rel="nofollow">[1]</a>]
1515 # I'm fairly sure the expected result here is wrong.
1516 # We want these to be URL links, not pseudo-pages with URLs for titles....
1517 # However the current output is also pretty screwy.
1520 # I'm changing it to match the current output--it arguably makes more
1521 # sense in the light of the test above. Old expected result was:
1522 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new" title="Http://www.example.com">an example URL</a>
1524 # But I think this test is bordering on "garbage in, garbage out" anyway.
1529 Piped link to URL: [[http://www.example.com|an example URL]]
1531 <p>Piped link to URL: [<a href="http://www.example.com|an" class="external text" title="http://www.example.com|an" rel="nofollow">example URL</a>]
1536 BUG 2: [[page|http://url/]] should link to page, not http://url/
1538 [[Main Page|http://url/]]
1540 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1545 BUG 337: Escaped self-links should be bold
1549 [[Bug462]] [[Bug462]]
1551 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1556 Self-link to section should not be bold
1560 [[Main Page#section]]
1562 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1573 Self-link to numeric title
1579 <p><strong class="selflink">0</strong>
1584 Link to numeric-equivalent title
1590 <p><a href="/wiki/00" title="00">00</a>
1595 <nowiki> inside a link
1597 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1599 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1604 ### Interwiki links (see maintenance/interwiki.sql)
1608 Inline interwiki link
1610 [[MeatBall:SoftSecurity]]
1612 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1617 Inline interwiki link with empty title (bug 2372)
1621 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw" title="meatball:">MeatBall:</a>
1626 Interwiki link encoding conversion (bug 1636)
1628 *[[Wikipedia:ro:Olteniţa]]
1629 *[[Wikipedia:ro:Olteniţa]]
1631 <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>
1632 </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>
1638 Interwiki link with fragment (bug 2130)
1640 [[MeatBall:SoftSecurity#foo]]
1642 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1657 Double interlanguage link
1668 Interlanguage link, with prefix links
1680 Double interlanguage link, with prefix links (bug 8897)
1707 Incorrecly removing closing slashes from correctly formed XHTML
1709 <br style="clear:both;" />
1711 <p><br style="clear:both;" />
1716 Failing to transform badly formed HTML into correct XHTML
1722 <p><br clear="left" />
1723 <br clear="right" />
1729 Horizontal ruler (should it add that extra space?)
1743 ### Block-level elements
1766 <ol><li>Numbered list
1783 ***#Number on level 4
1785 **#Number on level 3
1786 **#Number on level 3
1791 <ol><li> with numbers
1793 <ul><li> and bullets
1795 <ol><li> and numbers
1797 </li><li>bullets again
1798 <ul><li>bullet level 2
1799 <ul><li>bullet level 3
1800 <ol><li>Number on level 4
1803 </li><li>bullet level 2
1804 <ol><li>Number on level 3
1805 </li><li>Number on level 3
1808 <ol><li>number level 2
1816 List items are not parsed correctly following a <pre> block (bug 785)
1822 <ul><li> <pre>foo</pre>
1823 </li><li> <pre>bar</pre>
1834 Magic Word: {{CURRENTDAY}}
1843 Magic Word: {{CURRENTDAY2}}
1852 Magic Word: {{CURRENTDAYNAME}}
1861 Magic Word: {{CURRENTDOW}}
1870 Magic Word: {{CURRENTMONTH}}
1879 Magic Word: {{CURRENTMONTHABBREV}}
1881 {{CURRENTMONTHABBREV}}
1888 Magic Word: {{CURRENTMONTHNAME}}
1890 {{CURRENTMONTHNAME}}
1897 Magic Word: {{CURRENTMONTHNAMEGEN}}
1899 {{CURRENTMONTHNAMEGEN}}
1906 Magic Word: {{CURRENTTIME}}
1915 Magic Word: {{CURRENTWEEK}} (@bug 4594)
1924 Magic Word: {{CURRENTYEAR}}
1933 Magic Word: {{FULLPAGENAME}}
1935 title=[[User:Ævar Arnfjörð Bjarmason]]
1939 <p>User:Ævar Arnfjörð Bjarmason
1944 Magic Word: {{FULLPAGENAMEE}}
1946 title=[[User:Ævar Arnfjörð Bjarmason]]
1950 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
1955 Magic Word: {{NAMESPACE}}
1957 title=[[User:Ævar Arnfjörð Bjarmason]]
1967 Magic Word: {{NAMESPACEE}}
1969 title=[[User:Ævar Arnfjörð Bjarmason]]
1979 Magic Word: {{NUMBEROFARTICLES}}
1981 {{NUMBEROFARTICLES}}
1988 Magic Word: {{NUMBEROFFILES}}
1997 Magic Word: {{PAGENAME}}
1999 title=[[User:Ævar Arnfjörð Bjarmason]]
2004 <p>Ævar Arnfjörð Bjarmason
2009 Magic Word: {{PAGENAMEE}}
2011 title=[[User:Ævar Arnfjörð Bjarmason]]
2015 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2020 Magic Word: {{REVISIONID}}
2029 Magic Word: {{SCRIPTPATH}}
2038 Magic Word: {{SERVER}}
2042 <p><a href="http://localhost" class="external free" title="http://localhost" rel="nofollow">http://localhost</a>
2047 Magic Word: {{SERVERNAME}}
2056 Magic Word: {{SITENAME}}
2065 Namespace 1 {{ns:1}}
2074 Namespace 1 {{ns:01}}
2083 Namespace 0 {{ns:0}} (bug 4783)
2091 Namespace 0 {{ns:00}} (bug 4783)
2099 Namespace -1 {{ns:-1}}
2108 Namespace Project {{ns:User}}
2121 Magic links: internal link to RFC (bug 479)
2125 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (not yet written)">RFC 123</a>
2130 Magic links: RFC (bug 479)
2134 <p><a href="http://tools.ietf.org/html/rfc822" class="external" title="http://tools.ietf.org/html/rfc822">RFC 822</a>
2139 Magic links: ISBN (bug 1937)
2143 <p><a href="/wiki/Special:BookSources/0306406152" class="internal">ISBN 0-306-40615-2</a>
2148 Magic links: PMID incorrectly converts space to underscore
2152 <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>
2161 Nonexistant template
2163 {{thistemplatedoesnotexist}}
2165 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (not yet written)">Template:Thistemplatedoesnotexist</a>
2172 This is a test template
2180 <p>This is a test template
2185 Template with explicit namespace
2189 <p>This is a test template
2197 This is a test template with parameter {{{param}}}
2203 {{paramtest|param=foo}}
2205 <p>This is a test template with parameter foo
2210 Template:paramtestnum
2216 Template unnamed parameter
2218 {{paramtestnum|Main Page|the main page}}
2220 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2225 Template:templatesimple
2231 Template:templateredirect
2233 #redirect [[Template:templatesimple]]
2237 Template:templateasargtestnum
2243 Template:templateasargtest
2245 {{template{{{templ}}}}}
2249 Template:templateasargtest2
2255 Template with template name as unnamed argument
2257 {{templateasargtestnum|templatesimple}}
2264 Template with template name as argument
2266 {{templateasargtest|templ=simple}}
2273 Template with template name as argument (2)
2275 {{templateasargtest2|templ=templatesimple}}
2282 Template:templateasargtestdefault
2284 {{{{{templ|templatesimple}}}}}
2294 Template with default value
2296 {{templateasargtestdefault}}
2303 Template with default value (value set)
2305 {{templateasargtestdefault|templ=templa}}
2314 {{templateredirect}}
2321 Template with argument in separate line
2323 {{ templateasargtest |
2331 Template with complex template as argument
2334 param ={{ templateasargtest |
2337 <p>This is a test template with parameter (test)
2342 Template with thumb image (with link in description)
2345 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2347 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&redlink=1" class="new" title="No link (not yet written)">link</a> <a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (not yet written)">caption</a></div></div></div>
2352 Template:complextemplate
2354 {{{1}}} {{paramtest|
2355 param ={{{param}}}}}
2359 Template with complex arguments
2362 param ={{ templateasargtest |
2363 templ = simple }}|[[Template:complextemplate|link]]}}
2365 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2370 BUG 553: link with two variables in a piped link
2373 |[[{{{1}}}|{{{2}}}]]
2378 <td>[[{{{1}}}|{{{2}}}]]
2384 Magic variable as template parameter
2386 {{paramtest|param={{SITENAME}}}}
2388 <p>This is a test template with parameter MediaWiki
2395 [[{{{param}}}|link]]
2399 Template parameter as link source
2401 {{linktest|param=Main Page}}
2403 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2411 including another template, {{paramtest|param={{{arg}}}}}
2415 Template passing argument to another template
2417 {{paramtest2|arg='hmm'}}
2419 <p>including another template, This is a test template with parameter 'hmm'
2430 Template as link source
2434 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2452 Template infinite loop
2456 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
2461 Template from main namespace
2480 BUG 529: Template with table, not included at beginning of line
2497 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2515 BUG 41: Template parameters shown as broken links
2527 ''None'' of '''this''' should be
2529 but rather passed unmodified
2533 # hmm, fix this or just deprecate msgnw and document its behavior?
2539 {{msgnw:MSGNW test}}
2541 <p>''None'' of '''this''' should be
2543 but rather passed unmodified
2551 {{int:youhavenewmessages|lots of money|not!}}
2553 <p>You have lots of money (not!).
2560 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2564 <includeonly> and <noinclude> being included
2575 <onlyinclude>Foo</onlyinclude>bar
2579 <onlyinclude> being included
2591 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2595 <onlyinclude> and <includeonly> being included
2604 <includeonly> and <noinclude> on a page
2606 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2613 <onlyinclude> on a page
2615 <onlyinclude>Foo</onlyinclude>bar
2622 Template:Includeonly section
2625 ==Includeonly section==
2631 Bug 6563: Edit link generation for section shown by <includeonly>
2633 {{includeonly section}}
2635 <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>
2636 <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>
2640 # Uses same input as the contents of [[Template:Includeonly section]]
2642 Bug 6563: Section extraction for section shown by <includeonly>
2647 ==Includeonly section==
2655 Bug 6563: Edit link generation for section suppressed by <includeonly>
2658 ==Includeonly section==
2662 <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>
2667 Bug 6563: Section extraction for section suppressed by <includeonly>
2672 ==Includeonly section==
2680 ### Pre-save transform tests
2683 pre-save transform: subst:
2689 This is a test template
2693 pre-save transform: normal template
2703 pre-save transform: nonexistant template
2707 {{thistemplatedoesnotexist}}
2709 {{thistemplatedoesnotexist}}
2714 pre-save transform: subst magic variables
2723 # This is bug 89, which I fixed. -- wtm
2725 pre-save transform: subst: templates with parameters
2729 {{subst:paramtest|param="something else"}}
2731 This is a test template with parameter "something else"
2737 <nowiki>'''not wiki'''</nowiki>
2741 pre-save transform: nowiki in subst (bug 1188)
2745 {{subst:nowikitest}}
2747 <nowiki>'''not wiki'''</nowiki>
2752 Template:commenttest
2754 This template has <!-- a comment --> in it.
2758 pre-save transform: comment in subst (bug 1936)
2762 {{subst:commenttest}}
2764 This template has <!-- a comment --> in it.
2768 pre-save transform: unclosed tag
2772 <nowiki>'''not wiki'''
2774 <nowiki>'''not wiki'''
2778 pre-save transform: mixed tag case
2782 <NOwiki>'''not wiki'''</noWIKI>
2784 <NOwiki>'''not wiki'''</noWIKI>
2788 pre-save transform: unclosed comment in <nowiki>
2792 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2794 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2800 <span onmouseover="alert('crap')">Oh no</span>
2804 (confirming safety of fix for subst bug 1936)
2806 {{Template:dangerous}}
2808 <p><span>Oh no</span>
2813 pre-save transform: comment containing gallery (bug 5024)
2817 <!-- <gallery>data</gallery> -->
2819 <!-- <gallery>data</gallery> -->
2823 pre-save transform: comment containing extension
2827 <!-- <tag>data</tag> -->
2829 <!-- <tag>data</tag> -->
2833 pre-save transform: comment containing nowiki
2837 <!-- <nowiki>data</nowiki> -->
2839 <!-- <nowiki>data</nowiki> -->
2843 pre-save transform: comment containing math
2847 <!-- <math>data</math> -->
2849 <!-- <math>data</math> -->
2853 pre-save transform: <noinclude> in subst (bug 3298)
2863 pre-save transform: <onlyinclude> in subst (bug 3298)
2873 pre-save transform: context links ("pipe trick")
2877 [[Article (context)|]]
2880 [[Bar:Article (context)|]]
2881 [[:Bar:Article (context)|]]
2883 [[|Article (context)]]
2887 [[Article (context)|Article]]
2888 [[Bar:Article|Article]]
2889 [[:Bar:Article|Article]]
2890 [[Bar:Article (context)|Article]]
2891 [[:Bar:Article (context)|Article]]
2893 [[Article (context)]]
2894 [[Bar:X (Y) Z|X (Y) Z]]
2895 [[:Bar:X (Y) Z|X (Y) Z]]
2899 pre-save transform: context links ("pipe trick") with interwiki prefix
2903 [[interwiki:Article|]]
2904 [[:interwiki:Article|]]
2905 [[interwiki:Bar:Article|]]
2906 [[:interwiki:Bar:Article|]]
2908 [[interwiki:Article|Article]]
2909 [[:interwiki:Article|Article]]
2910 [[interwiki:Bar:Article|Bar:Article]]
2911 [[:interwiki:Bar:Article|Bar:Article]]
2915 pre-save transform: context links ("pipe trick") with parens in title
2917 pst title=[[Somearticle (context)]]
2921 [[Article (context)|Article]]
2925 pre-save transform: context links ("pipe trick") with comma in title
2927 pst title=[[Someplace, Somewhere]]
2930 [[Otherplace, Elsewhere|]]
2931 [[Otherplace, Elsewhere, Anywhere|]]
2933 [[Otherplace, Somewhere|Otherplace]]
2934 [[Otherplace, Elsewhere|Otherplace]]
2935 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
2939 pre-save transform: context links ("pipe trick") with parens and comma
2941 pst title=[[Someplace (IGNORED), Somewhere]]
2944 [[Otherplace (place), Elsewhere|]]
2946 [[Otherplace, Somewhere|Otherplace]]
2947 [[Otherplace (place), Elsewhere|Otherplace]]
2951 pre-save transform: context links ("pipe trick") with comma and parens
2953 pst title=[[Who, me? (context)]]
2956 [[Me, Myself, and I (1937 song)|]]
2958 [[Yes, you. (context)|Yes, you.]]
2959 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
2963 pre-save transform: context links ("pipe trick") with namespace
2965 pst title=[[Ns:Somearticle]]
2969 [[Ns:Article|Article]]
2973 pre-save transform: context links ("pipe trick") with namespace and parens
2975 pst title=[[Ns:Somearticle (context)]]
2979 [[Ns:Article (context)|Article]]
2983 pre-save transform: context links ("pipe trick") with namespace and comma
2985 pst title=[[Ns:Somearticle, Context, Whatever]]
2989 [[Ns:Article, Context, Whatever|Article]]
2993 pre-save transform: context links ("pipe trick") with namespace, comma and parens
2995 pst title=[[Ns:Somearticle, Context (context)]]
2999 [[Ns:Article (context)|Article]]
3003 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3005 pst title=[[Ns:Somearticle (IGNORED), Context]]
3009 [[Ns:Article, Context|Article]]
3014 ### Message transform tests
3017 message transform: magic variables
3027 message transform: should not transform wiki markup
3037 message transform: <noinclude> in transcluded template (bug 4926)
3047 message transform: <onlyinclude> in transcluded template (bug 4926)
3057 {{#special:}} page name, known
3061 {{#special:Recentchanges}}
3063 Special:RecentChanges
3067 {{#special:}} page name, unknown
3071 {{#special:foobarnonexistent}}
3073 No such special page
3082 [[Image:foobar.jpg]]
3084 <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>
3091 [[Image:foobar.jpg|right]]
3093 <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>
3100 [[Image:foobar.jpg|right|Caption text]]
3102 <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>
3107 Image with frame and link
3109 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3111 <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>
3116 Link to image page- image page normally doesn't exists, hence edit link
3117 Add test with existing image page
3118 #<p><a href="/wiki/Image:Test" title="Image:Test">Image:test</a>
3122 <p><a href="/index.php?title=Image:Test&action=edit&redlink=1" class="new" title="Image:Test (not yet written)">Image:test</a>
3127 Frameless image caption with a free URL
3129 [[Image:foobar.jpg|http://example.com]]
3131 <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>
3136 Thumbnail image caption with a free URL
3138 [[Image:foobar.jpg|thumb|http://example.com]]
3140 <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"><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>
3145 BUG 1887: A ISBN with a thumbnail
3147 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3149 <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"><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="/wiki/Special:BookSources/1235467890" class="internal">ISBN 1235467890</a></div></div></div>
3154 BUG 1887: A RFC with a thumbnail
3156 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3158 <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"><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>
3163 BUG 1887: A mailto link with a thumbnail
3165 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3167 <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"><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>
3172 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
3173 so math is not stripped and turns up as escaped <math> tags.
3175 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3177 <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"><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>
3182 BUG 1887, part 2: A <math> with a thumbnail- math enabled
3186 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3188 <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"><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>
3192 # Pending resolution to bug 368
3194 BUG 648: Frameless image caption with a link
3196 [[Image:foobar.jpg|text with a [[link]] in it]]
3198 <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>
3203 BUG 648: Frameless image caption with a link (suffix)
3205 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3207 <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>
3212 BUG 648: Frameless image caption with an interwiki link
3214 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3216 <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>
3221 BUG 648: Frameless image caption with a piped interwiki link
3223 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3225 <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>
3230 Escape HTML special chars in image alt text
3232 [[Image:foobar.jpg|& < > "]]
3234 <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>
3239 BUG 499: Alt text should have Ӓ, not &1234;
3241 [[Image:foobar.jpg|♀]]
3243 <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>
3248 Broken image caption with link
3250 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3252 <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.
3257 Image caption containing another image
3259 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3261 <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"><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>
3266 Image caption containing a newline
3268 [[Image:Foobar.jpg|This
3271 <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>
3277 Bug 3090: External links other than http: in image captions
3279 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3281 <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"><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>
3290 Subpage test/subpage
3298 subpage title=[[Subpage test]]
3302 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3307 Subpage noslash link
3309 subpage title=[[Subpage test]]
3313 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3322 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (not yet written)">/subpage</a>
3327 BUG 561: {{/Subpage}}
3329 subpage title=[[Page]]
3333 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (not yet written)">Page/Subpage</a>
3341 Category:MediaWiki User's Guide
3349 [[:Category:MediaWiki User's Guide]]
3351 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
3360 [[Category:MediaWiki User's Guide]]
3362 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3366 PAGESINCATEGORY invalid title fatal (r33546 fix)
3368 {{PAGESINCATEGORY:<bogus>}}
3375 ### Inter-language links
3378 Inter-language links
3384 [[zh:食品]]
3386 es:Alimento fr:Nourriture zh:食品
3393 Basic section headings
3400 ===Smaller headline===
3403 <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>
3406 <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>
3409 <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>
3415 Section headings with TOC
3418 === Subheadline 1 ===
3419 ===== Skipping a level =====
3420 ====== Skipping a level ======
3424 ===Another headline===
3426 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3428 <li class="toclevel-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3430 <li class="toclevel-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3432 <li class="toclevel-3"><a href="#Skipping_a_level"><span class="tocnumber">1.1.1</span> <span class="toctext">Skipping a level</span></a>
3434 <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>
3441 <li class="toclevel-1"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
3443 <li class="toclevel-2"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
3447 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3448 <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>
3449 <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>
3450 <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>
3451 <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>
3452 <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>
3455 <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>
3459 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
3461 Handling of sections up to level 6 and beyond
3464 == Level 2 Heading==
3465 === Level 3 Heading===
3466 ==== Level 4 Heading====
3467 ===== Level 5 Heading=====
3468 ====== Level 6 Heading======
3469 ======= Level 7 Heading=======
3470 ======== Level 8 Heading========
3471 ========= Level 9 Heading=========
3472 ========== Level 10 Heading==========
3474 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3476 <li class="toclevel-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
3478 <li class="toclevel-2"><a href="#Level_2_Heading"><span class="tocnumber">1.1</span> <span class="toctext">Level 2 Heading</span></a>
3480 <li class="toclevel-3"><a href="#Level_3_Heading"><span class="tocnumber">1.1.1</span> <span class="toctext">Level 3 Heading</span></a>
3482 <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>
3484 <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>
3486 <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>
3487 <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>
3488 <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>
3489 <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>
3490 <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>
3502 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3503 <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>
3504 <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>
3505 <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>
3506 <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>
3507 <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>
3508 <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>
3509 <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>
3510 <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>
3511 <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>
3512 <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>
3517 TOC regression (bug 9764)
3521 ==== title 1.1.1 ====
3526 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3528 <li class="toclevel-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3530 <li class="toclevel-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a>
3532 <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>
3535 <li class="toclevel-2"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
3538 <li class="toclevel-1"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3540 <li class="toclevel-2"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
3544 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3545 <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>
3546 <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>
3547 <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>
3548 <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>
3549 <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>
3550 <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>
3555 TOC with wgMaxTocLevel=3 (bug 6204)
3561 ==== title 1.1.1 ====
3566 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3568 <li class="toclevel-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3570 <li class="toclevel-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
3571 <li class="toclevel-2"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
3574 <li class="toclevel-1"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3576 <li class="toclevel-2"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
3580 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3581 <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>
3582 <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>
3583 <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>
3584 <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>
3585 <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>
3586 <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>
3591 Resolving duplicate section names
3596 <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>
3597 <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>
3602 Resolving duplicate section names with differing case (bug 10721)
3607 <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>
3608 <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>
3620 Template with sections, __NOTOC__
3627 <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>
3628 <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>
3629 <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>
3630 <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>
3635 __NOEDITSECTION__ keyword
3641 <a name="Section_1"></a><h2> <span class="mw-headline">Section 1</span></h2>
3642 <a name="Section_2"></a><h2> <span class="mw-headline">Section 2</span></h2>
3647 Link inside a section heading
3649 ==Section with a [[Main Page|link]] in it==
3651 <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>
3656 TOC regression (bug 12077)
3663 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3665 <li class="toclevel-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3667 <li class="toclevel-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
3670 <li class="toclevel-1"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
3672 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3673 <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>
3674 <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>
3675 <a name="title_2"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline"> title 2 </span></h2>
3680 BUG 1219 URL next to image (good)
3682 http://example.com [[Image:foobar.jpg]]
3684 <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>
3689 BUG 1219 URL next to image (broken)
3691 http://example.com[[Image:foobar.jpg]]
3693 <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>
3698 Bug 1186 news: in the middle of text
3700 http://en.wikinews.org/wiki/Wikinews:Workplace
3702 <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>
3708 Namespaced link must have a title
3717 Namespaced link must have a title (bad fragment version)
3719 [[Project:#fragment]]
3721 <p>[[Project:#fragment]]
3727 div with no attributes
3729 <div>HTML rocks</div>
3731 <div>HTML rocks</div>
3736 div with double-quoted attribute
3738 <div id="rock">HTML rocks</div>
3740 <div id="rock">HTML rocks</div>
3745 div with single-quoted attribute
3747 <div id='rock'>HTML rocks</div>
3749 <div id="rock">HTML rocks</div>
3754 div with unquoted attribute
3756 <div id=rock>HTML rocks</div>
3758 <div id="rock">HTML rocks</div>
3763 div with illegal double attributes
3765 <div align="center" align="right">HTML rocks</div>
3767 <div align="right">HTML rocks</div>
3772 HTML multiple attributes correction
3774 <p class="error" class="awesome">Awesome!</p>
3776 <p class="awesome">Awesome!</p>
3781 Table multiple attributes correction
3784 !+ class="error" class="awesome"| status
3789 <th class="awesome"> status
3797 <DIV ALIGN="center">HTML ROCKS</DIV>
3799 <div align="center">HTML ROCKS</div>
3805 text with amp in the middle of nowhere
3809 <p>Remember AT&T?
3814 text with character entity: eacute
3816 I always thought é was a cute letter.
3818 <p>I always thought é was a cute letter.
3823 text with undefined character entity: xacute
3825 I always thought &xacute; was a cute letter.
3827 <p>I always thought &xacute; was a cute letter.
3839 [[Media:Foobar.jpg]]
3841 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
3846 Media link with text
3848 [[Media:Foobar.jpg|A neat file to look at]]
3850 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
3854 # FIXME: this is still bad HTML tag nesting
3856 Media link with nasty text
3857 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
3859 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
3861 <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>
3866 Media link to nonexistent file (bug 1702)
3868 [[Media:No such.jpg]]
3870 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
3875 Image link to nonexistent file (bug 1850 - good)
3877 [[Image:No such.jpg]]
3879 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="Image:No such.jpg">Image:No such.jpg</a>
3884 :Image link to nonexistent file (bug 1850 - bad)
3886 [[:Image:No such.jpg]]
3888 <p><a href="/index.php?title=Image:No_such.jpg&action=edit&redlink=1" class="new" title="Image:No such.jpg (not yet written)">Image:No such.jpg</a>
3895 Character reference normalization in link text (bug 1938)
3897 [[Main Page|this&that]]
3899 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
3904 Empty attribute crash test (bug 2067)
3906 <font color="">foo</font>
3908 <p><font color="">foo</font>
3913 Empty attribute crash test single-quotes (bug 2067)
3915 <font color=''>foo</font>
3917 <p><font color="">foo</font>
3922 Attribute test: equals, then nothing
3924 <font color=>foo</font>
3931 Attribute test: unquoted value
3933 <font color=x>foo</font>
3935 <p><font color="x">foo</font>
3940 Attribute test: unquoted but illegal value (hash)
3942 <font color=#x>foo</font>
3944 <p><font color="#x">foo</font>
3949 Attribute test: no value
3951 <font color>foo</font>
3953 <p><font color="color">foo</font>
3958 Bug 2095: link with three closing brackets
3962 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
3967 Bug 2095: link with pipe and three closing brackets
3971 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
3976 Bug 2095: link with pipe and three closing brackets, version 2
3978 [[Main Page|[http://example.com/]]]
3980 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
3990 Template:Dangerous attribute
3992 " onmouseover="alert(document.cookie)
3996 Template:Dangerous style attribute
3998 border-size: expression(alert(document.cookie))
4004 <div style="float: right; {{{1}}}">Magic div</div>
4008 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4010 <div title="{{test}}"></div>
4012 <div title="This is a test template"></div>
4017 Bug 2304: HTML attribute safety (dangerous template; 2309)
4019 <div title="{{dangerous attribute}}"></div>
4021 <div title=""></div>
4026 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4028 <div style="{{dangerous style attribute}}"></div>
4035 Bug 2304: HTML attribute safety (safe parameter; 2309)
4037 {{div style|width: 200px}}
4039 <div style="float: right; width: 200px">Magic div</div>
4044 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4046 {{div style|width: expression(alert(document.cookie))}}
4048 <div>Magic div</div>
4053 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4055 {{div style|"><script>alert(document.cookie)</script>}}
4057 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4062 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4064 {{div style|" ><script>alert(document.cookie)</script>}}
4066 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4071 Bug 2304: HTML attribute safety (link)
4073 <div title="[[Main Page]]"></div>
4075 <div title="[[Main Page]]"></div>
4080 Bug 2304: HTML attribute safety (italics)
4082 <div title="''foobar''"></div>
4084 <div title="''foobar''"></div>
4089 Bug 2304: HTML attribute safety (bold)
4091 <div title="'''foobar'''"></div>
4093 <div title="'''foobar'''"></div>
4099 Bug 2304: HTML attribute safety (ISBN)
4101 <div title="ISBN 1234567890"></div>
4103 <div title="ISBN 1234567890"></div>
4108 Bug 2304: HTML attribute safety (RFC)
4110 <div title="RFC 1234"></div>
4112 <div title="RFC 1234"></div>
4117 Bug 2304: HTML attribute safety (PMID)
4119 <div title="PMID 1234567890"></div>
4121 <div title="PMID 1234567890"></div>
4126 Bug 2304: HTML attribute safety (web link)
4128 <div title="http://example.com/"></div>
4130 <div title="http://example.com/"></div>
4135 Bug 2304: HTML attribute safety (named web link)
4137 <div title="[http://example.com/ link]"></div>
4139 <div title="[http://example.com/ link]"></div>
4144 Bug 3244: HTML attribute safety (extension; safe)
4146 <div style="<nowiki>background:blue</nowiki>"></div>
4148 <div style="background:blue"></div>
4153 Bug 3244: HTML attribute safety (extension; unsafe)
4155 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4162 Math section safety when disabled
4164 <math><script>alert(document.cookies);</script></math>
4166 <p><math><script>alert(document.cookies);</script></math>
4170 # More MSIE fun discovered by Tom Gilder
4173 MSIE CSS safety test: spurious slash
4175 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4182 MSIE CSS safety test: hex code
4184 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4191 MSIE CSS safety test: comment in url
4193 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4195 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4200 MSIE CSS safety test: comment in expression
4202 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4204 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4210 Table attribute legitimate extension
4213 !+ style="<nowiki>color:blue</nowiki>"| status
4218 <th style="color:blue"> status
4224 Table attribute safety
4227 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4245 Expansion of multi-line templates in attribute values (bug 6255)
4247 <div style="background: {{identity|#00FF00}}">-</div>
4249 <div style="background: #00FF00">-</div>
4255 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
4257 <div style="background:
4260 <div style="background: #00FF00">-</div>
4265 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
4267 <div style="background: #00FF00">-</div>
4269 <div style="background: #00FF00">-</div>
4274 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
4277 Parser hook: empty input
4290 Parser hook: empty input using terminated empty elements
4303 Parser hook: empty input using terminated empty elements (space before)
4316 Parser hook: basic input
4330 Parser hook: case insensitive
4344 Parser hook: case insensitive, redux
4357 Parser hook: nested tags
4361 <tag><tag></tag></tag>
4372 Parser hook: basic arguments
4374 <tag width=200 height = "100" depth = '50' square></tag>
4393 Parser hook: argument containing a forward slash (bug 5344)
4395 <tag filename='/tmp/bla'></tag>
4401 string(8) "/tmp/bla"
4408 Parser hook: empty input using terminated empty elements (bug 2374)
4422 # </tag> should be output literally since there is no matching tag that begins it
4424 Parser hook: basic arguments using terminated empty elements (bug 2374)
4426 <tag width=200 height = "100" depth = '50' square/>
4449 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
4453 Parser hook: static parser hook not inside a comment
4455 <statictag>hello, world</statictag>
4456 <statictag action=flush/>
4464 Parser hook: static parser hook inside a comment
4466 <!-- <statictag>hello, world</statictag> -->
4467 <statictag action=flush/>
4473 # Nested template calls; this case was broken by Parser.php rev 1.506,
4477 Template:One-parameter
4479 (My parameter is: {{{1}}})
4483 Template:Map-one-parameter
4489 Nested template calls
4491 {{Map-one-parameter|One-parameter|param}}
4493 <p>(My parameter is: param)
4502 Sanitizer: Closing of open tags
4504 <s></s><table></table>
4506 <s></s><table></table>
4511 Sanitizer: Closing of open but not closed tags
4520 Sanitizer: Closing of closed but not open tags
4529 Sanitizer: Closing of closed but not open table tags
4531 Table not started</td></tr></table>
4533 <p>Table not started</td></tr></table>
4538 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
4540 <span id="æ: v">byte</span>[[#æ: v|backlink]]
4542 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v" title="">backlink</a>
4547 Sanitizer: Validating the contents of the id attribute (bug 4515)
4553 Something, but defenetly not <br id="9" />...
4557 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
4561 <br id="foo" /><br id="foo" />
4563 Something need to be done. foo-2 ?
4567 Language converter: output gets cut off unexpectedly (bug 5757)
4571 this bit is safe: }-
4573 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
4575 then we get cut off here: }-
4577 all additional text is vanished
4579 <p>this bit is safe: }-
4580 </p><p>but if we add a conversion instance: xxx
4581 </p><p>then we get cut off here: }-
4582 </p><p>all additional text is vanished
4587 Self closed html pairs (bug 5487)
4590 <center><font id="bug" />Centered text</center>
4591 <div><font id="bug2" />In div text</div>
4593 <center><font id="bug" />Centered text</center>
4594 <div><font id="bug2" />In div text</div>
4603 Punctuation: nbsp before exclamation
4607 <p>C'est grave !
4612 Punctuation: CSS !important (bug 11874)
4614 <div style="width:50% !important">important</div>
4616 <div style="width:50% !important">important</div>
4621 Punctuation: CSS ! important (bug 11874; with space after)
4623 <div style="width:50% ! important">important</div>
4625 <div style="width:50% ! important">important</div>
4631 HTML bullet list, closed tags (bug 5497)
4646 HTML bullet list, unclosed tags (bug 5497)
4661 HTML ordered list, closed tags (bug 5497)
4676 HTML ordered list, unclosed tags (bug 5497)
4691 HTML nested bullet list, closed tags (bug 5497)
4716 HTML nested bullet list, open tags (bug 5497)
4739 HTML nested ordered list, closed tags (bug 5497)
4764 HTML nested ordered list, open tags (bug 5497)
4787 HTML ordered list item with parameters oddity
4789 <ol><li id="fragment">One</li></ol>
4791 <ol><li id="fragment">One</li></ol>
4796 bug 5918: autonumbering
4798 [http://first/] [http://second] [ftp://ftp]
4802 [mailto:enclosed@mail.tld With target]
4804 [mailto:enclosed@mail.tld]
4806 mailto:inline@mail.tld
4808 <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>
4809 </p><p><a href="ftp://inlineftp" class="external free" title="ftp://inlineftp" rel="nofollow">ftp://inlineftp</a>
4810 </p><p><a href="mailto:enclosed@mail.tld" class="external text" title="mailto:enclosed@mail.tld" rel="nofollow">With target</a>
4811 </p><p><a href="mailto:enclosed@mail.tld" class="external autonumber" title="mailto:enclosed@mail.tld" rel="nofollow">[4]</a>
4812 </p><p><a href="mailto:inline@mail.tld" class="external free" title="mailto:inline@mail.tld" rel="nofollow">mailto:inline@mail.tld</a>
4818 # Security and HTML correctness
4819 # From Nick Jenkins' fuzz testing
4823 Fuzz testing: Parser13
4838 Fuzz testing: Parser14
4843 <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>
4844 http://<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4846 <li class="toclevel-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
4848 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
4853 Fuzz testing: Parser14-table
4858 <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>
4859 <table style="__TOC__">
4865 # Known to produce bogus xml (extra </td>)
4867 Fuzz testing: Parser16
4876 <th>https://</th><th></th><th></th><th>
4884 Fuzz testing: Parser21
4887 ! irc://{{ftp://a" onmouseover="alert('hello world');"
4892 <th> <a href="irc://{{ftp://a" class="external free" title="irc://{{ftp://a" rel="nofollow">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
4901 Fuzz testing: Parser22
4903 http://===r:::https://b
4907 <p><a href="http://===r:::https://b" class="external free" title="http://===r:::https://b" rel="nofollow">http://===r:::https://b</a>
4915 # Known to produce bad XML for now
4917 Fuzz testing: Parser24
4924 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
4925 <br style="onmouseover='alert(document.cookie);' " />
4927 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
4932 <u class="|">}}}} >
4933 <br style="onmouseover='alert(document.cookie);'" />
4935 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
4944 # Note: the current result listed for this is not what the original one was,
4945 # but the original bug was JavaScript injection, which is fixed in any case.
4946 # It's not clear that the original result listed was any more correct than the
4947 # current one. Original result:
4950 # <li class="||">
4951 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
4953 Fuzz testing: Parser25 (bug 6055)
4959 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
4961 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
4966 Fuzz testing: URL adjacent extension (with space, clean)
4969 http://example.com <nowiki>junk</nowiki>
4971 <p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a> junk
4976 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
4979 http://example.com<nowiki>junk</nowiki>
4981 <p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a>junk
4986 Fuzz testing: URL adjacent extension (no space, dirty; pre)
4989 http://example.com<pre>junk</pre>
4991 <a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a><pre>junk</pre>
4996 Fuzz testing: image with bogus manual thumbnail
4998 [[Image:foobar.jpg|thumbnail= ]]
5000 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5005 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5007 <pre dir=" "></pre>
5009 <pre dir=" "></pre>
5014 Parsing optional HTML elements (Bug 6171)
5019 <td> Some tabular data</td>
5020 <td> More tabular data ...
5021 <td> And yet som tabular data</td>
5027 <td> Some tabular data</td>
5028 <td> More tabular data ...
5029 </td><td> And yet som tabular data</td>
5036 Correct handling of <td>, <tr> (Bug 6171)
5041 <td> Some tabular data</td>
5042 <td> More tabular data ...</td>
5043 <td> And yet som tabular data</td>
5049 <td> Some tabular data</td>
5050 <td> More tabular data ...</td>
5051 <td> And yet som tabular data</td>
5059 Parsing crashing regression (fr:JavaScript)
5063 <p></body></x>
5068 Inline wiki vs wiki block nesting
5074 <p><b>Bold paragraph</b>
5075 </p><p>New wiki paragraph
5080 Inline HTML vs wiki block nesting
5086 <p><b>Bold paragraph</b>
5087 </p><p>New wiki paragraph
5091 # Original result was this:
5092 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5094 # While that might be marginally more intuitive, maybe, the six-apostrophe
5095 # construct is clearly pathological and the result stated here (which is what
5096 # the parser actually does) is about as reasonable as anything.
5098 Mixing markup for italics and bold
5101 '''bold''''''bold''bolditalics'''''
5103 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5111 Article for special page transclusion test
5115 Special page transclusion
5118 {{Special:Prefixindex/Xyzzyx}}
5122 <table style="background: inherit;" border="0" width="100%"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5127 Special page transclusion twice (bug 5021)
5130 {{Special:Prefixindex/Xyzzyx}}
5131 {{Special:Prefixindex/Xyzzyx}}
5135 <table style="background: inherit;" border="0" width="100%"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5138 <table style="background: inherit;" border="0" width="100%"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5143 Transclusion of default MediaWiki message
5145 {{MediaWiki:Mainpage}}
5152 Transclusion of nonexistent MediaWiki message
5154 {{MediaWiki:Mainpagexxx}}
5156 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (not yet written)">MediaWiki:Mainpagexxx</a>
5161 Transclusion of MediaWiki message with underscore
5163 {{MediaWiki:history_short}}
5170 Transclusion of MediaWiki message with space
5172 {{MediaWiki:history short}}
5179 Invalid header with following text
5189 Section extraction test (section 0)
5209 Section extraction test (section 1)
5231 Section extraction test (section 2)
5252 Section extraction test (section 3)
5272 Section extraction test (section 4)
5296 Section extraction test (section 5)
5316 Section extraction test (section 6)
5337 Section extraction test (section 7)
5357 Section extraction test (section 8)
5377 Section extraction test (section 9)
5398 Section extraction test (section 10)
5418 Section extraction test (nonexistent section 11)
5437 Section extraction test with bogus heading (section 1)
5442 ==bogus== not a legal section
5446 ==bogus== not a legal section
5450 Section extraction test with bogus heading (section 2)
5455 ==bogus== not a legal section
5462 Section extraction test with comment after heading (section 1)
5474 Section extraction test with comment after heading (section 2)
5486 Section extraction test with bogus <nowiki> heading (section 1)
5491 ==bogus== <nowiki>not a legal section</nowiki>
5495 ==bogus== <nowiki>not a legal section</nowiki>
5499 Section extraction test with bogus <nowiki> heading (section 2)
5504 ==bogus== <nowiki>not a legal section</nowiki>
5511 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
5512 # instead of respecting commented sections
5514 Section extraction prefixed by comment (section 1)
5525 Section extraction prefixed by comment (section 2)
5536 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
5537 # instead of respecting HTML-style headings
5539 Section extraction, mixed wiki and html (section 1)
5555 Section extraction, mixed wiki and html (section 2)
5571 # Formerly testing for bug 3342
5573 Section extraction, heading surrounded by <noinclude>
5577 <noinclude>==unmarked==</noinclude>
5585 Section replacement test (section 0)
5616 Section replacement test (section 1)
5645 Section replacement test (section 2)
5675 Section replacement test (section 3)
5706 Section replacement test (section 4)
5733 Section replacement test (section 5)
5764 Section replacement test (section 6)
5794 Section replacement test (section 7)
5825 Section replacement test (section 8)
5856 Section replacement test (section 9)
5885 Section replacement test (section 10)
5915 Section replacement test with initial whitespace (bug 13728)
5919 Preformatted initial line
5923 Preformatted initial line
5930 Section extraction, heading followed by pre with 20 spaces (bug 6398)
5942 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
5955 Section extraction, <pre> around bogus header (bug 10309)
5972 Section replacement, <pre> around bogus header (bug 10309)
5974 noxml replace=2,"xxx"
5995 Handling of 
 in URLs
5999 <ul><li><ul><li><a href="irc://%0Aa" class="external free" title="irc://%0Aa" rel="nofollow">irc://%0Aa</a>
6006 5 quotes, code coverage +1 line
6013 Special:Search page linking.
6017 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
6032 * {{SUBJECTPAGENAME}}
6033 * {{SUBJECTPAGENAMEE}}
6040 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6042 <ul><li> Parser test
6043 </li><li> Parser test
6044 </li><li> Parser test
6045 </li><li> Parser_test
6046 </li><li> Parser test
6047 </li><li> Parser_test
6048 </li><li> Talk:Parser test
6049 </li><li> Talk:Parser_test
6050 </li><li> Parser test
6051 </li><li> Parser_test
6058 </li><li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (not yet written)">Template:Dynamic</a>
6062 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6072 image4 |300px| centre
6073 image5.svg| http://///////
6078 <table class="gallery" cellspacing="0" cellpadding="0">
6080 <td><div class="gallerybox" style="width: 155px;">
6081 <div style="height: 152px;">Image1.png</div>
6082 <div class="gallerytext">
6085 <td><div class="gallerybox" style="width: 155px;">
6086 <div style="height: 152px;">Image2.gif</div>
6087 <div class="gallerytext">
6092 <td><div class="gallerybox" style="width: 155px;">
6093 <div style="height: 152px;">Image3</div>
6094 <div class="gallerytext">
6097 <td><div class="gallerybox" style="width: 155px;">
6098 <div style="height: 152px;">Image4</div>
6099 <div class="gallerytext">
6106 <td><div class="gallerybox" style="width: 155px;">
6107 <div style="height: 152px;">Image5.svg</div>
6108 <div class="gallerytext">
6109 <p><a href="http://///////" class="external free" title="http://///////" rel="nofollow">http://///////</a>
6113 <td><div class="gallerybox" style="width: 155px;">
6114 <div style="height: 152px;">* image6</div>
6115 <div class="gallerytext">
6124 HTML Hex character encoding (spells the word "JavaScript")
6126 JavaScript
6128 <p>JavaScript
6133 __FORCETOC__ override
6145 ISBN 978-0-1234-56 789
6147 <p><a href="/wiki/Special:BookSources/9780123456" class="internal">ISBN 978-0-1234-56</a> 789
6152 ISBN followed by 5 spaces
6163 ISBN ISBN 1234567890
6165 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1234567890</a>
6174 <p>RFC <a href="http://tools.ietf.org/html/rfc1234" class="external" title="http://tools.ietf.org/html/rfc1234">RFC 1234</a>
6179 Double RFC with a wiki link
6183 <p>RFC <a href="/index.php?title=RFC_1234&action=edit&redlink=1" class="new" title="RFC 1234 (not yet written)">RFC 1234</a>
6192 <p><a href="http://tools.ietf.org/html/rfc983" class="external" title="http://tools.ietf.org/html/rfc983">RFC 983</a> 987
6197 Centre-aligned image
6199 [[Image:foobar.jpg|centre]]
6201 <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>
6208 [[Image:foobar.jpg|none]]
6210 <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>
6215 Width + Height sized image (using px) (height is ignored)
6217 [[Image:foobar.jpg|640x480px]]
6219 <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>
6224 Width-sized image (using px, no following whitespace)
6226 [[Image:foobar.jpg|640px]]
6228 <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>
6233 Width-sized image (using px, with following whitespace - test regression from r39467)
6235 [[Image:foobar.jpg|640px ]]
6237 <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>
6242 Width-sized image (using px, with preceding whitespace - test regression from r39467)
6244 [[Image:foobar.jpg| 640px]]
6246 <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>
6251 Another italics / bold test
6259 # Note the results may be incorrect, as parserTest output included this:
6260 # XML error: Mismatched tag at byte 6120:
6261 # ...<dd> </dt></dl> </dd...
6267 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
6278 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
6280 Images with the "|" character in the comment
6282 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
6284 <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"><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>
6289 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
6291 <html><script>alert(1);</script></html>
6293 <p><html><script>alert(1);</script></html>
6298 HTML with raw HTML ($wgRawHtml==true)
6302 <html><script>alert(1);</script></html>
6304 <p><script>alert(1);</script>
6309 Parents of subpages, one level up
6311 subpage title=[[Subpage test/L1/L2/L3]]
6315 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (not yet written)">L2</a>
6321 Parents of subpages, one level up, not named
6323 subpage title=[[Subpage test/L1/L2/L3]]
6327 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (not yet written)">Subpage test/L1/L2</a>
6334 Parents of subpages, two levels up
6337 subpage title=[[Subpage test/L1/L2/L3]]
6341 <p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (not yet written)">L1</a>
6346 Parents of subpages, two levels up, without trailing slash or name.
6348 subpage title=[[Subpage test/L1/L2/L3]]
6357 Parents of subpages, two levels up, with lots of extra trailing slashes.
6359 subpage title=[[Subpage test/L1/L2/L3]]
6363 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (not yet written)">///</a>
6368 Definition list code coverage
6374 <dl><dt> title </dt><dd> def
6375 </dd><dt> title </dt><dd> def
6376 </dd><dt>title</dt><dd> def
6382 Don't fall for the self-closing div
6384 <div>hello world</div/>
6386 <div>hello world</div>
6395 <p>[[:Template:Msg]]
6404 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (not yet written)">Template:QUERTY</a>
6408 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
6410 Always escape literal '>' in output, not just after '<'
6424 <p>This is a test template
6425 This is a test template
6437 Inclusion of !userCanEdit() content
6441 <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>
6447 Out-of-order TOC heading levels
6456 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6458 <li class="toclevel-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
6460 <li class="toclevel-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
6461 <li class="toclevel-2"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
6464 <li class="toclevel-1"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
6466 <li class="toclevel-2"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
6467 <li class="toclevel-2"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
6471 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
6472 <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>
6473 <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>
6474 <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>
6475 <a name="1"></a><h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a>]</span> <span class="mw-headline">1</span></h1>
6476 <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>
6477 <a name="2_2"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a>]</span> <span class="mw-headline">2</span></h2>
6483 ISBN with a dummy number
6493 ISBN with space-delimited number
6497 <p><a href="/wiki/Special:BookSources/9290170328" class="internal">ISBN 92 9017 032 8</a>
6503 ISBN with multiple spaces, no number
6522 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1234567890</a>
6523 </p><p>ISBN 12345678901
6529 ISBN with trailing year (bug 8110)
6531 ISBN 1-234-56789-0 - 2006
6533 ISBN 1 234 56789 0 - 2006
6535 <p><a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1-234-56789-0</a> - 2006
6536 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal">ISBN 1 234 56789 0</a> - 2006
6542 Pages in namespace (Magic word disabled currently)
6544 {{PAGESINNAMESPACE:}}
6553 {{anchorencode:foo bar©#%n}}
6555 <p>foo_bar.C2.A9.23.25n
6561 Bug 8293: Use of center tag ruins paragraph formatting
6583 ### Language variants related tests
6586 Self-link in language variants
6588 title=[[Dunav]] language=sr
6590 Both [[Dunav]] and [[Дунав]] are names for this river.
6592 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
6598 Link to pages in language variants
6602 Main Page can be written as [[Маин Паге]]
6604 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
6610 Multiple links to pages in language variants
6614 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
6616 <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>.
6622 Simple template in language variants
6628 <p>This is a test template
6634 Template with explicit namespace in language variants
6640 <p>This is a test template
6646 Basic test for template parameter in language variants
6650 {{парамтест|param=foo}}
6652 <p>This is a test template with parameter foo
6658 Simple category in language variants
6662 [[:Category:МедиаWики Усер'с Гуиде]]
6664 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6669 Stripping -{}- tags (language variants)
6673 Latin proverb: -{Ne nuntium necare}-
6675 <p>Latin proverb: Ne nuntium necare
6681 Prevent conversion with -{}- tags (language variants)
6683 language=sr variant=sr-ec
6685 Latinski: -{Ne nuntium necare}-
6687 <p>Латински: Ne nuntium necare
6693 Prevent conversion of text with -{}- tags (language variants)
6695 language=sr variant=sr-ec
6697 Latinski: -{Ne nuntium necare}-
6699 <p>Латински: Ne nuntium necare
6705 Prevent conversion of links with -{}- tags (language variants)
6707 language=sr variant=sr-ec
6711 <p><a href="/index.php?title=Main_Page&variant=sr-ec" title="Main Page">Main Page</a>
6717 -{}- tags within headlines (within html for parserConvert())
6719 language=sr variant=sr-ec
6723 <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>
6729 Explicit definition of language variant alternatives
6731 language=zh variant=zh-tw
6733 -{zh:China;zh-tw:Taiwan}-, not China
6735 <p>Taiwan, not China
6741 Adding explicit session-wise language variant mapping (A flag)
6743 language=zh variant=zh-tw
6745 -{A|zh:China;zh-tw:Taiwan}- is China
6753 Adding explicit conversion rule for title (T flag)
6755 language=zh variant=zh-tw
6757 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
6759 <p>Should be stripped!
6765 Raw output of variant escape tags (R flag)
6767 language=zh variant=zh-tw
6769 Raw: -{R|zh:China;zh-tw:Taiwan}-
6771 <p>Raw: zh:China;zh-tw:Taiwan
6777 Do not convert roman numbers to language variants
6779 language=sr variant=sr-ec
6783 <p>Фридрих IV је цар.
6794 Bug 529: Uncovered bullet
6805 Bug 529: Uncovered table already at line-start
6826 Bug 529: Uncovered bullet in parser function result
6828 * Foo {{lc:{{bullet}} }}
6837 Bug 5678: Double-parsed template argument
6839 {{lc:{{{1}}}|hello}}
6846 Bug 5678: Double-parsed template invocation
6848 {{lc:{{paramtest {{!}} param = hello }} }}
6850 <p>{{paramtest | param = hello }}
6855 Morwen/13: Unclosed link followed by heading
6862 <a name="heading"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline">heading</span></h2>
6867 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
6874 <a name="heading"></a><h1> <span class="mw-headline">heading</span></h1>
6879 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
6886 <a name="heading"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline">heading</span></h2>
6901 Paragraphs inside divs (no extra line breaks)
6913 Paragraphs inside divs (extra line break on open)
6928 Paragraphs inside divs (extra line break on close)
6943 Paragraphs inside divs (extra line break on open and close)
6959 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
6961 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
6963 <blockquote>Line one
6965 Line two</blockquote>
6967 <blockquote>Line one
6968 Line two</blockquote>
6973 Bug 6200: paragraphs inside blockquotes (extra line break on open)
6978 Line two</blockquote>
6983 Line two</blockquote>
6988 Bug 6200: paragraphs inside blockquotes (extra line break on close)
6990 <blockquote>Line one
6995 <blockquote>Line one
7003 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
7020 Paragraphs inside blockquotes/divs (no extra line breaks)
7022 <blockquote><div>Line one
7024 Line two</div></blockquote>
7026 <blockquote><div>Line one
7027 Line two</div></blockquote>
7032 Paragraphs inside blockquotes/divs (extra line break on open)
7037 Line two</div></blockquote>
7042 Line two</div></blockquote>
7047 Paragraphs inside blockquotes/divs (extra line break on close)
7049 <blockquote><div>Line one
7054 <blockquote><div>Line one
7062 Paragraphs inside blockquotes/divs (extra line break on open and close)
7079 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
7081 wgLinkHolderBatchSize=0
7087 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
7088 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
7089 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
7094 Free external link invading image caption
7096 [[Image:Foobar.jpg|thumb|http://x|hello]]
7098 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="image" title="hello"><img alt="hello" 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"><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>hello</div></div></div>
7112 Try for 100% code coverage