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!-->
307 Extra newlines: More paragraphs with indented comment
322 Extra newlines followed by heading
337 <h1><span class="mw-headline" id="b">b</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: b">edit</a>]</span></h1>
338 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
341 <h1><span class="mw-headline" id="b_2">b</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">edit</a>]</span></h1>
346 Extra newlines between heading and content are swallowed
354 <h1><span class="mw-headline" id="b">b</span><span class="mw-editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: b">edit</a>]</span></h1>
355 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
362 http://fr.wikipedia.org/wiki/🍺
363 <!-- EasterEgg we love beer, better be able be able to link to it -->
365 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
385 * plain''italic''plain
386 * plain''italic''plain''italic''plain
387 * plain'''bold'''plain
388 * plain'''bold'''plain'''bold'''plain
389 * plain''italic''plain'''bold'''plain
390 * plain'''bold'''plain''italic''plain
391 * plain''italic'''bold-italic'''italic''plain
392 * plain'''bold''bold-italic''bold'''plain
393 * plain'''''bold-italic'''italic''plain
394 * plain'''''bold-italic''bold'''plain
395 * plain''italic'''bold-italic'''''plain
396 * plain'''bold''bold-italic'''''plain
397 * plain l'''italic''plain
398 * plain l''''bold''' plain
401 </li><li> plain<i>italic</i>plain
402 </li><li> plain<i>italic</i>plain<i>italic</i>plain
403 </li><li> plain<b>bold</b>plain
404 </li><li> plain<b>bold</b>plain<b>bold</b>plain
405 </li><li> plain<i>italic</i>plain<b>bold</b>plain
406 </li><li> plain<b>bold</b>plain<i>italic</i>plain
407 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
408 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
409 </li><li> plain<i><b>bold-italic</b>italic</i>plain
410 </li><li> plain<b><i>bold-italic</i>bold</b>plain
411 </li><li> plain<i>italic<b>bold-italic</b></i>plain
412 </li><li> plain<b>bold<i>bold-italic</i></b>plain
413 </li><li> plain l'<i>italic</i>plain
414 </li><li> plain l'<b>bold</b> plain
419 # this example taken from the simple/Moon article
421 Italics and possessives
423 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
425 <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
430 ### 2-quote opening sequence tests
433 Italics and bold: 2-quote opening sequence: (2,2)
443 Italics and bold: 2-quote opening sequence: (2,3)
453 Italics and bold: 2-quote opening sequence: (2,4)
463 Italics and bold: 2-quote opening sequence: (2,5) (php)
472 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
474 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
486 ### 3-quote opening sequence tests
490 Italics and bold: 3-quote opening sequence: (3,2)
500 Italics and bold: 3-quote opening sequence: (3,3)
510 Italics and bold: 3-quote opening sequence: (3,4)
520 Italics and bold: 3-quote opening sequence: (3,5) (php)
529 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
531 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
543 ### 4-quote opening sequence tests
547 Italics and bold: 4-quote opening sequence: (4,2)
557 Italics and bold: 4-quote opening sequence: (4,3)
567 Italics and bold: 4-quote opening sequence: (4,4)
577 Italics and bold: 4-quote opening sequence: (4,5) (php)
586 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
588 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
594 <p>'<b>foo<i></i></b>
600 ### 5-quote opening sequence tests
604 Italics and bold: 5-quote opening sequence: (5,2) (php)
613 # Parsoid reverses the nesting order, compared to the PHP parser
615 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
627 Italics and bold: 5-quote opening sequence: (5,3)
637 Italics and bold: 5-quote opening sequence: (5,4)
641 <p><i><b>foo'</b></i>
647 Italics and bold: 5-quote opening sequence: (5,5)
656 ### multiple quote sequences in a line
659 Italics and bold: multiple quote sequences: (2,4,2)
663 <p><i>foo'<b>bar</b></i>
669 Italics and bold: multiple quote sequences: (2,4,3)
673 <p><i>foo'<b>bar</b></i>
679 Italics and bold: multiple quote sequences: (2,4,4)
683 <p><i>foo'<b>bar'</b></i>
689 Italics and bold: multiple quote sequences: (3,4,2) (php)
698 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
700 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
706 <p><b>foo'</b>bar<i></i>
712 Italics and bold: multiple quote sequences: (3,4,3) (php)
721 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
723 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
729 <p><b>foo'</b>bar<b></b>
734 ### other quote tests
737 Italics and bold: other quote tests: (2,3,5)
739 ''this is about '''foo's family'''''
741 <p><i>this is about <b>foo's family</b></i>
747 Italics and bold: other quote tests: (2,(3,3),2)
749 ''this is about '''foo's''' family''
751 <p><i>this is about <b>foo's</b> family</i>
757 Italics and bold: other quote tests: (3,2,3,2)
759 '''this is about ''foo'''s family''
761 <p><b>this is about <i>foo</i></b><i>s family</i>
766 # The Parsoid team believes the PHP parser's output on this test is wrong.
767 # It only checks for convert-to-bold-on-single-character-word when the word
768 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
769 # This means that the bold token in position 2 (0-indexed) gets converted by
770 # parsoid, but doesn't get changed by the PHP parser.
772 Italics and bold: other quote tests: (3,2,3,3) (php)
776 '''this is about ''foo'''s family'''
778 <p>'<i>this is about </i>foo<b>s family</b>
781 # This is the output the Parsoid team believes to be correct.
783 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
787 '''this is about ''foo'''s family'''
789 <p><b>this is about <i>foo'</i>s family</b>
795 Italics and bold: other quote tests: (3,(2,2),3)
797 '''this is about ''foo's'' family'''
799 <p><b>this is about <i>foo's</i> family</b>
805 Italicized possessive
807 The ''[[Main Page]]'''s talk page.
809 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
818 Non-html5 tags should be accepted
820 <center>''foo''</center>
823 <strike>''foo''</strike>
826 <center><i>foo</i></center>
827 <p><big><i>foo</i></big>
828 <font><i>foo</i></font>
829 <strike><i>foo</i></strike>
835 ### <nowiki> test cases
839 <nowiki> unordered list
841 <nowiki>* This is not an unordered list item.</nowiki>
843 <p>* This is not an unordered list item.
850 <nowiki>Lorem ipsum dolor
871 :There is not nowiki.
872 :There is <nowiki>nowiki</nowiki>.
874 #There is not nowiki.
875 #There is <nowiki>nowiki</nowiki>.
877 *There is not nowiki.
878 *There is <nowiki>nowiki</nowiki>.
880 <dl><dd>There is not nowiki.
881 </dd><dd>There is nowiki.
883 <ol><li>There is not nowiki.
884 </li><li>There is nowiki.
886 <ul><li>There is not nowiki.
887 </li><li>There is nowiki.
893 Entities inside <nowiki>
895 <nowiki><</nowiki>
906 Comments and Indent-Pre
908 <!-- comment 1 --> asdf
910 <!-- comment 1 --> asdf
913 <!-- comment 1 --> asdf
914 <!-- comment 2 -->xyz
916 <!-- comment 1 --> asdf
917 <!-- comment 2 --> xyz
973 asdf<!-- comment 1 -->jkl
983 <!-- foo --> b <!-- bar -->
997 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1003 Comment semantics and delimiters
1005 <!-- --><!----><!-----><!------>
1011 Comment semantics and delimiters, redux
1013 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1014 -- foo -- funky huh? ... -->
1020 Comment semantics and delimiters: directors cut
1022 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1023 everything starting with < followed by !-- until the first -- and > we see,
1024 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1032 Comment semantics: nesting
1034 <!--<!-- no, we're not going to do anything fancy here -->-->
1041 Comment semantics: unclosed comment at end
1043 <!--This comment will run out to the end of the document
1049 Comment in template title
1058 Comment on its own line post-expand
1070 Comment on its own line post-expand with non-significant whitespace
1082 ### paragraph wraping tests
1096 Block tag on one line
1108 Block tag on both lines
1120 Multiple lines without block tags
1138 Empty lines between lines with block tags
1168 ### Preformatted text
1177 And a [[Main Page|link]]
1183 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1188 Ident preformatting with inline content
1199 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1216 Regression with preformatted in <center>
1229 # Expected output in the following test is not really expected (there should be
1230 # <pre> in the output) -- it's only testing for well-formedness.
1232 Bug 6200: Preformatted in <blockquote>
1245 <pre> with attributes (bug 3202)
1247 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1249 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1254 <pre> with width attribute (bug 3202)
1256 <pre width="8">Narrow screen goodies</pre>
1258 <pre width="8">Narrow screen goodies</pre>
1263 <pre> with forbidden attribute (bug 3202)
1265 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1267 <pre width="8">Narrow screen goodies</pre>
1272 Entities inside <pre>
1281 <pre> with forbidden attribute values (bug 3202)
1283 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1285 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1290 <nowiki> inside <pre> (bug 13238)
1298 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1306 <pre><nowiki>Foo</nowiki></pre>
1311 <nowiki> and <pre> preference (first one wins)
1342 </pre> inside nowiki
1344 <nowiki></pre></nowiki>
1351 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1359 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1369 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1381 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1402 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1406 {{echo| foo}}{{echo| bar}}
1411 {{echo|<!--cmt--> foo}}
1413 <!--cmt-->{{echo| foo}}
1415 {{echo|{{echo| }}bar}}
1433 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1470 Templates: Single-line variant of parameter whitespace stripping test
1476 {{echo|{{echo| a}}}}
1478 {{echo|1={{echo| a}}}}
1491 Templates: Strip whitespace from named parameters, but not positional ones
1519 ### Parsoid-centric tests for testing RT edge cases for pre
1523 1a. Indent-Pre and Comments
1536 1b. Indent-Pre and Comments
1549 1c. Indent-Pre and Comments
1562 2a. Indent-Pre and tables
1583 2b. Indent-Pre and tables
1599 2c. Indent-Pre and tables (bug 42252)
1616 3a. Indent-Pre and block tags (single-line html)
1624 <pre><span> foo </span>
1629 3b. Indent-Pre and block tags (pre-content on separate line)
1681 4. Multiple spaces at start-of-line
1700 5. White-space in indent-pre
1701 NOTE: the white-space char on 2nd line is significant
1714 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1718 HTML-pre: 1. embedded newlines
1754 HTML-pre: 2: indented text
1767 HTML-pre: 3: other wikitext
1788 ### Definition lists
1795 <dl><dt> name </dt><dd> Definition
1801 Definition list for indentation only
1805 <dl><dd> Indented text
1811 Definition list with no space
1815 <dl><dt>name</dt><dd>Definition
1821 Definition list with URL link
1823 ; http://example.com/ : definition
1825 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1831 Definition list with bracketed URL link
1833 ;[http://www.example.com/ Example]:Something about it
1835 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1841 Definition list with wikilink containing colon
1843 ; [[Help:FAQ]]: The least-read page on Wikipedia
1845 <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
1850 # At Brion's and JeLuF's insistence... :)
1852 Definition list with news link containing colon
1854 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1856 <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!
1862 Malformed definition list with colon
1864 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1866 <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
1872 Definition lists: colon in external link text
1874 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1876 <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
1882 Definition lists: colon in HTML attribute
1884 ;<b style="display: inline">bold</b>
1886 <dl><dt><b style="display: inline">bold</b>
1892 Definition lists: self-closed tag
1894 ;one<br/>two : two-line fun
1896 <dl><dt>one<br />two </dt><dd> two-line fun
1902 Bug 11748: Literal closing tags
1906 <dd>test test test test test</dd>
1908 <dd>test test test test test</dd>
1913 <dd>test test test test test</dd>
1915 <dd>test test test test test</dd>
1921 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1924 ; term : description
1930 <dl><dt> term </dt><dd> description
1941 Definition list with empty definition and following paragraph
1946 <dl><dt> term</dt><dd>
1953 Nested definition lists using html syntax
1970 Definition Lists: No nesting: Multiple dd's
1984 Definition Lists: Indentation: Regular
2000 Definition Lists: Indentation: Missing 1st level
2014 Definition Lists: Indentation: Multi-level indent
2018 <dl><dd><dl><dd><dl><dd>i3
2026 Definition Lists: Hacky use to indent tables
2033 should be left alone
2035 <dl><dd><dl><dd><table>
2040 </td></tr></table></dd></dl></dd></dl>
2042 should be left alone
2045 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2046 ## as an empty dt item. It also ignores all but the last ";" when followed
2047 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2048 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2051 ## Ex: ";;t2 ::d2" is transformed into:
2063 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2064 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2075 ## All Parsoid only definition list tests have this difference.
2077 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2078 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2081 Table / list interaction: indented table with lists in table contents
2103 </td></tr></table></dd></dl>
2108 Table / list interaction: lists nested in tables nested in indented lists
2133 </td></tr></table></dd></dl>
2141 Definition Lists: Nesting: Multi-level (Parsoid only)
2171 Definition Lists: Nesting: Test 2 (Parsoid only)
2191 Definition Lists: Nesting: Test 3 (Parsoid only)
2219 Definition Lists: Nesting: Test 4
2224 <dl><dd><dl><dd><dl><dt>t3
2233 ## The Parsoid team believes the following three test exposes a
2234 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2235 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2237 Definition Lists: Mixed Lists: Test 1 (php)
2245 <dl><dd><dl><dt><ul><li> foo
2255 Definition Lists: Mixed Lists: Test 1 (parsoid)
2263 <dl><dd><dl><dt><ul><li> foo
2264 </li></ul></dt><dd><ul><li> bar
2265 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2269 Definition Lists: Mixed Lists: Test 2
2283 Definition Lists: Mixed Lists: Test 3
2288 <ul><li><dl><dd><dl><dd><dl><dd> d1
2299 Definition Lists: Mixed Lists: Test 4
2304 <ul><li><dl><dt>d1 </dt><dd>d2
2305 </dd><dt>d3 </dt><dd>d4
2313 Definition Lists: Mixed Lists: Test 5
2328 Definition Lists: Mixed Lists: Test 6
2333 <ol><li><ul><li><dl><dd>d1
2345 Definition Lists: Mixed Lists: Test 7
2359 Definition Lists: Mixed Lists: Test 8
2375 Definition Lists: Mixed Lists: Test 9
2379 <ul><li><dl><dt>foo </dt><dd>bar
2387 Definition Lists: Mixed Lists: Test 10
2391 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2398 # The Parsoid team disagrees with the PHP parser's seemingly-random
2399 # rules regarding dd/dt on the next two tests. Parsoid is more
2400 # consistent, and recognizes the shared nesting and keeps the
2401 # still-open tags around until the nesting is complete.
2404 Definition Lists: Mixed Lists: Test 11 (php)
2411 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2416 <dl><dt>boo </dt><dd>baz
2425 Definition Lists: Mixed Lists: Test 11 (parsoid)
2447 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2448 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2449 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2450 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2455 Definition Lists: Weird Ones: Test 1 (php)
2459 *#;*::;; foo : bar (who uses this?)
2461 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2473 Definition Lists: Weird Ones: Test 1 (parsoid)
2477 *#;*::;; foo : bar (who uses this?)
2494 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2495 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd></dl></dt></dl></dd></dl></dd></dl></li></ul></dt></dl></li></ol></li></ul>
2502 External links: non-bracketed
2504 Non-bracketed: http://example.com
2506 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2511 External links: numbered
2513 Numbered: [http://example.com]
2514 Numbered: [http://example.net]
2515 Numbered: [http://example.com]
2517 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2518 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2519 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2524 External links: specified text
2526 Specified text: [http://example.com link]
2528 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2533 External links: trail
2535 Linktrails should not work for external links: [http://example.com link]s
2537 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2542 External links: dollar sign in URL
2544 http://example.com/1$2345
2546 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2551 External links: dollar sign in URL (named)
2553 [http://example.com/1$2345]
2555 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2560 External links: open square bracket forbidden in URL (bug 4377)
2562 http://example.com/1[2345
2564 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2569 External links: open square bracket forbidden in URL (named) (bug 4377)
2571 [http://example.com/1[2345]
2573 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2578 External links: nowiki in URL link text (bug 6230)
2580 [http://example.com/ <nowiki>''example site''</nowiki>]
2582 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2587 External links: newline forbidden in text (bug 6230 regression check)
2589 [http://example.com/ first
2592 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2598 External links: Pipe char between url and text
2600 [http://example.com | link]
2602 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2607 External links: protocol-relative URL in brackets
2609 [//example.com/ Test]
2611 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2616 External links: protocol-relative URL in brackets without text
2620 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2625 External links: protocol-relative URL in free text is left alone
2629 <p>//example.com/Foo
2634 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2636 foo//example.com/Foo
2638 <p>foo//example.com/Foo
2645 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2647 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2652 External image from https
2654 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2656 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2661 Link to non-http image, no img tag
2663 Link to non-http image, no img tag: ftp://example.com/test.jpg
2665 <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>
2670 External links: terminating separator
2672 Terminating separator: http://example.com/thing,
2674 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2679 External links: intervening separator
2681 Intervening separator: http://example.com/1,2,3
2683 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2688 External links: old bug with URL in query
2690 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2692 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2697 External links: old URL-in-URL bug, mixed protocols
2699 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2701 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2706 External links: URL in text
2708 URL in text: [http://example.com http://example.com]
2710 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2715 External links: Clickable images
2717 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2719 <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>
2724 External links: raw ampersand
2726 Old & use: http://x&y
2728 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2733 External links: encoded ampersand
2735 Old & use: http://x&y
2737 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2742 External links: encoded equals (bug 6102)
2744 http://example.com/?foo=bar
2746 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2751 External links: [raw ampersand]
2753 Old & use: [http://x&y]
2755 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2760 External links: [encoded ampersand]
2762 Old & use: [http://x&y]
2764 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2769 External links: [encoded equals] (bug 6102)
2771 [http://example.com/?foo=bar]
2773 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2778 External links: [IDN ignored character reference in hostname; strip it right off]
2780 [http://e‌xample.com/]
2782 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2786 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2787 # Where an external link could easily circumvent the sanitization of the text of
2788 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2789 # test demands a higher standard. That's a bit strange.
2793 # http://example.com -> [http://example.com|http://example.com]
2794 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2796 # The first example is sanitized, but the second is not. Any security benefits
2797 # from this production are trivial to circumvent. Either remove this test and
2798 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2799 # the test accordingly.
2804 External links: IDN ignored character reference in hostname; strip it right off
2806 http://e‌xample.com/
2808 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2813 External links: www.jpeg.org (bug 554)
2817 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2822 External links: URL within URL (original bug 2)
2824 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2826 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2831 BUG 361: URL inside bracketed URL
2833 [http://www.example.com/foo http://www.example.com/bar]
2835 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2840 BUG 361: URL within URL, not bracketed
2842 http://www.example.com/foo?=http://www.example.com/bar
2844 <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>
2849 BUG 289: ">"-token in URL-tail
2851 http://www.example.com/<hello>
2853 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2858 BUG 289: literal ">"-token in URL-tail
2860 http://www.example.com/<b>html</b>
2862 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2867 BUG 289: ">"-token in bracketed URL
2869 [http://www.example.com/<hello> stuff]
2871 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2876 BUG 289: literal ">"-token in bracketed URL
2878 [http://www.example.com/<b>html</b> stuff]
2880 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2885 BUG 289: literal double quote at end of URL
2887 http://www.example.com/"hello"
2889 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2894 BUG 289: literal double quote in bracketed URL
2896 [http://www.example.com/"hello" stuff]
2898 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2903 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2905 [http://www.example.com test]
2907 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2912 External links: link text with spaces
2914 [http://www.example.com a b c]
2915 [http://www.example.com ''a'' ''b'']
2917 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
2918 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
2923 External links: wiki links within external link (Bug 3695)
2925 [http://example.com [[wikilink]] embedded in ext link]
2927 <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>
2932 BUG 787: Links with one slash after the url protocol are invalid
2936 [http:/example.com title]
2938 <p>http:/example.com
2939 </p><p>[http:/example.com title]
2944 Bracketed external links with template-generated invalid target
2946 [{{echo|http:/example.com}} title]
2948 <p>[http:/example.com title]
2953 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2955 ''[http://example.com text'']
2956 [http://example.com '''text]'''
2957 ''Something [http://example.com in italic'']
2958 ''Something [http://example.com mixed''''', even bold]'''
2959 '''''Now [http://example.com both''''']
2961 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2962 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2963 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2964 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2965 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2971 Bug 4781: %26 in URL
2973 http://www.example.com/?title=AT%26T
2975 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2979 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2980 # % is actually legal in HTML5. Any change in output would need testing though.
2982 Bug 4781, 5267: %25 in URL
2984 http://www.example.com/?title=100%25_Bran
2986 <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>
2991 Bug 4781, 5267: %28, %29 in URL
2993 http://www.example.com/?title=Ben-Hur_%281959_film%29
2995 <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>
3001 Bug 4781: %26 in autonumber URL
3003 [http://www.example.com/?title=AT%26T]
3005 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3010 Bug 4781, 5267: %26 in autonumber URL
3012 [http://www.example.com/?title=100%25_Bran]
3014 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3019 Bug 4781, 5267: %28, %29 in autonumber URL
3021 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3023 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3029 Bug 4781: %26 in bracketed URL
3031 [http://www.example.com/?title=AT%26T link]
3033 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3038 Bug 4781, 5267: %26 in bracketed URL
3040 [http://www.example.com/?title=100%25_Bran link]
3042 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3047 Bug 4781, 5267: %28, %29 in bracketed URL
3049 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3051 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3056 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3058 Some [http://example.com/ pretty ''italics'' and stuff]!
3060 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3065 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3067 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3069 <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>
3074 External link containing double-single-quotes with no space separating the url from text in italics
3076 [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]].]
3078 <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>
3083 URL-encoding in URL functions (single parameter)
3085 {{localurl:Some page|amp=&}}
3087 <p>/index.php?title=Some_page&amp=&
3092 URL-encoding in URL functions (multiple parameters)
3094 {{localurl:Some page|q=?&=&}}
3096 <p>/index.php?title=Some_page&q=?&amp=&
3103 http://example.com/index.php?foozoid%5B%5D=bar
3105 http://example.com/index.php?foozoid[]=bar
3107 <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>
3108 </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>
3113 IPv6 urls (bug 21261)
3117 http://[2404:130:0:1000::187:2]/index.php
3119 <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>
3124 Non-extlinks in brackets
3133 [{{echo|foo}} ''bar'']
3134 [{{echo|foo}}l's] errand
3135 [{{echo|foo}}l's errand]
3137 [url=http://example.com]
3150 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3161 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3163 Normal text. '''''Bold italic text.''''' Normal text.
3165 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3166 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3172 Unclosed and unmatched quotes (php)
3176 '''''Bold italic text '''with bold deactivated''' in between.'''''
3178 '''''Bold italic text ''with italic deactivated'' in between.'''''
3182 ..spanning two paragraphs (should not work).'''
3184 '''Bold tag left open
3186 ''Italic tag left open
3190 <!-- Unmatching number of opening, closing tags: -->
3191 '''This year''''s election ''should'' beat '''last year''''s.
3193 ''Tom'''s car is bigger than ''Susan'''s.
3195 Plain ''italic'''s plain
3197 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3198 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3199 </p><p><b>Bold text..</b>
3200 </p><p>..spanning two paragraphs (should not work).
3201 </p><p><b>Bold tag left open</b>
3202 </p><p><i>Italic tag left open</i>
3204 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3205 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3206 </p><p>Plain <i>italic'</i>s plain
3209 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3210 # parser strips. The wikitext contains just the first half of the bold
3211 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3212 # differently than the PHP parser.)
3214 Unclosed and unmatched quotes (parsoid)
3218 '''''Bold italic text '''with bold deactivated''' in between.'''''
3220 '''''Bold italic text ''with italic deactivated'' in between.'''''
3224 ..spanning two paragraphs (should not work).'''
3226 '''Bold tag left open
3228 ''Italic tag left open
3232 <!-- Unmatching number of opening, closing tags: -->
3233 '''This year''''s election ''should'' beat '''last year''''s.
3235 ''Tom'''s car is bigger than ''Susan'''s.
3237 Plain ''italic'''s plain
3239 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3240 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3241 </p><p><b>Bold text..</b>
3242 </p><p>..spanning two paragraphs (should not work).<b></b>
3243 </p><p><b>Bold tag left open</b>
3244 </p><p><i>Italic tag left open</i>
3246 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3247 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3248 </p><p>Plain <i>italic'</i>s plain
3255 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3258 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3259 # is the bare minimun required by the spec, see:
3260 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3262 A table with no data. (php)
3269 # Parsoid team replies: empty table tags are legal in HTML5
3271 A table with no data. (parsoid)
3280 # A table with nothing but a caption is invalid XHTML, we might want to render
3281 # this as <p>caption</p>
3283 A table with nothing but a caption (php)
3293 </caption><tr><td></td></tr></table>
3296 # Parsoid team replies: table with only a caption is legal in HTML5
3298 A table with nothing but a caption (parsoid)
3306 <table><caption> caption</caption></table>
3310 A table with caption with default-spaced attributes and a table row
3313 |+ style="color: red;" | caption1
3319 <caption style="color: red;"> caption1
3328 A table with captions with non-default spaced attributes and a table row
3331 |+style="color: red;"|caption2
3332 |+ style="color: red;"| caption3
3338 <caption style="color: red;">caption2
3340 <caption style="color: red;"> caption3
3349 Table td-cell syntax variations
3353 | foo bar foo || baz
3354 | style='color:red;' | baz
3355 | style='color:red;' || baz
3362 <td> foo bar foo </td>
3365 <td style="color:red;"> baz
3367 <td> style='color:red;' </td>
3395 Simple table but with multiple dashes for row wikitext
3413 Multiplication table
3415 {| border="1" cellpadding="2"
3416 |+Multiplication table
3418 ! × !! 1 !! 2 !! 3
3436 <table border="1" cellpadding="2">
3437 <caption>Multiplication table
3484 Accept "||" in table headings
3499 Accept "||" in indented table headings
3509 </th></tr></table></dd></dl>
3514 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3531 Accept "| !" at start of line in tables (ignore !-attribute)
3535 | !style="color:red" | bar
3547 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 +/-
3551 |style='color:red;'|+1
3552 |style='color:blue;'|-1
3564 <td style="color:red;">+1
3566 <td style="color:blue;">-1
3590 |rowspan=2| Cell 2, row 1 (and 2)
3601 <td rowspan="2"> Cell 2, row 1 (and 2)
3619 {| bgcolor=#ABCDEF border=2
3624 |the original table again
3632 <table bgcolor="#ABCDEF" border="2">
3640 <td>the original table again
3646 Invalid attributes in table cell (bug 1830)
3661 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3664 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3668 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3669 <td>]" onmouseover="alert(document.cookie)">test
3678 Indented table markup mixed with indented pre content (proposed in bug 6200)
3683 Text that should be rendered preformatted
3691 <pre>Text that should be rendered preformatted
3700 Template-generated table cell attributes and cell content
3708 <td style="color: red"> Foo
3714 Table with row followed by newlines and table heading
3732 Table with empty line following the start tag
3749 # FIXME: Preserve the attribute properly (with an empty string as value) in
3750 # the PHP parser. Parsoid implements the behavior below.
3752 Table attributes with empty value
3764 </td></tr></tbody></table>
3769 Wikitext table with a lot of comments
3792 Wikitext table with double-line table cell
3809 Table cell with a single comment
3825 # The expected HTML structure in this test is debatable. The PHP parser does
3826 # not parse this kind of table at all. The main focus for Parsoid is on
3827 # round-tripping, so this output is ok for now. TODO: revisit!
3829 Wikitext table with html-syntax row (Parsoid)
3841 <td>foo</td></tr></tbody></table>
3848 Plain link, capitalized
3852 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3857 Plain link, uncapitalized
3861 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3868 [[Main Page|The Main Page]]
3870 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3879 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3884 Broken link with fragment
3886 [[Zigzagzogzagzig#zug]]
3888 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3893 Special page link with fragment
3895 [[Special:Version#anchor]]
3897 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3902 Nonexistent special page link with fragment
3904 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3906 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3913 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3915 <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>
3922 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3924 <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>!!!
3935 Bug 43661: Piped links with identical prefixes
3937 [[prefixed article|prefixed articles with spaces]]
3939 [[prefixed article|prefixed articlesaoeu]]
3941 [[Main Page|Main Page test]]
3943 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3944 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3945 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3951 Link with HTML entity in suffix / tail
3953 [[Main Page]]", [[Main Page]]a
3955 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3960 Link with 3 brackets
3969 Piped link with 3 brackets
3971 [[[main page|the main page]]]
3973 <p>[[[main page|the main page]]]
3978 Link with multiple pipes
3980 [[Main Page|The|Main|Page]]
3982 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3989 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3991 <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>
3996 Piped link to namespace
3998 [[Meta:Disclaimers|The disclaimers]]
4000 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4007 [[Usually caused by a typo (oops}]]
4009 <p>[[Usually caused by a typo (oops}]]
4014 Link containing % (not as a hex sequence)
4018 <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>
4023 Link containing % as a single hex sequence interpreted to char
4027 <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>
4032 Link containing % as a double hex sequence interpreted to hex sequence
4036 <p>[[7%2525 Solution]]
4041 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4042 Example for such a section: == < ==
4044 [[%23%3c]][[%23%3e]]
4046 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4051 Link containing "<#" and ">#" as a hex sequences
4053 [[%3c%23]][[%3e%23]]
4055 <p>[[%3c%23]][[%3e%23]]
4060 Link containing an equals sign
4062 [[Special:BookSources/isbn=4-00-026157-6]]
4064 <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>
4071 Just a test of an article title containing a tilde.
4074 # note that links containing signatures, like [[Foo~~~~]], are
4075 # massaged by the pre-save transform (PST) and so the tildes are never
4076 # seen by the parser.
4078 Link containing a tilde
4082 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4087 Link containing double-single-quotes '' (bug 4598)
4089 [[Lista d''e paise d''o munno]]
4091 <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>
4096 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4098 Some [[Link|pretty ''italics'' and stuff]]!
4100 <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>!
4105 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4107 ''Some [[Link|pretty ''italics'' and stuff]]!
4109 <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>
4114 Link with double quotes in title part (literal) and alternate part (interpreted)
4116 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4120 [[''Pentecoste''|Pentecoste]]
4122 [[''Pentecoste''|''Pentecoste'']]
4124 <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>
4125 </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>
4126 </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>
4127 </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>
4132 Broken image links with HTML captions (bug 39700)
4134 [[File:Nonexistent|<script></script>]]
4135 [[File:Nonexistent|100px|<script></script>]]
4136 [[File:Nonexistent|<]]
4137 [[File:Nonexistent|a<i>b</i>c]]
4139 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4140 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4141 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4142 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4149 [[http://www.example.com]]
4151 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4156 Plain link to URL with link text
4158 [[http://www.example.com Link text]]
4160 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4165 Plain link to protocol-relative URL
4167 [[//www.example.com]]
4169 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4174 Plain link to protocol-relative URL with link text
4176 [[//www.example.com Link text]]
4178 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4183 Plain link to page with question mark in title
4189 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4190 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4195 # I'm fairly sure the expected result here is wrong.
4196 # We want these to be URL links, not pseudo-pages with URLs for titles....
4197 # However the current output is also pretty screwy.
4200 # I'm changing it to match the current output--it arguably makes more
4201 # sense in the light of the test above. Old expected result was:
4202 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4204 # But I think this test is bordering on "garbage in, garbage out" anyway.
4209 Piped link to URL: [[http://www.example.com|an example URL]]
4211 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4216 BUG 2: [[page|http://url/]] should link to page, not http://url/
4218 [[Main Page|http://url/]]
4220 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4225 BUG 337: Escaped self-links should be bold
4229 [[Bug462]] [[Bug462]]
4231 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4236 Self-link to section should not be bold
4240 [[Main Page#section]]
4242 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4253 Self-link to numeric title
4259 <p><strong class="selflink">0</strong>
4264 Link to numeric-equivalent title
4270 <p><a href="/wiki/00" title="00">00</a>
4275 <nowiki> inside a link
4277 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4279 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4284 Non-breaking spaces in title
4286 [[ Main Page ]]
4288 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4293 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4299 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4304 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4310 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4315 Internal link with en linktrail: no apostrophes (bug 27473)
4321 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4326 Internal link with ca linktrail with apostrophes (bug 27473)
4332 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4337 Internal link with kaa linktrail with apostrophes (bug 27473)
4343 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4354 Internal link with is link prefix
4358 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4360 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4371 Internal link with is link trail and link prefix
4375 [[mótmælendatrú|xxx]]ar
4377 mótmælenda[[söfnuður]]
4378 mótmælenda[[söfnuður|söfnuðir]]
4379 mótmælenda[[söfnuður|söfnuðir]]xxx
4381 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4382 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4383 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4384 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4385 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4390 Parsoid link trail escaping
4392 parsoid=html2wt,html2html
4396 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4400 Parsoid link prefix escaping
4403 parsoid=html2wt,html2html
4405 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4407 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4411 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4419 [http://wp.org ''foo'']
4421 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4422 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4423 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4424 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4429 ### Interwiki links (see maintenance/interwiki.sql)
4433 Inline interwiki link
4435 [[MeatBall:SoftSecurity]]
4437 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4442 Inline interwiki link with empty title (bug 2372)
4446 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4451 Interwiki link encoding conversion (bug 1636)
4453 *[[Wikipedia:ro:Olteniţa]]
4454 *[[Wikipedia:ro:Olteniţa]]
4456 <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>
4457 </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>
4463 Interwiki link with fragment (bug 2130)
4465 [[MeatBall:SoftSecurity#foo]]
4467 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4482 Double interlanguage link
4493 Interlanguage link, with prefix links
4505 Double interlanguage link, with prefix links (bug 8897)
4518 Parsoid-specific test: Wikilinks with should RT properly
4524 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4542 Broken br tag sanitization
4551 Incorrecly removing closing slashes from correctly formed XHTML
4553 <br style="clear:both;" />
4555 <p><br style="clear:both;" />
4560 Failing to transform badly formed HTML into correct XHTML
4562 <br style="clear: left;">
4563 <br style="clear: right;">
4564 <br style="clear: both;">
4566 <p><br style="clear: left;" />
4567 <br style="clear: right;" />
4568 <br style="clear: both;" />
4573 Handling html with a div self-closing tag
4582 <p><div title />
4586 <p><div title=bar />
4587 <div title=bar/>
4589 <div title="bar/"></div>
4595 Handling html with a br self-closing tag
4604 <p><br title="title" />
4605 <br title="title" />
4614 Horizontal ruler (should it add that extra space?)
4628 Horizontal ruler -- 4+ dashes render hr
4637 Horizontal ruler -- eats additional dashes on the same line
4646 Horizontal ruler -- does not collapse dashes on consecutive lines
4657 Horizontal ruler -- <4 dashes render as plain text
4666 Horizontal ruler -- Supports content following dashes on same line
4675 ### Block-level elements
4698 <ol><li>Numbered list
4715 ***#Number on level 4
4717 **#Number on level 3
4718 **#Number on level 3
4722 #** Level 3, but ordered
4725 <ol><li> with numbers
4727 <ul><li> and bullets
4729 <ol><li> and numbers
4731 </li><li>bullets again
4732 <ul><li>bullet level 2
4733 <ul><li>bullet level 3
4734 <ol><li>Number on level 4
4737 </li><li>bullet level 2
4738 <ol><li>Number on level 3
4739 </li><li>Number on level 3
4742 <ol><li>number level 2
4745 <ul><li><ul><li> Level 3
4749 <ol><li><ul><li><ul><li> Level 3, but ordered
4783 Nested lists 3 (first element empty)
4796 Nested lists 4 (first element empty)
4809 Nested lists 5 (both elements empty)
4822 Nested lists 6 (both elements empty)
4835 Nested lists 7 (skip initial nesting levels)
4839 <ul><li><ul><li><ul><li> foo
4847 Nested lists 8 (multiple nesting transitions)
4855 <ul><li><ul><li> bar
4865 1. Lists with start-of-line-transparent tokens before bullets: Comments
4879 2. Lists with start-of-line-transparent tokens before bullets: Template close
4891 Unbalanced closing block tags break a list
4892 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
4902 </li></ul></div><div>
4908 Unbalanced closing non-block tags don't break a list
4909 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
4919 <ul><li>a<span></span>
4925 Unclosed formatting tags that straddle lists are closed and reopened
4926 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
4934 </li><li> <s> b </s>
4939 List embedded in a non-block tag
4940 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
4948 <p><small></small></p>
4954 <p><small></small></p>
4958 List items are not parsed correctly following a <pre> block (bug 785)
4964 <ul><li> <pre>foo</pre>
4965 </li><li> <pre>bar</pre>
4972 List items from template
4983 * notSOL{{inner list}}
5002 List interrupted by empty line or heading
5012 <ul><li><ul><li> bar
5015 <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>
5016 <ul><li> Another list item
5022 Multiple list tags generated by templates
5037 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
5040 <!--This line will NOT split the list-->
5042 <!--This line will NOT split the list either-->
5044 <!--foo--> <!--This line with more than 1 comment will split the list-->
5061 Magic Word: {{CURRENTDAY}}
5070 Magic Word: {{CURRENTDAY2}}
5079 Magic Word: {{CURRENTDAYNAME}}
5088 Magic Word: {{CURRENTDOW}}
5097 Magic Word: {{CURRENTMONTH}}
5106 Magic Word: {{CURRENTMONTHABBREV}}
5108 {{CURRENTMONTHABBREV}}
5115 Magic Word: {{CURRENTMONTHNAME}}
5117 {{CURRENTMONTHNAME}}
5124 Magic Word: {{CURRENTMONTHNAMEGEN}}
5126 {{CURRENTMONTHNAMEGEN}}
5133 Magic Word: {{CURRENTTIME}}
5142 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5151 Magic Word: {{CURRENTYEAR}}
5160 Magic Word: {{FULLPAGENAME}}
5162 title=[[User:Ævar Arnfjörð Bjarmason]]
5166 <p>User:Ævar Arnfjörð Bjarmason
5171 Magic Word: {{FULLPAGENAMEE}}
5173 title=[[User:Ævar Arnfjörð Bjarmason]]
5177 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5182 Magic Word: {{NAMESPACE}}
5184 title=[[User:Ævar Arnfjörð Bjarmason]]
5193 Magic Word: {{NAMESPACEE}}
5195 title=[[User:Ævar Arnfjörð Bjarmason]]
5204 Magic Word: {{NAMESPACENUMBER}}
5206 title=[[User:Ævar Arnfjörð Bjarmason]]
5215 Magic Word: {{NUMBEROFFILES}}
5224 Magic Word: {{PAGENAME}}
5226 title=[[User:Ævar Arnfjörð Bjarmason]]
5230 <p>Ævar Arnfjörð Bjarmason
5235 Magic Word: {{PAGENAME}} with metacharacters
5237 title=[['foo & bar = baz']]
5241 <p><i>'foo & bar = baz'</i>
5246 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5248 title=[[*RFC 1234 http://example.com/]]
5252 <p>*RFC 1234 http://example.com/
5257 Magic Word: {{PAGENAMEE}}
5259 title=[[User:Ævar Arnfjörð Bjarmason]]
5263 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5268 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5270 title=[[*RFC 1234 http://example.com/]]
5274 <p>*RFC_1234_http://example.com/
5279 Magic Word: {{REVISIONID}}
5288 Magic Word: {{SCRIPTPATH}}
5297 Magic Word: {{SERVER}}
5301 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5306 Magic Word: {{SERVERNAME}}
5315 Magic Word: {{SITENAME}}
5324 Case-sensitive magic words, when cased differently, should just be template transclusions
5331 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5332 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5333 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5334 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5339 Case-insensitive magic words should still work with weird casing.
5349 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5354 Namespace 1 {{ns:1}}
5363 Namespace 1 {{ns:01}}
5372 Namespace 0 {{ns:0}} (bug 4783)
5380 Namespace 0 {{ns:00}} (bug 4783)
5388 Namespace -1 {{ns:-1}}
5397 Namespace User {{ns:User}}
5406 Namespace User talk {{ns:User_talk}}
5415 Namespace User talk {{ns:uSeR tAlK}}
5424 Namespace File {{ns:File}}
5433 Namespace File {{ns:Image}}
5442 Namespace (lang=de) Benutzer {{ns:User}}
5453 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5459 <p>Benutzer Diskussion
5467 {{urlencode:hi world?!}}
5468 {{urlencode:hi world?!|WIKI}}
5469 {{urlencode:hi world?!|PATH}}
5470 {{urlencode:hi world?!|QUERY}}
5483 Magic links: internal link to RFC (bug 479)
5487 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5492 Magic links: RFC (bug 479)
5496 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5501 Magic links: ISBN (bug 1937)
5505 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5510 Magic links: PMID incorrectly converts space to underscore
5514 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5523 Nonexistent template
5525 {{thistemplatedoesnotexist}}
5527 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5532 Template with invalid target containing tags
5534 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5536 <p>{{a<b>b</b>|foo|a=b|a = b}}
5541 Template with invalid target containing unclosed tag
5543 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5545 <p>{{a<b>|foo|a=b|a = b}}</b>
5552 This is a test template
5560 <p>This is a test template
5565 Template with explicit namespace
5569 <p>This is a test template
5577 This is a test template with parameter {{{param}}}
5583 {{paramtest|param=foo}}
5585 <p>This is a test template with parameter foo
5590 Template:paramtestnum
5596 Template unnamed parameter
5598 {{paramtestnum|Main Page|the main page}}
5600 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5605 Template:templatesimple
5611 Template:templateredirect
5613 #redirect [[Template:templatesimple]]
5617 Template:templateasargtestnum
5623 Template:templateasargtest
5625 {{template{{{templ}}}}}
5629 Template:templateasargtest2
5635 Template with template name as unnamed argument
5637 {{templateasargtestnum|templatesimple}}
5644 Template with template name as argument
5646 {{templateasargtest|templ=simple}}
5653 Template with template name as argument (2)
5655 {{templateasargtest2|templ=templatesimple}}
5662 Template:templateasargtestdefault
5664 {{{{{templ|templatesimple}}}}}
5674 Template with default value
5676 {{templateasargtestdefault}}
5683 Template with default value (value set)
5685 {{templateasargtestdefault|templ=templa}}
5694 {{templateredirect}}
5701 Template with argument in separate line
5703 {{ templateasargtest |
5711 Template with complex template as argument
5714 param ={{ templateasargtest |
5717 <p>This is a test template with parameter (test)
5722 Template with thumb image (with link in description)
5725 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
5727 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>
5732 Template:complextemplate
5734 {{{1}}} {{paramtest|
5735 param ={{{param}}}}}
5739 Template with complex arguments
5742 param ={{ templateasargtest |
5743 templ = simple }}|[[Template:complextemplate|link]]}}
5745 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5750 BUG 553: link with two variables in a piped link
5753 |[[{{{1}}}|{{{2}}}]]
5758 <td>[[{{{1}}}|{{{2}}}]]
5764 Magic variable as template parameter
5766 {{paramtest|param={{SITENAME}}}}
5768 <p>This is a test template with parameter MediaWiki
5775 [[{{{param}}}|link]]
5779 Template parameter as link source
5781 {{linktest|param=Main Page}}
5783 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5788 Template-generated attribute string (k='v')
5790 <span {{attr_str|id|v1}}>bar</span>
5792 <p><span id="v1">bar</span>
5799 including another template, {{paramtest|param={{{arg}}}}}
5803 Template passing argument to another template
5805 {{paramtest2|arg='hmm'}}
5807 <p>including another template, This is a test template with parameter 'hmm'
5818 Template as link source
5822 [[{{linktest2}}|Main Page]]
5824 [[{{linktest2}}]]Page
5826 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5827 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5828 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5846 Template infinite loop
5850 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5855 Template from main namespace
5874 BUG 529: Template with table, not included at beginning of line
5893 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5913 BUG 41: Template parameters shown as broken links
5922 Template with targets containing wikilinks
5926 {{[[{{echo|foo}}]]}}
5928 {{{{echo|[[foo}}]]}}
5930 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5931 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5939 ''None'' of '''this''' should be
5941 but rather passed unmodified
5945 # hmm, fix this or just deprecate msgnw and document its behavior?
5951 {{msgnw:MSGNW test}}
5953 <p>''None'' of '''this''' should be
5955 but rather passed unmodified
5963 {{int:youhavenewmessages|lots of money|not!}}
5965 <p>You have lots of money (not!).
5972 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5976 <includeonly> and <noinclude> being included
5987 <onlyinclude>Foo</onlyinclude>bar
5991 <onlyinclude> being included
6003 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6007 <onlyinclude> and <includeonly> being included
6016 <includeonly> and <noinclude> on a page
6018 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6025 Un-closed <noinclude>
6032 <onlyinclude> on a page
6034 <onlyinclude>Foo</onlyinclude>bar
6041 Un-closed <onlyinclude>
6048 Self-closed noinclude, includeonly, onlyinclude tags
6059 Unbalanced includeonly and noinclude tags
6063 |b</noinclude></noinclude>
6064 |c</noinclude></includeonly>
6065 |d</includeonly></includeonly>
6074 <td>c</includeonly>
6076 <td>d</includeonly></includeonly>
6082 Template:Includeonly section
6085 ==Includeonly section==
6091 Bug 6563: Edit link generation for section shown by <includeonly>
6093 {{includeonly section}}
6095 <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>
6096 <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>
6100 # Uses same input as the contents of [[Template:Includeonly section]]
6102 Bug 6563: Section extraction for section shown by <includeonly>
6107 ==Includeonly section==
6115 Bug 6563: Edit link generation for section suppressed by <includeonly>
6118 ==Includeonly section==
6122 <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>
6127 Bug 6563: Section extraction for section suppressed by <includeonly>
6132 ==Includeonly section==
6140 Un-closed <includeonly>
6147 ### <includeonly> and <noinclude> in attributes
6150 0. includeonly around the entire attribute
6152 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6154 <p><span id="v2">bar</span>
6159 1. includeonly in html attr key
6161 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6163 <p><span id="foo">bar</span>
6168 2. includeonly in html attr value
6170 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6171 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6173 <p><span id="v1">bar</span>
6174 <span id="v1">bar</span>
6179 3. includeonly in part of an attr value
6181 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6183 <p><span style="color:red;">bar</span>
6188 ### Testing parsing of templates where a template arg
6189 ### has the same name as the template itself.
6199 Templates: Template Name/Arg clash: 1. Use of positional param
6208 Templates: Template Name/Arg clash: 2. Use of named param
6217 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6226 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6230 Templates: 1. Simple use
6239 Templates: 2. Inside a block tag
6241 <div>{{echo|Foo}}</div>
6248 Templates: P-wrapping: 1a. Templates on consecutive lines
6259 Templates: P-wrapping: 1b. Templates on consecutive lines
6273 Templates: P-wrapping: 1c. Templates on consecutive lines
6276 {{echo|bar}} <div>baz</div>
6285 Templates: P-wrapping: 1d. Template preceded by comment-only line
6287 parsoid=wt2html,wt2wt
6293 <p typeof="mw:Object/Template">Bar
6298 Templates: Inline Text: 1. Multiple tmeplate uses
6300 {{echo|Foo}}bar{{echo|baz}}
6307 Templates: Inline Text: 2. Back-to-back template uses
6309 {{echo|Foo}}{{echo|bar}}
6316 Templates: Block Tags: 1. Multiple template uses
6318 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6320 <div>Foo</div><div>bar</div><div>baz</div>
6325 Templates: Block Tags: 2. Back-to-back template uses
6327 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6329 <div>Foo</div><div>bar</div>
6334 Templates: Links: 1. Simple example
6336 {{echo|[[Foo|bar]]}}
6338 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6343 Templates: Links: 2. Generation of link href
6345 [[{{echo|Foo}}|bar]]
6347 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6352 Templates: Links: 3. Generation of part of a link href
6354 [[Fo{{echo|o}}|bar]]
6358 [[Foo{{echo|bar}}baz]]
6360 [[Foo{{echo|bar}}|bar]]
6362 [[:Foo{{echo|bar}}]]
6364 [[:Foo{{echo|bar}}|bar]]
6366 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6367 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6368 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6369 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6370 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6371 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6376 Templates: Links: 4. Multiple templates generating link href
6378 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6380 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6385 Templates: Links: 5. Generation of link text
6387 [[Foo|{{echo|bar}}]]
6389 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6394 Templates: Links: 5. Nested templates (only outermost template should be marked)
6396 {{echo|[[{{echo|Foo}}|bar]]}}
6398 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6403 Templates: HTML Tag: 1. Generation of HTML attr. key
6405 <div {{echo|style}}="color:red;">foo</div>
6407 <div style="color:red;">foo</div>
6412 Templates: HTML Tag: 2. Generation of HTML attr. value
6414 <div style={{echo|'color:red;'}}>foo</div>
6416 <div style="color:red;">foo</div>
6421 Templates: HTML Tag: 3. Generation of HTML attr key and value
6423 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6425 <div style="color:red;">foo</div>
6430 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6432 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6434 <div title="This is a long title with just one piece templated">foo</div>
6439 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6441 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6443 <div title="This is a long title with just one piece templated">foo</div>
6448 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6450 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6452 <div title="This is a long title with just one piece templated">foo</div>
6457 Templates: HTML Tag: 7. Generation of partial attribute key string
6459 <div st{{echo|yle}}="color:red;">foo</div>
6461 <div style="color:red;">foo</div>
6466 Templates: HTML Tables: 1. Generating start of a HTML table
6468 {{echo|<table><tr><td>foo</td>}}</tr></table>
6470 <table><tr><td>foo</td></tr></table>
6475 Templates: HTML Tables: 2a. Generating middle of a HTML table
6477 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6479 <table><tr><td>foo</td></tr></table>
6484 Templates: HTML Tables: 2b. Generating middle of a HTML table
6486 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6488 <table><tr><td>foo</td></tr></table>
6493 Templates: HTML Tables: 3. Generating end of a HTML table
6495 <table><tr>{{echo|<td>foo</td></tr></table>}}
6497 <table><tr><td>foo</td></tr></table>
6502 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6504 {{echo|<table>}}<tr><td>foo</td></tr></table>
6506 <table><tr><td>foo</td></tr></table>
6511 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6513 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6515 <table><tr><td>foo</td></tr></table>
6520 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6522 <table><tr>{{echo|<td>}}foo</td></tr></table>
6524 <table><tr><td>foo</td></tr></table>
6529 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6531 <table><tr><td>foo{{echo|</td>}}</tr></table>
6533 <table><tr><td>foo</td></tr></table>
6538 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6540 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6542 <table><tr><td>foo</td></tr></table>
6547 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6549 <table><tr><td>foo</td></tr>{{echo|</table>}}
6551 <table><tr><td>foo</td></tr></table>
6556 Templates: Wiki Tables: 1a. Fostering of entire template content
6564 <tr><td></td></tr></table>
6569 Templates: Wiki Tables: 1b. Fostering of entire template content
6582 <tr><td></td></tr></table>
6587 Templates: Wiki Tables: 2. Fostering of partial template content
6597 <tr><td></td></tr></table>
6602 Templates: Wiki Tables: 3. td-content via multiple templates
6605 {{echo|{{pipe}}a}}{{echo|b}}
6616 Templates: Wiki Tables: 4. Templated tags, no content
6622 <tr><td></td></tr></table>
6627 Templates: Wiki Tables: 5. Templated tags, regular td-tags
6641 Templates: Wiki Tables: 6. Templated tags, templated td-tags
6655 Templates: Lists: Multi-line list-items via templates
6657 *{{echo|a {{nonexistent|
6659 *{{echo|b {{nonexistent|
6662 <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>
6663 </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>
6669 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
6671 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
6673 <p><i>ab</i>c<i>d</i>e
6678 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
6679 (PHP parser generates misnested html)
6681 parsoid=wt2html,wt2wt
6683 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
6685 <p><span typeof="mw:Object/Template"><i>a</i></span><i typeof="mw:Object/Template"><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
6689 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
6690 (PHP parser generates misnested html)
6692 parsoid=wt2html,wt2wt
6694 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
6696 <div typeof="mw:Object/Template"><i>a</i></div>
6697 <div typeof="mw:Object/Template"><i>b</i>c<i>d</i></div>
6698 <div typeof="mw:Object/Template">e</div>
6702 Templates: Ugly nesting: 4. Divs opened/closed across templates
6704 a<div>b{{echo|c</div>d}}e
6711 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
6717 |{{echo|foo</table>}}
6721 <table typeof="mw:Object/Template">
6724 <td>foo</td></tr></tbody></table><span>bar</span>
6728 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
6738 <td>1. {{echo|foo </table>}}</td>
6740 <td>2. {{echo|baz </table>}}</td>
6753 <table about="#mwt1" typeof="mw:Object/Template">
6758 <td >1. foo </td></tr></tbody></table></td>
6760 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
6761 </span><span about="#mwt1">
6763 abc</span><span about="#mwt1">
6764 </span><span about="#mwt1">
6765 </span><span about="#mwt1">
6766 </span><span about="#mwt1">
6767 </span><span about="#mwt1">
6769 xyz</span><span about="#mwt1">
6770 </span><span about="#mwt1">
6775 Templates: Ugly templates: 3. newline-only template parameter
6784 # This looks like a bug: a single newline triggers p/br for some reason.
6786 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6797 Parser Functions: 1. Simple example
6806 Parser Functions: 2. Nested use (only outermost should be marked up)
6815 ### Pre-save transform tests
6818 pre-save transform: subst:
6824 This is a test template
6828 pre-save transform: normal template
6838 pre-save transform: nonexistent template
6842 {{thistemplatedoesnotexist}}
6844 {{thistemplatedoesnotexist}}
6849 pre-save transform: subst magic variables
6858 # This is bug 89, which I fixed. -- wtm
6860 pre-save transform: subst: templates with parameters
6864 {{subst:paramtest|param="something else"}}
6866 This is a test template with parameter "something else"
6872 <nowiki>'''not wiki'''</nowiki>
6876 pre-save transform: nowiki in subst (bug 1188)
6880 {{subst:nowikitest}}
6882 <nowiki>'''not wiki'''</nowiki>
6887 Template:commenttest
6889 This template has <!-- a comment --> in it.
6893 pre-save transform: comment in subst (bug 1936)
6897 {{subst:commenttest}}
6899 This template has <!-- a comment --> in it.
6903 pre-save transform: unclosed tag
6907 <nowiki>'''not wiki'''
6909 <nowiki>'''not wiki'''
6913 pre-save transform: mixed tag case
6917 <NOwiki>'''not wiki'''</noWIKI>
6919 <NOwiki>'''not wiki'''</noWIKI>
6923 pre-save transform: unclosed comment in <nowiki>
6927 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6929 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6932 # Leading @ in this template definition works around a limitation
6933 # in parsoid's parserTests which otherwise strips the <span> from the
6934 # result (confusing it for a template wrapper)
6938 @<span onmouseover="alert('crap')">Oh no</span>
6942 (confirming safety of fix for subst bug 1936)
6944 {{Template:dangerous}}
6946 <p>@<span>Oh no</span>
6951 pre-save transform: comment containing gallery (bug 5024)
6955 <!-- <gallery>data</gallery> -->
6957 <!-- <gallery>data</gallery> -->
6961 pre-save transform: comment containing extension
6965 <!-- <tag>data</tag> -->
6967 <!-- <tag>data</tag> -->
6971 pre-save transform: comment containing nowiki
6975 <!-- <nowiki>data</nowiki> -->
6977 <!-- <nowiki>data</nowiki> -->
6981 pre-save transform: <noinclude> in subst (bug 3298)
6991 pre-save transform: <onlyinclude> in subst (bug 3298)
7003 {{<includeonly>subst:</includeonly>Includes}}
7007 Template:SafeSubstTest
7009 {{<includeonly>safesubst:</includeonly>Includes}}
7013 bug 22297: safesubst: works during PST
7017 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7023 bug 22297: safesubst: works during normal parse
7032 subst: does not work during normal parse
7036 <p>{{subst:Includes}}
7041 pre-save transform: context links ("pipe trick")
7045 [[Article (context)|]]
7048 [[Bar:Article (context)|]]
7049 [[:Bar:Article (context)|]]
7051 [[|Article (context)]]
7055 [[Article (context)|Article]]
7056 [[Bar:Article|Article]]
7057 [[:Bar:Article|Article]]
7058 [[Bar:Article (context)|Article]]
7059 [[:Bar:Article (context)|Article]]
7061 [[Article (context)]]
7062 [[Bar:X (Y) Z|X (Y) Z]]
7063 [[:Bar:X (Y) Z|X (Y) Z]]
7067 pre-save transform: context links ("pipe trick") with interwiki prefix
7071 [[interwiki:Article|]]
7072 [[:interwiki:Article|]]
7073 [[interwiki:Bar:Article|]]
7074 [[:interwiki:Bar:Article|]]
7076 [[interwiki:Article|Article]]
7077 [[:interwiki:Article|Article]]
7078 [[interwiki:Bar:Article|Bar:Article]]
7079 [[:interwiki:Bar:Article|Bar:Article]]
7083 pre-save transform: context links ("pipe trick") with parens in title
7085 pst title=[[Somearticle (context)]]
7089 [[Article (context)|Article]]
7093 pre-save transform: context links ("pipe trick") with comma in title
7095 pst title=[[Someplace, Somewhere]]
7098 [[Otherplace, Elsewhere|]]
7099 [[Otherplace, Elsewhere, Anywhere|]]
7101 [[Otherplace, Somewhere|Otherplace]]
7102 [[Otherplace, Elsewhere|Otherplace]]
7103 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7107 pre-save transform: context links ("pipe trick") with parens and comma
7109 pst title=[[Someplace (IGNORED), Somewhere]]
7112 [[Otherplace (place), Elsewhere|]]
7114 [[Otherplace, Somewhere|Otherplace]]
7115 [[Otherplace (place), Elsewhere|Otherplace]]
7119 pre-save transform: context links ("pipe trick") with comma and parens
7121 pst title=[[Who, me? (context)]]
7124 [[Me, Myself, and I (1937 song)|]]
7126 [[Yes, you. (context)|Yes, you.]]
7127 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7131 pre-save transform: context links ("pipe trick") with namespace
7133 pst title=[[Ns:Somearticle]]
7137 [[Ns:Article|Article]]
7141 pre-save transform: context links ("pipe trick") with namespace and parens
7143 pst title=[[Ns:Somearticle (context)]]
7147 [[Ns:Article (context)|Article]]
7151 pre-save transform: context links ("pipe trick") with namespace and comma
7153 pst title=[[Ns:Somearticle, Context, Whatever]]
7157 [[Ns:Article, Context, Whatever|Article]]
7161 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7163 pst title=[[Ns:Somearticle, Context (context)]]
7167 [[Ns:Article (context)|Article]]
7171 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7173 pst title=[[Ns:Somearticle (IGNORED), Context]]
7177 [[Ns:Article, Context|Article]]
7181 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7185 [[Article(context)|]]
7186 [[Bar:Article(context)|]]
7187 [[:Bar:Article(context)|]]
7188 [[|Article(context)]]
7192 [[Article(context)|Article]]
7193 [[Bar:Article(context)|Article]]
7194 [[:Bar:Article(context)|Article]]
7195 [[Article(context)]]
7197 [[:Bar:X(Y)Z|X(Y)Z]]
7201 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7205 [[Article (context)|]]
7206 [[Bar:Article (context)|]]
7207 [[:Bar:Article (context)|]]
7208 [[|Article (context)]]
7212 [[Article (context)|Article]]
7213 [[Bar:Article (context)|Article]]
7214 [[:Bar:Article (context)|Article]]
7215 [[Article (context)]]
7216 [[Bar:X (Y) Z|X (Y) Z]]
7217 [[:Bar:X (Y) Z|X (Y) Z]]
7221 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7225 [[Article(context)|]]
7226 [[Bar:Article(context)|]]
7227 [[:Bar:Article(context)|]]
7228 [[|Article(context)]]
7232 [[Article(context)|Article]]
7233 [[Bar:Article(context)|Article]]
7234 [[:Bar:Article(context)|Article]]
7235 [[Article(context)]]
7237 [[:Bar:X(Y)Z|X(Y)Z]]
7241 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7245 [[Article (context), context|]]
7246 [[Article (context),context|]]
7247 [[Bar:Article (context), context|]]
7248 [[Bar:Article (context),context|]]
7249 [[:Bar:Article (context), context|]]
7250 [[:Bar:Article (context),context|]]
7252 [[Article (context), context|Article]]
7253 [[Article (context),context|Article]]
7254 [[Bar:Article (context), context|Article]]
7255 [[Bar:Article (context),context|Article]]
7256 [[:Bar:Article (context), context|Article]]
7257 [[:Bar:Article (context),context|Article]]
7261 pre-save transform: trim trailing empty lines
7265 Empty lines are trimmed
7271 Empty lines are trimmed
7275 pre-save transform: Signature expansion
7280 * <noinclude>~~~</noinclude>
7281 * <includeonly>~~~</includeonly>
7282 * <onlyinclude>~~~</onlyinclude>
7284 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7285 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7286 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7287 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7292 pre-save transform: Signature expansion in nowiki tags (bug 93)
7298 <nowiki>~~~~</nowiki>
7300 <includeonly><nowiki>~~~~</nowiki></includeonly>
7302 <noinclude><nowiki>~~~~</nowiki></noinclude>
7304 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7306 {{subst:Foo}} shall be converted to FOO
7308 As well as inside noinclude/onlyinclude
7309 <noinclude>{{subst:Foo}}</noinclude>
7310 <onlyinclude>{{subst:Foo}}</onlyinclude>
7312 But not inside includeonly
7313 <includeonly>{{subst:Foo}}</includeonly>
7317 <nowiki>~~~~</nowiki>
7319 <includeonly><nowiki>~~~~</nowiki></includeonly>
7321 <noinclude><nowiki>~~~~</nowiki></noinclude>
7323 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7325 FOO shall be converted to FOO
7327 As well as inside noinclude/onlyinclude
7328 <noinclude>FOO</noinclude>
7329 <onlyinclude>FOO</onlyinclude>
7331 But not inside includeonly
7332 <includeonly>{{subst:Foo}}</includeonly>
7336 ### Message transform tests
7339 message transform: magic variables
7349 message transform: should not transform wiki markup
7359 message transform: <noinclude> in transcluded template (bug 4926)
7369 message transform: <onlyinclude> in transcluded template (bug 4926)
7379 {{#special:}} page name, known
7383 {{#special:Recentchanges}}
7385 Special:RecentChanges
7389 {{#special:}} page name with subpage, known
7393 {{#special:Recentchanges/param}}
7395 Special:RecentChanges/param
7399 {{#special:}} page name, unknown
7403 {{#special:foobarnonexistent}}
7405 No such special page
7409 {{#speciale:}} page name, known
7413 {{#speciale:Recentchanges}}
7415 Special:RecentChanges
7419 {{#speciale:}} page name with subpage, known
7423 {{#speciale:Recentchanges/param}}
7425 Special:RecentChanges/param
7429 {{#speciale:}} page name, unknown
7433 {{#speciale:foobarnonexistent}}
7435 No_such_special_page
7444 [[Image:foobar.jpg]]
7446 <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>
7453 [[Image:foobar.jpg|right]]
7455 <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>
7460 Simple image (using File: namespace, now canonical)
7464 <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>
7471 [[Image:foobar.jpg|right|Caption text]]
7473 <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>
7478 Image with empty attribute
7480 [[Image:foobar.jpg|right||Caption text]]
7482 <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>
7487 Image with link tails
7489 123[[Image:foobar.jpg]]456
7490 123[[Image:foobar.jpg|right]]456
7491 123[[Image:foobar.jpg|thumb]]456
7493 <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
7495 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
7496 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
7501 Image with multiple captions -- only last one is accepted
7503 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7505 <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>
7510 Image with width attribute at different positions
7512 [[Image:foobar.jpg|200px|right|Caption]]
7513 [[Image:foobar.jpg|right|200px|Caption]]
7514 [[Image:foobar.jpg|right|Caption|200px]]
7516 <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>
7517 <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>
7518 <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>
7523 Image with link parameter, wiki target
7525 [[Image:foobar.jpg|link=Target page]]
7527 <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>
7532 Image with link parameter, URL target
7534 [[Image:foobar.jpg|link=http://example.com/]]
7536 <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>
7541 Image with link parameter, wgExternalLinkTarget
7543 [[Image:foobar.jpg|link=http://example.com/]]
7545 wgExternalLinkTarget='foobar'
7547 <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>
7552 Image with link parameter, wgNoFollowLinks set to false
7554 [[Image:foobar.jpg|link=http://example.com/]]
7556 wgNoFollowLinks=false
7558 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7563 Image with link parameter, wgNoFollowDomainExceptions
7565 [[Image:foobar.jpg|link=http://example.com/]]
7567 wgNoFollowDomainExceptions='example.com'
7569 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7574 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7576 [[Image:foobar.jpg|link=http://example.com/|Title]]
7578 wgExternalLinkTarget='foobar'
7580 <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>
7585 Image with empty link parameter
7587 [[Image:foobar.jpg|link=]]
7589 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7594 Image with link parameter (wiki target) and unnamed parameter
7596 [[Image:foobar.jpg|link=Target page|Title]]
7598 <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>
7603 Image with link parameter (URL target) and unnamed parameter
7605 [[Image:foobar.jpg|link=http://example.com/|Title]]
7607 <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>
7612 Thumbnail image with link parameter
7616 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
7618 <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>
7623 Manually-specified thumbnail image
7627 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
7629 <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>
7634 Manually-specified thumbnail image with explicit link to wiki page
7638 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
7640 <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>
7645 Manually-specified thumbnail image with explicit link to url
7649 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
7651 <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>
7656 Manually-specified thumbnail image with explicit no link
7660 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
7662 <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>
7667 Manually-specified thumbnail image with explicit link and alt text
7671 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
7673 <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>
7678 Image with frame and link
7680 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
7682 <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>
7687 Image with frame and link and explicit alt
7689 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
7691 <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>
7696 Image with wiki markup in implicit alt
7698 [[Image:Foobar.jpg|testing '''bold''' in alt]]
7700 <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>
7705 Image with wiki markup in explicit alt
7707 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
7709 <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>
7714 Link to image page- image page normally doesn't exists, hence edit link
7715 Add test with existing image page
7716 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
7720 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
7725 bug 18784 Link to non-existent image page with caption should use caption as link text
7727 [[:Image:test|caption]]
7729 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
7734 Frameless image caption with a free URL
7736 [[Image:foobar.jpg|http://example.com]]
7738 <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>
7743 Thumbnail image caption with a free URL
7745 [[Image:foobar.jpg|thumb|http://example.com]]
7747 <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>
7752 Thumbnail image caption with a free URL and explicit alt
7754 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
7756 <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>
7761 BUG 1887: A ISBN with a thumbnail
7763 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
7765 <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>
7770 BUG 1887: A RFC with a thumbnail
7772 [[Image:foobar.jpg|thumb|This is RFC 12354]]
7774 <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>
7779 BUG 1887: A mailto link with a thumbnail
7781 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
7783 <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>
7787 # Pending resolution to bug 368
7789 BUG 648: Frameless image caption with a link
7791 [[Image:foobar.jpg|text with a [[link]] in it]]
7793 <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>
7798 BUG 648: Frameless image caption with a link (suffix)
7800 [[Image:foobar.jpg|text with a [[link]]foo in it]]
7802 <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>
7807 BUG 648: Frameless image caption with an interwiki link
7809 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
7811 <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>
7816 BUG 648: Frameless image caption with a piped interwiki link
7818 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7820 <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>
7825 Escape HTML special chars in image alt text
7827 [[Image:foobar.jpg|& < > "]]
7829 <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>
7834 BUG 499: Alt text should have Ӓ, not &1234;
7836 [[Image:foobar.jpg|♀]]
7838 <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>
7843 Broken image caption with link
7845 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7847 <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.
7852 Image caption containing another image
7854 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7856 <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>
7861 Image caption containing a newline
7863 [[Image:Foobar.jpg|This
7866 <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>
7871 Parsoid: Image caption containing leading space
7872 (The leading space should not trigger nowiki escaping in wt2wt mode)
7874 [[Image:Foobar.jpg|thumb| bar]]
7876 <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>
7881 Bug 3090: External links other than http: in image captions
7883 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7885 <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>
7892 [[Image:foobar.jpg|a|class=b]]
7894 <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>
7899 Localized image handling (1).
7903 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
7905 <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>
7910 Localized image handling (2).
7914 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
7916 <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>
7921 "border", "frameless" and "class" attributes on an image.
7923 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
7925 <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>
7932 #REDIRECT [[File:Barfoo.jpg]]
7938 [[Image:Barfoo.jpg]]
7940 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7945 Missing image with uploads disabled
7949 [[Image:Foobaz.jpg]]
7951 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7955 # Parsoid-specific testing for images
7956 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
7957 # Currently imperfect due to a flaw in the Parsoid testrunner
7961 Parsoid-specific image handling - simple image
7965 [[Image:Foobar.jpg]]
7968 <span class="mw-default-size" typeof="mw:Image">
7969 <a href="File:Foobar.jpg">
7970 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
7977 Parsoid-specific image handling - simple image without link
7981 [[Image:Foobar.jpg|link=]]
7984 <span class="mw-default-size" typeof="mw:Image">
7986 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
7993 Parsoid-specific image handling - simple image with specific link
7997 [[Image:Foobar.jpg|link=Main Page]]
8000 <span class="mw-default-size" typeof="mw:Image">
8001 <a href="Main_Page">
8002 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8009 Parsoid-specific image handling - simple image with size and middle alignment
8013 [[Image:Foobar.jpg|50px|middle]]
8016 <span class="mw-valign-middle" typeof="mw:Image">
8017 <a href="File:Foobar.jpg">
8018 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8025 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8029 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8032 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
8033 <a href="File:Foobar.jpg">
8034 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
8041 Parsoid-specific image handling - simple image with border and size spec
8045 [[Image:Foobar.jpg|50px|border|caption]]
8048 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8049 <a href="File:Foobar.jpg">
8050 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8057 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8061 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8063 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8064 <a href="File:Foobar.jpg">
8065 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8067 <figcaption class="mw-figcaption">caption content</figcaption>
8072 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8076 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
8078 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
8079 <a href="File:Foobar.jpg">
8080 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
8082 <figcaption class="mw-figcaption">caption</figcaption>
8087 Parsoid-specific image handling - framed image with specific size and caption
8091 [[Image:Foobar.jpg|500x50px|frame|caption]]
8093 <figure typeof="mw:Image/Frame">
8094 <a href="File:Foobar.jpg">
8095 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8097 <figcaption class="mw-figcaption">caption</figcaption>
8102 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
8106 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
8108 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
8109 <a href="File:Foobar.jpg">
8110 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8112 <figcaption class="mw-figcaption">caption</figcaption>
8117 Parsoid-specific image handling - frameless image with specific size, border, and caption
8121 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
8124 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
8125 <a href="File:Foobar.jpg">
8126 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8132 #Parsoid-specific image handling - simple image with a formatted caption
8136 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
8139 #<span typeof="mw:Image">
8140 #<a class="mw-default-size" href="Image:Foobar.jpg">
8141 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8152 Subpage test/subpage
8160 subpage title=[[Subpage test]]
8164 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
8169 Subpage noslash link
8171 subpage title=[[Subpage test]]
8175 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
8184 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
8189 BUG 561: {{/Subpage}}
8191 subpage title=[[Page]]
8195 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
8203 Category:MediaWiki User's Guide
8211 [[:Category:MediaWiki User's Guide]]
8213 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
8222 [[Category:MediaWiki User's Guide]]
8224 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8228 PAGESINCATEGORY invalid title fatal (r33546 fix)
8230 {{PAGESINCATEGORY:<bogus>}}
8237 Category with different sort key
8241 [[Category:MediaWiki User's Guide|Foo]]
8243 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8247 Category with identical sort key
8251 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8253 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8257 Category with empty sort key
8262 [[Category:MediaWiki User's Guide|]]
8264 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8268 Category with empty sort key and parentheses
8273 [[Category:Foo (bar)|]]
8275 [[Category:Foo (bar)|Foo]]
8279 Category with link tail
8284 123[[Category:Foo]]456
8286 123[[Category:Foo]]456
8290 Category with template
8295 [[Category:{{echo|Foo}}]]
8297 [[Category:{{echo|Foo}}]]
8301 Category with template in sort key
8306 [[Category:Foo|{{echo|Bar}}]]
8308 [[Category:Foo|{{echo|Bar}}]]
8312 Category with template in sort key and title
8317 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8319 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8323 Category / paragraph interactions
8325 Foo [[Category:Baz]] Bar
8327 Foo [[Category:Baz]]
8335 [[Category:Baz]] Bar
8348 {{echo|[[Category:Baz]]}}
8363 ### Inter-language links
8366 Inter-language links
8372 [[zh:食品]]
8374 es:Alimento fr:Nourriture zh:食品
8378 Duplicate interlanguage links (bug 24502)
8394 Basic section headings
8401 ===Smaller headline===
8404 <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>
8407 <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>
8410 <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>
8416 Section headings with TOC
8419 === Subheadline 1 ===
8420 ===== Skipping a level =====
8421 ====== Skipping a level ======
8425 ===Another headline===
8427 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8429 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8431 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8433 <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>
8435 <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>
8442 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8444 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8449 <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>
8450 <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>
8451 <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>
8452 <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>
8453 <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>
8456 <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>
8460 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8462 Handling of sections up to level 6 and beyond
8465 == Level 2 Heading==
8466 === Level 3 Heading===
8467 ==== Level 4 Heading====
8468 ===== Level 5 Heading=====
8469 ====== Level 6 Heading======
8470 ======= Level 7 Heading=======
8471 ======== Level 8 Heading========
8472 ========= Level 9 Heading=========
8473 ========== Level 10 Heading==========
8475 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8477 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8479 <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>
8481 <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>
8483 <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>
8485 <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>
8487 <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>
8488 <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>
8489 <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>
8490 <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>
8491 <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>
8504 <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>
8505 <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>
8506 <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>
8507 <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>
8508 <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>
8509 <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>
8510 <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>
8511 <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>
8512 <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>
8513 <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>
8518 TOC regression (bug 9764)
8522 ==== title 1.1.1 ====
8527 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8529 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8531 <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>
8533 <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>
8536 <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>
8539 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8541 <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>
8546 <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>
8547 <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>
8548 <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>
8549 <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>
8550 <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>
8551 <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>
8556 TOC with wgMaxTocLevel=3 (bug 6204)
8562 ==== title 1.1.1 ====
8567 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8569 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8571 <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>
8572 <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>
8575 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8577 <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>
8582 <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>
8583 <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>
8584 <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>
8585 <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>
8586 <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>
8587 <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>
8592 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
8598 ====Section 1.1.1====
8599 ====Section 1.1.1.1====
8602 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8604 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
8606 <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>
8609 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
8612 <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>
8613 <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>
8614 <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>
8615 <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>
8616 <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>
8622 Resolving duplicate section names
8627 <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>
8628 <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>
8633 Resolving duplicate section names with differing case (bug 10721)
8638 <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>
8639 <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>
8651 Template with sections, __NOTOC__
8658 <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>
8659 <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>
8660 <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>
8661 <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>
8666 __NOEDITSECTION__ keyword
8672 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
8673 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
8678 Link inside a section heading
8680 ==Section with a [[Main Page|link]] in it==
8682 <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>
8687 TOC regression (bug 12077)
8694 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8696 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8698 <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>
8701 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
8704 <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>
8705 <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>
8706 <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>
8711 BUG 1219 URL next to image (good)
8713 http://example.com [[Image:foobar.jpg]]
8715 <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>
8720 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
8723 The line above must have a trailing space!
8726 But just in case it doesn't...
8728 <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>
8729 <p>The line above must have a trailing space!
8731 <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>
8732 <p>But just in case it doesn't...
8737 Header with special characters (bug 25462)
8739 The tooltips shall not show entities to the user (ie. be double escaped)
8756 <p>The tooltips shall not show entities to the user (ie. be double escaped)
8758 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8760 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
8761 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
8762 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
8763 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
8764 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
8767 <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>
8770 <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>
8773 <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>
8776 <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>
8779 <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>
8785 Headers with excess '=' characters
8786 (Are similar tests necessary beyond the 1st level?)
8790 =''italic'' heading==
8791 ==''italic'' heading=
8793 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8795 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
8796 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
8797 <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>
8798 <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>
8801 <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>
8802 <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>
8803 <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>
8804 <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>
8809 HTML headers vs TOC (bug 23393)
8810 (__NOEDITSECTION__ for clearer output, doesn't matter here)
8822 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8824 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
8826 <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>
8827 <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>
8830 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
8832 <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>
8833 <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>
8838 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
8839 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
8840 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
8841 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
8842 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
8843 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
8848 BUG 1219 URL next to image (broken)
8850 http://example.com[[Image:foobar.jpg]]
8852 <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>
8857 Bug 1186 news: in the middle of text
8859 http://en.wikinews.org/wiki/Wikinews:Workplace
8861 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
8867 Namespaced link must have a title
8876 Namespaced link must have a title (bad fragment version)
8878 [[Project:#fragment]]
8880 <p>[[Project:#fragment]]
8886 ### HTML tags and HTML attributes
8890 div with no attributes
8892 <div>HTML rocks</div>
8894 <div>HTML rocks</div>
8899 div with double-quoted attribute
8901 <div id="rock">HTML rocks</div>
8903 <div id="rock">HTML rocks</div>
8908 div with single-quoted attribute
8910 <div id='rock'>HTML rocks</div>
8912 <div id="rock">HTML rocks</div>
8917 div with unquoted attribute
8919 <div id=rock>HTML rocks</div>
8921 <div id="rock">HTML rocks</div>
8926 div with illegal double attributes
8928 <div id="a" id="b">HTML rocks</div>
8930 <div id="b">HTML rocks</div>
8934 # FIXME: produce empty string instead of "class" in the PHP parser, following
8937 div with empty attribute value, space before equals
8941 <div class =>HTML rocks</div>
8943 <div class="">HTML rocks</div>
8947 # The PHP parser escapes the opening brace to { for some reason, so
8948 # disabled this test for it.
8950 div with braces in attribute value
8954 <div title="{}">Foo</div>
8956 <div title="{}">Foo</div>
8959 # This it very inconsistent in the PHP parser: it returns
8960 # class="class" if there is a space between the name and the equal sign (see
8961 # 'div with empty attribute value, space before equals'), but strips the
8962 # attribute completely if the space is missing. We hope that not much content
8963 # depends on this, so are implementing the behavior below in Parsoid for
8964 # consistencies' sake. Disabled for the PHP parser.
8965 # FIXME: fix this behavior in the PHP parser?
8967 div with empty attribute value, no space before equals
8971 <div class=>HTML rocks</div>
8973 <div class="">HTML rocks</div>
8978 HTML multiple attributes correction
8980 <p class="error" class="awesome">Awesome!</p>
8982 <p class="awesome">Awesome!</p>
8987 Table multiple attributes correction
8990 !+ class="error" class="awesome"| status
8995 <th class="awesome"> status
9003 <DIV ID="x">HTML ROCKS</DIV>
9005 <div id="x">HTML ROCKS</div>
9010 Non-ASCII pseudo-tags are rendered as text
9019 Pseudo-tag with URL 'name' renders as url link
9021 <http://example.com/>
9023 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
9028 text with amp in the middle of nowhere
9032 <p>Remember AT&T?
9037 text with character entity: eacute
9039 I always thought é was a cute letter.
9041 <p>I always thought é was a cute letter.
9046 text with entity-escaped character entity-like string: eacute
9048 I always thought &eacute; was a cute letter.
9050 <p>I always thought &eacute; was a cute letter.
9055 text with undefined character entity: xacute
9057 I always thought &xacute; was a cute letter.
9059 <p>I always thought &xacute; was a cute letter.
9071 [[Media:Foobar.jpg]]
9073 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
9078 Media link with text
9080 [[Media:Foobar.jpg|A neat file to look at]]
9082 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
9086 # FIXME: this is still bad HTML tag nesting
9088 Media link with nasty text
9089 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
9091 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
9093 <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>
9098 Media link to nonexistent file (bug 1702)
9100 [[Media:No such.jpg]]
9102 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
9107 Image link to nonexistent file (bug 1850 - good)
9109 [[Image:No such.jpg]]
9111 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
9116 :Image link to nonexistent file (bug 1850 - bad)
9118 [[:Image:No such.jpg]]
9120 <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>
9127 Character reference normalization in link text (bug 1938)
9129 [[Main Page|this&that]]
9131 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
9138 Test for unicode normalization
9140 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
9144 (bug 19451) Links should refer to the normalized form.
9152 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9153 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9154 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9155 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9156 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9161 Empty attribute crash test (bug 2067)
9163 <font color="">foo</font>
9165 <p><font color="">foo</font>
9170 Empty attribute crash test single-quotes (bug 2067)
9172 <font color=''>foo</font>
9174 <p><font color="">foo</font>
9179 Attribute test: equals, then nothing
9181 <font color=>foo</font>
9188 Attribute test: unquoted value
9190 <font color=x>foo</font>
9192 <p><font color="x">foo</font>
9197 Attribute test: unquoted but illegal value (hash)
9199 <font color=#x>foo</font>
9201 <p><font color="#x">foo</font>
9206 Attribute test: no value
9208 <font color>foo</font>
9210 <p><font color="color">foo</font>
9215 Bug 2095: link with three closing brackets
9219 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
9224 Bug 2095: link with pipe and three closing brackets
9228 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
9233 Bug 2095: link with pipe and three closing brackets, version 2
9235 [[Main Page|[http://example.com/]]]
9237 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9247 Template:Dangerous attribute
9249 " onmouseover="alert(document.cookie)
9253 Template:Dangerous style attribute
9255 border-size: expression(alert(document.cookie))
9261 <div style="float: right; {{{1}}}">Magic div</div>
9265 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9267 <div title="{{test}}"></div>
9269 <div title="This is a test template"></div>
9274 Bug 2304: HTML attribute safety (dangerous template; 2309)
9276 <div title="{{dangerous attribute}}"></div>
9278 <div title=""></div>
9283 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9285 <div style="{{dangerous style attribute}}"></div>
9287 <div style="/* insecure input */"></div>
9292 Bug 2304: HTML attribute safety (safe parameter; 2309)
9294 {{div style|width: 200px}}
9296 <div style="float: right; width: 200px">Magic div</div>
9301 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9303 {{div style|width: expression(alert(document.cookie))}}
9305 <div style="/* insecure input */">Magic div</div>
9310 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9312 {{div style|"><script>alert(document.cookie)</script>}}
9314 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9319 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9321 {{div style|" ><script>alert(document.cookie)</script>}}
9323 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9328 Bug 2304: HTML attribute safety (link)
9330 <div title="[[Main Page]]"></div>
9332 <div title="[[Main Page]]"></div>
9337 Bug 2304: HTML attribute safety (italics)
9339 <div title="''foobar''"></div>
9341 <div title="''foobar''"></div>
9346 Bug 2304: HTML attribute safety (bold)
9348 <div title="'''foobar'''"></div>
9350 <div title="'''foobar'''"></div>
9356 Bug 2304: HTML attribute safety (ISBN)
9358 <div title="ISBN 1234567890"></div>
9360 <div title="ISBN 1234567890"></div>
9365 Bug 2304: HTML attribute safety (RFC)
9367 <div title="RFC 1234"></div>
9369 <div title="RFC 1234"></div>
9374 Bug 2304: HTML attribute safety (PMID)
9376 <div title="PMID 1234567890"></div>
9378 <div title="PMID 1234567890"></div>
9383 Bug 2304: HTML attribute safety (web link)
9385 <div title="http://example.com/"></div>
9387 <div title="http://example.com/"></div>
9392 Bug 2304: HTML attribute safety (named web link)
9394 <div title="[http://example.com/ link]"></div>
9396 <div title="[http://example.com/ link]"></div>
9401 Bug 3244: HTML attribute safety (extension; safe)
9403 <div style="<nowiki>background:blue</nowiki>"></div>
9405 <div style="background:blue"></div>
9410 Bug 3244: HTML attribute safety (extension; unsafe)
9412 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9414 <div style="/* insecure input */"></div>
9418 # More MSIE fun discovered by Tom Gilder
9421 MSIE CSS safety test: spurious slash
9423 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9425 <div style="/* insecure input */">evil</div>
9430 MSIE CSS safety test: hex code
9432 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9434 <div style="/* insecure input */">evil</div>
9439 MSIE CSS safety test: comment in url
9441 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9443 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
9448 MSIE CSS safety test: comment in expression
9450 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
9452 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
9458 Table attribute legitimate extension
9461 !+ style="<nowiki>color:blue</nowiki>"| status
9466 <th style="color:blue"> status
9472 Table attribute safety
9475 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
9480 <th style="/* insecure input */"> status
9486 CSS line continuation 1
9488 <div style="background-image: u\ rl(test.jpg);"></div>
9490 <div style="/* insecure input */"></div>
9495 CSS line continuation 2
9497 <div style="background-image: u\ rl(test.jpg); "></div>
9499 <div style="/* insecure input */"></div>
9510 Expansion of multi-line templates in attribute values (bug 6255)
9512 <div style="background: {{identity|#00FF00}}">-</div>
9514 <div style="background: #00FF00">-</div>
9520 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
9522 <div style="background:
9525 <div style="background: #00FF00">-</div>
9530 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
9532 <div style="background: #00FF00">-</div>
9534 <div style="background: #00FF00">-</div>
9539 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
9542 Parser hook: empty input
9555 Parser hook: empty input using terminated empty elements
9568 Parser hook: empty input using terminated empty elements (space before)
9581 Parser hook: basic input
9595 Parser hook: case insensitive
9609 Parser hook: case insensitive, redux
9622 Parser hook: nested tags
9626 <tag><tag></tag></tag>
9637 Parser hook: basic arguments
9639 <tag width=200 height = "100" depth = '50' square></tag>
9647 'square' => 'square',
9654 Parser hook: argument containing a forward slash (bug 5344)
9656 <tag filename='/tmp/bla'></tag>
9661 'filename' => '/tmp/bla',
9668 Parser hook: empty input using terminated empty elements (bug 2374)
9681 # </tag> should be output literally since there is no matching tag that begins it
9683 Parser hook: basic arguments using terminated empty elements (bug 2374)
9685 <tag width=200 height = "100" depth = '50' square/>
9695 'square' => 'square',
9704 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
9708 Parser hook: static parser hook not inside a comment
9710 <statictag>hello, world</statictag>
9711 <statictag action=flush/>
9719 Parser hook: static parser hook inside a comment
9721 <!-- <statictag>hello, world</statictag> -->
9722 <statictag action=flush/>
9728 # Nested template calls; this case was broken by Parser.php rev 1.506,
9732 Template:One-parameter
9734 (My parameter is: {{{1}}})
9738 Template:Map-one-parameter
9744 Nested template calls
9746 {{Map-one-parameter|One-parameter|param}}
9748 <p>(My parameter is: param)
9757 Sanitizer: Closing of open tags
9759 <s></s><table></table>
9761 <s></s><table></table>
9766 Sanitizer: Closing of open but not closed tags
9775 Sanitizer: Closing of closed but not open tags
9784 Sanitizer: Closing of closed but not open table tags
9786 Table not started</td></tr></table>
9788 <p>Table not started</td></tr></table>
9793 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
9795 <span id="æ: v">byte</span>[[#æ: v|backlink]]
9797 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
9802 Sanitizer: Validating the contents of the id attribute (bug 4515)
9808 Something, but definitely not <br id="9" />...
9812 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
9816 <br id="foo" /><br id="foo" />
9818 Something need to be done. foo-2 ?
9822 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
9825 <meta itemprop="hello" content="world">
9826 <meta http-equiv="refresh" content="5">
9827 <meta itemprop="hello" http-equiv="refresh" content="5">
9828 <link itemprop="hello" href="{{SERVER}}">
9829 <link rel="stylesheet" href="{{SERVER}}">
9830 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
9833 <div itemscope="itemscope">
9834 <p> <meta itemprop="hello" content="world" />
9835 <meta http-equiv="refresh" content="5">
9836 <meta itemprop="hello" content="5" />
9838 <link itemprop="hello" href="http://example.org" />
9839 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
9840 <link itemprop="hello" href="http://example.org" />
9846 Language converter: output gets cut off unexpectedly (bug 5757)
9850 this bit is safe: }-
9852 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
9854 then we get cut off here: }-
9856 all additional text is vanished
9858 <p>this bit is safe: }-
9859 </p><p>but if we add a conversion instance: xxx
9860 </p><p>then we get cut off here: }-
9861 </p><p>all additional text is vanished
9866 Self closed html pairs (bug 5487)
9869 <center><font id="bug" />Centered text</center>
9870 <div><font id="bug2" />In div text</div>
9872 <center><font id="bug" />Centered text</center>
9873 <div><font id="bug2" />In div text</div>
9882 Punctuation: nbsp before exclamation
9886 <p>C'est grave !
9891 Punctuation: CSS !important (bug 11874)
9893 <div style="width:50% !important">important</div>
9895 <div style="width:50% !important">important</div>
9900 Punctuation: CSS ! important (bug 11874; with space after)
9902 <div style="width:50% ! important">important</div>
9904 <div style="width:50% ! important">important</div>
9910 HTML bullet list, closed tags (bug 5497)
9925 HTML bullet list, unclosed tags (bug 5497)
9942 HTML ordered list, closed tags (bug 5497)
9957 HTML ordered list, unclosed tags (bug 5497)
9974 HTML nested bullet list, closed tags (bug 5497)
9999 HTML nested bullet list, open tags (bug 5497)
10024 HTML nested ordered list, closed tags (bug 5497)
10049 HTML nested ordered list, open tags (bug 5497)
10074 HTML ordered list item with parameters oddity
10076 <ol><li id="fragment">One</li></ol>
10078 <ol><li id="fragment">One</li></ol>
10083 bug 5918: autonumbering
10085 [http://first/] [http://second] [ftp://ftp]
10089 [mailto:enclosed@mail.tld With target]
10091 [mailto:enclosed@mail.tld]
10093 mailto:inline@mail.tld
10095 <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>
10096 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
10097 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
10098 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
10099 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
10105 # Security and HTML correctness
10106 # From Nick Jenkins' fuzz testing
10110 Fuzz testing: Parser13
10125 Fuzz testing: Parser14
10130 <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>
10131 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10133 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
10140 Fuzz testing: Parser14-table
10145 <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>
10146 <table style="__TOC__">
10152 # Known to produce bogus xml (extra </td>)
10154 Fuzz testing: Parser16
10174 Fuzz testing: Parser21
10177 ! irc://{{ftp://a" onmouseover="alert('hello world');"
10182 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
10192 Fuzz testing: Parser22
10194 http://===r:::https://b
10198 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
10206 # Known to produce bad XML for now
10208 Fuzz testing: Parser24
10215 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
10216 <br style="onmouseover='alert(document.cookie);' " />
10218 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10223 <u class="|">}}}} >
10224 <br style="onmouseover='alert(document.cookie);'" />
10226 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10235 # Note: the current result listed for this is not what the original one was,
10236 # but the original bug was JavaScript injection, which is fixed in any case.
10237 # It's not clear that the original result listed was any more correct than the
10238 # current one. Original result:
10241 # <li class="||">
10242 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10244 Fuzz testing: Parser25 (bug 6055)
10250 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10252 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10257 Fuzz testing: URL adjacent extension (with space, clean)
10260 http://example.com <nowiki>junk</nowiki>
10262 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10267 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10270 http://example.com<nowiki>junk</nowiki>
10272 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10277 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10280 http://example.com<pre>junk</pre>
10282 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10287 Fuzz testing: image with bogus manual thumbnail
10289 [[Image:foobar.jpg|thumbnail= ]]
10291 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10296 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10298 <pre dir=" "></pre>
10300 <pre dir=" "></pre>
10305 Parsing optional HTML elements (Bug 6171)
10310 <td> Some tabular data</td>
10311 <td> More tabular data ...
10312 <td> And yet som tabular data</td>
10318 <td> Some tabular data</td>
10319 <td> More tabular data ...
10320 </td><td> And yet som tabular data</td>
10327 Correct handling of <td>, <tr> (Bug 6171)
10332 <td> Some tabular data</td>
10333 <td> More tabular data ...</td>
10334 <td> And yet som tabular data</td>
10340 <td> Some tabular data</td>
10341 <td> More tabular data ...</td>
10342 <td> And yet som tabular data</td>
10350 Parsing crashing regression (fr:JavaScript)
10354 <p></body></x>
10359 Inline wiki vs wiki block nesting
10365 <p><b>Bold paragraph</b>
10366 </p><p>New wiki paragraph
10371 Inline HTML vs wiki block nesting
10379 <p><b>Bold paragraph</b>
10380 </p><p>New wiki paragraph
10384 # Original result was this:
10385 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10387 # While that might be marginally more intuitive, maybe, the six-apostrophe
10388 # construct is clearly pathological and the result stated here (which is what
10389 # the parser actually does) is about as reasonable as anything.
10391 Mixing markup for italics and bold
10394 '''bold''''''bold''bolditalics'''''
10396 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10404 Article for special page transclusion test
10408 Special page transclusion
10411 {{Special:Prefixindex/Xyzzyx}}
10413 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10418 Special page transclusion twice (bug 5021)
10421 {{Special:Prefixindex/Xyzzyx}}
10422 {{Special:Prefixindex/Xyzzyx}}
10424 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10425 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10430 Transclusion of default MediaWiki message
10432 {{MediaWiki:Mainpage}}
10439 Transclusion of nonexistent MediaWiki message
10441 {{MediaWiki:Mainpagexxx}}
10443 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
10448 Transclusion of MediaWiki message with underscore
10450 {{MediaWiki:history_short}}
10457 Transclusion of MediaWiki message with space
10459 {{MediaWiki:history short}}
10466 Invalid header with following text
10476 Section extraction test (section 0)
10496 Section extraction test (section 1)
10518 Section extraction test (section 2)
10539 Section extraction test (section 3)
10559 Section extraction test (section 4)
10583 Section extraction test (section 5)
10603 Section extraction test (section 6)
10624 Section extraction test (section 7)
10644 Section extraction test (section 8)
10664 Section extraction test (section 9)
10685 Section extraction test (section 10)
10705 Section extraction test (nonexistent section 11)
10724 Section extraction test with bogus heading (section 1)
10729 ==bogus== not a legal section
10733 ==bogus== not a legal section
10737 Section extraction test with bogus heading (section 2)
10742 ==bogus== not a legal section
10749 Section extraction test with comment after heading (section 1)
10761 Section extraction test with comment after heading (section 2)
10773 Section extraction test with bogus <nowiki> heading (section 1)
10778 ==bogus== <nowiki>not a legal section</nowiki>
10782 ==bogus== <nowiki>not a legal section</nowiki>
10786 Section extraction test with bogus <nowiki> heading (section 2)
10791 ==bogus== <nowiki>not a legal section</nowiki>
10798 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
10799 # instead of respecting commented sections
10801 Section extraction prefixed by comment (section 1)
10812 Section extraction prefixed by comment (section 2)
10823 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
10824 # instead of respecting HTML-style headings
10826 Section extraction, mixed wiki and html (section 1)
10842 Section extraction, mixed wiki and html (section 2)
10858 # Formerly testing for bug 3342
10860 Section extraction, heading surrounded by <noinclude>
10864 <noinclude>==unmarked==</noinclude>
10870 # Test behavior of bug 19910
10872 Sectiion with all-equals
10877 The line above must have a trailing space
10880 But just in case it doesn't...
10884 But just in case it doesn't...
10888 Section replacement test (section 0)
10919 Section replacement test (section 1)
10948 Section replacement test (section 2)
10978 Section replacement test (section 3)
11009 Section replacement test (section 4)
11036 Section replacement test (section 5)
11067 Section replacement test (section 6)
11097 Section replacement test (section 7)
11128 Section replacement test (section 8)
11159 Section replacement test (section 9)
11188 Section replacement test (section 10)
11218 Section replacement test with initial whitespace (bug 13728)
11222 Preformatted initial line
11226 Preformatted initial line
11233 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11245 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11258 Section extraction, <pre> around bogus header (bug 10309)
11275 Section replacement, <pre> around bogus header (bug 10309)
11277 noxml replace=2,"xxx"
11298 Handling of 
 in URLs
11302 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11309 5 quotes, code coverage +1 line (php)
11316 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11318 5 quotes, code coverage +1 line (parsoid)
11324 <p><i><b></b></i></p>
11328 Special:Search page linking.
11332 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11344 * {{ROOTPAGENAMEE}}
11346 * {{BASEPAGENAMEE}}
11348 * {{TALKPAGENAMEE}}
11349 * {{SUBJECTPAGENAME}}
11350 * {{SUBJECTPAGENAMEE}}
11356 * {{SUBJECTSPACEE}}
11357 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11359 <ul><li> Parser test
11360 </li><li> Parser test
11361 </li><li> Parser test
11362 </li><li> Parser_test
11363 </li><li> Parser test
11364 </li><li> Parser_test
11365 </li><li> Parser test
11366 </li><li> Parser_test
11367 </li><li> Talk:Parser test
11368 </li><li> Talk:Parser_test
11369 </li><li> Parser test
11370 </li><li> Parser_test
11377 </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>
11381 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11391 image4 |300px| centre
11392 image5.svg| http://///////
11397 <ul class="gallery">
11398 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11399 <div style="height: 150px;">Image1.png</div>
11400 <div class="gallerytext">
11403 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11404 <div style="height: 150px;">Image2.gif</div>
11405 <div class="gallerytext">
11410 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11411 <div style="height: 150px;">Image3</div>
11412 <div class="gallerytext">
11415 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11416 <div style="height: 150px;">Image4</div>
11417 <div class="gallerytext">
11422 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11423 <div style="height: 150px;">Image5.svg</div>
11424 <div class="gallerytext">
11425 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11429 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11430 <div style="height: 150px;">* image6</div>
11431 <div class="gallerytext">
11439 Gallery (with options)
11441 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11442 File:Nonexistant.jpg|caption
11443 File:Nonexistant.jpg
11444 image:foobar.jpg|some '''caption''' [[Main Page]]
11446 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
11449 <ul class="gallery" style="max-width: 226px;_width: 226px;">
11450 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
11451 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11452 <div style="height: 70px;">Nonexistant.jpg</div>
11453 <div class="gallerytext">
11458 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11459 <div style="height: 70px;">Nonexistant.jpg</div>
11460 <div class="gallerytext">
11463 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11464 <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>
11465 <div class="gallerytext">
11466 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11470 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11471 <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>
11472 <div class="gallerytext">
11475 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11476 <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>
11477 <div class="gallerytext">
11487 Gallery with wikitext inside caption
11490 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
11491 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
11494 <ul class="gallery">
11495 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11496 <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>
11497 <div class="gallerytext">
11498 <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>
11502 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11503 <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>
11504 <div class="gallerytext">
11505 <p>This is a test template
11514 gallery (with showfilename option)
11516 <gallery showfilename>
11517 File:Nonexistant.jpg|caption
11518 File:Nonexistant.jpg
11519 image:foobar.jpg|some '''caption''' [[Main Page]]
11523 <ul class="gallery">
11524 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11525 <div style="height: 150px;">Nonexistant.jpg</div>
11526 <div class="gallerytext">
11527 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11532 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11533 <div style="height: 150px;">Nonexistant.jpg</div>
11534 <div class="gallerytext">
11535 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11539 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11540 <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>
11541 <div class="gallerytext">
11542 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11543 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11547 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11548 <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>
11549 <div class="gallerytext">
11550 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11559 Gallery (with namespace-less filenames)
11562 File:Nonexistant.jpg
11568 <ul class="gallery">
11569 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11570 <div style="height: 150px;">Nonexistant.jpg</div>
11571 <div class="gallerytext">
11574 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11575 <div style="height: 150px;">Nonexistant.jpg</div>
11576 <div class="gallerytext">
11579 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11580 <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>
11581 <div class="gallerytext">
11584 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11585 <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>
11586 <div class="gallerytext">
11594 HTML Hex character encoding (spells the word "JavaScript")
11596 JavaScript
11598 <p>JavaScript
11603 HTML Hex character encoding bogus encoding (bug 26437 regression check)
11607 <p>&#xsee;&#XSEE;
11612 HTML Hex character encoding mixed case
11621 __FORCETOC__ override
11633 ISBN 978-0-1234-56 789
11635 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
11640 ISBN followed by 5 spaces
11651 ISBN ISBN 1234567890
11653 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11658 Bug 22905: <abbr> followed by ISBN followed by </a>
11660 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
11662 <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>
11671 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
11676 Double RFC with a wiki link
11680 <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>
11689 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
11694 Centre-aligned image
11696 [[Image:foobar.jpg|centre]]
11698 <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>
11705 [[Image:foobar.jpg|none]]
11707 <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>
11712 Width + Height sized image (using px) (height is ignored)
11714 [[Image:foobar.jpg|640x480px]]
11716 <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>
11721 Width-sized image (using px, no following whitespace)
11723 [[Image:foobar.jpg|640px]]
11725 <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>
11730 Width-sized image (using px, with following whitespace - test regression from r39467)
11732 [[Image:foobar.jpg|640px ]]
11734 <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>
11739 Width-sized image (using px, with preceding whitespace - test regression from r39467)
11741 [[Image:foobar.jpg| 640px]]
11743 <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>
11748 Another italics / bold test
11756 # Note the results may be incorrect, as parserTest output included this:
11757 # XML error: Mismatched tag at byte 6120:
11758 # ...<dd> </dt></dl> </dd...
11766 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
11777 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
11779 Images with the "|" character in the comment
11781 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
11783 <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>
11788 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
11790 <html><script>alert(1);</script></html>
11792 <p><html><script>alert(1);</script></html>
11797 HTML with raw HTML ($wgRawHtml==true)
11801 <html><script>alert(1);</script></html>
11803 <p><script>alert(1);</script>
11808 Parents of subpages, one level up
11810 subpage title=[[Subpage test/L1/L2/L3]]
11814 <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>
11820 Parents of subpages, one level up, not named
11822 subpage title=[[Subpage test/L1/L2/L3]]
11826 <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>
11833 Parents of subpages, two levels up
11835 subpage title=[[Subpage test/L1/L2/L3]]
11841 <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
11842 </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>
11847 Parents of subpages, two levels up, without trailing slash or name.
11849 subpage title=[[Subpage test/L1/L2/L3]]
11858 Parents of subpages, two levels up, with lots of extra trailing slashes.
11860 subpage title=[[Subpage test/L1/L2/L3]]
11864 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
11869 Definition list code coverage
11875 <dl><dt> title  </dt><dd> def
11876 </dd><dt> title </dt><dd> def
11877 </dd><dt>title</dt><dd> def
11883 Don't fall for the self-closing div
11885 <div>hello world</div/>
11887 <div>hello world</div>
11896 <p>[[:Template:Msg]]
11905 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
11909 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
11911 Always escape literal '>' in output, not just after '<'
11925 <p>This is a test template
11926 This is a test template
11938 Inclusion of !userCanEdit() content
11942 <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>
11948 Out-of-order TOC heading levels
11957 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11959 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
11961 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
11962 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
11965 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
11967 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
11968 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
11973 <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>
11974 <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>
11975 <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>
11976 <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>
11977 <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>
11978 <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>
11984 ISBN with a dummy number
11994 ISBN with space-delimited number
11998 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
12004 ISBN with multiple spaces, no number
12023 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12024 </p><p>ISBN 12345678901
12030 ISBN with trailing year (bug 8110)
12032 ISBN 1-234-56789-0 - 2006
12034 ISBN 1 234 56789 0 - 2006
12036 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
12037 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
12045 {{anchorencode:foo bar©#%n}}
12047 <p>foo_bar.C2.A9.23.25n
12052 anchorencode trims spaces
12054 {{anchorencode: __pretty__please__}}
12061 anchorencode deals with links
12063 {{anchorencode: [[hello|world]] [[hi]]}}
12070 anchorencode deals with templates
12072 {{anchorencode: {{Foo}} }}
12079 anchorencode encodes like the TOC generator: (bug 18431)
12081 === _ +:.3A%3A&&]] ===
12082 {{anchorencode: _ +:.3A%3A&&]] }}
12085 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
12086 <p>.2B:.3A.253A.26.26.5D.5D
12090 # Expected output in the following test is not necessarily expected (there
12091 # should probably be <p> tags inside the <blockquote> in the output) -- it's
12092 # only testing for well-formedness.
12094 Bug 6200: blockquotes and paragraph formatting
12114 Bug 8293: Use of center tag ruins paragraph formatting
12135 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
12139 <span><s>x</span></s>
12141 <p><span><s>x</span></s></span>
12146 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
12150 <span><s>x</span></s>
12152 <p><span><s>x</s></span><s></s>
12157 ### Language variants related tests
12160 Self-link in language variants
12162 title=[[Dunav]] language=sr
12164 Both [[Dunav]] and [[Дунав]] are names for this river.
12166 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
12177 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
12179 title=[[Duna]] language=sr
12181 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
12183 <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.
12188 Link to pages in language variants
12192 Main Page can be written as [[Маин Паге]]
12194 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
12200 Multiple links to pages in language variants
12204 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
12206 <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>.
12212 Simple template in language variants
12218 <p>This is a test template
12224 Template with explicit namespace in language variants
12230 <p>This is a test template
12236 Basic test for template parameter in language variants
12240 {{парамтест|param=foo}}
12242 <p>This is a test template with parameter foo
12248 Simple category in language variants
12252 [[Category:МедиаWики Усер'с Гуиде]]
12254 <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>
12271 Don't convert blue categorylinks to another variant (bug 33210)
12275 [[A]][[Category:分类]]
12277 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12282 Stripping -{}- tags (language variants)
12286 Latin proverb: -{Ne nuntium necare}-
12288 <p>Latin proverb: Ne nuntium necare
12294 Prevent conversion with -{}- tags (language variants)
12296 language=sr variant=sr-ec
12298 Latinski: -{Ne nuntium necare}-
12300 <p>Латински: Ne nuntium necare
12306 Prevent conversion of text with -{}- tags (language variants)
12308 language=sr variant=sr-ec
12310 Latinski: -{Ne nuntium necare}-
12312 <p>Латински: Ne nuntium necare
12318 Prevent conversion of links with -{}- tags (language variants)
12320 language=sr variant=sr-ec
12324 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12330 -{}- tags within headlines (within html for parserConvert())
12332 language=sr variant=sr-ec
12336 <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>
12342 Explicit definition of language variant alternatives
12344 language=zh variant=zh-tw
12346 -{zh:China;zh-tw:Taiwan}-, not China
12348 <p>Taiwan, not China
12354 Conversion around HTML tags
12356 language=sr variant=sr-ec
12358 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12359 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12362 <span title="ЛаCтин">ски</span>
12368 Explicit session-wise language variant mapping (A flag and - flag)
12370 language=zh variant=zh-tw
12372 Taiwan is not China.
12373 But -{A|zh:China;zh-tw:Taiwan}- is China,
12374 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12375 and -{China}- is China.
12377 <p>Taiwan is not China.
12378 But Taiwan is Taiwan,
12379 (This should be stripped!)
12380 and China is China.
12385 Explicit session-wise language variant mapping (H flag for hide)
12387 language=zh variant=zh-tw
12389 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12392 <p>(This should be stripped!)
12398 Adding explicit conversion rule for title (T flag)
12400 language=zh variant=zh-tw showtitle
12402 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12405 <p>Should be stripped!
12410 Testing that changing the language variant here in the tests actually works
12412 language=zh variant=zh showtitle
12414 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12417 <p>Should be stripped!
12422 Recursive conversion of alt and title attrs shouldn't clear converter state
12424 language=zh variant=zh-cn showtitle
12426 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
12427 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
12431 Should be stripped<span title="Exclamation">!</span>
12436 Bug 24072: more test on conversion rule for title
12438 language=zh variant=zh-tw showtitle
12440 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12441 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
12444 <p>This should be stripped!
12445 This won't take interferes with the title rule.
12450 Partly disable title conversion if variant == main language code
12452 language=zh variant=zh title=[[ZH]] showtitle
12454 -{T|zh-cn:CN;zh-tw:TW}-
12462 Partly disable title conversion if variant == main language code, more
12464 language=zh variant=zh title=[[ZH]] showtitle
12474 Raw output of variant escape tags (R flag)
12476 language=zh variant=zh-tw
12478 Raw: -{R|zh:China;zh-tw:Taiwan}-
12480 <p>Raw: zh:China;zh-tw:Taiwan
12485 Nested using of manual convert syntax
12487 language=zh variant=zh-hk
12489 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
12491 <p>Nested: Hello Hong Kong!
12496 Proper conversion of text in external links
12498 language=sr variant=sr-ec
12500 http://www.google.com
12501 gopher://www.google.com
12502 [http://www.google.com http://www.google.com]
12503 [gopher://www.google.com gopher://www.google.com]
12504 [https://www.google.com irc://www.google.com]
12505 [ftp://www.google.com www.google.com/ftp://dir]
12506 [//www.google.com www.google.com]
12508 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12509 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12510 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12511 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12512 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
12513 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
12514 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
12519 Do not convert roman numbers to language variants
12521 language=sr variant=sr-ec
12525 <p>Фридрих IV је цар.
12530 Unclosed language converter markup "-{"
12541 Don't convert raw rule "-{R|=>}-" to "=>"
12558 Bug 529: Uncovered bullet
12568 # Plain MediaWiki does not remove empty lists, but tidy actually does.
12569 # Templates in Wikipedia rely on this behavior, as tidy has always been
12570 # enabled there. These tests are normally run *without* tidy, so specify the
12571 # full output here.
12572 # To test realistic parsing behavior, apply a tidy-like transformation to both
12573 # the expected output and your parser's output.
12575 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
12577 ******* Foo {{bullet}}
12579 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
12592 Bug 529: Uncovered table already at line-start
12615 Bug 529: Uncovered bullet in parser function result
12617 * Foo {{lc:{{bullet}} }}
12626 Bug 5678: Double-parsed template argument
12628 {{lc:{{{1}}}|hello}}
12635 Bug 5678: Double-parsed template invocation
12637 {{lc:{{paramtest {{!}} param = hello }} }}
12639 <p>{{paramtest | param = hello }}
12644 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
12647 title=[[Main Page]]
12649 {{PRVNÍVELKÉ:ěščř}}
12650 {{prvnívelké:ěščř}}
12670 Morwen/13: Unclosed link followed by heading
12677 <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>
12682 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
12689 <h1><span class="mw-headline" id="heading">heading</span></h1>
12694 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
12701 <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>
12716 Paragraphs inside divs (no extra line breaks)
12728 Paragraphs inside divs (extra line break on open)
12743 Paragraphs inside divs (extra line break on close)
12758 Paragraphs inside divs (extra line break on open and close)
12775 Nesting tags, paragraphs on lines which begin with <div>
12779 <div></div><strong>A
12788 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
12790 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
12794 <blockquote>Line one
12796 Line two</blockquote>
12798 <blockquote>Line one
12799 Line two</blockquote>
12804 Bug 6200: paragraphs inside blockquotes (extra line break on open)
12811 Line two</blockquote>
12816 Line two</blockquote>
12821 Bug 6200: paragraphs inside blockquotes (extra line break on close)
12825 <blockquote>Line one
12830 <blockquote>Line one
12838 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
12857 Paragraphs inside blockquotes/divs (no extra line breaks)
12859 <blockquote><div>Line one
12861 Line two</div></blockquote>
12863 <blockquote><div>Line one
12864 Line two</div></blockquote>
12869 Paragraphs inside blockquotes/divs (extra line break on open)
12874 Line two</div></blockquote>
12879 Line two</div></blockquote>
12884 Paragraphs inside blockquotes/divs (extra line break on close)
12886 <blockquote><div>Line one
12889 </div></blockquote>
12891 <blockquote><div>Line one
12894 </div></blockquote>
12899 Paragraphs inside blockquotes/divs (extra line break on open and close)
12905 </div></blockquote>
12911 </div></blockquote>
12916 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
12918 wgLinkHolderBatchSize=0
12924 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
12925 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
12926 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
12931 Free external link invading image caption
12933 [[Image:Foobar.jpg|thumb|http://x|hello]]
12935 <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>
12940 Bug 15196: localised external link numbers
12944 [http://en.wikipedia.org/]
12946 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
12951 Multibyte character in padleft
12953 {{padleft:-Hello|7|Æ}}
12960 Multibyte character in padright
12962 {{padright:Hello-|7|Æ}}
12969 formatdate parser function
12971 {{#formatdate:2009-03-24}}
12973 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
12978 formatdate parser function, with default format
12980 {{#formatdate:2009-03-24|mdy}}
12982 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
12987 Spacing of numbers in formatted dates
12989 {{#formatdate:January 15}}
12991 <p><span class="mw-formatted-date" title="01-15">January 15</span>
12996 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
12998 language=nl title=[[MediaWiki:Common.css]]
13000 {{#formatdate:2009-03-24|dmy}}
13002 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
13015 Edit comment with link
13019 I like the [[Main Page]] a lot
13021 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
13025 Edit comment with link and link text
13029 I like the [[Main Page|best pages]] a lot
13031 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13035 Edit comment with link and link text with suffix
13039 I like the [[Main Page|best page]]s a lot
13041 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13045 Edit comment with section link (non-local, eg in history list)
13047 comment title=[[Main Page]]
13049 /* External links */ removed bogus entries
13051 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13055 Edit comment with section link and text before it (non-local, eg in history list)
13057 comment title=[[Main Page]]
13059 pre-comment text /* External links */ removed bogus entries
13061 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>
13065 Edit comment with section link (local, eg in diff view)
13067 comment local title=[[Main Page]]
13069 /* External links */ removed bogus entries
13071 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13075 Edit comment with subpage link (bug 14080)
13079 title=[[Subpage test]]
13081 Poked at a [[/subpage]] here...
13083 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
13087 Edit comment with subpage link and link text (bug 14080)
13091 title=[[Subpage test]]
13093 Poked at a [[/subpage|neat little page]] here...
13095 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
13099 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
13102 title=[[Subpage test]]
13104 Poked at a [[/subpage]] here...
13106 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
13110 Edit comment with bare anchor link (local, as on diff)
13114 title=[[Main Page]]
13118 <a href="#section">#section</a>
13122 Edit comment with bare anchor link (non-local, as on history)
13125 title=[[Main Page]]
13129 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
13133 Anchor starting with underscore
13137 <p><a href="#_ref">One</a>
13142 Id starting with underscore
13144 <div id="_ref"></div>
13146 <div id="_ref"></div>
13151 Space normalisation on autocomment (bug 22784)
13154 title=[[Main Page]]
13156 /* __hello__world__ */
13158 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
13162 percent-encoding and + signs in comments (Bug 26410)
13166 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
13168 <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>
13172 Bad images - basic functionality
13181 Bad images - bug 16039: text after bad image disappears
13195 Verify that displaytitle works (bug #22501) no displaytitle
13199 wgAllowDisplayTitle=true
13200 wgRestrictDisplayTitle=false
13202 this is not the the title
13205 <p>this is not the the title
13210 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
13215 wgAllowDisplayTitle=true
13216 wgRestrictDisplayTitle=false
13218 this is not the the title
13219 {{DISPLAYTITLE:whatever}}
13222 <p>this is not the the title
13227 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
13232 wgAllowDisplayTitle=true
13233 wgRestrictDisplayTitle=true
13235 this is not the the title
13236 {{DISPLAYTITLE:whatever}}
13239 <p>this is not the the title
13244 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13249 wgAllowDisplayTitle=true
13250 wgRestrictDisplayTitle=true
13252 this is not the the title
13253 {{DISPLAYTITLE:screen}}
13256 <p>this is not the the title
13261 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13266 wgAllowDisplayTitle=false
13268 this is not the the title
13269 {{DISPLAYTITLE:screen}}
13272 <p>this is not the the title
13273 <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>
13278 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13283 wgAllowDisplayTitle=false
13285 this is not the the title
13288 <p>this is not the the title
13293 preload: check <noinclude> and <includeonly>
13297 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13303 preload: check <onlyinclude>
13307 Goodbye <onlyinclude>Hello world</onlyinclude>
13313 preload: can pass tags through if we want to
13317 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13319 <includeonly>Hello world</includeonly>
13323 preload: check that it doesn't try to do tricks
13327 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13329 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13333 Play a bit with r67090 and bug 3158
13337 <div style="width:50% !important"> </div>
13338 <div style="width:50% !important"> </div>
13339 <div style="width:50% !important"> </div>
13340 <div style="border : solid;"> </div>
13342 <div style="width:50% !important"> </div>
13343 <div style="width:50% !important"> </div>
13344 <div style="width:50% !important"> </div>
13345 <div style="border : solid;"> </div>
13350 HTML5 data attributes
13352 <span data-foo="bar">Baz</span>
13353 <p data-abc-def_hij="">Quuz</p>
13355 <p><span data-foo="bar">Baz</span>
13357 <p data-abc-def_hij="">Quuz</p>
13362 percent-encoding and + signs in internal links (Bug 26410)
13364 [[User:+%]] [[Page+title%]]
13365 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
13366 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
13367 [[%33%45]] [[%33%45+]]
13369 <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>
13370 <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>
13371 <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>
13372 <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>
13377 Special characters in embedded file links (bug 27679)
13379 [[File:Contains & ampersand.jpg]]
13380 [[File:Does not exist.jpg|Title with & ampersand]]
13382 <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>
13383 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
13389 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
13391 Text's been normalized?
13393 <p>Text's been normalized?
13398 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
13400 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
13402 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
13407 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
13409 [http://www.example.org/ ideograms]
13411 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
13416 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
13418 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
13420 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
13444 Bug 31098 Template which includes system messages which includes the template
13448 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13449 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13454 Bug31490 Turkish: ucfirst 'blah'
13465 Bug31490 Turkish: ucfirst 'ix'
13476 Bug31490 Turkish: lcfirst 'BLAH'
13487 Bug31490 Turkish: ucfırst (with a dotless i)
13493 <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>
13498 Bug31490 ucfırst (with a dotless i) with English language
13504 <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>
13509 Bug 26375: TOC with italics
13511 title=[[Main Page]]
13514 == ''Lost'' episodes ==
13516 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13518 <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>
13521 <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>
13526 Bug 26375: TOC with bold
13528 title=[[Main Page]]
13531 == '''should be bold''' then normal text ==
13533 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13535 <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>
13538 <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>
13543 Bug 33845: Headings become cursive in TOC when they contain an image
13545 title=[[Main Page]]
13548 == Image [[Image:foobar.jpg]] ==
13550 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13552 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
13555 <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>
13560 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
13562 title=[[Main Page]]
13565 == <blockquote>Quote</blockquote> ==
13567 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13569 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
13572 <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>
13577 Unclosed tags in TOC
13579 title=[[Main Page]]
13583 <small>Hanc marginis exiguitas non caperet.</small>
13586 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13588 <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>
13591 <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>
13592 <p><small>Hanc marginis exiguitas non caperet.</small>
13598 Multiple tags in TOC
13601 == <i>Foo</i> <b>Bar</b> ==
13603 == <i>Foo</i> <blockquote>Bar</blockquote> ==
13605 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13607 <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>
13608 <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>
13611 <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>
13612 <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>
13617 Tags with parameters in TOC
13620 == <sup class="in-h2">Hello</sup> ==
13622 == <sup class="a > b">Evilbye</sup> ==
13624 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13626 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
13627 <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>
13630 <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>
13631 <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>
13636 span tags with directionality in TOC
13639 == <span dir="ltr">C++</span> ==
13641 == <span dir="rtl">זבנג!</span> ==
13643 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
13645 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
13647 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
13649 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13651 <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>
13652 <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>
13653 <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>
13654 <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>
13655 <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>
13658 <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>
13659 <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>
13660 <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>
13661 <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>
13662 <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>
13669 == {{int:headline_sample}} ==
13673 Bug 32057: Title needed when expanding <h> nodes.
13675 title=[[Main Page]]
13679 <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>
13684 Strip marker in urlencode
13686 {{urlencode:x<nowiki/>y}}
13687 {{urlencode:x<nowiki/>y|wiki}}
13688 {{urlencode:x<nowiki/>y|path}}
13715 Strip marker in formatNum
13717 {{formatnum:1<nowiki/>2}}
13718 {{formatnum:1<nowiki/>2|R}}
13726 Check noCommafy in formatNum
13730 {{formatnum:123456.78}}
13731 {{formatnum:123456.78|NOSEP}}
13739 Strip marker in grammar
13743 {{grammar:elative|foo<nowiki/>bar}}
13750 Strip marker in padleft
13752 {{padleft:|2|x<nowiki/>y}}
13759 Strip marker in padright
13761 {{padright:|2|x<nowiki/>y}}
13768 Strip marker in anchorencode
13770 {{anchorencode:x<nowiki/>y}}
13777 nowiki inside link inside heading (bug 18295)
13779 ==[[foo|x<nowiki>y</nowiki>z]]==
13781 <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>
13786 new support for bdi element (bug 31817)
13788 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13790 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13795 Ignore pipe between table row attributes
13799 |- id=foo | style='color: red'
13807 <tr id="foo" style="color: red">
13814 Gallery override link with WikiLink (bug 34852)
13817 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
13820 <ul class="gallery">
13821 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13822 <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>
13823 <div class="gallerytext">
13833 Gallery override link with absolute external link (bug 34852)
13836 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
13839 <ul class="gallery">
13840 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13841 <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>
13842 <div class="gallerytext">
13852 Gallery override link with malicious javascript (bug 34852)
13855 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
13858 <ul class="gallery">
13859 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13860 <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>
13861 <div class="gallerytext">
13871 Gallery with invalid title as link (bug 43964)
13874 File:foobar.jpg|link=<
13877 <ul class="gallery">
13878 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13879 <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>
13880 <div class="gallerytext">
13888 Language parser function
13897 Padleft and padright as substr
13899 {{padleft:|3|abcde}}
13900 {{padright:|3|abcde}}
13908 Bug 34939 - Case insensitive link parsing ([HttP://])
13910 [HttP://MediaWiki.Org/]
13912 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
13917 Bug 34939 - Case insensitive link parsing ([HttP:// title])
13919 [HttP://MediaWiki.Org/ MediaWiki]
13921 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
13926 Bug 34939 - Case insensitive link parsing (HttP://)
13928 HttP://MediaWiki.Org/
13930 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
13935 ### Parsoids-specific tests
13936 ### Parsoid-PHP parser incompatibilities
13939 1. SOL-sensitive wikitext tokens as template-args
13941 parsoid=wt2html,wt2wt
13947 <span about="#mwt1" typeof="mw:Object/Template">
13948 </span><ul about="#mwt1"><li>a</li></ul>
13949 <span about="#mwt2" typeof="mw:Object/Template">
13950 </span><ol about="#mwt2"><li>a</li></ol>
13951 <span about="#mwt3" typeof="mw:Object/Template">
13952 </span><dl about="#mwt3"><dd>a</dd></dl>
13955 #### The following section of tests are primarily to test
13956 #### wikitext escaping capabilities of Parsoid. Given that
13957 #### escaping can be done any number of ways, the wikitext (input)
13958 #### is always adjusted to reflect how Parsoid adds nowiki
13961 #### We are marking several tests as parsoid-only since the
13962 #### HTML in the result section is different from what the
13963 #### PHP parser generates for it.
13966 #### --------------- Headings ---------------
13968 #### 1. Nested inside html <h1>=foo=</h1>
13969 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
13970 #### 3. Nested inside html with wikitext split by html tags
13971 #### 4. No escape needed
13972 #### 5. Empty headings <h1></h1>
13973 #### 6. Heading chars in SOL context
13974 #### ----------------------------------------
13976 Headings: 0. Unnested
13980 <nowiki>=foo=</nowiki>
13982 <nowiki> =foo= </nowiki>
13984 <nowiki>=foo=</nowiki>
13986 =foo''a''<nowiki>=</nowiki>
13988 <p><span typeof="mw:Nowiki">=foo=</span></p>
13990 <p><span typeof="mw:Nowiki"> =foo= </span>
13992 <span typeof="mw:Nowiki">=foo=</span></p>
13994 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
13998 Headings: 1. Nested inside html
14002 =<nowiki>=foo=</nowiki>=
14003 ==<nowiki>=foo=</nowiki>==
14004 ===<nowiki>=foo=</nowiki>===
14005 ====<nowiki>=foo=</nowiki>====
14006 =====<nowiki>=foo=</nowiki>=====
14007 ======<nowiki>=foo=</nowiki>======
14009 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
14010 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
14011 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
14012 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
14013 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
14014 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
14018 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
14023 <nowiki>*bar</nowiki>
14027 <nowiki>=bar=</nowiki>
14035 Headings: 3. Nested inside html with wikitext split by html tags
14039 =='''bold'''<nowiki>foo=</nowiki>=
14041 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
14045 Headings: 4a. No escaping needed (testing just h1 and h2)
14056 =<nowiki>=</nowiki>=
14064 <h1><i>=</i>foo=</h1>
14065 <h1><span typeof="mw:Nowiki">=</span></h1>
14069 Headings: 4b. No escaping needed (inside p-tags)
14084 Headings: 5. Empty headings
14092 =====<nowiki/>=====
14093 ======<nowiki/>======
14104 Headings: 6. Heading chars in SOL context
14108 <!--cmt--><nowiki>=h1=</nowiki>
14109 <!--cmt--><nowiki> =h1= </nowiki>
14111 <p><!--cmt--><span typeof="mw:Nowiki">=h1=</span>
14112 <!--cmt--><span typeof="mw:Nowiki"> =h1= </span></p>
14115 #### --------------- Lists ---------------
14116 #### 0. Outside nests (*foo, etc.)
14117 #### 1. Nested inside html <ul><li>*foo</li></ul>
14118 #### 2. Inside definition lists
14119 #### 3. Only bullets at start should be escaped
14120 #### 4. No escapes needed
14121 #### 5. No unnecessary escapes
14122 #### 6. Escape bullets in SOL position
14123 #### 7. Escape bullets in a multi-line context
14124 #### ----------------------------------------
14127 Lists: 0. Outside nests
14129 <nowiki>*foo</nowiki>
14131 <nowiki>#foo</nowiki>
14139 Lists: 1. Nested inside html
14141 *<nowiki>*foo</nowiki>
14143 *<nowiki>#foo</nowiki>
14145 *<nowiki>:foo</nowiki>
14147 *<nowiki>;foo</nowiki>
14149 #<nowiki>*foo</nowiki>
14151 #<nowiki>#foo</nowiki>
14153 #<nowiki>:foo</nowiki>
14155 #<nowiki>;foo</nowiki>
14177 Lists: 2. Inside definition lists
14179 ;<nowiki>;foo</nowiki>
14181 ;<nowiki>:foo</nowiki>
14183 ;<nowiki>:foo</nowiki>
14186 :<nowiki>:foo</nowiki>
14201 Lists: 3. Only bullets at start of text should be escaped
14203 *<nowiki>*foo*bar</nowiki>
14205 *<nowiki>*foo</nowiki>''it''*bar
14209 <ul><li>*foo<i>it</i>*bar
14215 Lists: 4. No escapes needed
14227 <ul><li><i>foo</i>*bar
14229 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
14234 Lists: 5. No unnecessary escapes
14236 * bar <span><nowiki>[[foo]]</nowiki></span>
14238 *=bar <span><nowiki>[[foo]]</nowiki></span>
14240 *[[bar <span><nowiki>[[foo]]</nowiki></span>
14242 *]]bar <span><nowiki>[[foo]]</nowiki></span>
14244 *=bar <span>foo]]</span>=
14248 <ul><li> bar <span>[[foo]]</span>
14250 <ul><li>=bar <span>[[foo]]</span>
14252 <ul><li>[[bar <span>[[foo]]</span>
14254 <ul><li>]]bar <span>[[foo]]</span>
14256 <ul><li>=bar <span>foo]]</span>=
14258 <ul><li> <s></s>: a
14264 Lists: 6. Escape bullets in SOL position
14268 <!--cmt--><nowiki>*foo</nowiki>
14270 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
14274 Lists: 7. Escape bullets in a multi-line context
14284 #### --------------- HRs ---------------
14285 #### 1. Single line
14286 #### -----------------------------------
14289 HRs: 1. Single line
14293 ----<nowiki>----</nowiki>
14297 <hr><span typeof="mw:Nowiki">----</span>
14302 #### --------------- Tables ---------------
14303 #### 1a. Simple example
14304 #### 1b. No escaping needed (!foo)
14305 #### 1c. No escaping needed (|foo)
14306 #### 1d. No escaping needed (|}foo)
14308 #### 2a. Nested in td (<td>foo|bar</td>)
14309 #### 2b. Nested in td (<td>foo||bar</td>)
14310 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
14312 #### 3a. Nested in th (<th>foo!bar</th>)
14313 #### 3b. Nested in th (<th>foo!!bar</th>)
14314 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
14318 #### 4c. No escaping needed
14319 #### --------------------------------------
14322 Tables: 1a. Simple example
14333 Tables: 1b. No escaping needed
14342 Tables: 1c. No escaping needed
14351 Tables: 1d. No escaping needed
14360 Tables: 2a. Nested in td
14365 |<nowiki>foo|bar</nowiki>
14369 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
14373 Tables: 2b. Nested in td
14378 |<nowiki>foo||bar</nowiki>
14379 |''it''<nowiki>foo||bar</nowiki>
14383 <td><span typeof="mw:Nowiki">foo||bar</span></td>
14384 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
14388 Tables: 2c. Nested in td -- no escaping needed
14396 <table><tbody><tr><td>foo!!bar
14397 </td></tr></tbody></table>
14402 Tables: 3a. Nested in th
14410 <table><tbody><tr><th>foo!bar
14411 </th></tr></tbody></table>
14416 Tables: 3b. Nested in th
14421 !<nowiki>foo!!bar</nowiki>
14425 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
14430 Tables: 3c. Nested in th -- no escaping needed
14435 !<nowiki>foo||bar</nowiki>
14439 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
14443 Tables: 4a. Escape -
14451 |<nowiki>-bar</nowiki>
14455 <tr><th>-bar</th></tr>
14457 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
14461 Tables: 4b. Escape +
14469 |<nowiki>+bar</nowiki>
14473 <tr><th>+bar</th></tr>
14475 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
14479 Tables: 4c. No escaping needed
14493 <tr><td>foo-bar</td><td>foo+bar</td></tr>
14494 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
14498 ### SSS FIXME: Disabled right now because accurate html2wt
14499 ### on this snippet requires data-parsoid flags that we've
14500 ### stripped out of these tests. We should scheme how we
14501 ### we want to handle these kind of tests that require
14502 ### data-parsoid flags for accurate html2wt serialization
14505 Tables: 4d. No escaping needed
14523 #### --------------- Links ---------------
14524 #### 1. Quote marks in link text
14525 #### 2. Wikilinks: Escapes needed
14526 #### 3. Wikilinks: No escapes needed
14527 #### 4. Extlinks: Escapes needed
14528 #### 5. Extlinks: No escapes needed
14529 #### --------------------------------------
14531 Links 1. Quote marks in link text
14535 [[Foo|<nowiki>Foo''boo''</nowiki>]]
14537 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
14541 Links 2. WikiLinks: Escapes needed
14545 [[Foo|<nowiki>[Foobar]</nowiki>]]
14546 [[Foo|<nowiki>Foobar]</nowiki>]]
14547 [[Foo|x [Foobar] x]]
14548 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
14549 [[Foo|<nowiki>[[Bar]]</nowiki>]]
14550 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
14551 [[Foo|<nowiki>|Bar</nowiki>]]
14552 [[Foo|<nowiki>]]bar</nowiki>]]
14553 [[Foo|<nowiki>[[bar</nowiki>]]
14554 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
14556 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
14557 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
14558 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
14559 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
14560 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
14561 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
14562 <a href="Foo" rel="mw:WikiLink">|Bar</a>
14563 <a href="Foo" rel="mw:WikiLink">]]bar</a>
14564 <a href="Foo" rel="mw:WikiLink">[[bar</a>
14565 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
14569 Links 3. WikiLinks: No escapes needed
14576 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
14577 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
14581 Links 4. ExtLinks: Escapes needed
14585 [http://google.com <nowiki>[google]</nowiki>]
14586 [http://google.com <nowiki>google]</nowiki>]
14588 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
14589 <a href="http://google.com" rel="mw:ExtLink">google]</a>
14593 Links 5. ExtLinks: No escapes needed
14597 [http://google.com [google]
14599 <a href="http://google.com" rel="mw:ExtLink">[google</a>
14602 #### --------------- Quotes ---------------
14603 #### 1. Quotes inside <b> and <i>
14604 #### 2. Link fragments separated by <i> and <b> tags
14605 #### 3. Link fragments inside <i> and <b>
14606 #### --------------------------------------
14608 1. Quotes inside <b> and <i>
14610 ''<nowiki>'foo'</nowiki>''
14611 ''<nowiki>''foo''</nowiki>''
14612 ''<nowiki>'''foo'''</nowiki>''
14613 '''<nowiki>'foo'</nowiki>'''
14614 '''<nowiki>''foo''</nowiki>'''
14615 '''<nowiki>'''foo'''</nowiki>'''
14616 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
14624 <b>foo'<i>bar'</i>baz</b>
14629 2. Link fragments separated by <i> and <b> tags
14631 [[''foo''<nowiki>hello]]</nowiki>
14633 [['''foo'''<nowiki>hello]]</nowiki>
14635 <p>[[<i>foo</i>hello]]
14636 </p><p>[[<b>foo</b>hello]]
14641 2. Link fragments inside <i> and <b>
14642 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
14643 this is one of the shortcomings of this format)
14645 ''[[foo''<nowiki>]]</nowiki>
14647 '''[[foo'''<nowiki>]]</nowiki>
14650 </p><p><b>[[foo</b>]]
14654 #### --------------- Paragraphs ---------------
14655 #### 1. No unnecessary escapes
14656 #### --------------------------------------
14659 1. No unnecessary escapes
14661 bar <span><nowiki>[[foo]]</nowiki></span>
14663 =bar <span><nowiki>[[foo]]</nowiki></span>
14665 [[bar <span><nowiki>[[foo]]</nowiki></span>
14667 ]]bar <span><nowiki>[[foo]]</nowiki></span>
14669 =bar <span>foo]]</span><nowiki>=</nowiki>
14671 <p>bar <span>[[foo]]</span>
14672 </p><p>=bar <span>[[foo]]</span>
14673 </p><p>[[bar <span>[[foo]]</span>
14674 </p><p>]]bar <span>[[foo]]</span>
14675 </p><p>=bar <span>foo]]</span>=
14679 #### --------------- PRE ------------------
14680 #### 1. Leading space in SOL context should be escaped
14681 #### --------------------------------------
14683 1. Leading space in SOL context should be escaped
14687 <nowiki> foo</nowiki>
14688 <!--cmt--><nowiki> foo</nowiki>
14695 #### --------------- HTML tags ---------------
14698 #### 3. multi-line html tag
14699 #### --------------------------------------
14705 <a href="http://google.com">google</a>
14707 <a href="http://google.com">google</a>
14713 <nowiki><div>foo</div>
14714 <div style="color:red">foo</div></nowiki>
14716 <p><div>foo</div>
14717 <div style="color:red">foo</div>
14722 3. multi-line html tag
14734 #### --------------- Others ---------------
14738 <nowiki>foo</nowiki>
14740 <p><nowiki>foo</nowiki>
14745 Tag-like HTML structures are passed through as text
14767 </p><p>1<d e>f
14772 # This fails in the PHP parser (see bug 40670,
14773 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
14775 Tag names followed by punctuation should not be recognized as tags
14781 <p><s.ome> text
14786 HTML tag with necessary entities in attributes
14788 <span title="&amp;">foo</span>
14790 <p><span title="&amp;">foo</span>
14795 HTML tag with 'unnecessary' entity encoding in attributes
14797 <span title="&">foo</span>
14799 <p><span title="&">foo</span>
14804 HTML tag with broken attribute value quoting
14806 <span title="Hello world>Foo</span>
14808 <p><span>Foo</span>
14813 Parsoid-only: HTML tag with broken attribute value quoting
14817 <span title="Hello world>Foo</span>
14819 <p><span title="Hello world">Foo</span>
14824 Table with broken attribute value quoting
14827 | title="Hello world|Foo
14838 Table with broken attribute value quoting on consecutive lines
14841 | title="Hello world|Foo
14842 | style="color:red|Bar
14855 Parsoid-only: Table with broken attribute value quoting on consecutive lines
14860 | title="Hello world|Foo
14861 | style="color:red|Bar
14866 <td title="Hello world">Foo
14867 </td><td style="color: red">Bar
14868 </td></tr></tbody></table>
14873 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14883 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14893 Accept empty td cell attribute
14896 | align="center" | foo || |
14901 <td align="center"> foo </td>
14908 Non-empty attributes in th-cells
14911 ! Foo !! style="color: red" | Bar
14917 <th style="color: red"> Bar
14923 Accept empty attributes in th-cells
14938 Empty table rows go away
14959 ### Parsoid-centric tests for testing RTing of inter-element separators
14960 ### Edge cases not tested by existing parser tests and specific to
14961 ### Parsoid-specific serialization strategies.
14965 RT-ed inter-element separators should be valid separators
14978 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
14979 (Parsoid-only since PHP parser relies on Tidy for correct output)
14995 Empty TD followed by TD with tpl-generated attribute
15000 |{{echo|style='color:red'}}|foo
15014 Indented table with an empty td
15033 Empty TR followed by a template-generated TR
15034 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
15036 parsoid=wt2html,wt2wt
15040 {{echo|<tr><td>foo</td></tr>}}
15046 <tr typeof="mw:Object/Template">
15047 <td>foo</td></tr></tbody></table>
15050 ## PHP and parsoid output differ for this, and since this is primarily
15051 ## for testing Parsoid's serializer, marking this Parsoid only
15053 Empty TR followed by mixed-ws-comment line should RT correctly
15067 <td> <!--c--></td></tr>
15069 <td><!--c--> <!--d--></td></tr>
15075 Multi-line image caption generated by templates with/without trailing newlines
15079 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
15080 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
15082 <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>
15083 <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>
15087 ## PHP emits broken html for this, and since this is primarily
15088 ## a Parsoid serializer test, marking this Parsoid only
15090 Improperly nested inline or quotes tags with whitespace in between
15094 <span> <s>x</span> </s>
15097 <p><span> <s>x</s></span><s> </s>
15098 <b> <i>x</i></b><i> </i>
15108 Try for 100% code coverage