1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
69 This is a simple paragraph.
71 <p>This is a simple paragraph.
91 * plain''italic''plain
92 * plain''italic''plain''italic''plain
93 * plain'''bold'''plain
94 * plain'''bold'''plain'''bold'''plain
95 * plain''italic''plain'''bold'''plain
96 * plain'''bold'''plain''italic''plain
97 * plain''italic'''bold-italic'''italic''plain
98 * plain'''bold''bold-italic''bold'''plain
99 * plain'''''bold-italic'''italic''plain
100 * plain'''''bold-italic''bold'''plain
101 * plain''italic'''bold-italic'''''plain
102 * plain'''bold''bold-italic'''''plain
103 * plain l'''italic''plain
104 * plain l''''bold''' plain
107 </li><li> plain<i>italic</i>plain
108 </li><li> plain<i>italic</i>plain<i>italic</i>plain
109 </li><li> plain<b>bold</b>plain
110 </li><li> plain<b>bold</b>plain<b>bold</b>plain
111 </li><li> plain<i>italic</i>plain<b>bold</b>plain
112 </li><li> plain<b>bold</b>plain<i>italic</i>plain
113 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
114 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
115 </li><li> plain<i><b>bold-italic</b>italic</i>plain
116 </li><li> plain<b><i>bold-italic</i>bold</b>plain
117 </li><li> plain<i>italic<b>bold-italic</b></i>plain
118 </li><li> plain<b>bold<i>bold-italic</i></b>plain
119 </li><li> plain l'<i>italic</i>plain
120 </li><li> plain l'<b>bold</b> plain
126 ### <nowiki> test cases
130 <nowiki> unordered list
132 <nowiki>* This is not an unordered list item.</nowiki>
134 <p>* This is not an unordered list item.
141 <nowiki>Lorem ipsum dolor
162 :There is not nowiki.
163 :There is <nowiki>nowiki</nowiki>.
165 #There is not nowiki.
166 #There is <nowiki>nowiki</nowiki>.
168 *There is not nowiki.
169 *There is <nowiki>nowiki</nowiki>.
171 <dl><dd>There is not nowiki.
172 </dd><dd>There is nowiki.
174 <ol><li>There is not nowiki.
175 </li><li>There is nowiki.
177 <ul><li>There is not nowiki.
178 </li><li>There is nowiki.
190 <!-- comment 1 --> asdf
226 asdf<!-- comment 1 -->jkl
236 <!-- foo --> b <!-- bar -->
250 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
256 Comment semantics and delimiters
258 <!-- --><!----><!-----><!------>
264 Comment semantics and delimiters, redux
266 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
267 -- foo -- funky huh? ... -->
273 Comment semantics and delimiters: directors cut
275 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
276 everything starting with < followed by !-- until the first -- and > we see,
277 that wouldn't be valid XML however, since in XML -- has to terminate a comment
285 Comment semantics: nesting
287 <!--<!-- no, we're not going to do anything fancy here -->-->
294 Comment semantics: unclosed comment at end
296 <!--This comment will run out to the end of the document
302 Comment in template title
311 Comment on its own line post-expand
323 ### Preformatted text
332 And a [[Main Page|link]]
338 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
343 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
360 Regression with preformatted in <center>
374 <pre> with attributes (bug 3202)
376 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
378 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
383 <pre> with width attribute (bug 3202)
385 <pre width="8">Narrow screen goodies</pre>
387 <pre width="8">Narrow screen goodies</pre>
392 <pre> with forbidden attribute (bug 3202)
394 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
396 <pre width="8">Narrow screen goodies</pre>
401 <pre> with forbidden attribute values (bug 3202)
403 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
405 <pre width="8">Narrow screen goodies</pre>
417 <dl><dt> name </dt><dd> Definition
423 Definition list for indentation only
427 <dl><dd> Indented text
433 Definition list with no space
437 <dl><dt>name</dt><dd>Definition
443 Definition list with URL link
445 ; http://example.com/ : definition
447 <dl><dt> <a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a> </dt><dd> definition
453 Definition list with bracketed URL link
455 ;[http://www.example.com/ Example]:Something about it
457 <dl><dt><a href="http://www.example.com/" class="external text" rel="nofollow">Example</a></dt><dd>Something about it
463 Definition list with wikilink containing colon
465 ; [[Help:FAQ]]: The least-read page on Wikipedia
467 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
472 # At Brion's and JeLuF's insistence... :)
474 Definition list with news link containing colon
476 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
478 <dl><dt> <a href="news:alt.wikipedia.rox" class="external free" rel="nofollow">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
484 Malformed definition list with colon
486 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
488 <dl><dt> <a href="news:alt.wikipedia.rox" class="external free" rel="nofollow">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
494 Definition lists: colon in external link text
496 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
498 <dl><dt> <a href="http://www.wikipedia2.org/" class="external text" rel="nofollow">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
504 Definition lists: colon in HTML attribute
506 ;<b style="display: inline">bold</b>
508 <dl><dt><b style="display: inline">bold</b>
515 Definition lists: self-closed tag
517 ;one<br/>two : two-line fun
519 <dl><dt>one<br />two </dt><dd> two-line fun
529 External links: non-bracketed
531 Non-bracketed: http://example.com
533 <p>Non-bracketed: <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>
538 External links: numbered
540 Numbered: [http://example.com]
541 Numbered: [http://example.net]
542 Numbered: [http://example.com]
544 <p>Numbered: <a href="http://example.com" class="external autonumber" rel="nofollow">[1]</a>
545 Numbered: <a href="http://example.net" class="external autonumber" rel="nofollow">[2]</a>
546 Numbered: <a href="http://example.com" class="external autonumber" rel="nofollow">[3]</a>
551 External links: specified text
553 Specified text: [http://example.com link]
555 <p>Specified text: <a href="http://example.com" class="external text" rel="nofollow">link</a>
560 External links: trail
562 Linktrails should not work for external links: [http://example.com link]s
564 <p>Linktrails should not work for external links: <a href="http://example.com" class="external text" rel="nofollow">link</a>s
569 External links: dollar sign in URL
571 http://example.com/1$2345
573 <p><a href="http://example.com/1$2345" class="external free" rel="nofollow">http://example.com/1$2345</a>
578 External links: dollar sign in URL (named)
580 [http://example.com/1$2345]
582 <p><a href="http://example.com/1$2345" class="external autonumber" rel="nofollow">[1]</a>
587 External links: open square bracket forbidden in URL (bug 4377)
589 http://example.com/1[2345
591 <p><a href="http://example.com/1" class="external free" rel="nofollow">http://example.com/1</a>[2345
596 External links: open square bracket forbidden in URL (named) (bug 4377)
598 [http://example.com/1[2345]
600 <p><a href="http://example.com/1" class="external text" rel="nofollow">[2345</a>
605 External links: nowiki in URL link text (bug 6230)
607 [http://example.com/ <nowiki>''example site''</nowiki>]
609 <p><a href="http://example.com/" class="external text" rel="nofollow">''example site''</a>
614 External links: newline forbidden in text (bug 6230 regression check)
616 [http://example.com/ first
619 <p>[<a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a> first
627 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
629 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
634 External image from https
636 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
638 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
643 Link to non-http image, no img tag
645 Link to non-http image, no img tag: ftp://example.com/test.jpg
647 <p>Link to non-http image, no img tag: <a href="ftp://example.com/test.jpg" class="external free" rel="nofollow">ftp://example.com/test.jpg</a>
652 External links: terminating separator
654 Terminating separator: http://example.com/thing,
656 <p>Terminating separator: <a href="http://example.com/thing" class="external free" rel="nofollow">http://example.com/thing</a>,
661 External links: intervening separator
663 Intervening separator: http://example.com/1,2,3
665 <p>Intervening separator: <a href="http://example.com/1,2,3" class="external free" rel="nofollow">http://example.com/1,2,3</a>
670 External links: old bug with URL in query
672 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
674 <p>Old bug with URL in query: <a href="http://example.com/thing?url=http://example.com" class="external text" rel="nofollow">link</a>
679 External links: old URL-in-URL bug, mixed protocols
681 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
683 <p>And again with mixed protocols: <a href="ftp://example.com?url=http://example.com" class="external text" rel="nofollow">link</a>
688 External links: URL in text
690 URL in text: [http://example.com http://example.com]
692 <p>URL in text: <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>
697 External links: Clickable images
699 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
701 <p>ja-style clickable images: <a href="http://example.com" class="external text" rel="nofollow"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
706 External links: raw ampersand
708 Old & use: http://x&y
710 <p>Old & use: <a href="http://x&y" class="external free" rel="nofollow">http://x&y</a>
715 External links: encoded ampersand
717 Old & use: http://x&y
719 <p>Old & use: <a href="http://x&y" class="external free" rel="nofollow">http://x&y</a>
724 External links: encoded equals (bug 6102)
726 http://example.com/?foo=bar
728 <p><a href="http://example.com/?foo=bar" class="external free" rel="nofollow">http://example.com/?foo=bar</a>
733 External links: [raw ampersand]
735 Old & use: [http://x&y]
737 <p>Old & use: <a href="http://x&y" class="external autonumber" rel="nofollow">[1]</a>
742 External links: [encoded ampersand]
744 Old & use: [http://x&y]
746 <p>Old & use: <a href="http://x&y" class="external autonumber" rel="nofollow">[1]</a>
751 External links: [encoded equals] (bug 6102)
753 [http://example.com/?foo=bar]
755 <p><a href="http://example.com/?foo=bar" class="external autonumber" rel="nofollow">[1]</a>
760 External links: [IDN ignored character reference in hostname; strip it right off]
762 [http://e‌xample.com/]
764 <p><a href="http://example.com/" class="external autonumber" rel="nofollow">[1]</a>
769 External links: IDN ignored character reference in hostname; strip it right off
771 http://e‌xample.com/
773 <p><a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a>
778 External links: www.jpeg.org (bug 554)
782 <p><a href="http://www.jpeg.org" class="external free" rel="nofollow">http://www.jpeg.org</a>
787 External links: URL within URL (original bug 2)
789 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
791 <p><a href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp" class="external autonumber" rel="nofollow">[1]</a>
796 BUG 361: URL inside bracketed URL
798 [http://www.example.com/foo http://www.example.com/bar]
800 <p><a href="http://www.example.com/foo" class="external text" rel="nofollow">http://www.example.com/bar</a>
805 BUG 361: URL within URL, not bracketed
807 http://www.example.com/foo?=http://www.example.com/bar
809 <p><a href="http://www.example.com/foo?=http://www.example.com/bar" class="external free" rel="nofollow">http://www.example.com/foo?=http://www.example.com/bar</a>
814 BUG 289: ">"-token in URL-tail
816 http://www.example.com/<hello>
818 <p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a><hello>
823 BUG 289: literal ">"-token in URL-tail
825 http://www.example.com/<b>html</b>
827 <p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a><b>html</b>
832 BUG 289: ">"-token in bracketed URL
834 [http://www.example.com/<hello> stuff]
836 <p><a href="http://www.example.com/" class="external text" rel="nofollow"><hello> stuff</a>
841 BUG 289: literal ">"-token in bracketed URL
843 [http://www.example.com/<b>html</b> stuff]
845 <p><a href="http://www.example.com/" class="external text" rel="nofollow"><b>html</b> stuff</a>
850 BUG 289: literal double quote at end of URL
852 http://www.example.com/"hello"
854 <p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a>"hello"
859 BUG 289: literal double quote in bracketed URL
861 [http://www.example.com/"hello" stuff]
863 <p><a href="http://www.example.com/" class="external text" rel="nofollow">"hello" stuff</a>
868 External links: invalid character
869 Fixme: the missing char seems to have gone missing
873 [http://www.example.com test]
875 <p>[<a href="http://www.example.com" class="external free" rel="nofollow">http://www.example.com</a> test]
880 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
882 [http://www.example.com test]
884 <p><a href="http://www.example.com" class="external text" rel="nofollow">test</a>
889 External links: wiki links within external link (Bug 3695)
891 [http://example.com [[wikilink]] embedded in ext link]
893 <p><a href="http://example.com" class="external text" rel="nofollow"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a href="http://example.com" class="external text" rel="nofollow"> embedded in ext link</a>
898 BUG 787: Links with one slash after the url protocol are invalid
902 [http:/example.com title]
905 </p><p>[http:/example.com title]
910 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
912 ''[http://example.com text'']
913 [http://example.com '''text]'''
914 ''Something [http://example.com in italic'']
915 ''Something [http://example.com mixed''''', even bold]'''
916 '''''Now [http://example.com both''''']
918 <p><a href="http://example.com" class="external text" rel="nofollow"><i>text</i></a>
919 <a href="http://example.com" class="external text" rel="nofollow"><b>text</b></a>
920 <i>Something </i><a href="http://example.com" class="external text" rel="nofollow"><i>in italic</i></a>
921 <i>Something </i><a href="http://example.com" class="external text" rel="nofollow"><i>mixed</i><b>, even bold</b></a>
922 <i><b>Now </b></i><a href="http://example.com" class="external text" rel="nofollow"><i><b>both</b></i></a>
930 http://www.example.com/?title=AT%26T
932 <p><a href="http://www.example.com/?title=AT%26T" class="external free" rel="nofollow">http://www.example.com/?title=AT%26T</a>
937 Bug 4781, 5267: %26 in URL
939 http://www.example.com/?title=100%25_Bran
941 <p><a href="http://www.example.com/?title=100%25_Bran" class="external free" rel="nofollow">http://www.example.com/?title=100%25_Bran</a>
946 Bug 4781, 5267: %28, %29 in URL
948 http://www.example.com/?title=Ben-Hur_%281959_film%29
950 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external free" rel="nofollow">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
956 Bug 4781: %26 in autonumber URL
958 [http://www.example.com/?title=AT%26T]
960 <p><a href="http://www.example.com/?title=AT%26T" class="external autonumber" rel="nofollow">[1]</a>
965 Bug 4781, 5267: %26 in autonumber URL
967 [http://www.example.com/?title=100%25_Bran]
969 <p><a href="http://www.example.com/?title=100%25_Bran" class="external autonumber" rel="nofollow">[1]</a>
974 Bug 4781, 5267: %28, %29 in autonumber URL
976 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
978 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external autonumber" rel="nofollow">[1]</a>
984 Bug 4781: %26 in bracketed URL
986 [http://www.example.com/?title=AT%26T link]
988 <p><a href="http://www.example.com/?title=AT%26T" class="external text" rel="nofollow">link</a>
993 Bug 4781, 5267: %26 in bracketed URL
995 [http://www.example.com/?title=100%25_Bran link]
997 <p><a href="http://www.example.com/?title=100%25_Bran" class="external text" rel="nofollow">link</a>
1002 Bug 4781, 5267: %28, %29 in bracketed URL
1004 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
1006 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external text" rel="nofollow">link</a>
1011 External link containing double-single-quotes in text '' (bug 4598 sanity check)
1013 Some [http://example.com/ pretty ''italics'' and stuff]!
1015 <p>Some <a href="http://example.com/" class="external text" rel="nofollow">pretty <i>italics</i> and stuff</a>!
1020 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
1022 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
1024 <p><i>Some </i><a href="http://example.com/" class="external text" rel="nofollow"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1029 URL-encoding in URL functions (single parameter)
1031 {{localurl:Some page|amp=&}}
1033 <p>/index.php?title=Some_page&amp=&
1038 URL-encoding in URL functions (multiple parameters)
1040 {{localurl:Some page|q=?&=&}}
1042 <p>/index.php?title=Some_page&q=?&amp=&
1053 Normal text. '''Bold text.''' Normal text. ''Italic text.''
1055 Normal text. '''''Bold italic text.''''' Normal text.
1057 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
1058 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1064 Unclosed and unmatched quotes
1066 '''''Bold italic text '''with bold deactivated''' in between.'''''
1068 '''''Bold italic text ''with italic deactivated'' in between.'''''
1072 ..spanning two paragraphs (should not work).'''
1074 '''Bold tag left open
1076 ''Italic tag left open
1080 <!-- Unmatching number of opening, closing tags: -->
1081 '''This year''''s election ''should'' beat '''last year''''s.
1083 ''Tom'''s car is bigger than ''Susan'''s.
1085 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1086 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1087 </p><p><b>Bold text..</b>
1088 </p><p>..spanning two paragraphs (should not work).
1089 </p><p><b>Bold tag left open</b>
1090 </p><p><i>Italic tag left open</i>
1092 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1093 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1100 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1103 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1104 # is the bare minimun required by the spec, see:
1105 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1107 A table with no data.
1113 # A table with nothing but a caption is invalid XHTML, we might want to render
1114 # this as <p>caption</p>
1116 A table with nothing but a caption
1124 </caption><tr><td></td></tr></table>
1148 Multiplication table
1150 {| border="1" cellpadding="2"
1151 |+Multiplication table
1153 ! × !! 1 !! 2 !! 3
1171 <table border="1" cellpadding="2">
1172 <caption>Multiplication table
1175 <th> × </th><th> 1 </th><th> 2 </th><th> 3
1179 </th><td> 1 </td><td> 2 </td><td> 3
1183 </th><td> 2 </td><td> 4 </td><td> 6
1187 </th><td> 3 </td><td> 6 </td><td> 9
1191 </th><td> 4 </td><td> 8 </td><td> 12
1195 </th><td> 5 </td><td> 10 </td><td> 15
1203 {| align=right border=1
1205 |rowspan=2| Cell 2, row 1 (and 2)
1212 <table align="right" border="1">
1215 </td><td rowspan="2"> Cell 2, row 1 (and 2)
1216 </td><td> Cell 3, row 1
1220 </td><td> Cell 3, row 2
1231 {| bgcolor=#ABCDEF border=2
1236 |the original table again
1243 <table bgcolor="#ABCDEF" border="2">
1250 </td><td>the original table again
1256 Invalid attributes in table cell (bug 1830)
1270 # FIXME: It's not clear at all that this is the result we want, but the actual
1271 # output right now is invalid XML, so clearly something is wrong. The result
1272 # specified here is now valid XML, which is an improvement . . .
1274 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
1279 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1283 <td><a href="ftp://|x||" class="external autonumber" title="ftp://|x||" rel="nofollow">[1]</a></td><td>" onmouseover="alert(document.cookie)">test
1295 Plain link, capitalized
1299 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1304 Plain link, uncapitalized
1308 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1315 [[Main Page|The Main Page]]
1317 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1326 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
1331 Broken link with fragment
1333 [[Zigzagzogzagzig#zug]]
1335 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
1340 Special page link with fragment
1342 [[Special:Version#anchor]]
1344 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
1349 Nonexistent special page link with fragment
1351 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
1353 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
1360 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1362 <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>
1369 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
1371 <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>!!!
1376 Link with 3 brackets
1385 Piped link with 3 brackets
1387 [[[main page|the main page]]]
1389 <p>[[[main page|the main page]]]
1394 Link with multiple pipes
1396 [[Main Page|The|Main|Page]]
1398 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1405 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1407 <p><a href="/index.php?title=Talk:Parser_testing&action=edit&redlink=1" class="new" title="Talk:Parser testing (page does not exist)">Talk:Parser testing</a>, <a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">Meta:Disclaimers</a>
1412 Piped link to namespace
1414 [[Meta:Disclaimers|The disclaimers]]
1416 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
1423 [[Usually caused by a typo (oops}]]
1425 <p>[[Usually caused by a typo (oops}]]
1430 Link containing % (not as a hex sequence)
1434 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
1439 Link containing % as a single hex sequence interpreted to char
1443 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
1448 Link containing % as a double hex sequence interpreted to hex sequence
1452 <p>[[7%2525 Solution]]
1457 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1458 Example for such a section: == < ==
1460 [[%23%3c]][[%23%3e]]
1462 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
1467 Link containing "<#" and ">#" as a hex sequences
1469 [[%3c%23]][[%3e%23]]
1471 <p>[[%3c%23]][[%3e%23]]
1476 Link containing double-single-quotes '' (bug 4598)
1480 [[Lista d''e paise d''o munno]]
1482 <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>
1487 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1489 Some [[Link|pretty ''italics'' and stuff]]!
1491 <p>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!
1496 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1498 ''Some [[Link|pretty ''italics'' and stuff]]!
1500 <p><i>Some </i><a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1507 [[http://www.example.com]]
1509 <p>[<a href="http://www.example.com" class="external autonumber" rel="nofollow">[1]</a>]
1513 # I'm fairly sure the expected result here is wrong.
1514 # We want these to be URL links, not pseudo-pages with URLs for titles....
1515 # However the current output is also pretty screwy.
1518 # I'm changing it to match the current output--it arguably makes more
1519 # sense in the light of the test above. Old expected result was:
1520 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
1522 # But I think this test is bordering on "garbage in, garbage out" anyway.
1527 Piped link to URL: [[http://www.example.com|an example URL]]
1529 <p>Piped link to URL: [<a href="http://www.example.com|an" class="external text" rel="nofollow">example URL</a>]
1534 BUG 2: [[page|http://url/]] should link to page, not http://url/
1536 [[Main Page|http://url/]]
1538 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1543 BUG 337: Escaped self-links should be bold
1547 [[Bug462]] [[Bug462]]
1549 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1554 Self-link to section should not be bold
1558 [[Main Page#section]]
1560 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1571 Self-link to numeric title
1577 <p><strong class="selflink">0</strong>
1582 Link to numeric-equivalent title
1588 <p><a href="/wiki/00" title="00">00</a>
1593 <nowiki> inside a link
1595 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1597 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1602 Non-breaking spaces in title
1604 [[ Main Page ]]
1606 <p><a href="/wiki/Main_Page" title="Main Page"> Main Page </a>
1612 ### Interwiki links (see maintenance/interwiki.sql)
1616 Inline interwiki link
1618 [[MeatBall:SoftSecurity]]
1620 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1625 Inline interwiki link with empty title (bug 2372)
1629 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw" title="meatball:">MeatBall:</a>
1634 Interwiki link encoding conversion (bug 1636)
1636 *[[Wikipedia:ro:Olteniţa]]
1637 *[[Wikipedia:ro:Olteniţa]]
1639 <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>
1640 </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>
1646 Interwiki link with fragment (bug 2130)
1648 [[MeatBall:SoftSecurity#foo]]
1650 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1665 Double interlanguage link
1676 Interlanguage link, with prefix links
1688 Double interlanguage link, with prefix links (bug 8897)
1715 Incorrecly removing closing slashes from correctly formed XHTML
1717 <br style="clear:both;" />
1719 <p><br style="clear:both;" />
1724 Failing to transform badly formed HTML into correct XHTML
1730 <p><br clear="left" />
1731 <br clear="right" />
1737 Horizontal ruler (should it add that extra space?)
1751 ### Block-level elements
1774 <ol><li>Numbered list
1791 ***#Number on level 4
1793 **#Number on level 3
1794 **#Number on level 3
1799 <ol><li> with numbers
1801 <ul><li> and bullets
1803 <ol><li> and numbers
1805 </li><li>bullets again
1806 <ul><li>bullet level 2
1807 <ul><li>bullet level 3
1808 <ol><li>Number on level 4
1811 </li><li>bullet level 2
1812 <ol><li>Number on level 3
1813 </li><li>Number on level 3
1816 <ol><li>number level 2
1824 List items are not parsed correctly following a <pre> block (bug 785)
1830 <ul><li> <pre>foo</pre>
1831 </li><li> <pre>bar</pre>
1842 Magic Word: {{CURRENTDAY}}
1851 Magic Word: {{CURRENTDAY2}}
1860 Magic Word: {{CURRENTDAYNAME}}
1869 Magic Word: {{CURRENTDOW}}
1878 Magic Word: {{CURRENTMONTH}}
1887 Magic Word: {{CURRENTMONTHABBREV}}
1889 {{CURRENTMONTHABBREV}}
1896 Magic Word: {{CURRENTMONTHNAME}}
1898 {{CURRENTMONTHNAME}}
1905 Magic Word: {{CURRENTMONTHNAMEGEN}}
1907 {{CURRENTMONTHNAMEGEN}}
1914 Magic Word: {{CURRENTTIME}}
1923 Magic Word: {{CURRENTWEEK}} (@bug 4594)
1932 Magic Word: {{CURRENTYEAR}}
1941 Magic Word: {{FULLPAGENAME}}
1943 title=[[User:Ævar Arnfjörð Bjarmason]]
1947 <p>User:Ævar Arnfjörð Bjarmason
1952 Magic Word: {{FULLPAGENAMEE}}
1954 title=[[User:Ævar Arnfjörð Bjarmason]]
1958 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
1963 Magic Word: {{NAMESPACE}}
1965 title=[[User:Ævar Arnfjörð Bjarmason]]
1974 Magic Word: {{NAMESPACEE}}
1976 title=[[User:Ævar Arnfjörð Bjarmason]]
1985 Magic Word: {{NUMBEROFARTICLES}}
1987 {{NUMBEROFARTICLES}}
1994 Magic Word: {{NUMBEROFFILES}}
2003 Magic Word: {{PAGENAME}}
2005 title=[[User:Ævar Arnfjörð Bjarmason]]
2009 <p>Ævar Arnfjörð Bjarmason
2014 Magic Word: {{PAGENAMEE}}
2016 title=[[User:Ævar Arnfjörð Bjarmason]]
2020 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
2025 Magic Word: {{REVISIONID}}
2034 Magic Word: {{SCRIPTPATH}}
2043 Magic Word: {{SERVER}}
2047 <p><a href="http://localhost" class="external free" rel="nofollow">http://localhost</a>
2052 Magic Word: {{SERVERNAME}}
2061 Magic Word: {{SITENAME}}
2070 Namespace 1 {{ns:1}}
2079 Namespace 1 {{ns:01}}
2088 Namespace 0 {{ns:0}} (bug 4783)
2096 Namespace 0 {{ns:00}} (bug 4783)
2104 Namespace -1 {{ns:-1}}
2113 Namespace User {{ns:User}}
2122 Namespace User talk {{ns:User_talk}}
2131 Namespace User talk {{ns:uSeR tAlK}}
2140 Namespace File {{ns:File}}
2149 Namespace File {{ns:Image}}
2158 Namespace (lang=de) Benutzer {{ns:User}}
2169 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
2175 <p>Benutzer Diskussion
2184 Magic links: internal link to RFC (bug 479)
2188 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
2193 Magic links: RFC (bug 479)
2197 <p><a href="http://tools.ietf.org/html/rfc822" class="external mw-magiclink-rfc">RFC 822</a>
2202 Magic links: ISBN (bug 1937)
2206 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
2211 Magic links: PMID incorrectly converts space to underscore
2215 <p><a href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract" class="external mw-magiclink-pmid">PMID 1234</a>
2224 Nonexistent template
2226 {{thistemplatedoesnotexist}}
2228 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
2235 This is a test template
2243 <p>This is a test template
2248 Template with explicit namespace
2252 <p>This is a test template
2260 This is a test template with parameter {{{param}}}
2266 {{paramtest|param=foo}}
2268 <p>This is a test template with parameter foo
2273 Template:paramtestnum
2279 Template unnamed parameter
2281 {{paramtestnum|Main Page|the main page}}
2283 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2288 Template:templatesimple
2294 Template:templateredirect
2296 #redirect [[Template:templatesimple]]
2300 Template:templateasargtestnum
2306 Template:templateasargtest
2308 {{template{{{templ}}}}}
2312 Template:templateasargtest2
2318 Template with template name as unnamed argument
2320 {{templateasargtestnum|templatesimple}}
2327 Template with template name as argument
2329 {{templateasargtest|templ=simple}}
2336 Template with template name as argument (2)
2338 {{templateasargtest2|templ=templatesimple}}
2345 Template:templateasargtestdefault
2347 {{{{{templ|templatesimple}}}}}
2357 Template with default value
2359 {{templateasargtestdefault}}
2366 Template with default value (value set)
2368 {{templateasargtestdefault|templ=templa}}
2377 {{templateredirect}}
2384 Template with argument in separate line
2386 {{ templateasargtest |
2394 Template with complex template as argument
2397 param ={{ templateasargtest |
2400 <p>This is a test template with parameter (test)
2405 Template with thumb image (with link in description)
2408 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2410 This is a test template with parameter <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Noimage.png" class="new" title="File:Noimage.png">File:Noimage.png</a> <div class="thumbcaption"><a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">link</a> <a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">caption</a></div></div></div>
2415 Template:complextemplate
2417 {{{1}}} {{paramtest|
2418 param ={{{param}}}}}
2422 Template with complex arguments
2425 param ={{ templateasargtest |
2426 templ = simple }}|[[Template:complextemplate|link]]}}
2428 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2433 BUG 553: link with two variables in a piped link
2436 |[[{{{1}}}|{{{2}}}]]
2441 <td>[[{{{1}}}|{{{2}}}]]
2447 Magic variable as template parameter
2449 {{paramtest|param={{SITENAME}}}}
2451 <p>This is a test template with parameter MediaWiki
2458 [[{{{param}}}|link]]
2462 Template parameter as link source
2464 {{linktest|param=Main Page}}
2466 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2474 including another template, {{paramtest|param={{{arg}}}}}
2478 Template passing argument to another template
2480 {{paramtest2|arg='hmm'}}
2482 <p>including another template, This is a test template with parameter 'hmm'
2493 Template as link source
2497 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2515 Template infinite loop
2519 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
2524 Template from main namespace
2543 BUG 529: Template with table, not included at beginning of line
2560 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2578 BUG 41: Template parameters shown as broken links
2590 ''None'' of '''this''' should be
2592 but rather passed unmodified
2596 # hmm, fix this or just deprecate msgnw and document its behavior?
2602 {{msgnw:MSGNW test}}
2604 <p>''None'' of '''this''' should be
2606 but rather passed unmodified
2614 {{int:youhavenewmessages|lots of money|not!}}
2616 <p>You have lots of money (not!).
2623 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2627 <includeonly> and <noinclude> being included
2638 <onlyinclude>Foo</onlyinclude>bar
2642 <onlyinclude> being included
2654 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2658 <onlyinclude> and <includeonly> being included
2667 <includeonly> and <noinclude> on a page
2669 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2676 <onlyinclude> on a page
2678 <onlyinclude>Foo</onlyinclude>bar
2685 Template:Includeonly section
2688 ==Includeonly section==
2694 Bug 6563: Edit link generation for section shown by <includeonly>
2696 {{includeonly section}}
2698 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Includeonly_section">Includeonly section</span></h2>
2699 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Section_T-1">Section T-1</span></h2>
2703 # Uses same input as the contents of [[Template:Includeonly section]]
2705 Bug 6563: Section extraction for section shown by <includeonly>
2710 ==Includeonly section==
2718 Bug 6563: Edit link generation for section suppressed by <includeonly>
2721 ==Includeonly section==
2725 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2>
2730 Bug 6563: Section extraction for section suppressed by <includeonly>
2735 ==Includeonly section==
2743 ### Pre-save transform tests
2746 pre-save transform: subst:
2752 This is a test template
2756 pre-save transform: normal template
2766 pre-save transform: nonexistent template
2770 {{thistemplatedoesnotexist}}
2772 {{thistemplatedoesnotexist}}
2777 pre-save transform: subst magic variables
2786 # This is bug 89, which I fixed. -- wtm
2788 pre-save transform: subst: templates with parameters
2792 {{subst:paramtest|param="something else"}}
2794 This is a test template with parameter "something else"
2800 <nowiki>'''not wiki'''</nowiki>
2804 pre-save transform: nowiki in subst (bug 1188)
2808 {{subst:nowikitest}}
2810 <nowiki>'''not wiki'''</nowiki>
2815 Template:commenttest
2817 This template has <!-- a comment --> in it.
2821 pre-save transform: comment in subst (bug 1936)
2825 {{subst:commenttest}}
2827 This template has <!-- a comment --> in it.
2831 pre-save transform: unclosed tag
2835 <nowiki>'''not wiki'''
2837 <nowiki>'''not wiki'''
2841 pre-save transform: mixed tag case
2845 <NOwiki>'''not wiki'''</noWIKI>
2847 <NOwiki>'''not wiki'''</noWIKI>
2851 pre-save transform: unclosed comment in <nowiki>
2855 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2857 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2863 <span onmouseover="alert('crap')">Oh no</span>
2867 (confirming safety of fix for subst bug 1936)
2869 {{Template:dangerous}}
2871 <p><span>Oh no</span>
2876 pre-save transform: comment containing gallery (bug 5024)
2880 <!-- <gallery>data</gallery> -->
2882 <!-- <gallery>data</gallery> -->
2886 pre-save transform: comment containing extension
2890 <!-- <tag>data</tag> -->
2892 <!-- <tag>data</tag> -->
2896 pre-save transform: comment containing nowiki
2900 <!-- <nowiki>data</nowiki> -->
2902 <!-- <nowiki>data</nowiki> -->
2906 pre-save transform: comment containing math
2910 <!-- <math>data</math> -->
2912 <!-- <math>data</math> -->
2916 pre-save transform: <noinclude> in subst (bug 3298)
2926 pre-save transform: <onlyinclude> in subst (bug 3298)
2936 pre-save transform: context links ("pipe trick")
2940 [[Article (context)|]]
2943 [[Bar:Article (context)|]]
2944 [[:Bar:Article (context)|]]
2946 [[|Article (context)]]
2950 [[Article (context)|Article]]
2951 [[Bar:Article|Article]]
2952 [[:Bar:Article|Article]]
2953 [[Bar:Article (context)|Article]]
2954 [[:Bar:Article (context)|Article]]
2956 [[Article (context)]]
2957 [[Bar:X (Y) Z|X (Y) Z]]
2958 [[:Bar:X (Y) Z|X (Y) Z]]
2962 pre-save transform: context links ("pipe trick") with interwiki prefix
2966 [[interwiki:Article|]]
2967 [[:interwiki:Article|]]
2968 [[interwiki:Bar:Article|]]
2969 [[:interwiki:Bar:Article|]]
2971 [[interwiki:Article|Article]]
2972 [[:interwiki:Article|Article]]
2973 [[interwiki:Bar:Article|Bar:Article]]
2974 [[:interwiki:Bar:Article|Bar:Article]]
2978 pre-save transform: context links ("pipe trick") with parens in title
2980 pst title=[[Somearticle (context)]]
2984 [[Article (context)|Article]]
2988 pre-save transform: context links ("pipe trick") with comma in title
2990 pst title=[[Someplace, Somewhere]]
2993 [[Otherplace, Elsewhere|]]
2994 [[Otherplace, Elsewhere, Anywhere|]]
2996 [[Otherplace, Somewhere|Otherplace]]
2997 [[Otherplace, Elsewhere|Otherplace]]
2998 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
3002 pre-save transform: context links ("pipe trick") with parens and comma
3004 pst title=[[Someplace (IGNORED), Somewhere]]
3007 [[Otherplace (place), Elsewhere|]]
3009 [[Otherplace, Somewhere|Otherplace]]
3010 [[Otherplace (place), Elsewhere|Otherplace]]
3014 pre-save transform: context links ("pipe trick") with comma and parens
3016 pst title=[[Who, me? (context)]]
3019 [[Me, Myself, and I (1937 song)|]]
3021 [[Yes, you. (context)|Yes, you.]]
3022 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
3026 pre-save transform: context links ("pipe trick") with namespace
3028 pst title=[[Ns:Somearticle]]
3032 [[Ns:Article|Article]]
3036 pre-save transform: context links ("pipe trick") with namespace and parens
3038 pst title=[[Ns:Somearticle (context)]]
3042 [[Ns:Article (context)|Article]]
3046 pre-save transform: context links ("pipe trick") with namespace and comma
3048 pst title=[[Ns:Somearticle, Context, Whatever]]
3052 [[Ns:Article, Context, Whatever|Article]]
3056 pre-save transform: context links ("pipe trick") with namespace, comma and parens
3058 pst title=[[Ns:Somearticle, Context (context)]]
3062 [[Ns:Article (context)|Article]]
3066 pre-save transform: context links ("pipe trick") with namespace, parens and comma
3068 pst title=[[Ns:Somearticle (IGNORED), Context]]
3072 [[Ns:Article, Context|Article]]
3077 ### Message transform tests
3080 message transform: magic variables
3090 message transform: should not transform wiki markup
3100 message transform: <noinclude> in transcluded template (bug 4926)
3110 message transform: <onlyinclude> in transcluded template (bug 4926)
3120 {{#special:}} page name, known
3124 {{#special:Recentchanges}}
3126 Special:RecentChanges
3130 {{#special:}} page name, unknown
3134 {{#special:foobarnonexistent}}
3136 No such special page
3145 [[Image:foobar.jpg]]
3147 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3154 [[Image:foobar.jpg|right]]
3156 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
3161 Simple image (using File: namespace, now canonical)
3165 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3172 [[Image:foobar.jpg|right|Caption text]]
3174 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
3179 Image with link parameter, wiki target
3181 [[Image:foobar.jpg|link=Target page]]
3183 <p><a href="/wiki/Target_page" title="Target page"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3188 Image with link parameter, URL target
3190 [[Image:foobar.jpg|link=http://example.com/]]
3192 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3197 Image with empty link parameter
3199 [[Image:foobar.jpg|link=]]
3201 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
3206 Image with link parameter (wiki target) and unnamed parameter
3208 [[Image:foobar.jpg|link=Target page|Title]]
3210 <p><a href="/wiki/Target_page" title="Title"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3215 Image with link parameter (URL target) and unnamed parameter
3217 [[Image:foobar.jpg|link=http://example.com/|Title]]
3219 <p><a href="http://example.com/" title="Title"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3226 Image with frame and link
3228 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
3230 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
3235 Image with frame and link and explicit alt
3237 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
3239 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Altitude" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
3244 Image with wiki markup in implicit alt
3246 [[Image:Foobar.jpg|testing '''bold''' in alt]]
3248 <p><a href="/wiki/File:Foobar.jpg" class="image" title="testing bold in alt"><img alt="testing bold in alt" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3253 Image with wiki markup in explicit alt
3255 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
3257 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="testing bold in alt" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3262 Link to image page- image page normally doesn't exists, hence edit link
3263 Add test with existing image page
3264 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
3268 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
3273 Frameless image caption with a free URL
3275 [[Image:foobar.jpg|http://example.com]]
3277 <p><a href="/wiki/File:Foobar.jpg" class="image" title="http://example.com"><img alt="http://example.com" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3282 Thumbnail image caption with a free URL
3284 [[Image:foobar.jpg|thumb|http://example.com]]
3286 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a></div></div></div>
3291 Thumbnail image caption with a free URL and explicit alt
3293 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
3295 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a></div></div></div>
3300 BUG 1887: A ISBN with a thumbnail
3302 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
3304 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
3309 BUG 1887: A RFC with a thumbnail
3311 [[Image:foobar.jpg|thumb|This is RFC 12354]]
3313 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a href="http://tools.ietf.org/html/rfc12354" class="external mw-magiclink-rfc">RFC 12354</a></div></div></div>
3318 BUG 1887: A mailto link with a thumbnail
3320 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
3322 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a href="mailto:nobody@example.com" class="external free" rel="nofollow">mailto:nobody@example.com</a></div></div></div>
3327 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
3328 so math is not stripped and turns up as escaped <math> tags.
3330 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3332 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><math>2+2</math></div></div></div>
3337 BUG 1887, part 2: A <math> with a thumbnail- math enabled
3341 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
3343 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><span class="texhtml">2 + 2</span></div></div></div>
3347 # Pending resolution to bug 368
3349 BUG 648: Frameless image caption with a link
3351 [[Image:foobar.jpg|text with a [[link]] in it]]
3353 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3358 BUG 648: Frameless image caption with a link (suffix)
3360 [[Image:foobar.jpg|text with a [[link]]foo in it]]
3362 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a linkfoo in it"><img alt="text with a linkfoo in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3367 BUG 648: Frameless image caption with an interwiki link
3369 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
3371 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a MeatBall:Link in it"><img alt="text with a MeatBall:Link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3376 BUG 648: Frameless image caption with a piped interwiki link
3378 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
3380 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3385 Escape HTML special chars in image alt text
3387 [[Image:foobar.jpg|& < > "]]
3389 <p><a href="/wiki/File:Foobar.jpg" class="image" title="& < > ""><img alt="& < > "" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3394 BUG 499: Alt text should have Ӓ, not &1234;
3396 [[Image:foobar.jpg|♀]]
3398 <p><a href="/wiki/File:Foobar.jpg" class="image" title="♀"><img alt="♀" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3403 Broken image caption with link
3405 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3407 <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.
3412 Image caption containing another image
3414 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3416 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is a caption with another <a href="/index.php?title=Special:Upload&wpDestFile=Icon.png" class="new" title="File:Icon.png">File:Icon.png</a> inside it!</div></div></div>
3421 Image caption containing a newline
3423 [[Image:Foobar.jpg|This
3426 <p><a href="/wiki/File:Foobar.jpg" class="image" title="This *is some text"><img alt="This *is some text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3432 Bug 3090: External links other than http: in image captions
3434 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3436 <div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This caption has <a href="irc://example.net" class="external text" rel="nofollow">irc</a> and <a href="https://example.com" class="external text" rel="nofollow">Secure</a> ext links in it.</div></div></div>
3445 Subpage test/subpage
3453 subpage title=[[Subpage test]]
3457 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3462 Subpage noslash link
3464 subpage title=[[Subpage test]]
3468 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3477 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
3482 BUG 561: {{/Subpage}}
3484 subpage title=[[Page]]
3488 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
3496 Category:MediaWiki User's Guide
3504 [[:Category:MediaWiki User's Guide]]
3506 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
3515 [[Category:MediaWiki User's Guide]]
3517 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3521 PAGESINCATEGORY invalid title fatal (r33546 fix)
3523 {{PAGESINCATEGORY:<bogus>}}
3530 ### Inter-language links
3533 Inter-language links
3539 [[zh:食品]]
3541 es:Alimento fr:Nourriture zh:食品
3548 Basic section headings
3555 ===Smaller headline===
3558 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
3561 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2">Headline 2</span></h2>
3564 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a>]</span> <span class="mw-headline" id="Smaller_headline">Smaller headline</span></h3>
3570 Section headings with TOC
3573 === Subheadline 1 ===
3574 ===== Skipping a level =====
3575 ====== Skipping a level ======
3579 ===Another headline===
3581 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3583 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3585 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3587 <li class="toclevel-3 tocsection-3"><a href="#Skipping_a_level"><span class="tocnumber">1.1.1</span> <span class="toctext">Skipping a level</span></a>
3589 <li class="toclevel-4 tocsection-4"><a href="#Skipping_a_level_2"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Skipping a level</span></a></li>
3596 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
3598 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
3602 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3603 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
3604 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a>]</span> <span class="mw-headline" id="Subheadline_1"> Subheadline 1 </span></h3>
3605 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level"> Skipping a level </span></h5>
3606 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level_2"> Skipping a level </span></h6>
3607 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2"> Headline 2 </span></h2>
3610 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a>]</span> <span class="mw-headline" id="Another_headline">Another headline</span></h3>
3614 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
3616 Handling of sections up to level 6 and beyond
3619 == Level 2 Heading==
3620 === Level 3 Heading===
3621 ==== Level 4 Heading====
3622 ===== Level 5 Heading=====
3623 ====== Level 6 Heading======
3624 ======= Level 7 Heading=======
3625 ======== Level 8 Heading========
3626 ========= Level 9 Heading=========
3627 ========== Level 10 Heading==========
3629 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3631 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
3633 <li class="toclevel-2 tocsection-2"><a href="#Level_2_Heading"><span class="tocnumber">1.1</span> <span class="toctext">Level 2 Heading</span></a>
3635 <li class="toclevel-3 tocsection-3"><a href="#Level_3_Heading"><span class="tocnumber">1.1.1</span> <span class="toctext">Level 3 Heading</span></a>
3637 <li class="toclevel-4 tocsection-4"><a href="#Level_4_Heading"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Level 4 Heading</span></a>
3639 <li class="toclevel-5 tocsection-5"><a href="#Level_5_Heading"><span class="tocnumber">1.1.1.1.1</span> <span class="toctext">Level 5 Heading</span></a>
3641 <li class="toclevel-6 tocsection-6"><a href="#Level_6_Heading"><span class="tocnumber">1.1.1.1.1.1</span> <span class="toctext">Level 6 Heading</span></a></li>
3642 <li class="toclevel-6 tocsection-7"><a href="#.3D_Level_7_Heading.3D"><span class="tocnumber">1.1.1.1.1.2</span> <span class="toctext">= Level 7 Heading=</span></a></li>
3643 <li class="toclevel-6 tocsection-8"><a href="#.3D.3D_Level_8_Heading.3D.3D"><span class="tocnumber">1.1.1.1.1.3</span> <span class="toctext">== Level 8 Heading==</span></a></li>
3644 <li class="toclevel-6 tocsection-9"><a href="#.3D.3D.3D_Level_9_Heading.3D.3D.3D"><span class="tocnumber">1.1.1.1.1.4</span> <span class="toctext">=== Level 9 Heading===</span></a></li>
3645 <li class="toclevel-6 tocsection-10"><a href="#.3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D"><span class="tocnumber">1.1.1.1.1.5</span> <span class="toctext">==== Level 10 Heading====</span></a></li>
3657 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3658 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a>]</span> <span class="mw-headline" id="Level_1_Heading"> Level 1 Heading</span></h1>
3659 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a>]</span> <span class="mw-headline" id="Level_2_Heading"> Level 2 Heading</span></h2>
3660 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a>]</span> <span class="mw-headline" id="Level_3_Heading"> Level 3 Heading</span></h3>
3661 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a>]</span> <span class="mw-headline" id="Level_4_Heading"> Level 4 Heading</span></h4>
3662 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a>]</span> <span class="mw-headline" id="Level_5_Heading"> Level 5 Heading</span></h5>
3663 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a>]</span> <span class="mw-headline" id="Level_6_Heading"> Level 6 Heading</span></h6>
3664 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a>]</span> <span class="mw-headline" id=".3D_Level_7_Heading.3D">= Level 7 Heading=</span></h6>
3665 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a>]</span> <span class="mw-headline" id=".3D.3D_Level_8_Heading.3D.3D">== Level 8 Heading==</span></h6>
3666 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D">=== Level 9 Heading===</span></h6>
3667 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D">==== Level 10 Heading====</span></h6>
3672 TOC regression (bug 9764)
3676 ==== title 1.1.1 ====
3681 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3683 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3685 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a>
3687 <li class="toclevel-3 tocsection-3"><a href="#title_1.1.1"><span class="tocnumber">1.1.1</span> <span class="toctext">title 1.1.1</span></a></li>
3690 <li class="toclevel-2 tocsection-4"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
3693 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3695 <li class="toclevel-2 tocsection-6"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
3699 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3700 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
3701 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
3702 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4>
3703 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2"> title 1.2 </span></h3>
3704 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
3705 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1"> title 2.1 </span></h3>
3710 TOC with wgMaxTocLevel=3 (bug 6204)
3716 ==== title 1.1.1 ====
3721 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3723 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3725 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
3726 <li class="toclevel-2 tocsection-4"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
3729 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
3731 <li class="toclevel-2 tocsection-6"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
3735 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3736 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
3737 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
3738 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4>
3739 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2"> title 1.2 </span></h3>
3740 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
3741 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1"> title 2.1 </span></h3>
3746 Resolving duplicate section names
3751 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar"> Foo bar </span></h2>
3752 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar_2"> Foo bar </span></h2>
3757 Resolving duplicate section names with differing case (bug 10721)
3762 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar"> Foo bar </span></h2>
3763 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2"> Foo Bar </span></h2>
3775 Template with sections, __NOTOC__
3782 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a>]</span> <span class="mw-headline" id="Section_0">Section 0</span></h2>
3783 <h3><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-1" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h3>
3784 <h2><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-2" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
3785 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a>]</span> <span class="mw-headline" id="Section_4">Section 4</span></h2>
3790 __NOEDITSECTION__ keyword
3796 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
3797 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
3802 Link inside a section heading
3804 ==Section with a [[Main Page|link]] in it==
3806 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a>]</span> <span class="mw-headline" id="Section_with_a_link_in_it">Section with a <a href="/wiki/Main_Page" title="Main Page">link</a> in it</span></h2>
3811 TOC regression (bug 12077)
3818 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3820 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
3822 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
3825 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
3827 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3828 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
3829 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
3830 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
3835 BUG 1219 URL next to image (good)
3837 http://example.com [[Image:foobar.jpg]]
3839 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a> <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3844 BUG 1219 URL next to image (broken)
3846 http://example.com[[Image:foobar.jpg]]
3848 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
3853 Bug 1186 news: in the middle of text
3855 http://en.wikinews.org/wiki/Wikinews:Workplace
3857 <p><a href="http://en.wikinews.org/wiki/Wikinews:Workplace" class="external free" rel="nofollow">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
3863 Namespaced link must have a title
3872 Namespaced link must have a title (bad fragment version)
3874 [[Project:#fragment]]
3876 <p>[[Project:#fragment]]
3882 div with no attributes
3884 <div>HTML rocks</div>
3886 <div>HTML rocks</div>
3891 div with double-quoted attribute
3893 <div id="rock">HTML rocks</div>
3895 <div id="rock">HTML rocks</div>
3900 div with single-quoted attribute
3902 <div id='rock'>HTML rocks</div>
3904 <div id="rock">HTML rocks</div>
3909 div with unquoted attribute
3911 <div id=rock>HTML rocks</div>
3913 <div id="rock">HTML rocks</div>
3918 div with illegal double attributes
3920 <div align="center" align="right">HTML rocks</div>
3922 <div align="right">HTML rocks</div>
3927 HTML multiple attributes correction
3929 <p class="error" class="awesome">Awesome!</p>
3931 <p class="awesome">Awesome!</p>
3936 Table multiple attributes correction
3939 !+ class="error" class="awesome"| status
3944 <th class="awesome"> status
3952 <DIV ALIGN="center">HTML ROCKS</DIV>
3954 <div align="center">HTML ROCKS</div>
3960 text with amp in the middle of nowhere
3964 <p>Remember AT&T?
3969 text with character entity: eacute
3971 I always thought é was a cute letter.
3973 <p>I always thought é was a cute letter.
3978 text with undefined character entity: xacute
3980 I always thought &xacute; was a cute letter.
3982 <p>I always thought &xacute; was a cute letter.
3994 [[Media:Foobar.jpg]]
3996 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
4001 Media link with text
4003 [[Media:Foobar.jpg|A neat file to look at]]
4005 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
4009 # FIXME: this is still bad HTML tag nesting
4011 Media link with nasty text
4012 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
4014 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
4016 <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>
4021 Media link to nonexistent file (bug 1702)
4023 [[Media:No such.jpg]]
4025 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
4030 Image link to nonexistent file (bug 1850 - good)
4032 [[Image:No such.jpg]]
4034 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
4039 :Image link to nonexistent file (bug 1850 - bad)
4041 [[:Image:No such.jpg]]
4043 <p><a href="/index.php?title=File:No_such.jpg&action=edit&redlink=1" class="new" title="File:No such.jpg (page does not exist)">Image:No such.jpg</a>
4050 Character reference normalization in link text (bug 1938)
4052 [[Main Page|this&that]]
4054 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
4059 Empty attribute crash test (bug 2067)
4061 <font color="">foo</font>
4063 <p><font color="">foo</font>
4068 Empty attribute crash test single-quotes (bug 2067)
4070 <font color=''>foo</font>
4072 <p><font color="">foo</font>
4077 Attribute test: equals, then nothing
4079 <font color=>foo</font>
4086 Attribute test: unquoted value
4088 <font color=x>foo</font>
4090 <p><font color="x">foo</font>
4095 Attribute test: unquoted but illegal value (hash)
4097 <font color=#x>foo</font>
4099 <p><font color="#x">foo</font>
4104 Attribute test: no value
4106 <font color>foo</font>
4108 <p><font color="color">foo</font>
4113 Bug 2095: link with three closing brackets
4117 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
4122 Bug 2095: link with pipe and three closing brackets
4126 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
4131 Bug 2095: link with pipe and three closing brackets, version 2
4133 [[Main Page|[http://example.com/]]]
4135 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
4145 Template:Dangerous attribute
4147 " onmouseover="alert(document.cookie)
4151 Template:Dangerous style attribute
4153 border-size: expression(alert(document.cookie))
4159 <div style="float: right; {{{1}}}">Magic div</div>
4163 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
4165 <div title="{{test}}"></div>
4167 <div title="This is a test template"></div>
4172 Bug 2304: HTML attribute safety (dangerous template; 2309)
4174 <div title="{{dangerous attribute}}"></div>
4176 <div title=""></div>
4181 Bug 2304: HTML attribute safety (dangerous style template; 2309)
4183 <div style="{{dangerous style attribute}}"></div>
4190 Bug 2304: HTML attribute safety (safe parameter; 2309)
4192 {{div style|width: 200px}}
4194 <div style="float: right; width: 200px">Magic div</div>
4199 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
4201 {{div style|width: expression(alert(document.cookie))}}
4203 <div>Magic div</div>
4208 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
4210 {{div style|"><script>alert(document.cookie)</script>}}
4212 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4217 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
4219 {{div style|" ><script>alert(document.cookie)</script>}}
4221 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
4226 Bug 2304: HTML attribute safety (link)
4228 <div title="[[Main Page]]"></div>
4230 <div title="[[Main Page]]"></div>
4235 Bug 2304: HTML attribute safety (italics)
4237 <div title="''foobar''"></div>
4239 <div title="''foobar''"></div>
4244 Bug 2304: HTML attribute safety (bold)
4246 <div title="'''foobar'''"></div>
4248 <div title="'''foobar'''"></div>
4254 Bug 2304: HTML attribute safety (ISBN)
4256 <div title="ISBN 1234567890"></div>
4258 <div title="ISBN 1234567890"></div>
4263 Bug 2304: HTML attribute safety (RFC)
4265 <div title="RFC 1234"></div>
4267 <div title="RFC 1234"></div>
4272 Bug 2304: HTML attribute safety (PMID)
4274 <div title="PMID 1234567890"></div>
4276 <div title="PMID 1234567890"></div>
4281 Bug 2304: HTML attribute safety (web link)
4283 <div title="http://example.com/"></div>
4285 <div title="http://example.com/"></div>
4290 Bug 2304: HTML attribute safety (named web link)
4292 <div title="[http://example.com/ link]"></div>
4294 <div title="[http://example.com/ link]"></div>
4299 Bug 3244: HTML attribute safety (extension; safe)
4301 <div style="<nowiki>background:blue</nowiki>"></div>
4303 <div style="background:blue"></div>
4308 Bug 3244: HTML attribute safety (extension; unsafe)
4310 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
4317 Math section safety when disabled
4319 <math><script>alert(document.cookies);</script></math>
4321 <p><math><script>alert(document.cookies);</script></math>
4325 # More MSIE fun discovered by Tom Gilder
4328 MSIE CSS safety test: spurious slash
4330 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
4337 MSIE CSS safety test: hex code
4339 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
4346 MSIE CSS safety test: comment in url
4348 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
4350 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
4355 MSIE CSS safety test: comment in expression
4357 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
4359 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
4365 Table attribute legitimate extension
4368 !+ style="<nowiki>color:blue</nowiki>"| status
4373 <th style="color:blue"> status
4379 Table attribute safety
4382 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
4400 Expansion of multi-line templates in attribute values (bug 6255)
4402 <div style="background: {{identity|#00FF00}}">-</div>
4404 <div style="background: #00FF00">-</div>
4410 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
4412 <div style="background:
4415 <div style="background: #00FF00">-</div>
4420 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
4422 <div style="background: #00FF00">-</div>
4424 <div style="background: #00FF00">-</div>
4429 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
4432 Parser hook: empty input
4445 Parser hook: empty input using terminated empty elements
4458 Parser hook: empty input using terminated empty elements (space before)
4471 Parser hook: basic input
4485 Parser hook: case insensitive
4499 Parser hook: case insensitive, redux
4512 Parser hook: nested tags
4516 <tag><tag></tag></tag>
4527 Parser hook: basic arguments
4529 <tag width=200 height = "100" depth = '50' square></tag>
4548 Parser hook: argument containing a forward slash (bug 5344)
4550 <tag filename='/tmp/bla'></tag>
4556 string(8) "/tmp/bla"
4563 Parser hook: empty input using terminated empty elements (bug 2374)
4577 # </tag> should be output literally since there is no matching tag that begins it
4579 Parser hook: basic arguments using terminated empty elements (bug 2374)
4581 <tag width=200 height = "100" depth = '50' square/>
4604 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
4608 Parser hook: static parser hook not inside a comment
4610 <statictag>hello, world</statictag>
4611 <statictag action=flush/>
4619 Parser hook: static parser hook inside a comment
4621 <!-- <statictag>hello, world</statictag> -->
4622 <statictag action=flush/>
4628 # Nested template calls; this case was broken by Parser.php rev 1.506,
4632 Template:One-parameter
4634 (My parameter is: {{{1}}})
4638 Template:Map-one-parameter
4644 Nested template calls
4646 {{Map-one-parameter|One-parameter|param}}
4648 <p>(My parameter is: param)
4657 Sanitizer: Closing of open tags
4659 <s></s><table></table>
4661 <s></s><table></table>
4666 Sanitizer: Closing of open but not closed tags
4675 Sanitizer: Closing of closed but not open tags
4684 Sanitizer: Closing of closed but not open table tags
4686 Table not started</td></tr></table>
4688 <p>Table not started</td></tr></table>
4693 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
4695 <span id="æ: v">byte</span>[[#æ: v|backlink]]
4697 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
4702 Sanitizer: Validating the contents of the id attribute (bug 4515)
4708 Something, but defenetly not <br id="9" />...
4712 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
4716 <br id="foo" /><br id="foo" />
4718 Something need to be done. foo-2 ?
4722 Language converter: output gets cut off unexpectedly (bug 5757)
4726 this bit is safe: }-
4728 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
4730 then we get cut off here: }-
4732 all additional text is vanished
4734 <p>this bit is safe: }-
4735 </p><p>but if we add a conversion instance: xxx
4736 </p><p>then we get cut off here: }-
4737 </p><p>all additional text is vanished
4742 Self closed html pairs (bug 5487)
4745 <center><font id="bug" />Centered text</center>
4746 <div><font id="bug2" />In div text</div>
4748 <center><font id="bug" />Centered text</center>
4749 <div><font id="bug2" />In div text</div>
4758 Punctuation: nbsp before exclamation
4762 <p>C'est grave !
4767 Punctuation: CSS !important (bug 11874)
4769 <div style="width:50% !important">important</div>
4771 <div style="width:50% !important">important</div>
4776 Punctuation: CSS ! important (bug 11874; with space after)
4778 <div style="width:50% ! important">important</div>
4780 <div style="width:50% ! important">important</div>
4786 HTML bullet list, closed tags (bug 5497)
4801 HTML bullet list, unclosed tags (bug 5497)
4818 HTML ordered list, closed tags (bug 5497)
4833 HTML ordered list, unclosed tags (bug 5497)
4850 HTML nested bullet list, closed tags (bug 5497)
4875 HTML nested bullet list, open tags (bug 5497)
4900 HTML nested ordered list, closed tags (bug 5497)
4925 HTML nested ordered list, open tags (bug 5497)
4950 HTML ordered list item with parameters oddity
4952 <ol><li id="fragment">One</li></ol>
4954 <ol><li id="fragment">One</li></ol>
4959 bug 5918: autonumbering
4961 [http://first/] [http://second] [ftp://ftp]
4965 [mailto:enclosed@mail.tld With target]
4967 [mailto:enclosed@mail.tld]
4969 mailto:inline@mail.tld
4971 <p><a href="http://first/" class="external autonumber" rel="nofollow">[1]</a> <a href="http://second" class="external autonumber" rel="nofollow">[2]</a> <a href="ftp://ftp" class="external autonumber" rel="nofollow">[3]</a>
4972 </p><p><a href="ftp://inlineftp" class="external free" rel="nofollow">ftp://inlineftp</a>
4973 </p><p><a href="mailto:enclosed@mail.tld" class="external text" rel="nofollow">With target</a>
4974 </p><p><a href="mailto:enclosed@mail.tld" class="external autonumber" rel="nofollow">[4]</a>
4975 </p><p><a href="mailto:inline@mail.tld" class="external free" rel="nofollow">mailto:inline@mail.tld</a>
4981 # Security and HTML correctness
4982 # From Nick Jenkins' fuzz testing
4986 Fuzz testing: Parser13
5001 Fuzz testing: Parser14
5006 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a>]</span> <span class="mw-headline" id="onmouseover.3D"> onmouseover= </span></h2>
5007 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
5009 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
5011 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
5016 Fuzz testing: Parser14-table
5021 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a>]</span> <span class="mw-headline" id="a">a</span></h2>
5022 <table style="__TOC__">
5028 # Known to produce bogus xml (extra </td>)
5030 Fuzz testing: Parser16
5039 <th>https://</th><th></th><th></th><th>
5047 Fuzz testing: Parser21
5050 ! irc://{{ftp://a" onmouseover="alert('hello world');"
5055 <th> <a href="irc://{{ftp://a" class="external free" rel="nofollow">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
5064 Fuzz testing: Parser22
5066 http://===r:::https://b
5070 <p><a href="http://===r:::https://b" class="external free" rel="nofollow">http://===r:::https://b</a>
5078 # Known to produce bad XML for now
5080 Fuzz testing: Parser24
5087 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
5088 <br style="onmouseover='alert(document.cookie);' " />
5090 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5095 <u class="|">}}}} >
5096 <br style="onmouseover='alert(document.cookie);'" />
5098 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
5107 # Note: the current result listed for this is not what the original one was,
5108 # but the original bug was JavaScript injection, which is fixed in any case.
5109 # It's not clear that the original result listed was any more correct than the
5110 # current one. Original result:
5113 # <li class="||">
5114 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5116 Fuzz testing: Parser25 (bug 6055)
5122 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
5124 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
5129 Fuzz testing: URL adjacent extension (with space, clean)
5132 http://example.com <nowiki>junk</nowiki>
5134 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a> junk
5139 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
5142 http://example.com<nowiki>junk</nowiki>
5144 <p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>junk
5149 Fuzz testing: URL adjacent extension (no space, dirty; pre)
5152 http://example.com<pre>junk</pre>
5154 <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a><pre>junk</pre>
5159 Fuzz testing: image with bogus manual thumbnail
5161 [[Image:foobar.jpg|thumbnail= ]]
5163 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
5168 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
5170 <pre dir=" "></pre>
5172 <pre dir=" "></pre>
5177 Parsing optional HTML elements (Bug 6171)
5182 <td> Some tabular data</td>
5183 <td> More tabular data ...
5184 <td> And yet som tabular data</td>
5190 <td> Some tabular data</td>
5191 <td> More tabular data ...
5192 </td><td> And yet som tabular data</td>
5199 Correct handling of <td>, <tr> (Bug 6171)
5204 <td> Some tabular data</td>
5205 <td> More tabular data ...</td>
5206 <td> And yet som tabular data</td>
5212 <td> Some tabular data</td>
5213 <td> More tabular data ...</td>
5214 <td> And yet som tabular data</td>
5222 Parsing crashing regression (fr:JavaScript)
5226 <p></body></x>
5231 Inline wiki vs wiki block nesting
5237 <p><b>Bold paragraph</b>
5238 </p><p>New wiki paragraph
5243 Inline HTML vs wiki block nesting
5251 <p><b>Bold paragraph</b>
5252 </p><p>New wiki paragraph
5256 # Original result was this:
5257 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
5259 # While that might be marginally more intuitive, maybe, the six-apostrophe
5260 # construct is clearly pathological and the result stated here (which is what
5261 # the parser actually does) is about as reasonable as anything.
5263 Mixing markup for italics and bold
5266 '''bold''''''bold''bolditalics'''''
5268 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
5276 Article for special page transclusion test
5280 Special page transclusion
5283 {{Special:Prefixindex/Xyzzyx}}
5287 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5292 Special page transclusion twice (bug 5021)
5295 {{Special:Prefixindex/Xyzzyx}}
5296 {{Special:Prefixindex/Xyzzyx}}
5300 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5303 <table border="0" id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
5308 Transclusion of default MediaWiki message
5310 {{MediaWiki:Mainpage}}
5317 Transclusion of nonexistent MediaWiki message
5319 {{MediaWiki:Mainpagexxx}}
5321 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
5326 Transclusion of MediaWiki message with underscore
5328 {{MediaWiki:history_short}}
5335 Transclusion of MediaWiki message with space
5337 {{MediaWiki:history short}}
5344 Invalid header with following text
5354 Section extraction test (section 0)
5374 Section extraction test (section 1)
5396 Section extraction test (section 2)
5417 Section extraction test (section 3)
5437 Section extraction test (section 4)
5461 Section extraction test (section 5)
5481 Section extraction test (section 6)
5502 Section extraction test (section 7)
5522 Section extraction test (section 8)
5542 Section extraction test (section 9)
5563 Section extraction test (section 10)
5583 Section extraction test (nonexistent section 11)
5602 Section extraction test with bogus heading (section 1)
5607 ==bogus== not a legal section
5611 ==bogus== not a legal section
5615 Section extraction test with bogus heading (section 2)
5620 ==bogus== not a legal section
5627 Section extraction test with comment after heading (section 1)
5639 Section extraction test with comment after heading (section 2)
5651 Section extraction test with bogus <nowiki> heading (section 1)
5656 ==bogus== <nowiki>not a legal section</nowiki>
5660 ==bogus== <nowiki>not a legal section</nowiki>
5664 Section extraction test with bogus <nowiki> heading (section 2)
5669 ==bogus== <nowiki>not a legal section</nowiki>
5676 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
5677 # instead of respecting commented sections
5679 Section extraction prefixed by comment (section 1)
5690 Section extraction prefixed by comment (section 2)
5701 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
5702 # instead of respecting HTML-style headings
5704 Section extraction, mixed wiki and html (section 1)
5720 Section extraction, mixed wiki and html (section 2)
5736 # Formerly testing for bug 3342
5738 Section extraction, heading surrounded by <noinclude>
5742 <noinclude>==unmarked==</noinclude>
5750 Section replacement test (section 0)
5781 Section replacement test (section 1)
5810 Section replacement test (section 2)
5840 Section replacement test (section 3)
5871 Section replacement test (section 4)
5898 Section replacement test (section 5)
5929 Section replacement test (section 6)
5959 Section replacement test (section 7)
5990 Section replacement test (section 8)
6021 Section replacement test (section 9)
6050 Section replacement test (section 10)
6080 Section replacement test with initial whitespace (bug 13728)
6084 Preformatted initial line
6088 Preformatted initial line
6095 Section extraction, heading followed by pre with 20 spaces (bug 6398)
6107 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
6120 Section extraction, <pre> around bogus header (bug 10309)
6137 Section replacement, <pre> around bogus header (bug 10309)
6139 noxml replace=2,"xxx"
6160 Handling of 
 in URLs
6164 <ul><li><ul><li><a href="irc://%0Aa" class="external free" rel="nofollow">irc://%0Aa</a>
6171 5 quotes, code coverage +1 line
6178 Special:Search page linking.
6182 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
6197 * {{SUBJECTPAGENAME}}
6198 * {{SUBJECTPAGENAMEE}}
6205 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
6207 <ul><li> Parser test
6208 </li><li> Parser test
6209 </li><li> Parser test
6210 </li><li> Parser_test
6211 </li><li> Parser test
6212 </li><li> Parser_test
6213 </li><li> Talk:Parser test
6214 </li><li> Talk:Parser_test
6215 </li><li> Parser test
6216 </li><li> Parser_test
6223 </li><li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
6227 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
6237 image4 |300px| centre
6238 image5.svg| http://///////
6243 <table class="gallery" cellspacing="0" cellpadding="0">
6245 <td><div class="gallerybox" style="width: 155px;">
6246 <div style="height: 152px;">Image1.png</div>
6247 <div class="gallerytext">
6250 <td><div class="gallerybox" style="width: 155px;">
6251 <div style="height: 152px;">Image2.gif</div>
6252 <div class="gallerytext">
6257 <td><div class="gallerybox" style="width: 155px;">
6258 <div style="height: 152px;">Image3</div>
6259 <div class="gallerytext">
6262 <td><div class="gallerybox" style="width: 155px;">
6263 <div style="height: 152px;">Image4</div>
6264 <div class="gallerytext">
6271 <td><div class="gallerybox" style="width: 155px;">
6272 <div style="height: 152px;">Image5.svg</div>
6273 <div class="gallerytext">
6274 <p><a href="http://///////" class="external free" rel="nofollow">http://///////</a>
6278 <td><div class="gallerybox" style="width: 155px;">
6279 <div style="height: 152px;">* image6</div>
6280 <div class="gallerytext">
6289 HTML Hex character encoding (spells the word "JavaScript")
6291 JavaScript
6293 <p>JavaScript
6298 __FORCETOC__ override
6310 ISBN 978-0-1234-56 789
6312 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
6317 ISBN followed by 5 spaces
6328 ISBN ISBN 1234567890
6330 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
6339 <p>RFC <a href="http://tools.ietf.org/html/rfc1234" class="external mw-magiclink-rfc">RFC 1234</a>
6344 Double RFC with a wiki link
6348 <p>RFC <a href="/index.php?title=RFC_1234&action=edit&redlink=1" class="new" title="RFC 1234 (page does not exist)">RFC 1234</a>
6357 <p><a href="http://tools.ietf.org/html/rfc983" class="external mw-magiclink-rfc">RFC 983</a> 987
6362 Centre-aligned image
6364 [[Image:foobar.jpg|centre]]
6366 <div class="center"><div class="floatnone"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div></div>
6373 [[Image:foobar.jpg|none]]
6375 <div class="floatnone"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
6380 Width + Height sized image (using px) (height is ignored)
6382 [[Image:foobar.jpg|640x480px]]
6384 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" /></a>
6389 Width-sized image (using px, no following whitespace)
6391 [[Image:foobar.jpg|640px]]
6393 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" /></a>
6398 Width-sized image (using px, with following whitespace - test regression from r39467)
6400 [[Image:foobar.jpg|640px ]]
6402 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" /></a>
6407 Width-sized image (using px, with preceding whitespace - test regression from r39467)
6409 [[Image:foobar.jpg| 640px]]
6411 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" /></a>
6416 Another italics / bold test
6424 # Note the results may be incorrect, as parserTest output included this:
6425 # XML error: Mismatched tag at byte 6120:
6426 # ...<dd> </dt></dl> </dd...
6434 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
6445 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
6447 Images with the "|" character in the comment
6451 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
6453 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="An external URL" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>An <a href="http://test/?param1=|left|&param2=|x" class="external text" rel="nofollow">external</a> URL</div></div></div>
6458 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
6460 <html><script>alert(1);</script></html>
6462 <p><html><script>alert(1);</script></html>
6467 HTML with raw HTML ($wgRawHtml==true)
6471 <html><script>alert(1);</script></html>
6473 <p><script>alert(1);</script>
6478 Parents of subpages, one level up
6480 subpage title=[[Subpage test/L1/L2/L3]]
6484 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (page does not exist)">L2</a>
6490 Parents of subpages, one level up, not named
6492 subpage title=[[Subpage test/L1/L2/L3]]
6496 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (page does not exist)">Subpage test/L1/L2</a>
6503 Parents of subpages, two levels up
6506 subpage title=[[Subpage test/L1/L2/L3]]
6510 <p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">L1</a>
6515 Parents of subpages, two levels up, without trailing slash or name.
6517 subpage title=[[Subpage test/L1/L2/L3]]
6526 Parents of subpages, two levels up, with lots of extra trailing slashes.
6528 subpage title=[[Subpage test/L1/L2/L3]]
6532 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
6537 Definition list code coverage
6543 <dl><dt> title </dt><dd> def
6544 </dd><dt> title </dt><dd> def
6545 </dd><dt>title</dt><dd> def
6551 Don't fall for the self-closing div
6553 <div>hello world</div/>
6555 <div>hello world</div>
6564 <p>[[:Template:Msg]]
6573 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
6577 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
6579 Always escape literal '>' in output, not just after '<'
6593 <p>This is a test template
6594 This is a test template
6606 Inclusion of !userCanEdit() content
6610 <h2><span class="editsection">[<a href="/index.php?title=MediaWiki:Fake&action=edit&section=T-1" title="MediaWiki:Fake">edit</a>]</span> <span class="mw-headline" id="header">header</span></h2>
6616 Out-of-order TOC heading levels
6625 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6627 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
6629 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
6630 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
6633 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
6635 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
6636 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
6640 </td></tr></table><script>if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
6641 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2">2</span></h2>
6642 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a>]</span> <span class="mw-headline" id="6">6</span></h6>
6643 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a>]</span> <span class="mw-headline" id="3">3</span></h3>
6644 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a>]</span> <span class="mw-headline" id="1">1</span></h1>
6645 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: 5">edit</a>]</span> <span class="mw-headline" id="5">5</span></h5>
6646 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2_2">2</span></h2>
6652 ISBN with a dummy number
6662 ISBN with space-delimited number
6666 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
6672 ISBN with multiple spaces, no number
6691 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
6692 </p><p>ISBN 12345678901
6698 ISBN with trailing year (bug 8110)
6700 ISBN 1-234-56789-0 - 2006
6702 ISBN 1 234 56789 0 - 2006
6704 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
6705 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
6713 {{anchorencode:foo bar©#%n}}
6715 <p>foo_bar.C2.A9.23.25n
6721 Bug 8293: Use of center tag ruins paragraph formatting
6743 ### Language variants related tests
6746 Self-link in language variants
6748 title=[[Dunav]] language=sr
6750 Both [[Dunav]] and [[Дунав]] are names for this river.
6752 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
6758 Link to pages in language variants
6762 Main Page can be written as [[Маин Паге]]
6764 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
6770 Multiple links to pages in language variants
6774 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
6776 <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>.
6782 Simple template in language variants
6788 <p>This is a test template
6794 Template with explicit namespace in language variants
6800 <p>This is a test template
6806 Basic test for template parameter in language variants
6810 {{парамтест|param=foo}}
6812 <p>This is a test template with parameter foo
6818 Simple category in language variants
6822 [[Category:МедиаWики Усер'с Гуиде]]
6824 <a href="/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%98%D0%B0:MediaWiki_User%27s_Guide" title="Категорија:MediaWiki User's Guide">MediaWiki User's Guide</a>
6829 Stripping -{}- tags (language variants)
6833 Latin proverb: -{Ne nuntium necare}-
6835 <p>Latin proverb: Ne nuntium necare
6841 Prevent conversion with -{}- tags (language variants)
6843 language=sr variant=sr-ec
6845 Latinski: -{Ne nuntium necare}-
6847 <p>Латински: Ne nuntium necare
6853 Prevent conversion of text with -{}- tags (language variants)
6855 language=sr variant=sr-ec
6857 Latinski: -{Ne nuntium necare}-
6859 <p>Латински: Ne nuntium necare
6865 Prevent conversion of links with -{}- tags (language variants)
6867 language=sr variant=sr-ec
6871 <p><a href="/index.php?title=Main_Page&variant=sr-ec" title="Main Page">Main Page</a>
6877 -{}- tags within headlines (within html for parserConvert())
6879 language=sr variant=sr-ec
6883 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Уреди део: Naslov">уреди</a>]</span> <span class="mw-headline" id="-.7BNaslov.7D-"> Naslov </span></h2>
6889 Explicit definition of language variant alternatives
6891 language=zh variant=zh-tw
6893 -{zh:China;zh-tw:Taiwan}-, not China
6895 <p>Taiwan, not China
6901 Explicit session-wise language variant mapping (A flag and - flag)
6903 language=zh variant=zh-tw
6905 Taiwan is not China.
6906 But -{A|zh:China;zh-tw:Taiwan}- is China,
6907 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
6908 and -{China}- is China.
6910 <p>Taiwan is not China.
6911 But Taiwan is Taiwan,
6912 (This should be stripped!)
6918 Explicit session-wise language variant mapping (H flag for hide)
6920 language=zh variant=zh-tw
6922 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
6925 <p>(This should be stripped!)
6931 Adding explicit conversion rule for title (T flag)
6933 language=zh variant=zh-tw showtitle
6935 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
6938 <p>Should be stripped!
6943 Testing that changing the language variant here in the tests actually works
6945 language=zh variant=zh showtitle
6947 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
6950 <p>Should be stripped!
6955 Raw output of variant escape tags (R flag)
6957 language=zh variant=zh-tw
6959 Raw: -{R|zh:China;zh-tw:Taiwan}-
6961 <p>Raw: zh:China;zh-tw:Taiwan
6966 Nested using of manual convert syntax
6968 language=zh variant=zh-hk
6970 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
6972 <p>Nested: Hello Hong Kong!
6977 Do not convert roman numbers to language variants
6979 language=sr variant=sr-ec
6983 <p>Фридрих IV је цар.
6988 Unclosed language converter markup "-{"
6999 Don't convert raw rule "-{R|=>}-" to "=>"
7016 Bug 529: Uncovered bullet
7027 Bug 529: Uncovered table already at line-start
7048 Bug 529: Uncovered bullet in parser function result
7050 * Foo {{lc:{{bullet}} }}
7059 Bug 5678: Double-parsed template argument
7061 {{lc:{{{1}}}|hello}}
7068 Bug 5678: Double-parsed template invocation
7070 {{lc:{{paramtest {{!}} param = hello }} }}
7072 <p>{{paramtest | param = hello }}
7077 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
7103 Morwen/13: Unclosed link followed by heading
7110 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
7115 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
7122 <h1> <span class="mw-headline" id="heading">heading</span></h1>
7127 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
7134 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
7149 Paragraphs inside divs (no extra line breaks)
7161 Paragraphs inside divs (extra line break on open)
7176 Paragraphs inside divs (extra line break on close)
7191 Paragraphs inside divs (extra line break on open and close)
7207 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
7209 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
7213 <blockquote>Line one
7215 Line two</blockquote>
7217 <blockquote>Line one
7218 Line two</blockquote>
7223 Bug 6200: paragraphs inside blockquotes (extra line break on open)
7230 Line two</blockquote>
7235 Line two</blockquote>
7240 Bug 6200: paragraphs inside blockquotes (extra line break on close)
7244 <blockquote>Line one
7249 <blockquote>Line one
7257 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
7276 Paragraphs inside blockquotes/divs (no extra line breaks)
7278 <blockquote><div>Line one
7280 Line two</div></blockquote>
7282 <blockquote><div>Line one
7283 Line two</div></blockquote>
7288 Paragraphs inside blockquotes/divs (extra line break on open)
7293 Line two</div></blockquote>
7298 Line two</div></blockquote>
7303 Paragraphs inside blockquotes/divs (extra line break on close)
7305 <blockquote><div>Line one
7310 <blockquote><div>Line one
7318 Paragraphs inside blockquotes/divs (extra line break on open and close)
7335 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
7337 wgLinkHolderBatchSize=0
7343 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
7344 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
7345 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
7350 Free external link invading image caption
7352 [[Image:Foobar.jpg|thumb|http://x|hello]]
7354 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>hello</div></div></div>
7359 Bug 15196: localised external link numbers
7363 [http://en.wikipedia.org/]
7365 <p><a href="http://en.wikipedia.org/" class="external autonumber" rel="nofollow">[۱]</a>
7370 Multibyte character in padleft
7372 {{padleft:-Hello|7|Æ}}
7379 Multibyte character in padright
7381 {{padright:Hello-|7|Æ}}
7394 <p><span class="mw-formatted-date" title="2009-03-24"><a href="/index.php?title=2009&action=edit&redlink=1" class="new" title="2009 (page does not exist)">2009</a>-<a href="/index.php?title=March_24&action=edit&redlink=1" class="new" title="March 24 (page does not exist)">03-24</a></span>
7399 formatdate parser function
7401 {{#formatdate:2009-03-24}}
7403 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
7408 formatdate parser function, with default format
7410 {{#formatdate:2009-03-24|mdy}}
7412 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
7417 Linked date with autoformatting disabled
7419 wgUseDynamicDates=false
7423 <p><a href="/index.php?title=2009-03-24&action=edit&redlink=1" class="new" title="2009-03-24 (page does not exist)">2009-03-24</a>
7428 Spacing of numbers in formatted dates
7430 {{#formatdate:January 15}}
7432 <p><span class="mw-formatted-date" title="01-15">January 15</span>
7437 Spacing of numbers in formatted dates (linked)
7439 wgUseDynamicDates=true
7443 <p><span class="mw-formatted-date" title="01-15"><a href="/index.php?title=January_15&action=edit&redlink=1" class="new" title="January 15 (page does not exist)">January 15</a></span>
7456 Edit comment with link
7460 I like the [[Main Page]] a lot
7462 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
7466 Edit comment with link and link text
7470 I like the [[Main Page|best pages]] a lot
7472 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
7476 Edit comment with link and link text with suffix
7480 I like the [[Main Page|best page]]s a lot
7482 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
7486 Edit comment with section link (non-local, eg in history list)
7488 comment title=[[Main Page]]
7490 /* External links */ removed bogus entries
7492 <span class="autocomment"><a href="/wiki/Main_Page#External_links" title="Main Page">→</a>External links: </span> removed bogus entries
7496 Edit comment with section link (local, eg in diff view)
7498 comment local title=[[Main Page]]
7500 /* External links */ removed bogus entries
7502 <span class="autocomment"><a href="#External_links">→</a>External links: </span> removed bogus entries
7506 Edit comment with subpage link (bug 14080)
7510 title=[[Subpage test]]
7512 Poked at a [[/subpage]] here...
7514 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
7518 Edit comment with subpage link and link text (bug 14080)
7522 title=[[Subpage test]]
7524 Poked at a [[/subpage|neat little page]] here...
7526 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
7530 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
7533 title=[[Subpage test]]
7535 Poked at a [[/subpage]] here...
7537 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
7541 Edit comment with bare anchor link (local, as on diff)
7549 <a href="#section">#section</a>
7553 Edit comment with bare anchor link (non-local, as on history)
7560 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
7563 Note: some elements used in these Microdata examples don't work, like <img>
7566 Microdata: vCard example from spec (with some tweaks)
7568 <div id="jack" itemscope itemtype="http://microformats.org/profile/hcard">
7569 <h1 itemprop="fn">Jack Bauer</h1>
7570 <img itemprop="photo" alt="" src="jack-bauer.jpg">
7571 <p itemprop="org" itemscope>
7572 <span itemprop="organization-name">Counter-Terrorist Unit</span>
7573 (<span itemprop="organization-unit">Los Angeles Division</span>)
7576 <span itemprop="adr" itemscope>
7577 <span itemprop="street-address">10201 W. Pico Blvd.</span><br>
7578 <span itemprop="locality">Los Angeles</span>,
7579 <span itemprop="region">CA</span>
7580 <span itemprop="postal-code">90064</span><br>
7581 <span itemprop="country-name">United States</span><br>
7583 <span itemprop="geo">34.052339;-118.410623</span>
7585 <h2>Assorted Contact Methods</h2>
7587 <li itemprop="tel" itemscope>
7588 <span itemprop="value">+1 (310) 597 3781</span> <span itemprop="type">work</span>
7589 <meta itemprop="type" content="pref">
7591 <li><a itemprop="url" href="http://en.wikipedia.org/wiki/Jack_Bauer">I'm on Wikipedia</a>
7592 so you can leave a message on my user talk page.</li>
7593 <li><a itemprop="url" href="http://www.jackbauerfacts.com/">Jack Bauer Facts</a></li>
7594 <li itemprop="email"><a href="mailto:j.bauer@la.ctu.gov.invalid">j.bauer@la.ctu.gov.invalid</a></li>
7595 <li itemprop="tel" itemscope>
7596 <span itemprop="value">+1 (310) 555 3781</span> <span>
7597 <meta itemprop="type" content="cell">mobile phone</span>
7600 <p itemprop="note">If I'm out in the field, you may be better off contacting <span
7601 itemprop="agent" itemscope itemtype="http://microformats.org/profile/hcard"><a
7602 itemprop="email" href="mailto:c.obrian@la.ctu.gov.invalid"><span
7603 itemprop="fn">Chloe O'Brian</span></a></span> if it's about work, or ask <span
7604 itemprop="agent">Tony Almeida</span> if you're interested in the CTU five-a-side football team we're trying to get going.</p>
7605 <span itemprop="rev" itemscope>
7606 <meta itemprop="type" content="date-time">
7607 <meta itemprop="value" content="2008-07-20T21:00:00+0100">
7609 <p itemprop="tel" itemscope><strong>Update!</strong>
7610 My new <span itemprop="type">home</span> phone number is
7611 <span itemprop="value">01632 960 123</span>.
7615 <div id="jack" itemscope="itemscope" itemtype="http://microformats.org/profile/hcard">
7616 <h1 itemprop="fn"> <span class="mw-headline" id="Jack_Bauer">Jack Bauer</span></h1>
7617 <p><img itemprop="photo" alt="" src="jack-bauer.jpg">
7619 <p itemprop="org" itemscope="itemscope">
7620 <span itemprop="organization-name">Counter-Terrorist Unit</span>
7621 (<span itemprop="organization-unit">Los Angeles Division</span>)
7624 <span itemprop="adr" itemscope="itemscope">
7625 <span itemprop="street-address">10201 W. Pico Blvd.</span><br />
7626 <span itemprop="locality">Los Angeles</span>,
7627 <span itemprop="region">CA</span>
7628 <span itemprop="postal-code">90064</span><br />
7629 <span itemprop="country-name">United States</span><br />
7631 <span itemprop="geo">34.052339;-118.410623</span>
7633 <h2> <span class="mw-headline" id="Assorted_Contact_Methods">Assorted Contact Methods</span></h2>
7635 <li itemprop="tel" itemscope="itemscope">
7636 <span itemprop="value">+1 (310) 597 3781</span> <span itemprop="type">work</span>
7637 <meta itemprop="type" content="pref">
7639 <li><a href="http://en.wikipedia.org/wiki/Jack_Bauer" class="external " itemprop="url">I'm on Wikipedia</a>
7640 so you can leave a message on my user talk page.</li>
7641 <li><a href="http://www.jackbauerfacts.com/" class="external " itemprop="url">Jack Bauer Facts</a></li>
7642 <li itemprop="email"><a href="mailto:j.bauer@la.ctu.gov.invalid" class="external ">j.bauer@la.ctu.gov.invalid</a></li>
7643 <li itemprop="tel" itemscope="itemscope">
7644 <span itemprop="value">+1 (310) 555 3781</span> <span>
7645 <meta itemprop="type" content="cell">mobile phone</span>
7648 <p itemprop="note">If I'm out in the field, you may be better off contacting <span itemprop="agent" itemscope="itemscope" itemtype="http://microformats.org/profile/hcard"><a href="mailto:c.obrian@la.ctu.gov.invalid" class="external " itemprop="email"><span itemprop="fn">Chloe O'Brian</span></a></span> if it's about work, or ask <span itemprop="agent">Tony Almeida</span> if you're interested in the CTU five-a-side football team we're trying to get going.</p>
7649 <p><span itemprop="rev" itemscope="itemscope">
7650 <meta itemprop="type" content="date-time">
7651 <meta itemprop="value" content="2008-07-20T21:00:00+0100">
7654 <p itemprop="tel" itemscope="itemscope"><strong>Update!</strong>
7655 My new <span itemprop="type">home</span> phone number is
7656 <span itemprop="value">01632 960 123</span>.
7663 Microdata: vEvent example from spec (with some tweaks)
7665 <div itemscope itemtype="http://microformats.org/profile/hcalendar#vevent">
7667 <strong itemprop="summary">Bluesday Tuesday: Money Road</strong>,
7668 <time itemprop="dtstart" datetime="2009-05-05T19:00:00Z">May 5th at 7pm</time>
7669 to <time itemprop="dtend" content="2009-05-05T21:00:00Z">9pm</time>,
7670 at <span itemprop="location">The RoadHouse</span>!</p>
7671 <p><a href="http://livebrum.co.uk/2009/05/05/bluesday-tuesday-money-road"
7672 itemprop="url">See this event on livebrum.co.uk</a>.</p>
7673 <meta itemprop="description" content="via livebrum.co.uk">
7676 <div itemscope="itemscope" itemtype="http://microformats.org/profile/hcalendar#vevent">
7678 <strong itemprop="summary">Bluesday Tuesday: Money Road</strong>,
7679 <time itemprop="dtstart" datetime="2009-05-05T19:00:00Z">May 5th at 7pm</time>
7680 to <time itemprop="dtend" content="2009-05-05T21:00:00Z">9pm</time>,
7681 at <span itemprop="location">The RoadHouse</span>!</p>
7682 <p><a href="http://livebrum.co.uk/2009/05/05/bluesday-tuesday-money-road" class="external " itemprop="url">See this event on livebrum.co.uk</a>.</p>
7683 <p><meta itemprop="description" content="via livebrum.co.uk">
7690 Microdata: license example from spec (with some tweaks)
7692 <div itemscope itemtype="http://n.whatwg.org/work">
7693 <img itemprop="work" src="mypond.jpeg">
7694 <p><cite itemprop="title">My Pond</cite></p>
7695 <p><small>Licensed under the <a itemprop="license"
7696 href="http://creativecommons.org/licenses/by-sa/3.0/us/">Creative
7697 Commons Attribution-Share Alike 3.0 United States License</a>
7698 and the <a itemprop="license"
7699 href="http://www.opensource.org/licenses/mit-license.php">MIT
7700 license</a>.</small></p>
7703 <div itemscope="itemscope" itemtype="http://n.whatwg.org/work">
7704 <p><img itemprop="work" src="mypond.jpeg">
7706 <p><cite itemprop="title">My Pond</cite></p>
7707 <p><small>Licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/us/" class="external " itemprop="license">Creative
7708 Commons Attribution-Share Alike 3.0 United States License</a>
7709 and the <a href="http://www.opensource.org/licenses/mit-license.php" class="external " itemprop="license">MIT
7710 license</a>.</small></p>
7716 Microdata: license example from spec with bad itemtype
7718 <div itemscope itemtype="http://nonstandard.invalid/">
7719 <img itemprop="work" src="mypond.jpeg">
7720 <p><cite itemprop="title">My Pond</cite></p>
7721 <p><small>Licensed under the <a itemprop="license"
7722 href="http://creativecommons.org/licenses/by-sa/3.0/us/">Creative
7723 Commons Attribution-Share Alike 3.0 United States License</a>
7724 and the <a itemprop="license"
7725 href="http://www.opensource.org/licenses/mit-license.php">MIT
7726 license</a>.</small></p>
7730 <p><img itemprop="work" src="mypond.jpeg">
7732 <p><cite itemprop="title">My Pond</cite></p>
7733 <p><small>Licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/us/" class="external " itemprop="license">Creative
7734 Commons Attribution-Share Alike 3.0 United States License</a>
7735 and the <a href="http://www.opensource.org/licenses/mit-license.php" class="external " itemprop="license">MIT
7736 license</a>.</small></p>
7742 MediaWiki:bad image list
7744 * [[File:Bad.jpg]] except [[Nasty page]]
7748 Bad images - basic functionality
7755 Bad images - bug 16039: text after bad image disappears
7773 Try for 100% code coverage