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 # disabled do not run test
24 # For testing purposes, temporary articles can created:
25 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
26 # where '/' denotes a newline.
28 # This is the standard article assumed to exist.
48 This is a simple paragraph.
50 <p>This is a simple paragraph.
70 * plain''italic''plain
71 * plain''italic''plain''italic''plain
72 * plain'''bold'''plain
73 * plain'''bold'''plain'''bold'''plain
74 * plain''italic''plain'''bold'''plain
75 * plain'''bold'''plain''italic''plain
76 * plain''italic'''bold-italic'''italic''plain
77 * plain'''bold''bold-italic''bold'''plain
78 * plain'''''bold-italic'''italic''plain
79 * plain'''''bold-italic''bold'''plain
80 * plain''italic'''bold-italic'''''plain
81 * plain'''bold''bold-italic'''''plain
82 * plain l'''italic''plain
85 </li><li> plain<i>italic</i>plain
86 </li><li> plain<i>italic</i>plain<i>italic</i>plain
87 </li><li> plain<b>bold</b>plain
88 </li><li> plain<b>bold</b>plain<b>bold</b>plain
89 </li><li> plain<i>italic</i>plain<b>bold</b>plain
90 </li><li> plain<b>bold</b>plain<i>italic</i>plain
91 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
92 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
93 </li><li> plain<i><b>bold-italic</b>italic</i>plain
94 </li><li> plain<b><i>bold-italic</i>bold</b>plain
95 </li><li> plain<i>italic<b>bold-italic</b></i>plain
96 </li><li> plain<b>bold<i>bold-italic</i></b>plain
97 </li><li> plain l'<i>italic</i>plain
103 ### <nowiki> test cases
107 <nowiki> unordered list
109 <nowiki>* This is not an unordered list item.</nowiki>
111 <p>* This is not an unordered list item.
118 <nowiki>Lorem ipsum dolor
139 :There is not nowiki.
140 :There is <nowiki>nowiki</nowiki>.
142 #There is not nowiki.
143 #There is <nowiki>nowiki</nowiki>.
145 *There is not nowiki.
146 *There is <nowiki>nowiki</nowiki>.
148 <dl><dd>There is not nowiki.
149 </dd><dd>There is nowiki.
151 <ol><li>There is not nowiki.
152 </li><li>There is nowiki.
154 <ul><li>There is not nowiki.
155 </li><li>There is nowiki.
167 <!-- comment 1 --> asdf
203 asdf<!-- comment 1 -->jkl
213 <!-- foo --> b <!-- bar -->
227 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
233 Comment semantics and delimiters
235 <!-- --><!----><!-----><!------>
241 Comment semantics and delimiters, redux
243 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
244 -- foo -- funky huh? ... -->
250 Comment semantics and delimiters: directors cut
252 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
253 everything starting with < followed by !-- until the first -- and > we see,
254 that wouldn't be valid XML however, since in XML -- has to terminate a comment
262 Comment semantics: nesting
264 <!--<!-- no, we're not going to do anything fancy here -->-->
271 Comment semantics: unclosed comment at end
273 <!--This comment will run out to the end of the document
280 ### Preformatted text
289 And a [[Main Page|link]]
295 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
300 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
317 Regression with preformatted in <center>
331 <pre> with attributes (bug 3202)
333 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
335 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
340 <pre> with width attribute (bug 3202)
342 <pre width="8">Narrow screen goodies</pre>
344 <pre width="8">Narrow screen goodies</pre>
349 <pre> with forbidden attribute (bug 3202)
351 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
353 <pre width="8">Narrow screen goodies</pre>
358 <pre> with forbidden attribute values (bug 3202)
360 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
362 <pre width="8">Narrow screen goodies</pre>
374 <dl><dt> name </dt><dd> Definition
380 Definition list for indentation only
384 <dl><dd> Indented text
390 Definition list with no space
394 <dl><dt>name</dt><dd>Definition
400 Definition list with URL link
402 ; http://example.com/ : definition
404 <dl><dt> <a href="http://example.com/" class="external free" title="http://example.com/" rel="nofollow">http://example.com/</a> </dt><dd> definition
410 Definition list with bracketed URL link
412 ;[http://www.example.com/ Example]:Something about it
414 <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
420 Definition list with wikilink containing colon
422 ; [[Help:FAQ]]: The least-read page on Wikipedia
424 <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
429 # At Brion's and JeLuF's insistence... :)
431 Definition list with news link containing colon
433 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
435 <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!
441 Malformed definition list with colon
443 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
445 <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
451 Definition lists: colon in external link text
453 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
455 <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
461 Definition lists: colon in HTML attribute
463 ;<b style="display: inline">bold</b>
465 <dl><dt><b style="display: inline">bold</b>
472 Definition lists: self-closed tag
474 ;one<br/>two : two-line fun
476 <dl><dt>one<br />two </dt><dd> two-line fun
486 External links: non-bracketed
488 Non-bracketed: http://example.com
490 <p>Non-bracketed: <a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a>
495 External links: numbered
497 Numbered: [http://example.com]
498 Numbered: [http://example.net]
499 Numbered: [http://example.org]
501 <p>Numbered: <a href="http://example.com" class="external autonumber" title="http://example.com" rel="nofollow">[1]</a>
502 Numbered: <a href="http://example.net" class="external autonumber" title="http://example.net" rel="nofollow">[2]</a>
503 Numbered: <a href="http://example.org" class="external autonumber" title="http://example.org" rel="nofollow">[3]</a>
508 External links: specified text
510 Specified text: [http://example.com link]
512 <p>Specified text: <a href="http://example.com" class="external text" title="http://example.com" rel="nofollow">link</a>
517 External links: trail
519 Linktrails should not work for external links: [http://example.com link]s
521 <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
526 External links: dollar sign in URL
528 http://example.com/1$2345
530 <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>
535 External links: dollar sign in URL (named)
537 [http://example.com/1$2345]
539 <p><a href="http://example.com/1$2345" class="external autonumber" title="http://example.com/1$2345" rel="nofollow">[1]</a>
544 External links: open square bracket forbidden in URL (bug 4377)
546 http://example.com/1[2345
548 <p><a href="http://example.com/1" class="external free" title="http://example.com/1" rel="nofollow">http://example.com/1</a>[2345
553 External links: open square bracket forbidden in URL (named) (bug 4377)
555 [http://example.com/1[2345]
557 <p><a href="http://example.com/1" class="external text" title="http://example.com/1" rel="nofollow">[2345</a>
562 External links: nowiki in URL link text (bug 6230)
564 [http://example.com/ <nowiki>''example site''</nowiki>]
566 <p><a href="http://example.com/" class="external text" title="http://example.com/" rel="nofollow">''example site''</a>
571 External links: newline forbidden in text (bug 6230 regression check)
573 [http://example.com/ first
576 <p>[<a href="http://example.com/" class="external free" title="http://example.com/" rel="nofollow">http://example.com/</a> first
584 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
586 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
591 External image from https
593 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
595 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
600 Link to non-http image, no img tag
602 Link to non-http image, no img tag: ftp://example.com/test.jpg
604 <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>
609 External links: terminating separator
611 Terminating separator: http://example.com/thing,
613 <p>Terminating separator: <a href="http://example.com/thing" class="external free" title="http://example.com/thing" rel="nofollow">http://example.com/thing</a>,
618 External links: intervening separator
620 Intervening separator: http://example.com/1,2,3
622 <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>
627 External links: old bug with URL in query
629 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
631 <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>
636 External links: old URL-in-URL bug, mixed protocols
638 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
640 <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>
645 External links: URL in text
647 URL in text: [http://example.com http://example.com]
649 <p>URL in text: <a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a>
654 External links: Clickable images
656 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
658 <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>
663 External links: raw ampersand
665 Old & use: http://x&y
667 <p>Old & use: <a href="http://x&y" class="external free" title="http://x&y" rel="nofollow">http://x&y</a>
672 External links: encoded ampersand
674 Old & use: http://x&y
676 <p>Old & use: <a href="http://x&y" class="external free" title="http://x&y" rel="nofollow">http://x&y</a>
681 External links: encoded equals (bug 6102)
683 http://example.com/?foo=bar
685 <p><a href="http://example.com/?foo=bar" class="external free" title="http://example.com/?foo=bar" rel="nofollow">http://example.com/?foo=bar</a>
690 External links: [raw ampersand]
692 Old & use: [http://x&y]
694 <p>Old & use: <a href="http://x&y" class="external autonumber" title="http://x&y" rel="nofollow">[1]</a>
699 External links: [encoded ampersand]
701 Old & use: [http://x&y]
703 <p>Old & use: <a href="http://x&y" class="external autonumber" title="http://x&y" rel="nofollow">[1]</a>
708 External links: [encoded equals] (bug 6102)
710 [http://example.com/?foo=bar]
712 <p><a href="http://example.com/?foo=bar" class="external autonumber" title="http://example.com/?foo=bar" rel="nofollow">[1]</a>
717 External links: [IDN ignored character reference in hostname; strip it right off]
719 [http://e‌xample.com/]
721 <p><a href="http://example.com/" class="external autonumber" title="http://example.com/" rel="nofollow">[1]</a>
726 External links: IDN ignored character reference in hostname; strip it right off
728 http://e‌xample.com/
730 <p><a href="http://example.com/" class="external free" title="http://example.com/" rel="nofollow">http://example.com/</a>
735 External links: www.jpeg.org (bug 554)
739 <p><a href="http://www.jpeg.org" class="external free" title="http://www.jpeg.org" rel="nofollow">http://www.jpeg.org</a>
744 External links: URL within URL (original bug 2)
746 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
748 <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>
753 BUG 361: URL inside bracketed URL
755 [http://www.example.com/foo http://www.example.com/bar]
757 <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>
762 BUG 361: URL within URL, not bracketed
764 http://www.example.com/foo?=http://www.example.com/bar
766 <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>
771 BUG 289: ">"-token in URL-tail
773 http://www.example.com/<hello>
775 <p><a href="http://www.example.com/" class="external free" title="http://www.example.com/" rel="nofollow">http://www.example.com/</a><hello>
780 BUG 289: literal ">"-token in URL-tail
782 http://www.example.com/<b>html</b>
784 <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>
789 BUG 289: ">"-token in bracketed URL
791 [http://www.example.com/<hello> stuff]
793 <p><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow"><hello> stuff</a>
798 BUG 289: literal ">"-token in bracketed URL
800 [http://www.example.com/<b>html</b> stuff]
802 <p><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow"><b>html</b> stuff</a>
807 BUG 289: literal double quote at end of URL
809 http://www.example.com/"hello"
811 <p><a href="http://www.example.com/" class="external free" title="http://www.example.com/" rel="nofollow">http://www.example.com/</a>"hello"
816 BUG 289: literal double quote in bracketed URL
818 [http://www.example.com/"hello" stuff]
820 <p><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow">"hello" stuff</a>
825 External links: invalid character
826 Fixme: the missing char seems to have gone missing
830 [http://www.example.com test]
832 <p>[<a href="http://www.example.com" class="external free" title="http://www.example.com" rel="nofollow">http://www.example.com</a> test]
837 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
839 [http://www.example.com test]
841 <p><a href="http://www.example.com" class="external text" title="http://www.example.com" rel="nofollow">test</a>
846 External links: wiki links within external link (Bug 3695)
848 [http://example.com [[wikilink]] embedded in ext link]
850 <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>
855 BUG 787: Links with one slash after the url protocol are invalid
859 [http:/example.com title]
862 </p><p>[http:/example.com title]
867 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
869 ''[http://example.com text'']
870 [http://example.com '''text]'''
871 ''Something [http://example.com in italic'']
872 ''Something [http://example.com mixed''''', even bold]'''
873 '''''Now [http://example.com both''''']
875 <p><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><i>text</i></a>
876 <a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><b>text</b></a>
877 <i>Something </i><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><i>in italic</i></a>
878 <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>
879 <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>
887 http://www.example.com/?title=AT%26T
889 <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>
894 Bug 4781, 5267: %26 in URL
896 http://www.example.com/?title=100%25_Bran
898 <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>
903 Bug 4781, 5267: %28, %29 in URL
905 http://www.example.com/?title=Ben-Hur_%281959_film%29
907 <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>
913 Bug 4781: %26 in autonumber URL
915 [http://www.example.com/?title=AT%26T]
917 <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>
922 Bug 4781, 5267: %26 in autonumber URL
924 [http://www.example.com/?title=100%25_Bran]
926 <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>
931 Bug 4781, 5267: %28, %29 in autonumber URL
933 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
935 <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>
941 Bug 4781: %26 in bracketed URL
943 [http://www.example.com/?title=AT%26T link]
945 <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>
950 Bug 4781, 5267: %26 in bracketed URL
952 [http://www.example.com/?title=100%25_Bran link]
954 <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>
959 Bug 4781, 5267: %28, %29 in bracketed URL
961 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
963 <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>
968 External link containing double-single-quotes in text '' (bug 4598 sanity check)
970 Some [http://example.com/ pretty ''italics'' and stuff]!
972 <p>Some <a href="http://example.com/" class="external text" title="http://example.com/" rel="nofollow">pretty <i>italics</i> and stuff</a>!
977 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
979 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
981 <p><i>Some </i><a href="http://example.com/" class="external text" title="http://example.com/" rel="nofollow"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
994 Normal text. '''Bold text.''' Normal text. ''Italic text.''
996 Normal text. '''''Bold italic text.''''' Normal text.
998 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
999 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
1005 Unclosed and unmatched quotes
1007 '''''Bold italic text '''with bold deactivated''' in between.'''''
1009 '''''Bold italic text ''with italic deactivated'' in between.'''''
1013 ..spanning two paragraphs (should not work).'''
1015 '''Bold tag left open
1017 ''Italic tag left open
1021 <!-- Unmatching number of opening, closing tags: -->
1022 '''This year''''s election ''should'' beat '''last year''''s.
1024 ''Tom'''s car is bigger than ''Susan'''s.
1026 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
1027 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
1028 </p><p><b>Bold text..</b>
1029 </p><p>..spanning two paragraphs (should not work).
1030 </p><p><b>Bold tag left open</b>
1031 </p><p><i>Italic tag left open</i>
1033 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
1034 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
1041 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
1044 # This should not produce <table></table> as <table><tr><td></td></tr></table>
1045 # is the bare minimun required by the spec, see:
1046 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
1048 A table with no data.
1054 # A table with nothing but a caption is invalid XHTML, we might want to render
1055 # this as <p>caption</p>
1057 A table with nothing but a caption
1065 </caption><tr><td></td></tr></table>
1089 Multiplication table
1091 {| border="1" cellpadding="2"
1092 |+Multiplication table
1094 ! × !! 1 !! 2 !! 3
1112 <table border="1" cellpadding="2">
1113 <caption>Multiplication table
1116 <th> × </th><th> 1 </th><th> 2 </th><th> 3
1120 </th><td> 1 </td><td> 2 </td><td> 3
1124 </th><td> 2 </td><td> 4 </td><td> 6
1128 </th><td> 3 </td><td> 6 </td><td> 9
1132 </th><td> 4 </td><td> 8 </td><td> 12
1136 </th><td> 5 </td><td> 10 </td><td> 15
1144 {| align=right border=1
1146 |rowspan=2| Cell 2, row 1 (and 2)
1153 <table align="right" border="1">
1156 </td><td rowspan="2"> Cell 2, row 1 (and 2)
1157 </td><td> Cell 3, row 1
1161 </td><td> Cell 3, row 2
1172 {| bgcolor=#ABCDEF border=2
1177 |the original table again
1184 <table bgcolor="#ABCDEF" border="2">
1191 </td><td>the original table again
1197 Invalid attributes in table cell (bug 1830)
1211 # FIXME: this one has incorrect tag nesting still.
1213 TODO: Table security: embedded pipes (http://mail.wikipedia.org/pipermail/wikitech-l/2006-April/034637.html)
1216 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
1220 <td><a href="ftp://|x||" class="external autonumber" title="ftp://|x||" rel="nofollow">[1]</td><td></a>" onmouseover="alert(document.cookie)">test
1232 Plain link, capitalized
1236 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1241 Plain link, uncapitalized
1245 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
1252 [[Main Page|The Main Page]]
1254 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
1263 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit" class="new" title="Zigzagzogzagzig">Zigzagzogzagzig</a>
1270 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
1272 <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>
1279 [[Main Page]]xxx, [[Main Page]]XXX
1281 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX
1286 Link with 3 brackets
1295 Piped link with 3 brackets
1297 [[[main page|the main page]]]
1299 <p>[[[main page|the main page]]]
1304 Link with multiple pipes
1306 [[Main Page|The|Main|Page]]
1308 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
1315 [[Talk:Parser testing]], [[Meta:Disclaimers]]
1317 <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>
1322 Piped link to namespace
1324 [[Meta:Disclaimers|The disclaimers]]
1326 <p><a href="/index.php?title=Meta:Disclaimers&action=edit" class="new" title="Meta:Disclaimers">The disclaimers</a>
1333 [[Usually caused by a typo (oops}]]
1335 <p>[[Usually caused by a typo (oops}]]
1340 Link containing % (not as a hex sequence)
1344 <p><a href="/index.php?title=7%25_Solution&action=edit" class="new" title="7% Solution">7% Solution</a>
1349 Link containing % as a single hex sequence interpreted to char
1353 <p><a href="/index.php?title=7%25_Solution&action=edit" class="new" title="7% Solution">7% Solution</a>
1358 Link containing % as a double hex sequence interpreted to hex sequence
1362 <p>[[7%2525 Solution]]
1367 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
1368 Example for such a section: == < ==
1370 [[%23%3c]][[%23%3e]]
1372 <p><a href="#.3C" title="">#<</a><a href="#.3E" title="">#></a>
1377 Link containing "<#" and ">#" as a hex sequences
1379 [[%3c%23]][[%3e%23]]
1381 <p>[[%3c%23]][[%3e%23]]
1386 TODO: Link containing double-single-quotes '' (bug 4598)
1388 [[Lista d''e paise d''o munno]]
1390 <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>
1395 Link containing double-single-quotes '' in text (bug 4598 sanity check)
1397 Some [[Link|pretty ''italics'' and stuff]]!
1399 <p>Some <a href="/index.php?title=Link&action=edit" class="new" title="Link">pretty <i>italics</i> and stuff</a>!
1404 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
1406 ''Some [[Link|pretty ''italics'' and stuff]]!
1408 <p><i>Some </i><a href="/index.php?title=Link&action=edit" class="new" title="Link"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
1415 [[http://www.example.org]]
1417 <p>[<a href="http://www.example.org" class="external autonumber" title="http://www.example.org" rel="nofollow">[1]</a>]
1421 # I'm fairly sure the expected result here is wrong.
1422 # We want these to be URL links, not pseudo-pages with URLs for titles....
1423 # However the current output is also pretty screwy.
1426 # I'm changing it to match the current output--it arguably makes more
1427 # sense in the light of the test above. Old expected result was:
1428 #<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>
1430 # But I think this test is bordering on "garbage in, garbage out" anyway.
1435 Piped link to URL: [[http://www.example.org|an example URL]]
1437 <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>]
1442 BUG 2: [[page|http://url/]] should link to page, not http://url/
1444 [[Main Page|http://url/]]
1446 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
1451 BUG 337: Escaped self-links should be bold
1455 [[Bug462]] [[Bug462]]
1457 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
1462 Self-link to section should not be bold
1466 [[Main Page#section]]
1468 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
1473 <nowiki> inside a link
1475 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
1477 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
1482 ### Interwiki links (see maintenance/interwiki.sql)
1486 Inline interwiki link
1488 [[MeatBall:SoftSecurity]]
1490 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
1495 Inline interwiki link with empty title (bug 2372)
1499 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?" class="extiw" title="meatball:">MeatBall:</a>
1504 Interwiki link encoding conversion (bug 1636)
1506 *[[Wikipedia:ro:Olteniţa]]
1507 *[[Wikipedia:ro:Olteniţa]]
1509 <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>
1510 </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>
1516 Interwiki link with fragment (bug 2130)
1518 [[MeatBall:SoftSecurity#foo]]
1520 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
1538 Incorrecly removing closing slashes from correctly formed XHTML
1540 <br style="clear:both;" />
1542 <p><br style="clear:both;" />
1547 Failing to transform badly formed HTML into correct XHTML
1553 <p><br clear="left" />
1554 <br clear="right" />
1560 Horizontal ruler (should it add that extra space?)
1574 ### Block-level elements
1597 <ol><li>Numbered list
1614 ***#Number on level 4
1616 **#Number on level 3
1617 **#Number on level 3
1622 <ol><li> with numbers
1624 <ul><li> and bullets
1626 <ol><li> and numbers
1628 </li><li>bullets again
1629 <ul><li>bullet level 2
1630 <ul><li>bullet level 3
1631 <ol><li>Number on level 4
1634 </li><li>bullet level 2
1635 <ol><li>Number on level 3
1636 </li><li>Number on level 3
1639 <ol><li>number level 2
1647 List items are not parsed correctly following a <pre> block (bug 785)
1653 <ul><li> <pre>foo</pre>
1654 </li><li> <pre>bar</pre>
1665 Magic Word: {{CURRENTDAY}}
1674 Magic Word: {{CURRENTDAY2}}
1683 Magic Word: {{CURRENTDAYNAME}}
1692 Magic Word: {{CURRENTDOW}}
1701 Magic Word: {{CURRENTMONTH}}
1710 Magic Word: {{CURRENTMONTHABBREV}}
1712 {{CURRENTMONTHABBREV}}
1719 Magic Word: {{CURRENTMONTHNAME}}
1721 {{CURRENTMONTHNAME}}
1728 Magic Word: {{CURRENTMONTHNAMEGEN}}
1730 {{CURRENTMONTHNAMEGEN}}
1737 Magic Word: {{CURRENTTIME}}
1746 Magic Word: {{CURRENTWEEK}} (@bug 4594)
1755 Magic Word: {{CURRENTYEAR}}
1764 Magic Word: {{FULLPAGENAME}}
1766 title=[[User:Ævar Arnfjörð Bjarmason]]
1770 <p>User:Ævar Arnfjörð Bjarmason
1775 Magic Word: {{FULLPAGENAMEE}}
1777 title=[[User:Ævar Arnfjörð Bjarmason]]
1781 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
1786 Magic Word: {{NAMESPACE}}
1788 title=[[User:Ævar Arnfjörð Bjarmason]]
1798 Magic Word: {{NAMESPACEE}}
1800 title=[[User:Ævar Arnfjörð Bjarmason]]
1810 Magic Word: {{NUMBEROFARTICLES}}
1812 {{NUMBEROFARTICLES}}
1819 Magic Word: {{NUMBEROFFILES}}
1828 Magic Word: {{PAGENAME}}
1830 title=[[User:Ævar Arnfjörð Bjarmason]]
1835 <p>Ævar Arnfjörð Bjarmason
1840 Magic Word: {{PAGENAMEE}}
1842 title=[[User:Ævar Arnfjörð Bjarmason]]
1846 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
1851 Magic Word: {{REVISIONID}}
1860 Magic Word: {{SCRIPTPATH}}
1869 Magic Word: {{SERVER}}
1873 <p><a href="http://localhost" class="external free" title="http://localhost" rel="nofollow">http://localhost</a>
1878 Magic Word: {{SERVERNAME}}
1887 Magic Word: {{SITENAME}}
1896 Namespace 1 {{ns:1}}
1905 Namespace 1 {{ns:01}}
1914 Namespace 0 {{ns:0}} (bug 4783)
1922 Namespace 0 {{ns:00}} (bug 4783)
1930 Namespace -1 {{ns:-1}}
1939 Namespace Project {{ns:User}}
1952 Magic links: internal link to RFC (bug 479)
1956 <p><a href="/index.php?title=RFC_123&action=edit" class="new" title="RFC 123">RFC 123</a>
1961 Magic links: RFC (bug 479)
1965 <p><a href="http://www.ietf.org/rfc/rfc822.txt" class="external" title="http://www.ietf.org/rfc/rfc822.txt">RFC 822</a>
1970 Magic links: ISBN (bug 1937)
1974 <p><a href="/index.php?title=Special:Booksources&isbn=0306406152" class="internal">ISBN 0-306-40615-2</a>
1979 Magic links: PMID incorrectly converts space to underscore
1983 <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>
1992 Nonexistant template
1994 {{thistemplatedoesnotexist}}
1996 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit" class="new" title="Template:Thistemplatedoesnotexist">Template:Thistemplatedoesnotexist</a>
2003 This is a test template
2011 <p>This is a test template
2016 Template with explicit namespace
2020 <p>This is a test template
2028 This is a test template with parameter {{{param}}}
2034 {{paramtest|param=foo}}
2036 <p>This is a test template with parameter foo
2041 Template:paramtestnum
2047 Template unnamed parameter
2049 {{paramtestnum|Main Page|the main page}}
2051 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
2056 Template:templatesimple
2062 Template:templateredirect
2064 #redirect [[Template:templatesimple]]
2068 Template:templateasargtestnum
2074 Template:templateasargtest
2076 {{template{{{templ}}}}}
2080 Template:templateasargtest2
2086 Template with template name as unnamed argument
2088 {{templateasargtestnum|templatesimple}}
2095 Template with template name as argument
2097 {{templateasargtest|templ=simple}}
2104 Template with template name as argument (2)
2106 {{templateasargtest2|templ=templatesimple}}
2113 Template:templateasargtestdefault
2115 {{{{{templ|templatesimple}}}}}
2125 Template with default value
2127 {{templateasargtestdefault}}
2134 Template with default value (value set)
2136 {{templateasargtestdefault|templ=templa}}
2145 {{templateredirect}}
2152 Template with argument in separate line
2154 {{ templateasargtest |
2162 Template with complex template as argument
2165 param ={{ templateasargtest |
2168 <p>This is a test template with parameter (test)
2173 Template with thumb image (with link in description)
2176 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
2178 This is a test template with parameter <div class="thumb tright"><div class="thumbinner" style="width:122px;"><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>
2183 Template:complextemplate
2185 {{{1}}} {{paramtest|
2186 param ={{{param}}}}}
2190 Template with complex arguments
2193 param ={{ templateasargtest |
2194 templ = simple }}|[[Template:complextemplate|link]]}}
2196 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
2201 BUG 553: link with two variables in a piped link
2204 |[[{{{1}}}|{{{2}}}]]
2209 <td>[[{{{1}}}|{{{2}}}]]
2215 Magic variable as template parameter
2217 {{paramtest|param={{SITENAME}}}}
2219 <p>This is a test template with parameter MediaWiki
2226 [[{{{param}}}|link]]
2230 Template parameter as link source
2232 {{linktest|param=Main Page}}
2234 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
2242 including another template, {{paramtest|param={{{arg}}}}}
2246 Template passing argument to another template
2248 {{paramtest2|arg='hmm'}}
2250 <p>including another template, This is a test template with parameter 'hmm'
2261 Template as link source
2265 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2283 Template infinite loop
2287 <p><a href="/index.php?title=Loop1&action=edit" class="new" title="Loop1">loop1</a><!-- WARNING: template loop detected -->
2292 Template from main namespace
2311 BUG 529: Template with table, not included at beginning of line
2328 BUG 523: Template shouldn't eat newline (or add an extra one before table)
2346 BUG 41: Template parameters shown as broken links
2358 ''None'' of '''this''' should be
2360 but rather passed unmodified
2364 # hmm, fix this or just deprecate msgnw and document its behavior?
2370 {{msgnw:MSGNW test}}
2372 <p>''None'' of '''this''' should be
2374 but rather passed unmodified
2382 {{int:youhavenewmessages|lots of money|not!}}
2384 <p>You have lots of money (not!).
2391 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2395 <includeonly> and <noinclude> being included
2406 <onlyinclude>Foo</onlyinclude>bar
2410 <onlyinclude> being included
2422 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
2426 <onlyinclude> and <includeonly> being included
2435 <includeonly> and <noinclude> on a page
2437 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
2444 <onlyinclude> on a page
2446 <onlyinclude>Foo</onlyinclude>bar
2453 ### Pre-save transform tests
2456 pre-save transform: subst:
2462 This is a test template
2466 pre-save transform: normal template
2476 pre-save transform: nonexistant template
2480 {{thistemplatedoesnotexist}}
2482 {{thistemplatedoesnotexist}}
2487 pre-save transform: subst magic variables
2496 # This is bug 89, which I fixed. -- wtm
2498 pre-save transform: subst: templates with parameters
2502 {{subst:paramtest|param="something else"}}
2504 This is a test template with parameter "something else"
2510 <nowiki>'''not wiki'''</nowiki>
2514 pre-save transform: nowiki in subst (bug 1188)
2518 {{subst:nowikitest}}
2520 <nowiki>'''not wiki'''</nowiki>
2525 Template:commenttest
2527 This template has <!-- a comment --> in it.
2531 pre-save transform: comment in subst (bug 1936)
2535 {{subst:commenttest}}
2537 This template has <!-- a comment --> in it.
2541 pre-save transform: unclosed tag
2545 <nowiki>'''not wiki'''
2547 <nowiki>'''not wiki'''
2551 pre-save transform: mixed tag case
2555 <NOwiki>'''not wiki'''</noWIKI>
2557 <NOwiki>'''not wiki'''</noWIKI>
2561 pre-save transform: unclosed comment in <nowiki>
2565 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2567 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
2573 <span onmouseover="alert('crap')">Oh no</span>
2577 (confirming safety of fix for subst bug 1936)
2579 {{Template:dangerous}}
2581 <p><span>Oh no</span>
2586 pre-save transform: comment containing gallery (bug 5024)
2590 <!-- <gallery>data</gallery> -->
2592 <!-- <gallery>data</gallery> -->
2596 pre-save transform: comment containing extension
2600 <!-- <tag>data</tag> -->
2602 <!-- <tag>data</tag> -->
2606 pre-save transform: comment containing nowiki
2610 <!-- <nowiki>data</nowiki> -->
2612 <!-- <nowiki>data</nowiki> -->
2616 pre-save transform: comment containing math
2620 <!-- <math>data</math> -->
2622 <!-- <math>data</math> -->
2626 pre-save transform: <noinclude> in subst (bug 3298)
2636 pre-save transform: <onlyinclude> in subst (bug 3298)
2646 pre-save transform: context links ("pipe trick")
2650 [[Article (context)|]]
2653 [[Bar:Article (context)|]]
2654 [[:Bar:Article (context)|]]
2656 [[|Article (context)]]
2660 [[Article (context)|Article]]
2661 [[Bar:Article|Article]]
2662 [[:Bar:Article|Article]]
2663 [[Bar:Article (context)|Article]]
2664 [[:Bar:Article (context)|Article]]
2666 [[Article (context)]]
2667 [[Bar:X (Y) Z|X (Y) Z]]
2668 [[:Bar:X (Y) Z|X (Y) Z]]
2672 pre-save transform: context links ("pipe trick") with interwiki prefix
2676 [[interwiki:Article|]]
2677 [[:interwiki:Article|]]
2678 [[interwiki:Bar:Article|]]
2679 [[:interwiki:Bar:Article|]]
2681 [[interwiki:Article|Article]]
2682 [[:interwiki:Article|Article]]
2683 [[interwiki:Bar:Article|Bar:Article]]
2684 [[:interwiki:Bar:Article|Bar:Article]]
2688 pre-save transform: context links ("pipe trick") with parens in title
2690 pst title=[[Somearticle (context)]]
2694 [[Article (context)|Article]]
2698 pre-save transform: context links ("pipe trick") with comma in title
2700 pst title=[[Someplace, Somewhere]]
2703 [[Otherplace, Elsewhere|]]
2704 [[Otherplace, Elsewhere, Anywhere|]]
2706 [[Otherplace, Somewhere|Otherplace]]
2707 [[Otherplace, Elsewhere|Otherplace]]
2708 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
2712 pre-save transform: context links ("pipe trick") with parens and comma
2714 pst title=[[Someplace (IGNORED), Somewhere]]
2717 [[Otherplace (place), Elsewhere|]]
2719 [[Otherplace, Somewhere|Otherplace]]
2720 [[Otherplace (place), Elsewhere|Otherplace]]
2724 pre-save transform: context links ("pipe trick") with comma and parens
2726 pst title=[[Who, me? (context)]]
2729 [[Me, Myself, and I (1937 song)|]]
2731 [[Yes, you. (context)|Yes, you.]]
2732 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
2736 pre-save transform: context links ("pipe trick") with namespace
2738 pst title=[[Ns:Somearticle]]
2742 [[Ns:Article|Article]]
2746 pre-save transform: context links ("pipe trick") with namespace and parens
2748 pst title=[[Ns:Somearticle (context)]]
2752 [[Ns:Article (context)|Article]]
2756 pre-save transform: context links ("pipe trick") with namespace and comma
2758 pst title=[[Ns:Somearticle, Context, Whatever]]
2762 [[Ns:Article, Context, Whatever|Article]]
2766 pre-save transform: context links ("pipe trick") with namespace, comma and parens
2768 pst title=[[Ns:Somearticle, Context (context)]]
2772 [[Ns:Article (context)|Article]]
2776 pre-save transform: context links ("pipe trick") with namespace, parens and comma
2778 pst title=[[Ns:Somearticle (IGNORED), Context]]
2782 [[Ns:Article, Context|Article]]
2787 ### Message transform tests
2790 message transform: magic variables
2800 message transform: should not transform wiki markup
2810 TODO: message transform: <noinclude> in transcluded template (bug 4926)
2820 TODO: message transform: <onlyinclude> in transcluded template (bug 4926)
2830 {{#special:}} page name, known
2834 {{#special:Recentchanges}}
2836 Special:Recentchanges
2840 {{#special:}} page name, unknown
2844 {{#special:foobarnonexistent}}
2846 No such special page
2855 [[Image:foobar.jpg]]
2857 <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>
2864 [[Image:foobar.jpg|right]]
2866 <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>
2873 [[Image:foobar.jpg|right|Caption text]]
2875 <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>
2880 Image with frame and link
2882 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
2884 <div class="thumb tleft"><div class="thumbinner" 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" 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>
2889 Link to image page- image page normally doesn't exists, hence edit link
2890 TODO: Add test with existing image page
2891 #<p><a href="/wiki/Image:Test" title="Image:Test">Image:test</a>
2895 <p><a href="/index.php?title=Image:Test&action=edit" class="new" title="Image:Test">Image:test</a>
2900 Frameless image caption with a free URL
2902 [[Image:foobar.jpg|http://example.com]]
2904 <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>
2909 Thumbnail image caption with a free URL
2911 [[Image:foobar.jpg|thumb|http://example.com]]
2913 <div class="thumb tright"><div class="thumbinner" 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" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="Enlarge" /></a></div><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a></div></div></div>
2918 BUG 1887: A ISBN with a thumbnail
2920 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
2922 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="internal" title="ISBN 1235467890"><img src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" alt="ISBN 1235467890" width="180" height="20" longdesc="/wiki/Image:Foobar.jpg" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="Enlarge" /></a></div><a href="/index.php?title=Special:Booksources&isbn=1235467890" class="internal">ISBN 1235467890</a></div></div></div>
2927 BUG 1887: A RFC with a thumbnail
2929 [[Image:foobar.jpg|thumb|This is RFC 12354]]
2931 <div class="thumb tright"><div class="thumbinner" 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" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="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>
2936 BUG 1887: A mailto link with a thumbnail
2938 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
2940 <div class="thumb tright"><div class="thumbinner" 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" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="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>
2945 BUG 1887: A <math> with a thumbnail- we don't render math in the parsertests by default,
2946 so math is not stripped and turns up as escaped <math> tags.
2948 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
2950 <div class="thumb tright"><div class="thumbinner" 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" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="Enlarge" /></a></div><math>2+2</math></div></div></div>
2955 BUG 1887, part 2: A <math> with a thumbnail- math enabled
2959 [[Image:foobar.jpg|thumb|<math>2+2</math>]]
2961 <div class="thumb tright"><div class="thumbinner" 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" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="Enlarge" /></a></div><span class="texhtml">2 + 2</span></div></div></div>
2965 # Pending resolution to bug 368
2967 BUG 648: Frameless image caption with a link
2969 [[Image:foobar.jpg|text with a [[link]] in it]]
2971 <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>
2976 BUG 648: Frameless image caption with a link (suffix)
2978 [[Image:foobar.jpg|text with a [[link]]foo in it]]
2980 <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>
2985 BUG 648: Frameless image caption with an interwiki link
2987 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
2989 <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>
2994 BUG 648: Frameless image caption with a piped interwiki link
2996 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
2998 <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>
3003 Escape HTML special chars in image alt text
3005 [[Image:foobar.jpg|& < > "]]
3007 <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>
3012 BUG 499: Alt text should have Ӓ, not &1234;
3014 [[Image:foobar.jpg|♀]]
3016 <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>
3021 Broken image caption with link
3023 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
3025 <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.
3030 Image caption containing another image
3032 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
3034 <div class="thumb tright"><div class="thumbinner" 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" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="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>
3039 Image caption containing a newline
3041 [[Image:Foobar.jpg|This
3044 <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>
3050 Bug 3090: External links other than http: in image captions
3052 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
3054 <div class="thumb tright"><div class="thumbinner" 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" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="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>
3063 Subpage test/subpage
3071 subpage title=[[Subpage test]]
3075 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
3080 Subpage noslash link
3082 subpage title=[[Subpage test]]
3086 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
3095 <p><a href="/index.php?title=/subpage&action=edit" class="new" title="/subpage">/subpage</a>
3100 BUG 561: {{/Subpage}}
3102 subpage title=[[Page]]
3106 <p><a href="/index.php?title=Page/Subpage&action=edit" class="new" title="Page/Subpage">Page/Subpage</a>
3114 Category:MediaWiki User's Guide
3122 [[:Category:MediaWiki User's Guide]]
3124 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
3133 [[Category:MediaWiki User's Guide]]
3135 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
3139 ### Inter-language links
3142 Inter-language links
3148 [[zh:食品]]
3150 es:Alimento fr:Nourriture zh:食品
3157 Basic section headings
3164 ===Smaller headline===
3167 <a name="Headline_1"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline"> Headline 1 </span></h2>
3170 <a name="Headline_2"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline">Headline 2</span></h2>
3173 <a name="Smaller_headline"></a><h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a>]</span> <span class="mw-headline">Smaller headline</span></h3>
3179 Section headings with TOC
3182 === Subheadline 1 ===
3183 ===== Skipping a level =====
3184 ====== Skipping a level ======
3188 ===Another headline===
3190 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3192 <li class="toclevel-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
3194 <li class="toclevel-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
3196 <li class="toclevel-3"><a href="#Skipping_a_level"><span class="tocnumber">1.1.1</span> <span class="toctext">Skipping a level</span></a>
3198 <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>
3205 <li class="toclevel-1"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
3207 <li class="toclevel-2"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
3211 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3212 <a name="Headline_1"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline"> Headline 1 </span></h2>
3213 <a name="Subheadline_1"></a><h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a>]</span> <span class="mw-headline"> Subheadline 1 </span></h3>
3214 <a name="Skipping_a_level"></a><h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline"> Skipping a level </span></h5>
3215 <a name="Skipping_a_level_2"></a><h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline"> Skipping a level </span></h6>
3216 <a name="Headline_2"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline"> Headline 2 </span></h2>
3219 <a name="Another_headline"></a><h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a>]</span> <span class="mw-headline">Another headline</span></h3>
3223 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
3225 Handling of sections up to level 6 and beyond
3228 == Level 2 Heading==
3229 === Level 3 Heading===
3230 ==== Level 4 Heading====
3231 ===== Level 5 Heading=====
3232 ====== Level 6 Heading======
3233 ======= Level 7 Heading=======
3234 ======== Level 8 Heading========
3235 ========= Level 9 Heading=========
3236 ========== Level 10 Heading==========
3238 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
3240 <li class="toclevel-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
3242 <li class="toclevel-2"><a href="#Level_2_Heading"><span class="tocnumber">1.1</span> <span class="toctext">Level 2 Heading</span></a>
3244 <li class="toclevel-3"><a href="#Level_3_Heading"><span class="tocnumber">1.1.1</span> <span class="toctext">Level 3 Heading</span></a>
3246 <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>
3248 <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>
3250 <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>
3251 <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>
3252 <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>
3253 <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>
3254 <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>
3266 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
3267 <a name="Level_1_Heading"></a><h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a>]</span> <span class="mw-headline"> Level 1 Heading</span></h1>
3268 <a name="Level_2_Heading"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a>]</span> <span class="mw-headline"> Level 2 Heading</span></h2>
3269 <a name="Level_3_Heading"></a><h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a>]</span> <span class="mw-headline"> Level 3 Heading</span></h3>
3270 <a name="Level_4_Heading"></a><h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a>]</span> <span class="mw-headline"> Level 4 Heading</span></h4>
3271 <a name="Level_5_Heading"></a><h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a>]</span> <span class="mw-headline"> Level 5 Heading</span></h5>
3272 <a name="Level_6_Heading"></a><h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a>]</span> <span class="mw-headline"> Level 6 Heading</span></h6>
3273 <a name=".3D_Level_7_Heading.3D"></a><h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a>]</span> <span class="mw-headline">= Level 7 Heading=</span></h6>
3274 <a name=".3D.3D_Level_8_Heading.3D.3D"></a><h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a>]</span> <span class="mw-headline">== Level 8 Heading==</span></h6>
3275 <a name=".3D.3D.3D_Level_9_Heading.3D.3D.3D"></a><h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a>]</span> <span class="mw-headline">=== Level 9 Heading===</span></h6>
3276 <a name=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D"></a><h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a>]</span> <span class="mw-headline">==== Level 10 Heading====</span></h6>
3281 Resolving duplicate section names
3286 <a name="Foo_bar"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline"> Foo bar </span></h2>
3287 <a name="Foo_bar_2"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline"> Foo bar </span></h2>
3299 Template with sections, __NOTOC__
3306 <a name="Section_0"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a>]</span> <span class="mw-headline">Section 0</span></h2>
3307 <a name="Section_1"></a><h3><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=1" title="Template:Sections">edit</a>]</span> <span class="mw-headline">Section 1</span></h3>
3308 <a name="Section_2"></a><h2><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=2" title="Template:Sections">edit</a>]</span> <span class="mw-headline">Section 2</span></h2>
3309 <a name="Section_4"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a>]</span> <span class="mw-headline">Section 4</span></h2>
3314 __NOEDITSECTION__ keyword
3320 <a name="Section_1"></a><h2> <span class="mw-headline">Section 1</span></h2>
3321 <a name="Section_2"></a><h2> <span class="mw-headline">Section 2</span></h2>
3326 Link inside a section heading
3328 ==Section with a [[Main Page|link]] in it==
3330 <a name="Section_with_a_link_in_it"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a>]</span> <span class="mw-headline">Section with a <a href="/wiki/Main_Page" title="Main Page">link</a> in it</span></h2>
3336 BUG 1219 URL next to image (good)
3338 http://example.com [[Image:foobar.jpg]]
3340 <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>
3345 BUG 1219 URL next to image (broken)
3347 http://example.com[[Image:foobar.jpg]]
3349 <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>
3354 Bug 1186 news: in the middle of text
3356 http://en.wikinews.org/wiki/Wikinews:Workplace
3358 <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>
3364 Namespaced link must have a title
3373 Namespaced link must have a title (bad fragment version)
3375 [[Project:#fragment]]
3377 <p>[[Project:#fragment]]
3383 div with no attributes
3385 <div>HTML rocks</div>
3387 <div>HTML rocks</div>
3392 div with double-quoted attribute
3394 <div id="rock">HTML rocks</div>
3396 <div id="rock">HTML rocks</div>
3401 div with single-quoted attribute
3403 <div id='rock'>HTML rocks</div>
3405 <div id="rock">HTML rocks</div>
3410 div with unquoted attribute
3412 <div id=rock>HTML rocks</div>
3414 <div id="rock">HTML rocks</div>
3419 div with illegal double attributes
3421 <div align="center" align="right">HTML rocks</div>
3423 <div align="right">HTML rocks</div>
3428 HTML multiple attributes correction
3430 <p class="error" class="awesome">Awesome!</p>
3432 <p class="awesome">Awesome!</p>
3437 Table multiple attributes correction
3440 !+ class="error" class="awesome"| status
3445 <th class="awesome"> status
3453 <DIV ALIGN="center">HTML ROCKS</DIV>
3455 <div align="center">HTML ROCKS</div>
3461 text with amp in the middle of nowhere
3465 <p>Remember AT&T?
3470 text with character entity: eacute
3472 I always thought é was a cute letter.
3474 <p>I always thought é was a cute letter.
3479 text with undefined character entity: xacute
3481 I always thought &xacute; was a cute letter.
3483 <p>I always thought &xacute; was a cute letter.
3495 [[Media:Foobar.jpg]]
3497 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
3502 Media link with text
3504 [[Media:Foobar.jpg|A neat file to look at]]
3506 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
3510 # FIXME: this is still bad HTML tag nesting
3512 Media link with nasty text
3513 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
3515 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
3517 <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>
3522 Media link to nonexistent file (bug 1702)
3524 [[Media:No such.jpg]]
3526 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
3531 Image link to nonexistent file (bug 1850 - good)
3533 [[Image:No such.jpg]]
3535 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="Image:No such.jpg">Image:No such.jpg</a>
3540 :Image link to nonexistent file (bug 1850 - bad)
3542 [[:Image:No such.jpg]]
3544 <p><a href="/index.php?title=Image:No_such.jpg&action=edit" class="new" title="Image:No such.jpg">Image:No such.jpg</a>
3551 Character reference normalization in link text (bug 1938)
3553 [[Main Page|this&that]]
3555 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
3560 Empty attribute crash test (bug 2067)
3562 <font color="">foo</font>
3564 <p><font color="">foo</font>
3569 Empty attribute crash test single-quotes (bug 2067)
3571 <font color=''>foo</font>
3573 <p><font color="">foo</font>
3578 Attribute test: equals, then nothing
3580 <font color=>foo</font>
3587 Attribute test: unquoted value
3589 <font color=x>foo</font>
3591 <p><font color="x">foo</font>
3596 Attribute test: unquoted but illegal value (hash)
3598 <font color=#x>foo</font>
3600 <p><font color="#x">foo</font>
3605 Attribute test: no value
3607 <font color>foo</font>
3609 <p><font color="color">foo</font>
3614 Bug 2095: link with three closing brackets
3618 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
3623 Bug 2095: link with pipe and three closing brackets
3627 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
3632 Bug 2095: link with pipe and three closing brackets, version 2
3634 [[Main Page|[http://example.com/]]]
3636 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
3646 Template:Dangerous attribute
3648 " onmouseover="alert(document.cookie)
3652 Template:Dangerous style attribute
3654 border-size: expression(alert(document.cookie))
3660 <div style="float: right; {{{1}}}">Magic div</div>
3664 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
3666 <div title="{{test}}"></div>
3668 <div title="This is a test template"></div>
3673 Bug 2304: HTML attribute safety (dangerous template; 2309)
3675 <div title="{{dangerous attribute}}"></div>
3677 <div title=""></div>
3682 Bug 2304: HTML attribute safety (dangerous style template; 2309)
3684 <div style="{{dangerous style attribute}}"></div>
3691 Bug 2304: HTML attribute safety (safe parameter; 2309)
3693 {{div style|width: 200px}}
3695 <div style="float: right; width: 200px">Magic div</div>
3700 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
3702 {{div style|width: expression(alert(document.cookie))}}
3704 <div>Magic div</div>
3709 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
3711 {{div style|"><script>alert(document.cookie)</script>}}
3713 <div>Magic div</div>
3718 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
3720 {{div style|" ><script>alert(document.cookie)</script>}}
3722 <div style="float: right;">Magic div</div>
3727 Bug 2304: HTML attribute safety (link)
3729 <div title="[[Main Page]]"></div>
3731 <div title="[[Main Page]]"></div>
3736 Bug 2304: HTML attribute safety (italics)
3738 <div title="''foobar''"></div>
3740 <div title="''foobar''"></div>
3745 Bug 2304: HTML attribute safety (bold)
3747 <div title="'''foobar'''"></div>
3749 <div title="'''foobar'''"></div>
3755 Bug 2304: HTML attribute safety (ISBN)
3757 <div title="ISBN 1234567890"></div>
3759 <div title="ISBN 1234567890"></div>
3764 Bug 2304: HTML attribute safety (RFC)
3766 <div title="RFC 1234"></div>
3768 <div title="RFC 1234"></div>
3773 Bug 2304: HTML attribute safety (PMID)
3775 <div title="PMID 1234567890"></div>
3777 <div title="PMID 1234567890"></div>
3782 Bug 2304: HTML attribute safety (web link)
3784 <div title="http://example.com/"></div>
3786 <div title="http://example.com/"></div>
3791 Bug 2304: HTML attribute safety (named web link)
3793 <div title="[http://example.com/ link]"></div>
3795 <div title="[http://example.com/ link]"></div>
3800 Bug 3244: HTML attribute safety (extension; safe)
3802 <div style="<nowiki>background:blue</nowiki>"></div>
3804 <div style="background:blue"></div>
3809 Bug 3244: HTML attribute safety (extension; unsafe)
3811 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
3818 Math section safety when disabled
3820 <math><script>alert(document.cookies);</script></math>
3822 <p><math><script>alert(document.cookies);</script></math>
3826 # More MSIE fun discovered by Tom Gilder
3829 MSIE CSS safety test: spurious slash
3831 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
3838 MSIE CSS safety test: hex code
3840 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
3847 MSIE CSS safety test: comment in url
3849 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
3851 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
3856 MSIE CSS safety test: comment in expression
3858 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
3860 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
3866 Table attribute legitimate extension
3869 !+ style="<nowiki>color:blue</nowiki>"| status
3874 <th style="color:blue"> status
3880 Table attribute safety
3883 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
3901 Expansion of multi-line templates in attribute values (bug 6255)
3903 <div style="background: {{identity|#00FF00}}">-</div>
3905 <div style="background: #00FF00">-</div>
3911 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
3913 <div style="background:
3916 <div style="background: #00FF00">-</div>
3921 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
3923 <div style="background: #00FF00">-</div>
3925 <div style="background: #00FF00">-</div>
3930 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
3933 Parser hook: empty input
3946 Parser hook: empty input using terminated empty elements
3959 Parser hook: empty input using terminated empty elements (space before)
3972 Parser hook: basic input
3986 Parser hook: case insensetive
4000 Parser hook: case insensetive, redux
4013 Parser hook: nested tags
4017 <tag><tag></tag></tag>
4028 Parser hook: basic arguments
4030 <tag width=200 height = "100" depth = '50' square></tag>
4049 Parser hook: argument containing a forward slash (bug 5344)
4051 <tag filename='/tmp/bla'></tag>
4057 string(8) "/tmp/bla"
4064 Parser hook: empty input using terminated empty elements (bug 2374)
4078 # </tag> should be output literally since there is no matching tag that begins it
4080 Parser hook: basic arguments using terminated empty elements (bug 2374)
4082 <tag width=200 height = "100" depth = '50' square/>
4105 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
4109 Parser hook: static parser hook not inside a comment
4111 <statictag>hello, world</statictag>
4112 <statictag action=flush/>
4120 Parser hook: static parser hook inside a comment
4122 <!-- <statictag>hello, world</statictag> -->
4123 <statictag action=flush/>
4129 # Nested template calls; this case was broken by Parser.php rev 1.506,
4133 Template:One-parameter
4135 (My parameter is: {{{1}}})
4139 Template:Map-one-parameter
4145 Nested template calls
4147 {{Map-one-parameter|One-parameter|param}}
4149 <p>(My parameter is: param)
4158 Sanitizer: Closing of open tags
4160 <s></s><table></table>
4162 <s></s><table></table>
4167 Sanitizer: Closing of open but not closed tags
4176 Sanitizer: Closing of closed but not open tags
4185 Sanitizer: Closing of closed but not open table tags
4187 Table not started</td></tr></table>
4189 <p>Table not started</td></tr></table>
4194 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
4196 <span id="æ: v">byte</span>[[#æ: v|backlink]]
4198 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v" title="">backlink</a>
4203 Sanitizer: Validating the contents of the id attribute (bug 4515)
4209 Something, but defenetly not <br id="9" />...
4213 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
4217 <br id="foo" /><br id="foo" />
4219 Something need to be done. foo-2 ?
4223 Language converter: output gets cut off unexpectedly (bug 5757)
4227 this bit is safe: }-
4229 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
4231 then we get cut off here: }-
4233 all additional text is vanished
4235 <p>this bit is safe: }-
4236 </p><p>but if we add a conversion instance: xxx
4237 </p><p>then we get cut off here: }-
4238 </p><p>all additional text is vanished
4243 Self closed html pairs (bug 5487)
4246 <center><font id="bug" />Centered text</center>
4247 <div><font id="bug2" />In div text</div>
4249 <center><font id="bug" />Centered text</center>
4250 <div><font id="bug2" />In div text</div>
4259 HTML bullet list, closed tags (bug 5497)
4274 TODO: HTML bullet list, unclosed tags (bug 5497)
4289 HTML ordered list, closed tags (bug 5497)
4304 TODO: HTML ordered list, unclosed tags (bug 5497)
4319 HTML nested bullet list, closed tags (bug 5497)
4344 TODO: HTML nested bullet list, open tags (bug 5497)
4367 HTML nested ordered list, closed tags (bug 5497)
4392 TODO: HTML nested ordered list, open tags (bug 5497)
4415 HTML ordered list item with parameters oddity
4417 <ol><li id="fragment">One</li></ol>
4419 <ol><li id="fragment">One</li></ol>
4424 bug 5918: autonumbering
4426 [http://first/] [http://second] [ftp://ftp]
4430 [mailto:enclosed@mail.tld With target]
4432 [mailto:enclosed@mail.tld]
4434 mailto:inline@mail.tld
4436 <p><a href="http://first/" class="external autonumber" title="http://first/" rel="nofollow">[1]</a> <a href="http://second" class="external autonumber" title="http://second" rel="nofollow">[2]</a> <a href="ftp://ftp" class="external autonumber" title="ftp://ftp" rel="nofollow">[3]</a>
4437 </p><p><a href="ftp://inlineftp" class="external free" title="ftp://inlineftp" rel="nofollow">ftp://inlineftp</a>
4438 </p><p><a href="mailto:enclosed@mail.tld" class="external text" title="mailto:enclosed@mail.tld" rel="nofollow">With target</a>
4439 </p><p><a href="mailto:enclosed@mail.tld" class="external autonumber" title="mailto:enclosed@mail.tld" rel="nofollow">[4]</a>
4440 </p><p><a href="mailto:inline@mail.tld" class="external free" title="mailto:inline@mail.tld" rel="nofollow">mailto:inline@mail.tld</a>
4446 # Security and HTML correctness
4447 # From Nick Jenkins' fuzz testing
4451 Fuzz testing: Parser13
4466 Fuzz testing: Parser14
4471 <a name="onmouseover.3D"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a>]</span> <span class="mw-headline"> onmouseover= </span></h2>
4472 http://<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
4474 <li class="toclevel-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
4476 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
4481 Fuzz testing: Parser14-table
4486 <a name="a"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a>]</span> <span class="mw-headline">a</span></h2>
4487 <table style="__TOC__">
4493 # Known to produce bogus xml (extra </td>)
4495 Fuzz testing: Parser16
4504 <th>https://</th><th></th><th></th><th>
4512 Fuzz testing: Parser21
4515 ! irc://{{ftp://a" onmouseover="alert('hello world');"
4520 <th> <a href="irc://{{ftp://a" class="external free" title="irc://{{ftp://a" rel="nofollow">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
4529 Fuzz testing: Parser22
4531 http://===r:::https://b
4535 <p><a href="http://===r:::https://b" class="external free" title="http://===r:::https://b" rel="nofollow">http://===r:::https://b</a>
4543 # Known to produce bad XML for now
4545 Fuzz testing: Parser24
4552 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
4553 <br style="onmouseover='alert(document.cookie);' " />
4555 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
4560 <u class="|">} >
4561 <br style="onmouseover='alert(document.cookie);'" />
4563 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
4572 # Known to produce bad XML for now
4574 Fuzz testing: Parser25 (bug 6055)
4582 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
4584 <li class="||">
4585 blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
4590 Fuzz testing: URL adjacent extension (with space, clean)
4593 http://example.com <nowiki>junk</nowiki>
4595 <p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a> junk
4600 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
4603 http://example.com<nowiki>junk</nowiki>
4605 <p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a>junk
4610 Fuzz testing: URL adjacent extension (no space, dirty; pre)
4613 http://example.com<pre>junk</pre>
4615 <a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a><pre>junk</pre>
4620 Fuzz testing: image with bogus manual thumbnail
4622 [[Image:foobar.jpg|thumbnail= ]]
4624 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="internal" title=""><img src="http://example.com/images/3/3a/Foobar.jpg" alt="" width="180" height="20" longdesc="/wiki/Image:Foobar.jpg" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="Enlarge" /></a></div></div></div></div>
4629 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
4631 <pre dir=" "></pre>
4633 <pre dir=" "></pre>
4638 TODO: Parsing optional HTML elements (Bug 6171)
4643 <td> Some tabular data</td>
4644 <td> More tabular data ...
4645 <td> And yet som tabular data</td>
4651 <td> Some tabular data</td>
4652 <td> More tabular data ...
4653 </td><td> And yet som tabular data</td>
4660 Correct handling of <td>, <tr> (Bug 6171)
4665 <td> Some tabular data</td>
4666 <td> More tabular data ...</td>
4667 <td> And yet som tabular data</td>
4673 <td> Some tabular data</td>
4674 <td> More tabular data ...</td>
4675 <td> And yet som tabular data</td>
4683 Parsing crashing regression (fr:JavaScript)
4687 <p></body></x>
4692 Inline wiki vs wiki block nesting
4698 <p><b>Bold paragraph</b>
4699 </p><p>New wiki paragraph
4704 TODO: Inline HTML vs wiki block nesting
4710 <p><b>Bold paragraph</b>
4711 </p><p>New wiki paragraph
4717 TODO: Mixing markup for italics and bold
4720 '''bold''''''bold''bolditalics'''''
4722 <p><b>bold</b><b>bold<i>bolditalics</i></b>
4730 Article for special page transclusion test
4734 Special page transclusion
4737 {{Special:Prefixindex/Xyzzyx}}
4741 <table style="background: inherit;" border="0" width="100%"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
4746 Special page transclusion twice (bug 5021)
4749 {{Special:Prefixindex/Xyzzyx}}
4750 {{Special:Prefixindex/Xyzzyx}}
4754 <table style="background: inherit;" border="0" width="100%"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
4757 <table style="background: inherit;" border="0" width="100%"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
4762 Invalid header with following text
4772 Section extraction test (section 0)
4792 Section extraction test (section 1)
4814 Section extraction test (section 2)
4835 Section extraction test (section 3)
4855 Section extraction test (section 4)
4879 Section extraction test (section 5)
4899 Section extraction test (section 6)
4920 Section extraction test (section 7)
4940 Section extraction test (section 8)
4960 Section extraction test (section 9)
4981 Section extraction test (section 10)
5001 Section extraction test (nonexistent section 11)
5020 Section extraction test with bogus heading (section 1)
5025 ==bogus== not a legal section
5029 ==bogus== not a legal section
5033 Section extraction test with bogus heading (section 2)
5038 ==bogus== not a legal section
5045 Section extraction test with comment after heading (section 1)
5050 ==legal== <!-- a legal section -->
5057 Section extraction test with comment after heading (section 2)
5062 ==legal== <!-- a legal section -->
5065 ==legal== <!-- a legal section -->
5069 Section extraction test with bogus <nowiki> heading (section 1)
5074 ==bogus== <nowiki>not a legal section</nowiki>
5078 ==bogus== <nowiki>not a legal section</nowiki>
5082 Section extraction test with bogus <nowiki> heading (section 2)
5087 ==bogus== <nowiki>not a legal section</nowiki>
5095 Section extraction prefixed by comment (section 1) (bug 2587)
5106 Section extraction prefixed by comment (section 2) (bug 2587)
5118 Section extraction, mixed wiki and html (section 1) (bug 2607)
5134 Section extraction, mixed wiki and html (section 2) (bug 2607)
5151 Section extraction, heading surrounded by <noinclude> (bug 3342)
5155 <noinclude>==a==</noinclude>
5158 <noinclude>==a==</noinclude>
5164 Section extraction, HTML heading subsections (bug 5272)
5177 Section extraction, HTML headings should be ignored in extensions (bug 3476)
5191 Section replacement test (section 0)
5222 Section replacement test (section 1)
5251 Section replacement test (section 2)
5281 Section replacement test (section 3)
5312 Section replacement test (section 4)
5339 Section replacement test (section 5)
5370 Section replacement test (section 6)
5400 Section replacement test (section 7)
5431 Section replacement test (section 8)
5462 Section replacement test (section 9)
5491 Section replacement test (section 10)
5522 Section extraction, HTML headings not at line boundaries (section 0)
5526 <h2>Evil</h2><i>blah blah blah</i>
5534 <i>extra evil</i><h2>Extra nasty</h2>
5541 Section extraction, HTML headings not at line boundaries (section 1)
5545 <h2>Evil</h2><i>blah blah blah</i>
5553 <i>extra evil</i><h2>Extra nasty</h2>
5557 <h2>Evil</h2><i>blah blah blah</i>
5563 Section extraction, HTML headings not at line boundaries (section 2)
5567 <h2>Evil</h2><i>blah blah blah</i>
5575 <i>extra evil</i><h2>Extra nasty</h2>
5587 Section extraction, HTML headings not at line boundaries (section 3)
5591 <h2>Evil</h2><i>blah blah blah</i>
5599 <i>extra evil</i><h2>Extra nasty</h2>
5603 <h2>Extra nasty</h2>
5610 Section extraction, heading followed by pre with 20 spaces (bug 6398)
5622 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
5634 Handling of 
 in URLs
5638 <ul><li><ul><li><a href="irc://%0Aa" class="external free" title="irc://%0Aa" rel="nofollow">irc://%0Aa</a>
5645 TODO: 5 quotes, code coverage +1 line
5652 Special:Search page linking.
5656 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
5671 * {{SUBJECTPAGENAME}}
5672 * {{SUBJECTPAGENAMEE}}
5679 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
5681 <ul><li> Parser test
5682 </li><li> Parser test
5683 </li><li> Parser test
5684 </li><li> Parser_test
5685 </li><li> Parser test
5686 </li><li> Parser_test
5687 </li><li> Talk:Parser test
5688 </li><li> Talk:Parser_test
5689 </li><li> Parser test
5690 </li><li> Parser_test
5697 </li><li> <a href="/index.php?title=Template:Dynamic&action=edit" class="new" title="Template:Dynamic">Template:Dynamic</a>
5701 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
5711 image4 |300px| centre
5712 image5.svg| http://///////
5717 <table class="gallery" cellspacing="0" cellpadding="0"><tr><td><div class="gallerybox"><div style="height: 152px;">Image1.png</div><div class="gallerytext">
5719 <td><div class="gallerybox"><div style="height: 152px;">Image2.gif</div><div class="gallerytext">
5720 ||||</div></div></td>
5721 <td><div class="gallerybox"><div style="height: 152px;">Image3</div><div class="gallerytext">
5723 <td><div class="gallerybox"><div style="height: 152px;">Image4</div><div class="gallerytext">
5724 300px| centre</div></div></td>
5725 </tr><tr><td><div class="gallerybox"><div style="height: 152px;">Image5.svg</div><div class="gallerytext">
5726 <a href="http://///////" class="external free" title="http://///////" rel="nofollow">http://///////</a></div></div></td>
5727 <td><div class="gallerybox"><div style="height: 152px;">* image6</div><div class="gallerytext">
5735 HTML Hex character encoding (spells the word "JavaScript")
5737 JavaScript
5739 <p>JavaScript
5744 __FORCETOC__ override
5756 ISBN 978-0-1234-56 789
5758 <p><a href="/index.php?title=Special:Booksources&isbn=9780123456" class="internal">ISBN 978-0-1234-56</a> 789
5763 ISBN followed by 5 spaces
5774 ISBN ISBN 1234567890
5776 <p>ISBN <a href="/index.php?title=Special:Booksources&isbn=1234567890" class="internal">ISBN 1234567890</a>
5785 <p>RFC <a href="http://www.ietf.org/rfc/rfc1234.txt" class="external" title="http://www.ietf.org/rfc/rfc1234.txt">RFC 1234</a>
5790 Double RFC with a wiki link
5794 <p>RFC <a href="/index.php?title=RFC_1234&action=edit" class="new" title="RFC 1234">RFC 1234</a>
5803 <p><a href="http://www.ietf.org/rfc/rfc983.txt" class="external" title="http://www.ietf.org/rfc/rfc983.txt">RFC 983</a> 987
5808 Centre-aligned image
5810 [[Image:foobar.jpg|centre]]
5812 <div class="center"><div class="floatnone"><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></div>
5819 [[Image:foobar.jpg|none]]
5821 <div class="floatnone"><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>
5826 Width + Height sized image (using px) (height is ignored)
5828 [[Image:foobar.jpg|640x480px]]
5830 <p><a href="/wiki/Image:Foobar.jpg" class="image" title=""><img src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" alt="" width="640" height="73" longdesc="/wiki/Image:Foobar.jpg" /></a>
5835 Another italics / bold test
5843 # Note the results may be incorrect, as parserTest output included this:
5844 # XML error: Mismatched tag at byte 6120:
5845 # ...<dd> </dt></dl> </dd...
5851 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
5862 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
5864 TODO: Images with the "|" character in the comment
5866 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
5868 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/Image:Foobar.jpg" class="internal" title="An external URL"><img src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" alt="An external URL" width="180" height="20" longdesc="/wiki/Image:Foobar.jpg" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify" style="float:right"><a href="/wiki/Image:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="Enlarge" /></a></div>An <a href="http://test/?param1=|left|&param2=|x" class="external text" title="http://test/?param1=|left|&param2=|x" rel="nofollow">external</a> URL</div></div></div>
5873 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
5875 <html><script>alert(1);</script></html>
5877 <p><html><script>alert(1);</script></html>
5882 HTML with raw HTML ($wgRawHtml==true)
5886 <html><script>alert(1);</script></html>
5888 <p><script>alert(1);</script>
5893 Parents of subpages, one level up
5895 subpage title=[[Subpage test/L1/L2/L3]]
5899 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit" class="new" title="Subpage test/L1/L2">L2</a>
5905 Parents of subpages, one level up, not named
5907 subpage title=[[Subpage test/L1/L2/L3]]
5911 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit" class="new" title="Subpage test/L1/L2">Subpage test/L1/L2</a>
5918 Parents of subpages, two levels up
5921 subpage title=[[Subpage test/L1/L2/L3]]
5925 <p><a href="/index.php?title=Subpage_test/L1&action=edit" class="new" title="Subpage test/L1">L1</a>
5930 # Question: should result be "/index.php?title=Subpage_test/L1&action=edit" instead?
5932 TODO: Parents of subpages, two levels up, without trailing slash or name.
5934 subpage title=[[Subpage test/L1/L2/L3]]
5938 <p><a href="/index.php?title=Subpage_test/L1/L2/..&action=edit" class="new" title="Subpage test/L1">../..</a>
5942 # Question: Why should the link text in the above test be "../..", yet in this test the "../.." part is silently dropped?
5943 # Current result: <p><a href="/index.php?title=Subpage_test/L1////&action=edit" class="new" title="Subpage test/L1////">///
5945 TODO: Parents of subpages, two levels up, with lots of extra trailing slashes.
5947 subpage title=[[Subpage test/L1/L2/L3]]
5951 <p><a href="/index.php?title=Subpage_test/L1&action=edit" class="new" title="Subpage test/L1">Subpage test/L1</a>
5956 Definition list code coverage
5962 <dl><dt> title </dt><dd> def
5963 </dd><dt> title </dt><dd> def
5964 </dd><dt>title</dt><dd> def
5970 TODO: Don't fall for the self-closing div
5972 <div>hello world</div/>
5974 <div>hello world</div>
5983 <p>[[:Template:Msg]]
5992 <p><a href="/index.php?title=Template:QUERTY&action=edit" class="new" title="Template:QUERTY">Template:QUERTY</a>
5996 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
5998 TODO: Always escape literal '>' in output, not just after '<'
6012 <p>This is a test template
6013 This is a test template
6025 Inclusion of !userCanEdit() content
6029 <a name="header"></a><h2><span class="editsection">[<a href="/index.php?title=MediaWiki:Fake&action=edit&section=1" title="MediaWiki:Fake">edit</a>]</span> <span class="mw-headline">header</span></h2>
6035 Out-of-order TOC heading levels
6044 <table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6046 <li class="toclevel-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
6048 <li class="toclevel-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
6049 <li class="toclevel-2"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
6052 <li class="toclevel-1"><a href="#1_7"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
6054 <li class="toclevel-2"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
6055 <li class="toclevel-2"><a href="#2_4"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
6059 </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
6060 <a name="2"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a>]</span> <span class="mw-headline">2</span></h2>
6061 <a name="6"></a><h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a>]</span> <span class="mw-headline">6</span></h6>
6062 <a name="3"></a><h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a>]</span> <span class="mw-headline">3</span></h3>
6063 <a name="1_7"></a><h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a>]</span> <span class="mw-headline">1</span></h1>
6064 <a name="5"></a><h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: 5">edit</a>]</span> <span class="mw-headline">5</span></h5>
6065 <a name="2_4"></a><h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a>]</span> <span class="mw-headline">2</span></h2>
6071 ISBN with a dummy number
6081 ISBN with space-delimited number
6085 <p><a href="/index.php?title=Special:Booksources&isbn=9290170328" class="internal">ISBN 92 9017 032 8</a>
6091 ISBN with multiple spaces, no number
6110 </p><p><a href="/index.php?title=Special:Booksources&isbn=1234567890" class="internal">ISBN 1234567890</a>
6111 </p><p>ISBN 12345678901
6117 ISBN with trailing year (bug 8110)
6119 ISBN 1-234-56789-0 - 2006
6121 ISBN 1 234 56789 0 - 2006
6123 <p><a href="/index.php?title=Special:Booksources&isbn=1234567890" class="internal">ISBN 1-234-56789-0</a> - 2006
6124 </p><p><a href="/index.php?title=Special:Booksources&isbn=1234567890" class="internal">ISBN 1 234 56789 0</a> - 2006
6130 Pages in namespace (Magic word disabled currently)
6132 {{PAGESINNAMESPACE:}}
6141 {{anchorencode:foo bar©#%n}}
6143 <p>foo_bar.C2.A9.23.25n
6149 Bug 8293: Use of center tag ruins paragraph formatting
6171 ### Language variants related tests
6174 Self-link in language variants
6176 title=[[Dunav]] language=sr
6178 Both [[Dunav]] and [[Дунав]] are names for this river.
6180 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
6186 Link to pages in language variants
6190 Main Page can be written as [[Маин Паге]]
6192 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
6198 Multiple links to pages in language variants
6202 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
6204 <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>.
6210 Simple template in language variants
6216 <p>This is a test template
6222 Template with explicit namespace in language variants
6228 <p>This is a test template
6234 Basic test for template parameter in language variants
6238 {{парамтест|param=foo}}
6240 <p>This is a test template with parameter foo
6246 Simple category in language variants
6250 [[:Category:МедиаWики Усер'с Гуиде]]
6252 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6257 Stripping -{}- tags (language variants)
6261 Latin proverb: -{Ne nuntium necare}-
6263 <p>Latin proverb: Ne nuntium necare
6278 Try for 100% code coverage