1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # parsoid parsoid-only test (not run by PHP parser)
25 # php php-only test (not run by the parsoid parser)
26 # showtitle make the first line the title
27 # comment run through Linker::formatComment() instead of main parser
28 # local format section links in edit comment text as local links
30 # For testing purposes, temporary articles can created:
31 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
32 # where '/' denotes a newline.
34 # This is the standard article assumed to exist.
59 MediaWiki:bad image list
61 * [[File:Bad.jpg]] except [[Nasty page]]
95 Template:echo_with_span
101 Template:echo_with_div
113 Template:table_attribs
116 |</noinclude>style="color: red"| Foo
138 This is a simple paragraph.
140 <p>This is a simple paragraph.
145 Paragraphs with extra newline spacing
168 Paragraphs with newline spacing with comment lines in between
176 <!--foo--><!--More than 1 comment disables stripping of this line!-->
233 Paragraphs with newline spacing with non-empty white-space lines in between
260 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
268 <!--foo--><!--More than 1 comment disables stripping of this line!-->
309 http://fr.wikipedia.org/wiki/🍺
310 <!-- EasterEgg we love beer, better be able be able to link to it -->
312 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
332 * plain''italic''plain
333 * plain''italic''plain''italic''plain
334 * plain'''bold'''plain
335 * plain'''bold'''plain'''bold'''plain
336 * plain''italic''plain'''bold'''plain
337 * plain'''bold'''plain''italic''plain
338 * plain''italic'''bold-italic'''italic''plain
339 * plain'''bold''bold-italic''bold'''plain
340 * plain'''''bold-italic'''italic''plain
341 * plain'''''bold-italic''bold'''plain
342 * plain''italic'''bold-italic'''''plain
343 * plain'''bold''bold-italic'''''plain
344 * plain l'''italic''plain
345 * plain l''''bold''' plain
348 </li><li> plain<i>italic</i>plain
349 </li><li> plain<i>italic</i>plain<i>italic</i>plain
350 </li><li> plain<b>bold</b>plain
351 </li><li> plain<b>bold</b>plain<b>bold</b>plain
352 </li><li> plain<i>italic</i>plain<b>bold</b>plain
353 </li><li> plain<b>bold</b>plain<i>italic</i>plain
354 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
355 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
356 </li><li> plain<i><b>bold-italic</b>italic</i>plain
357 </li><li> plain<b><i>bold-italic</i>bold</b>plain
358 </li><li> plain<i>italic<b>bold-italic</b></i>plain
359 </li><li> plain<b>bold<i>bold-italic</i></b>plain
360 </li><li> plain l'<i>italic</i>plain
361 </li><li> plain l'<b>bold</b> plain
366 # this example taken from the simple/Moon article
368 Italics and possessives
370 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
372 <p>obtained by <i><a href="/index.php?title=Lunar_Prospector&action=edit&redlink=1" class="new" title="Lunar Prospector (page does not exist)">Lunar Prospector</a>'</i>s gamma-ray spectrometer
377 ### 2-quote opening sequence tests
380 Italics and bold: 2-quote opening sequence: (2,2)
390 Italics and bold: 2-quote opening sequence: (2,3)
400 Italics and bold: 2-quote opening sequence: (2,4)
410 Italics and bold: 2-quote opening sequence: (2,5) (php)
419 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
421 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
433 ### 3-quote opening sequence tests
437 Italics and bold: 3-quote opening sequence: (3,2)
447 Italics and bold: 3-quote opening sequence: (3,3)
457 Italics and bold: 3-quote opening sequence: (3,4)
467 Italics and bold: 3-quote opening sequence: (3,5) (php)
476 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
478 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
490 ### 4-quote opening sequence tests
494 Italics and bold: 4-quote opening sequence: (4,2)
504 Italics and bold: 4-quote opening sequence: (4,3)
514 Italics and bold: 4-quote opening sequence: (4,4)
524 Italics and bold: 4-quote opening sequence: (4,5) (php)
533 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
535 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
541 <p>'<b>foo<i></i></b>
547 ### 5-quote opening sequence tests
551 Italics and bold: 5-quote opening sequence: (5,2) (php)
560 # Parsoid reverses the nesting order, compared to the PHP parser
562 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
574 Italics and bold: 5-quote opening sequence: (5,3)
584 Italics and bold: 5-quote opening sequence: (5,4)
588 <p><i><b>foo'</b></i>
594 Italics and bold: 5-quote opening sequence: (5,5)
603 ### multiple quote sequences in a line
606 Italics and bold: multiple quote sequences: (2,4,2)
610 <p><i>foo'<b>bar</b></i>
616 Italics and bold: multiple quote sequences: (2,4,3)
620 <p><i>foo'<b>bar</b></i>
626 Italics and bold: multiple quote sequences: (2,4,4)
630 <p><i>foo'<b>bar'</b></i>
636 Italics and bold: multiple quote sequences: (3,4,2) (php)
645 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
647 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
653 <p><b>foo'</b>bar<i></i>
659 Italics and bold: multiple quote sequences: (3,4,3) (php)
668 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
670 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
676 <p><b>foo'</b>bar<b></b>
681 ### other quote tests
684 Italics and bold: other quote tests: (2,3,5)
686 ''this is about '''foo's family'''''
688 <p><i>this is about <b>foo's family</b></i>
694 Italics and bold: other quote tests: (2,(3,3),2)
696 ''this is about '''foo's''' family''
698 <p><i>this is about <b>foo's</b> family</i>
704 Italics and bold: other quote tests: (3,2,3,2)
706 '''this is about ''foo'''s family''
708 <p><b>this is about <i>foo</i></b><i>s family</i>
713 # The Parsoid team believes the PHP parser's output on this test is wrong.
714 # It only checks for convert-to-bold-on-single-character-word when the word
715 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
716 # This means that the bold token in position 2 (0-indexed) gets converted by
717 # parsoid, but doesn't get changed by the PHP parser.
719 Italics and bold: other quote tests: (3,2,3,3) (php)
723 '''this is about ''foo'''s family'''
725 <p>'<i>this is about </i>foo<b>s family</b>
728 # This is the output the Parsoid team believes to be correct.
730 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
734 '''this is about ''foo'''s family'''
736 <p><b>this is about <i>foo'</i>s family</b>
742 Italics and bold: other quote tests: (3,(2,2),3)
744 '''this is about ''foo's'' family'''
746 <p><b>this is about <i>foo's</i> family</b>
752 Italicized possessive
754 The ''[[Main Page]]'''s talk page.
756 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
765 Non-html5 tags should be accepted
767 <center>''foo''</center>
770 <strike>''foo''</strike>
773 <center><i>foo</i></center>
774 <p><big><i>foo</i></big>
775 <font><i>foo</i></font>
776 <strike><i>foo</i></strike>
782 ### <nowiki> test cases
786 <nowiki> unordered list
788 <nowiki>* This is not an unordered list item.</nowiki>
790 <p>* This is not an unordered list item.
797 <nowiki>Lorem ipsum dolor
818 :There is not nowiki.
819 :There is <nowiki>nowiki</nowiki>.
821 #There is not nowiki.
822 #There is <nowiki>nowiki</nowiki>.
824 *There is not nowiki.
825 *There is <nowiki>nowiki</nowiki>.
827 <dl><dd>There is not nowiki.
828 </dd><dd>There is nowiki.
830 <ol><li>There is not nowiki.
831 </li><li>There is nowiki.
833 <ul><li>There is not nowiki.
834 </li><li>There is nowiki.
840 Entities inside <nowiki>
842 <nowiki><</nowiki>
853 Comments and Indent-Pre
855 <!-- comment 1 --> asdf
857 <!-- comment 1 --> asdf
860 <!-- comment 1 --> asdf
861 <!-- comment 2 -->xyz
863 <!-- comment 1 --> asdf
864 <!-- comment 2 --> xyz
920 asdf<!-- comment 1 -->jkl
930 <!-- foo --> b <!-- bar -->
944 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
950 Comment semantics and delimiters
952 <!-- --><!----><!-----><!------>
958 Comment semantics and delimiters, redux
960 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
961 -- foo -- funky huh? ... -->
967 Comment semantics and delimiters: directors cut
969 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
970 everything starting with < followed by !-- until the first -- and > we see,
971 that wouldn't be valid XML however, since in XML -- has to terminate a comment
979 Comment semantics: nesting
981 <!--<!-- no, we're not going to do anything fancy here -->-->
988 Comment semantics: unclosed comment at end
990 <!--This comment will run out to the end of the document
996 Comment in template title
1005 Comment on its own line post-expand
1017 Comment on its own line post-expand with non-significant whitespace
1029 ### paragraph wraping tests
1043 Block tag on one line
1055 Block tag on both lines
1067 Multiple lines without block tags
1085 Empty lines between lines with block tags
1115 ### Preformatted text
1124 And a [[Main Page|link]]
1130 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1135 Ident preformatting with inline content
1146 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1163 Regression with preformatted in <center>
1176 # Expected output in the following test is not really expected (there should be
1177 # <pre> in the output) -- it's only testing for well-formedness.
1179 Bug 6200: Preformatted in <blockquote>
1192 <pre> with attributes (bug 3202)
1194 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1196 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1201 <pre> with width attribute (bug 3202)
1203 <pre width="8">Narrow screen goodies</pre>
1205 <pre width="8">Narrow screen goodies</pre>
1210 <pre> with forbidden attribute (bug 3202)
1212 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1214 <pre width="8">Narrow screen goodies</pre>
1219 Entities inside <pre>
1228 <pre> with forbidden attribute values (bug 3202)
1230 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1232 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1237 <nowiki> inside <pre> (bug 13238)
1245 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1253 <pre><nowiki>Foo</nowiki></pre>
1258 <nowiki> and <pre> preference (first one wins)
1289 </pre> inside nowiki
1291 <nowiki></pre></nowiki>
1298 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1306 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1316 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1328 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1349 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1353 {{echo| foo}}{{echo| bar}}
1358 {{echo|<!--cmt--> foo}}
1360 <!--cmt-->{{echo| foo}}
1362 {{echo|{{echo| }}bar}}
1380 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1417 Templates: Single-line variant of parameter whitespace stripping test
1423 {{echo|{{echo| a}}}}
1425 {{echo|1={{echo| a}}}}
1438 Templates: Strip whitespace from named parameters, but not positional ones
1466 ### Parsoid-centric tests for testing RT edge cases for pre
1470 1a. Indent-Pre and Comments
1483 1b. Indent-Pre and Comments
1496 1c. Indent-Pre and Comments
1509 2a. Indent-Pre and tables
1530 2b. Indent-Pre and tables
1546 2c. Indent-Pre and tables (bug 42252)
1563 3a. Indent-Pre and block tags (single-line html)
1571 <pre><span> foo </span>
1576 3b. Indent-Pre and block tags (pre-content on separate line)
1628 4. Multiple spaces at start-of-line
1647 5. White-space in indent-pre
1648 NOTE: the white-space char on 2nd line is significant
1661 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1665 HTML-pre: 1. embedded newlines
1701 HTML-pre: 2: indented text
1714 HTML-pre: 3: other wikitext
1735 ### Definition lists
1742 <dl><dt> name </dt><dd> Definition
1748 Definition list for indentation only
1752 <dl><dd> Indented text
1758 Definition list with no space
1762 <dl><dt>name</dt><dd>Definition
1768 Definition list with URL link
1770 ; http://example.com/ : definition
1772 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1778 Definition list with bracketed URL link
1780 ;[http://www.example.com/ Example]:Something about it
1782 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1788 Definition list with wikilink containing colon
1790 ; [[Help:FAQ]]: The least-read page on Wikipedia
1792 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
1797 # At Brion's and JeLuF's insistence... :)
1799 Definition list with news link containing colon
1801 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1803 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
1809 Malformed definition list with colon
1811 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1813 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
1819 Definition lists: colon in external link text
1821 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1823 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
1829 Definition lists: colon in HTML attribute
1831 ;<b style="display: inline">bold</b>
1833 <dl><dt><b style="display: inline">bold</b>
1839 Definition lists: self-closed tag
1841 ;one<br/>two : two-line fun
1843 <dl><dt>one<br />two </dt><dd> two-line fun
1849 Bug 11748: Literal closing tags
1853 <dd>test test test test test</dd>
1855 <dd>test test test test test</dd>
1860 <dd>test test test test test</dd>
1862 <dd>test test test test test</dd>
1868 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1871 ; term : description
1877 <dl><dt> term </dt><dd> description
1888 Definition list with empty definition and following paragraph
1893 <dl><dt> term</dt><dd>
1900 Nested definition lists using html syntax
1917 Definition Lists: No nesting: Multiple dd's
1931 Definition Lists: Indentation: Regular
1947 Definition Lists: Indentation: Missing 1st level
1961 Definition Lists: Indentation: Multi-level indent
1965 <dl><dd><dl><dd><dl><dd>i3
1973 Definition Lists: Hacky use to indent tables
1980 should be left alone
1982 <dl><dd><dl><dd><table>
1987 </td></tr></table></dd></dl></dd></dl>
1989 should be left alone
1992 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1993 ## as an empty dt item. It also ignores all but the last ";" when followed
1994 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1995 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1998 ## Ex: ";;t2 ::d2" is transformed into:
2010 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2011 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2022 ## All Parsoid only definition list tests have this difference.
2024 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2025 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2028 Table / list interaction: indented table with lists in table contents
2050 </td></tr></table></dd></dl>
2055 Table / list interaction: lists nested in tables nested in indented lists
2080 </td></tr></table></dd></dl>
2088 Definition Lists: Nesting: Multi-level (Parsoid only)
2118 Definition Lists: Nesting: Test 2 (Parsoid only)
2138 Definition Lists: Nesting: Test 3 (Parsoid only)
2166 Definition Lists: Nesting: Test 4
2171 <dl><dd><dl><dd><dl><dt>t3
2180 ## The Parsoid team believes the following three test exposes a
2181 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2182 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2184 Definition Lists: Mixed Lists: Test 1 (php)
2192 <dl><dd><dl><dt><ul><li> foo
2202 Definition Lists: Mixed Lists: Test 1 (parsoid)
2210 <dl><dd><dl><dt><ul><li> foo
2211 </li></ul></dt><dd><ul><li> bar
2212 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2216 Definition Lists: Mixed Lists: Test 2
2230 Definition Lists: Mixed Lists: Test 3
2235 <ul><li><dl><dd><dl><dd><dl><dd> d1
2246 Definition Lists: Mixed Lists: Test 4
2251 <ul><li><dl><dt>d1 </dt><dd>d2
2252 </dd><dt>d3 </dt><dd>d4
2260 Definition Lists: Mixed Lists: Test 5
2275 Definition Lists: Mixed Lists: Test 6
2280 <ol><li><ul><li><dl><dd>d1
2292 Definition Lists: Mixed Lists: Test 7
2306 Definition Lists: Mixed Lists: Test 8
2322 Definition Lists: Mixed Lists: Test 9
2326 <ul><li><dl><dt>foo </dt><dd>bar
2334 Definition Lists: Mixed Lists: Test 10
2338 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2345 # The Parsoid team disagrees with the PHP parser's seemingly-random
2346 # rules regarding dd/dt on the next two tests. Parsoid is more
2347 # consistent, and recognizes the shared nesting and keeps the
2348 # still-open tags around until the nesting is complete.
2351 Definition Lists: Mixed Lists: Test 11 (php)
2358 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2363 <dl><dt>boo </dt><dd>baz
2372 Definition Lists: Mixed Lists: Test 11 (parsoid)
2379 <ul><li><ol><li><ul><li><ol><li><dl><dt><ul><li><dl><dt><dl><dt>foo </dt><dd>bar
2380 </dd></dl></dt></dl></li></ul></dt><dt>boo </dt><dd>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2385 Definition Lists: Weird Ones: Test 1 (php)
2389 *#;*::;; foo : bar (who uses this?)
2391 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2403 Definition Lists: Weird Ones: Test 1 (parsoid)
2407 *#;*::;; foo : bar (who uses this?)
2409 <ul><li><ol><li><dl><dt><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> foo </dt><dd> bar (who uses this?)</dd></dl></dt></dl></dd></dl></dd></dl></li></ul></dt></dl></li></ol></li></ul>
2416 External links: non-bracketed
2418 Non-bracketed: http://example.com
2420 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2425 External links: numbered
2427 Numbered: [http://example.com]
2428 Numbered: [http://example.net]
2429 Numbered: [http://example.com]
2431 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2432 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2433 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2438 External links: specified text
2440 Specified text: [http://example.com link]
2442 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2447 External links: trail
2449 Linktrails should not work for external links: [http://example.com link]s
2451 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2456 External links: dollar sign in URL
2458 http://example.com/1$2345
2460 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2465 External links: dollar sign in URL (named)
2467 [http://example.com/1$2345]
2469 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2474 External links: open square bracket forbidden in URL (bug 4377)
2476 http://example.com/1[2345
2478 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2483 External links: open square bracket forbidden in URL (named) (bug 4377)
2485 [http://example.com/1[2345]
2487 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2492 External links: nowiki in URL link text (bug 6230)
2494 [http://example.com/ <nowiki>''example site''</nowiki>]
2496 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2501 External links: newline forbidden in text (bug 6230 regression check)
2503 [http://example.com/ first
2506 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2512 External links: Pipe char between url and text
2514 [http://example.com | link]
2516 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2521 External links: protocol-relative URL in brackets
2523 [//example.com/ Test]
2525 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2530 External links: protocol-relative URL in brackets without text
2534 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2539 External links: protocol-relative URL in free text is left alone
2543 <p>//example.com/Foo
2548 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2550 foo//example.com/Foo
2552 <p>foo//example.com/Foo
2559 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2561 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2566 External image from https
2568 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2570 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2575 Link to non-http image, no img tag
2577 Link to non-http image, no img tag: ftp://example.com/test.jpg
2579 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
2584 External links: terminating separator
2586 Terminating separator: http://example.com/thing,
2588 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2593 External links: intervening separator
2595 Intervening separator: http://example.com/1,2,3
2597 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2602 External links: old bug with URL in query
2604 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2606 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2611 External links: old URL-in-URL bug, mixed protocols
2613 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2615 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2620 External links: URL in text
2622 URL in text: [http://example.com http://example.com]
2624 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2629 External links: Clickable images
2631 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2633 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
2638 External links: raw ampersand
2640 Old & use: http://x&y
2642 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2647 External links: encoded ampersand
2649 Old & use: http://x&y
2651 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2656 External links: encoded equals (bug 6102)
2658 http://example.com/?foo=bar
2660 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2665 External links: [raw ampersand]
2667 Old & use: [http://x&y]
2669 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2674 External links: [encoded ampersand]
2676 Old & use: [http://x&y]
2678 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2683 External links: [encoded equals] (bug 6102)
2685 [http://example.com/?foo=bar]
2687 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2692 External links: [IDN ignored character reference in hostname; strip it right off]
2694 [http://e‌xample.com/]
2696 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2700 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2701 # Where an external link could easily circumvent the sanitization of the text of
2702 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2703 # test demands a higher standard. That's a bit strange.
2707 # http://example.com -> [http://example.com|http://example.com]
2708 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2710 # The first example is sanitized, but the second is not. Any security benefits
2711 # from this production are trivial to circumvent. Either remove this test and
2712 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2713 # the test accordingly.
2718 External links: IDN ignored character reference in hostname; strip it right off
2720 http://e‌xample.com/
2722 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2727 External links: www.jpeg.org (bug 554)
2731 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2736 External links: URL within URL (original bug 2)
2738 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2740 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2745 BUG 361: URL inside bracketed URL
2747 [http://www.example.com/foo http://www.example.com/bar]
2749 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2754 BUG 361: URL within URL, not bracketed
2756 http://www.example.com/foo?=http://www.example.com/bar
2758 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
2763 BUG 289: ">"-token in URL-tail
2765 http://www.example.com/<hello>
2767 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2772 BUG 289: literal ">"-token in URL-tail
2774 http://www.example.com/<b>html</b>
2776 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2781 BUG 289: ">"-token in bracketed URL
2783 [http://www.example.com/<hello> stuff]
2785 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2790 BUG 289: literal ">"-token in bracketed URL
2792 [http://www.example.com/<b>html</b> stuff]
2794 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2799 BUG 289: literal double quote at end of URL
2801 http://www.example.com/"hello"
2803 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2808 BUG 289: literal double quote in bracketed URL
2810 [http://www.example.com/"hello" stuff]
2812 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2817 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2819 [http://www.example.com test]
2821 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2826 External links: link text with spaces
2828 [http://www.example.com a b c]
2829 [http://www.example.com ''a'' ''b'']
2831 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
2832 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
2837 External links: wiki links within external link (Bug 3695)
2839 [http://example.com [[wikilink]] embedded in ext link]
2841 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
2846 BUG 787: Links with one slash after the url protocol are invalid
2850 [http:/example.com title]
2852 <p>http:/example.com
2853 </p><p>[http:/example.com title]
2858 Bracketed external links with template-generated invalid target
2860 [{{echo|http:/example.com}} title]
2862 <p>[http:/example.com title]
2867 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2869 ''[http://example.com text'']
2870 [http://example.com '''text]'''
2871 ''Something [http://example.com in italic'']
2872 ''Something [http://example.com mixed''''', even bold]'''
2873 '''''Now [http://example.com both''''']
2875 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2876 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2877 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2878 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2879 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2885 Bug 4781: %26 in URL
2887 http://www.example.com/?title=AT%26T
2889 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2893 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2894 # % is actually legal in HTML5. Any change in output would need testing though.
2896 Bug 4781, 5267: %25 in URL
2898 http://www.example.com/?title=100%25_Bran
2900 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
2905 Bug 4781, 5267: %28, %29 in URL
2907 http://www.example.com/?title=Ben-Hur_%281959_film%29
2909 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
2915 Bug 4781: %26 in autonumber URL
2917 [http://www.example.com/?title=AT%26T]
2919 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2924 Bug 4781, 5267: %26 in autonumber URL
2926 [http://www.example.com/?title=100%25_Bran]
2928 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2933 Bug 4781, 5267: %28, %29 in autonumber URL
2935 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2937 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2943 Bug 4781: %26 in bracketed URL
2945 [http://www.example.com/?title=AT%26T link]
2947 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2952 Bug 4781, 5267: %26 in bracketed URL
2954 [http://www.example.com/?title=100%25_Bran link]
2956 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2961 Bug 4781, 5267: %28, %29 in bracketed URL
2963 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2965 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2970 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2972 Some [http://example.com/ pretty ''italics'' and stuff]!
2974 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2979 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2981 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2983 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
2988 External link containing double-single-quotes with no space separating the url from text in italics
2990 [http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]
2992 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
2997 URL-encoding in URL functions (single parameter)
2999 {{localurl:Some page|amp=&}}
3001 <p>/index.php?title=Some_page&amp=&
3006 URL-encoding in URL functions (multiple parameters)
3008 {{localurl:Some page|q=?&=&}}
3010 <p>/index.php?title=Some_page&q=?&amp=&
3017 http://example.com/index.php?foozoid%5B%5D=bar
3019 http://example.com/index.php?foozoid[]=bar
3021 <p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
3022 </p><p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
3027 IPv6 urls (bug 21261)
3031 http://[2404:130:0:1000::187:2]/index.php
3033 <p><a rel="nofollow" class="external free" href="http://[2404:130:0:1000::187:2]/index.php">http://[2404:130:0:1000::187:2]/index.php</a>
3038 Non-extlinks in brackets
3047 [{{echo|foo}} ''bar'']
3048 [{{echo|foo}}l's] errand
3049 [{{echo|foo}}l's errand]
3051 [url=http://example.com]
3064 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3075 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3077 Normal text. '''''Bold italic text.''''' Normal text.
3079 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3080 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3086 Unclosed and unmatched quotes (php)
3090 '''''Bold italic text '''with bold deactivated''' in between.'''''
3092 '''''Bold italic text ''with italic deactivated'' in between.'''''
3096 ..spanning two paragraphs (should not work).'''
3098 '''Bold tag left open
3100 ''Italic tag left open
3104 <!-- Unmatching number of opening, closing tags: -->
3105 '''This year''''s election ''should'' beat '''last year''''s.
3107 ''Tom'''s car is bigger than ''Susan'''s.
3109 Plain ''italic'''s plain
3111 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3112 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3113 </p><p><b>Bold text..</b>
3114 </p><p>..spanning two paragraphs (should not work).
3115 </p><p><b>Bold tag left open</b>
3116 </p><p><i>Italic tag left open</i>
3118 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3119 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3120 </p><p>Plain <i>italic'</i>s plain
3123 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3124 # parser strips. The wikitext contains just the first half of the bold
3125 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3126 # differently than the PHP parser.)
3128 Unclosed and unmatched quotes (parsoid)
3132 '''''Bold italic text '''with bold deactivated''' in between.'''''
3134 '''''Bold italic text ''with italic deactivated'' in between.'''''
3138 ..spanning two paragraphs (should not work).'''
3140 '''Bold tag left open
3142 ''Italic tag left open
3146 <!-- Unmatching number of opening, closing tags: -->
3147 '''This year''''s election ''should'' beat '''last year''''s.
3149 ''Tom'''s car is bigger than ''Susan'''s.
3151 Plain ''italic'''s plain
3153 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3154 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3155 </p><p><b>Bold text..</b>
3156 </p><p>..spanning two paragraphs (should not work).<b></b>
3157 </p><p><b>Bold tag left open</b>
3158 </p><p><i>Italic tag left open</i>
3160 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3161 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3162 </p><p>Plain <i>italic'</i>s plain
3169 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3172 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3173 # is the bare minimun required by the spec, see:
3174 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3176 A table with no data. (php)
3183 # Parsoid team replies: empty table tags are legal in HTML5
3185 A table with no data. (parsoid)
3194 # A table with nothing but a caption is invalid XHTML, we might want to render
3195 # this as <p>caption</p>
3197 A table with nothing but a caption (php)
3207 </caption><tr><td></td></tr></table>
3210 # Parsoid team replies: table with only a caption is legal in HTML5
3212 A table with nothing but a caption (parsoid)
3220 <table><caption> caption</caption></table>
3224 A table with caption with default-spaced attributes and a table row
3227 |+ style="color: red;" | caption1
3233 <caption style="color: red;"> caption1
3242 A table with captions with non-default spaced attributes and a table row
3245 |+style="color: red;"|caption2
3246 |+ style="color: red;"| caption3
3252 <caption style="color: red;">caption2
3254 <caption style="color: red;"> caption3
3263 Table td-cell syntax variations
3267 | foo bar foo || baz
3268 | style='color:red;' | baz
3269 | style='color:red;' || baz
3276 <td> foo bar foo </td>
3279 <td style="color:red;"> baz
3281 <td> style='color:red;' </td>
3309 Simple table but with multiple dashes for row wikitext
3327 Multiplication table
3329 {| border="1" cellpadding="2"
3330 |+Multiplication table
3332 ! × !! 1 !! 2 !! 3
3350 <table border="1" cellpadding="2">
3351 <caption>Multiplication table
3398 Accept "||" in table headings
3413 Accept "||" in indented table headings
3423 </th></tr></table></dd></dl>
3428 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3445 Accept "| !" at start of line in tables (ignore !-attribute)
3449 | !style="color:red" | bar
3461 Allow +/- in 2nd and later cells in a row, in 1st cell when td-attrs are present, or in 1st cell when there is a space between "|" and +/-
3465 |style='color:red;'|+1
3466 |style='color:blue;'|-1
3478 <td style="color:red;">+1
3480 <td style="color:blue;">-1
3504 |rowspan=2| Cell 2, row 1 (and 2)
3515 <td rowspan="2"> Cell 2, row 1 (and 2)
3533 {| bgcolor=#ABCDEF border=2
3538 |the original table again
3546 <table bgcolor="#ABCDEF" border="2">
3554 <td>the original table again
3560 Invalid attributes in table cell (bug 1830)
3575 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3578 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3582 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3583 <td>]" onmouseover="alert(document.cookie)">test
3592 Indented table markup mixed with indented pre content (proposed in bug 6200)
3597 Text that should be rendered preformatted
3605 <pre>Text that should be rendered preformatted
3614 Template-generated table cell attributes and cell content
3622 <td style="color: red"> Foo
3628 Table with row followed by newlines and table heading
3646 Table with empty line following the start tag
3663 # FIXME: Preserve the attribute properly (with an empty string as value) in
3664 # the PHP parser. Parsoid implements the behavior below.
3666 Table attributes with empty value
3678 </td></tr></tbody></table>
3683 Wikitext table with a lot of comments
3706 Wikitext table with double-line table cell
3723 Table cell with a single comment
3739 # The expected HTML structure in this test is debatable. The PHP parser does
3740 # not parse this kind of table at all. The main focus for Parsoid is on
3741 # round-tripping, so this output is ok for now. TODO: revisit!
3743 Wikitext table with html-syntax row (Parsoid)
3755 <td>foo</td></tr></tbody></table>
3762 Plain link, capitalized
3766 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3771 Plain link, uncapitalized
3775 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3782 [[Main Page|The Main Page]]
3784 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3793 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3798 Broken link with fragment
3800 [[Zigzagzogzagzig#zug]]
3802 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3807 Special page link with fragment
3809 [[Special:Version#anchor]]
3811 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3816 Nonexistent special page link with fragment
3818 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3820 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3827 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3829 <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>
3836 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3838 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>!!!
3849 Bug 43661: Piped links with identical prefixes
3851 [[prefixed article|prefixed articles with spaces]]
3853 [[prefixed article|prefixed articlesaoeu]]
3855 [[Main Page|Main Page test]]
3857 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3858 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3859 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3865 Link with HTML entity in suffix / tail
3867 [[Main Page]]", [[Main Page]]a
3869 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3874 Link with 3 brackets
3883 Piped link with 3 brackets
3885 [[[main page|the main page]]]
3887 <p>[[[main page|the main page]]]
3892 Link with multiple pipes
3894 [[Main Page|The|Main|Page]]
3896 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3903 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3905 <p><a href="/index.php?title=Talk:Parser_testing&action=edit&redlink=1" class="new" title="Talk:Parser testing (page does not exist)">Talk:Parser testing</a>, <a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">Meta:Disclaimers</a>
3910 Piped link to namespace
3912 [[Meta:Disclaimers|The disclaimers]]
3914 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3921 [[Usually caused by a typo (oops}]]
3923 <p>[[Usually caused by a typo (oops}]]
3928 Link containing % (not as a hex sequence)
3932 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
3937 Link containing % as a single hex sequence interpreted to char
3941 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
3946 Link containing % as a double hex sequence interpreted to hex sequence
3950 <p>[[7%2525 Solution]]
3955 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3956 Example for such a section: == < ==
3958 [[%23%3c]][[%23%3e]]
3960 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3965 Link containing "<#" and ">#" as a hex sequences
3967 [[%3c%23]][[%3e%23]]
3969 <p>[[%3c%23]][[%3e%23]]
3974 Link containing an equals sign
3976 [[Special:BookSources/isbn=4-00-026157-6]]
3978 <p><a href="/wiki/Special:BookSources/isbn%3D4-00-026157-6" title="Special:BookSources/isbn=4-00-026157-6">Special:BookSources/isbn=4-00-026157-6</a>
3985 Just a test of an article title containing a tilde.
3988 # note that links containing signatures, like [[Foo~~~~]], are
3989 # massaged by the pre-save transform (PST) and so the tildes are never
3990 # seen by the parser.
3992 Link containing a tilde
3996 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4001 Link containing double-single-quotes '' (bug 4598)
4003 [[Lista d''e paise d''o munno]]
4005 <p><a href="/index.php?title=Lista_d%27%27e_paise_d%27%27o_munno&action=edit&redlink=1" class="new" title="Lista d''e paise d''o munno (page does not exist)">Lista d''e paise d''o munno</a>
4010 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4012 Some [[Link|pretty ''italics'' and stuff]]!
4014 <p>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!
4019 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4021 ''Some [[Link|pretty ''italics'' and stuff]]!
4023 <p><i>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!</i>
4028 Link with double quotes in title part (literal) and alternate part (interpreted)
4030 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4034 [[''Pentecoste''|Pentecoste]]
4036 [[''Pentecoste''|''Pentecoste'']]
4038 <p><a href="/index.php?title=Special:Upload&wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg" class="new" title="File:Denys Savchenko ''Pentecoste''.jpg">File:Denys Savchenko <i>Pentecoste</i>.jpg</a>
4039 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">''Pentecoste''</a>
4040 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">Pentecoste</a>
4041 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)"><i>Pentecoste</i></a>
4046 Broken image links with HTML captions (bug 39700)
4048 [[File:Nonexistent|<script></script>]]
4049 [[File:Nonexistent|100px|<script></script>]]
4050 [[File:Nonexistent|<]]
4051 [[File:Nonexistent|a<i>b</i>c]]
4053 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4054 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4055 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4056 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4063 [[http://www.example.com]]
4065 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4070 Plain link to URL with link text
4072 [[http://www.example.com Link text]]
4074 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4079 Plain link to protocol-relative URL
4081 [[//www.example.com]]
4083 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4088 Plain link to protocol-relative URL with link text
4090 [[//www.example.com Link text]]
4092 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4097 Plain link to page with question mark in title
4103 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4104 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4109 # I'm fairly sure the expected result here is wrong.
4110 # We want these to be URL links, not pseudo-pages with URLs for titles....
4111 # However the current output is also pretty screwy.
4114 # I'm changing it to match the current output--it arguably makes more
4115 # sense in the light of the test above. Old expected result was:
4116 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4118 # But I think this test is bordering on "garbage in, garbage out" anyway.
4123 Piped link to URL: [[http://www.example.com|an example URL]]
4125 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4130 BUG 2: [[page|http://url/]] should link to page, not http://url/
4132 [[Main Page|http://url/]]
4134 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4139 BUG 337: Escaped self-links should be bold
4143 [[Bug462]] [[Bug462]]
4145 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4150 Self-link to section should not be bold
4154 [[Main Page#section]]
4156 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4167 Self-link to numeric title
4173 <p><strong class="selflink">0</strong>
4178 Link to numeric-equivalent title
4184 <p><a href="/wiki/00" title="00">00</a>
4189 <nowiki> inside a link
4191 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4193 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4198 Non-breaking spaces in title
4200 [[ Main Page ]]
4202 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4207 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4213 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4218 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4224 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4229 Internal link with en linktrail: no apostrophes (bug 27473)
4235 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4240 Internal link with ca linktrail with apostrophes (bug 27473)
4246 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4251 Internal link with kaa linktrail with apostrophes (bug 27473)
4257 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4268 Internal link with is link prefix
4272 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4274 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4285 Internal link with is link trail and link prefix
4289 [[mótmælendatrú|xxx]]ar
4291 mótmælenda[[söfnuður]]
4292 mótmælenda[[söfnuður|söfnuðir]]
4293 mótmælenda[[söfnuður|söfnuðir]]xxx
4295 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4296 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4297 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4298 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4299 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4304 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4312 [http://wp.org ''foo'']
4314 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4315 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4316 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4317 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4322 ### Interwiki links (see maintenance/interwiki.sql)
4326 Inline interwiki link
4328 [[MeatBall:SoftSecurity]]
4330 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4335 Inline interwiki link with empty title (bug 2372)
4339 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4344 Interwiki link encoding conversion (bug 1636)
4346 *[[Wikipedia:ro:Olteniţa]]
4347 *[[Wikipedia:ro:Olteniţa]]
4349 <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>
4350 </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>
4356 Interwiki link with fragment (bug 2130)
4358 [[MeatBall:SoftSecurity#foo]]
4360 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4375 Double interlanguage link
4386 Interlanguage link, with prefix links
4398 Double interlanguage link, with prefix links (bug 8897)
4411 Parsoid-specific test: Wikilinks with should RT properly
4417 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4435 Broken br tag sanitization
4444 Incorrecly removing closing slashes from correctly formed XHTML
4446 <br style="clear:both;" />
4448 <p><br style="clear:both;" />
4453 Failing to transform badly formed HTML into correct XHTML
4455 <br style="clear: left;">
4456 <br style="clear: right;">
4457 <br style="clear: both;">
4459 <p><br style="clear: left;" />
4460 <br style="clear: right;" />
4461 <br style="clear: both;" />
4466 Handling html with a div self-closing tag
4475 <p><div title />
4479 <p><div title=bar />
4480 <div title=bar/>
4482 <div title="bar/"></div>
4488 Handling html with a br self-closing tag
4497 <p><br title="title" />
4498 <br title="title" />
4507 Horizontal ruler (should it add that extra space?)
4521 Horizontal ruler -- 4+ dashes render hr
4530 Horizontal ruler -- eats additional dashes on the same line
4539 Horizontal ruler -- does not collapse dashes on consecutive lines
4550 Horizontal ruler -- <4 dashes render as plain text
4559 Horizontal ruler -- Supports content following dashes on same line
4568 ### Block-level elements
4591 <ol><li>Numbered list
4608 ***#Number on level 4
4610 **#Number on level 3
4611 **#Number on level 3
4615 #** Level 3, but ordered
4618 <ol><li> with numbers
4620 <ul><li> and bullets
4622 <ol><li> and numbers
4624 </li><li>bullets again
4625 <ul><li>bullet level 2
4626 <ul><li>bullet level 3
4627 <ol><li>Number on level 4
4630 </li><li>bullet level 2
4631 <ol><li>Number on level 3
4632 </li><li>Number on level 3
4635 <ol><li>number level 2
4638 <ul><li><ul><li> Level 3
4642 <ol><li><ul><li><ul><li> Level 3, but ordered
4676 Nested lists 3 (first element empty)
4689 Nested lists 4 (first element empty)
4702 Nested lists 5 (both elements empty)
4715 Nested lists 6 (both elements empty)
4728 Nested lists 7 (skip initial nesting levels)
4732 <ul><li><ul><li><ul><li> foo
4740 Nested lists 8 (multiple nesting transitions)
4748 <ul><li><ul><li> bar
4758 1. Lists with start-of-line-transparent tokens before bullets: Comments
4772 2. Lists with start-of-line-transparent tokens before bullets: Template close
4784 Unbalanced closing block tags break a list
4785 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
4795 </li></ul></div><div>
4801 Unbalanced closing non-block tags don't break a list
4802 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
4812 <ul><li>a<span></span>
4818 Unclosed formatting tags that straddle lists are closed and reopened
4819 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
4827 </li><li> <s> b </s>
4832 List embedded in a non-block tag
4833 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
4841 <p><small></small></p>
4847 <p><small></small></p>
4851 List items are not parsed correctly following a <pre> block (bug 785)
4857 <ul><li> <pre>foo</pre>
4858 </li><li> <pre>bar</pre>
4865 List items from template
4876 * notSOL{{inner list}}
4895 List interrupted by empty line or heading
4905 <ul><li><ul><li> bar
4908 <h2><span class="mw-headline" id="A_heading">A heading</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: A heading">edit</a>]</span></h2>
4909 <ul><li> Another list item
4915 Multiple list tags generated by templates
4930 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
4933 <!--This line will NOT split the list-->
4935 <!--This line will NOT split the list either-->
4937 <!--foo--> <!--This line with more than 1 comment will split the list-->
4954 Magic Word: {{CURRENTDAY}}
4963 Magic Word: {{CURRENTDAY2}}
4972 Magic Word: {{CURRENTDAYNAME}}
4981 Magic Word: {{CURRENTDOW}}
4990 Magic Word: {{CURRENTMONTH}}
4999 Magic Word: {{CURRENTMONTHABBREV}}
5001 {{CURRENTMONTHABBREV}}
5008 Magic Word: {{CURRENTMONTHNAME}}
5010 {{CURRENTMONTHNAME}}
5017 Magic Word: {{CURRENTMONTHNAMEGEN}}
5019 {{CURRENTMONTHNAMEGEN}}
5026 Magic Word: {{CURRENTTIME}}
5035 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5044 Magic Word: {{CURRENTYEAR}}
5053 Magic Word: {{FULLPAGENAME}}
5055 title=[[User:Ævar Arnfjörð Bjarmason]]
5059 <p>User:Ævar Arnfjörð Bjarmason
5064 Magic Word: {{FULLPAGENAMEE}}
5066 title=[[User:Ævar Arnfjörð Bjarmason]]
5070 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5075 Magic Word: {{NAMESPACE}}
5077 title=[[User:Ævar Arnfjörð Bjarmason]]
5086 Magic Word: {{NAMESPACEE}}
5088 title=[[User:Ævar Arnfjörð Bjarmason]]
5097 Magic Word: {{NAMESPACENUMBER}}
5099 title=[[User:Ævar Arnfjörð Bjarmason]]
5108 Magic Word: {{NUMBEROFFILES}}
5117 Magic Word: {{PAGENAME}}
5119 title=[[User:Ævar Arnfjörð Bjarmason]]
5123 <p>Ævar Arnfjörð Bjarmason
5128 Magic Word: {{PAGENAME}} with metacharacters
5130 title=[['foo & bar = baz']]
5134 <p><i>'foo & bar = baz'</i>
5139 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5141 title=[[*RFC 1234 http://example.com/]]
5145 <p>*RFC 1234 http://example.com/
5150 Magic Word: {{PAGENAMEE}}
5152 title=[[User:Ævar Arnfjörð Bjarmason]]
5156 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5161 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5163 title=[[*RFC 1234 http://example.com/]]
5167 <p>*RFC_1234_http://example.com/
5172 Magic Word: {{REVISIONID}}
5181 Magic Word: {{SCRIPTPATH}}
5190 Magic Word: {{SERVER}}
5194 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5199 Magic Word: {{SERVERNAME}}
5208 Magic Word: {{SITENAME}}
5217 Case-sensitive magic words, when cased differently, should just be template transclusions
5224 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5225 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5226 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5227 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5232 Case-insensitive magic words should still work with weird casing.
5242 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5247 Namespace 1 {{ns:1}}
5256 Namespace 1 {{ns:01}}
5265 Namespace 0 {{ns:0}} (bug 4783)
5273 Namespace 0 {{ns:00}} (bug 4783)
5281 Namespace -1 {{ns:-1}}
5290 Namespace User {{ns:User}}
5299 Namespace User talk {{ns:User_talk}}
5308 Namespace User talk {{ns:uSeR tAlK}}
5317 Namespace File {{ns:File}}
5326 Namespace File {{ns:Image}}
5335 Namespace (lang=de) Benutzer {{ns:User}}
5346 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5352 <p>Benutzer Diskussion
5360 {{urlencode:hi world?!}}
5361 {{urlencode:hi world?!|WIKI}}
5362 {{urlencode:hi world?!|PATH}}
5363 {{urlencode:hi world?!|QUERY}}
5376 Magic links: internal link to RFC (bug 479)
5380 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5385 Magic links: RFC (bug 479)
5389 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5394 Magic links: ISBN (bug 1937)
5398 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5403 Magic links: PMID incorrectly converts space to underscore
5407 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5416 Nonexistent template
5418 {{thistemplatedoesnotexist}}
5420 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5425 Template with invalid target containing tags
5427 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5429 <p>{{a<b>b</b>|foo|a=b|a = b}}
5434 Template with invalid target containing unclosed tag
5436 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5438 <p>{{a<b>|foo|a=b|a = b}}</b>
5445 This is a test template
5453 <p>This is a test template
5458 Template with explicit namespace
5462 <p>This is a test template
5470 This is a test template with parameter {{{param}}}
5476 {{paramtest|param=foo}}
5478 <p>This is a test template with parameter foo
5483 Template:paramtestnum
5489 Template unnamed parameter
5491 {{paramtestnum|Main Page|the main page}}
5493 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5498 Template:templatesimple
5504 Template:templateredirect
5506 #redirect [[Template:templatesimple]]
5510 Template:templateasargtestnum
5516 Template:templateasargtest
5518 {{template{{{templ}}}}}
5522 Template:templateasargtest2
5528 Template with template name as unnamed argument
5530 {{templateasargtestnum|templatesimple}}
5537 Template with template name as argument
5539 {{templateasargtest|templ=simple}}
5546 Template with template name as argument (2)
5548 {{templateasargtest2|templ=templatesimple}}
5555 Template:templateasargtestdefault
5557 {{{{{templ|templatesimple}}}}}
5567 Template with default value
5569 {{templateasargtestdefault}}
5576 Template with default value (value set)
5578 {{templateasargtestdefault|templ=templa}}
5587 {{templateredirect}}
5594 Template with argument in separate line
5596 {{ templateasargtest |
5604 Template with complex template as argument
5607 param ={{ templateasargtest |
5610 <p>This is a test template with parameter (test)
5615 Template with thumb image (with link in description)
5618 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
5620 This is a test template with parameter <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Noimage.png" class="new" title="File:Noimage.png">File:Noimage.png</a> <div class="thumbcaption"><a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">link</a> <a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">caption</a></div></div></div>
5625 Template:complextemplate
5627 {{{1}}} {{paramtest|
5628 param ={{{param}}}}}
5632 Template with complex arguments
5635 param ={{ templateasargtest |
5636 templ = simple }}|[[Template:complextemplate|link]]}}
5638 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5643 BUG 553: link with two variables in a piped link
5646 |[[{{{1}}}|{{{2}}}]]
5651 <td>[[{{{1}}}|{{{2}}}]]
5657 Magic variable as template parameter
5659 {{paramtest|param={{SITENAME}}}}
5661 <p>This is a test template with parameter MediaWiki
5668 [[{{{param}}}|link]]
5672 Template parameter as link source
5674 {{linktest|param=Main Page}}
5676 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5681 Template-generated attribute string (k='v')
5683 <span {{attr_str|id|v1}}>bar</span>
5685 <p><span id="v1">bar</span>
5692 including another template, {{paramtest|param={{{arg}}}}}
5696 Template passing argument to another template
5698 {{paramtest2|arg='hmm'}}
5700 <p>including another template, This is a test template with parameter 'hmm'
5711 Template as link source
5715 [[{{linktest2}}|Main Page]]
5717 [[{{linktest2}}]]Page
5719 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5720 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5721 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5739 Template infinite loop
5743 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5748 Template from main namespace
5767 BUG 529: Template with table, not included at beginning of line
5786 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5806 BUG 41: Template parameters shown as broken links
5815 Template with targets containing wikilinks
5819 {{[[{{echo|foo}}]]}}
5821 {{{{echo|[[foo}}]]}}
5823 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5824 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5832 ''None'' of '''this''' should be
5834 but rather passed unmodified
5838 # hmm, fix this or just deprecate msgnw and document its behavior?
5844 {{msgnw:MSGNW test}}
5846 <p>''None'' of '''this''' should be
5848 but rather passed unmodified
5856 {{int:youhavenewmessages|lots of money|not!}}
5858 <p>You have lots of money (not!).
5865 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5869 <includeonly> and <noinclude> being included
5880 <onlyinclude>Foo</onlyinclude>bar
5884 <onlyinclude> being included
5896 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5900 <onlyinclude> and <includeonly> being included
5909 <includeonly> and <noinclude> on a page
5911 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5918 Un-closed <noinclude>
5925 <onlyinclude> on a page
5927 <onlyinclude>Foo</onlyinclude>bar
5934 Un-closed <onlyinclude>
5941 Self-closed noinclude, includeonly, onlyinclude tags
5952 Unbalanced includeonly and noinclude tags
5956 |b</noinclude></noinclude>
5957 |c</noinclude></includeonly>
5958 |d</includeonly></includeonly>
5967 <td>c</includeonly>
5969 <td>d</includeonly></includeonly>
5975 Template:Includeonly section
5978 ==Includeonly section==
5984 Bug 6563: Edit link generation for section shown by <includeonly>
5986 {{includeonly section}}
5988 <h2><span class="mw-headline" id="Includeonly_section">Includeonly section</span> <span class="mw-editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a>]</span></h2>
5989 <h2><span class="mw-headline" id="Section_T-1">Section T-1</span> <span class="mw-editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a>]</span></h2>
5993 # Uses same input as the contents of [[Template:Includeonly section]]
5995 Bug 6563: Section extraction for section shown by <includeonly>
6000 ==Includeonly section==
6008 Bug 6563: Edit link generation for section suppressed by <includeonly>
6011 ==Includeonly section==
6015 <h2><span class="mw-headline" id="Section_1">Section 1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span></h2>
6020 Bug 6563: Section extraction for section suppressed by <includeonly>
6025 ==Includeonly section==
6033 Un-closed <includeonly>
6040 ### <includeonly> and <noinclude> in attributes
6043 0. includeonly around the entire attribute
6045 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6047 <p><span id="v2">bar</span>
6052 1. includeonly in html attr key
6054 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6056 <p><span id="foo">bar</span>
6061 2. includeonly in html attr value
6063 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6064 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6066 <p><span id="v1">bar</span>
6067 <span id="v1">bar</span>
6072 3. includeonly in part of an attr value
6074 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6076 <p><span style="color:red;">bar</span>
6081 ### Testing parsing of templates where a template arg
6082 ### has the same name as the template itself.
6092 Templates: Template Name/Arg clash: 1. Use of positional param
6101 Templates: Template Name/Arg clash: 2. Use of named param
6110 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6119 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6123 Templates: 1. Simple use
6132 Templates: 2. Inside a block tag
6134 <div>{{echo|Foo}}</div>
6141 Templates: P-wrapping: 1a. Templates on consecutive lines
6152 Templates: P-wrapping: 1b. Templates on consecutive lines
6166 Templates: P-wrapping: 1c. Templates on consecutive lines
6169 {{echo|bar}} <div>baz</div>
6178 Templates: P-wrapping: 1d. Template preceded by comment-only line
6191 Templates: Inline Text: 1. Multiple tmeplate uses
6193 {{echo|Foo}}bar{{echo|baz}}
6200 Templates: Inline Text: 2. Back-to-back template uses
6202 {{echo|Foo}}{{echo|bar}}
6209 Templates: Block Tags: 1. Multiple template uses
6211 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6213 <div>Foo</div><div>bar</div><div>baz</div>
6218 Templates: Block Tags: 2. Back-to-back template uses
6220 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6222 <div>Foo</div><div>bar</div>
6227 Templates: Links: 1. Simple example
6229 {{echo|[[Foo|bar]]}}
6231 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6236 Templates: Links: 2. Generation of link href
6238 [[{{echo|Foo}}|bar]]
6240 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6245 Templates: Links: 3. Generation of part of a link href
6247 [[Fo{{echo|o}}|bar]]
6251 [[Foo{{echo|bar}}baz]]
6253 [[Foo{{echo|bar}}|bar]]
6255 [[:Foo{{echo|bar}}]]
6257 [[:Foo{{echo|bar}}|bar]]
6259 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6260 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6261 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6262 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6263 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6264 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6269 Templates: Links: 4. Multiple templates generating link href
6271 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6273 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6278 Templates: Links: 5. Generation of link text
6280 [[Foo|{{echo|bar}}]]
6282 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6287 Templates: Links: 5. Nested templates (only outermost template should be marked)
6289 {{echo|[[{{echo|Foo}}|bar]]}}
6291 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6296 Templates: HTML Tag: 1. Generation of HTML attr. key
6298 <div {{echo|style}}="color:red;">foo</div>
6300 <div style="color:red;">foo</div>
6305 Templates: HTML Tag: 2. Generation of HTML attr. value
6307 <div style={{echo|'color:red;'}}>foo</div>
6309 <div style="color:red;">foo</div>
6314 Templates: HTML Tag: 3. Generation of HTML attr key and value
6316 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6318 <div style="color:red;">foo</div>
6323 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6325 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6327 <div title="This is a long title with just one piece templated">foo</div>
6332 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6334 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6336 <div title="This is a long title with just one piece templated">foo</div>
6341 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6343 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6345 <div title="This is a long title with just one piece templated">foo</div>
6350 Templates: HTML Tag: 7. Generation of partial attribute key string
6352 <div st{{echo|yle}}="color:red;">foo</div>
6354 <div style="color:red;">foo</div>
6359 Templates: HTML Tables: 1. Generating start of a HTML table
6361 {{echo|<table><tr><td>foo</td>}}</tr></table>
6363 <table><tr><td>foo</td></tr></table>
6368 Templates: HTML Tables: 2a. Generating middle of a HTML table
6370 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6372 <table><tr><td>foo</td></tr></table>
6377 Templates: HTML Tables: 2b. Generating middle of a HTML table
6379 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6381 <table><tr><td>foo</td></tr></table>
6386 Templates: HTML Tables: 3. Generating end of a HTML table
6388 <table><tr>{{echo|<td>foo</td></tr></table>}}
6390 <table><tr><td>foo</td></tr></table>
6395 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6397 {{echo|<table>}}<tr><td>foo</td></tr></table>
6399 <table><tr><td>foo</td></tr></table>
6404 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6406 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6408 <table><tr><td>foo</td></tr></table>
6413 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6415 <table><tr>{{echo|<td>}}foo</td></tr></table>
6417 <table><tr><td>foo</td></tr></table>
6422 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6424 <table><tr><td>foo{{echo|</td>}}</tr></table>
6426 <table><tr><td>foo</td></tr></table>
6431 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6433 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6435 <table><tr><td>foo</td></tr></table>
6440 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6442 <table><tr><td>foo</td></tr>{{echo|</table>}}
6444 <table><tr><td>foo</td></tr></table>
6449 Templates: Wiki Tables: 1a. Fostering of entire template content
6457 <tr><td></td></tr></table>
6462 Templates: Wiki Tables: 1b. Fostering of entire template content
6475 <tr><td></td></tr></table>
6480 Templates: Wiki Tables: 2. Fostering of partial template content
6490 <tr><td></td></tr></table>
6495 Templates: Wiki Tables: 3. td-content via multiple templates
6498 {{echo|{{pipe}}a}}{{echo|b}}
6509 Templates: Wiki Tables: 4. Templated tags, no content
6515 <tr><td></td></tr></table>
6520 Templates: Wiki Tables: 5. Templated tags, regular td-tags
6534 Templates: Wiki Tables: 6. Templated tags, templated td-tags
6548 Templates: Lists: Multi-line list-items via templates
6550 *{{echo|a {{nonexistent|
6552 *{{echo|b {{nonexistent|
6555 <ul><li>a <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
6556 </li><li>b <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
6562 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
6564 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
6566 <p><i>ab</i>c<i>d</i>e
6571 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
6572 (PHP parser generates misnested html)
6576 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
6578 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
6582 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
6583 (PHP parser generates misnested html)
6587 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
6590 <div><i>b</i>c<i>d</i></div>
6595 Templates: Ugly nesting: 4. Divs opened/closed across templates
6597 a<div>b{{echo|c</div>d}}e
6604 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
6610 |{{echo|foo</table>}}
6614 <table about="#mwt1" typeof="mw:Object/Template ">
6615 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
6616 bar</span><span about="#mwt1">
6621 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
6631 <td>1. {{echo|foo </table>}}</td>
6633 <td>2. {{echo|baz </table>}}</td>
6646 <table about="#mwt1" typeof="mw:Object/Template">
6651 <td >1. foo </td></tr></tbody></table></td>
6653 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
6654 </span><span about="#mwt1">
6656 abc</span><span about="#mwt1">
6657 </span><span about="#mwt1">
6658 </span><span about="#mwt1">
6659 </span><span about="#mwt1">
6660 </span><span about="#mwt1">
6662 xyz</span><span about="#mwt1">
6663 </span><span about="#mwt1">
6668 Templates: Ugly templates: 3. newline-only template parameter
6677 # This looks like a bug: a single newline triggers p/br for some reason.
6679 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6690 Parser Functions: 1. Simple example
6699 Parser Functions: 2. Nested use (only outermost should be marked up)
6708 ### Pre-save transform tests
6711 pre-save transform: subst:
6717 This is a test template
6721 pre-save transform: normal template
6731 pre-save transform: nonexistent template
6735 {{thistemplatedoesnotexist}}
6737 {{thistemplatedoesnotexist}}
6742 pre-save transform: subst magic variables
6751 # This is bug 89, which I fixed. -- wtm
6753 pre-save transform: subst: templates with parameters
6757 {{subst:paramtest|param="something else"}}
6759 This is a test template with parameter "something else"
6765 <nowiki>'''not wiki'''</nowiki>
6769 pre-save transform: nowiki in subst (bug 1188)
6773 {{subst:nowikitest}}
6775 <nowiki>'''not wiki'''</nowiki>
6780 Template:commenttest
6782 This template has <!-- a comment --> in it.
6786 pre-save transform: comment in subst (bug 1936)
6790 {{subst:commenttest}}
6792 This template has <!-- a comment --> in it.
6796 pre-save transform: unclosed tag
6800 <nowiki>'''not wiki'''
6802 <nowiki>'''not wiki'''
6806 pre-save transform: mixed tag case
6810 <NOwiki>'''not wiki'''</noWIKI>
6812 <NOwiki>'''not wiki'''</noWIKI>
6816 pre-save transform: unclosed comment in <nowiki>
6820 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6822 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6828 <span onmouseover="alert('crap')">Oh no</span>
6832 (confirming safety of fix for subst bug 1936)
6834 {{Template:dangerous}}
6836 <p><span>Oh no</span>
6841 pre-save transform: comment containing gallery (bug 5024)
6845 <!-- <gallery>data</gallery> -->
6847 <!-- <gallery>data</gallery> -->
6851 pre-save transform: comment containing extension
6855 <!-- <tag>data</tag> -->
6857 <!-- <tag>data</tag> -->
6861 pre-save transform: comment containing nowiki
6865 <!-- <nowiki>data</nowiki> -->
6867 <!-- <nowiki>data</nowiki> -->
6871 pre-save transform: <noinclude> in subst (bug 3298)
6881 pre-save transform: <onlyinclude> in subst (bug 3298)
6893 {{<includeonly>subst:</includeonly>Includes}}
6897 Template:SafeSubstTest
6899 {{<includeonly>safesubst:</includeonly>Includes}}
6903 bug 22297: safesubst: works during PST
6907 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6913 bug 22297: safesubst: works during normal parse
6922 subst: does not work during normal parse
6926 <p>{{subst:Includes}}
6931 pre-save transform: context links ("pipe trick")
6935 [[Article (context)|]]
6938 [[Bar:Article (context)|]]
6939 [[:Bar:Article (context)|]]
6941 [[|Article (context)]]
6945 [[Article (context)|Article]]
6946 [[Bar:Article|Article]]
6947 [[:Bar:Article|Article]]
6948 [[Bar:Article (context)|Article]]
6949 [[:Bar:Article (context)|Article]]
6951 [[Article (context)]]
6952 [[Bar:X (Y) Z|X (Y) Z]]
6953 [[:Bar:X (Y) Z|X (Y) Z]]
6957 pre-save transform: context links ("pipe trick") with interwiki prefix
6961 [[interwiki:Article|]]
6962 [[:interwiki:Article|]]
6963 [[interwiki:Bar:Article|]]
6964 [[:interwiki:Bar:Article|]]
6966 [[interwiki:Article|Article]]
6967 [[:interwiki:Article|Article]]
6968 [[interwiki:Bar:Article|Bar:Article]]
6969 [[:interwiki:Bar:Article|Bar:Article]]
6973 pre-save transform: context links ("pipe trick") with parens in title
6975 pst title=[[Somearticle (context)]]
6979 [[Article (context)|Article]]
6983 pre-save transform: context links ("pipe trick") with comma in title
6985 pst title=[[Someplace, Somewhere]]
6988 [[Otherplace, Elsewhere|]]
6989 [[Otherplace, Elsewhere, Anywhere|]]
6991 [[Otherplace, Somewhere|Otherplace]]
6992 [[Otherplace, Elsewhere|Otherplace]]
6993 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6997 pre-save transform: context links ("pipe trick") with parens and comma
6999 pst title=[[Someplace (IGNORED), Somewhere]]
7002 [[Otherplace (place), Elsewhere|]]
7004 [[Otherplace, Somewhere|Otherplace]]
7005 [[Otherplace (place), Elsewhere|Otherplace]]
7009 pre-save transform: context links ("pipe trick") with comma and parens
7011 pst title=[[Who, me? (context)]]
7014 [[Me, Myself, and I (1937 song)|]]
7016 [[Yes, you. (context)|Yes, you.]]
7017 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7021 pre-save transform: context links ("pipe trick") with namespace
7023 pst title=[[Ns:Somearticle]]
7027 [[Ns:Article|Article]]
7031 pre-save transform: context links ("pipe trick") with namespace and parens
7033 pst title=[[Ns:Somearticle (context)]]
7037 [[Ns:Article (context)|Article]]
7041 pre-save transform: context links ("pipe trick") with namespace and comma
7043 pst title=[[Ns:Somearticle, Context, Whatever]]
7047 [[Ns:Article, Context, Whatever|Article]]
7051 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7053 pst title=[[Ns:Somearticle, Context (context)]]
7057 [[Ns:Article (context)|Article]]
7061 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7063 pst title=[[Ns:Somearticle (IGNORED), Context]]
7067 [[Ns:Article, Context|Article]]
7071 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7075 [[Article(context)|]]
7076 [[Bar:Article(context)|]]
7077 [[:Bar:Article(context)|]]
7078 [[|Article(context)]]
7082 [[Article(context)|Article]]
7083 [[Bar:Article(context)|Article]]
7084 [[:Bar:Article(context)|Article]]
7085 [[Article(context)]]
7087 [[:Bar:X(Y)Z|X(Y)Z]]
7091 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7095 [[Article (context)|]]
7096 [[Bar:Article (context)|]]
7097 [[:Bar:Article (context)|]]
7098 [[|Article (context)]]
7102 [[Article (context)|Article]]
7103 [[Bar:Article (context)|Article]]
7104 [[:Bar:Article (context)|Article]]
7105 [[Article (context)]]
7106 [[Bar:X (Y) Z|X (Y) Z]]
7107 [[:Bar:X (Y) Z|X (Y) Z]]
7111 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7115 [[Article(context)|]]
7116 [[Bar:Article(context)|]]
7117 [[:Bar:Article(context)|]]
7118 [[|Article(context)]]
7122 [[Article(context)|Article]]
7123 [[Bar:Article(context)|Article]]
7124 [[:Bar:Article(context)|Article]]
7125 [[Article(context)]]
7127 [[:Bar:X(Y)Z|X(Y)Z]]
7131 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7135 [[Article (context), context|]]
7136 [[Article (context),context|]]
7137 [[Bar:Article (context), context|]]
7138 [[Bar:Article (context),context|]]
7139 [[:Bar:Article (context), context|]]
7140 [[:Bar:Article (context),context|]]
7142 [[Article (context), context|Article]]
7143 [[Article (context),context|Article]]
7144 [[Bar:Article (context), context|Article]]
7145 [[Bar:Article (context),context|Article]]
7146 [[:Bar:Article (context), context|Article]]
7147 [[:Bar:Article (context),context|Article]]
7151 pre-save transform: trim trailing empty lines
7155 Empty lines are trimmed
7161 Empty lines are trimmed
7165 pre-save transform: Signature expansion
7170 * <noinclude>~~~</noinclude>
7171 * <includeonly>~~~</includeonly>
7172 * <onlyinclude>~~~</onlyinclude>
7174 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7175 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7176 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7177 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7182 pre-save transform: Signature expansion in nowiki tags (bug 93)
7188 <nowiki>~~~~</nowiki>
7190 <includeonly><nowiki>~~~~</nowiki></includeonly>
7192 <noinclude><nowiki>~~~~</nowiki></noinclude>
7194 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7196 {{subst:Foo}} shall be converted to FOO
7198 As well as inside noinclude/onlyinclude
7199 <noinclude>{{subst:Foo}}</noinclude>
7200 <onlyinclude>{{subst:Foo}}</onlyinclude>
7202 But not inside includeonly
7203 <includeonly>{{subst:Foo}}</includeonly>
7207 <nowiki>~~~~</nowiki>
7209 <includeonly><nowiki>~~~~</nowiki></includeonly>
7211 <noinclude><nowiki>~~~~</nowiki></noinclude>
7213 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7215 FOO shall be converted to FOO
7217 As well as inside noinclude/onlyinclude
7218 <noinclude>FOO</noinclude>
7219 <onlyinclude>FOO</onlyinclude>
7221 But not inside includeonly
7222 <includeonly>{{subst:Foo}}</includeonly>
7226 ### Message transform tests
7229 message transform: magic variables
7239 message transform: should not transform wiki markup
7249 message transform: <noinclude> in transcluded template (bug 4926)
7259 message transform: <onlyinclude> in transcluded template (bug 4926)
7269 {{#special:}} page name, known
7273 {{#special:Recentchanges}}
7275 Special:RecentChanges
7279 {{#special:}} page name with subpage, known
7283 {{#special:Recentchanges/param}}
7285 Special:RecentChanges/param
7289 {{#special:}} page name, unknown
7293 {{#special:foobarnonexistent}}
7295 No such special page
7299 {{#speciale:}} page name, known
7303 {{#speciale:Recentchanges}}
7305 Special:RecentChanges
7309 {{#speciale:}} page name with subpage, known
7313 {{#speciale:Recentchanges/param}}
7315 Special:RecentChanges/param
7319 {{#speciale:}} page name, unknown
7323 {{#speciale:foobarnonexistent}}
7325 No_such_special_page
7334 [[Image:foobar.jpg]]
7336 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7343 [[Image:foobar.jpg|right]]
7345 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
7350 Simple image (using File: namespace, now canonical)
7354 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7361 [[Image:foobar.jpg|right|Caption text]]
7363 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
7368 Image with empty attribute
7370 [[Image:foobar.jpg|right||Caption text]]
7372 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
7377 Image with link tails
7379 123[[Image:foobar.jpg]]456
7380 123[[Image:foobar.jpg|right]]456
7381 123[[Image:foobar.jpg|thumb]]456
7383 <p>123<a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>456
7385 123<div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>456
7386 123<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div></div></div></div>456
7391 Image with multiple captions -- only last one is accepted
7393 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7395 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption3 - accepted"><img alt="Caption3 - accepted" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
7400 Image with width attribute at different positions
7402 [[Image:foobar.jpg|200px|right|Caption]]
7403 [[Image:foobar.jpg|right|200px|Caption]]
7404 [[Image:foobar.jpg|right|Caption|200px]]
7406 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
7407 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
7408 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
7413 Image with link parameter, wiki target
7415 [[Image:foobar.jpg|link=Target page]]
7417 <p><a href="/wiki/Target_page" title="Target page"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7422 Image with link parameter, URL target
7424 [[Image:foobar.jpg|link=http://example.com/]]
7426 <p><a href="http://example.com/" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7431 Image with link parameter, wgExternalLinkTarget
7433 [[Image:foobar.jpg|link=http://example.com/]]
7435 wgExternalLinkTarget='foobar'
7437 <p><a href="http://example.com/" target="foobar" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7442 Image with link parameter, wgNoFollowLinks set to false
7444 [[Image:foobar.jpg|link=http://example.com/]]
7446 wgNoFollowLinks=false
7448 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7453 Image with link parameter, wgNoFollowDomainExceptions
7455 [[Image:foobar.jpg|link=http://example.com/]]
7457 wgNoFollowDomainExceptions='example.com'
7459 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7464 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7466 [[Image:foobar.jpg|link=http://example.com/|Title]]
7468 wgExternalLinkTarget='foobar'
7470 <p><a href="http://example.com/" title="Title" target="foobar" rel="nofollow"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7475 Image with empty link parameter
7477 [[Image:foobar.jpg|link=]]
7479 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7484 Image with link parameter (wiki target) and unnamed parameter
7486 [[Image:foobar.jpg|link=Target page|Title]]
7488 <p><a href="/wiki/Target_page" title="Title"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7493 Image with link parameter (URL target) and unnamed parameter
7495 [[Image:foobar.jpg|link=http://example.com/|Title]]
7497 <p><a href="http://example.com/" title="Title" rel="nofollow"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7502 Thumbnail image with link parameter
7506 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
7508 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="http://example.com/"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7513 Manually-specified thumbnail image
7517 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
7519 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/File:Foobar.jpg"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7524 Manually-specified thumbnail image with explicit link to wiki page
7528 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
7530 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/Main_Page" title="Main Page"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7535 Manually-specified thumbnail image with explicit link to url
7539 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
7541 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="http://example.com"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7546 Manually-specified thumbnail image with explicit no link
7550 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
7552 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7557 Manually-specified thumbnail image with explicit link and alt text
7561 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
7563 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/Main_Page" title="Main Page"><img alt="alttext" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
7568 Image with frame and link
7570 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
7572 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
7577 Image with frame and link and explicit alt
7579 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
7581 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Altitude" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
7586 Image with wiki markup in implicit alt
7588 [[Image:Foobar.jpg|testing '''bold''' in alt]]
7590 <p><a href="/wiki/File:Foobar.jpg" class="image" title="testing bold in alt"><img alt="testing bold in alt" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7595 Image with wiki markup in explicit alt
7597 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
7599 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="testing bold in alt" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7604 Link to image page- image page normally doesn't exists, hence edit link
7605 Add test with existing image page
7606 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
7610 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
7615 bug 18784 Link to non-existent image page with caption should use caption as link text
7617 [[:Image:test|caption]]
7619 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
7624 Frameless image caption with a free URL
7626 [[Image:foobar.jpg|http://example.com]]
7628 <p><a href="/wiki/File:Foobar.jpg" class="image" title="http://example.com"><img alt="http://example.com" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7633 Thumbnail image caption with a free URL
7635 [[Image:foobar.jpg|thumb|http://example.com]]
7637 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
7642 Thumbnail image caption with a free URL and explicit alt
7644 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
7646 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
7651 BUG 1887: A ISBN with a thumbnail
7653 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
7655 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
7660 BUG 1887: A RFC with a thumbnail
7662 [[Image:foobar.jpg|thumb|This is RFC 12354]]
7664 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
7669 BUG 1887: A mailto link with a thumbnail
7671 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
7673 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
7677 # Pending resolution to bug 368
7679 BUG 648: Frameless image caption with a link
7681 [[Image:foobar.jpg|text with a [[link]] in it]]
7683 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7688 BUG 648: Frameless image caption with a link (suffix)
7690 [[Image:foobar.jpg|text with a [[link]]foo in it]]
7692 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a linkfoo in it"><img alt="text with a linkfoo in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7697 BUG 648: Frameless image caption with an interwiki link
7699 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
7701 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a MeatBall:Link in it"><img alt="text with a MeatBall:Link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7706 BUG 648: Frameless image caption with a piped interwiki link
7708 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7710 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7715 Escape HTML special chars in image alt text
7717 [[Image:foobar.jpg|& < > "]]
7719 <p><a href="/wiki/File:Foobar.jpg" class="image" title="& < > ""><img alt="& < > "" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7724 BUG 499: Alt text should have Ӓ, not &1234;
7726 [[Image:foobar.jpg|♀]]
7728 <p><a href="/wiki/File:Foobar.jpg" class="image" title="♀"><img alt="♀" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7733 Broken image caption with link
7735 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7737 <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.
7742 Image caption containing another image
7744 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7746 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is a caption with another <a href="/index.php?title=Special:Upload&wpDestFile=Icon.png" class="new" title="File:Icon.png">image</a> inside it!</div></div></div>
7751 Image caption containing a newline
7753 [[Image:Foobar.jpg|This
7756 <p><a href="/wiki/File:Foobar.jpg" class="image" title="This *is some text"><img alt="This *is some text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7761 Parsoid: Image caption containing leading space
7762 (The leading space should not trigger nowiki escaping in wt2wt mode)
7764 [[Image:Foobar.jpg|thumb| bar]]
7766 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>bar</div></div></div>
7771 Bug 3090: External links other than http: in image captions
7773 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7775 <div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This caption has <a rel="nofollow" class="external text" href="irc://example.net">irc</a> and <a rel="nofollow" class="external text" href="https://example.com">Secure</a> ext links in it.</div></div></div>
7782 [[Image:foobar.jpg|a|class=b]]
7784 <p><a href="/wiki/File:Foobar.jpg" class="image" title="a"><img alt="a" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="b" /></a>
7789 Localized image handling (1).
7793 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
7795 <div class="floatleft"><a href="/wiki/Foo" title="caption"><img alt="caption" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
7800 Localized image handling (2).
7804 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
7806 <div class="thumb tleft"><div class="thumbinner" style="width:182px;"><a href="/wiki/Foo" title="Foo"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/Archivo:Foobar.jpg" class="internal" title="Aumentar"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
7811 "border", "frameless" and "class" attributes on an image.
7813 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
7815 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="extra thumbborder" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a>
7822 #REDIRECT [[File:Barfoo.jpg]]
7828 [[Image:Barfoo.jpg]]
7830 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7835 Missing image with uploads disabled
7839 [[Image:Foobaz.jpg]]
7841 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7850 Subpage test/subpage
7858 subpage title=[[Subpage test]]
7862 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7867 Subpage noslash link
7869 subpage title=[[Subpage test]]
7873 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7882 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7887 BUG 561: {{/Subpage}}
7889 subpage title=[[Page]]
7893 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7901 Category:MediaWiki User's Guide
7909 [[:Category:MediaWiki User's Guide]]
7911 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7920 [[Category:MediaWiki User's Guide]]
7922 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7926 PAGESINCATEGORY invalid title fatal (r33546 fix)
7928 {{PAGESINCATEGORY:<bogus>}}
7935 Category with different sort key
7939 [[Category:MediaWiki User's Guide|Foo]]
7941 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7945 Category with identical sort key
7949 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7951 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7955 Category with empty sort key
7960 [[Category:MediaWiki User's Guide|]]
7962 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7966 Category with empty sort key and parentheses
7971 [[Category:Foo (bar)|]]
7973 [[Category:Foo (bar)|Foo]]
7977 Category with link tail
7982 123[[Category:Foo]]456
7984 123[[Category:Foo]]456
7988 Category with template
7993 [[Category:{{echo|Foo}}]]
7995 [[Category:{{echo|Foo}}]]
7999 Category with template in sort key
8004 [[Category:Foo|{{echo|Bar}}]]
8006 [[Category:Foo|{{echo|Bar}}]]
8010 Category with template in sort key and title
8015 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8017 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8021 Category / paragraph interactions
8023 Foo [[Category:Baz]] Bar
8025 Foo [[Category:Baz]]
8033 [[Category:Baz]] Bar
8046 {{echo|[[Category:Baz]]}}
8061 ### Inter-language links
8064 Inter-language links
8070 [[zh:食品]]
8072 es:Alimento fr:Nourriture zh:食品
8076 Duplicate interlanguage links (bug 24502)
8092 Basic section headings
8099 ===Smaller headline===
8102 <h2><span class="mw-headline" id="Headline_1">Headline 1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span></h2>
8105 <h2><span class="mw-headline" id="Headline_2">Headline 2</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a>]</span></h2>
8108 <h3><span class="mw-headline" id="Smaller_headline">Smaller headline</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a>]</span></h3>
8114 Section headings with TOC
8117 === Subheadline 1 ===
8118 ===== Skipping a level =====
8119 ====== Skipping a level ======
8123 ===Another headline===
8125 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8127 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8129 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8131 <li class="toclevel-3 tocsection-3"><a href="#Skipping_a_level"><span class="tocnumber">1.1.1</span> <span class="toctext">Skipping a level</span></a>
8133 <li class="toclevel-4 tocsection-4"><a href="#Skipping_a_level_2"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Skipping a level</span></a></li>
8140 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8142 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8147 <h2><span class="mw-headline" id="Headline_1">Headline 1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span></h2>
8148 <h3><span class="mw-headline" id="Subheadline_1">Subheadline 1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a>]</span></h3>
8149 <h5><span class="mw-headline" id="Skipping_a_level">Skipping a level</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a>]</span></h5>
8150 <h6><span class="mw-headline" id="Skipping_a_level_2">Skipping a level</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a>]</span></h6>
8151 <h2><span class="mw-headline" id="Headline_2">Headline 2</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a>]</span></h2>
8154 <h3><span class="mw-headline" id="Another_headline">Another headline</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a>]</span></h3>
8158 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8160 Handling of sections up to level 6 and beyond
8163 == Level 2 Heading==
8164 === Level 3 Heading===
8165 ==== Level 4 Heading====
8166 ===== Level 5 Heading=====
8167 ====== Level 6 Heading======
8168 ======= Level 7 Heading=======
8169 ======== Level 8 Heading========
8170 ========= Level 9 Heading=========
8171 ========== Level 10 Heading==========
8173 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8175 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8177 <li class="toclevel-2 tocsection-2"><a href="#Level_2_Heading"><span class="tocnumber">1.1</span> <span class="toctext">Level 2 Heading</span></a>
8179 <li class="toclevel-3 tocsection-3"><a href="#Level_3_Heading"><span class="tocnumber">1.1.1</span> <span class="toctext">Level 3 Heading</span></a>
8181 <li class="toclevel-4 tocsection-4"><a href="#Level_4_Heading"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Level 4 Heading</span></a>
8183 <li class="toclevel-5 tocsection-5"><a href="#Level_5_Heading"><span class="tocnumber">1.1.1.1.1</span> <span class="toctext">Level 5 Heading</span></a>
8185 <li class="toclevel-6 tocsection-6"><a href="#Level_6_Heading"><span class="tocnumber">1.1.1.1.1.1</span> <span class="toctext">Level 6 Heading</span></a></li>
8186 <li class="toclevel-6 tocsection-7"><a href="#.3D_Level_7_Heading.3D"><span class="tocnumber">1.1.1.1.1.2</span> <span class="toctext">= Level 7 Heading=</span></a></li>
8187 <li class="toclevel-6 tocsection-8"><a href="#.3D.3D_Level_8_Heading.3D.3D"><span class="tocnumber">1.1.1.1.1.3</span> <span class="toctext">== Level 8 Heading==</span></a></li>
8188 <li class="toclevel-6 tocsection-9"><a href="#.3D.3D.3D_Level_9_Heading.3D.3D.3D"><span class="tocnumber">1.1.1.1.1.4</span> <span class="toctext">=== Level 9 Heading===</span></a></li>
8189 <li class="toclevel-6 tocsection-10"><a href="#.3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D"><span class="tocnumber">1.1.1.1.1.5</span> <span class="toctext">==== Level 10 Heading====</span></a></li>
8202 <h1><span class="mw-headline" id="Level_1_Heading">Level 1 Heading</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a>]</span></h1>
8203 <h2><span class="mw-headline" id="Level_2_Heading">Level 2 Heading</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a>]</span></h2>
8204 <h3><span class="mw-headline" id="Level_3_Heading">Level 3 Heading</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a>]</span></h3>
8205 <h4><span class="mw-headline" id="Level_4_Heading">Level 4 Heading</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a>]</span></h4>
8206 <h5><span class="mw-headline" id="Level_5_Heading">Level 5 Heading</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a>]</span></h5>
8207 <h6><span class="mw-headline" id="Level_6_Heading">Level 6 Heading</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a>]</span></h6>
8208 <h6><span class="mw-headline" id=".3D_Level_7_Heading.3D">= Level 7 Heading=</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a>]</span></h6>
8209 <h6><span class="mw-headline" id=".3D.3D_Level_8_Heading.3D.3D">== Level 8 Heading==</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a>]</span></h6>
8210 <h6><span class="mw-headline" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D">=== Level 9 Heading===</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a>]</span></h6>
8211 <h6><span class="mw-headline" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D">==== Level 10 Heading====</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a>]</span></h6>
8216 TOC regression (bug 9764)
8220 ==== title 1.1.1 ====
8225 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8227 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8229 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a>
8231 <li class="toclevel-3 tocsection-3"><a href="#title_1.1.1"><span class="tocnumber">1.1.1</span> <span class="toctext">title 1.1.1</span></a></li>
8234 <li class="toclevel-2 tocsection-4"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
8237 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8239 <li class="toclevel-2 tocsection-6"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
8244 <h2><span class="mw-headline" id="title_1">title 1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span></h2>
8245 <h3><span class="mw-headline" id="title_1.1">title 1.1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span></h3>
8246 <h4><span class="mw-headline" id="title_1.1.1">title 1.1.1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span></h4>
8247 <h3><span class="mw-headline" id="title_1.2">title 1.2</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span></h3>
8248 <h2><span class="mw-headline" id="title_2">title 2</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span></h2>
8249 <h3><span class="mw-headline" id="title_2.1">title 2.1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span></h3>
8254 TOC with wgMaxTocLevel=3 (bug 6204)
8260 ==== title 1.1.1 ====
8265 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8267 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8269 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
8270 <li class="toclevel-2 tocsection-4"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
8273 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8275 <li class="toclevel-2 tocsection-6"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
8280 <h2><span class="mw-headline" id="title_1">title 1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span></h2>
8281 <h3><span class="mw-headline" id="title_1.1">title 1.1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span></h3>
8282 <h4><span class="mw-headline" id="title_1.1.1">title 1.1.1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span></h4>
8283 <h3><span class="mw-headline" id="title_1.2">title 1.2</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span></h3>
8284 <h2><span class="mw-headline" id="title_2">title 2</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span></h2>
8285 <h3><span class="mw-headline" id="title_2.1">title 2.1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span></h3>
8290 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
8296 ====Section 1.1.1====
8297 ====Section 1.1.1.1====
8300 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8302 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
8304 <li class="toclevel-2 tocsection-2"><a href="#Section_1.1"><span class="tocnumber">1.1</span> <span class="toctext">Section 1.1</span></a></li>
8307 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
8310 <h2><span class="mw-headline" id="Section_1">Section 1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span></h2>
8311 <h3><span class="mw-headline" id="Section_1.1">Section 1.1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 1.1">edit</a>]</span></h3>
8312 <h4><span class="mw-headline" id="Section_1.1.1">Section 1.1.1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Section 1.1.1">edit</a>]</span></h4>
8313 <h4><span class="mw-headline" id="Section_1.1.1.1">Section 1.1.1.1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Section 1.1.1.1">edit</a>]</span></h4>
8314 <h2><span class="mw-headline" id="Section_2">Section 2</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Section 2">edit</a>]</span></h2>
8320 Resolving duplicate section names
8325 <h2><span class="mw-headline" id="Foo_bar">Foo bar</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span></h2>
8326 <h2><span class="mw-headline" id="Foo_bar_2">Foo bar</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a>]</span></h2>
8331 Resolving duplicate section names with differing case (bug 10721)
8336 <h2><span class="mw-headline" id="Foo_bar">Foo bar</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span></h2>
8337 <h2><span class="mw-headline" id="Foo_Bar_2">Foo Bar</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span></h2>
8349 Template with sections, __NOTOC__
8356 <h2><span class="mw-headline" id="Section_0">Section 0</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a>]</span></h2>
8357 <h3><span class="mw-headline" id="Section_1">Section 1</span> <span class="mw-editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-1" title="Template:Sections">edit</a>]</span></h3>
8358 <h2><span class="mw-headline" id="Section_2">Section 2</span> <span class="mw-editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-2" title="Template:Sections">edit</a>]</span></h2>
8359 <h2><span class="mw-headline" id="Section_4">Section 4</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a>]</span></h2>
8364 __NOEDITSECTION__ keyword
8370 <h2><span class="mw-headline" id="Section_1">Section 1</span> </h2>
8371 <h2><span class="mw-headline" id="Section_2">Section 2</span> </h2>
8376 Link inside a section heading
8378 ==Section with a [[Main Page|link]] in it==
8380 <h2><span class="mw-headline" id="Section_with_a_link_in_it">Section with a <a href="/wiki/Main_Page" title="Main Page">link</a> in it</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a>]</span></h2>
8385 TOC regression (bug 12077)
8392 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8394 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8396 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
8399 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
8402 <h2><span class="mw-headline" id="title_1">title 1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span></h2>
8403 <h3><span class="mw-headline" id="title_1.1">title 1.1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span></h3>
8404 <h2><span class="mw-headline" id="title_2">title 2</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a>]</span></h2>
8409 BUG 1219 URL next to image (good)
8411 http://example.com [[Image:foobar.jpg]]
8413 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8418 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
8421 The line above must have a trailing space!
8424 But just in case it doesn't...
8426 <h1><span class="mw-headline" id=".3D">=</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: =">edit</a>]</span></h1>
8427 <p>The line above must have a trailing space!
8429 <h1><span class="mw-headline" id=".3D_2">=</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =">edit</a>]</span></h1>
8430 <p>But just in case it doesn't...
8435 Header with special characters (bug 25462)
8437 The tooltips shall not show entities to the user (ie. be double escaped)
8454 <p>The tooltips shall not show entities to the user (ie. be double escaped)
8456 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8458 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
8459 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
8460 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
8461 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
8462 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
8465 <h2><span class="mw-headline" id="text_.3E_text">text > text</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: text > text">edit</a>]</span></h2>
8468 <h2><span class="mw-headline" id="text_.3C_text">text < text</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: text < text">edit</a>]</span></h2>
8471 <h2><span class="mw-headline" id="text_.26_text">text & text</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: text & text">edit</a>]</span></h2>
8474 <h2><span class="mw-headline" id="text_.27_text">text ' text</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: text ' text">edit</a>]</span></h2>
8477 <h2><span class="mw-headline" id="text_.22_text">text " text</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: text " text">edit</a>]</span></h2>
8483 Headers with excess '=' characters
8484 (Are similar tests necessary beyond the 1st level?)
8488 =''italic'' heading==
8489 ==''italic'' heading=
8491 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8493 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
8494 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
8495 <li class="toclevel-1 tocsection-3"><a href="#italic_heading.3D"><span class="tocnumber">3</span> <span class="toctext"><i>italic</i> heading=</span></a></li>
8496 <li class="toclevel-1 tocsection-4"><a href="#.3Ditalic_heading"><span class="tocnumber">4</span> <span class="toctext">=<i>italic</i> heading</span></a></li>
8499 <h1><span class="mw-headline" id="foo.3D">foo=</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: foo=">edit</a>]</span></h1>
8500 <h1><span class="mw-headline" id=".3Dfoo">=foo</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =foo">edit</a>]</span></h1>
8501 <h1><span class="mw-headline" id="italic_heading.3D"><i>italic</i> heading=</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: italic heading=">edit</a>]</span></h1>
8502 <h1><span class="mw-headline" id=".3Ditalic_heading">=<i>italic</i> heading</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: =italic heading">edit</a>]</span></h1>
8507 HTML headers vs TOC (bug 23393)
8508 (__NOEDITSECTION__ for clearer output, doesn't matter here)
8520 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8522 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
8524 <li class="toclevel-2 tocsection-1"><a href="#Header_1.1"><span class="tocnumber">1.1</span> <span class="toctext">Header 1.1</span></a></li>
8525 <li class="toclevel-2 tocsection-2"><a href="#Header_1.2"><span class="tocnumber">1.2</span> <span class="toctext">Header 1.2</span></a></li>
8528 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
8530 <li class="toclevel-2 tocsection-3"><a href="#Header_2.1"><span class="tocnumber">2.1</span> <span class="toctext">Header 2.1</span></a></li>
8531 <li class="toclevel-2 tocsection-4"><a href="#Header_2.2"><span class="tocnumber">2.2</span> <span class="toctext">Header 2.2</span></a></li>
8536 <h1><span class="mw-headline" id="Header_1">Header 1</span> </h1>
8537 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span> </h2>
8538 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span> </h2>
8539 <h1><span class="mw-headline" id="Header_2">Header 2</span> </h1>
8540 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span> </h2>
8541 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span> </h2>
8546 BUG 1219 URL next to image (broken)
8548 http://example.com[[Image:foobar.jpg]]
8550 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8555 Bug 1186 news: in the middle of text
8557 http://en.wikinews.org/wiki/Wikinews:Workplace
8559 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
8565 Namespaced link must have a title
8574 Namespaced link must have a title (bad fragment version)
8576 [[Project:#fragment]]
8578 <p>[[Project:#fragment]]
8584 ### HTML tags and HTML attributes
8588 div with no attributes
8590 <div>HTML rocks</div>
8592 <div>HTML rocks</div>
8597 div with double-quoted attribute
8599 <div id="rock">HTML rocks</div>
8601 <div id="rock">HTML rocks</div>
8606 div with single-quoted attribute
8608 <div id='rock'>HTML rocks</div>
8610 <div id="rock">HTML rocks</div>
8615 div with unquoted attribute
8617 <div id=rock>HTML rocks</div>
8619 <div id="rock">HTML rocks</div>
8624 div with illegal double attributes
8626 <div id="a" id="b">HTML rocks</div>
8628 <div id="b">HTML rocks</div>
8632 # FIXME: produce empty string instead of "class" in the PHP parser, following
8635 div with empty attribute value, space before equals
8639 <div class =>HTML rocks</div>
8641 <div class="">HTML rocks</div>
8645 # The PHP parser escapes the opening brace to { for some reason, so
8646 # disabled this test for it.
8648 div with braces in attribute value
8652 <div title="{}">Foo</div>
8654 <div title="{}">Foo</div>
8657 # This it very inconsistent in the PHP parser: it returns
8658 # class="class" if there is a space between the name and the equal sign (see
8659 # 'div with empty attribute value, space before equals'), but strips the
8660 # attribute completely if the space is missing. We hope that not much content
8661 # depends on this, so are implementing the behavior below in Parsoid for
8662 # consistencies' sake. Disabled for the PHP parser.
8663 # FIXME: fix this behavior in the PHP parser?
8665 div with empty attribute value, no space before equals
8669 <div class=>HTML rocks</div>
8671 <div class="">HTML rocks</div>
8676 HTML multiple attributes correction
8678 <p class="error" class="awesome">Awesome!</p>
8680 <p class="awesome">Awesome!</p>
8685 Table multiple attributes correction
8688 !+ class="error" class="awesome"| status
8693 <th class="awesome"> status
8701 <DIV ID="x">HTML ROCKS</DIV>
8703 <div id="x">HTML ROCKS</div>
8708 Non-ASCII pseudo-tags are rendered as text
8717 Pseudo-tag with URL 'name' renders as url link
8719 <http://example.com/>
8721 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
8726 text with amp in the middle of nowhere
8730 <p>Remember AT&T?
8735 text with character entity: eacute
8737 I always thought é was a cute letter.
8739 <p>I always thought é was a cute letter.
8744 text with entity-escaped character entity-like string: eacute
8746 I always thought &eacute; was a cute letter.
8748 <p>I always thought &eacute; was a cute letter.
8753 text with undefined character entity: xacute
8755 I always thought &xacute; was a cute letter.
8757 <p>I always thought &xacute; was a cute letter.
8769 [[Media:Foobar.jpg]]
8771 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
8776 Media link with text
8778 [[Media:Foobar.jpg|A neat file to look at]]
8780 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
8784 # FIXME: this is still bad HTML tag nesting
8786 Media link with nasty text
8787 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
8789 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
8791 <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>
8796 Media link to nonexistent file (bug 1702)
8798 [[Media:No such.jpg]]
8800 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
8805 Image link to nonexistent file (bug 1850 - good)
8807 [[Image:No such.jpg]]
8809 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
8814 :Image link to nonexistent file (bug 1850 - bad)
8816 [[:Image:No such.jpg]]
8818 <p><a href="/index.php?title=File:No_such.jpg&action=edit&redlink=1" class="new" title="File:No such.jpg (page does not exist)">Image:No such.jpg</a>
8825 Character reference normalization in link text (bug 1938)
8827 [[Main Page|this&that]]
8829 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
8836 Test for unicode normalization
8838 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
8842 (bug 19451) Links should refer to the normalized form.
8850 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8851 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8852 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8853 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8854 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8859 Empty attribute crash test (bug 2067)
8861 <font color="">foo</font>
8863 <p><font color="">foo</font>
8868 Empty attribute crash test single-quotes (bug 2067)
8870 <font color=''>foo</font>
8872 <p><font color="">foo</font>
8877 Attribute test: equals, then nothing
8879 <font color=>foo</font>
8886 Attribute test: unquoted value
8888 <font color=x>foo</font>
8890 <p><font color="x">foo</font>
8895 Attribute test: unquoted but illegal value (hash)
8897 <font color=#x>foo</font>
8899 <p><font color="#x">foo</font>
8904 Attribute test: no value
8906 <font color>foo</font>
8908 <p><font color="color">foo</font>
8913 Bug 2095: link with three closing brackets
8917 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8922 Bug 2095: link with pipe and three closing brackets
8926 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8931 Bug 2095: link with pipe and three closing brackets, version 2
8933 [[Main Page|[http://example.com/]]]
8935 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
8945 Template:Dangerous attribute
8947 " onmouseover="alert(document.cookie)
8951 Template:Dangerous style attribute
8953 border-size: expression(alert(document.cookie))
8959 <div style="float: right; {{{1}}}">Magic div</div>
8963 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
8965 <div title="{{test}}"></div>
8967 <div title="This is a test template"></div>
8972 Bug 2304: HTML attribute safety (dangerous template; 2309)
8974 <div title="{{dangerous attribute}}"></div>
8976 <div title=""></div>
8981 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8983 <div style="{{dangerous style attribute}}"></div>
8985 <div style="/* insecure input */"></div>
8990 Bug 2304: HTML attribute safety (safe parameter; 2309)
8992 {{div style|width: 200px}}
8994 <div style="float: right; width: 200px">Magic div</div>
8999 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9001 {{div style|width: expression(alert(document.cookie))}}
9003 <div style="/* insecure input */">Magic div</div>
9008 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9010 {{div style|"><script>alert(document.cookie)</script>}}
9012 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9017 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9019 {{div style|" ><script>alert(document.cookie)</script>}}
9021 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9026 Bug 2304: HTML attribute safety (link)
9028 <div title="[[Main Page]]"></div>
9030 <div title="[[Main Page]]"></div>
9035 Bug 2304: HTML attribute safety (italics)
9037 <div title="''foobar''"></div>
9039 <div title="''foobar''"></div>
9044 Bug 2304: HTML attribute safety (bold)
9046 <div title="'''foobar'''"></div>
9048 <div title="'''foobar'''"></div>
9054 Bug 2304: HTML attribute safety (ISBN)
9056 <div title="ISBN 1234567890"></div>
9058 <div title="ISBN 1234567890"></div>
9063 Bug 2304: HTML attribute safety (RFC)
9065 <div title="RFC 1234"></div>
9067 <div title="RFC 1234"></div>
9072 Bug 2304: HTML attribute safety (PMID)
9074 <div title="PMID 1234567890"></div>
9076 <div title="PMID 1234567890"></div>
9081 Bug 2304: HTML attribute safety (web link)
9083 <div title="http://example.com/"></div>
9085 <div title="http://example.com/"></div>
9090 Bug 2304: HTML attribute safety (named web link)
9092 <div title="[http://example.com/ link]"></div>
9094 <div title="[http://example.com/ link]"></div>
9099 Bug 3244: HTML attribute safety (extension; safe)
9101 <div style="<nowiki>background:blue</nowiki>"></div>
9103 <div style="background:blue"></div>
9108 Bug 3244: HTML attribute safety (extension; unsafe)
9110 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9112 <div style="/* insecure input */"></div>
9116 # More MSIE fun discovered by Tom Gilder
9119 MSIE CSS safety test: spurious slash
9121 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9123 <div style="/* insecure input */">evil</div>
9128 MSIE CSS safety test: hex code
9130 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9132 <div style="/* insecure input */">evil</div>
9137 MSIE CSS safety test: comment in url
9139 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9141 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
9146 MSIE CSS safety test: comment in expression
9148 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
9150 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
9156 Table attribute legitimate extension
9159 !+ style="<nowiki>color:blue</nowiki>"| status
9164 <th style="color:blue"> status
9170 Table attribute safety
9173 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
9178 <th style="/* insecure input */"> status
9184 CSS line continuation 1
9186 <div style="background-image: u\ rl(test.jpg);"></div>
9188 <div style="/* insecure input */"></div>
9193 CSS line continuation 2
9195 <div style="background-image: u\ rl(test.jpg); "></div>
9197 <div style="/* insecure input */"></div>
9208 Expansion of multi-line templates in attribute values (bug 6255)
9210 <div style="background: {{identity|#00FF00}}">-</div>
9212 <div style="background: #00FF00">-</div>
9218 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
9220 <div style="background:
9223 <div style="background: #00FF00">-</div>
9228 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
9230 <div style="background: #00FF00">-</div>
9232 <div style="background: #00FF00">-</div>
9237 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
9240 Parser hook: empty input
9253 Parser hook: empty input using terminated empty elements
9266 Parser hook: empty input using terminated empty elements (space before)
9279 Parser hook: basic input
9293 Parser hook: case insensitive
9307 Parser hook: case insensitive, redux
9320 Parser hook: nested tags
9324 <tag><tag></tag></tag>
9335 Parser hook: basic arguments
9337 <tag width=200 height = "100" depth = '50' square></tag>
9345 'square' => 'square',
9352 Parser hook: argument containing a forward slash (bug 5344)
9354 <tag filename='/tmp/bla'></tag>
9359 'filename' => '/tmp/bla',
9366 Parser hook: empty input using terminated empty elements (bug 2374)
9379 # </tag> should be output literally since there is no matching tag that begins it
9381 Parser hook: basic arguments using terminated empty elements (bug 2374)
9383 <tag width=200 height = "100" depth = '50' square/>
9393 'square' => 'square',
9402 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
9406 Parser hook: static parser hook not inside a comment
9408 <statictag>hello, world</statictag>
9409 <statictag action=flush/>
9417 Parser hook: static parser hook inside a comment
9419 <!-- <statictag>hello, world</statictag> -->
9420 <statictag action=flush/>
9426 # Nested template calls; this case was broken by Parser.php rev 1.506,
9430 Template:One-parameter
9432 (My parameter is: {{{1}}})
9436 Template:Map-one-parameter
9442 Nested template calls
9444 {{Map-one-parameter|One-parameter|param}}
9446 <p>(My parameter is: param)
9455 Sanitizer: Closing of open tags
9457 <s></s><table></table>
9459 <s></s><table></table>
9464 Sanitizer: Closing of open but not closed tags
9473 Sanitizer: Closing of closed but not open tags
9482 Sanitizer: Closing of closed but not open table tags
9484 Table not started</td></tr></table>
9486 <p>Table not started</td></tr></table>
9491 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
9493 <span id="æ: v">byte</span>[[#æ: v|backlink]]
9495 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
9500 Sanitizer: Validating the contents of the id attribute (bug 4515)
9506 Something, but definitely not <br id="9" />...
9510 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
9514 <br id="foo" /><br id="foo" />
9516 Something need to be done. foo-2 ?
9520 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
9523 <meta itemprop="hello" content="world">
9524 <meta http-equiv="refresh" content="5">
9525 <meta itemprop="hello" http-equiv="refresh" content="5">
9526 <link itemprop="hello" href="{{SERVER}}">
9527 <link rel="stylesheet" href="{{SERVER}}">
9528 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
9531 <div itemscope="itemscope">
9532 <p> <meta itemprop="hello" content="world" />
9533 <meta http-equiv="refresh" content="5">
9534 <meta itemprop="hello" content="5" />
9536 <link itemprop="hello" href="http://example.org" />
9537 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
9538 <link itemprop="hello" href="http://example.org" />
9544 Language converter: output gets cut off unexpectedly (bug 5757)
9548 this bit is safe: }-
9550 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
9552 then we get cut off here: }-
9554 all additional text is vanished
9556 <p>this bit is safe: }-
9557 </p><p>but if we add a conversion instance: xxx
9558 </p><p>then we get cut off here: }-
9559 </p><p>all additional text is vanished
9564 Self closed html pairs (bug 5487)
9567 <center><font id="bug" />Centered text</center>
9568 <div><font id="bug2" />In div text</div>
9570 <center><font id="bug" />Centered text</center>
9571 <div><font id="bug2" />In div text</div>
9580 Punctuation: nbsp before exclamation
9584 <p>C'est grave !
9589 Punctuation: CSS !important (bug 11874)
9591 <div style="width:50% !important">important</div>
9593 <div style="width:50% !important">important</div>
9598 Punctuation: CSS ! important (bug 11874; with space after)
9600 <div style="width:50% ! important">important</div>
9602 <div style="width:50% ! important">important</div>
9608 HTML bullet list, closed tags (bug 5497)
9623 HTML bullet list, unclosed tags (bug 5497)
9640 HTML ordered list, closed tags (bug 5497)
9655 HTML ordered list, unclosed tags (bug 5497)
9672 HTML nested bullet list, closed tags (bug 5497)
9697 HTML nested bullet list, open tags (bug 5497)
9722 HTML nested ordered list, closed tags (bug 5497)
9747 HTML nested ordered list, open tags (bug 5497)
9772 HTML ordered list item with parameters oddity
9774 <ol><li id="fragment">One</li></ol>
9776 <ol><li id="fragment">One</li></ol>
9781 bug 5918: autonumbering
9783 [http://first/] [http://second] [ftp://ftp]
9787 [mailto:enclosed@mail.tld With target]
9789 [mailto:enclosed@mail.tld]
9791 mailto:inline@mail.tld
9793 <p><a rel="nofollow" class="external autonumber" href="http://first/">[1]</a> <a rel="nofollow" class="external autonumber" href="http://second">[2]</a> <a rel="nofollow" class="external autonumber" href="ftp://ftp">[3]</a>
9794 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
9795 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
9796 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
9797 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
9803 # Security and HTML correctness
9804 # From Nick Jenkins' fuzz testing
9808 Fuzz testing: Parser13
9823 Fuzz testing: Parser14
9828 <h2><span class="mw-headline" id="onmouseover.3D">onmouseover=</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a>]</span></h2>
9829 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9831 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
9838 Fuzz testing: Parser14-table
9843 <h2><span class="mw-headline" id="a">a</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a>]</span></h2>
9844 <table style="__TOC__">
9850 # Known to produce bogus xml (extra </td>)
9852 Fuzz testing: Parser16
9872 Fuzz testing: Parser21
9875 ! irc://{{ftp://a" onmouseover="alert('hello world');"
9880 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
9890 Fuzz testing: Parser22
9892 http://===r:::https://b
9896 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9904 # Known to produce bad XML for now
9906 Fuzz testing: Parser24
9913 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9914 <br style="onmouseover='alert(document.cookie);' " />
9916 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9921 <u class="|">}}}} >
9922 <br style="onmouseover='alert(document.cookie);'" />
9924 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9933 # Note: the current result listed for this is not what the original one was,
9934 # but the original bug was JavaScript injection, which is fixed in any case.
9935 # It's not clear that the original result listed was any more correct than the
9936 # current one. Original result:
9939 # <li class="||">
9940 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9942 Fuzz testing: Parser25 (bug 6055)
9948 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
9950 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9955 Fuzz testing: URL adjacent extension (with space, clean)
9958 http://example.com <nowiki>junk</nowiki>
9960 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
9965 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
9968 http://example.com<nowiki>junk</nowiki>
9970 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
9975 Fuzz testing: URL adjacent extension (no space, dirty; pre)
9978 http://example.com<pre>junk</pre>
9980 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9985 Fuzz testing: image with bogus manual thumbnail
9987 [[Image:foobar.jpg|thumbnail= ]]
9989 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9994 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9996 <pre dir=" "></pre>
9998 <pre dir=" "></pre>
10003 Parsing optional HTML elements (Bug 6171)
10008 <td> Some tabular data</td>
10009 <td> More tabular data ...
10010 <td> And yet som tabular data</td>
10016 <td> Some tabular data</td>
10017 <td> More tabular data ...
10018 </td><td> And yet som tabular data</td>
10025 Correct handling of <td>, <tr> (Bug 6171)
10030 <td> Some tabular data</td>
10031 <td> More tabular data ...</td>
10032 <td> And yet som tabular data</td>
10038 <td> Some tabular data</td>
10039 <td> More tabular data ...</td>
10040 <td> And yet som tabular data</td>
10048 Parsing crashing regression (fr:JavaScript)
10052 <p></body></x>
10057 Inline wiki vs wiki block nesting
10063 <p><b>Bold paragraph</b>
10064 </p><p>New wiki paragraph
10069 Inline HTML vs wiki block nesting
10077 <p><b>Bold paragraph</b>
10078 </p><p>New wiki paragraph
10082 # Original result was this:
10083 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10085 # While that might be marginally more intuitive, maybe, the six-apostrophe
10086 # construct is clearly pathological and the result stated here (which is what
10087 # the parser actually does) is about as reasonable as anything.
10089 Mixing markup for italics and bold
10092 '''bold''''''bold''bolditalics'''''
10094 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10102 Article for special page transclusion test
10106 Special page transclusion
10109 {{Special:Prefixindex/Xyzzyx}}
10111 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10116 Special page transclusion twice (bug 5021)
10119 {{Special:Prefixindex/Xyzzyx}}
10120 {{Special:Prefixindex/Xyzzyx}}
10122 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10123 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10128 Transclusion of default MediaWiki message
10130 {{MediaWiki:Mainpage}}
10137 Transclusion of nonexistent MediaWiki message
10139 {{MediaWiki:Mainpagexxx}}
10141 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
10146 Transclusion of MediaWiki message with underscore
10148 {{MediaWiki:history_short}}
10155 Transclusion of MediaWiki message with space
10157 {{MediaWiki:history short}}
10164 Invalid header with following text
10174 Section extraction test (section 0)
10194 Section extraction test (section 1)
10216 Section extraction test (section 2)
10237 Section extraction test (section 3)
10257 Section extraction test (section 4)
10281 Section extraction test (section 5)
10301 Section extraction test (section 6)
10322 Section extraction test (section 7)
10342 Section extraction test (section 8)
10362 Section extraction test (section 9)
10383 Section extraction test (section 10)
10403 Section extraction test (nonexistent section 11)
10422 Section extraction test with bogus heading (section 1)
10427 ==bogus== not a legal section
10431 ==bogus== not a legal section
10435 Section extraction test with bogus heading (section 2)
10440 ==bogus== not a legal section
10447 Section extraction test with comment after heading (section 1)
10459 Section extraction test with comment after heading (section 2)
10471 Section extraction test with bogus <nowiki> heading (section 1)
10476 ==bogus== <nowiki>not a legal section</nowiki>
10480 ==bogus== <nowiki>not a legal section</nowiki>
10484 Section extraction test with bogus <nowiki> heading (section 2)
10489 ==bogus== <nowiki>not a legal section</nowiki>
10496 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
10497 # instead of respecting commented sections
10499 Section extraction prefixed by comment (section 1)
10510 Section extraction prefixed by comment (section 2)
10521 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
10522 # instead of respecting HTML-style headings
10524 Section extraction, mixed wiki and html (section 1)
10540 Section extraction, mixed wiki and html (section 2)
10556 # Formerly testing for bug 3342
10558 Section extraction, heading surrounded by <noinclude>
10562 <noinclude>==unmarked==</noinclude>
10568 # Test behavior of bug 19910
10570 Sectiion with all-equals
10575 The line above must have a trailing space
10578 But just in case it doesn't...
10582 But just in case it doesn't...
10586 Section replacement test (section 0)
10617 Section replacement test (section 1)
10646 Section replacement test (section 2)
10676 Section replacement test (section 3)
10707 Section replacement test (section 4)
10734 Section replacement test (section 5)
10765 Section replacement test (section 6)
10795 Section replacement test (section 7)
10826 Section replacement test (section 8)
10857 Section replacement test (section 9)
10886 Section replacement test (section 10)
10916 Section replacement test with initial whitespace (bug 13728)
10920 Preformatted initial line
10924 Preformatted initial line
10931 Section extraction, heading followed by pre with 20 spaces (bug 6398)
10943 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
10956 Section extraction, <pre> around bogus header (bug 10309)
10973 Section replacement, <pre> around bogus header (bug 10309)
10975 noxml replace=2,"xxx"
10996 Handling of 
 in URLs
11000 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11007 5 quotes, code coverage +1 line (php)
11014 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11016 5 quotes, code coverage +1 line (parsoid)
11022 <p><i><b></b></i></p>
11026 Special:Search page linking.
11030 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11042 * {{ROOTPAGENAMEE}}
11044 * {{BASEPAGENAMEE}}
11046 * {{TALKPAGENAMEE}}
11047 * {{SUBJECTPAGENAME}}
11048 * {{SUBJECTPAGENAMEE}}
11054 * {{SUBJECTSPACEE}}
11055 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11057 <ul><li> Parser test
11058 </li><li> Parser test
11059 </li><li> Parser test
11060 </li><li> Parser_test
11061 </li><li> Parser test
11062 </li><li> Parser_test
11063 </li><li> Parser test
11064 </li><li> Parser_test
11065 </li><li> Talk:Parser test
11066 </li><li> Talk:Parser_test
11067 </li><li> Parser test
11068 </li><li> Parser_test
11075 </li><li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
11079 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11089 image4 |300px| centre
11090 image5.svg| http://///////
11095 <ul class="gallery">
11096 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11097 <div style="height: 150px;">Image1.png</div>
11098 <div class="gallerytext">
11101 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11102 <div style="height: 150px;">Image2.gif</div>
11103 <div class="gallerytext">
11108 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11109 <div style="height: 150px;">Image3</div>
11110 <div class="gallerytext">
11113 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11114 <div style="height: 150px;">Image4</div>
11115 <div class="gallerytext">
11120 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11121 <div style="height: 150px;">Image5.svg</div>
11122 <div class="gallerytext">
11123 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11127 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11128 <div style="height: 150px;">* image6</div>
11129 <div class="gallerytext">
11137 Gallery (with options)
11139 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11140 File:Nonexistant.jpg|caption
11141 File:Nonexistant.jpg
11142 image:foobar.jpg|some '''caption''' [[Main Page]]
11144 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
11147 <ul class="gallery" style="max-width: 226px;_width: 226px;">
11148 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
11149 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11150 <div style="height: 70px;">Nonexistant.jpg</div>
11151 <div class="gallerytext">
11156 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11157 <div style="height: 70px;">Nonexistant.jpg</div>
11158 <div class="gallerytext">
11161 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11162 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
11163 <div class="gallerytext">
11164 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11168 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11169 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
11170 <div class="gallerytext">
11173 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11174 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="This is a foo-bar." src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
11175 <div class="gallerytext">
11185 Gallery with wikitext inside caption
11188 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
11189 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
11192 <ul class="gallery">
11193 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11194 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
11195 <div class="gallerytext">
11196 <p><a href="/wiki/File:Foobar.jpg" class="image" title="desc"><img alt="inneralt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/20px-Foobar.jpg" width="20" height="2" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/30px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/40px-Foobar.jpg 2x" /></a>
11200 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11201 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
11202 <div class="gallerytext">
11203 <p>This is a test template
11212 gallery (with showfilename option)
11214 <gallery showfilename>
11215 File:Nonexistant.jpg|caption
11216 File:Nonexistant.jpg
11217 image:foobar.jpg|some '''caption''' [[Main Page]]
11221 <ul class="gallery">
11222 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11223 <div style="height: 150px;">Nonexistant.jpg</div>
11224 <div class="gallerytext">
11225 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11230 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11231 <div style="height: 150px;">Nonexistant.jpg</div>
11232 <div class="gallerytext">
11233 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11237 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11238 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
11239 <div class="gallerytext">
11240 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11241 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11245 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11246 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
11247 <div class="gallerytext">
11248 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11257 Gallery (with namespace-less filenames)
11260 File:Nonexistant.jpg
11266 <ul class="gallery">
11267 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11268 <div style="height: 150px;">Nonexistant.jpg</div>
11269 <div class="gallerytext">
11272 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11273 <div style="height: 150px;">Nonexistant.jpg</div>
11274 <div class="gallerytext">
11277 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11278 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
11279 <div class="gallerytext">
11282 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11283 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
11284 <div class="gallerytext">
11292 HTML Hex character encoding (spells the word "JavaScript")
11294 JavaScript
11296 <p>JavaScript
11301 HTML Hex character encoding bogus encoding (bug 26437 regression check)
11305 <p>&#xsee;&#XSEE;
11310 HTML Hex character encoding mixed case
11319 __FORCETOC__ override
11331 ISBN 978-0-1234-56 789
11333 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
11338 ISBN followed by 5 spaces
11349 ISBN ISBN 1234567890
11351 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11356 Bug 22905: <abbr> followed by ISBN followed by </a>
11358 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
11360 <p><abbr>(fr)</abbr> <a href="/wiki/Special:BookSources/2753300917" class="internal mw-magiclink-isbn">ISBN 2753300917</a> <a rel="nofollow" class="external text" href="http://www.example.com">example.com</a>
11369 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
11374 Double RFC with a wiki link
11378 <p>RFC <a href="/index.php?title=RFC_1234&action=edit&redlink=1" class="new" title="RFC 1234 (page does not exist)">RFC 1234</a>
11387 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
11392 Centre-aligned image
11394 [[Image:foobar.jpg|centre]]
11396 <div class="center"><div class="floatnone"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div></div>
11403 [[Image:foobar.jpg|none]]
11405 <div class="floatnone"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
11410 Width + Height sized image (using px) (height is ignored)
11412 [[Image:foobar.jpg|640x480px]]
11414 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
11419 Width-sized image (using px, no following whitespace)
11421 [[Image:foobar.jpg|640px]]
11423 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
11428 Width-sized image (using px, with following whitespace - test regression from r39467)
11430 [[Image:foobar.jpg|640px ]]
11432 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
11437 Width-sized image (using px, with preceding whitespace - test regression from r39467)
11439 [[Image:foobar.jpg| 640px]]
11441 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
11446 Another italics / bold test
11454 # Note the results may be incorrect, as parserTest output included this:
11455 # XML error: Mismatched tag at byte 6120:
11456 # ...<dd> </dt></dl> </dd...
11464 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
11475 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
11477 Images with the "|" character in the comment
11479 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
11481 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>An <a rel="nofollow" class="external text" href="http://test/?param1=%7Cleft%7C&param2=%7Cx">external</a> URL</div></div></div>
11486 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
11488 <html><script>alert(1);</script></html>
11490 <p><html><script>alert(1);</script></html>
11495 HTML with raw HTML ($wgRawHtml==true)
11499 <html><script>alert(1);</script></html>
11501 <p><script>alert(1);</script>
11506 Parents of subpages, one level up
11508 subpage title=[[Subpage test/L1/L2/L3]]
11512 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (page does not exist)">L2</a>
11518 Parents of subpages, one level up, not named
11520 subpage title=[[Subpage test/L1/L2/L3]]
11524 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (page does not exist)">Subpage test/L1/L2</a>
11531 Parents of subpages, two levels up
11533 subpage title=[[Subpage test/L1/L2/L3]]
11539 <p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">L1</a>2
11540 </p><p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">L1l</a>
11545 Parents of subpages, two levels up, without trailing slash or name.
11547 subpage title=[[Subpage test/L1/L2/L3]]
11556 Parents of subpages, two levels up, with lots of extra trailing slashes.
11558 subpage title=[[Subpage test/L1/L2/L3]]
11562 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
11567 Definition list code coverage
11573 <dl><dt> title  </dt><dd> def
11574 </dd><dt> title </dt><dd> def
11575 </dd><dt>title</dt><dd> def
11581 Don't fall for the self-closing div
11583 <div>hello world</div/>
11585 <div>hello world</div>
11594 <p>[[:Template:Msg]]
11603 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
11607 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
11609 Always escape literal '>' in output, not just after '<'
11623 <p>This is a test template
11624 This is a test template
11636 Inclusion of !userCanEdit() content
11640 <h2><span class="mw-headline" id="header">header</span> <span class="mw-editsection">[<a href="/index.php?title=MediaWiki:Fake&action=edit&section=T-1" title="MediaWiki:Fake">edit</a>]</span></h2>
11646 Out-of-order TOC heading levels
11655 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11657 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
11659 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
11660 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
11663 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
11665 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
11666 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
11671 <h2><span class="mw-headline" id="2">2</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a>]</span></h2>
11672 <h6><span class="mw-headline" id="6">6</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a>]</span></h6>
11673 <h3><span class="mw-headline" id="3">3</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a>]</span></h3>
11674 <h1><span class="mw-headline" id="1">1</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a>]</span></h1>
11675 <h5><span class="mw-headline" id="5">5</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: 5">edit</a>]</span></h5>
11676 <h2><span class="mw-headline" id="2_2">2</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a>]</span></h2>
11682 ISBN with a dummy number
11692 ISBN with space-delimited number
11696 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
11702 ISBN with multiple spaces, no number
11721 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11722 </p><p>ISBN 12345678901
11728 ISBN with trailing year (bug 8110)
11730 ISBN 1-234-56789-0 - 2006
11732 ISBN 1 234 56789 0 - 2006
11734 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
11735 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
11743 {{anchorencode:foo bar©#%n}}
11745 <p>foo_bar.C2.A9.23.25n
11750 anchorencode trims spaces
11752 {{anchorencode: __pretty__please__}}
11759 anchorencode deals with links
11761 {{anchorencode: [[hello|world]] [[hi]]}}
11768 anchorencode deals with templates
11770 {{anchorencode: {{Foo}} }}
11777 anchorencode encodes like the TOC generator: (bug 18431)
11779 === _ +:.3A%3A&&]] ===
11780 {{anchorencode: _ +:.3A%3A&&]] }}
11783 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span> </h3>
11784 <p>.2B:.3A.253A.26.26.5D.5D
11788 # Expected output in the following test is not necessarily expected (there
11789 # should probably be <p> tags inside the <blockquote> in the output) -- it's
11790 # only testing for well-formedness.
11792 Bug 6200: blockquotes and paragraph formatting
11812 Bug 8293: Use of center tag ruins paragraph formatting
11833 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
11837 <span><s>x</span></s>
11839 <p><span><s>x</span></s></span>
11844 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
11848 <span><s>x</span></s>
11850 <p><span><s>x</s></span><s></s>
11855 ### Language variants related tests
11858 Self-link in language variants
11860 title=[[Dunav]] language=sr
11862 Both [[Dunav]] and [[Дунав]] are names for this river.
11864 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
11875 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
11877 title=[[Duna]] language=sr
11879 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
11881 <p><a href="/wiki/%D0%94%D1%83%D0%BD%D0%B0" title="Дуна">Дуна</a> is not a self-link while <strong class="selflink">Duna</strong> and <strong class="selflink">Dуна</strong> are still self-links.
11886 Link to pages in language variants
11890 Main Page can be written as [[Маин Паге]]
11892 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
11898 Multiple links to pages in language variants
11902 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
11904 <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>.
11910 Simple template in language variants
11916 <p>This is a test template
11922 Template with explicit namespace in language variants
11928 <p>This is a test template
11934 Basic test for template parameter in language variants
11938 {{парамтест|param=foo}}
11940 <p>This is a test template with parameter foo
11946 Simple category in language variants
11950 [[Category:МедиаWики Усер'с Гуиде]]
11952 <a href="/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%98%D0%B0:MediaWiki_User%27s_Guide" title="Категорија:MediaWiki User's Guide">MediaWiki User's Guide</a>
11969 Don't convert blue categorylinks to another variant (bug 33210)
11973 [[A]][[Category:分类]]
11975 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
11980 Stripping -{}- tags (language variants)
11984 Latin proverb: -{Ne nuntium necare}-
11986 <p>Latin proverb: Ne nuntium necare
11992 Prevent conversion with -{}- tags (language variants)
11994 language=sr variant=sr-ec
11996 Latinski: -{Ne nuntium necare}-
11998 <p>Латински: Ne nuntium necare
12004 Prevent conversion of text with -{}- tags (language variants)
12006 language=sr variant=sr-ec
12008 Latinski: -{Ne nuntium necare}-
12010 <p>Латински: Ne nuntium necare
12016 Prevent conversion of links with -{}- tags (language variants)
12018 language=sr variant=sr-ec
12022 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12028 -{}- tags within headlines (within html for parserConvert())
12030 language=sr variant=sr-ec
12034 <h2><span class="mw-headline" id="-.7BNaslov.7D-">Naslov</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Уредите одељак „Naslov“">уреди</a>]</span></h2>
12040 Explicit definition of language variant alternatives
12042 language=zh variant=zh-tw
12044 -{zh:China;zh-tw:Taiwan}-, not China
12046 <p>Taiwan, not China
12052 Conversion around HTML tags
12054 language=sr variant=sr-ec
12056 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12057 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12060 <span title="ЛаCтин">ски</span>
12066 Explicit session-wise language variant mapping (A flag and - flag)
12068 language=zh variant=zh-tw
12070 Taiwan is not China.
12071 But -{A|zh:China;zh-tw:Taiwan}- is China,
12072 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12073 and -{China}- is China.
12075 <p>Taiwan is not China.
12076 But Taiwan is Taiwan,
12077 (This should be stripped!)
12078 and China is China.
12083 Explicit session-wise language variant mapping (H flag for hide)
12085 language=zh variant=zh-tw
12087 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12090 <p>(This should be stripped!)
12096 Adding explicit conversion rule for title (T flag)
12098 language=zh variant=zh-tw showtitle
12100 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12103 <p>Should be stripped!
12108 Testing that changing the language variant here in the tests actually works
12110 language=zh variant=zh showtitle
12112 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12115 <p>Should be stripped!
12120 Recursive conversion of alt and title attrs shouldn't clear converter state
12122 language=zh variant=zh-cn showtitle
12124 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
12125 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
12129 Should be stripped<span title="Exclamation">!</span>
12134 Bug 24072: more test on conversion rule for title
12136 language=zh variant=zh-tw showtitle
12138 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12139 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
12142 <p>This should be stripped!
12143 This won't take interferes with the title rule.
12148 Partly disable title conversion if variant == main language code
12150 language=zh variant=zh title=[[ZH]] showtitle
12152 -{T|zh-cn:CN;zh-tw:TW}-
12160 Partly disable title conversion if variant == main language code, more
12162 language=zh variant=zh title=[[ZH]] showtitle
12172 Raw output of variant escape tags (R flag)
12174 language=zh variant=zh-tw
12176 Raw: -{R|zh:China;zh-tw:Taiwan}-
12178 <p>Raw: zh:China;zh-tw:Taiwan
12183 Nested using of manual convert syntax
12185 language=zh variant=zh-hk
12187 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
12189 <p>Nested: Hello Hong Kong!
12194 Proper conversion of text in external links
12196 language=sr variant=sr-ec
12198 http://www.google.com
12199 gopher://www.google.com
12200 [http://www.google.com http://www.google.com]
12201 [gopher://www.google.com gopher://www.google.com]
12202 [https://www.google.com irc://www.google.com]
12203 [ftp://www.google.com www.google.com/ftp://dir]
12204 [//www.google.com www.google.com]
12206 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12207 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12208 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12209 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12210 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
12211 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
12212 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
12217 Do not convert roman numbers to language variants
12219 language=sr variant=sr-ec
12223 <p>Фридрих IV је цар.
12228 Unclosed language converter markup "-{"
12239 Don't convert raw rule "-{R|=>}-" to "=>"
12256 Bug 529: Uncovered bullet
12266 # Plain MediaWiki does not remove empty lists, but tidy actually does.
12267 # Templates in Wikipedia rely on this behavior, as tidy has always been
12268 # enabled there. These tests are normally run *without* tidy, so specify the
12269 # full output here.
12270 # To test realistic parsing behavior, apply a tidy-like transformation to both
12271 # the expected output and your parser's output.
12273 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
12275 ******* Foo {{bullet}}
12277 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
12290 Bug 529: Uncovered table already at line-start
12313 Bug 529: Uncovered bullet in parser function result
12315 * Foo {{lc:{{bullet}} }}
12324 Bug 5678: Double-parsed template argument
12326 {{lc:{{{1}}}|hello}}
12333 Bug 5678: Double-parsed template invocation
12335 {{lc:{{paramtest {{!}} param = hello }} }}
12337 <p>{{paramtest | param = hello }}
12342 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
12345 title=[[Main Page]]
12347 {{PRVNÍVELKÉ:ěščř}}
12348 {{prvnívelké:ěščř}}
12368 Morwen/13: Unclosed link followed by heading
12375 <h2><span class="mw-headline" id="heading">heading</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span></h2>
12380 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
12387 <h1><span class="mw-headline" id="heading">heading</span> </h1>
12392 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
12399 <h2><span class="mw-headline" id="heading">heading</span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span></h2>
12414 Paragraphs inside divs (no extra line breaks)
12426 Paragraphs inside divs (extra line break on open)
12441 Paragraphs inside divs (extra line break on close)
12456 Paragraphs inside divs (extra line break on open and close)
12473 Nesting tags, paragraphs on lines which begin with <div>
12477 <div></div><strong>A
12486 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
12488 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
12492 <blockquote>Line one
12494 Line two</blockquote>
12496 <blockquote>Line one
12497 Line two</blockquote>
12502 Bug 6200: paragraphs inside blockquotes (extra line break on open)
12509 Line two</blockquote>
12514 Line two</blockquote>
12519 Bug 6200: paragraphs inside blockquotes (extra line break on close)
12523 <blockquote>Line one
12528 <blockquote>Line one
12536 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
12555 Paragraphs inside blockquotes/divs (no extra line breaks)
12557 <blockquote><div>Line one
12559 Line two</div></blockquote>
12561 <blockquote><div>Line one
12562 Line two</div></blockquote>
12567 Paragraphs inside blockquotes/divs (extra line break on open)
12572 Line two</div></blockquote>
12577 Line two</div></blockquote>
12582 Paragraphs inside blockquotes/divs (extra line break on close)
12584 <blockquote><div>Line one
12587 </div></blockquote>
12589 <blockquote><div>Line one
12592 </div></blockquote>
12597 Paragraphs inside blockquotes/divs (extra line break on open and close)
12603 </div></blockquote>
12609 </div></blockquote>
12614 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
12616 wgLinkHolderBatchSize=0
12622 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
12623 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
12624 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
12629 Free external link invading image caption
12631 [[Image:Foobar.jpg|thumb|http://x|hello]]
12633 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>hello</div></div></div>
12638 Bug 15196: localised external link numbers
12642 [http://en.wikipedia.org/]
12644 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
12649 Multibyte character in padleft
12651 {{padleft:-Hello|7|Æ}}
12658 Multibyte character in padright
12660 {{padright:Hello-|7|Æ}}
12667 formatdate parser function
12669 {{#formatdate:2009-03-24}}
12671 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
12676 formatdate parser function, with default format
12678 {{#formatdate:2009-03-24|mdy}}
12680 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
12685 Spacing of numbers in formatted dates
12687 {{#formatdate:January 15}}
12689 <p><span class="mw-formatted-date" title="01-15">January 15</span>
12694 formatdate parser function, with default format and on a page of which the content language is always English and different from the wiki content language
12696 language=nl title=[[MediaWiki:Common.css]]
12698 {{#formatdate:2009-03-24|dmy}}
12700 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
12713 Edit comment with link
12717 I like the [[Main Page]] a lot
12719 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
12723 Edit comment with link and link text
12727 I like the [[Main Page|best pages]] a lot
12729 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
12733 Edit comment with link and link text with suffix
12737 I like the [[Main Page|best page]]s a lot
12739 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
12743 Edit comment with section link (non-local, eg in history list)
12745 comment title=[[Main Page]]
12747 /* External links */ removed bogus entries
12749 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12753 Edit comment with section link and text before it (non-local, eg in history list)
12755 comment title=[[Main Page]]
12757 pre-comment text /* External links */ removed bogus entries
12759 pre-comment text - <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12763 Edit comment with section link (local, eg in diff view)
12765 comment local title=[[Main Page]]
12767 /* External links */ removed bogus entries
12769 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12773 Edit comment with subpage link (bug 14080)
12777 title=[[Subpage test]]
12779 Poked at a [[/subpage]] here...
12781 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
12785 Edit comment with subpage link and link text (bug 14080)
12789 title=[[Subpage test]]
12791 Poked at a [[/subpage|neat little page]] here...
12793 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
12797 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
12800 title=[[Subpage test]]
12802 Poked at a [[/subpage]] here...
12804 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
12808 Edit comment with bare anchor link (local, as on diff)
12812 title=[[Main Page]]
12816 <a href="#section">#section</a>
12820 Edit comment with bare anchor link (non-local, as on history)
12823 title=[[Main Page]]
12827 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
12831 Anchor starting with underscore
12835 <p><a href="#_ref">One</a>
12840 Id starting with underscore
12842 <div id="_ref"></div>
12844 <div id="_ref"></div>
12849 Space normalisation on autocomment (bug 22784)
12852 title=[[Main Page]]
12854 /* __hello__world__ */
12856 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
12860 percent-encoding and + signs in comments (Bug 26410)
12864 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
12866 <a href="/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">ABC3D% ++</a> <a href="/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">+%20</a>
12870 Bad images - basic functionality
12879 Bad images - bug 16039: text after bad image disappears
12893 Verify that displaytitle works (bug #22501) no displaytitle
12897 wgAllowDisplayTitle=true
12898 wgRestrictDisplayTitle=false
12900 this is not the the title
12903 <p>this is not the the title
12908 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
12913 wgAllowDisplayTitle=true
12914 wgRestrictDisplayTitle=false
12916 this is not the the title
12917 {{DISPLAYTITLE:whatever}}
12920 <p>this is not the the title
12925 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
12930 wgAllowDisplayTitle=true
12931 wgRestrictDisplayTitle=true
12933 this is not the the title
12934 {{DISPLAYTITLE:whatever}}
12937 <p>this is not the the title
12942 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
12947 wgAllowDisplayTitle=true
12948 wgRestrictDisplayTitle=true
12950 this is not the the title
12951 {{DISPLAYTITLE:screen}}
12954 <p>this is not the the title
12959 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
12964 wgAllowDisplayTitle=false
12966 this is not the the title
12967 {{DISPLAYTITLE:screen}}
12970 <p>this is not the the title
12971 <a href="/index.php?title=Template:DISPLAYTITLE:screen&action=edit&redlink=1" class="new" title="Template:DISPLAYTITLE:screen (page does not exist)">Template:DISPLAYTITLE:screen</a>
12976 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
12981 wgAllowDisplayTitle=false
12983 this is not the the title
12986 <p>this is not the the title
12991 preload: check <noinclude> and <includeonly>
12995 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13001 preload: check <onlyinclude>
13005 Goodbye <onlyinclude>Hello world</onlyinclude>
13011 preload: can pass tags through if we want to
13015 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13017 <includeonly>Hello world</includeonly>
13021 preload: check that it doesn't try to do tricks
13025 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13027 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13031 Play a bit with r67090 and bug 3158
13035 <div style="width:50% !important"> </div>
13036 <div style="width:50% !important"> </div>
13037 <div style="width:50% !important"> </div>
13038 <div style="border : solid;"> </div>
13040 <div style="width:50% !important"> </div>
13041 <div style="width:50% !important"> </div>
13042 <div style="width:50% !important"> </div>
13043 <div style="border : solid;"> </div>
13048 HTML5 data attributes
13050 <span data-foo="bar">Baz</span>
13051 <p data-abc-def_hij="">Quuz</p>
13053 <p><span data-foo="bar">Baz</span>
13055 <p data-abc-def_hij="">Quuz</p>
13060 percent-encoding and + signs in internal links (Bug 26410)
13062 [[User:+%]] [[Page+title%]]
13063 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
13064 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
13065 [[%33%45]] [[%33%45+]]
13067 <p><a href="/index.php?title=User:%2B%25&action=edit&redlink=1" class="new" title="User:+% (page does not exist)">User:+%</a> <a href="/index.php?title=Page%2Btitle%25&action=edit&redlink=1" class="new" title="Page+title% (page does not exist)">Page+title%</a>
13068 <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%20</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+ </a> <a href="/index.php?title=%25%2Br&action=edit&redlink=1" class="new" title="%+r (page does not exist)">%+r</a>
13069 <a href="/index.php?title=%25&action=edit&redlink=1" class="new" title="% (page does not exist)">%</a> <a href="/index.php?title=%2B&action=edit&redlink=1" class="new" title="+ (page does not exist)">+</a> <a href="/index.php?title=Special:Upload&wpDestFile=%25%2Babc9" class="new" title="File:%+abc9">bar</a>
13070 <a href="/index.php?title=3E&action=edit&redlink=1" class="new" title="3E (page does not exist)">3E</a> <a href="/index.php?title=3E%2B&action=edit&redlink=1" class="new" title="3E+ (page does not exist)">3E+</a>
13075 Special characters in embedded file links (bug 27679)
13077 [[File:Contains & ampersand.jpg]]
13078 [[File:Does not exist.jpg|Title with & ampersand]]
13080 <p><a href="/index.php?title=Special:Upload&wpDestFile=Contains_%26_ampersand.jpg" class="new" title="File:Contains & ampersand.jpg">File:Contains & ampersand.jpg</a>
13081 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
13087 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
13089 Text's been normalized?
13091 <p>Text's been normalized?
13096 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
13098 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
13100 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
13105 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
13107 [http://www.example.org/ ideograms]
13109 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
13114 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
13116 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
13118 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
13142 Bug 31098 Template which includes system messages which includes the template
13146 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13147 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13152 Bug31490 Turkish: ucfirst 'blah'
13163 Bug31490 Turkish: ucfirst 'ix'
13174 Bug31490 Turkish: lcfirst 'BLAH'
13185 Bug31490 Turkish: ucfırst (with a dotless i)
13191 <p><a href="/index.php?title=%C5%9Eablon:Ucf%C4%B1rst:blah&action=edit&redlink=1" class="new" title="Şablon:Ucfırst:blah (sayfa mevcut değil)">Şablon:Ucfırst:blah</a>
13196 Bug31490 ucfırst (with a dotless i) with English language
13202 <p><a href="/index.php?title=Template:Ucf%C4%B1rst:blah&action=edit&redlink=1" class="new" title="Template:Ucfırst:blah (page does not exist)">Template:Ucfırst:blah</a>
13207 Bug 26375: TOC with italics
13209 title=[[Main Page]]
13212 == ''Lost'' episodes ==
13214 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13216 <li class="toclevel-1 tocsection-1"><a href="#Lost_episodes"><span class="tocnumber">1</span> <span class="toctext"><i>Lost</i> episodes</span></a></li>
13219 <h2><span class="mw-headline" id="Lost_episodes"><i>Lost</i> episodes</span> <span class="mw-editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Lost episodes">edit</a>]</span></h2>
13224 Bug 26375: TOC with bold
13226 title=[[Main Page]]
13229 == '''should be bold''' then normal text ==
13231 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13233 <li class="toclevel-1 tocsection-1"><a href="#should_be_bold_then_normal_text"><span class="tocnumber">1</span> <span class="toctext"><b>should be bold</b> then normal text</span></a></li>
13236 <h2><span class="mw-headline" id="should_be_bold_then_normal_text"><b>should be bold</b> then normal text</span> <span class="mw-editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: should be bold then normal text">edit</a>]</span></h2>
13241 Bug 33845: Headings become cursive in TOC when they contain an image
13243 title=[[Main Page]]
13246 == Image [[Image:foobar.jpg]] ==
13248 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13250 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
13253 <h2><span class="mw-headline" id="Image">Image <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></span> <span class="mw-editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Image">edit</a>]</span></h2>
13258 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
13260 title=[[Main Page]]
13263 == <blockquote>Quote</blockquote> ==
13265 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13267 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
13270 <h2><span class="mw-headline" id="Quote"><blockquote>Quote</blockquote></span> <span class="mw-editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Quote">edit</a>]</span></h2>
13275 Unclosed tags in TOC
13277 title=[[Main Page]]
13281 <small>Hanc marginis exiguitas non caperet.</small>
13284 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13286 <li class="toclevel-1 tocsection-1"><a href="#Proof:_2_.3C_3"><span class="tocnumber">1</span> <span class="toctext">Proof: 2 < 3</span></a></li>
13289 <h2><span class="mw-headline" id="Proof:_2_.3C_3">Proof: 2 < 3</span> <span class="mw-editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Proof: 2 < 3">edit</a>]</span></h2>
13290 <p><small>Hanc marginis exiguitas non caperet.</small>
13296 Multiple tags in TOC
13299 == <i>Foo</i> <b>Bar</b> ==
13301 == <i>Foo</i> <blockquote>Bar</blockquote> ==
13303 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13305 <li class="toclevel-1 tocsection-1"><a href="#Foo_Bar"><span class="tocnumber">1</span> <span class="toctext"><i>Foo</i> <b>Bar</b></span></a></li>
13306 <li class="toclevel-1 tocsection-2"><a href="#Foo_Bar_2"><span class="tocnumber">2</span> <span class="toctext"><i>Foo</i> Bar</span></a></li>
13309 <h2><span class="mw-headline" id="Foo_Bar"><i>Foo</i> <b>Bar</b></span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo Bar">edit</a>]</span></h2>
13310 <h2><span class="mw-headline" id="Foo_Bar_2"><i>Foo</i> <blockquote>Bar</blockquote></span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span></h2>
13315 Tags with parameters in TOC
13318 == <sup class="in-h2">Hello</sup> ==
13320 == <sup class="a > b">Evilbye</sup> ==
13322 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13324 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
13325 <li class="toclevel-1 tocsection-2"><a href="#b.22.3EEvilbye"><span class="tocnumber">2</span> <span class="toctext"><sup> b">Evilbye</sup></span></a></li>
13328 <h2><span class="mw-headline" id="Hello"><sup class="in-h2">Hello</sup></span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Hello">edit</a>]</span></h2>
13329 <h2><span class="mw-headline" id="b.22.3EEvilbye"><sup> b">Evilbye</sup></span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">Evilbye">edit</a>]</span></h2>
13334 span tags with directionality in TOC
13337 == <span dir="ltr">C++</span> ==
13339 == <span dir="rtl">זבנג!</span> ==
13341 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
13343 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
13345 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
13347 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13349 <li class="toclevel-1 tocsection-1"><a href="#C.2B.2B"><span class="tocnumber">1</span> <span class="toctext"><span dir="ltr">C++</span></span></a></li>
13350 <li class="toclevel-1 tocsection-2"><a href="#.D7.96.D7.91.D7.A0.D7.92.21"><span class="tocnumber">2</span> <span class="toctext"><span dir="rtl">זבנג!</span></span></a></li>
13351 <li class="toclevel-1 tocsection-3"><a href="#The_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span class="tocnumber">3</span> <span class="toctext"><span>The attributes on these span tags must be deleted from the TOC</span></span></a></li>
13352 <li class="toclevel-1 tocsection-4"><a href="#All_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span class="tocnumber">4</span> <span class="toctext"><span>All attributes on these span tags must be deleted from the TOC</span></span></a></li>
13353 <li class="toclevel-1 tocsection-5"><a href="#Attributes_after_dir_on_these_span_tags_must_be_deleted_from_the_TOC"><span class="tocnumber">5</span> <span class="toctext"><span dir="ltr">Attributes after dir on these span tags must be deleted from the TOC</span></span></a></li>
13356 <h2><span class="mw-headline" id="C.2B.2B"><span dir="ltr">C++</span></span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: C++">edit</a>]</span></h2>
13357 <h2><span class="mw-headline" id=".D7.96.D7.91.D7.A0.D7.92.21"><span dir="rtl">זבנג!</span></span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: זבנג!">edit</a>]</span></h2>
13358 <h2><span class="mw-headline" id="The_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span></span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: The attributes on these span tags must be deleted from the TOC">edit</a>]</span></h2>
13359 <h2><span class="mw-headline" id="All_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span></span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: All attributes on these span tags must be deleted from the TOC">edit</a>]</span></h2>
13360 <h2><span class="mw-headline" id="Attributes_after_dir_on_these_span_tags_must_be_deleted_from_the_TOC"><span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span></span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Attributes after dir on these span tags must be deleted from the TOC">edit</a>]</span></h2>
13367 == {{int:headline_sample}} ==
13371 Bug 32057: Title needed when expanding <h> nodes.
13373 title=[[Main Page]]
13377 <h2><span class="mw-headline" id="Headline_text">Headline text</span> <span class="mw-editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Headline text">edit</a>]</span></h2>
13382 Strip marker in urlencode
13384 {{urlencode:x<nowiki/>y}}
13385 {{urlencode:x<nowiki/>y|wiki}}
13386 {{urlencode:x<nowiki/>y|path}}
13413 Strip marker in formatNum
13415 {{formatnum:1<nowiki/>2}}
13416 {{formatnum:1<nowiki/>2|R}}
13424 Check noCommafy in formatNum
13428 {{formatnum:123456.78}}
13429 {{formatnum:123456.78|NOSEP}}
13437 Strip marker in grammar
13441 {{grammar:elative|foo<nowiki/>bar}}
13448 Strip marker in padleft
13450 {{padleft:|2|x<nowiki/>y}}
13457 Strip marker in padright
13459 {{padright:|2|x<nowiki/>y}}
13466 Strip marker in anchorencode
13468 {{anchorencode:x<nowiki/>y}}
13475 nowiki inside link inside heading (bug 18295)
13477 ==[[foo|x<nowiki>y</nowiki>z]]==
13479 <h2><span class="mw-headline" id="xyz"><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">xyz</a></span> <span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: xyz">edit</a>]</span></h2>
13484 new support for bdi element (bug 31817)
13486 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13488 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13493 Ignore pipe between table row attributes
13497 |- id=foo | style='color: red'
13505 <tr id="foo" style="color: red">
13512 Gallery override link with WikiLink (bug 34852)
13515 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
13518 <ul class="gallery">
13519 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13520 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/InterWikiLink"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
13521 <div class="gallerytext">
13531 Gallery override link with absolute external link (bug 34852)
13534 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
13537 <ul class="gallery">
13538 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13539 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="http://www.example.org"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
13540 <div class="gallerytext">
13550 Gallery override link with malicious javascript (bug 34852)
13553 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
13556 <ul class="gallery">
13557 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13558 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/%22_onclick%3D%22alert(%27malicious_javascript_code!%27);"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
13559 <div class="gallerytext">
13569 Gallery with invalid title as link (bug 43964)
13572 File:foobar.jpg|link=<
13575 <ul class="gallery">
13576 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13577 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
13578 <div class="gallerytext">
13586 Language parser function
13595 Padleft and padright as substr
13597 {{padleft:|3|abcde}}
13598 {{padright:|3|abcde}}
13606 Bug 34939 - Case insensitive link parsing ([HttP://])
13608 [HttP://MediaWiki.Org/]
13610 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
13615 Bug 34939 - Case insensitive link parsing ([HttP:// title])
13617 [HttP://MediaWiki.Org/ MediaWiki]
13619 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
13624 Bug 34939 - Case insensitive link parsing (HttP://)
13626 HttP://MediaWiki.Org/
13628 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
13633 ### Parsoids-specific tests
13634 ### Parsoid-PHP parser incompatibilities
13637 1. SOL-sensitive wikitext tokens as template-args
13651 #### The following section of tests are primarily to test
13652 #### wikitext escaping capabilities of Parsoid. Given that
13653 #### escaping can be done any number of ways, the wikitext (input)
13654 #### is always adjusted to reflect how Parsoid adds nowiki
13657 #### We are marking several tests as parsoid-only since the
13658 #### HTML in the result section is different from what the
13659 #### PHP parser generates for it.
13662 #### --------------- Headings ---------------
13664 #### 1. Nested inside html <h1>=foo=</h1>
13665 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
13666 #### 3. Nested inside html with wikitext split by html tags
13667 #### 4. No escape needed
13668 #### 5. Empty headings <h1></h1>
13669 #### 6. Heading chars in SOL context
13670 #### ----------------------------------------
13672 Headings: 0. Unnested
13676 <nowiki>=foo=</nowiki>
13678 <nowiki> =foo= </nowiki>
13680 <nowiki>=foo=</nowiki>
13682 =foo''a''<nowiki>=</nowiki>
13686 </p><p><!--cmt-->=foo=
13687 </p><p>=foo<i>a</i>=
13692 Headings: 1. Nested inside html
13696 =<nowiki>=foo=</nowiki>=
13697 ==<nowiki>=foo=</nowiki>==
13698 ===<nowiki>=foo=</nowiki>===
13699 ====<nowiki>=foo=</nowiki>====
13700 =====<nowiki>=foo=</nowiki>=====
13701 ======<nowiki>=foo=</nowiki>======
13712 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
13717 <nowiki>*bar</nowiki>
13721 <nowiki>=bar=</nowiki>
13729 Headings: 3. Nested inside html with wikitext split by html tags
13733 =='''bold'''<nowiki>foo=</nowiki>=
13735 <h1>=<b>bold</b>foo=</h1>
13739 Headings: 4a. No escaping needed (testing just h1 and h2)
13750 =<nowiki>=</nowiki>=
13758 <h1><i>=</i>foo=</h1>
13764 Headings: 4b. No escaping needed (inside p-tags)
13779 Headings: 5. Empty headings
13787 =====<nowiki/>=====
13788 ======<nowiki/>======
13799 Headings: 6. Heading chars in SOL context
13803 <!--cmt--><nowiki>=h1=</nowiki>
13804 <!--cmt--><nowiki> =h1= </nowiki>
13811 #### --------------- Lists ---------------
13812 #### 0. Outside nests (*foo, etc.)
13813 #### 1. Nested inside html <ul><li>*foo</li></ul>
13814 #### 2. Inside definition lists
13815 #### 3. Only bullets at start should be escaped
13816 #### 4. No escapes needed
13817 #### 5. No unnecessary escapes
13818 #### 6. Escape bullets in SOL position
13819 #### 7. Escape bullets in a multi-line context
13820 #### ----------------------------------------
13823 Lists: 0. Outside nests
13825 <nowiki>*foo</nowiki>
13827 <nowiki>#foo</nowiki>
13835 Lists: 1. Nested inside html
13837 *<nowiki>*foo</nowiki>
13839 *<nowiki>#foo</nowiki>
13841 *<nowiki>:foo</nowiki>
13843 *<nowiki>;foo</nowiki>
13845 #<nowiki>*foo</nowiki>
13847 #<nowiki>#foo</nowiki>
13849 #<nowiki>:foo</nowiki>
13851 #<nowiki>;foo</nowiki>
13873 Lists: 2. Inside definition lists
13875 ;<nowiki>;foo</nowiki>
13877 ;<nowiki>:foo</nowiki>
13879 ;<nowiki>:foo</nowiki>
13882 :<nowiki>:foo</nowiki>
13897 Lists: 3. Only bullets at start of text should be escaped
13899 *<nowiki>*foo*bar</nowiki>
13901 *<nowiki>*foo</nowiki>''it''*bar
13905 <ul><li>*foo<i>it</i>*bar
13911 Lists: 4. No escapes needed
13923 <ul><li><i>foo</i>*bar
13925 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
13930 Lists: 5. No unnecessary escapes
13932 * bar <span><nowiki>[[foo]]</nowiki></span>
13934 *=bar <span><nowiki>[[foo]]</nowiki></span>
13936 *[[bar <span><nowiki>[[foo]]</nowiki></span>
13938 *]]bar <span><nowiki>[[foo]]</nowiki></span>
13940 *=bar <span>foo]]</span>=
13944 <ul><li> bar <span>[[foo]]</span>
13946 <ul><li>=bar <span>[[foo]]</span>
13948 <ul><li>[[bar <span>[[foo]]</span>
13950 <ul><li>]]bar <span>[[foo]]</span>
13952 <ul><li>=bar <span>foo]]</span>=
13954 <ul><li> <s></s>: a
13960 Lists: 6. Escape bullets in SOL position
13964 <!--cmt--><nowiki>*foo</nowiki>
13971 Lists: 7. Escape bullets in a multi-line context
13981 #### --------------- HRs ---------------
13982 #### 1. Single line
13983 #### -----------------------------------
13986 HRs: 1. Single line
13990 ----<nowiki>----</nowiki>
13999 #### --------------- Tables ---------------
14000 #### 1a. Simple example
14001 #### 1b. No escaping needed (!foo)
14002 #### 1c. No escaping needed (|foo)
14003 #### 1d. No escaping needed (|}foo)
14005 #### 2a. Nested in td (<td>foo|bar</td>)
14006 #### 2b. Nested in td (<td>foo||bar</td>)
14007 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
14009 #### 3a. Nested in th (<th>foo!bar</th>)
14010 #### 3b. Nested in th (<th>foo!!bar</th>)
14011 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
14015 #### 4c. No escaping needed
14016 #### --------------------------------------
14019 Tables: 1a. Simple example
14030 Tables: 1b. No escaping needed
14039 Tables: 1c. No escaping needed
14048 Tables: 1d. No escaping needed
14057 Tables: 2a. Nested in td
14062 |<nowiki>foo|bar</nowiki>
14067 </td></tr></tbody></table>
14072 Tables: 2b. Nested in td
14077 |<nowiki>foo||bar</nowiki>
14078 |''it''<nowiki>foo||bar</nowiki>
14083 </td><td><i>it</i>foo||bar
14084 </td></tr></tbody></table>
14089 Tables: 2c. Nested in td -- no escaping needed
14099 </td></tr></tbody></table>
14104 Tables: 3a. Nested in th
14114 </th></tr></tbody></table>
14119 Tables: 3b. Nested in th
14124 !<nowiki>foo!!bar</nowiki>
14129 </th></tr></tbody></table>
14134 Tables: 3c. Nested in th -- no escaping needed
14139 !<nowiki>foo||bar</nowiki>
14144 </th></tr></tbody></table>
14149 Tables: 4a. Escape -
14157 |<nowiki>-bar</nowiki>
14161 <tr><th>-bar</th></tr>
14162 <tr><td>-bar</td></tr>
14167 Tables: 4b. Escape +
14175 |<nowiki>+bar</nowiki>
14179 <tr><th>+bar</th></tr>
14180 <tr><td>+bar</td></tr>
14185 Tables: 4c. No escaping needed
14199 <tr><td>foo-bar</td><td>foo+bar</td></tr>
14200 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
14204 ### SSS FIXME: Disabled right now because accurate html2wt
14205 ### on this snippet requires data-parsoid flags that we've
14206 ### stripped out of these tests. We should scheme how we
14207 ### we want to handle these kind of tests that require
14208 ### data-parsoid flags for accurate html2wt serialization
14211 Tables: 4d. No escaping needed
14229 #### --------------- Links ---------------
14230 #### 1. Quote marks in link text
14231 #### 2. Wikilinks: Escapes needed
14232 #### 3. Wikilinks: No escapes needed
14233 #### 4. Extlinks: Escapes needed
14234 #### 5. Extlinks: No escapes needed
14235 #### --------------------------------------
14237 Links 1. Quote marks in link text
14241 [[Foo|<nowiki>Foo''boo''</nowiki>]]
14243 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
14247 Links 2. WikiLinks: Escapes needed
14251 [[Foo|<nowiki>[Foobar]</nowiki>]]
14252 [[Foo|<nowiki>Foobar]</nowiki>]]
14253 [[Foo|x [Foobar] x]]
14254 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
14255 [[Foo|<nowiki>[[Bar]]</nowiki>]]
14256 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
14257 [[Foo|<nowiki>|Bar</nowiki>]]
14258 [[Foo|<nowiki>]]bar</nowiki>]]
14259 [[Foo|<nowiki>[[bar</nowiki>]]
14260 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
14262 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
14263 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
14264 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
14265 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
14266 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
14267 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
14268 <a href="Foo" rel="mw:WikiLink">|Bar</a>
14269 <a href="Foo" rel="mw:WikiLink">]]bar</a>
14270 <a href="Foo" rel="mw:WikiLink">[[bar</a>
14271 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
14275 Links 3. WikiLinks: No escapes needed
14282 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
14283 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
14287 Links 4. ExtLinks: Escapes needed
14291 [http://google.com <nowiki>[google]</nowiki>]
14292 [http://google.com <nowiki>google]</nowiki>]
14294 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
14295 <a href="http://google.com" rel="mw:ExtLink">google]</a>
14299 Links 5. ExtLinks: No escapes needed
14303 [http://google.com [google]
14305 <a href="http://google.com" rel="mw:ExtLink">[google</a>
14308 #### --------------- Quotes ---------------
14309 #### 1. Quotes inside <b> and <i>
14310 #### 2. Link fragments separated by <i> and <b> tags
14311 #### 3. Link fragments inside <i> and <b>
14312 #### --------------------------------------
14314 1. Quotes inside <b> and <i>
14316 ''<nowiki>'foo'</nowiki>''
14317 ''<nowiki>''foo''</nowiki>''
14318 ''<nowiki>'''foo'''</nowiki>''
14319 '''<nowiki>'foo'</nowiki>'''
14320 '''<nowiki>''foo''</nowiki>'''
14321 '''<nowiki>'''foo'''</nowiki>'''
14322 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
14330 <b>foo'<i>bar'</i>baz</b>
14335 2. Link fragments separated by <i> and <b> tags
14337 [[''foo''<nowiki>hello]]</nowiki>
14339 [['''foo'''<nowiki>hello]]</nowiki>
14341 <p>[[<i>foo</i>hello]]
14342 </p><p>[[<b>foo</b>hello]]
14347 2. Link fragments inside <i> and <b>
14348 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
14349 this is one of the shortcomings of this format)
14351 ''[[foo''<nowiki>]]</nowiki>
14353 '''[[foo'''<nowiki>]]</nowiki>
14356 </p><p><b>[[foo</b>]]
14360 #### --------------- Paragraphs ---------------
14361 #### 1. No unnecessary escapes
14362 #### --------------------------------------
14365 1. No unnecessary escapes
14367 bar <span><nowiki>[[foo]]</nowiki></span>
14369 =bar <span><nowiki>[[foo]]</nowiki></span>
14371 [[bar <span><nowiki>[[foo]]</nowiki></span>
14373 ]]bar <span><nowiki>[[foo]]</nowiki></span>
14375 =bar <span>foo]]</span><nowiki>=</nowiki>
14377 <p>bar <span>[[foo]]</span>
14378 </p><p>=bar <span>[[foo]]</span>
14379 </p><p>[[bar <span>[[foo]]</span>
14380 </p><p>]]bar <span>[[foo]]</span>
14381 </p><p>=bar <span>foo]]</span>=
14385 #### --------------- PRE ------------------
14386 #### 1. Leading space in SOL context should be escaped
14387 #### --------------------------------------
14389 1. Leading space in SOL context should be escaped
14393 <nowiki> foo</nowiki>
14394 <!--cmt--><nowiki> foo</nowiki>
14401 #### --------------- HTML tags ---------------
14404 #### 3. multi-line html tag
14405 #### --------------------------------------
14411 <a href="http://google.com">google</a>
14413 <a href="http://google.com">google</a>
14419 <nowiki><div>foo</div>
14420 <div style="color:red">foo</div></nowiki>
14422 <p><div>foo</div>
14423 <div style="color:red">foo</div>
14428 3. multi-line html tag
14440 #### --------------- Others ---------------
14444 <nowiki>foo</nowiki>
14446 <p><nowiki>foo</nowiki>
14451 Tag-like HTML structures are passed through as text
14473 </p><p>1<d e>f
14478 # This fails in the PHP parser (see bug 40670,
14479 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
14481 Tag names followed by punctuation should not be recognized as tags
14487 <p><s.ome> text
14492 HTML tag with necessary entities in attributes
14494 <span title="&amp;">foo</span>
14496 <p><span title="&amp;">foo</span>
14501 HTML tag with 'unnecessary' entity encoding in attributes
14503 <span title="&">foo</span>
14505 <p><span title="&">foo</span>
14510 HTML tag with broken attribute value quoting
14512 <span title="Hello world>Foo</span>
14514 <p><span>Foo</span>
14519 Parsoid-only: HTML tag with broken attribute value quoting
14523 <span title="Hello world>Foo</span>
14525 <p><span title="Hello world">Foo</span>
14530 Table with broken attribute value quoting
14533 | title="Hello world|Foo
14544 Table with broken attribute value quoting on consecutive lines
14547 | title="Hello world|Foo
14548 | style="color:red|Bar
14561 Parsoid-only: Table with broken attribute value quoting on consecutive lines
14566 | title="Hello world|Foo
14567 | style="color:red|Bar
14572 <td title="Hello world">Foo
14573 </td><td style="color: red">Bar
14574 </td></tr></tbody></table>
14579 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14589 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14599 Accept empty td cell attribute
14602 | align="center" | foo || |
14607 <td align="center"> foo </td>
14614 Non-empty attributes in th-cells
14617 ! Foo !! style="color: red" | Bar
14623 <th style="color: red"> Bar
14629 Accept empty attributes in th-cells
14644 Empty table rows go away
14665 ### Parsoid-centric tests for testing RTing of inter-element separators
14666 ### Edge cases not tested by existing parser tests and specific to
14667 ### Parsoid-specific serialization strategies.
14671 RT-ed inter-element separators should be valid separators
14684 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
14685 (Parsoid-only since PHP parser relies on Tidy for correct output)
14701 Empty TD followed by TD with tpl-generated attribute
14706 |{{echo|style='color:red'}}|foo
14720 Indented table with an empty td
14739 Empty TR followed by a template-generated TR
14740 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
14746 {{echo|<tr><td>foo</td></tr>}}
14754 <td>foo</td></tr></tbody></table>
14757 ## PHP and parsoid output differ for this, and since this is primarily
14758 ## for testing Parsoid's serializer, marking this Parsoid only
14760 Empty TR followed by mixed-ws-comment line should RT correctly
14774 <td> <!--c--></td></tr>
14776 <td><!--c--> <!--d--></td></tr>
14782 Multi-line image caption generated by templates with/without trailing newlines
14786 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
14787 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
14789 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Foo.jpg" class="new" title="File:Foo.jpg">File:Foo.jpg</a> <div class="thumbcaption">foo\nA\nB\nC</div></div></div>
14790 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Foo.jpg" class="new" title="File:Foo.jpg">File:Foo.jpg</a> <div class="thumbcaption">foo\nA\nB\nC\n\n</div></div></div>
14794 ## PHP emits broken html for this, and since this is primarily
14795 ## a Parsoid serializer test, marking this Parsoid only
14797 Improperly nested inline or quotes tags with whitespace in between
14801 <span> <s>x</span> </s>
14804 <p><span> <s>x</s></span><s> </s>
14805 <b> <i>x</i></b><i> </i>
14814 Try for 100% code coverage