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 # disabled do not run test
23 # For testing purposes, temporary articles can created:
24 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
25 # where '/' denotes a newline.
27 # This is the standard article assumed to exist.
47 This is a simple paragraph.
49 <p>This is a simple paragraph.
69 * plain''italic''plain
70 * plain''italic''plain''italic''plain
71 * plain'''bold'''plain
72 * plain'''bold'''plain'''bold'''plain
73 * plain''italic''plain'''bold'''plain
74 * plain'''bold'''plain''italic''plain
75 * plain''italic'''bold-italic'''italic''plain
76 * plain'''bold''bold-italic''bold'''plain
77 * plain'''''bold-italic'''italic''plain
78 * plain'''''bold-italic''bold'''plain
79 * plain''italic'''bold-italic'''''plain
80 * plain'''bold''bold-italic'''''plain
81 * plain l'''italic''plain
84 </li><li> plain<i>italic</i>plain
85 </li><li> plain<i>italic</i>plain<i>italic</i>plain
86 </li><li> plain<b>bold</b>plain
87 </li><li> plain<b>bold</b>plain<b>bold</b>plain
88 </li><li> plain<i>italic</i>plain<b>bold</b>plain
89 </li><li> plain<b>bold</b>plain<i>italic</i>plain
90 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
91 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
92 </li><li> plain<i><b>bold-italic</b>italic</i>plain
93 </li><li> plain<b><i>bold-italic</i>bold</b>plain
94 </li><li> plain<i>italic<b>bold-italic</b></i>plain
95 </li><li> plain<b>bold<i>bold-italic</i></b>plain
96 </li><li> plain l'<i>italic</i>plain
102 ### <nowiki> test cases
106 <nowiki> unordered list
108 <nowiki>* This is not an unordered list item.</nowiki>
110 <p>* This is not an unordered list item.
117 <nowiki>Lorem ipsum dolor
138 :There is not nowiki.
139 :There is <nowiki>nowiki</nowiki>.
141 #There is not nowiki.
142 #There is <nowiki>nowiki</nowiki>.
144 *There is not nowiki.
145 *There is <nowiki>nowiki</nowiki>.
147 <dl><dd>There is not nowiki.
148 </dd><dd>There is nowiki.
150 <ol><li>There is not nowiki.
151 </li><li>There is nowiki.
153 <ul><li>There is not nowiki.
154 </li><li>There is nowiki.
165 <!-- comment 1 --> asdf
201 asdf<!-- comment 1 -->jkl
211 <!-- foo --> b <!-- bar -->
225 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
231 Comment semantics and delimiters
233 <!-- --><!----><!-----><!------>
239 Comment semantics and delimiters, redux
241 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
242 -- foo -- funky huh? ... -->
248 Comment semantics and delimiters: directors cut
250 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
251 everything starting with < followed by !-- until the first -- and > we see,
252 that wouldn't be valid XML however, since in XML -- has to terminate a comment
260 Comment semantics: nesting
262 <!--<!-- no, we're not going to do anything fancy here -->-->
270 ### Preformatted text
279 And a [[Main Page|link]]
285 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
297 <dl><dt> name </dt><dd> Definition
307 <dl><dd> Indented text
313 Definition list with no space
317 <dl><dt>name</dt><dd>Definition
323 Definition list with URL link
325 ; http://example.com/ : definition
327 <dl><dt> <a href="http://example.com/" class='external free' title="http://example.com/" rel="nofollow">http://example.com/</a> </dt><dd> definition
333 Definition list with bracketed URL link
335 ;[http://www.example.com/ Example]:Something about it
337 <dl><dt><a href="http://www.example.com/" class='external text' title="http://www.example.com/" rel="nofollow">Example</a></dt><dd>Something about it
343 Definition list with wikilink containing colon
345 ; [[Help:FAQ]]: The least-read page on Wikipedia
347 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit" class="new" title="Help:FAQ">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
352 # At Brion's and JeLuF's insistence... :)
354 Definition list with wikilink containing colon
356 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
358 <dl><dt> <a href="news:alt.wikipedia.rox" class='external free' title="news:alt.wikipedia.rox" rel="nofollow">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
364 Malformed definition list with colon
366 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
368 <dl><dt> <a href="news:alt.wikipedia.rox" class='external free' title="news:alt.wikipedia.rox" rel="nofollow">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
374 Definition lists: colon in external link text
376 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
378 <dl><dt> <a href="http://www.wikipedia2.org/" class='external text' title="http://www.wikipedia2.org/" rel="nofollow">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
388 External links: non-bracketed
390 Non-bracketed: http://example.com
392 <p>Non-bracketed: <a href="http://example.com" class='external free' title="http://example.com" rel="nofollow">http://example.com</a>
397 External links: numbered
399 Numbered: [http://example.com]
400 Numbered: [http://example.net]
401 Numbered: [http://example.org]
403 <p>Numbered: <a href="http://example.com" class='external autonumber' title="http://example.com" rel="nofollow">[1]</a>
404 Numbered: <a href="http://example.net" class='external autonumber' title="http://example.net" rel="nofollow">[2]</a>
405 Numbered: <a href="http://example.org" class='external autonumber' title="http://example.org" rel="nofollow">[3]</a>
410 External links: specified text
412 Specified text: [http://example.com link]
414 <p>Specified text: <a href="http://example.com" class='external text' title="http://example.com" rel="nofollow">link</a>
419 External links: trail
421 Linktrails should not work for external links: [http://example.com link]s
423 <p>Linktrails should not work for external links: <a href="http://example.com" class='external text' title="http://example.com" rel="nofollow">link</a>s
428 External links: dollar sign in URL
430 http://example.com/1$2345
432 <p><a href="http://example.com/1$2345" class='external free' title="http://example.com/1$2345" rel="nofollow">http://example.com/1$2345</a>
437 External links: dollar sign in URL (named)
439 [http://example.com/1$2345]
441 <p><a href="http://example.com/1$2345" class='external autonumber' title="http://example.com/1$2345" rel="nofollow">[1]</a>
446 External links: open square bracket forbidden in URL (bug 4377)
448 http://example.com/1[2345
450 <p><a href="http://example.com/1" class='external free' title="http://example.com/1" rel="nofollow">http://example.com/1</a>[2345
455 External links: open square bracket forbidden in URL (named) (bug 4377)
457 [http://example.com/1[2345]
459 <p><a href="http://example.com/1" class='external text' title="http://example.com/1" rel="nofollow">[2345</a>
466 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
468 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
473 External image from https
475 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
477 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
482 Link to non-http image, no img tag
484 Link to non-http image, no img tag: ftp://example.com/test.jpg
486 <p>Link to non-http image, no img tag: <a href="ftp://example.com/test.jpg" class='external free' title="ftp://example.com/test.jpg" rel="nofollow">ftp://example.com/test.jpg</a>
491 External links: terminating separator
493 Terminating separator: http://example.com/thing,
495 <p>Terminating separator: <a href="http://example.com/thing" class='external free' title="http://example.com/thing" rel="nofollow">http://example.com/thing</a>,
500 External links: intervening separator
502 Intervening separator: http://example.com/1,2,3
504 <p>Intervening separator: <a href="http://example.com/1,2,3" class='external free' title="http://example.com/1,2,3" rel="nofollow">http://example.com/1,2,3</a>
509 External links: old bug with URL in query
511 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
513 <p>Old bug with URL in query: <a href="http://example.com/thing?url=http://example.com" class='external text' title="http://example.com/thing?url=http://example.com" rel="nofollow">link</a>
518 External links: old URL-in-URL bug, mixed protocols
520 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
522 <p>And again with mixed protocols: <a href="ftp://example.com?url=http://example.com" class='external text' title="ftp://example.com?url=http://example.com" rel="nofollow">link</a>
527 External links: URL in text
529 URL in text: [http://example.com http://example.com]
531 <p>URL in text: <a href="http://example.com" class='external free' title="http://example.com" rel="nofollow">http://example.com</a>
536 External links: Clickable images
538 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
540 <p>ja-style clickable images: <a href="http://example.com" class='external text' title="http://example.com" rel="nofollow"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
545 External links: raw ampersand
547 Old & use: http://x&y
549 <p>Old & use: <a href="http://x&y" class='external free' title="http://x&y" rel="nofollow">http://x&y</a>
554 External links: encoded ampersand
556 Old & use: http://x&y
558 <p>Old & use: <a href="http://x&y" class='external free' title="http://x&y" rel="nofollow">http://x&y</a>
563 External links: [raw ampersand]
565 Old & use: [http://x&y]
567 <p>Old & use: <a href="http://x&y" class='external autonumber' title="http://x&y" rel="nofollow">[1]</a>
572 External links: [encoded ampersand]
574 Old & use: [http://x&y]
576 <p>Old & use: <a href="http://x&y" class='external autonumber' title="http://x&y" rel="nofollow">[1]</a>
581 External links: www.jpeg.org (bug 554)
585 <p><a href="http://www.jpeg.org" class='external free' title="http://www.jpeg.org" rel="nofollow">http://www.jpeg.org</a>
590 External links: URL within URL (original bug 2)
592 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
594 <p><a href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp" class='external autonumber' title="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp" rel="nofollow">[1]</a>
599 BUG 361: URL inside bracketed URL
601 [http://www.example.com/foo http://www.example.com/bar]
603 <p><a href="http://www.example.com/foo" class='external text' title="http://www.example.com/foo" rel="nofollow">http://www.example.com/bar</a>
608 BUG 361: URL within URL, not bracketed
610 http://www.example.com/foo?=http://www.example.com/bar
612 <p><a href="http://www.example.com/foo?=http://www.example.com/bar" class='external free' title="http://www.example.com/foo?=http://www.example.com/bar" rel="nofollow">http://www.example.com/foo?=http://www.example.com/bar</a>
617 BUG 289: ">"-token in URL-tail
619 http://www.example.com/<hello>
621 <p><a href="http://www.example.com/" class='external free' title="http://www.example.com/" rel="nofollow">http://www.example.com/</a><hello>
626 BUG 289: literal ">"-token in URL-tail
628 http://www.example.com/<b>html</b>
630 <p><a href="http://www.example.com/" class='external free' title="http://www.example.com/" rel="nofollow">http://www.example.com/</a><b>html</b>
635 BUG 289: ">"-token in bracketed URL
637 [http://www.example.com/<hello> stuff]
639 <p><a href="http://www.example.com/" class='external text' title="http://www.example.com/" rel="nofollow"><hello> stuff</a>
644 BUG 289: literal ">"-token in bracketed URL
646 [http://www.example.com/<b>html</b> stuff]
648 <p><a href="http://www.example.com/" class='external text' title="http://www.example.com/" rel="nofollow"><b>html</b> stuff</a>
653 BUG 289: literal double quote at end of URL
655 http://www.example.com/"hello"
657 <p><a href="http://www.example.com/" class='external free' title="http://www.example.com/" rel="nofollow">http://www.example.com/</a>"hello"
662 BUG 289: literal double quote in bracketed URL
664 [http://www.example.com/"hello" stuff]
666 <p><a href="http://www.example.com/" class='external text' title="http://www.example.com/" rel="nofollow">"hello" stuff</a>
671 External links: invalid character
672 Fixme: the missing char seems to have gone missing
676 [http://www.example.com test]
678 <p>[<a href="http://www.example.com" class='external free' title="http://www.example.com" rel="nofollow">http://www.example.com</a> test]
683 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
685 [http://www.example.com test]
687 <p><a href="http://www.example.com" class='external text' title="http://www.example.com" rel="nofollow">test</a>
692 External links: wiki links within external link (Bug 3695)
694 [http://example.com [[wikilink]] embedded in ext link]
696 <p><a href="http://example.com" class='external text' title="http://example.com" rel="nofollow"></a><a href="/index.php?title=Wikilink&action=edit" class="new" title="Wikilink">wikilink</a><a href="http://example.com" class='external text' title="http://example.com" rel="nofollow"> embedded in ext link</a>
701 BUG 787: Links with one slash after the url protocol are invalid
705 [http:/example.com title]
708 </p><p>[http:/example.com title]
713 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
715 ''[http://example.com text'']
716 [http://example.com '''text]'''
717 ''Something [http://example.com in italic'']
718 ''Something [http://example.com mixed''''', even bold]'''
719 '''''Now [http://example.com both''''']
721 <p><a href="http://example.com" class='external text' title="http://example.com" rel="nofollow"><i>text</i></a>
722 <a href="http://example.com" class='external text' title="http://example.com" rel="nofollow"><b>text</b></a>
723 <i>Something </i><a href="http://example.com" class='external text' title="http://example.com" rel="nofollow"><i>in italic</i></a>
724 <i>Something </i><a href="http://example.com" class='external text' title="http://example.com" rel="nofollow"><i>mixed</i><b>, even bold</b></a>
725 <i><b>Now </b></i><a href="http://example.com" class='external text' title="http://example.com" rel="nofollow"><i><b>both</b></i></a>
733 http://www.example.com/?title=AT%26T
735 <p><a href="http://www.example.com/?title=AT%26T" class='external free' title="http://www.example.com/?title=AT%26T" rel="nofollow">http://www.example.com/?title=AT%26T</a>
740 Bug 4781, 5267: %26 in URL
742 http://www.example.com/?title=100%25_Bran
744 <p><a href="http://www.example.com/?title=100%25_Bran" class='external free' title="http://www.example.com/?title=100%25_Bran" rel="nofollow">http://www.example.com/?title=100%25_Bran</a>
749 Bug 4781, 5267: %28, %29 in URL
751 http://www.example.com/?title=Ben-Hur_%281959_film%29
753 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class='external free' title="http://www.example.com/?title=Ben-Hur_%281959_film%29" rel="nofollow">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
759 Bug 4781: %26 in autonumber URL
761 [http://www.example.com/?title=AT%26T]
763 <p><a href="http://www.example.com/?title=AT%26T" class='external autonumber' title="http://www.example.com/?title=AT%26T" rel="nofollow">[1]</a>
768 Bug 4781, 5267: %26 in autonumber URL
770 [http://www.example.com/?title=100%25_Bran]
772 <p><a href="http://www.example.com/?title=100%25_Bran" class='external autonumber' title="http://www.example.com/?title=100%25_Bran" rel="nofollow">[1]</a>
777 Bug 4781, 5267: %28, %29 in autonumber URL
779 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
781 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class='external autonumber' title="http://www.example.com/?title=Ben-Hur_%281959_film%29" rel="nofollow">[1]</a>
787 Bug 4781: %26 in bracketed URL
789 [http://www.example.com/?title=AT%26T link]
791 <p><a href="http://www.example.com/?title=AT%26T" class='external text' title="http://www.example.com/?title=AT%26T" rel="nofollow">link</a>
796 Bug 4781, 5267: %26 in bracketed URL
798 [http://www.example.com/?title=100%25_Bran link]
800 <p><a href="http://www.example.com/?title=100%25_Bran" class='external text' title="http://www.example.com/?title=100%25_Bran" rel="nofollow">link</a>
805 Bug 4781, 5267: %28, %29 in bracketed URL
807 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
809 <p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class='external text' title="http://www.example.com/?title=Ben-Hur_%281959_film%29" rel="nofollow">link</a>
821 Normal text. '''Bold text.''' Normal text. ''Italic text.''
823 Normal text. '''''Bold italic text.''''' Normal text.
825 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
826 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
832 Unclosed and unmatched quotes
834 '''''Bold italic text '''with bold deactivated''' in between.'''''
836 '''''Bold italic text ''with italic deactivated'' in between.'''''
840 ..spanning two paragraphs (should not work).'''
842 '''Bold tag left open
844 ''Italic tag left open
848 <!-- Unmatching number of opening, closing tags: -->
849 '''This year''''s election ''should'' beat '''last year''''s.
851 ''Tom'''s car is bigger than ''Susan'''s.
853 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
854 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
855 </p><p><b>Bold text..</b>
856 </p><p>..spanning two paragraphs (should not work).
857 </p><p><b>Bold tag left open</b>
858 </p><p><i>Italic tag left open</i>
860 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
861 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
868 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
871 # This should not produce <table></table> as <table><tr><td></td></tr></table>
872 # is the bare minimun required by the spec, see:
873 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
875 A table with no data.
881 # A table with nothing but a caption is invalid XHTML, we might want to render
882 # this as <p>caption</p>
884 A table with nothing but a caption
892 </caption><tr><td></td></tr></table>
918 {| border="1" cellpadding="2"
919 |+Multiplication table
921 ! × !! 1 !! 2 !! 3
939 <table border="1" cellpadding="2">
940 <caption>Multiplication table
943 <th> × </th><th> 1 </th><th> 2 </th><th> 3
947 </th><td> 1 </td><td> 2 </td><td> 3
951 </th><td> 2 </td><td> 4 </td><td> 6
955 </th><td> 3 </td><td> 6 </td><td> 9
959 </th><td> 4 </td><td> 8 </td><td> 12
963 </th><td> 5 </td><td> 10 </td><td> 15
971 {| align=right border=1
973 |rowspan=2| Cell 2, row 1 (and 2)
980 <table align="right" border="1">
983 </td><td rowspan="2"> Cell 2, row 1 (and 2)
984 </td><td> Cell 3, row 1
988 </td><td> Cell 3, row 2
999 {| bgcolor=#ABCDEF border=2
1004 |the original table again
1011 <table bgcolor="#ABCDEF" border="2">
1018 </td><td>the original table again
1024 Invalid attributes in table cell (bug 1830)
1042 Plain link, capitalized
1046 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1051 Plain link, uncapitalized
1055 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1062 [[Main Page|The Main Page]]
1064 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1073 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit" class="new" title="Zigzagzogzagzig">Zigzagzogzagzig</a>
1080 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1082 <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>
1089 [[Main Page]]xxx, [[Main Page]]XXX
1091 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX
1096 Link with 3 brackets
1105 Piped link with 3 brackets
1107 [[[main page|the main page]]]
1109 <p>[[[main page|the main page]]]
1114 Link with multiple pipes
1116 [[Main Page|The|Main|Page]]
1118 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1125 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1127 <p><a href="/index.php?title=Talk:Parser_testing&action=edit" class="new" title="Talk:Parser testing">Talk:Parser testing</a>, <a href="/index.php?title=Meta:Disclaimers&action=edit" class="new" title="Meta:Disclaimers">Meta:Disclaimers</a>
1132 Piped link to namespace
1134 [[Meta:Disclaimers|The disclaimers]]
1136 <p><a href="/index.php?title=Meta:Disclaimers&action=edit" class="new" title="Meta:Disclaimers">The disclaimers</a>
1143 [[Usually caused by a typo (oops}]]
1145 <p>[[Usually caused by a typo (oops}]]
1150 Link containing % (not as a hex sequence)
1154 <p><a href="/index.php?title=7%25_Solution&action=edit" class="new" title="7% Solution">7% Solution</a>
1159 Link containing % as a single hex sequence interpreted to char
1163 <p><a href="/index.php?title=7%25_Solution&action=edit" class="new" title="7% Solution">7% Solution</a>
1168 Link containing % as a double hex sequence interpreted to hex sequence
1172 <p>[[7%2525 Solution]]
1177 Link containing "#<" and "#>" % as a hex sequences
1179 [[%23%3c]]<!-- Render this as "[[#%3c]]" maybe.. ? -->[[%23%3e]]<!-- ..."[[#%3e]]" ? -->
1181 <p>[[%23%3c]][[%23%3e]]
1186 Link containing "<#" and ">#" as a hex sequences
1188 [[%3c%23]][[%3e%23]]
1190 <p>[[%3c%23]][[%3e%23]]
1197 [[http://www.example.org]]
1199 <p>[<a href="http://www.example.org" class='external autonumber' title="http://www.example.org" rel="nofollow">[1]</a>]
1203 # I'm fairly sure the expected result here is wrong.
1204 # We want these to be URL links, not pseudo-pages with URLs for titles....
1205 # However the current output is also pretty screwy.
1208 # I'm changing it to match the current output--it arguably makes more
1209 # sense in the light of the test above. Old expected result was:
1210 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.org&action=edit" class="new" title="Http://www.example.org">an example URL</a>
1212 # But I think this test is bordering on "garbage in, garbage out" anyway.
1217 Piped link to URL: [[http://www.example.org|an example URL]]
1219 <p>Piped link to URL: [<a href="http://www.example.org|an" class='external text' title="http://www.example.org|an" rel="nofollow">example URL</a>]
1224 BUG 2: [[page|http://url/]] should link to page, not http://url/
1226 [[Main Page|http://url/]]
1228 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1233 BUG 337: Escaped self-links should be bold
1237 [[Bug462]] [[Bug462]]
1239 <p><strong>Bug462</strong> <strong>Bug462</strong>
1244 Self-link to section should not be bold
1248 [[Main Page#section]]
1250 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1255 <nowiki> inside a link
1257 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1259 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a> <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1264 ### Interwiki links (see maintenance/interwiki.sql)
1268 Inline interwiki link
1270 [[MeatBall:SoftSecurity]]
1272 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class='extiw' title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1277 Inline interwiki link with empty title (bug 2372)
1281 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class='extiw' title="meatball:">MeatBall:</a>
1286 Interwiki link encoding conversion (bug 1636)
1288 *[[Wikipedia:ro:Olteniţa]]
1289 *[[Wikipedia:ro:Olteniţa]]
1291 <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>
1292 </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>
1298 Interwiki link with fragment (bug 2130)
1300 [[MeatBall:SoftSecurity#foo]]
1302 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class='extiw' title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1320 Incorrecly removing closing slashes from correctly formed XHTML
1322 <br style="clear:both;" />
1324 <p><br style="clear:both;" />
1329 Failing to transform badly formed HTML into correct XHTML
1335 <p><br clear="left" />
1336 <br clear="right" />
1342 Horizontal ruler (should it add that extra space?)
1356 ### Block-level elements
1379 <ol><li>Numbered list
1396 ***#Number on level 4
1398 **#Number on level 3
1399 **#Number on level 3
1404 <ol><li> with numbers
1406 <ul><li> and bullets
1408 <ol><li> and numbers
1410 </li><li>bullets again
1411 <ul><li>bullet level 2
1412 <ul><li>bullet level 3
1413 <ol><li>Number on level 4
1416 </li><li>bullet level 2
1417 <ol><li>Number on level 3
1418 </li><li>Number on level 3
1421 <ol><li>number level 2
1429 List items are not parsed correctly following a <pre> block (bug 785)
1435 <ul><li> <pre>foo</pre>
1436 </li><li> <pre>bar</pre>
1447 Magic Word: {{CURRENTDAY}}
1456 Magic Word: {{CURRENTDAY2}}
1465 Magic Word: {{CURRENTDAYNAME}}
1474 Magic Word: {{CURRENTDOW}}
1483 Magic Word: {{CURRENTMONTH}}
1492 Magic Word: {{CURRENTMONTHABBREV}}
1494 {{CURRENTMONTHABBREV}}
1501 Magic Word: {{CURRENTMONTHNAME}}
1503 {{CURRENTMONTHNAME}}
1510 Magic Word: {{CURRENTMONTHNAMEGEN}}
1512 {{CURRENTMONTHNAMEGEN}}
1519 Magic Word: {{CURRENTTIME}}
1528 Magic Word: {{CURRENTWEEK}} (@bug 4594)
1537 Magic Word: {{CURRENTYEAR}}
1546 Magic Word: {{FULLPAGENAME}}
1548 title=[[User:Ævar Arnfjörð Bjarmason]]
1552 <p>User:Ævar Arnfjörð Bjarmason
1557 Magic Word: {{FULLPAGENAMEE}}
1559 title=[[User:Ævar Arnfjörð Bjarmason]]
1563 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
1568 Magic Word: {{NAMESPACE}}
1570 title=[[User:Ævar Arnfjörð Bjarmason]]
1580 Magic Word: {{NAMESPACEE}}
1582 title=[[User:Ævar Arnfjörð Bjarmason]]
1592 Magic Word: {{NUMBEROFARTICLES}}
1594 {{NUMBEROFARTICLES}}
1601 Magic Word: {{NUMBEROFFILES}}
1610 Magic Word: {{PAGENAME}}
1612 title=[[User:Ævar Arnfjörð Bjarmason]]
1617 <p>Ævar Arnfjörð Bjarmason
1622 Magic Word: {{PAGENAMEE}}
1624 title=[[User:Ævar Arnfjörð Bjarmason]]
1628 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
1633 Magic Word: {{REVISIONID}}
1642 Magic Word: {{SCRIPTPATH}}
1651 Magic Word: {{SERVER}}
1655 <p><a href="http://localhost" class='external free' title="http://localhost" rel="nofollow">http://localhost</a>
1660 Magic Word: {{SERVERNAME}}
1669 Magic Word: {{SITENAME}}
1678 Namespace 1 {{ns:1}}
1687 Namespace 1 {{ns:01}}
1696 Namespace 0 {{ns:0}} (bug 4783)
1704 Namespace 0 {{ns:00}} (bug 4783)
1712 Namespace -1 {{ns:-1}}
1721 Namespace Project {{ns:User}}
1734 Magic links: internal link to RFC (bug 479)
1738 <p><a href="/index.php?title=RFC_123&action=edit" class="new" title="RFC 123">RFC 123</a>
1743 Magic links: RFC (bug 479)
1747 <p><a href='http://www.ietf.org/rfc/rfc822.txt' class='external' title="http://www.ietf.org/rfc/rfc822.txt">RFC 822</a>
1752 Magic links: ISBN (bug 1937)
1756 <p><a href="/index.php?title=Special:Booksources&isbn=0306406152" class="internal">ISBN 0-306-40615-2</a>
1761 Magic links: PMID incorrectly converts space to underscore
1765 <p><a href='http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=1234' class='external' title="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=1234">PMID 1234</a>
1774 Nonexistant template
1776 {{thistemplatedoesnotexist}}
1778 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit" class="new" title="Template:Thistemplatedoesnotexist">Template:Thistemplatedoesnotexist</a>
1785 This is a test template
1793 <p>This is a test template
1798 Template with explicit namespace
1802 <p>This is a test template
1810 This is a test template with parameter {{{param}}}
1816 {{paramtest|param=foo}}
1818 <p>This is a test template with parameter foo
1823 Template:paramtestnum
1829 Template unnamed parameter
1831 {{paramtestnum|Main Page|the main page}}
1833 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
1838 Template:templatesimple
1844 Template:templateredirect
1846 #redirect [[Template:templatesimple]]
1850 Template:templateasargtestnum
1856 Template:templateasargtest
1858 {{template{{{templ}}}}}
1862 Template:templateasargtest2
1868 Template with template name as unnamed argument
1870 {{templateasargtestnum|templatesimple}}
1877 Template with template name as argument
1879 {{templateasargtest|templ=simple}}
1886 Template with template name as argument (2)
1888 {{templateasargtest2|templ=templatesimple}}
1895 Template:templateasargtestdefault
1897 {{{{{templ|templatesimple}}}}}
1907 Template with default value
1909 {{templateasargtestdefault}}
1916 Template with default value (value set)
1918 {{templateasargtestdefault|templ=templa}}
1927 {{templateredirect}}
1934 Template with argument in separate line
1936 {{ templateasargtest |
1944 Template with complex template as argument
1947 param ={{ templateasargtest |
1950 <p>This is a test template with parameter (test)
1955 Template with thumb image (wiht link in description)
1958 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
1960 This is a test template with parameter <div class="thumb tright"><div style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Noimage.png" class="new" title="Image:Noimage.png">Image:Noimage.png</a> <div class="thumbcaption" ><a href="/index.php?title=No_link&action=edit" class="new" title="No link">link</a> <a href="/index.php?title=No_link&action=edit" class="new" title="No link">caption</a></div></div></div>
1965 Template:complextemplate
1967 {{{1}}} {{paramtest|
1968 param ={{{param}}}}}
1972 Template with complex arguments
1975 param ={{ templateasargtest |
1976 templ = simple }}|[[Template:complextemplate|link]]}}
1978 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
1983 BUG 553: link with two variables in a piped link
1986 |[[{{{1}}}|{{{2}}}]]
1991 <td>[[{{{1}}}|{{{2}}}]]
1997 Magic variable as template parameter
1999 {{paramtest|param={{SITENAME}}}}
2001 <p>This is a test template with parameter MediaWiki
2008 [[{{{param}}}|link]]
2012 Template parameter as link source
2014 {{linktest|param=Main Page}}
2016 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2024 including another template, {{paramtest|param={{{arg}}}}}
2028 Template passing argument to another template
2030 {{paramtest2|arg='hmm'}}
2032 <p>including another template, This is a test template with parameter 'hmm'
2043 Template as link source
2047 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2065 Template infinite loop
2069 <p>{{loop1}}<!-- WARNING: template loop detected -->
2074 Template from main namespace
2093 BUG 529: Template with table, not included at beginning of line
2110 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2128 BUG 41: Template parameters shown as broken links
2140 ''None'' of '''this''' should be
2142 but rather passed unmodified
2146 # hmm, fix this or just deprecate msgnw and document its behavior?
2152 {{msgnw:MSGNW test}}
2154 <p>''None'' of '''this''' should be
2156 but rather passed unmodified
2164 {{int:youhavenewmessages|lots of money|not!}}
2166 <p>You have lots of money (not!).
2173 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2177 <includeonly> and <noinclude> being included
2188 <onlyinclude>Foo</onlyinclude>bar
2192 <onlyinclude> being included
2204 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2208 <onlyinclude> and <includeonly> being included
2217 <includeonly> and <noinclude> on a page
2219 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2226 <onlyinclude> on a page
2228 <onlyinclude>Foo</onlyinclude>bar
2235 ### Pre-save transform tests
2238 pre-save transform: subst:
2244 This is a test template
2248 pre-save transform: normal template
2258 pre-save transform: nonexistant template
2262 {{thistemplatedoesnotexist}}
2264 {{thistemplatedoesnotexist}}
2269 pre-save transform: subst magic variables
2278 # This is bug 89, which I fixed. -- wtm
2280 pre-save transform: subst: templates with parameters
2284 {{subst:paramtest|param="something else"}}
2286 This is a test template with parameter "something else"
2292 <nowiki>'''not wiki'''</nowiki>
2296 pre-save transform: nowiki in subst (bug 1188)
2300 {{subst:nowikitest}}
2302 <nowiki>'''not wiki'''</nowiki>
2307 Template:commenttest
2309 This template has <!-- a comment --> in it.
2313 pre-save transform: comment in subst (bug 1936)
2317 {{subst:commenttest}}
2319 This template has <!-- a comment --> in it.
2326 <span onmouseover="alert('crap')">Oh no</span>
2330 (confirming safety of fix for subst bug 1936)
2332 {{Template:dangerous}}
2334 <p><span>Oh no</span>
2339 pre-save transform: comment containing gallery (bug 5024)
2343 <!-- <gallery>data</gallery> -->
2345 <!-- <gallery>data</gallery> -->
2349 pre-save transform: comment containing extension
2353 <!-- <tag>data</tag> -->
2355 <!-- <tag>data</tag> -->
2359 pre-save transform: comment containing nowiki
2363 <!-- <nowiki>data</nowiki> -->
2365 <!-- <nowiki>data</nowiki> -->
2369 pre-save transform: comment containing math
2373 <!-- <math>data</math> -->
2375 <!-- <math>data</math> -->
2380 ### Message transform tests
2383 message transform: magic variables
2393 message transform: should not transform wiki markup
2408 [[Image:foobar.jpg]]
2410 <p><a href="/wiki/Image:Foobar.jpg" class="image" title="Image:foobar.jpg"><img src="http://example.com/images/3/3a/Foobar.jpg" alt="Image:foobar.jpg" width="1941" height="220" longdesc="/wiki/Image:Foobar.jpg" /></a>
2417 [[Image:foobar.jpg|right]]
2419 <div class="floatright"><span><a href="/wiki/Image:Foobar.jpg" class="image" title=""><img src="http://example.com/images/3/3a/Foobar.jpg" alt="" width="1941" height="220" longdesc="/wiki/Image:Foobar.jpg" /></a></span></div>
2426 [[Image:foobar.jpg|right|Caption text]]
2428 <div class="floatright"><span><a href="/wiki/Image:Foobar.jpg" class="image" title="Caption text"><img src="http://example.com/images/3/3a/Foobar.jpg" alt="Caption text" width="1941" height="220" longdesc="/wiki/Image:Foobar.jpg" /></a></span></div>
2433 Image with frame and link
2435 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
2437 <div class="thumb tleft"><div style="width:1943px;"><a href="/wiki/Image:Foobar.jpg" class="internal" title="This is a test image Main Page"><img src="http://example.com/images/3/3a/Foobar.jpg" alt="This is a test image Main Page" width="1941" height="220" longdesc="/wiki/Image:Foobar.jpg" /></a> <div class="thumbcaption" >This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
2442 Link to image page- image page normally doesn't exists, hence edit link
2443 TODO: Add test with existing image page
2444 #<p><a href="/wiki/Image:Test" title="Image:Test">Image:test</a>
2448 <p><a href="/index.php?title=Image:Test&action=edit" class="new" title="Image:Test">Image:test</a>
2453 Frameless image caption with a free URL
2455 [[Image:foobar.jpg|http://example.com]]
2457 <p><a href="/wiki/Image:Foobar.jpg" class="image" title="http://example.com"><img src="http://example.com/images/3/3a/Foobar.jpg" alt="http://example.com" width="1941" height="220" longdesc="/wiki/Image:Foobar.jpg" /></a>
2462 Thumbnail image caption with a free URL
2464 [[Image:foobar.jpg|thumb|http://example.com]]
2466 <div class="thumb tright"><div style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="internal" title="http://example.com"><img src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" alt="http://example.com" width="180" height="20" longdesc="/wiki/Image:Foobar.jpg" /></a> <div class="thumbcaption" ><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="Enlarge" /></a></div><a href="http://example.com" class='external free' title="http://example.com" rel="nofollow">http://example.com</a></div></div></div>
2471 BUG 1887: A ISBN with a thumbnail
2473 [[Image:foobar.jpg|thumb|ISBN 12354]]
2475 <div class="thumb tright"><div style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="internal" title="ISBN 12354"><img src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" alt="ISBN 12354" width="180" height="20" longdesc="/wiki/Image:Foobar.jpg" /></a> <div class="thumbcaption" ><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="Enlarge" /></a></div><a href="/index.php?title=Special:Booksources&isbn=12354" class="internal">ISBN 12354</a></div></div></div>
2480 BUG 1887: A RFC with a thumbnail
2482 [[Image:foobar.jpg|thumb|This is RFC 12354]]
2484 <div class="thumb tright"><div style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="internal" title="This is RFC 12354"><img src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" alt="This is RFC 12354" width="180" height="20" longdesc="/wiki/Image:Foobar.jpg" /></a> <div class="thumbcaption" ><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="Enlarge" /></a></div>This is <a href='http://www.ietf.org/rfc/rfc12354.txt' class='external' title="http://www.ietf.org/rfc/rfc12354.txt">RFC 12354</a></div></div></div>
2489 BUG 1887: A mailto link with a thumbnail
2491 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
2493 <div class="thumb tright"><div style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Please mailto:nobody@example.com"><img src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" alt="Please mailto:nobody@example.com" width="180" height="20" longdesc="/wiki/Image:Foobar.jpg" /></a> <div class="thumbcaption" ><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="Enlarge" /></a></div>Please <a href="mailto:nobody@example.com" class='external free' title="mailto:nobody@example.com" rel="nofollow">mailto:nobody@example.com</a></div></div></div>
2498 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
2499 so math is not stripped and turns up as escaped <math> tags.
2501 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
2503 <div class="thumb tright"><div style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="internal" title="<math>2+2</math>"><img src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" alt="<math>2+2</math>" width="180" height="20" longdesc="/wiki/Image:Foobar.jpg" /></a> <div class="thumbcaption" ><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="Enlarge" /></a></div><math>2+2</math></div></div></div>
2508 BUG 1887, part 2: A <math> with a thumbnail- math enabled
2512 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
2514 <div class="thumb tright"><div style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="internal" title="2 + 2"><img src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" alt="2 + 2" width="180" height="20" longdesc="/wiki/Image:Foobar.jpg" /></a> <div class="thumbcaption" ><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="Enlarge" /></a></div><span class="texhtml">2 + 2</span></div></div></div>
2518 # Pending resolution to bug 368
2520 BUG 648: Frameless image caption with a link
2522 [[Image:foobar.jpg|text with a [[link]] in it]]
2524 <p><a href="/wiki/Image:Foobar.jpg" class="image" title="text with a link in it"><img src="http://example.com/images/3/3a/Foobar.jpg" alt="text with a link in it" width="1941" height="220" longdesc="/wiki/Image:Foobar.jpg" /></a>
2529 BUG 648: Frameless image caption with a link (suffix)
2531 [[Image:foobar.jpg|text with a [[link]]foo in it]]
2533 <p><a href="/wiki/Image:Foobar.jpg" class="image" title="text with a linkfoo in it"><img src="http://example.com/images/3/3a/Foobar.jpg" alt="text with a linkfoo in it" width="1941" height="220" longdesc="/wiki/Image:Foobar.jpg" /></a>
2538 BUG 648: Frameless image caption with an interwiki link
2540 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
2542 <p><a href="/wiki/Image:Foobar.jpg" class="image" title="text with a MeatBall:Link in it"><img src="http://example.com/images/3/3a/Foobar.jpg" alt="text with a MeatBall:Link in it" width="1941" height="220" longdesc="/wiki/Image:Foobar.jpg" /></a>
2547 BUG 648: Frameless image caption with a piped interwiki link
2549 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
2551 <p><a href="/wiki/Image:Foobar.jpg" class="image" title="text with a link in it"><img src="http://example.com/images/3/3a/Foobar.jpg" alt="text with a link in it" width="1941" height="220" longdesc="/wiki/Image:Foobar.jpg" /></a>
2556 Escape HTML special chars in image alt text
2558 [[Image:foobar.jpg|& < > "]]
2560 <p><a href="/wiki/Image:Foobar.jpg" class="image" title="& < > ""><img src="http://example.com/images/3/3a/Foobar.jpg" alt="& < > "" width="1941" height="220" longdesc="/wiki/Image:Foobar.jpg" /></a>
2565 BUG 499: Alt text should have Ӓ, not &1234;
2567 [[Image:foobar.jpg|♀]]
2569 <p><a href="/wiki/Image:Foobar.jpg" class="image" title="♀"><img src="http://example.com/images/3/3a/Foobar.jpg" alt="♀" width="1941" height="220" longdesc="/wiki/Image:Foobar.jpg" /></a>
2574 Broken image caption with link
2576 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
2578 <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.
2583 Image caption containing another image
2585 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
2587 <div class="thumb tright"><div style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="internal" title="This is a caption with another Image:Icon.png inside it!"><img src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" alt="This is a caption with another Image:Icon.png inside it!" width="180" height="20" longdesc="/wiki/Image:Foobar.jpg" /></a> <div class="thumbcaption" ><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="Enlarge" /></a></div>This is a caption with another <a href="/index.php?title=Special:Upload&wpDestFile=Icon.png" class="new" title="Image:Icon.png">Image:Icon.png</a> inside it!</div></div></div>
2592 Image caption containing a newline
2594 [[Image:Foobar.jpg|This
2597 <p><a href="/wiki/Image:Foobar.jpg" class="image" title="This *is some text"><img src="http://example.com/images/3/3a/Foobar.jpg" alt="This *is some text" width="1941" height="220" longdesc="/wiki/Image:Foobar.jpg" /></a>
2603 Bug 3090: External links other than http: in image captions
2605 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
2607 <div class="thumb tright"><div style="width:202px;"><a href="/wiki/Image:Foobar.jpg" class="internal" title="This caption has irc and Secure ext links in it."><img src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" alt="This caption has irc and Secure ext links in it." width="200" height="23" longdesc="/wiki/Image:Foobar.jpg" /></a> <div class="thumbcaption" ><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="Enlarge" /></a></div>This caption has <a href="irc://example.net" class='external text' title="irc://example.net" rel="nofollow">irc</a> and <a href="https://example.com" class='external text' title="https://example.com" rel="nofollow">Secure</a> ext links in it.</div></div></div>
2616 Subpage test/subpage
2624 subpage title=[[Subpage test]]
2628 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
2633 Subpage noslash link
2635 subpage title=[[Subpage test]]
2639 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
2648 <p><a href="/index.php?title=/subpage&action=edit" class="new" title="/subpage">/subpage</a>
2653 BUG 561: {{/Subpage}}
2655 subpage title=[[Page]]
2659 <p><a href="/index.php?title=Page/Subpage&action=edit" class="new" title="Page/Subpage">Page/Subpage</a>
2667 Category:MediaWiki User's Guide
2675 [[:Category:MediaWiki User's Guide]]
2677 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
2686 [[Category:MediaWiki User's Guide]]
2688 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
2692 ### Inter-language links
2695 Inter-language links
2701 [[zh:食品]]
2703 es:Alimento fr:Nourriture zh:食品
2710 Basic section headings
2712 title=[[Parser test script]]
2719 ===Smaller headline===
2722 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</div><a name="Headline_1"></a><h2> Headline 1 </h2>
2725 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=2" title="Edit section: Headline 2">edit</a>]</div><a name="Headline_2"></a><h2>Headline 2</h2>
2728 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=3" title="Edit section: Smaller headline">edit</a>]</div><a name="Smaller_headline"></a><h3>Smaller headline</h3>
2734 Section headings with TOC
2736 title=[[Parser test script]]
2739 === Subheadline 1 ===
2740 ===== Skipping a level =====
2741 ====== Skipping a level ======
2745 ===Another headline===
2747 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
2749 <li class='toclevel-1'><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
2751 <li class='toclevel-2'><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
2753 <li class='toclevel-3'><a href="#Skipping_a_level"><span class="tocnumber">1.1.1</span> <span class="toctext">Skipping a level</span></a>
2755 <li class='toclevel-4'><a href="#Skipping_a_level_2"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Skipping a level</span></a></li>
2762 <li class='toclevel-1'><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
2764 <li class='toclevel-2'><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
2768 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
2769 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</div><a name="Headline_1"></a><h2> Headline 1 </h2>
2770 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=2" title="Edit section: Subheadline 1">edit</a>]</div><a name="Subheadline_1"></a><h3> Subheadline 1 </h3>
2771 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=3" title="Edit section: Skipping a level">edit</a>]</div><a name="Skipping_a_level"></a><h5> Skipping a level </h5>
2772 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=4" title="Edit section: Skipping a level">edit</a>]</div><a name="Skipping_a_level_2"></a><h6> Skipping a level </h6>
2773 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=5" title="Edit section: Headline 2">edit</a>]</div><a name="Headline_2"></a><h2> Headline 2 </h2>
2776 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=6" title="Edit section: Another headline">edit</a>]</div><a name="Another_headline"></a><h3>Another headline</h3>
2780 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
2782 Handling of sections up to level 6 and beyond
2785 == Level 2 Heading==
2786 === Level 3 Heading===
2787 ==== Level 4 Heading====
2788 ===== Level 5 Heading=====
2789 ====== Level 6 Heading======
2790 ======= Level 7 Heading=======
2791 ======== Level 8 Heading========
2792 ========= Level 9 Heading=========
2793 ========== Level 10 Heading==========
2795 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
2797 <li class='toclevel-1'><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
2799 <li class='toclevel-2'><a href="#Level_2_Heading"><span class="tocnumber">1.1</span> <span class="toctext">Level 2 Heading</span></a>
2801 <li class='toclevel-3'><a href="#Level_3_Heading"><span class="tocnumber">1.1.1</span> <span class="toctext">Level 3 Heading</span></a>
2803 <li class='toclevel-4'><a href="#Level_4_Heading"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Level 4 Heading</span></a>
2805 <li class='toclevel-5'><a href="#Level_5_Heading"><span class="tocnumber">1.1.1.1.1</span> <span class="toctext">Level 5 Heading</span></a>
2807 <li class='toclevel-6'><a href="#Level_6_Heading"><span class="tocnumber">1.1.1.1.1.1</span> <span class="toctext">Level 6 Heading</span></a></li>
2808 <li class='toclevel-6'><a href="#.3D_Level_7_Heading.3D"><span class="tocnumber">1.1.1.1.1.2</span> <span class="toctext">= Level 7 Heading=</span></a></li>
2809 <li class='toclevel-6'><a href="#.3D.3D_Level_8_Heading.3D.3D"><span class="tocnumber">1.1.1.1.1.3</span> <span class="toctext">== Level 8 Heading==</span></a></li>
2810 <li class='toclevel-6'><a href="#.3D.3D.3D_Level_9_Heading.3D.3D.3D"><span class="tocnumber">1.1.1.1.1.4</span> <span class="toctext">=== Level 9 Heading===</span></a></li>
2811 <li class='toclevel-6'><a href="#.3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D"><span class="tocnumber">1.1.1.1.1.5</span> <span class="toctext">==== Level 10 Heading====</span></a></li>
2823 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
2824 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a>]</div><a name="Level_1_Heading"></a><h1> Level 1 Heading</h1>
2825 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a>]</div><a name="Level_2_Heading"></a><h2> Level 2 Heading</h2>
2826 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a>]</div><a name="Level_3_Heading"></a><h3> Level 3 Heading</h3>
2827 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a>]</div><a name="Level_4_Heading"></a><h4> Level 4 Heading</h4>
2828 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a>]</div><a name="Level_5_Heading"></a><h5> Level 5 Heading</h5>
2829 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a>]</div><a name="Level_6_Heading"></a><h6> Level 6 Heading</h6>
2830 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a>]</div><a name=".3D_Level_7_Heading.3D"></a><h6>= Level 7 Heading=</h6>
2831 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a>]</div><a name=".3D.3D_Level_8_Heading.3D.3D"></a><h6>== Level 8 Heading==</h6>
2832 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a>]</div><a name=".3D.3D.3D_Level_9_Heading.3D.3D.3D"></a><h6>=== Level 9 Heading===</h6>
2833 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a>]</div><a name=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D"></a><h6>==== Level 10 Heading====</h6>
2838 Resolving duplicate section names
2840 title=[[Parser test script]]
2845 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</div><a name="Foo_bar"></a><h2> Foo bar </h2>
2846 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=2" title="Edit section: Foo bar">edit</a>]</div><a name="Foo_bar_2"></a><h2> Foo bar </h2>
2858 Template with sections, __NOTOC__
2860 title=[[Parser test script]]
2867 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=1" title="Edit section: Section 0">edit</a>]</div><a name="Section_0"></a><h2>Section 0</h2>
2868 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Template:Sections&action=edit&section=1" title="Template:Sections">edit</a>]</div><a name="Section_1"></a><h3>Section 1</h3>
2869 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Template:Sections&action=edit&section=2" title="Template:Sections">edit</a>]</div><a name="Section_2"></a><h2>Section 2</h2>
2870 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=2" title="Edit section: Section 4">edit</a>]</div><a name="Section_4"></a><h2>Section 4</h2>
2875 __NOEDITSECTION__ keyword
2881 <a name="Section_1"></a><h2>Section 1</h2>
2882 <a name="Section_2"></a><h2>Section 2</h2>
2887 Link inside a section heading
2889 title=[[Parser test script]]
2891 ==Section with a [[Main Page|link]] in it==
2893 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=1" title="Edit section: Section with a link in it">edit</a>]</div><a name="Section_with_a_link_in_it"></a><h2>Section with a <a href="/wiki/Main_Page" title="Main Page">link</a> in it</h2>
2899 BUG 1219 URL next to image (good)
2901 http://example.com [[Image:foobar.jpg]]
2903 <p><a href="http://example.com" class='external free' title="http://example.com" rel="nofollow">http://example.com</a> <a href="/wiki/Image:Foobar.jpg" class="image" title="Image:foobar.jpg"><img src="http://example.com/images/3/3a/Foobar.jpg" alt="Image:foobar.jpg" width="1941" height="220" longdesc="/wiki/Image:Foobar.jpg" /></a>
2908 BUG 1219 URL next to image (broken)
2910 http://example.com[[Image:foobar.jpg]]
2912 <p><a href="http://example.com" class='external free' title="http://example.com" rel="nofollow">http://example.com</a><a href="/wiki/Image:Foobar.jpg" class="image" title="Image:foobar.jpg"><img src="http://example.com/images/3/3a/Foobar.jpg" alt="Image:foobar.jpg" width="1941" height="220" longdesc="/wiki/Image:Foobar.jpg" /></a>
2917 Bug 1186 news: in the middle of text
2919 http://en.wikinews.org/wiki/Wikinews:Workplace
2921 <p><a href="http://en.wikinews.org/wiki/Wikinews:Workplace" class='external free' title="http://en.wikinews.org/wiki/Wikinews:Workplace" rel="nofollow">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
2927 Namespaced link must have a title
2936 Namespaced link must have a title (bad fragment version)
2938 [[Project:#fragment]]
2940 <p>[[Project:#fragment]]
2946 div with no attributes
2948 <div>HTML rocks</div>
2950 <div>HTML rocks</div>
2955 div with double-quoted attribute
2957 <div id="rock">HTML rocks</div>
2959 <div id="rock">HTML rocks</div>
2964 div with single-quoted attribute
2966 <div id='rock'>HTML rocks</div>
2968 <div id="rock">HTML rocks</div>
2973 div with unquoted attribute
2975 <div id=rock>HTML rocks</div>
2977 <div id="rock">HTML rocks</div>
2982 div with illegal double attributes
2984 <div align="center" align="right">HTML rocks</div>
2986 <div align="right">HTML rocks</div>
2991 HTML multiple attributes correction
2993 <p class="error" class="awesome">Awesome!</p>
2995 <p class="awesome">Awesome!</p>
3000 Table multiple attributes correction
3003 !+ class="error" class="awesome"| status
3008 <th class="awesome"> status
3016 <DIV ALIGN="center">HTML ROCKS</DIV>
3018 <div align="center">HTML ROCKS</div>
3024 text with amp in the middle of nowhere
3028 <p>Remember AT&T?
3033 text with character entity: eacute
3035 I always thought é was a cute letter.
3037 <p>I always thought é was a cute letter.
3042 text with undefined character entity: xacute
3044 I always thought &xacute; was a cute letter.
3046 <p>I always thought &xacute; was a cute letter.
3058 [[Media:Foobar.jpg]]
3060 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class='internal' title="Foobar.jpg">Media:Foobar.jpg</a>
3065 Media link with text
3067 [[Media:Foobar.jpg|A neat file to look at]]
3069 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class='internal' title="Foobar.jpg">A neat file to look at</a>
3073 # FIXME: this is still bad HTML tag nesting
3075 Media link with nasty text
3076 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
3078 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
3080 <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>
3085 Media link to nonexistent file (bug 1702)
3087 [[Media:No such.jpg]]
3089 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class='new' title="No such.jpg">Media:No such.jpg</a>
3094 Image link to nonexistent file (bug 1850 - good)
3096 [[Image:No such.jpg]]
3098 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="Image:No such.jpg">Image:No such.jpg</a>
3103 :Image link to nonexistent file (bug 1850 - bad)
3105 [[:Image:No such.jpg]]
3107 <p><a href="/index.php?title=Image:No_such.jpg&action=edit" class="new" title="Image:No such.jpg">Image:No such.jpg</a>
3114 Character reference normalization in link text (bug 1938)
3116 [[Main Page|this&that]]
3118 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
3123 Empty attribute crash test (bug 2067)
3125 <font color="">foo</font>
3127 <p><font color="">foo</font>
3132 Empty attribute crash test single-quotes (bug 2067)
3134 <font color=''>foo</font>
3136 <p><font color="">foo</font>
3141 Attribute test: equals, then nothing
3143 <font color=>foo</font>
3150 Attribute test: unquoted value
3152 <font color=x>foo</font>
3154 <p><font color="x">foo</font>
3159 Attribute test: unquoted but illegal value (hash)
3161 <font color=#x>foo</font>
3163 <p><font color="#x">foo</font>
3168 Attribute test: no value
3170 <font color>foo</font>
3172 <p><font color="color">foo</font>
3177 Bug 2095: link with three closing brackets
3181 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
3186 Bug 2095: link with pipe and three closing brackets
3190 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
3195 Bug 2095: link with pipe and three closing brackets, version 2
3197 [[Main Page|[http://example.com/]]]
3199 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
3209 Template:Dangerous attribute
3211 " onmouseover="alert(document.cookie)
3215 Template:Dangerous style attribute
3217 border-size: expression(alert(document.cookie))
3223 <div style="float: right; {{{1}}}">Magic div</div>
3227 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
3229 <div title="{{test}}"></div>
3231 <div title="This is a test template"></div>
3236 Bug 2304: HTML attribute safety (dangerous template; 2309)
3238 <div title="{{dangerous attribute}}"></div>
3240 <div title=""></div>
3245 Bug 2304: HTML attribute safety (dangerous style template; 2309)
3247 <div style="{{dangerous style attribute}}"></div>
3254 Bug 2304: HTML attribute safety (safe parameter; 2309)
3256 {{div style|width: 200px}}
3258 <div style="float: right; width: 200px">Magic div</div>
3263 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
3265 {{div style|width: expression(alert(document.cookie))}}
3267 <div>Magic div</div>
3272 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
3274 {{div style|"><script>alert(document.cookie)</script>}}
3276 <div>Magic div</div>
3281 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
3283 {{div style|" ><script>alert(document.cookie)</script>}}
3285 <div style="float: right; ">Magic div</div>
3290 Bug 2304: HTML attribute safety (link)
3292 <div title="[[Main Page]]"></div>
3294 <div title="[[Main Page]]"></div>
3299 Bug 2304: HTML attribute safety (italics)
3301 <div title="''foobar''"></div>
3303 <div title="''foobar''"></div>
3308 Bug 2304: HTML attribute safety (bold)
3310 <div title="'''foobar'''"></div>
3312 <div title="'''foobar'''"></div>
3318 Bug 2304: HTML attribute safety (ISBN)
3320 <div title="ISBN 1234567890"></div>
3322 <div title="ISBN 1234567890"></div>
3327 Bug 2304: HTML attribute safety (RFC)
3329 <div title="RFC 1234"></div>
3331 <div title="RFC 1234"></div>
3336 Bug 2304: HTML attribute safety (PMID)
3338 <div title="PMID 1234567890"></div>
3340 <div title="PMID 1234567890"></div>
3345 Bug 2304: HTML attribute safety (web link)
3347 <div title="http://example.com/"></div>
3349 <div title="http://example.com/"></div>
3354 Bug 2304: HTML attribute safety (named web link)
3356 <div title="[http://example.com/ link]"></div>
3358 <div title="[http://example.com/ link]"></div>
3363 Bug 3244: HTML attribute safety (extension; safe)
3365 <div style="<nowiki>background:blue</nowiki>"></div>
3367 <div style="background:blue"></div>
3372 Bug 3244: HTML attribute safety (extension; unsafe)
3374 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
3381 Math section safety when disabled
3383 <math><script>alert(document.cookies);</script></math>
3385 <p><math><script>alert(document.cookies);</script></math>
3389 # More MSIE fun discovered by Tom Gilder
3392 MSIE CSS safety test: spurious slash
3394 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
3401 MSIE CSS safety test: hex code
3403 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
3410 MSIE CSS safety test: comment in url
3412 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
3414 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
3419 MSIE CSS safety test: comment in expression
3421 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
3423 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
3429 Table attribute legitimate extension
3432 !+ style="<nowiki>color:blue</nowiki>"| status
3437 <th style="color:blue"> status
3443 Table attribute safety
3446 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
3457 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
3460 Parser hook: empty input
3473 Parser hook: empty input using terminated empty elements
3486 Parser hook: basic input
3500 Parser hook: case insensetive
3514 Parser hook: case insensetive, redux
3527 Parser hook: nested tags
3531 <tag><tag></tag></tag>
3542 Parser hook: basic arguments
3544 <tag width=200 height = "100" depth = '50' square></tag>
3563 Parser hook: empty input using terminated empty elements (bug 2374)
3577 # </tag> should be output literally since there is no matching tag that begins it
3579 Parser hook: basic arguments using terminated empty elements (bug 2374)
3581 <tag width=200 height = "100" depth = '50' square/>
3604 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
3608 Parser hook: static parser hook not inside a comment
3610 <statictag>hello, world</statictag>
3611 <statictag action=flush/>
3619 Parser hook: static parser hook inside a comment
3621 <!-- <statictag>hello, world</statictag> -->
3622 <statictag action=flush/>
3628 # Nested template calls; this case was broken by Parser.php rev 1.506,
3632 Template:One-parameter
3634 (My parameter is: {{{1}}})
3638 Template:Map-one-parameter
3644 Nested template calls
3646 {{Map-one-parameter|One-parameter|param}}
3648 <p>(My parameter is: param)
3657 Sanitizer: Closing of open tags
3659 <s></s><table></table>
3661 <s></s><table></table>
3666 Sanitizer: Closing of open but not closed tags
3675 Sanitizer: Closing of closed but not open tags
3684 Sanitizer: Closing of closed but not open table tags
3686 Table not started</td></tr></table>
3688 <p>Table not started</td></tr></table>
3693 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
3695 <span id="æ: v">byte</span>[[#æ: v|backlink]]
3697 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v" title="">backlink</a>
3702 Sanitizer: Validating the contents of the id attribute (bug 4515)
3706 <p><br id="iHaveToStartWithALetter-9" />