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 # title=[[XXX]] run test using article title XXX
20 # disabled do not run test
22 # For testing purposes, temporary articles can created:
23 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
24 # where '/' denotes a newline.
26 # This is the standard article assumed to exist.
46 This is a simple paragraph.
48 <p>This is a simple paragraph.
68 * plain''italic''plain
69 * plain''italic''plain''italic''plain
70 * plain'''bold'''plain
71 * plain'''bold'''plain'''bold'''plain
72 * plain''italic''plain'''bold'''plain
73 * plain'''bold'''plain''italic''plain
74 * plain''italic'''bold-italic'''italic''plain
75 * plain'''bold''bold-italic''bold'''plain
76 * plain'''''bold-italic'''italic''plain
77 * plain'''''bold-italic''bold'''plain
78 * plain''italic'''bold-italic'''''plain
79 * plain'''bold''bold-italic'''''plain
80 * plain l'''italic''plain
83 </li><li> plain<i>italic</i>plain
84 </li><li> plain<i>italic</i>plain<i>italic</i>plain
85 </li><li> plain<b>bold</b>plain
86 </li><li> plain<b>bold</b>plain<b>bold</b>plain
87 </li><li> plain<i>italic</i>plain<b>bold</b>plain
88 </li><li> plain<b>bold</b>plain<i>italic</i>plain
89 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
90 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
91 </li><li> plain<i><b>bold-italic</b>italic</i>plain
92 </li><li> plain<b><i>bold-italic</i>bold</b>plain
93 </li><li> plain<i>italic<b>bold-italic</b></i>plain
94 </li><li> plain<b>bold<i>bold-italic</i></b>plain
95 </li><li> plain l'<i>italic</i>plain
101 ### <nowiki> test cases
105 <nowiki> unordered list
107 <nowiki>* This is not an unordered list item.</nowiki>
109 <p>* This is not an unordered list item.
116 <nowiki>Lorem ipsum dolor
137 :There is not nowiki.
138 :There is <nowiki>nowiki</nowiki>.
140 #There is not nowiki.
141 #There is <nowiki>nowiki</nowiki>.
143 *There is not nowiki.
144 *There is <nowiki>nowiki</nowiki>.
146 <dl><dd>There is not nowiki.
147 </dd><dd>There is nowiki.
149 <ol><li>There is not nowiki.
150 </li><li>There is nowiki.
152 <ul><li>There is not nowiki.
153 </li><li>There is nowiki.
159 ### comment test cases
164 <!-- comment 1 --> asdf
200 asdf<!-- comment 1 -->jkl
210 <!-- foo --> b <!-- bar -->
222 ### Preformatted text
231 And a [[Main Page|link]]
237 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
249 <dl><dt> name </dt><dd> Definition
259 <dl><dd> Indented text
265 Definition list with no space
269 <dl><dt>name</dt><dd>Definition
275 Definition list with URL link
277 ; http://example.com/ : definition
279 <dl><dt> <a href="http://example.com/" class='external'>http://example.com/</a> </dt><dd> definition
285 Definition list with bracketed URL link
287 ;[http://www.google.com/ Google]:Number one search engine
289 <dl><dt><a href="http://www.google.com/" class='external' title="http://www.google.com/">Google</a><span class='urlexpansion'> (<i>http://www.google.com/</i>)</span></dt><dd>Number one search engine
295 Definition list with wikilink containing colon
297 ; [[Wikipedia:FAQ]]: The least-read page on Wikipedia
299 <dl><dt> <a href="http://en.wikipedia.org/wiki/FAQ" class='extiw'>Wikipedia:FAQ</a></dt><dd> The least-read page on Wikipedia
304 # At Brion's and JeLuF's insistence... :)
306 Definition list with wikilink containing colon
308 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
310 <dl><dt> <a href="news:alt.wikipedia.rox" class='external'>news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
316 Malformed definition list with colon
318 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
320 <dl><dt> <a href="news:alt.wikipedia.rox" class='external'>news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
326 Definition lists: colon in external link text
328 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
330 <dl><dt> <a href="http://www.wikipedia2.org/" class='external' title="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a><span class='urlexpansion'> (<i>http://www.wikipedia2.org/</i>)</span></dt><dd> OK, I made that up
340 External links: non-bracketed
342 Non-bracketed: http://example.com
344 <p>Non-bracketed: <a href="http://example.com" class='external'>http://example.com</a>
349 External links: numbered
351 Numbered: [http://example.com]
353 <p>Numbered: <a href="http://example.com" class='external' title="http://example.com">[1]</a><span class='urlexpansion'> (<i>http://example.com</i>)</span>
358 External links: specified text
360 Specified text: [http://example.com link]
362 <p>Specified text: <a href="http://example.com" class='external' title="http://example.com">link</a><span class='urlexpansion'> (<i>http://example.com</i>)</span>
367 External links: trail
369 Trail (not sure if this is meant to work): [http://example.com link]s
371 <p>Trail (not sure if this is meant to work): <a href="http://example.com" class='external' title="http://example.com">link</a>s<span class='urlexpansion'> (<i>http://example.com</i>)</span>
376 External links: dollar sign in URL
378 http://example.com/1$2345
380 <p><a href="http://example.com/1$2345" class='external'>http://example.com/1$2345</a>
385 External links: dollar sign in URL (named)
387 [http://example.com/1$2345]
389 <p><a href="http://example.com/1$2345" class='external' title="http://example.com/1$2345">[1]</a><span class='urlexpansion'> (<i>http://example.com/1$2345</i>)</span>
396 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
398 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
403 External image from https
405 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
407 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
412 Link to non-http image, no img tag
414 Link to non-http image, no img tag: ftp://example.com/test.jpg
416 <p>Link to non-http image, no img tag: <a href="ftp://example.com/test.jpg" class='external'>ftp://example.com/test.jpg</a>
421 External links: terminating separator
423 Terminating separator: http://example.com/thing,
425 <p>Terminating separator: <a href="http://example.com/thing" class='external'>http://example.com/thing</a>,
430 External links: intervening separator
432 Intervening separator: http://example.com/1,2,3
434 <p>Intervening separator: <a href="http://example.com/1,2,3" class='external'>http://example.com/1,2,3</a>
439 External links: old bug with URL in query
441 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
443 <p>Old bug with URL in query: <a href="http://example.com/thing?url=http://example.com" class='external' title="http://example.com/thing?url=http://example.com">link</a><span class='urlexpansion'> (<i>http://example.com/thing?url=http://example.com</i>)</span>
448 External links: old URL-in-URL bug, mixed protocols
450 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
452 <p>And again with mixed protocols: <a href="ftp://example.com?url=http://example.com" class='external' title="ftp://example.com?url=http://example.com">link</a><span class='urlexpansion'> (<i>ftp://example.com?url=http://example.com</i>)</span>
457 External links: URL in text
459 URL in text: [http://example.com http://example.com]
461 <p>URL in text: <a href="http://example.com" class='external'>http://example.com</a>
466 External links: Clickable images
468 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
470 <p>ja-style clickable images: <a href="http://example.com" class='external' title="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a><span class='urlexpansion'> (<i>http://example.com</i>)</span>
475 External links: raw ampersand
477 Old & use: http://x&y
479 <p>Old & use: <a href="http://x&y" class='external'>http://x&y</a>
484 External links: www.jpeg.org (bug 554)
488 <p><a href="http://www.jpeg.org" class='external'>http://www.jpeg.org</a>
493 External links: URL within URL (original bug 2)
495 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
497 <p><a href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp" class='external' title="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a><span class='urlexpansion'> (<i>http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp</i>)</span>
502 BUG 361: URL inside bracketed URL
504 [http://www.example.com/foo http://www.example.com/bar]
506 <p><a href="http://www.example.com/foo" class='external' title="http://www.example.com/foo">http://www.example.com/bar</a><span class='urlexpansion'> (<i>http://www.example.com/foo</i>)</span>
511 BUG 289: ">"-token in URL-tail
513 http://www.example.com/<hello>
515 <p><a href="http://www.example.com/" class='external'>http://www.example.com/</a><hello>
520 BUG 289: literal ">"-token in URL-tail
522 http://www.example.com/<b>html</b>
524 <p><a href="http://www.example.com/" class='external'>http://www.example.com/</a><b >html</b >
529 BUG 289: ">"-token in bracketed URL
531 [http://www.example.com/<hello> stuff]
533 <p><a href="http://www.example.com/" class='external' title="http://www.example.com/"><hello> stuff</a><span class='urlexpansion'> (<i>http://www.example.com/</i>)</span>
538 BUG 289: literal ">"-token in bracketed URL
540 [http://www.example.com/<b>html</b> stuff]
542 <p><a href="http://www.example.com/" class='external' title="http://www.example.com/"><b >html</b > stuff</a><span class='urlexpansion'> (<i>http://www.example.com/</i>)</span>
547 BUG 289: literal double quote at end of URL
549 http://www.example.com/"hello"
551 <p><a href="http://www.example.com/" class='external'>http://www.example.com/</a>"hello"
556 BUG 289: literal double quote in bracketed URL
558 [http://www.example.com/"hello" stuff]
560 <p><a href="http://www.example.com/" class='external' title="http://www.example.com/">"hello" stuff</a><span class='urlexpansion'> (<i>http://www.example.com/</i>)</span>
571 Normal text. '''Bold text.''' Normal text. ''Italic text.''
573 Normal text. '''''Bold italic text.''''' Normal text.
575 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
576 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
582 Unclosed and unmatched quotes
584 '''''Bold italic text '''with bold deactivated''' in between.'''''
586 '''''Bold italic text ''with italic deactivated'' in between.'''''
590 ..spanning two paragraphs (should not work).'''
592 '''Bold tag left open
594 ''Italic tag left open
598 <!-- Unmatching number of opening, closing tags: -->
599 '''This year''''s election ''should'' beat '''last year''''s.
601 ''Tom'''s car is bigger than ''Susan'''s.
603 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
604 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
605 </p><p><b>Bold text..</b>
606 </p><p>..spanning two paragraphs (should not work).<b></b>
607 </p><p><b>Bold tag left open</b>
608 </p><p><i>Italic tag left open</i>
610 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
611 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
618 ### content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
642 {| border="1" cellpadding="2"
643 |+Multiplication table
645 ! × !! 1 !! 2 !! 3
663 <table border="1" cellpadding="2">
664 <caption>Multiplication table
667 <th> × </th><th> 1 </th><th> 2 </th><th> 3
671 </th><td> 1 </td><td> 2 </td><td> 3
675 </th><td> 2 </td><td> 4 </td><td> 6
679 </th><td> 3 </td><td> 6 </td><td> 9
683 </th><td> 4 </td><td> 8 </td><td> 12
687 </th><td> 5 </td><td> 10 </td><td> 15
695 {| align=right border=1
697 |rowspan=2| Cell 2, row 1 (and 2)
704 <table align=right border=1>
707 </td><td rowspan=2> Cell 2, row 1 (and 2)
708 </td><td> Cell 3, row 1
712 </td><td> Cell 3, row 2
723 {| bgcolor=#ABCDEF border=2
728 |the original table again
735 <table bgcolor=#ABCDEF border=2>
742 </td><td>the original table again
751 Plain link, capitalized
755 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
760 Plain link, uncapitalized
764 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
771 [[Main Page|The Main Page]]
773 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
782 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit" class="new" title="Zigzagzogzagzig">Zigzagzogzagzig</a>
789 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
791 <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>
798 [[Main Page]]xxx, [[Main Page]]XXX
800 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX
814 Piped link with 3 brackets
816 [[[main page|the main page]]]
818 <p>[[[main page|the main page]]]
825 [[Talk:Parser testing]], [[Meta:Disclaimers]]
827 <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>
832 Piped link to namespace
834 [[Meta:Disclaimers|The disclaimers]]
836 <p><a href="/index.php?title=Meta:Disclaimers&action=edit" class="new" title="Meta:Disclaimers">The disclaimers</a>
843 [[Usually caused by a typo (oops}]]
845 <p>[[Usually caused by a typo (oops}]]
853 [[http://www.example.org]]
855 <p>[<a href="http://www.example.org" class='external' title="http://www.example.org">[1]</a><span class='urlexpansion'> (<i>http://www.example.org</i>)</span>]
859 # I'm fairly sure the expected result here is wrong.
860 # We want these to be URL links, not pseudo-pages with URLs for titles....
861 # However the current output is also pretty screwy.
864 # I'm changing it to match the current output--it arguably makes more
865 # sense in the light of the test above. Old expected result was:
866 #<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>
868 # But I think this test is bordering on "garbage in, garbage out" anyway.
873 Piped link to URL: [[http://www.example.org|an example URL]]
875 <p>Piped link to URL: [<a href="http://www.example.org|an" class='external' title="http://www.example.org|an">example URL</a><span class='urlexpansion'> (<i>http://www.example.org|an</i>)</span>]
880 BUG 2: [[page|http://url/]] should link to page, not http://url/
882 [[Main Page|http://url/]]
884 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
894 Inline interwiki link
896 [[MeatBall:SoftSecurity]]
898 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class='extiw'>MeatBall:SoftSecurity</a>
916 ### Block-level elements
939 <ol><li>Numbered list
956 ***#Number on level 4
964 <ol><li> with numbers
970 </li><li>bullets again
971 <ul><li>bullet level 2
972 <ul><li>bullet level 3
973 <ol><li>Number on level 4
976 </li><li>bullet level 2
977 <ol><li>Number on level 3
978 </li><li>Number on level 3
981 <ol><li>number level 2
1004 Magic links: internal link to RFC
1008 <p><a href="/index.php?title=RFC_123&action=edit" class="new" title="RFC 123">RFC 123</a>
1017 <p><a href='http://www.faqs.org/rfcs/rfc822.html' class='external' title="http://www.faqs.org/rfcs/rfc822.html">RFC 822</a>
1026 <p><a href="/index.php?title=Special:Booksources&isbn=0306406152" class="internal">ISBN 0-306-40615-2</a>
1035 Nonexistant template
1037 {{thistemplatedoesnotexist}}
1039 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit" class="new" title="Template:Thistemplatedoesnotexist">Template:Thistemplatedoesnotexist</a>
1046 This is a test template
1054 <p>This is a test template
1059 Template with explicit namespace
1063 <p>This is a test template
1071 This is a test template with parameter {{{param}}}
1077 {{paramtest|param=foo}}
1079 <p>This is a test template with parameter foo
1084 Template:paramtestnum
1090 Template unnamed parameter
1092 {{paramtestnum|Main Page|the main page}}
1094 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
1099 BUG 553: link with two variables in a piped link
1102 |[[{{{1}}}|{{{2}}}]]
1107 <td>[[{{{1}}}|{{{2}}}]]
1113 Magic variable as template parameter
1115 {{paramtest|param={{SITENAME}}}}
1117 <p>This is a test template with parameter MediaWiki
1124 [[{{{param}}}|link]]
1128 Template parameter as link source
1130 {{linktest|param=Main Page}}
1132 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
1140 including another template, {{paramtest|param={{{arg}}}}}
1144 Template passing argument to another template
1146 {{paramtest2|arg='hmm'}}
1148 <p>including another template, This is a test template with parameter 'hmm'
1159 Template as link source
1163 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
1181 Template infinite loop
1185 <p>{{loop2}}<!-- WARNING: template loop detected -->
1190 Template from main namespace
1209 BUG 529: Template with table, not included at beginning of line
1226 BUG 523: Template shouldn't eat newline (or add an extra one before table)
1244 BUG 41: Template parameters shown as broken links
1256 ''None'' of '''this''' should be
1258 but rather passed unmodified
1262 # hmm, fix this or just deprecate msgnw and document its behavior?
1268 {{msgnw:MSGNW test}}
1270 <p>''None'' of '''this''' should be
1272 but rather passed unmodified
1280 {{int:newmessages|lots of money}}
1282 <p>You have lots of money.
1287 ### Pre-save transform tests
1290 pre-save transform: subst:
1296 This is a test template
1300 pre-save transform: normal template
1310 pre-save transform: nonexistant template
1314 {{thistemplatedoesnotexist}}
1316 {{thistemplatedoesnotexist}}
1321 pre-save transform: subst magic variables
1330 # This is bug 89, which I fixed. -- wtm
1332 pre-save transform: subst: templates with parameters
1336 {{subst:paramtest|param="something else"}}
1338 This is a test template with parameter "something else"
1342 ### Message transform tests
1345 message transform: magic variables
1355 message transform: should not transform wiki markup
1372 <p><a href="/wiki/Image:Test" class="image" title="Image: test"><img src="/images/0/0c/Test" alt="Image: test" /></a>
1379 [[Image:test|right]]
1381 <div class="floatright"><span><a href="/wiki/Image:Test" class="image" title="right"><img src="/images/0/0c/Test" alt="right" /></a></span></div>
1388 [[Image:test|right|Caption text]]
1390 <div class="floatright"><span><a href="/wiki/Image:Test" class="image" title="Caption text"><img src="/images/0/0c/Test" alt="Caption text" /></a></span></div>
1395 Image with frame and link
1397 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
1399 <div class="thumb tleft"><div style="width:202px;"><a href="/wiki/Image:Foobar.jpg" class="internal" title="This is a test image "><img src="/images/3/3a/Foobar.jpg" alt="This is a test image " width="200" height="200" /></a> <div class="thumbcaption" >This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
1408 <p><a href="/wiki/Image:Test" title="Image:Test">Image:test</a>
1413 Frameless image caption with a free URL
1415 [[Image:foo|http://example.com]]
1417 <p><a href="/wiki/Image:Foo" class="image" title="http://example.com"><img src="/images/1/13/Foo" alt="http://example.com" /></a>
1422 Thumbnail image caption with a free URL
1424 [[Image:foo|thumb|http://example.com]]
1426 <div class="thumb tright"><div style="width:182px;"><b>Missing image</b><br /><i>Foo</i> <div class="thumbcaption" ><a href="http://example.com" class='external'>http://example.com</a></div></div></div>
1430 # Pending resolution to bug 368
1432 BUG 648: Frameless image caption with a link
1434 [[Image:foo|text with a [[link]] in it]]
1436 <p><a href="/wiki/Image:Foo" class="image" title="text with a link in it"><img src="/images/1/13/Foo" alt="text with a link in it" /></a>
1441 Escape HTML special chars in image alt text
1443 [[Image:example.jpg|& < > "]]
1445 <p><a href="/wiki/Image:Example.jpg" class="image" title="& < > ""><img src="/images/a/a9/Example.jpg" alt="& < > "" /></a>
1450 BUG 499: Alt text should have Ӓ, not &1234;
1452 [[Image:image.jpg|♀]]
1454 <p><a href="/wiki/Image:Image.jpg" class="image" title="♀"><img src="/images/7/78/Image.jpg" alt="♀" /></a>
1459 Broken image caption with link
1461 [[Image:Rowan.jpeg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
1463 <p>[[Image:Rowan.jpeg|thumb|This is a broken caption. But <a href="/wiki/Main_Page" title="Main Page">this</a> is just an ordinary link.
1468 Image caption containing another image
1470 [[Image:Bar.jpeg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
1472 <div class="thumb tright"><div style="width:182px;"><b>Missing image</b><br /><i>Bar.jpeg</i> <div class="thumbcaption" >This is a caption with another <a href="/wiki/Image:Icon.png" class="image" title="image"><img src="/images/9/96/Icon.png" alt="image" /></a> inside it!</div></div></div>
1480 Subpage test/subpage
1488 subpage title=[[Subpage test]]
1492 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
1497 Subpage noslash link
1499 subpage title=[[Subpage test]]
1503 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
1512 <p><a href="/index.php?title=/subpage&action=edit" class="new" title="/subpage">/subpage</a>
1517 BUG 561: {{/Subpage}}
1519 subpage title=[[Page]]
1523 <p><a href="/index.php?title=Page/Subpage&action=edit" class="new" title="Page/Subpage">Page/Subpage</a>
1531 Category:MediaWiki User's Guide
1539 [[:Category:MediaWiki User's Guide]]
1541 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
1550 [[Category: MediaWiki User's Guide]]
1552 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
1556 ### Inter-language links
1559 Inter-language links
1565 [[zh:食品]]
1567 es:Alimento fr:Nourriture zh:食品
1574 Basic section headings
1581 ===Smaller headline===
1584 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=1" title="Parser test script">edit</a>]</div><a name="Headline_1"></a><h2> Headline 1 </h2>
1587 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=2" title="Parser test script">edit</a>]</div><a name="Headline_2"></a><h2>Headline 2</h2>
1590 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=3" title="Parser test script">edit</a>]</div><a name="Smaller_headline"></a><h3>Smaller headline</h3>
1596 Section headings with TOC
1599 === Subheadline 1 ===
1600 ===== Skipping a level =====
1601 ====== Skipping a level ======
1605 ===Another headline===
1607 <table border="0" id="toc"><tr id="toctitle"><td align="center">
1608 <b>Table of contents</b> <script type="text/javascript">showTocToggle("show","hide")</script></td></tr><tr id="tocinside"><td>
1609 <div class="tocline"><a href="#Headline_1">1 Headline 1</a><br /></div>
1610 <div class="tocindent">
1611 <p><a href="#Subheadline_1">1.1 Subheadline 1</a><br />
1613 <div class="tocindent">
1614 <div class="tocindent">
1615 <p><a href="#Skipping_a_level">1.1.1 Skipping a level</a><br />
1617 <div class="tocindent">
1618 <p><a href="#Skipping_a_level_2">1.1.1.1 Skipping a level</a><br />
1624 <div class="tocline"><a href="#Headline_2">2 Headline 2</a><br /></div>
1625 <div class="tocindent">
1626 <p><a href="#Another_headline">2.1 Another headline</a><br />
1630 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=1" title="Parser test script">edit</a>]</div><a name="Headline_1"></a><h2> Headline 1 </h2>
1631 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=2" title="Parser test script">edit</a>]</div><a name="Subheadline_1"></a><h3> Subheadline 1 </h3>
1632 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=3" title="Parser test script">edit</a>]</div><a name="Skipping_a_level"></a><h5> Skipping a level </h5>
1633 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=4" title="Parser test script">edit</a>]</div><a name="Skipping_a_level_2"></a><h6> Skipping a level </h6>
1634 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=5" title="Parser test script">edit</a>]</div><a name="Headline_2"></a><h2> Headline 2 </h2>
1637 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=6" title="Parser test script">edit</a>]</div><a name="Another_headline"></a><h3>Another headline</h3>
1642 Resolving duplicate section names
1647 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=1" title="Parser test script">edit</a>]</div><a name="Foo_bar"></a><h2> Foo bar </h2>
1648 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=2" title="Parser test script">edit</a>]</div><a name="Foo_bar_2"></a><h2>Foo bar</h2>
1660 Template with sections, __NOTOC__
1661 !! options title=[[Parser test script]]
1668 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=1" title="Parser test script">edit</a>]</div><a name="Section_0"></a><h2>Section 0</h2>
1669 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Template:Sections&action=edit&section=1" title="Template:Sections">edit</a>]</div><a name="Section_1"></a><h3>Section 1</h3>
1670 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Template:Sections&action=edit&section=2" title="Template:Sections">edit</a>]</div><a name="Section_2"></a><h2>Section 2</h2>
1671 <div class="editsection" style="float:right;margin-left:5px;">[<a href="/index.php?title=Parser_test_script&action=edit&section=2" title="Parser test script">edit</a>]</div><a name="Section_4"></a><h2>Section 4</h2>
1676 __NOEDITSECTION__ keyword
1682 <a name="Section_1"></a><h2>Section 1</h2>
1683 <a name="Section_2"></a><h2>Section 2</h2>