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:Transclusion">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:Transclusion"><i>a</i></span><i typeof="mw:Transclusion"><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:Transclusion"><i>a</i></div>
6697 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
6698 <div typeof="mw:Transclusion">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:Transclusion">
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:Transclusion">
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>
7762 SVG thumbnails with no language set
7765 [[File:Foobar.svg|thumb|width=200]]
7767 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.svg" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>width=200</div></div></div>
7772 SVG thumbnails with language de
7775 [[File:Foobar.svg|thumb|width=200|lang=de]]
7777 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=File:Foobar.svg&lang=de" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/langde-180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/langde-270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/langde-360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>width=200</div></div></div>
7782 SVG thumbnails with invalid language code
7785 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
7787 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.svg" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>lang=invalid.language.code</div></div></div>
7792 BUG 1887: A ISBN with a thumbnail
7794 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
7796 <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>
7801 BUG 1887: A RFC with a thumbnail
7803 [[Image:foobar.jpg|thumb|This is RFC 12354]]
7805 <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>
7810 BUG 1887: A mailto link with a thumbnail
7812 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
7814 <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>
7818 # Pending resolution to bug 368
7820 BUG 648: Frameless image caption with a link
7822 [[Image:foobar.jpg|text with a [[link]] in it]]
7824 <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>
7829 BUG 648: Frameless image caption with a link (suffix)
7831 [[Image:foobar.jpg|text with a [[link]]foo in it]]
7833 <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>
7838 BUG 648: Frameless image caption with an interwiki link
7840 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
7842 <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>
7847 BUG 648: Frameless image caption with a piped interwiki link
7849 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7851 <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>
7856 Escape HTML special chars in image alt text
7858 [[Image:foobar.jpg|& < > "]]
7860 <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>
7865 BUG 499: Alt text should have Ӓ, not &1234;
7867 [[Image:foobar.jpg|♀]]
7869 <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>
7874 Broken image caption with link
7876 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7878 <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.
7883 Image caption containing another image
7885 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7887 <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>
7892 Image caption containing a newline
7894 [[Image:Foobar.jpg|This
7897 <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>
7902 Parsoid: Image caption containing leading space
7903 (The leading space should not trigger nowiki escaping in wt2wt mode)
7905 [[Image:Foobar.jpg|thumb| bar]]
7907 <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>
7912 Bug 3090: External links other than http: in image captions
7914 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7916 <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>
7923 [[Image:foobar.jpg|a|class=b]]
7925 <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>
7930 Localized image handling (1).
7934 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
7936 <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>
7941 Localized image handling (2).
7945 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
7947 <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>
7952 "border", "frameless" and "class" attributes on an image.
7954 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
7956 <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>
7963 #REDIRECT [[File:Barfoo.jpg]]
7969 [[Image:Barfoo.jpg]]
7971 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7976 Missing image with uploads disabled
7980 [[Image:Foobaz.jpg]]
7982 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7986 # Parsoid-specific testing for images
7987 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
7988 # Currently imperfect due to a flaw in the Parsoid testrunner
7992 Parsoid-specific image handling - simple image
7996 [[Image:Foobar.jpg]]
7999 <span class="mw-default-size" typeof="mw:Image">
8000 <a href="File:Foobar.jpg">
8001 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8008 Parsoid-specific image handling - simple image without link
8012 [[Image:Foobar.jpg|link=]]
8015 <span class="mw-default-size" typeof="mw:Image">
8017 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8024 Parsoid-specific image handling - simple image with specific link
8028 [[Image:Foobar.jpg|link=Main Page]]
8031 <span class="mw-default-size" typeof="mw:Image">
8032 <a href="Main_Page">
8033 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8040 Parsoid-specific image handling - simple image with size and middle alignment
8044 [[Image:Foobar.jpg|50px|middle]]
8047 <span class="mw-valign-middle" typeof="mw:Image">
8048 <a href="File:Foobar.jpg">
8049 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8056 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8060 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8063 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
8064 <a href="File:Foobar.jpg">
8065 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
8072 Parsoid-specific image handling - simple image with border and size spec
8076 [[Image:Foobar.jpg|50px|border|caption]]
8079 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8080 <a href="File:Foobar.jpg">
8081 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8088 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8092 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8094 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8095 <a href="File:Foobar.jpg">
8096 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8098 <figcaption class="mw-figcaption">caption content</figcaption>
8103 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8107 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
8109 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
8110 <a href="File:Foobar.jpg">
8111 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
8113 <figcaption class="mw-figcaption">caption</figcaption>
8118 Parsoid-specific image handling - framed image with specific size and caption
8122 [[Image:Foobar.jpg|500x50px|frame|caption]]
8124 <figure typeof="mw:Image/Frame">
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" />
8128 <figcaption class="mw-figcaption">caption</figcaption>
8133 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
8137 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
8139 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
8140 <a href="File:Foobar.jpg">
8141 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8143 <figcaption class="mw-figcaption">caption</figcaption>
8148 Parsoid-specific image handling - frameless image with specific size, border, and caption
8152 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
8155 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
8156 <a href="File:Foobar.jpg">
8157 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8163 #Parsoid-specific image handling - simple image with a formatted caption
8167 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
8170 #<span typeof="mw:Image">
8171 #<a class="mw-default-size" href="Image:Foobar.jpg">
8172 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8183 Subpage test/subpage
8191 subpage title=[[Subpage test]]
8195 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
8200 Subpage noslash link
8202 subpage title=[[Subpage test]]
8206 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
8215 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
8220 BUG 561: {{/Subpage}}
8222 subpage title=[[Page]]
8226 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
8234 Category:MediaWiki User's Guide
8242 [[:Category:MediaWiki User's Guide]]
8244 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
8253 [[Category:MediaWiki User's Guide]]
8255 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8259 PAGESINCATEGORY invalid title fatal (r33546 fix)
8261 {{PAGESINCATEGORY:<bogus>}}
8268 Category with different sort key
8272 [[Category:MediaWiki User's Guide|Foo]]
8274 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8278 Category with identical sort key
8282 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8284 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8288 Category with empty sort key
8293 [[Category:MediaWiki User's Guide|]]
8295 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8299 Category with empty sort key and parentheses
8304 [[Category:Foo (bar)|]]
8306 [[Category:Foo (bar)|Foo]]
8310 Category with link tail
8315 123[[Category:Foo]]456
8317 123[[Category:Foo]]456
8321 Category with template
8326 [[Category:{{echo|Foo}}]]
8328 [[Category:{{echo|Foo}}]]
8332 Category with template in sort key
8337 [[Category:Foo|{{echo|Bar}}]]
8339 [[Category:Foo|{{echo|Bar}}]]
8343 Category with template in sort key and title
8348 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8350 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8354 Category / paragraph interactions
8356 Foo [[Category:Baz]] Bar
8358 Foo [[Category:Baz]]
8366 [[Category:Baz]] Bar
8379 {{echo|[[Category:Baz]]}}
8394 ### Inter-language links
8397 Inter-language links
8403 [[zh:食品]]
8405 es:Alimento fr:Nourriture zh:食品
8409 Duplicate interlanguage links (bug 24502)
8425 Basic section headings
8432 ===Smaller headline===
8435 <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>
8438 <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>
8441 <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>
8447 Section headings with TOC
8450 === Subheadline 1 ===
8451 ===== Skipping a level =====
8452 ====== Skipping a level ======
8456 ===Another headline===
8458 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8460 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8462 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8464 <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>
8466 <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>
8473 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8475 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8480 <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>
8481 <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>
8482 <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>
8483 <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>
8484 <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>
8487 <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>
8491 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8493 Handling of sections up to level 6 and beyond
8496 == Level 2 Heading==
8497 === Level 3 Heading===
8498 ==== Level 4 Heading====
8499 ===== Level 5 Heading=====
8500 ====== Level 6 Heading======
8501 ======= Level 7 Heading=======
8502 ======== Level 8 Heading========
8503 ========= Level 9 Heading=========
8504 ========== Level 10 Heading==========
8506 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8508 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8510 <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>
8512 <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>
8514 <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>
8516 <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>
8518 <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>
8519 <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>
8520 <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>
8521 <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>
8522 <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>
8535 <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>
8536 <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>
8537 <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>
8538 <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>
8539 <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>
8540 <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>
8541 <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>
8542 <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>
8543 <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>
8544 <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>
8549 TOC regression (bug 9764)
8553 ==== title 1.1.1 ====
8558 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8560 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8562 <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>
8564 <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>
8567 <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>
8570 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8572 <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>
8577 <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>
8578 <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>
8579 <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>
8580 <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>
8581 <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>
8582 <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>
8587 TOC with wgMaxTocLevel=3 (bug 6204)
8593 ==== title 1.1.1 ====
8598 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8600 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8602 <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>
8603 <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>
8606 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8608 <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>
8613 <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>
8614 <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>
8615 <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>
8616 <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>
8617 <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>
8618 <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>
8623 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
8629 ====Section 1.1.1====
8630 ====Section 1.1.1.1====
8633 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8635 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
8637 <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>
8640 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
8643 <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>
8644 <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>
8645 <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>
8646 <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>
8647 <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>
8653 Resolving duplicate section names
8658 <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>
8659 <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>
8664 Resolving duplicate section names with differing case (bug 10721)
8669 <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>
8670 <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>
8682 Template with sections, __NOTOC__
8689 <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>
8690 <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>
8691 <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>
8692 <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>
8697 __NOEDITSECTION__ keyword
8703 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
8704 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
8709 Link inside a section heading
8711 ==Section with a [[Main Page|link]] in it==
8713 <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>
8718 TOC regression (bug 12077)
8725 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8727 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8729 <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>
8732 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
8735 <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>
8736 <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>
8737 <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>
8742 BUG 1219 URL next to image (good)
8744 http://example.com [[Image:foobar.jpg]]
8746 <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>
8751 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
8754 The line above must have a trailing space!
8757 But just in case it doesn't...
8759 <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>
8760 <p>The line above must have a trailing space!
8762 <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>
8763 <p>But just in case it doesn't...
8768 Header with special characters (bug 25462)
8770 The tooltips shall not show entities to the user (ie. be double escaped)
8787 <p>The tooltips shall not show entities to the user (ie. be double escaped)
8789 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8791 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
8792 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
8793 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
8794 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
8795 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
8798 <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>
8801 <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>
8804 <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>
8807 <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>
8810 <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>
8816 Headers with excess '=' characters
8817 (Are similar tests necessary beyond the 1st level?)
8821 =''italic'' heading==
8822 ==''italic'' heading=
8824 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8826 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
8827 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
8828 <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>
8829 <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>
8832 <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>
8833 <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>
8834 <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>
8835 <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>
8840 HTML headers vs TOC (bug 23393)
8841 (__NOEDITSECTION__ for clearer output, doesn't matter here)
8853 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8855 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
8857 <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>
8858 <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>
8861 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
8863 <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>
8864 <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>
8869 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
8870 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
8871 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
8872 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
8873 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
8874 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
8879 BUG 1219 URL next to image (broken)
8881 http://example.com[[Image:foobar.jpg]]
8883 <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>
8888 Bug 1186 news: in the middle of text
8890 http://en.wikinews.org/wiki/Wikinews:Workplace
8892 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
8898 Namespaced link must have a title
8907 Namespaced link must have a title (bad fragment version)
8909 [[Project:#fragment]]
8911 <p>[[Project:#fragment]]
8917 ### HTML tags and HTML attributes
8921 div with no attributes
8923 <div>HTML rocks</div>
8925 <div>HTML rocks</div>
8930 div with double-quoted attribute
8932 <div id="rock">HTML rocks</div>
8934 <div id="rock">HTML rocks</div>
8939 div with single-quoted attribute
8941 <div id='rock'>HTML rocks</div>
8943 <div id="rock">HTML rocks</div>
8948 div with unquoted attribute
8950 <div id=rock>HTML rocks</div>
8952 <div id="rock">HTML rocks</div>
8957 div with illegal double attributes
8959 <div id="a" id="b">HTML rocks</div>
8961 <div id="b">HTML rocks</div>
8965 # FIXME: produce empty string instead of "class" in the PHP parser, following
8968 div with empty attribute value, space before equals
8972 <div class =>HTML rocks</div>
8974 <div class="">HTML rocks</div>
8978 # The PHP parser escapes the opening brace to { for some reason, so
8979 # disabled this test for it.
8981 div with braces in attribute value
8985 <div title="{}">Foo</div>
8987 <div title="{}">Foo</div>
8990 # This it very inconsistent in the PHP parser: it returns
8991 # class="class" if there is a space between the name and the equal sign (see
8992 # 'div with empty attribute value, space before equals'), but strips the
8993 # attribute completely if the space is missing. We hope that not much content
8994 # depends on this, so are implementing the behavior below in Parsoid for
8995 # consistencies' sake. Disabled for the PHP parser.
8996 # FIXME: fix this behavior in the PHP parser?
8998 div with empty attribute value, no space before equals
9002 <div class=>HTML rocks</div>
9004 <div class="">HTML rocks</div>
9009 HTML multiple attributes correction
9011 <p class="error" class="awesome">Awesome!</p>
9013 <p class="awesome">Awesome!</p>
9018 Table multiple attributes correction
9021 !+ class="error" class="awesome"| status
9026 <th class="awesome"> status
9034 <DIV ID="x">HTML ROCKS</DIV>
9036 <div id="x">HTML ROCKS</div>
9041 Non-ASCII pseudo-tags are rendered as text
9050 Pseudo-tag with URL 'name' renders as url link
9052 <http://example.com/>
9054 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
9059 text with amp in the middle of nowhere
9063 <p>Remember AT&T?
9068 text with character entity: eacute
9070 I always thought é was a cute letter.
9072 <p>I always thought é was a cute letter.
9077 text with entity-escaped character entity-like string: eacute
9079 I always thought &eacute; was a cute letter.
9081 <p>I always thought &eacute; was a cute letter.
9086 text with undefined character entity: xacute
9088 I always thought &xacute; was a cute letter.
9090 <p>I always thought &xacute; was a cute letter.
9102 [[Media:Foobar.jpg]]
9104 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
9109 Media link with text
9111 [[Media:Foobar.jpg|A neat file to look at]]
9113 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
9117 # FIXME: this is still bad HTML tag nesting
9119 Media link with nasty text
9120 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
9122 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
9124 <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>
9129 Media link to nonexistent file (bug 1702)
9131 [[Media:No such.jpg]]
9133 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
9138 Image link to nonexistent file (bug 1850 - good)
9140 [[Image:No such.jpg]]
9142 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
9147 :Image link to nonexistent file (bug 1850 - bad)
9149 [[:Image:No such.jpg]]
9151 <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>
9158 Character reference normalization in link text (bug 1938)
9160 [[Main Page|this&that]]
9162 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
9169 Test for unicode normalization
9171 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
9175 (bug 19451) Links should refer to the normalized form.
9183 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9184 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9185 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9186 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9187 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9192 Empty attribute crash test (bug 2067)
9194 <font color="">foo</font>
9196 <p><font color="">foo</font>
9201 Empty attribute crash test single-quotes (bug 2067)
9203 <font color=''>foo</font>
9205 <p><font color="">foo</font>
9210 Attribute test: equals, then nothing
9212 <font color=>foo</font>
9219 Attribute test: unquoted value
9221 <font color=x>foo</font>
9223 <p><font color="x">foo</font>
9228 Attribute test: unquoted but illegal value (hash)
9230 <font color=#x>foo</font>
9232 <p><font color="#x">foo</font>
9237 Attribute test: no value
9239 <font color>foo</font>
9241 <p><font color="color">foo</font>
9246 Bug 2095: link with three closing brackets
9250 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
9255 Bug 2095: link with pipe and three closing brackets
9259 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
9264 Bug 2095: link with pipe and three closing brackets, version 2
9266 [[Main Page|[http://example.com/]]]
9268 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9278 Template:Dangerous attribute
9280 " onmouseover="alert(document.cookie)
9284 Template:Dangerous style attribute
9286 border-size: expression(alert(document.cookie))
9292 <div style="float: right; {{{1}}}">Magic div</div>
9296 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9298 <div title="{{test}}"></div>
9300 <div title="This is a test template"></div>
9305 Bug 2304: HTML attribute safety (dangerous template; 2309)
9307 <div title="{{dangerous attribute}}"></div>
9309 <div title=""></div>
9314 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9316 <div style="{{dangerous style attribute}}"></div>
9318 <div style="/* insecure input */"></div>
9323 Bug 2304: HTML attribute safety (safe parameter; 2309)
9325 {{div style|width: 200px}}
9327 <div style="float: right; width: 200px">Magic div</div>
9332 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9334 {{div style|width: expression(alert(document.cookie))}}
9336 <div style="/* insecure input */">Magic div</div>
9341 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9343 {{div style|"><script>alert(document.cookie)</script>}}
9345 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9350 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9352 {{div style|" ><script>alert(document.cookie)</script>}}
9354 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9359 Bug 2304: HTML attribute safety (link)
9361 <div title="[[Main Page]]"></div>
9363 <div title="[[Main Page]]"></div>
9368 Bug 2304: HTML attribute safety (italics)
9370 <div title="''foobar''"></div>
9372 <div title="''foobar''"></div>
9377 Bug 2304: HTML attribute safety (bold)
9379 <div title="'''foobar'''"></div>
9381 <div title="'''foobar'''"></div>
9387 Bug 2304: HTML attribute safety (ISBN)
9389 <div title="ISBN 1234567890"></div>
9391 <div title="ISBN 1234567890"></div>
9396 Bug 2304: HTML attribute safety (RFC)
9398 <div title="RFC 1234"></div>
9400 <div title="RFC 1234"></div>
9405 Bug 2304: HTML attribute safety (PMID)
9407 <div title="PMID 1234567890"></div>
9409 <div title="PMID 1234567890"></div>
9414 Bug 2304: HTML attribute safety (web link)
9416 <div title="http://example.com/"></div>
9418 <div title="http://example.com/"></div>
9423 Bug 2304: HTML attribute safety (named web link)
9425 <div title="[http://example.com/ link]"></div>
9427 <div title="[http://example.com/ link]"></div>
9432 Bug 3244: HTML attribute safety (extension; safe)
9434 <div style="<nowiki>background:blue</nowiki>"></div>
9436 <div style="background:blue"></div>
9441 Bug 3244: HTML attribute safety (extension; unsafe)
9443 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9445 <div style="/* insecure input */"></div>
9449 # More MSIE fun discovered by Tom Gilder
9452 MSIE CSS safety test: spurious slash
9454 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9456 <div style="/* insecure input */">evil</div>
9461 MSIE CSS safety test: hex code
9463 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9465 <div style="/* insecure input */">evil</div>
9470 MSIE CSS safety test: comment in url
9472 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9474 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
9479 MSIE CSS safety test: comment in expression
9481 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
9483 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
9489 Table attribute legitimate extension
9492 !+ style="<nowiki>color:blue</nowiki>"| status
9497 <th style="color:blue"> status
9503 Table attribute safety
9506 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
9511 <th style="/* insecure input */"> status
9517 CSS line continuation 1
9519 <div style="background-image: u\ rl(test.jpg);"></div>
9521 <div style="/* insecure input */"></div>
9526 CSS line continuation 2
9528 <div style="background-image: u\ rl(test.jpg); "></div>
9530 <div style="/* insecure input */"></div>
9541 Expansion of multi-line templates in attribute values (bug 6255)
9543 <div style="background: {{identity|#00FF00}}">-</div>
9545 <div style="background: #00FF00">-</div>
9551 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
9553 <div style="background:
9556 <div style="background: #00FF00">-</div>
9561 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
9563 <div style="background: #00FF00">-</div>
9565 <div style="background: #00FF00">-</div>
9570 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
9573 Parser hook: empty input
9586 Parser hook: empty input using terminated empty elements
9599 Parser hook: empty input using terminated empty elements (space before)
9612 Parser hook: basic input
9626 Parser hook: case insensitive
9640 Parser hook: case insensitive, redux
9653 Parser hook: nested tags
9657 <tag><tag></tag></tag>
9668 Parser hook: basic arguments
9670 <tag width=200 height = "100" depth = '50' square></tag>
9678 'square' => 'square',
9685 Parser hook: argument containing a forward slash (bug 5344)
9687 <tag filename='/tmp/bla'></tag>
9692 'filename' => '/tmp/bla',
9699 Parser hook: empty input using terminated empty elements (bug 2374)
9712 # </tag> should be output literally since there is no matching tag that begins it
9714 Parser hook: basic arguments using terminated empty elements (bug 2374)
9716 <tag width=200 height = "100" depth = '50' square/>
9726 'square' => 'square',
9735 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
9739 Parser hook: static parser hook not inside a comment
9741 <statictag>hello, world</statictag>
9742 <statictag action=flush/>
9750 Parser hook: static parser hook inside a comment
9752 <!-- <statictag>hello, world</statictag> -->
9753 <statictag action=flush/>
9759 # Nested template calls; this case was broken by Parser.php rev 1.506,
9763 Template:One-parameter
9765 (My parameter is: {{{1}}})
9769 Template:Map-one-parameter
9775 Nested template calls
9777 {{Map-one-parameter|One-parameter|param}}
9779 <p>(My parameter is: param)
9788 Sanitizer: Closing of open tags
9790 <s></s><table></table>
9792 <s></s><table></table>
9797 Sanitizer: Closing of open but not closed tags
9806 Sanitizer: Closing of closed but not open tags
9815 Sanitizer: Closing of closed but not open table tags
9817 Table not started</td></tr></table>
9819 <p>Table not started</td></tr></table>
9824 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
9826 <span id="æ: v">byte</span>[[#æ: v|backlink]]
9828 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
9833 Sanitizer: Validating the contents of the id attribute (bug 4515)
9839 Something, but definitely not <br id="9" />...
9843 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
9847 <br id="foo" /><br id="foo" />
9849 Something need to be done. foo-2 ?
9853 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
9856 <meta itemprop="hello" content="world">
9857 <meta http-equiv="refresh" content="5">
9858 <meta itemprop="hello" http-equiv="refresh" content="5">
9859 <link itemprop="hello" href="{{SERVER}}">
9860 <link rel="stylesheet" href="{{SERVER}}">
9861 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
9864 <div itemscope="itemscope">
9865 <p> <meta itemprop="hello" content="world" />
9866 <meta http-equiv="refresh" content="5">
9867 <meta itemprop="hello" content="5" />
9869 <link itemprop="hello" href="http://example.org" />
9870 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
9871 <link itemprop="hello" href="http://example.org" />
9877 Language converter: output gets cut off unexpectedly (bug 5757)
9881 this bit is safe: }-
9883 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
9885 then we get cut off here: }-
9887 all additional text is vanished
9889 <p>this bit is safe: }-
9890 </p><p>but if we add a conversion instance: xxx
9891 </p><p>then we get cut off here: }-
9892 </p><p>all additional text is vanished
9897 Self closed html pairs (bug 5487)
9900 <center><font id="bug" />Centered text</center>
9901 <div><font id="bug2" />In div text</div>
9903 <center><font id="bug" />Centered text</center>
9904 <div><font id="bug2" />In div text</div>
9913 Punctuation: nbsp before exclamation
9917 <p>C'est grave !
9922 Punctuation: CSS !important (bug 11874)
9924 <div style="width:50% !important">important</div>
9926 <div style="width:50% !important">important</div>
9931 Punctuation: CSS ! important (bug 11874; with space after)
9933 <div style="width:50% ! important">important</div>
9935 <div style="width:50% ! important">important</div>
9941 HTML bullet list, closed tags (bug 5497)
9956 HTML bullet list, unclosed tags (bug 5497)
9973 HTML ordered list, closed tags (bug 5497)
9988 HTML ordered list, unclosed tags (bug 5497)
10005 HTML nested bullet list, closed tags (bug 5497)
10030 HTML nested bullet list, open tags (bug 5497)
10055 HTML nested ordered list, closed tags (bug 5497)
10080 HTML nested ordered list, open tags (bug 5497)
10105 HTML ordered list item with parameters oddity
10107 <ol><li id="fragment">One</li></ol>
10109 <ol><li id="fragment">One</li></ol>
10114 bug 5918: autonumbering
10116 [http://first/] [http://second] [ftp://ftp]
10120 [mailto:enclosed@mail.tld With target]
10122 [mailto:enclosed@mail.tld]
10124 mailto:inline@mail.tld
10126 <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>
10127 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
10128 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
10129 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
10130 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
10136 # Security and HTML correctness
10137 # From Nick Jenkins' fuzz testing
10141 Fuzz testing: Parser13
10156 Fuzz testing: Parser14
10161 <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>
10162 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10164 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
10171 Fuzz testing: Parser14-table
10176 <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>
10177 <table style="__TOC__">
10183 # Known to produce bogus xml (extra </td>)
10185 Fuzz testing: Parser16
10205 Fuzz testing: Parser21
10208 ! irc://{{ftp://a" onmouseover="alert('hello world');"
10213 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
10223 Fuzz testing: Parser22
10225 http://===r:::https://b
10229 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
10237 # Known to produce bad XML for now
10239 Fuzz testing: Parser24
10246 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
10247 <br style="onmouseover='alert(document.cookie);' " />
10249 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10254 <u class="|">}}}} >
10255 <br style="onmouseover='alert(document.cookie);'" />
10257 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10266 # Note: the current result listed for this is not what the original one was,
10267 # but the original bug was JavaScript injection, which is fixed in any case.
10268 # It's not clear that the original result listed was any more correct than the
10269 # current one. Original result:
10272 # <li class="||">
10273 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10275 Fuzz testing: Parser25 (bug 6055)
10281 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10283 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10288 Fuzz testing: URL adjacent extension (with space, clean)
10291 http://example.com <nowiki>junk</nowiki>
10293 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10298 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10301 http://example.com<nowiki>junk</nowiki>
10303 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10308 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10311 http://example.com<pre>junk</pre>
10313 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10318 Fuzz testing: image with bogus manual thumbnail
10320 [[Image:foobar.jpg|thumbnail= ]]
10322 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10327 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10329 <pre dir=" "></pre>
10331 <pre dir=" "></pre>
10336 Parsing optional HTML elements (Bug 6171)
10341 <td> Some tabular data</td>
10342 <td> More tabular data ...
10343 <td> And yet som tabular data</td>
10349 <td> Some tabular data</td>
10350 <td> More tabular data ...
10351 </td><td> And yet som tabular data</td>
10358 Correct handling of <td>, <tr> (Bug 6171)
10363 <td> Some tabular data</td>
10364 <td> More tabular data ...</td>
10365 <td> And yet som tabular data</td>
10371 <td> Some tabular data</td>
10372 <td> More tabular data ...</td>
10373 <td> And yet som tabular data</td>
10381 Parsing crashing regression (fr:JavaScript)
10385 <p></body></x>
10390 Inline wiki vs wiki block nesting
10396 <p><b>Bold paragraph</b>
10397 </p><p>New wiki paragraph
10402 Inline HTML vs wiki block nesting
10410 <p><b>Bold paragraph</b>
10411 </p><p>New wiki paragraph
10415 # Original result was this:
10416 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10418 # While that might be marginally more intuitive, maybe, the six-apostrophe
10419 # construct is clearly pathological and the result stated here (which is what
10420 # the parser actually does) is about as reasonable as anything.
10422 Mixing markup for italics and bold
10425 '''bold''''''bold''bolditalics'''''
10427 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10435 Article for special page transclusion test
10439 Special page transclusion
10442 {{Special:Prefixindex/Xyzzyx}}
10444 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10449 Special page transclusion twice (bug 5021)
10452 {{Special:Prefixindex/Xyzzyx}}
10453 {{Special:Prefixindex/Xyzzyx}}
10455 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10456 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10461 Transclusion of default MediaWiki message
10463 {{MediaWiki:Mainpage}}
10470 Transclusion of nonexistent MediaWiki message
10472 {{MediaWiki:Mainpagexxx}}
10474 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
10479 Transclusion of MediaWiki message with underscore
10481 {{MediaWiki:history_short}}
10488 Transclusion of MediaWiki message with space
10490 {{MediaWiki:history short}}
10497 Invalid header with following text
10507 Section extraction test (section 0)
10527 Section extraction test (section 1)
10549 Section extraction test (section 2)
10570 Section extraction test (section 3)
10590 Section extraction test (section 4)
10614 Section extraction test (section 5)
10634 Section extraction test (section 6)
10655 Section extraction test (section 7)
10675 Section extraction test (section 8)
10695 Section extraction test (section 9)
10716 Section extraction test (section 10)
10736 Section extraction test (nonexistent section 11)
10755 Section extraction test with bogus heading (section 1)
10760 ==bogus== not a legal section
10764 ==bogus== not a legal section
10768 Section extraction test with bogus heading (section 2)
10773 ==bogus== not a legal section
10780 Section extraction test with comment after heading (section 1)
10792 Section extraction test with comment after heading (section 2)
10804 Section extraction test with bogus <nowiki> heading (section 1)
10809 ==bogus== <nowiki>not a legal section</nowiki>
10813 ==bogus== <nowiki>not a legal section</nowiki>
10817 Section extraction test with bogus <nowiki> heading (section 2)
10822 ==bogus== <nowiki>not a legal section</nowiki>
10829 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
10830 # instead of respecting commented sections
10832 Section extraction prefixed by comment (section 1)
10843 Section extraction prefixed by comment (section 2)
10854 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
10855 # instead of respecting HTML-style headings
10857 Section extraction, mixed wiki and html (section 1)
10873 Section extraction, mixed wiki and html (section 2)
10889 # Formerly testing for bug 3342
10891 Section extraction, heading surrounded by <noinclude>
10895 <noinclude>==unmarked==</noinclude>
10901 # Test behavior of bug 19910
10903 Sectiion with all-equals
10908 The line above must have a trailing space
10911 But just in case it doesn't...
10915 But just in case it doesn't...
10919 Section replacement test (section 0)
10950 Section replacement test (section 1)
10979 Section replacement test (section 2)
11009 Section replacement test (section 3)
11040 Section replacement test (section 4)
11067 Section replacement test (section 5)
11098 Section replacement test (section 6)
11128 Section replacement test (section 7)
11159 Section replacement test (section 8)
11190 Section replacement test (section 9)
11219 Section replacement test (section 10)
11249 Section replacement test with initial whitespace (bug 13728)
11253 Preformatted initial line
11257 Preformatted initial line
11264 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11276 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11289 Section extraction, <pre> around bogus header (bug 10309)
11306 Section replacement, <pre> around bogus header (bug 10309)
11308 noxml replace=2,"xxx"
11329 Handling of 
 in URLs
11333 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11340 5 quotes, code coverage +1 line (php)
11347 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11349 5 quotes, code coverage +1 line (parsoid)
11355 <p><i><b></b></i></p>
11359 Special:Search page linking.
11363 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11375 * {{ROOTPAGENAMEE}}
11377 * {{BASEPAGENAMEE}}
11379 * {{TALKPAGENAMEE}}
11380 * {{SUBJECTPAGENAME}}
11381 * {{SUBJECTPAGENAMEE}}
11387 * {{SUBJECTSPACEE}}
11388 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11390 <ul><li> Parser test
11391 </li><li> Parser test
11392 </li><li> Parser test
11393 </li><li> Parser_test
11394 </li><li> Parser test
11395 </li><li> Parser_test
11396 </li><li> Parser test
11397 </li><li> Parser_test
11398 </li><li> Talk:Parser test
11399 </li><li> Talk:Parser_test
11400 </li><li> Parser test
11401 </li><li> Parser_test
11408 </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>
11412 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11422 image4 |300px| centre
11423 image5.svg| http://///////
11428 <ul class="gallery">
11429 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11430 <div style="height: 150px;">Image1.png</div>
11431 <div class="gallerytext">
11434 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11435 <div style="height: 150px;">Image2.gif</div>
11436 <div class="gallerytext">
11441 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11442 <div style="height: 150px;">Image3</div>
11443 <div class="gallerytext">
11446 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11447 <div style="height: 150px;">Image4</div>
11448 <div class="gallerytext">
11453 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11454 <div style="height: 150px;">Image5.svg</div>
11455 <div class="gallerytext">
11456 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11460 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11461 <div style="height: 150px;">* image6</div>
11462 <div class="gallerytext">
11470 Gallery (with options)
11472 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11473 File:Nonexistant.jpg|caption
11474 File:Nonexistant.jpg
11475 image:foobar.jpg|some '''caption''' [[Main Page]]
11477 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
11480 <ul class="gallery" style="max-width: 226px;_width: 226px;">
11481 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
11482 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11483 <div style="height: 70px;">Nonexistant.jpg</div>
11484 <div class="gallerytext">
11489 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11490 <div style="height: 70px;">Nonexistant.jpg</div>
11491 <div class="gallerytext">
11494 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11495 <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>
11496 <div class="gallerytext">
11497 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11501 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11502 <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>
11503 <div class="gallerytext">
11506 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11507 <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>
11508 <div class="gallerytext">
11518 Gallery with wikitext inside caption
11521 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
11522 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
11525 <ul class="gallery">
11526 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11527 <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>
11528 <div class="gallerytext">
11529 <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>
11533 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11534 <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>
11535 <div class="gallerytext">
11536 <p>This is a test template
11545 gallery (with showfilename option)
11547 <gallery showfilename>
11548 File:Nonexistant.jpg|caption
11549 File:Nonexistant.jpg
11550 image:foobar.jpg|some '''caption''' [[Main Page]]
11554 <ul class="gallery">
11555 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11556 <div style="height: 150px;">Nonexistant.jpg</div>
11557 <div class="gallerytext">
11558 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11563 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11564 <div style="height: 150px;">Nonexistant.jpg</div>
11565 <div class="gallerytext">
11566 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11570 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11571 <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>
11572 <div class="gallerytext">
11573 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11574 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11578 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11579 <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>
11580 <div class="gallerytext">
11581 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11590 Gallery (with namespace-less filenames)
11593 File:Nonexistant.jpg
11599 <ul class="gallery">
11600 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11601 <div style="height: 150px;">Nonexistant.jpg</div>
11602 <div class="gallerytext">
11605 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11606 <div style="height: 150px;">Nonexistant.jpg</div>
11607 <div class="gallerytext">
11610 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11611 <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>
11612 <div class="gallerytext">
11615 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11616 <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>
11617 <div class="gallerytext">
11625 HTML Hex character encoding (spells the word "JavaScript")
11627 JavaScript
11629 <p>JavaScript
11634 HTML Hex character encoding bogus encoding (bug 26437 regression check)
11638 <p>&#xsee;&#XSEE;
11643 HTML Hex character encoding mixed case
11652 __FORCETOC__ override
11664 ISBN 978-0-1234-56 789
11666 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
11671 ISBN followed by 5 spaces
11682 ISBN ISBN 1234567890
11684 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11689 Bug 22905: <abbr> followed by ISBN followed by </a>
11691 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
11693 <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>
11702 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
11707 Double RFC with a wiki link
11711 <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>
11720 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
11725 Centre-aligned image
11727 [[Image:foobar.jpg|centre]]
11729 <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>
11736 [[Image:foobar.jpg|none]]
11738 <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>
11743 Width + Height sized image (using px) (height is ignored)
11745 [[Image:foobar.jpg|640x480px]]
11747 <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>
11752 Width-sized image (using px, no following whitespace)
11754 [[Image:foobar.jpg|640px]]
11756 <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>
11761 Width-sized image (using px, with following whitespace - test regression from r39467)
11763 [[Image:foobar.jpg|640px ]]
11765 <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>
11770 Width-sized image (using px, with preceding whitespace - test regression from r39467)
11772 [[Image:foobar.jpg| 640px]]
11774 <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>
11779 Another italics / bold test
11787 # Note the results may be incorrect, as parserTest output included this:
11788 # XML error: Mismatched tag at byte 6120:
11789 # ...<dd> </dt></dl> </dd...
11797 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
11808 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
11810 Images with the "|" character in the comment
11812 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
11814 <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>
11819 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
11821 <html><script>alert(1);</script></html>
11823 <p><html><script>alert(1);</script></html>
11828 HTML with raw HTML ($wgRawHtml==true)
11832 <html><script>alert(1);</script></html>
11834 <p><script>alert(1);</script>
11839 Parents of subpages, one level up
11841 subpage title=[[Subpage test/L1/L2/L3]]
11845 <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>
11851 Parents of subpages, one level up, not named
11853 subpage title=[[Subpage test/L1/L2/L3]]
11857 <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>
11864 Parents of subpages, two levels up
11866 subpage title=[[Subpage test/L1/L2/L3]]
11872 <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
11873 </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>
11878 Parents of subpages, two levels up, without trailing slash or name.
11880 subpage title=[[Subpage test/L1/L2/L3]]
11889 Parents of subpages, two levels up, with lots of extra trailing slashes.
11891 subpage title=[[Subpage test/L1/L2/L3]]
11895 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
11900 Definition list code coverage
11906 <dl><dt> title  </dt><dd> def
11907 </dd><dt> title </dt><dd> def
11908 </dd><dt>title</dt><dd> def
11914 Don't fall for the self-closing div
11916 <div>hello world</div/>
11918 <div>hello world</div>
11927 <p>[[:Template:Msg]]
11936 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
11940 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
11942 Always escape literal '>' in output, not just after '<'
11956 <p>This is a test template
11957 This is a test template
11969 Inclusion of !userCanEdit() content
11973 <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>
11979 Out-of-order TOC heading levels
11988 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11990 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
11992 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
11993 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
11996 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
11998 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
11999 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
12004 <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>
12005 <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>
12006 <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>
12007 <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>
12008 <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>
12009 <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>
12015 ISBN with a dummy number
12025 ISBN with space-delimited number
12029 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
12035 ISBN with multiple spaces, no number
12054 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12055 </p><p>ISBN 12345678901
12061 ISBN with trailing year (bug 8110)
12063 ISBN 1-234-56789-0 - 2006
12065 ISBN 1 234 56789 0 - 2006
12067 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
12068 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
12076 {{anchorencode:foo bar©#%n}}
12078 <p>foo_bar.C2.A9.23.25n
12083 anchorencode trims spaces
12085 {{anchorencode: __pretty__please__}}
12092 anchorencode deals with links
12094 {{anchorencode: [[hello|world]] [[hi]]}}
12101 anchorencode deals with templates
12103 {{anchorencode: {{Foo}} }}
12110 anchorencode encodes like the TOC generator: (bug 18431)
12112 === _ +:.3A%3A&&]] ===
12113 {{anchorencode: _ +:.3A%3A&&]] }}
12116 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
12117 <p>.2B:.3A.253A.26.26.5D.5D
12121 # Expected output in the following test is not necessarily expected (there
12122 # should probably be <p> tags inside the <blockquote> in the output) -- it's
12123 # only testing for well-formedness.
12125 Bug 6200: blockquotes and paragraph formatting
12145 Bug 8293: Use of center tag ruins paragraph formatting
12166 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
12170 <span><s>x</span></s>
12172 <p><span><s>x</span></s></span>
12177 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
12181 <span><s>x</span></s>
12183 <p><span><s>x</s></span><s></s>
12188 ### Language variants related tests
12191 Self-link in language variants
12193 title=[[Dunav]] language=sr
12195 Both [[Dunav]] and [[Дунав]] are names for this river.
12197 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
12208 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
12210 title=[[Duna]] language=sr
12212 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
12214 <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.
12219 Link to pages in language variants
12223 Main Page can be written as [[Маин Паге]]
12225 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
12231 Multiple links to pages in language variants
12235 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
12237 <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>.
12243 Simple template in language variants
12249 <p>This is a test template
12255 Template with explicit namespace in language variants
12261 <p>This is a test template
12267 Basic test for template parameter in language variants
12271 {{парамтест|param=foo}}
12273 <p>This is a test template with parameter foo
12279 Simple category in language variants
12283 [[Category:МедиаWики Усер'с Гуиде]]
12285 <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>
12302 Don't convert blue categorylinks to another variant (bug 33210)
12306 [[A]][[Category:分类]]
12308 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12313 Stripping -{}- tags (language variants)
12317 Latin proverb: -{Ne nuntium necare}-
12319 <p>Latin proverb: Ne nuntium necare
12325 Prevent conversion with -{}- tags (language variants)
12327 language=sr variant=sr-ec
12329 Latinski: -{Ne nuntium necare}-
12331 <p>Латински: Ne nuntium necare
12337 Prevent conversion of text with -{}- tags (language variants)
12339 language=sr variant=sr-ec
12341 Latinski: -{Ne nuntium necare}-
12343 <p>Латински: Ne nuntium necare
12349 Prevent conversion of links with -{}- tags (language variants)
12351 language=sr variant=sr-ec
12355 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12361 -{}- tags within headlines (within html for parserConvert())
12363 language=sr variant=sr-ec
12367 <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>
12373 Explicit definition of language variant alternatives
12375 language=zh variant=zh-tw
12377 -{zh:China;zh-tw:Taiwan}-, not China
12379 <p>Taiwan, not China
12385 Conversion around HTML tags
12387 language=sr variant=sr-ec
12389 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12390 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12393 <span title="ЛаCтин">ски</span>
12399 Explicit session-wise language variant mapping (A flag and - flag)
12401 language=zh variant=zh-tw
12403 Taiwan is not China.
12404 But -{A|zh:China;zh-tw:Taiwan}- is China,
12405 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12406 and -{China}- is China.
12408 <p>Taiwan is not China.
12409 But Taiwan is Taiwan,
12410 (This should be stripped!)
12411 and China is China.
12416 Explicit session-wise language variant mapping (H flag for hide)
12418 language=zh variant=zh-tw
12420 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12423 <p>(This should be stripped!)
12429 Adding explicit conversion rule for title (T flag)
12431 language=zh variant=zh-tw showtitle
12433 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12436 <p>Should be stripped!
12441 Testing that changing the language variant here in the tests actually works
12443 language=zh variant=zh showtitle
12445 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12448 <p>Should be stripped!
12453 Recursive conversion of alt and title attrs shouldn't clear converter state
12455 language=zh variant=zh-cn showtitle
12457 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
12458 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
12462 Should be stripped<span title="Exclamation">!</span>
12467 Bug 24072: more test on conversion rule for title
12469 language=zh variant=zh-tw showtitle
12471 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12472 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
12475 <p>This should be stripped!
12476 This won't take interferes with the title rule.
12481 Partly disable title conversion if variant == main language code
12483 language=zh variant=zh title=[[ZH]] showtitle
12485 -{T|zh-cn:CN;zh-tw:TW}-
12493 Partly disable title conversion if variant == main language code, more
12495 language=zh variant=zh title=[[ZH]] showtitle
12505 Raw output of variant escape tags (R flag)
12507 language=zh variant=zh-tw
12509 Raw: -{R|zh:China;zh-tw:Taiwan}-
12511 <p>Raw: zh:China;zh-tw:Taiwan
12516 Nested using of manual convert syntax
12518 language=zh variant=zh-hk
12520 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
12522 <p>Nested: Hello Hong Kong!
12527 Proper conversion of text in external links
12529 language=sr variant=sr-ec
12531 http://www.google.com
12532 gopher://www.google.com
12533 [http://www.google.com http://www.google.com]
12534 [gopher://www.google.com gopher://www.google.com]
12535 [https://www.google.com irc://www.google.com]
12536 [ftp://www.google.com www.google.com/ftp://dir]
12537 [//www.google.com www.google.com]
12539 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12540 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12541 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12542 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12543 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
12544 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
12545 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
12550 Do not convert roman numbers to language variants
12552 language=sr variant=sr-ec
12556 <p>Фридрих IV је цар.
12561 Unclosed language converter markup "-{"
12572 Don't convert raw rule "-{R|=>}-" to "=>"
12589 Bug 529: Uncovered bullet
12599 # Plain MediaWiki does not remove empty lists, but tidy actually does.
12600 # Templates in Wikipedia rely on this behavior, as tidy has always been
12601 # enabled there. These tests are normally run *without* tidy, so specify the
12602 # full output here.
12603 # To test realistic parsing behavior, apply a tidy-like transformation to both
12604 # the expected output and your parser's output.
12606 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
12608 ******* Foo {{bullet}}
12610 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
12623 Bug 529: Uncovered table already at line-start
12646 Bug 529: Uncovered bullet in parser function result
12648 * Foo {{lc:{{bullet}} }}
12657 Bug 5678: Double-parsed template argument
12659 {{lc:{{{1}}}|hello}}
12666 Bug 5678: Double-parsed template invocation
12668 {{lc:{{paramtest {{!}} param = hello }} }}
12670 <p>{{paramtest | param = hello }}
12675 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
12678 title=[[Main Page]]
12680 {{PRVNÍVELKÉ:ěščř}}
12681 {{prvnívelké:ěščř}}
12701 Morwen/13: Unclosed link followed by heading
12708 <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>
12713 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
12720 <h1><span class="mw-headline" id="heading">heading</span></h1>
12725 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
12732 <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>
12747 Paragraphs inside divs (no extra line breaks)
12759 Paragraphs inside divs (extra line break on open)
12774 Paragraphs inside divs (extra line break on close)
12789 Paragraphs inside divs (extra line break on open and close)
12806 Nesting tags, paragraphs on lines which begin with <div>
12810 <div></div><strong>A
12819 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
12821 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
12825 <blockquote>Line one
12827 Line two</blockquote>
12829 <blockquote>Line one
12830 Line two</blockquote>
12835 Bug 6200: paragraphs inside blockquotes (extra line break on open)
12842 Line two</blockquote>
12847 Line two</blockquote>
12852 Bug 6200: paragraphs inside blockquotes (extra line break on close)
12856 <blockquote>Line one
12861 <blockquote>Line one
12869 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
12888 Paragraphs inside blockquotes/divs (no extra line breaks)
12890 <blockquote><div>Line one
12892 Line two</div></blockquote>
12894 <blockquote><div>Line one
12895 Line two</div></blockquote>
12900 Paragraphs inside blockquotes/divs (extra line break on open)
12905 Line two</div></blockquote>
12910 Line two</div></blockquote>
12915 Paragraphs inside blockquotes/divs (extra line break on close)
12917 <blockquote><div>Line one
12920 </div></blockquote>
12922 <blockquote><div>Line one
12925 </div></blockquote>
12930 Paragraphs inside blockquotes/divs (extra line break on open and close)
12936 </div></blockquote>
12942 </div></blockquote>
12947 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
12949 wgLinkHolderBatchSize=0
12955 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
12956 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
12957 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
12962 Free external link invading image caption
12964 [[Image:Foobar.jpg|thumb|http://x|hello]]
12966 <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>
12971 Bug 15196: localised external link numbers
12975 [http://en.wikipedia.org/]
12977 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
12982 Multibyte character in padleft
12984 {{padleft:-Hello|7|Æ}}
12991 Multibyte character in padright
12993 {{padright:Hello-|7|Æ}}
13000 formatdate parser function
13002 {{#formatdate:2009-03-24}}
13004 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
13009 formatdate parser function, with default format
13011 {{#formatdate:2009-03-24|mdy}}
13013 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
13018 Spacing of numbers in formatted dates
13020 {{#formatdate:January 15}}
13022 <p><span class="mw-formatted-date" title="01-15">January 15</span>
13027 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
13029 language=nl title=[[MediaWiki:Common.css]]
13031 {{#formatdate:2009-03-24|dmy}}
13033 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
13046 Edit comment with link
13050 I like the [[Main Page]] a lot
13052 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
13056 Edit comment with link and link text
13060 I like the [[Main Page|best pages]] a lot
13062 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13066 Edit comment with link and link text with suffix
13070 I like the [[Main Page|best page]]s a lot
13072 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13076 Edit comment with section link (non-local, eg in history list)
13078 comment title=[[Main Page]]
13080 /* External links */ removed bogus entries
13082 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13086 Edit comment with section link and text before it (non-local, eg in history list)
13088 comment title=[[Main Page]]
13090 pre-comment text /* External links */ removed bogus entries
13092 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>
13096 Edit comment with section link (local, eg in diff view)
13098 comment local title=[[Main Page]]
13100 /* External links */ removed bogus entries
13102 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13106 Edit comment with subpage link (bug 14080)
13110 title=[[Subpage test]]
13112 Poked at a [[/subpage]] here...
13114 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
13118 Edit comment with subpage link and link text (bug 14080)
13122 title=[[Subpage test]]
13124 Poked at a [[/subpage|neat little page]] here...
13126 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
13130 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
13133 title=[[Subpage test]]
13135 Poked at a [[/subpage]] here...
13137 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
13141 Edit comment with bare anchor link (local, as on diff)
13145 title=[[Main Page]]
13149 <a href="#section">#section</a>
13153 Edit comment with bare anchor link (non-local, as on history)
13156 title=[[Main Page]]
13160 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
13164 Anchor starting with underscore
13168 <p><a href="#_ref">One</a>
13173 Id starting with underscore
13175 <div id="_ref"></div>
13177 <div id="_ref"></div>
13182 Space normalisation on autocomment (bug 22784)
13185 title=[[Main Page]]
13187 /* __hello__world__ */
13189 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
13193 percent-encoding and + signs in comments (Bug 26410)
13197 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
13199 <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>
13203 Bad images - basic functionality
13212 Bad images - bug 16039: text after bad image disappears
13226 Verify that displaytitle works (bug #22501) no displaytitle
13230 wgAllowDisplayTitle=true
13231 wgRestrictDisplayTitle=false
13233 this is not the the title
13236 <p>this is not the the title
13241 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
13246 wgAllowDisplayTitle=true
13247 wgRestrictDisplayTitle=false
13249 this is not the the title
13250 {{DISPLAYTITLE:whatever}}
13253 <p>this is not the the title
13258 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
13263 wgAllowDisplayTitle=true
13264 wgRestrictDisplayTitle=true
13266 this is not the the title
13267 {{DISPLAYTITLE:whatever}}
13270 <p>this is not the the title
13275 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13280 wgAllowDisplayTitle=true
13281 wgRestrictDisplayTitle=true
13283 this is not the the title
13284 {{DISPLAYTITLE:screen}}
13287 <p>this is not the the title
13292 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13297 wgAllowDisplayTitle=false
13299 this is not the the title
13300 {{DISPLAYTITLE:screen}}
13303 <p>this is not the the title
13304 <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>
13309 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13314 wgAllowDisplayTitle=false
13316 this is not the the title
13319 <p>this is not the the title
13324 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
13329 wgAllowDisplayTitle=true
13330 wgRestrictDisplayTitle=true
13332 this is not the the title
13333 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
13335 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
13336 <p>this is not the the title
13341 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
13346 wgAllowDisplayTitle=true
13347 wgRestrictDisplayTitle=true
13349 this is not the the title
13350 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
13352 <span style="color: red;">s</span>creen
13353 <p>this is not the the title
13358 preload: check <noinclude> and <includeonly>
13362 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13368 preload: check <onlyinclude>
13372 Goodbye <onlyinclude>Hello world</onlyinclude>
13378 preload: can pass tags through if we want to
13382 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13384 <includeonly>Hello world</includeonly>
13388 preload: check that it doesn't try to do tricks
13392 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13394 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13398 Play a bit with r67090 and bug 3158
13402 <div style="width:50% !important"> </div>
13403 <div style="width:50% !important"> </div>
13404 <div style="width:50% !important"> </div>
13405 <div style="border : solid;"> </div>
13407 <div style="width:50% !important"> </div>
13408 <div style="width:50% !important"> </div>
13409 <div style="width:50% !important"> </div>
13410 <div style="border : solid;"> </div>
13415 HTML5 data attributes
13417 <span data-foo="bar">Baz</span>
13418 <p data-abc-def_hij="">Quuz</p>
13420 <p><span data-foo="bar">Baz</span>
13422 <p data-abc-def_hij="">Quuz</p>
13427 percent-encoding and + signs in internal links (Bug 26410)
13429 [[User:+%]] [[Page+title%]]
13430 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
13431 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
13432 [[%33%45]] [[%33%45+]]
13434 <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>
13435 <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>
13436 <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>
13437 <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>
13442 Special characters in embedded file links (bug 27679)
13444 [[File:Contains & ampersand.jpg]]
13445 [[File:Does not exist.jpg|Title with & ampersand]]
13447 <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>
13448 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
13454 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
13456 Text's been normalized?
13458 <p>Text's been normalized?
13463 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
13465 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
13467 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
13472 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
13474 [http://www.example.org/ ideograms]
13476 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
13481 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
13483 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
13485 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
13509 Bug 31098 Template which includes system messages which includes the template
13513 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13514 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13519 Bug31490 Turkish: ucfirst 'blah'
13530 Bug31490 Turkish: ucfirst 'ix'
13541 Bug31490 Turkish: lcfirst 'BLAH'
13552 Bug31490 Turkish: ucfırst (with a dotless i)
13558 <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>
13563 Bug31490 ucfırst (with a dotless i) with English language
13569 <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>
13574 Bug 26375: TOC with italics
13576 title=[[Main Page]]
13579 == ''Lost'' episodes ==
13581 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13583 <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>
13586 <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>
13591 Bug 26375: TOC with bold
13593 title=[[Main Page]]
13596 == '''should be bold''' then normal text ==
13598 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13600 <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>
13603 <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>
13608 Bug 33845: Headings become cursive in TOC when they contain an image
13610 title=[[Main Page]]
13613 == Image [[Image:foobar.jpg]] ==
13615 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13617 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
13620 <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>
13625 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
13627 title=[[Main Page]]
13630 == <blockquote>Quote</blockquote> ==
13632 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13634 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
13637 <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>
13642 Unclosed tags in TOC
13644 title=[[Main Page]]
13648 <small>Hanc marginis exiguitas non caperet.</small>
13651 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13653 <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>
13656 <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>
13657 <p><small>Hanc marginis exiguitas non caperet.</small>
13663 Multiple tags in TOC
13666 == <i>Foo</i> <b>Bar</b> ==
13668 == <i>Foo</i> <blockquote>Bar</blockquote> ==
13670 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13672 <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>
13673 <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>
13676 <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>
13677 <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>
13682 Tags with parameters in TOC
13685 == <sup class="in-h2">Hello</sup> ==
13687 == <sup class="a > b">Evilbye</sup> ==
13689 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13691 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
13692 <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>
13695 <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>
13696 <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>
13701 span tags with directionality in TOC
13704 == <span dir="ltr">C++</span> ==
13706 == <span dir="rtl">זבנג!</span> ==
13708 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
13710 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
13712 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
13714 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13716 <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>
13717 <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>
13718 <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>
13719 <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>
13720 <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>
13723 <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>
13724 <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>
13725 <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>
13726 <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>
13727 <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>
13734 == {{int:headline_sample}} ==
13738 Bug 32057: Title needed when expanding <h> nodes.
13740 title=[[Main Page]]
13744 <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>
13749 Strip marker in urlencode
13751 {{urlencode:x<nowiki/>y}}
13752 {{urlencode:x<nowiki/>y|wiki}}
13753 {{urlencode:x<nowiki/>y|path}}
13780 Strip marker in formatNum
13782 {{formatnum:1<nowiki/>2}}
13783 {{formatnum:1<nowiki/>2|R}}
13791 Check noCommafy in formatNum
13795 {{formatnum:123456.78}}
13796 {{formatnum:123456.78|NOSEP}}
13804 Strip marker in grammar
13808 {{grammar:elative|foo<nowiki/>bar}}
13815 Strip marker in padleft
13817 {{padleft:|2|x<nowiki/>y}}
13824 Strip marker in padright
13826 {{padright:|2|x<nowiki/>y}}
13833 Strip marker in anchorencode
13835 {{anchorencode:x<nowiki/>y}}
13842 nowiki inside link inside heading (bug 18295)
13844 ==[[foo|x<nowiki>y</nowiki>z]]==
13846 <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>
13851 new support for bdi element (bug 31817)
13853 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13855 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13860 Ignore pipe between table row attributes
13864 |- id=foo | style='color: red'
13872 <tr id="foo" style="color: red">
13879 Gallery override link with WikiLink (bug 34852)
13882 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
13885 <ul class="gallery">
13886 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13887 <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>
13888 <div class="gallerytext">
13898 Gallery override link with absolute external link (bug 34852)
13901 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
13904 <ul class="gallery">
13905 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13906 <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>
13907 <div class="gallerytext">
13917 Gallery override link with malicious javascript (bug 34852)
13920 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
13923 <ul class="gallery">
13924 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13925 <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>
13926 <div class="gallerytext">
13936 Gallery with invalid title as link (bug 43964)
13939 File:foobar.jpg|link=<
13942 <ul class="gallery">
13943 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13944 <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>
13945 <div class="gallerytext">
13953 Language parser function
13962 Padleft and padright as substr
13964 {{padleft:|3|abcde}}
13965 {{padright:|3|abcde}}
13973 Bug 34939 - Case insensitive link parsing ([HttP://])
13975 [HttP://MediaWiki.Org/]
13977 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
13982 Bug 34939 - Case insensitive link parsing ([HttP:// title])
13984 [HttP://MediaWiki.Org/ MediaWiki]
13986 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
13991 Bug 34939 - Case insensitive link parsing (HttP://)
13993 HttP://MediaWiki.Org/
13995 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
14001 ### Parsoids-specific tests
14002 ### Parsoid-PHP parser incompatibilities
14005 1. SOL-sensitive wikitext tokens as template-args
14007 parsoid=wt2html,wt2wt
14013 <span about="#mwt1" typeof="mw:Transclusion">
14014 </span><ul about="#mwt1"><li>a</li></ul>
14015 <span about="#mwt2" typeof="mw:Transclusion">
14016 </span><ol about="#mwt2"><li>a</li></ol>
14017 <span about="#mwt3" typeof="mw:Transclusion">
14018 </span><dl about="#mwt3"><dd>a</dd></dl>
14021 #### The following section of tests are primarily to test
14022 #### wikitext escaping capabilities of Parsoid. Given that
14023 #### escaping can be done any number of ways, the wikitext (input)
14024 #### is always adjusted to reflect how Parsoid adds nowiki
14027 #### We are marking several tests as parsoid-only since the
14028 #### HTML in the result section is different from what the
14029 #### PHP parser generates for it.
14032 #### --------------- Headings ---------------
14034 #### 1. Nested inside html <h1>=foo=</h1>
14035 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
14036 #### 3. Nested inside html with wikitext split by html tags
14037 #### 4. No escape needed
14038 #### 5. Empty headings <h1></h1>
14039 #### 6. Heading chars in SOL context
14040 #### ----------------------------------------
14042 Headings: 0. Unnested
14046 <nowiki>=foo=</nowiki>
14048 <nowiki> =foo= </nowiki>
14050 <nowiki>=foo=</nowiki>
14052 =foo''a''<nowiki>=</nowiki>
14054 <p><span typeof="mw:Nowiki">=foo=</span></p>
14056 <p><span typeof="mw:Nowiki"> =foo= </span>
14058 <span typeof="mw:Nowiki">=foo=</span></p>
14060 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
14064 Headings: 1. Nested inside html
14068 =<nowiki>=foo=</nowiki>=
14069 ==<nowiki>=foo=</nowiki>==
14070 ===<nowiki>=foo=</nowiki>===
14071 ====<nowiki>=foo=</nowiki>====
14072 =====<nowiki>=foo=</nowiki>=====
14073 ======<nowiki>=foo=</nowiki>======
14075 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
14076 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
14077 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
14078 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
14079 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
14080 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
14084 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
14089 <nowiki>*bar</nowiki>
14093 <nowiki>=bar=</nowiki>
14101 Headings: 3. Nested inside html with wikitext split by html tags
14105 =='''bold'''<nowiki>foo=</nowiki>=
14107 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
14111 Headings: 4a. No escaping needed (testing just h1 and h2)
14122 =<nowiki>=</nowiki>=
14130 <h1><i>=</i>foo=</h1>
14131 <h1><span typeof="mw:Nowiki">=</span></h1>
14135 Headings: 4b. No escaping needed (inside p-tags)
14150 Headings: 5. Empty headings
14158 =====<nowiki/>=====
14159 ======<nowiki/>======
14170 Headings: 6. Heading chars in SOL context
14174 <!--cmt--><nowiki>=h1=</nowiki>
14175 <!--cmt--><nowiki> =h1= </nowiki>
14177 <p><!--cmt--><span typeof="mw:Nowiki">=h1=</span>
14178 <!--cmt--><span typeof="mw:Nowiki"> =h1= </span></p>
14181 #### --------------- Lists ---------------
14182 #### 0. Outside nests (*foo, etc.)
14183 #### 1. Nested inside html <ul><li>*foo</li></ul>
14184 #### 2. Inside definition lists
14185 #### 3. Only bullets at start should be escaped
14186 #### 4. No escapes needed
14187 #### 5. No unnecessary escapes
14188 #### 6. Escape bullets in SOL position
14189 #### 7. Escape bullets in a multi-line context
14190 #### ----------------------------------------
14193 Lists: 0. Outside nests
14195 <nowiki>*foo</nowiki>
14197 <nowiki>#foo</nowiki>
14205 Lists: 1. Nested inside html
14207 *<nowiki>*foo</nowiki>
14209 *<nowiki>#foo</nowiki>
14211 *<nowiki>:foo</nowiki>
14213 *<nowiki>;foo</nowiki>
14215 #<nowiki>*foo</nowiki>
14217 #<nowiki>#foo</nowiki>
14219 #<nowiki>:foo</nowiki>
14221 #<nowiki>;foo</nowiki>
14243 Lists: 2. Inside definition lists
14245 ;<nowiki>;foo</nowiki>
14247 ;<nowiki>:foo</nowiki>
14249 ;<nowiki>:foo</nowiki>
14252 :<nowiki>:foo</nowiki>
14267 Lists: 3. Only bullets at start of text should be escaped
14269 *<nowiki>*foo*bar</nowiki>
14271 *<nowiki>*foo</nowiki>''it''*bar
14275 <ul><li>*foo<i>it</i>*bar
14281 Lists: 4. No escapes needed
14293 <ul><li><i>foo</i>*bar
14295 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
14300 Lists: 5. No unnecessary escapes
14302 * bar <span><nowiki>[[foo]]</nowiki></span>
14304 *=bar <span><nowiki>[[foo]]</nowiki></span>
14306 *[[bar <span><nowiki>[[foo]]</nowiki></span>
14308 *]]bar <span><nowiki>[[foo]]</nowiki></span>
14310 *=bar <span>foo]]</span>=
14314 <ul><li> bar <span>[[foo]]</span>
14316 <ul><li>=bar <span>[[foo]]</span>
14318 <ul><li>[[bar <span>[[foo]]</span>
14320 <ul><li>]]bar <span>[[foo]]</span>
14322 <ul><li>=bar <span>foo]]</span>=
14324 <ul><li> <s></s>: a
14330 Lists: 6. Escape bullets in SOL position
14334 <!--cmt--><nowiki>*foo</nowiki>
14336 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
14340 Lists: 7. Escape bullets in a multi-line context
14350 #### --------------- HRs ---------------
14351 #### 1. Single line
14352 #### -----------------------------------
14355 HRs: 1. Single line
14359 ----<nowiki>----</nowiki>
14363 <hr><span typeof="mw:Nowiki">----</span>
14368 #### --------------- Tables ---------------
14369 #### 1a. Simple example
14370 #### 1b. No escaping needed (!foo)
14371 #### 1c. No escaping needed (|foo)
14372 #### 1d. No escaping needed (|}foo)
14374 #### 2a. Nested in td (<td>foo|bar</td>)
14375 #### 2b. Nested in td (<td>foo||bar</td>)
14376 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
14378 #### 3a. Nested in th (<th>foo!bar</th>)
14379 #### 3b. Nested in th (<th>foo!!bar</th>)
14380 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
14384 #### 4c. No escaping needed
14385 #### --------------------------------------
14388 Tables: 1a. Simple example
14399 Tables: 1b. No escaping needed
14408 Tables: 1c. No escaping needed
14417 Tables: 1d. No escaping needed
14426 Tables: 2a. Nested in td
14431 |<nowiki>foo|bar</nowiki>
14435 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
14439 Tables: 2b. Nested in td
14444 |<nowiki>foo||bar</nowiki>
14445 |''it''<nowiki>foo||bar</nowiki>
14449 <td><span typeof="mw:Nowiki">foo||bar</span></td>
14450 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
14454 Tables: 2c. Nested in td -- no escaping needed
14462 <table><tbody><tr><td>foo!!bar
14463 </td></tr></tbody></table>
14468 Tables: 3a. Nested in th
14476 <table><tbody><tr><th>foo!bar
14477 </th></tr></tbody></table>
14482 Tables: 3b. Nested in th
14487 !<nowiki>foo!!bar</nowiki>
14491 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
14496 Tables: 3c. Nested in th -- no escaping needed
14501 !<nowiki>foo||bar</nowiki>
14505 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
14509 Tables: 4a. Escape -
14517 |<nowiki>-bar</nowiki>
14521 <tr><th>-bar</th></tr>
14523 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
14527 Tables: 4b. Escape +
14535 |<nowiki>+bar</nowiki>
14539 <tr><th>+bar</th></tr>
14541 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
14545 Tables: 4c. No escaping needed
14559 <tr><td>foo-bar</td><td>foo+bar</td></tr>
14560 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
14564 ### SSS FIXME: Disabled right now because accurate html2wt
14565 ### on this snippet requires data-parsoid flags that we've
14566 ### stripped out of these tests. We should scheme how we
14567 ### we want to handle these kind of tests that require
14568 ### data-parsoid flags for accurate html2wt serialization
14571 Tables: 4d. No escaping needed
14589 #### --------------- Links ---------------
14590 #### 1. Quote marks in link text
14591 #### 2. Wikilinks: Escapes needed
14592 #### 3. Wikilinks: No escapes needed
14593 #### 4. Extlinks: Escapes needed
14594 #### 5. Extlinks: No escapes needed
14595 #### --------------------------------------
14597 Links 1. Quote marks in link text
14601 [[Foo|<nowiki>Foo''boo''</nowiki>]]
14603 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
14607 Links 2. WikiLinks: Escapes needed
14611 [[Foo|<nowiki>[Foobar]</nowiki>]]
14612 [[Foo|<nowiki>Foobar]</nowiki>]]
14613 [[Foo|x [Foobar] x]]
14614 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
14615 [[Foo|<nowiki>[[Bar]]</nowiki>]]
14616 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
14617 [[Foo|<nowiki>|Bar</nowiki>]]
14618 [[Foo|<nowiki>]]bar</nowiki>]]
14619 [[Foo|<nowiki>[[bar</nowiki>]]
14620 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
14622 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
14623 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
14624 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
14625 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
14626 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
14627 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
14628 <a href="Foo" rel="mw:WikiLink">|Bar</a>
14629 <a href="Foo" rel="mw:WikiLink">]]bar</a>
14630 <a href="Foo" rel="mw:WikiLink">[[bar</a>
14631 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
14635 Links 3. WikiLinks: No escapes needed
14642 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
14643 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
14647 Links 4. ExtLinks: Escapes needed
14651 [http://google.com <nowiki>[google]</nowiki>]
14652 [http://google.com <nowiki>google]</nowiki>]
14654 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
14655 <a href="http://google.com" rel="mw:ExtLink">google]</a>
14659 Links 5. ExtLinks: No escapes needed
14663 [http://google.com [google]
14665 <a href="http://google.com" rel="mw:ExtLink">[google</a>
14668 #### --------------- Quotes ---------------
14669 #### 1. Quotes inside <b> and <i>
14670 #### 2. Link fragments separated by <i> and <b> tags
14671 #### 3. Link fragments inside <i> and <b>
14672 #### --------------------------------------
14674 1. Quotes inside <b> and <i>
14676 ''<nowiki>'foo'</nowiki>''
14677 ''<nowiki>''foo''</nowiki>''
14678 ''<nowiki>'''foo'''</nowiki>''
14679 '''<nowiki>'foo'</nowiki>'''
14680 '''<nowiki>''foo''</nowiki>'''
14681 '''<nowiki>'''foo'''</nowiki>'''
14682 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
14690 <b>foo'<i>bar'</i>baz</b>
14695 2. Link fragments separated by <i> and <b> tags
14697 [[''foo''<nowiki>hello]]</nowiki>
14699 [['''foo'''<nowiki>hello]]</nowiki>
14701 <p>[[<i>foo</i>hello]]
14702 </p><p>[[<b>foo</b>hello]]
14707 2. Link fragments inside <i> and <b>
14708 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
14709 this is one of the shortcomings of this format)
14711 ''[[foo''<nowiki>]]</nowiki>
14713 '''[[foo'''<nowiki>]]</nowiki>
14716 </p><p><b>[[foo</b>]]
14720 #### --------------- Paragraphs ---------------
14721 #### 1. No unnecessary escapes
14722 #### --------------------------------------
14725 1. No unnecessary escapes
14727 bar <span><nowiki>[[foo]]</nowiki></span>
14729 =bar <span><nowiki>[[foo]]</nowiki></span>
14731 [[bar <span><nowiki>[[foo]]</nowiki></span>
14733 ]]bar <span><nowiki>[[foo]]</nowiki></span>
14735 =bar <span>foo]]</span><nowiki>=</nowiki>
14737 <p>bar <span>[[foo]]</span>
14738 </p><p>=bar <span>[[foo]]</span>
14739 </p><p>[[bar <span>[[foo]]</span>
14740 </p><p>]]bar <span>[[foo]]</span>
14741 </p><p>=bar <span>foo]]</span>=
14745 #### --------------- PRE ------------------
14746 #### 1. Leading space in SOL context should be escaped
14747 #### --------------------------------------
14749 1. Leading space in SOL context should be escaped
14753 <nowiki> foo</nowiki>
14754 <!--cmt--><nowiki> foo</nowiki>
14761 #### --------------- HTML tags ---------------
14764 #### 3. multi-line html tag
14765 #### --------------------------------------
14771 <a href="http://google.com">google</a>
14773 <a href="http://google.com">google</a>
14779 <nowiki><div>foo</div>
14780 <div style="color:red">foo</div></nowiki>
14782 <p><div>foo</div>
14783 <div style="color:red">foo</div>
14788 3. multi-line html tag
14800 #### --------------- Others ---------------
14804 <nowiki>foo</nowiki>
14806 <p><nowiki>foo</nowiki>
14811 Tag-like HTML structures are passed through as text
14833 </p><p>1<d e>f
14838 # This fails in the PHP parser (see bug 40670,
14839 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
14841 Tag names followed by punctuation should not be recognized as tags
14847 <p><s.ome> text
14852 HTML tag with necessary entities in attributes
14854 <span title="&amp;">foo</span>
14856 <p><span title="&amp;">foo</span>
14861 HTML tag with 'unnecessary' entity encoding in attributes
14863 <span title="&">foo</span>
14865 <p><span title="&">foo</span>
14870 HTML tag with broken attribute value quoting
14872 <span title="Hello world>Foo</span>
14874 <p><span>Foo</span>
14879 Parsoid-only: HTML tag with broken attribute value quoting
14883 <span title="Hello world>Foo</span>
14885 <p><span title="Hello world">Foo</span>
14890 Table with broken attribute value quoting
14893 | title="Hello world|Foo
14904 Table with broken attribute value quoting on consecutive lines
14907 | title="Hello world|Foo
14908 | style="color:red|Bar
14921 Parsoid-only: Table with broken attribute value quoting on consecutive lines
14926 | title="Hello world|Foo
14927 | style="color:red|Bar
14932 <td title="Hello world">Foo
14933 </td><td style="color: red">Bar
14934 </td></tr></tbody></table>
14939 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14949 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14959 Accept empty td cell attribute
14962 | align="center" | foo || |
14967 <td align="center"> foo </td>
14974 Non-empty attributes in th-cells
14977 ! Foo !! style="color: red" | Bar
14983 <th style="color: red"> Bar
14989 Accept empty attributes in th-cells
15004 Empty table rows go away
15025 ### Parsoid-centric tests for testing RTing of inter-element separators
15026 ### Edge cases not tested by existing parser tests and specific to
15027 ### Parsoid-specific serialization strategies.
15031 RT-ed inter-element separators should be valid separators
15044 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
15045 (Parsoid-only since PHP parser relies on Tidy for correct output)
15061 Empty TD followed by TD with tpl-generated attribute
15066 |{{echo|style='color:red'}}|foo
15080 Indented table with an empty td
15099 Empty TR followed by a template-generated TR
15100 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
15102 parsoid=wt2html,wt2wt
15106 {{echo|<tr><td>foo</td></tr>}}
15112 <tr typeof="mw:Transclusion">
15113 <td>foo</td></tr></tbody></table>
15116 ## PHP and parsoid output differ for this, and since this is primarily
15117 ## for testing Parsoid's serializer, marking this Parsoid only
15119 Empty TR followed by mixed-ws-comment line should RT correctly
15133 <td> <!--c--></td></tr>
15135 <td><!--c--> <!--d--></td></tr>
15141 Multi-line image caption generated by templates with/without trailing newlines
15145 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
15146 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
15148 <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>
15149 <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>
15153 ## PHP emits broken html for this, and since this is primarily
15154 ## a Parsoid serializer test, marking this Parsoid only
15156 Improperly nested inline or quotes tags with whitespace in between
15160 <span> <s>x</span> </s>
15163 <p><span> <s>x</s></span><s> </s>
15164 <b> <i>x</i></b><i> </i>
15174 Try for 100% code coverage