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 External link with comments in link text
3085 [http://www.google.com Google <!-- comment -->]
3087 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3092 URL-encoding in URL functions (single parameter)
3094 {{localurl:Some page|amp=&}}
3096 <p>/index.php?title=Some_page&amp=&
3101 URL-encoding in URL functions (multiple parameters)
3103 {{localurl:Some page|q=?&=&}}
3105 <p>/index.php?title=Some_page&q=?&amp=&
3112 http://example.com/index.php?foozoid%5B%5D=bar
3114 http://example.com/index.php?foozoid[]=bar
3116 <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>
3117 </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>
3122 IPv6 urls (bug 21261)
3126 http://[2404:130:0:1000::187:2]/index.php
3128 <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>
3133 Non-extlinks in brackets
3142 [{{echo|foo}} ''bar'']
3143 [{{echo|foo}}l's] errand
3144 [{{echo|foo}}l's errand]
3146 [url=http://example.com]
3159 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3170 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3172 Normal text. '''''Bold italic text.''''' Normal text.
3174 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3175 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3181 Unclosed and unmatched quotes (php)
3185 '''''Bold italic text '''with bold deactivated''' in between.'''''
3187 '''''Bold italic text ''with italic deactivated'' in between.'''''
3191 ..spanning two paragraphs (should not work).'''
3193 '''Bold tag left open
3195 ''Italic tag left open
3199 <!-- Unmatching number of opening, closing tags: -->
3200 '''This year''''s election ''should'' beat '''last year''''s.
3202 ''Tom'''s car is bigger than ''Susan'''s.
3204 Plain ''italic'''s plain
3206 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3207 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3208 </p><p><b>Bold text..</b>
3209 </p><p>..spanning two paragraphs (should not work).
3210 </p><p><b>Bold tag left open</b>
3211 </p><p><i>Italic tag left open</i>
3213 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3214 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3215 </p><p>Plain <i>italic'</i>s plain
3218 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3219 # parser strips. The wikitext contains just the first half of the bold
3220 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3221 # differently than the PHP parser.)
3223 Unclosed and unmatched quotes (parsoid)
3227 '''''Bold italic text '''with bold deactivated''' in between.'''''
3229 '''''Bold italic text ''with italic deactivated'' in between.'''''
3233 ..spanning two paragraphs (should not work).'''
3235 '''Bold tag left open
3237 ''Italic tag left open
3241 <!-- Unmatching number of opening, closing tags: -->
3242 '''This year''''s election ''should'' beat '''last year''''s.
3244 ''Tom'''s car is bigger than ''Susan'''s.
3246 Plain ''italic'''s plain
3248 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3249 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3250 </p><p><b>Bold text..</b>
3251 </p><p>..spanning two paragraphs (should not work).<b></b>
3252 </p><p><b>Bold tag left open</b>
3253 </p><p><i>Italic tag left open</i>
3255 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3256 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3257 </p><p>Plain <i>italic'</i>s plain
3264 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3267 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3268 # is the bare minimun required by the spec, see:
3269 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3271 A table with no data. (php)
3278 # Parsoid team replies: empty table tags are legal in HTML5
3280 A table with no data. (parsoid)
3289 # A table with nothing but a caption is invalid XHTML, we might want to render
3290 # this as <p>caption</p>
3292 A table with nothing but a caption (php)
3302 </caption><tr><td></td></tr></table>
3305 # Parsoid team replies: table with only a caption is legal in HTML5
3307 A table with nothing but a caption (parsoid)
3315 <table><caption> caption</caption></table>
3319 A table with caption with default-spaced attributes and a table row
3322 |+ style="color: red;" | caption1
3328 <caption style="color: red;"> caption1
3337 A table with captions with non-default spaced attributes and a table row
3340 |+style="color: red;"|caption2
3341 |+ style="color: red;"| caption3
3347 <caption style="color: red;">caption2
3349 <caption style="color: red;"> caption3
3358 Table td-cell syntax variations
3362 | foo bar foo || baz
3363 | style='color:red;' | baz
3364 | style='color:red;' || baz
3371 <td> foo bar foo </td>
3374 <td style="color:red;"> baz
3376 <td> style='color:red;' </td>
3404 Simple table but with multiple dashes for row wikitext
3422 Multiplication table
3424 {| border="1" cellpadding="2"
3425 |+Multiplication table
3427 ! × !! 1 !! 2 !! 3
3445 <table border="1" cellpadding="2">
3446 <caption>Multiplication table
3493 Accept "||" in table headings
3508 Accept "||" in indented table headings
3518 </th></tr></table></dd></dl>
3523 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3540 Accept "| !" at start of line in tables (ignore !-attribute)
3544 | !style="color:red" | bar
3556 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 +/-
3560 |style='color:red;'|+1
3561 |style='color:blue;'|-1
3573 <td style="color:red;">+1
3575 <td style="color:blue;">-1
3599 |rowspan=2| Cell 2, row 1 (and 2)
3610 <td rowspan="2"> Cell 2, row 1 (and 2)
3628 {| bgcolor=#ABCDEF border=2
3633 |the original table again
3641 <table bgcolor="#ABCDEF" border="2">
3649 <td>the original table again
3655 Invalid attributes in table cell (bug 1830)
3670 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3673 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3677 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3678 <td>]" onmouseover="alert(document.cookie)">test
3687 Indented table markup mixed with indented pre content (proposed in bug 6200)
3692 Text that should be rendered preformatted
3700 <pre>Text that should be rendered preformatted
3709 Template-generated table cell attributes and cell content
3717 <td style="color: red"> Foo
3723 Table with row followed by newlines and table heading
3741 Table with empty line following the start tag
3758 # FIXME: Preserve the attribute properly (with an empty string as value) in
3759 # the PHP parser. Parsoid implements the behavior below.
3761 Table attributes with empty value
3773 </td></tr></tbody></table>
3778 Wikitext table with a lot of comments
3801 Wikitext table with double-line table cell
3818 Table cell with a single comment
3834 # The expected HTML structure in this test is debatable. The PHP parser does
3835 # not parse this kind of table at all. The main focus for Parsoid is on
3836 # round-tripping, so this output is ok for now. TODO: revisit!
3838 Wikitext table with html-syntax row (Parsoid)
3850 <td>foo</td></tr></tbody></table>
3857 Plain link, capitalized
3861 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3866 Plain link, uncapitalized
3870 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3877 [[Main Page|The Main Page]]
3879 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3884 Piped link with comment in link text
3886 [[Main Page|The Main<!--front--> Page]]
3888 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3897 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3902 Broken link with fragment
3904 [[Zigzagzogzagzig#zug]]
3906 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3911 Special page link with fragment
3913 [[Special:Version#anchor]]
3915 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3920 Nonexistent special page link with fragment
3922 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3924 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3931 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3933 <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>
3940 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3942 <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>!!!
3953 Bug 43661: Piped links with identical prefixes
3955 [[prefixed article|prefixed articles with spaces]]
3957 [[prefixed article|prefixed articlesaoeu]]
3959 [[Main Page|Main Page test]]
3961 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3962 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3963 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3969 Link with HTML entity in suffix / tail
3971 [[Main Page]]", [[Main Page]]a
3973 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3978 Link with 3 brackets
3987 Piped link with 3 brackets
3989 [[[main page|the main page]]]
3991 <p>[[[main page|the main page]]]
3996 Link with multiple pipes
3998 [[Main Page|The|Main|Page]]
4000 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4007 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4009 <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>
4014 Piped link to namespace
4016 [[Meta:Disclaimers|The disclaimers]]
4018 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4025 [[Usually caused by a typo (oops}]]
4027 <p>[[Usually caused by a typo (oops}]]
4032 Link containing % (not as a hex sequence)
4036 <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>
4041 Link containing % as a single hex sequence interpreted to char
4045 <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>
4050 Link containing % as a double hex sequence interpreted to hex sequence
4054 <p>[[7%2525 Solution]]
4059 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4060 Example for such a section: == < ==
4062 [[%23%3c]][[%23%3e]]
4064 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4069 Link containing "<#" and ">#" as a hex sequences
4071 [[%3c%23]][[%3e%23]]
4073 <p>[[%3c%23]][[%3e%23]]
4078 Link containing an equals sign
4080 [[Special:BookSources/isbn=4-00-026157-6]]
4082 <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>
4089 Just a test of an article title containing a tilde.
4092 # note that links containing signatures, like [[Foo~~~~]], are
4093 # massaged by the pre-save transform (PST) and so the tildes are never
4094 # seen by the parser.
4096 Link containing a tilde
4100 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4105 Link containing double-single-quotes '' (bug 4598)
4107 [[Lista d''e paise d''o munno]]
4109 <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>
4114 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4116 Some [[Link|pretty ''italics'' and stuff]]!
4118 <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>!
4123 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4125 ''Some [[Link|pretty ''italics'' and stuff]]!
4127 <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>
4132 Link with double quotes in title part (literal) and alternate part (interpreted)
4134 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4138 [[''Pentecoste''|Pentecoste]]
4140 [[''Pentecoste''|''Pentecoste'']]
4142 <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>
4143 </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>
4144 </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>
4145 </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>
4150 Broken image links with HTML captions (bug 39700)
4152 [[File:Nonexistent|<script></script>]]
4153 [[File:Nonexistent|100px|<script></script>]]
4154 [[File:Nonexistent|<]]
4155 [[File:Nonexistent|a<i>b</i>c]]
4157 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4158 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4159 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4160 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4167 [[http://www.example.com]]
4169 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4174 Plain link to URL with link text
4176 [[http://www.example.com Link text]]
4178 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4183 Plain link to protocol-relative URL
4185 [[//www.example.com]]
4187 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4192 Plain link to protocol-relative URL with link text
4194 [[//www.example.com Link text]]
4196 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4201 Plain link to page with question mark in title
4207 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4208 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4213 # I'm fairly sure the expected result here is wrong.
4214 # We want these to be URL links, not pseudo-pages with URLs for titles....
4215 # However the current output is also pretty screwy.
4218 # I'm changing it to match the current output--it arguably makes more
4219 # sense in the light of the test above. Old expected result was:
4220 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4222 # But I think this test is bordering on "garbage in, garbage out" anyway.
4227 Piped link to URL: [[http://www.example.com|an example URL]]
4229 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4234 BUG 2: [[page|http://url/]] should link to page, not http://url/
4236 [[Main Page|http://url/]]
4238 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4243 BUG 337: Escaped self-links should be bold
4247 [[Bug462]] [[Bug462]]
4249 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4254 Self-link to section should not be bold
4258 [[Main Page#section]]
4260 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4271 Self-link to numeric title
4277 <p><strong class="selflink">0</strong>
4282 Link to numeric-equivalent title
4288 <p><a href="/wiki/00" title="00">00</a>
4293 <nowiki> inside a link
4295 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4297 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4302 Non-breaking spaces in title
4304 [[ Main Page ]]
4306 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4311 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4317 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4322 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4328 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4333 Internal link with en linktrail: no apostrophes (bug 27473)
4339 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4344 Internal link with ca linktrail with apostrophes (bug 27473)
4350 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4355 Internal link with kaa linktrail with apostrophes (bug 27473)
4361 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4372 Internal link with is link prefix
4376 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4378 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4389 Internal link with is link trail and link prefix
4393 [[mótmælendatrú|xxx]]ar
4395 mótmælenda[[söfnuður]]
4396 mótmælenda[[söfnuður|söfnuðir]]
4397 mótmælenda[[söfnuður|söfnuðir]]xxx
4399 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4400 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4401 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4402 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4403 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4408 Parsoid link trail escaping
4410 parsoid=html2wt,html2html
4414 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4418 Parsoid link prefix escaping
4421 parsoid=html2wt,html2html
4423 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4425 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4429 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4437 [http://wp.org ''foo'']
4439 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4440 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4441 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4442 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4447 ### Interwiki links (see maintenance/interwiki.sql)
4451 Inline interwiki link
4453 [[MeatBall:SoftSecurity]]
4455 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4460 Inline interwiki link with empty title (bug 2372)
4464 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4469 Interwiki link encoding conversion (bug 1636)
4471 *[[Wikipedia:ro:Olteniţa]]
4472 *[[Wikipedia:ro:Olteniţa]]
4474 <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>
4475 </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>
4481 Interwiki link with fragment (bug 2130)
4483 [[MeatBall:SoftSecurity#foo]]
4485 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4500 Double interlanguage link
4511 Interlanguage link, with prefix links
4523 Double interlanguage link, with prefix links (bug 8897)
4536 Parsoid-specific test: Wikilinks with should RT properly
4542 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4560 Broken br tag sanitization
4569 Incorrecly removing closing slashes from correctly formed XHTML
4571 <br style="clear:both;" />
4573 <p><br style="clear:both;" />
4578 Failing to transform badly formed HTML into correct XHTML
4580 <br style="clear: left;">
4581 <br style="clear: right;">
4582 <br style="clear: both;">
4584 <p><br style="clear: left;" />
4585 <br style="clear: right;" />
4586 <br style="clear: both;" />
4591 Handling html with a div self-closing tag
4600 <p><div title />
4604 <p><div title=bar />
4605 <div title=bar/>
4607 <div title="bar/"></div>
4613 Handling html with a br self-closing tag
4622 <p><br title="title" />
4623 <br title="title" />
4632 Horizontal ruler (should it add that extra space?)
4646 Horizontal ruler -- 4+ dashes render hr
4655 Horizontal ruler -- eats additional dashes on the same line
4664 Horizontal ruler -- does not collapse dashes on consecutive lines
4675 Horizontal ruler -- <4 dashes render as plain text
4684 Horizontal ruler -- Supports content following dashes on same line
4693 ### Block-level elements
4716 <ol><li>Numbered list
4733 ***#Number on level 4
4735 **#Number on level 3
4736 **#Number on level 3
4740 #** Level 3, but ordered
4743 <ol><li> with numbers
4745 <ul><li> and bullets
4747 <ol><li> and numbers
4749 </li><li>bullets again
4750 <ul><li>bullet level 2
4751 <ul><li>bullet level 3
4752 <ol><li>Number on level 4
4755 </li><li>bullet level 2
4756 <ol><li>Number on level 3
4757 </li><li>Number on level 3
4760 <ol><li>number level 2
4763 <ul><li><ul><li> Level 3
4767 <ol><li><ul><li><ul><li> Level 3, but ordered
4801 Nested lists 3 (first element empty)
4814 Nested lists 4 (first element empty)
4827 Nested lists 5 (both elements empty)
4840 Nested lists 6 (both elements empty)
4853 Nested lists 7 (skip initial nesting levels)
4857 <ul><li><ul><li><ul><li> foo
4865 Nested lists 8 (multiple nesting transitions)
4873 <ul><li><ul><li> bar
4883 1. Lists with start-of-line-transparent tokens before bullets: Comments
4897 2. Lists with start-of-line-transparent tokens before bullets: Template close
4909 Unbalanced closing block tags break a list
4910 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
4920 </li></ul></div><div>
4926 Unbalanced closing non-block tags don't break a list
4927 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
4937 <ul><li>a<span></span>
4943 Unclosed formatting tags that straddle lists are closed and reopened
4944 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
4952 </li><li> <s> b </s>
4957 List embedded in a non-block tag
4958 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
4966 <p><small></small></p>
4972 <p><small></small></p>
4976 List items are not parsed correctly following a <pre> block (bug 785)
4982 <ul><li> <pre>foo</pre>
4983 </li><li> <pre>bar</pre>
4990 List items from template
5001 * notSOL{{inner list}}
5020 List interrupted by empty line or heading
5030 <ul><li><ul><li> bar
5033 <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>
5034 <ul><li> Another list item
5040 Multiple list tags generated by templates
5055 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
5058 <!--This line will NOT split the list-->
5060 <!--This line will NOT split the list either-->
5062 <!--foo--> <!--This line with more than 1 comment will split the list-->
5076 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5078 parsoid=wt2html,wt2wt
5082 * {{echo|<li>templated li-hack}}
5083 * <!--foo--> <li> unsupported li-hack with preceding comments
5086 <li><li>not a li-hack
5092 <li about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<li>templated li-hack"}}}'>templated li-hack</li>
5093 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5096 <li></li><li>not a li-hack
5106 Magic Word: {{CURRENTDAY}}
5115 Magic Word: {{CURRENTDAY2}}
5124 Magic Word: {{CURRENTDAYNAME}}
5133 Magic Word: {{CURRENTDOW}}
5142 Magic Word: {{CURRENTMONTH}}
5151 Magic Word: {{CURRENTMONTHABBREV}}
5153 {{CURRENTMONTHABBREV}}
5160 Magic Word: {{CURRENTMONTHNAME}}
5162 {{CURRENTMONTHNAME}}
5169 Magic Word: {{CURRENTMONTHNAMEGEN}}
5171 {{CURRENTMONTHNAMEGEN}}
5178 Magic Word: {{CURRENTTIME}}
5187 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5196 Magic Word: {{CURRENTYEAR}}
5205 Magic Word: {{FULLPAGENAME}}
5207 title=[[User:Ævar Arnfjörð Bjarmason]]
5211 <p>User:Ævar Arnfjörð Bjarmason
5216 Magic Word: {{FULLPAGENAMEE}}
5218 title=[[User:Ævar Arnfjörð Bjarmason]]
5222 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5227 Magic Word: {{NAMESPACE}}
5229 title=[[User:Ævar Arnfjörð Bjarmason]]
5238 Magic Word: {{NAMESPACEE}}
5240 title=[[User:Ævar Arnfjörð Bjarmason]]
5249 Magic Word: {{NAMESPACENUMBER}}
5251 title=[[User:Ævar Arnfjörð Bjarmason]]
5260 Magic Word: {{NUMBEROFFILES}}
5269 Magic Word: {{PAGENAME}}
5271 title=[[User:Ævar Arnfjörð Bjarmason]]
5275 <p>Ævar Arnfjörð Bjarmason
5280 Magic Word: {{PAGENAME}} with metacharacters
5282 title=[['foo & bar = baz']]
5286 <p><i>'foo & bar = baz'</i>
5291 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5293 title=[[*RFC 1234 http://example.com/]]
5297 <p>*RFC 1234 http://example.com/
5302 Magic Word: {{PAGENAMEE}}
5304 title=[[User:Ævar Arnfjörð Bjarmason]]
5308 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5313 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5315 title=[[*RFC 1234 http://example.com/]]
5319 <p>*RFC_1234_http://example.com/
5324 Magic Word: {{REVISIONID}}
5333 Magic Word: {{SCRIPTPATH}}
5342 Magic Word: {{SERVER}}
5346 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5351 Magic Word: {{SERVERNAME}}
5360 Magic Word: {{SITENAME}}
5369 Case-sensitive magic words, when cased differently, should just be template transclusions
5376 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5377 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5378 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5379 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5384 Case-insensitive magic words should still work with weird casing.
5394 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5399 Namespace 1 {{ns:1}}
5408 Namespace 1 {{ns:01}}
5417 Namespace 0 {{ns:0}} (bug 4783)
5425 Namespace 0 {{ns:00}} (bug 4783)
5433 Namespace -1 {{ns:-1}}
5442 Namespace User {{ns:User}}
5451 Namespace User talk {{ns:User_talk}}
5460 Namespace User talk {{ns:uSeR tAlK}}
5469 Namespace File {{ns:File}}
5478 Namespace File {{ns:Image}}
5487 Namespace (lang=de) Benutzer {{ns:User}}
5498 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5504 <p>Benutzer Diskussion
5512 {{urlencode:hi world?!}}
5513 {{urlencode:hi world?!|WIKI}}
5514 {{urlencode:hi world?!|PATH}}
5515 {{urlencode:hi world?!|QUERY}}
5528 Magic links: internal link to RFC (bug 479)
5532 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5537 Magic links: RFC (bug 479)
5541 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5546 Magic links: ISBN (bug 1937)
5550 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5555 Magic links: PMID incorrectly converts space to underscore
5559 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5568 Nonexistent template
5570 {{thistemplatedoesnotexist}}
5572 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5577 Template with invalid target containing tags
5579 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5581 <p>{{a<b>b</b>|foo|a=b|a = b}}
5586 Template with invalid target containing unclosed tag
5588 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5590 <p>{{a<b>|foo|a=b|a = b}}</b>
5597 This is a test template
5605 <p>This is a test template
5610 Template with explicit namespace
5614 <p>This is a test template
5622 This is a test template with parameter {{{param}}}
5628 {{paramtest|param=foo}}
5630 <p>This is a test template with parameter foo
5635 Template:paramtestnum
5641 Template unnamed parameter
5643 {{paramtestnum|Main Page|the main page}}
5645 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5650 Template:templatesimple
5656 Template:templateredirect
5658 #redirect [[Template:templatesimple]]
5662 Template:templateasargtestnum
5668 Template:templateasargtest
5670 {{template{{{templ}}}}}
5674 Template:templateasargtest2
5680 Template with template name as unnamed argument
5682 {{templateasargtestnum|templatesimple}}
5689 Template with template name as argument
5691 {{templateasargtest|templ=simple}}
5698 Template with template name as argument (2)
5700 {{templateasargtest2|templ=templatesimple}}
5707 Template:templateasargtestdefault
5709 {{{{{templ|templatesimple}}}}}
5719 Template with default value
5721 {{templateasargtestdefault}}
5728 Template with default value (value set)
5730 {{templateasargtestdefault|templ=templa}}
5739 {{templateredirect}}
5746 Template with argument in separate line
5748 {{ templateasargtest |
5756 Template with complex template as argument
5759 param ={{ templateasargtest |
5762 <p>This is a test template with parameter (test)
5767 Template with thumb image (with link in description)
5770 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
5772 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>
5777 Template:complextemplate
5779 {{{1}}} {{paramtest|
5780 param ={{{param}}}}}
5784 Template with complex arguments
5787 param ={{ templateasargtest |
5788 templ = simple }}|[[Template:complextemplate|link]]}}
5790 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5795 BUG 553: link with two variables in a piped link
5798 |[[{{{1}}}|{{{2}}}]]
5803 <td>[[{{{1}}}|{{{2}}}]]
5809 Magic variable as template parameter
5811 {{paramtest|param={{SITENAME}}}}
5813 <p>This is a test template with parameter MediaWiki
5820 [[{{{param}}}|link]]
5824 Template parameter as link source
5826 {{linktest|param=Main Page}}
5828 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5833 Template-generated attribute string (k='v')
5835 <span {{attr_str|id|v1}}>bar</span>
5837 <p><span id="v1">bar</span>
5844 including another template, {{paramtest|param={{{arg}}}}}
5848 Template passing argument to another template
5850 {{paramtest2|arg='hmm'}}
5852 <p>including another template, This is a test template with parameter 'hmm'
5863 Template as link source
5867 [[{{linktest2}}|Main Page]]
5869 [[{{linktest2}}]]Page
5871 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5872 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5873 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5891 Template infinite loop
5895 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5900 Template from main namespace
5919 BUG 529: Template with table, not included at beginning of line
5938 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5958 BUG 41: Template parameters shown as broken links
5967 Template with targets containing wikilinks
5971 {{[[{{echo|foo}}]]}}
5973 {{{{echo|[[foo}}]]}}
5975 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5976 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5984 ''None'' of '''this''' should be
5986 but rather passed unmodified
5990 # hmm, fix this or just deprecate msgnw and document its behavior?
5996 {{msgnw:MSGNW test}}
5998 <p>''None'' of '''this''' should be
6000 but rather passed unmodified
6008 {{int:youhavenewmessages|lots of money|not!}}
6010 <p>You have lots of money (not!).
6017 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6021 <includeonly> and <noinclude> being included
6032 <onlyinclude>Foo</onlyinclude>bar
6036 <onlyinclude> being included
6048 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6052 <onlyinclude> and <includeonly> being included
6061 <includeonly> and <noinclude> on a page
6063 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6070 Un-closed <noinclude>
6077 <onlyinclude> on a page
6079 <onlyinclude>Foo</onlyinclude>bar
6086 Un-closed <onlyinclude>
6093 Self-closed noinclude, includeonly, onlyinclude tags
6104 Unbalanced includeonly and noinclude tags
6108 |b</noinclude></noinclude>
6109 |c</noinclude></includeonly>
6110 |d</includeonly></includeonly>
6119 <td>c</includeonly>
6121 <td>d</includeonly></includeonly>
6127 Template:Includeonly section
6130 ==Includeonly section==
6136 Bug 6563: Edit link generation for section shown by <includeonly>
6138 {{includeonly section}}
6140 <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>
6141 <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>
6145 # Uses same input as the contents of [[Template:Includeonly section]]
6147 Bug 6563: Section extraction for section shown by <includeonly>
6152 ==Includeonly section==
6160 Bug 6563: Edit link generation for section suppressed by <includeonly>
6163 ==Includeonly section==
6167 <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>
6172 Bug 6563: Section extraction for section suppressed by <includeonly>
6177 ==Includeonly section==
6185 Un-closed <includeonly>
6192 ### <includeonly> and <noinclude> in attributes
6195 0. includeonly around the entire attribute
6197 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6199 <p><span id="v2">bar</span>
6204 1. includeonly in html attr key
6206 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6208 <p><span id="foo">bar</span>
6213 2. includeonly in html attr value
6215 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6216 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6218 <p><span id="v1">bar</span>
6219 <span id="v1">bar</span>
6224 3. includeonly in part of an attr value
6226 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6228 <p><span style="color:red;">bar</span>
6233 ### Testing parsing of templates where a template arg
6234 ### has the same name as the template itself.
6244 Templates: Template Name/Arg clash: 1. Use of positional param
6253 Templates: Template Name/Arg clash: 2. Use of named param
6262 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6271 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6275 Templates: 1. Simple use
6284 Templates: 2. Inside a block tag
6286 <div>{{echo|Foo}}</div>
6293 Templates: P-wrapping: 1a. Templates on consecutive lines
6304 Templates: P-wrapping: 1b. Templates on consecutive lines
6318 Templates: P-wrapping: 1c. Templates on consecutive lines
6321 {{echo|bar}} <div>baz</div>
6330 Templates: P-wrapping: 1d. Template preceded by comment-only line
6332 parsoid=wt2html,wt2wt
6338 <p typeof="mw:Transclusion">Bar
6343 Templates: Inline Text: 1. Multiple tmeplate uses
6345 {{echo|Foo}}bar{{echo|baz}}
6352 Templates: Inline Text: 2. Back-to-back template uses
6354 {{echo|Foo}}{{echo|bar}}
6361 Templates: Block Tags: 1. Multiple template uses
6363 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6365 <div>Foo</div><div>bar</div><div>baz</div>
6370 Templates: Block Tags: 2. Back-to-back template uses
6372 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6374 <div>Foo</div><div>bar</div>
6379 Templates: Links: 1. Simple example
6381 {{echo|[[Foo|bar]]}}
6383 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6388 Templates: Links: 2. Generation of link href
6390 [[{{echo|Foo}}|bar]]
6392 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6397 Templates: Links: 3. Generation of part of a link href
6399 [[Fo{{echo|o}}|bar]]
6403 [[Foo{{echo|bar}}baz]]
6405 [[Foo{{echo|bar}}|bar]]
6407 [[:Foo{{echo|bar}}]]
6409 [[:Foo{{echo|bar}}|bar]]
6411 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6412 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6413 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6414 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6415 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6416 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6421 Templates: Links: 4. Multiple templates generating link href
6423 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6425 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6430 Templates: Links: 5. Generation of link text
6432 [[Foo|{{echo|bar}}]]
6434 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6439 Templates: Links: 5. Nested templates (only outermost template should be marked)
6441 {{echo|[[{{echo|Foo}}|bar]]}}
6443 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6448 Templates: HTML Tag: 1. Generation of HTML attr. key
6450 <div {{echo|style}}="color:red;">foo</div>
6452 <div style="color:red;">foo</div>
6457 Templates: HTML Tag: 2. Generation of HTML attr. value
6459 <div style={{echo|'color:red;'}}>foo</div>
6461 <div style="color:red;">foo</div>
6466 Templates: HTML Tag: 3. Generation of HTML attr key and value
6468 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6470 <div style="color:red;">foo</div>
6475 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6477 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6479 <div title="This is a long title with just one piece templated">foo</div>
6484 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6486 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6488 <div title="This is a long title with just one piece templated">foo</div>
6493 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6495 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6497 <div title="This is a long title with just one piece templated">foo</div>
6502 Templates: HTML Tag: 7. Generation of partial attribute key string
6504 <div st{{echo|yle}}="color:red;">foo</div>
6506 <div style="color:red;">foo</div>
6511 Templates: HTML Tables: 1. Generating start of a HTML table
6513 {{echo|<table><tr><td>foo</td>}}</tr></table>
6515 <table><tr><td>foo</td></tr></table>
6520 Templates: HTML Tables: 2a. Generating middle 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: 2b. Generating middle of a HTML table
6531 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6533 <table><tr><td>foo</td></tr></table>
6538 Templates: HTML Tables: 3. Generating end of a HTML table
6540 <table><tr>{{echo|<td>foo</td></tr></table>}}
6542 <table><tr><td>foo</td></tr></table>
6547 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6549 {{echo|<table>}}<tr><td>foo</td></tr></table>
6551 <table><tr><td>foo</td></tr></table>
6556 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6558 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6560 <table><tr><td>foo</td></tr></table>
6565 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6567 <table><tr>{{echo|<td>}}foo</td></tr></table>
6569 <table><tr><td>foo</td></tr></table>
6574 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6576 <table><tr><td>foo{{echo|</td>}}</tr></table>
6578 <table><tr><td>foo</td></tr></table>
6583 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6585 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6587 <table><tr><td>foo</td></tr></table>
6592 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6594 <table><tr><td>foo</td></tr>{{echo|</table>}}
6596 <table><tr><td>foo</td></tr></table>
6601 Templates: Wiki Tables: 1a. Fostering of entire template content
6609 <tr><td></td></tr></table>
6614 Templates: Wiki Tables: 1b. Fostering of entire template content
6627 <tr><td></td></tr></table>
6632 Templates: Wiki Tables: 2. Fostering of partial template content
6642 <tr><td></td></tr></table>
6647 Templates: Wiki Tables: 3. td-content via multiple templates
6650 {{echo|{{pipe}}a}}{{echo|b}}
6661 Templates: Wiki Tables: 4. Templated tags, no content
6667 <tr><td></td></tr></table>
6672 Templates: Wiki Tables: 5. Templated tags, regular td-tags
6686 Templates: Wiki Tables: 6. Templated tags, templated td-tags
6700 Templates: Lists: Multi-line list-items via templates
6702 *{{echo|a {{nonexistent|
6704 *{{echo|b {{nonexistent|
6707 <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>
6708 </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>
6714 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
6716 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
6718 <p><i>ab</i>c<i>d</i>e
6723 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
6724 (PHP parser generates misnested html)
6726 parsoid=wt2html,wt2wt
6728 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
6730 <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>
6734 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
6735 (PHP parser generates misnested html)
6737 parsoid=wt2html,wt2wt
6739 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
6741 <div typeof="mw:Transclusion"><i>a</i></div>
6742 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
6743 <div typeof="mw:Transclusion">e</div>
6747 Templates: Ugly nesting: 4. Divs opened/closed across templates
6749 a<div>b{{echo|c</div>d}}e
6756 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
6762 |{{echo|foo</table>}}
6766 <table typeof="mw:Transclusion">
6769 <td>foo</td></tr></tbody></table><span>bar</span>
6773 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
6783 <td>1. {{echo|foo </table>}}</td>
6785 <td>2. {{echo|baz </table>}}</td>
6798 <table about="#mwt1" typeof="mw:Transclusion">
6803 <td >1. foo </td></tr></tbody></table></td>
6805 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
6806 </span><span about="#mwt1">
6808 abc</span><span about="#mwt1">
6809 </span><span about="#mwt1">
6810 </span><span about="#mwt1">
6811 </span><span about="#mwt1">
6812 </span><span about="#mwt1">
6814 xyz</span><span about="#mwt1">
6815 </span><span about="#mwt1">
6820 Templates: Ugly templates: 3. newline-only template parameter
6829 # This looks like a bug: a single newline triggers p/br for some reason.
6831 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6842 Parser Functions: 1. Simple example
6851 Parser Functions: 2. Nested use (only outermost should be marked up)
6860 ### Pre-save transform tests
6863 pre-save transform: subst:
6869 This is a test template
6873 pre-save transform: normal template
6883 pre-save transform: nonexistent template
6887 {{thistemplatedoesnotexist}}
6889 {{thistemplatedoesnotexist}}
6894 pre-save transform: subst magic variables
6903 # This is bug 89, which I fixed. -- wtm
6905 pre-save transform: subst: templates with parameters
6909 {{subst:paramtest|param="something else"}}
6911 This is a test template with parameter "something else"
6917 <nowiki>'''not wiki'''</nowiki>
6921 pre-save transform: nowiki in subst (bug 1188)
6925 {{subst:nowikitest}}
6927 <nowiki>'''not wiki'''</nowiki>
6932 Template:commenttest
6934 This template has <!-- a comment --> in it.
6938 pre-save transform: comment in subst (bug 1936)
6942 {{subst:commenttest}}
6944 This template has <!-- a comment --> in it.
6948 pre-save transform: unclosed tag
6952 <nowiki>'''not wiki'''
6954 <nowiki>'''not wiki'''
6958 pre-save transform: mixed tag case
6962 <NOwiki>'''not wiki'''</noWIKI>
6964 <NOwiki>'''not wiki'''</noWIKI>
6968 pre-save transform: unclosed comment in <nowiki>
6972 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6974 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6977 # Leading @ in this template definition works around a limitation
6978 # in parsoid's parserTests which otherwise strips the <span> from the
6979 # result (confusing it for a template wrapper)
6983 @<span onmouseover="alert('crap')">Oh no</span>
6987 (confirming safety of fix for subst bug 1936)
6989 {{Template:dangerous}}
6991 <p>@<span>Oh no</span>
6996 pre-save transform: comment containing gallery (bug 5024)
7000 <!-- <gallery>data</gallery> -->
7002 <!-- <gallery>data</gallery> -->
7006 pre-save transform: comment containing extension
7010 <!-- <tag>data</tag> -->
7012 <!-- <tag>data</tag> -->
7016 pre-save transform: comment containing nowiki
7020 <!-- <nowiki>data</nowiki> -->
7022 <!-- <nowiki>data</nowiki> -->
7026 pre-save transform: <noinclude> in subst (bug 3298)
7036 pre-save transform: <onlyinclude> in subst (bug 3298)
7048 {{<includeonly>subst:</includeonly>Includes}}
7052 Template:SafeSubstTest
7054 {{<includeonly>safesubst:</includeonly>Includes}}
7058 bug 22297: safesubst: works during PST
7062 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7068 bug 22297: safesubst: works during normal parse
7077 subst: does not work during normal parse
7081 <p>{{subst:Includes}}
7086 pre-save transform: context links ("pipe trick")
7090 [[Article (context)|]]
7093 [[Bar:Article (context)|]]
7094 [[:Bar:Article (context)|]]
7096 [[|Article (context)]]
7100 [[Article (context)|Article]]
7101 [[Bar:Article|Article]]
7102 [[:Bar:Article|Article]]
7103 [[Bar:Article (context)|Article]]
7104 [[:Bar:Article (context)|Article]]
7106 [[Article (context)]]
7107 [[Bar:X (Y) Z|X (Y) Z]]
7108 [[:Bar:X (Y) Z|X (Y) Z]]
7112 pre-save transform: context links ("pipe trick") with interwiki prefix
7116 [[interwiki:Article|]]
7117 [[:interwiki:Article|]]
7118 [[interwiki:Bar:Article|]]
7119 [[:interwiki:Bar:Article|]]
7121 [[interwiki:Article|Article]]
7122 [[:interwiki:Article|Article]]
7123 [[interwiki:Bar:Article|Bar:Article]]
7124 [[:interwiki:Bar:Article|Bar:Article]]
7128 pre-save transform: context links ("pipe trick") with parens in title
7130 pst title=[[Somearticle (context)]]
7134 [[Article (context)|Article]]
7138 pre-save transform: context links ("pipe trick") with comma in title
7140 pst title=[[Someplace, Somewhere]]
7143 [[Otherplace, Elsewhere|]]
7144 [[Otherplace, Elsewhere, Anywhere|]]
7146 [[Otherplace, Somewhere|Otherplace]]
7147 [[Otherplace, Elsewhere|Otherplace]]
7148 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7152 pre-save transform: context links ("pipe trick") with parens and comma
7154 pst title=[[Someplace (IGNORED), Somewhere]]
7157 [[Otherplace (place), Elsewhere|]]
7159 [[Otherplace, Somewhere|Otherplace]]
7160 [[Otherplace (place), Elsewhere|Otherplace]]
7164 pre-save transform: context links ("pipe trick") with comma and parens
7166 pst title=[[Who, me? (context)]]
7169 [[Me, Myself, and I (1937 song)|]]
7171 [[Yes, you. (context)|Yes, you.]]
7172 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7176 pre-save transform: context links ("pipe trick") with namespace
7178 pst title=[[Ns:Somearticle]]
7182 [[Ns:Article|Article]]
7186 pre-save transform: context links ("pipe trick") with namespace and parens
7188 pst title=[[Ns:Somearticle (context)]]
7192 [[Ns:Article (context)|Article]]
7196 pre-save transform: context links ("pipe trick") with namespace and comma
7198 pst title=[[Ns:Somearticle, Context, Whatever]]
7202 [[Ns:Article, Context, Whatever|Article]]
7206 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7208 pst title=[[Ns:Somearticle, Context (context)]]
7212 [[Ns:Article (context)|Article]]
7216 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7218 pst title=[[Ns:Somearticle (IGNORED), Context]]
7222 [[Ns:Article, Context|Article]]
7226 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7230 [[Article(context)|]]
7231 [[Bar:Article(context)|]]
7232 [[:Bar:Article(context)|]]
7233 [[|Article(context)]]
7237 [[Article(context)|Article]]
7238 [[Bar:Article(context)|Article]]
7239 [[:Bar:Article(context)|Article]]
7240 [[Article(context)]]
7242 [[:Bar:X(Y)Z|X(Y)Z]]
7246 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7250 [[Article (context)|]]
7251 [[Bar:Article (context)|]]
7252 [[:Bar:Article (context)|]]
7253 [[|Article (context)]]
7257 [[Article (context)|Article]]
7258 [[Bar:Article (context)|Article]]
7259 [[:Bar:Article (context)|Article]]
7260 [[Article (context)]]
7261 [[Bar:X (Y) Z|X (Y) Z]]
7262 [[:Bar:X (Y) Z|X (Y) Z]]
7266 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7270 [[Article(context)|]]
7271 [[Bar:Article(context)|]]
7272 [[:Bar:Article(context)|]]
7273 [[|Article(context)]]
7277 [[Article(context)|Article]]
7278 [[Bar:Article(context)|Article]]
7279 [[:Bar:Article(context)|Article]]
7280 [[Article(context)]]
7282 [[:Bar:X(Y)Z|X(Y)Z]]
7286 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7290 [[Article (context), context|]]
7291 [[Article (context),context|]]
7292 [[Bar:Article (context), context|]]
7293 [[Bar:Article (context),context|]]
7294 [[:Bar:Article (context), context|]]
7295 [[:Bar:Article (context),context|]]
7297 [[Article (context), context|Article]]
7298 [[Article (context),context|Article]]
7299 [[Bar:Article (context), context|Article]]
7300 [[Bar:Article (context),context|Article]]
7301 [[:Bar:Article (context), context|Article]]
7302 [[:Bar:Article (context),context|Article]]
7306 pre-save transform: trim trailing empty lines
7310 Empty lines are trimmed
7316 Empty lines are trimmed
7320 pre-save transform: Signature expansion
7325 * <noinclude>~~~</noinclude>
7326 * <includeonly>~~~</includeonly>
7327 * <onlyinclude>~~~</onlyinclude>
7329 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7330 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7331 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7332 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7337 pre-save transform: Signature expansion in nowiki tags (bug 93)
7343 <nowiki>~~~~</nowiki>
7345 <includeonly><nowiki>~~~~</nowiki></includeonly>
7347 <noinclude><nowiki>~~~~</nowiki></noinclude>
7349 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7351 {{subst:Foo}} shall be converted to FOO
7353 As well as inside noinclude/onlyinclude
7354 <noinclude>{{subst:Foo}}</noinclude>
7355 <onlyinclude>{{subst:Foo}}</onlyinclude>
7357 But not inside includeonly
7358 <includeonly>{{subst:Foo}}</includeonly>
7362 <nowiki>~~~~</nowiki>
7364 <includeonly><nowiki>~~~~</nowiki></includeonly>
7366 <noinclude><nowiki>~~~~</nowiki></noinclude>
7368 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7370 FOO shall be converted to FOO
7372 As well as inside noinclude/onlyinclude
7373 <noinclude>FOO</noinclude>
7374 <onlyinclude>FOO</onlyinclude>
7376 But not inside includeonly
7377 <includeonly>{{subst:Foo}}</includeonly>
7381 ### Message transform tests
7384 message transform: magic variables
7394 message transform: should not transform wiki markup
7404 message transform: <noinclude> in transcluded template (bug 4926)
7414 message transform: <onlyinclude> in transcluded template (bug 4926)
7424 {{#special:}} page name, known
7428 {{#special:Recentchanges}}
7430 Special:RecentChanges
7434 {{#special:}} page name with subpage, known
7438 {{#special:Recentchanges/param}}
7440 Special:RecentChanges/param
7444 {{#special:}} page name, unknown
7448 {{#special:foobar nonexistent}}
7450 Special:Foobar nonexistent
7454 {{#speciale:}} page name, known
7458 {{#speciale:Recentchanges}}
7460 Special:RecentChanges
7464 {{#speciale:}} page name with subpage, known
7468 {{#speciale:Recentchanges/param}}
7470 Special:RecentChanges/param
7474 {{#speciale:}} page name, unknown
7478 {{#speciale:foobar nonexistent}}
7480 Special:Foobar_nonexistent
7489 [[Image:foobar.jpg]]
7491 <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>
7498 [[Image:foobar.jpg|right]]
7500 <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>
7505 Simple image (using File: namespace, now canonical)
7509 <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>
7516 [[Image:foobar.jpg|right|Caption text]]
7518 <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>
7523 Image with empty attribute
7525 [[Image:foobar.jpg|right||Caption text]]
7527 <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>
7532 Image with link tails
7534 123[[Image:foobar.jpg]]456
7535 123[[Image:foobar.jpg|right]]456
7536 123[[Image:foobar.jpg|thumb]]456
7538 <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
7540 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
7541 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
7546 Image with multiple captions -- only last one is accepted
7548 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7550 <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>
7555 Image with width attribute at different positions
7557 [[Image:foobar.jpg|200px|right|Caption]]
7558 [[Image:foobar.jpg|right|200px|Caption]]
7559 [[Image:foobar.jpg|right|Caption|200px]]
7561 <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>
7562 <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>
7563 <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>
7568 Image with link parameter, wiki target
7570 [[Image:foobar.jpg|link=Target page]]
7572 <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>
7577 Image with link parameter, URL target
7579 [[Image:foobar.jpg|link=http://example.com/]]
7581 <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>
7586 Image with link parameter, wgExternalLinkTarget
7588 [[Image:foobar.jpg|link=http://example.com/]]
7590 wgExternalLinkTarget='foobar'
7592 <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>
7597 Image with link parameter, wgNoFollowLinks set to false
7599 [[Image:foobar.jpg|link=http://example.com/]]
7601 wgNoFollowLinks=false
7603 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7608 Image with link parameter, wgNoFollowDomainExceptions
7610 [[Image:foobar.jpg|link=http://example.com/]]
7612 wgNoFollowDomainExceptions='example.com'
7614 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7619 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7621 [[Image:foobar.jpg|link=http://example.com/|Title]]
7623 wgExternalLinkTarget='foobar'
7625 <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>
7630 Image with empty link parameter
7632 [[Image:foobar.jpg|link=]]
7634 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7639 Image with link parameter (wiki target) and unnamed parameter
7641 [[Image:foobar.jpg|link=Target page|Title]]
7643 <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>
7648 Image with link parameter (URL target) and unnamed parameter
7650 [[Image:foobar.jpg|link=http://example.com/|Title]]
7652 <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>
7657 Thumbnail image with link parameter
7661 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
7663 <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>
7668 Manually-specified thumbnail image
7672 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
7674 <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>
7679 Manually-specified thumbnail image with explicit link to wiki page
7683 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
7685 <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>
7690 Manually-specified thumbnail image with explicit link to url
7694 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
7696 <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>
7701 Manually-specified thumbnail image with explicit no link
7705 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
7707 <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>
7712 Manually-specified thumbnail image with explicit link and alt text
7716 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
7718 <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>
7723 Image with frame and link
7725 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
7727 <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>
7732 Image with frame and link and explicit alt
7734 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
7736 <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>
7741 Image with wiki markup in implicit alt
7743 [[Image:Foobar.jpg|testing '''bold''' in alt]]
7745 <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>
7750 Image with wiki markup in explicit alt
7752 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
7754 <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>
7759 Link to image page- image page normally doesn't exists, hence edit link
7760 Add test with existing image page
7761 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
7765 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
7770 bug 18784 Link to non-existent image page with caption should use caption as link text
7772 [[:Image:test|caption]]
7774 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
7779 Frameless image caption with a free URL
7781 [[Image:foobar.jpg|http://example.com]]
7783 <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>
7788 Thumbnail image caption with a free URL
7790 [[Image:foobar.jpg|thumb|http://example.com]]
7792 <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>
7797 Thumbnail image caption with a free URL and explicit alt
7799 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
7801 <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>
7807 SVG thumbnails with no language set
7810 [[File:Foobar.svg|thumb|width=200]]
7812 <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>
7817 SVG thumbnails with language de
7820 [[File:Foobar.svg|thumb|width=200|lang=de]]
7822 <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>
7827 SVG thumbnails with invalid language code
7830 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
7832 <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>
7837 BUG 1887: A ISBN with a thumbnail
7839 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
7841 <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>
7846 BUG 1887: A RFC with a thumbnail
7848 [[Image:foobar.jpg|thumb|This is RFC 12354]]
7850 <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>
7855 BUG 1887: A mailto link with a thumbnail
7857 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
7859 <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>
7863 # Pending resolution to bug 368
7865 BUG 648: Frameless image caption with a link
7867 [[Image:foobar.jpg|text with a [[link]] in it]]
7869 <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>
7874 BUG 648: Frameless image caption with a link (suffix)
7876 [[Image:foobar.jpg|text with a [[link]]foo in it]]
7878 <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>
7883 BUG 648: Frameless image caption with an interwiki link
7885 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
7887 <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>
7892 BUG 648: Frameless image caption with a piped interwiki link
7894 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7896 <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>
7901 Escape HTML special chars in image alt text
7903 [[Image:foobar.jpg|& < > "]]
7905 <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>
7910 BUG 499: Alt text should have Ӓ, not &1234;
7912 [[Image:foobar.jpg|♀]]
7914 <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>
7919 Broken image caption with link
7921 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7923 <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.
7928 Image caption containing another image
7930 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7932 <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>
7937 Image caption containing a newline
7939 [[Image:Foobar.jpg|This
7942 <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>
7947 Parsoid: Image caption containing leading space
7948 (The leading space should not trigger nowiki escaping in wt2wt mode)
7950 [[Image:Foobar.jpg|thumb| bar]]
7952 <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>
7957 Bug 3090: External links other than http: in image captions
7959 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7961 <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>
7968 [[Image:foobar.jpg|a|class=b]]
7970 <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>
7975 Localized image handling (1).
7979 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
7981 <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>
7986 Localized image handling (2).
7990 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
7992 <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>
7997 "border", "frameless" and "class" attributes on an image.
7999 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
8001 <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>
8008 #REDIRECT [[File:Barfoo.jpg]]
8014 [[Image:Barfoo.jpg]]
8016 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
8021 Missing image with uploads disabled
8025 [[Image:Foobaz.jpg]]
8027 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
8031 # Parsoid-specific testing for images
8032 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8033 # Currently imperfect due to a flaw in the Parsoid testrunner
8037 Parsoid-specific image handling - simple image
8041 [[Image:Foobar.jpg]]
8044 <span class="mw-default-size" typeof="mw:Image">
8045 <a href="File:Foobar.jpg">
8046 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8053 Parsoid-specific image handling - simple image without link
8057 [[Image:Foobar.jpg|link=]]
8060 <span class="mw-default-size" typeof="mw:Image">
8062 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8069 Parsoid-specific image handling - simple image with specific link
8073 [[Image:Foobar.jpg|link=Main Page]]
8076 <span class="mw-default-size" typeof="mw:Image">
8077 <a href="Main_Page">
8078 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8085 Parsoid-specific image handling - simple image with size and middle alignment
8089 [[Image:Foobar.jpg|50px|middle]]
8092 <span class="mw-valign-middle" typeof="mw:Image">
8093 <a href="File:Foobar.jpg">
8094 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8101 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8105 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8108 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
8109 <a href="File:Foobar.jpg">
8110 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
8117 Parsoid-specific image handling - simple image with border and size spec
8121 [[Image:Foobar.jpg|50px|border|caption]]
8124 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8125 <a href="File:Foobar.jpg">
8126 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8133 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8137 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8139 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8140 <a href="File:Foobar.jpg">
8141 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8143 <figcaption class="mw-figcaption">caption content</figcaption>
8148 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8152 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
8154 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
8155 <a href="File:Foobar.jpg">
8156 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
8158 <figcaption class="mw-figcaption">caption</figcaption>
8163 Parsoid-specific image handling - framed image with specific size and caption
8167 [[Image:Foobar.jpg|500x50px|frame|caption]]
8169 <figure typeof="mw:Image/Frame">
8170 <a href="File:Foobar.jpg">
8171 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8173 <figcaption class="mw-figcaption">caption</figcaption>
8178 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
8182 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
8184 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
8185 <a href="File:Foobar.jpg">
8186 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8188 <figcaption class="mw-figcaption">caption</figcaption>
8193 Parsoid-specific image handling - frameless image with specific size, border, and caption
8197 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
8200 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
8201 <a href="File:Foobar.jpg">
8202 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8208 #Parsoid-specific image handling - simple image with a formatted caption
8212 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
8215 #<span typeof="mw:Image">
8216 #<a class="mw-default-size" href="Image:Foobar.jpg">
8217 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8228 Subpage test/subpage
8236 subpage title=[[Subpage test]]
8240 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
8245 Subpage noslash link
8247 subpage title=[[Subpage test]]
8251 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
8260 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
8265 BUG 561: {{/Subpage}}
8267 subpage title=[[Page]]
8271 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
8279 Category:MediaWiki User's Guide
8287 [[:Category:MediaWiki User's Guide]]
8289 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
8298 [[Category:MediaWiki User's Guide]]
8300 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8304 PAGESINCATEGORY invalid title fatal (r33546 fix)
8306 {{PAGESINCATEGORY:<bogus>}}
8313 Category with different sort key
8317 [[Category:MediaWiki User's Guide|Foo]]
8319 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8323 Category with identical sort key
8327 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8329 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8333 Category with empty sort key
8338 [[Category:MediaWiki User's Guide|]]
8340 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8344 Category with empty sort key and parentheses
8349 [[Category:Foo (bar)|]]
8351 [[Category:Foo (bar)|Foo]]
8355 Category with link tail
8360 123[[Category:Foo]]456
8362 123[[Category:Foo]]456
8366 Category with template
8371 [[Category:{{echo|Foo}}]]
8373 [[Category:{{echo|Foo}}]]
8377 Category with template in sort key
8382 [[Category:Foo|{{echo|Bar}}]]
8384 [[Category:Foo|{{echo|Bar}}]]
8388 Category with template in sort key and title
8393 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8395 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8399 Category / paragraph interactions
8401 Foo [[Category:Baz]] Bar
8403 Foo [[Category:Baz]]
8411 [[Category:Baz]] Bar
8424 {{echo|[[Category:Baz]]}}
8439 ### Inter-language links
8442 Inter-language links
8448 [[zh:食品]]
8450 es:Alimento fr:Nourriture zh:食品
8454 Duplicate interlanguage links (bug 24502)
8470 Basic section headings
8477 ===Smaller headline===
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>
8483 <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>
8486 <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>
8492 Section headings with TOC
8495 === Subheadline 1 ===
8496 ===== Skipping a level =====
8497 ====== Skipping a level ======
8501 ===Another headline===
8503 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8505 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8507 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8509 <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>
8511 <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>
8518 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8520 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8525 <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>
8526 <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>
8527 <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>
8528 <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>
8529 <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>
8532 <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>
8536 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8538 Handling of sections up to level 6 and beyond
8541 == Level 2 Heading==
8542 === Level 3 Heading===
8543 ==== Level 4 Heading====
8544 ===== Level 5 Heading=====
8545 ====== Level 6 Heading======
8546 ======= Level 7 Heading=======
8547 ======== Level 8 Heading========
8548 ========= Level 9 Heading=========
8549 ========== Level 10 Heading==========
8551 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8553 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8555 <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>
8557 <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>
8559 <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>
8561 <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>
8563 <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>
8564 <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>
8565 <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>
8566 <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>
8567 <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>
8580 <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>
8581 <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>
8582 <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>
8583 <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>
8584 <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>
8585 <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>
8586 <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>
8587 <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>
8588 <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>
8589 <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>
8594 TOC regression (bug 9764)
8598 ==== title 1.1.1 ====
8603 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8605 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8607 <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>
8609 <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>
8612 <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>
8615 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8617 <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>
8622 <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>
8623 <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>
8624 <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>
8625 <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>
8626 <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>
8627 <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>
8632 TOC with wgMaxTocLevel=3 (bug 6204)
8638 ==== title 1.1.1 ====
8643 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8645 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8647 <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>
8648 <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>
8651 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8653 <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>
8658 <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>
8659 <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>
8660 <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>
8661 <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>
8662 <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>
8663 <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>
8668 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
8674 ====Section 1.1.1====
8675 ====Section 1.1.1.1====
8678 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8680 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
8682 <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>
8685 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
8688 <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>
8689 <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>
8690 <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>
8691 <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>
8692 <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>
8698 Resolving duplicate section names
8703 <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>
8704 <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>
8709 Resolving duplicate section names with differing case (bug 10721)
8714 <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>
8715 <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>
8727 Template with sections, __NOTOC__
8734 <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>
8735 <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>
8736 <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>
8737 <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>
8742 __NOEDITSECTION__ keyword
8748 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
8749 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
8754 Link inside a section heading
8756 ==Section with a [[Main Page|link]] in it==
8758 <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>
8763 TOC regression (bug 12077)
8770 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8772 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8774 <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>
8777 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
8780 <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>
8781 <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>
8782 <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>
8787 BUG 1219 URL next to image (good)
8789 http://example.com [[Image:foobar.jpg]]
8791 <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>
8796 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
8799 The line above must have a trailing space!
8802 But just in case it doesn't...
8804 <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>
8805 <p>The line above must have a trailing space!
8807 <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>
8808 <p>But just in case it doesn't...
8813 Header with special characters (bug 25462)
8815 The tooltips shall not show entities to the user (ie. be double escaped)
8832 <p>The tooltips shall not show entities to the user (ie. be double escaped)
8834 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8836 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
8837 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
8838 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
8839 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
8840 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
8843 <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>
8846 <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>
8849 <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>
8852 <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>
8855 <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>
8861 Headers with excess '=' characters
8862 (Are similar tests necessary beyond the 1st level?)
8866 =''italic'' heading==
8867 ==''italic'' heading=
8869 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8871 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
8872 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
8873 <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>
8874 <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>
8877 <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>
8878 <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>
8879 <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>
8880 <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>
8885 HTML headers vs TOC (bug 23393)
8886 (__NOEDITSECTION__ for clearer output, doesn't matter here)
8898 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8900 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
8902 <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>
8903 <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>
8906 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
8908 <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>
8909 <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>
8914 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
8915 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
8916 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
8917 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
8918 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
8919 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
8924 BUG 1219 URL next to image (broken)
8926 http://example.com[[Image:foobar.jpg]]
8928 <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>
8933 Bug 1186 news: in the middle of text
8935 http://en.wikinews.org/wiki/Wikinews:Workplace
8937 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
8943 Namespaced link must have a title
8952 Namespaced link must have a title (bad fragment version)
8954 [[Project:#fragment]]
8956 <p>[[Project:#fragment]]
8962 ### HTML tags and HTML attributes
8966 div with no attributes
8968 <div>HTML rocks</div>
8970 <div>HTML rocks</div>
8975 div with double-quoted attribute
8977 <div id="rock">HTML rocks</div>
8979 <div id="rock">HTML rocks</div>
8984 div with single-quoted attribute
8986 <div id='rock'>HTML rocks</div>
8988 <div id="rock">HTML rocks</div>
8993 div with unquoted attribute
8995 <div id=rock>HTML rocks</div>
8997 <div id="rock">HTML rocks</div>
9002 div with illegal double attributes
9004 <div id="a" id="b">HTML rocks</div>
9006 <div id="b">HTML rocks</div>
9010 # FIXME: produce empty string instead of "class" in the PHP parser, following
9013 div with empty attribute value, space before equals
9017 <div class =>HTML rocks</div>
9019 <div class="">HTML rocks</div>
9023 # The PHP parser escapes the opening brace to { for some reason, so
9024 # disabled this test for it.
9026 div with braces in attribute value
9030 <div title="{}">Foo</div>
9032 <div title="{}">Foo</div>
9035 # This it very inconsistent in the PHP parser: it returns
9036 # class="class" if there is a space between the name and the equal sign (see
9037 # 'div with empty attribute value, space before equals'), but strips the
9038 # attribute completely if the space is missing. We hope that not much content
9039 # depends on this, so are implementing the behavior below in Parsoid for
9040 # consistencies' sake. Disabled for the PHP parser.
9041 # FIXME: fix this behavior in the PHP parser?
9043 div with empty attribute value, no space before equals
9047 <div class=>HTML rocks</div>
9049 <div class="">HTML rocks</div>
9054 HTML multiple attributes correction
9056 <p class="error" class="awesome">Awesome!</p>
9058 <p class="awesome">Awesome!</p>
9063 Table multiple attributes correction
9066 !+ class="error" class="awesome"| status
9071 <th class="awesome"> status
9079 <DIV ID="x">HTML ROCKS</DIV>
9081 <div id="x">HTML ROCKS</div>
9086 Non-ASCII pseudo-tags are rendered as text
9095 Pseudo-tag with URL 'name' renders as url link
9097 <http://example.com/>
9099 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
9104 text with amp in the middle of nowhere
9108 <p>Remember AT&T?
9113 text with character entity: eacute
9115 I always thought é was a cute letter.
9117 <p>I always thought é was a cute letter.
9122 text with entity-escaped character entity-like string: eacute
9124 I always thought &eacute; was a cute letter.
9126 <p>I always thought &eacute; was a cute letter.
9131 text with undefined character entity: xacute
9133 I always thought &xacute; was a cute letter.
9135 <p>I always thought &xacute; was a cute letter.
9147 [[Media:Foobar.jpg]]
9149 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
9154 Media link with text
9156 [[Media:Foobar.jpg|A neat file to look at]]
9158 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
9162 # FIXME: this is still bad HTML tag nesting
9164 Media link with nasty text
9165 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
9167 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
9169 <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>
9174 Media link to nonexistent file (bug 1702)
9176 [[Media:No such.jpg]]
9178 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
9183 Image link to nonexistent file (bug 1850 - good)
9185 [[Image:No such.jpg]]
9187 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
9192 :Image link to nonexistent file (bug 1850 - bad)
9194 [[:Image:No such.jpg]]
9196 <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>
9203 Character reference normalization in link text (bug 1938)
9205 [[Main Page|this&that]]
9207 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
9214 Test for unicode normalization
9216 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
9220 (bug 19451) Links should refer to the normalized form.
9228 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9229 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9230 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9231 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9232 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9237 Empty attribute crash test (bug 2067)
9239 <font color="">foo</font>
9241 <p><font color="">foo</font>
9246 Empty attribute crash test single-quotes (bug 2067)
9248 <font color=''>foo</font>
9250 <p><font color="">foo</font>
9255 Attribute test: equals, then nothing
9257 <font color=>foo</font>
9264 Attribute test: unquoted value
9266 <font color=x>foo</font>
9268 <p><font color="x">foo</font>
9273 Attribute test: unquoted but illegal value (hash)
9275 <font color=#x>foo</font>
9277 <p><font color="#x">foo</font>
9282 Attribute test: no value
9284 <font color>foo</font>
9286 <p><font color="color">foo</font>
9291 Bug 2095: link with three closing brackets
9295 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
9300 Bug 2095: link with pipe and three closing brackets
9304 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
9309 Bug 2095: link with pipe and three closing brackets, version 2
9311 [[Main Page|[http://example.com/]]]
9313 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9323 Template:Dangerous attribute
9325 " onmouseover="alert(document.cookie)
9329 Template:Dangerous style attribute
9331 border-size: expression(alert(document.cookie))
9337 <div style="float: right; {{{1}}}">Magic div</div>
9341 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9343 <div title="{{test}}"></div>
9345 <div title="This is a test template"></div>
9350 Bug 2304: HTML attribute safety (dangerous template; 2309)
9352 <div title="{{dangerous attribute}}"></div>
9354 <div title=""></div>
9359 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9361 <div style="{{dangerous style attribute}}"></div>
9363 <div style="/* insecure input */"></div>
9368 Bug 2304: HTML attribute safety (safe parameter; 2309)
9370 {{div style|width: 200px}}
9372 <div style="float: right; width: 200px">Magic div</div>
9377 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9379 {{div style|width: expression(alert(document.cookie))}}
9381 <div style="/* insecure input */">Magic div</div>
9386 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9388 {{div style|"><script>alert(document.cookie)</script>}}
9390 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9395 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9397 {{div style|" ><script>alert(document.cookie)</script>}}
9399 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9404 Bug 2304: HTML attribute safety (link)
9406 <div title="[[Main Page]]"></div>
9408 <div title="[[Main Page]]"></div>
9413 Bug 2304: HTML attribute safety (italics)
9415 <div title="''foobar''"></div>
9417 <div title="''foobar''"></div>
9422 Bug 2304: HTML attribute safety (bold)
9424 <div title="'''foobar'''"></div>
9426 <div title="'''foobar'''"></div>
9432 Bug 2304: HTML attribute safety (ISBN)
9434 <div title="ISBN 1234567890"></div>
9436 <div title="ISBN 1234567890"></div>
9441 Bug 2304: HTML attribute safety (RFC)
9443 <div title="RFC 1234"></div>
9445 <div title="RFC 1234"></div>
9450 Bug 2304: HTML attribute safety (PMID)
9452 <div title="PMID 1234567890"></div>
9454 <div title="PMID 1234567890"></div>
9459 Bug 2304: HTML attribute safety (web link)
9461 <div title="http://example.com/"></div>
9463 <div title="http://example.com/"></div>
9468 Bug 2304: HTML attribute safety (named web link)
9470 <div title="[http://example.com/ link]"></div>
9472 <div title="[http://example.com/ link]"></div>
9477 Bug 3244: HTML attribute safety (extension; safe)
9479 <div style="<nowiki>background:blue</nowiki>"></div>
9481 <div style="background:blue"></div>
9486 Bug 3244: HTML attribute safety (extension; unsafe)
9488 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9490 <div style="/* insecure input */"></div>
9494 # More MSIE fun discovered by Tom Gilder
9497 MSIE CSS safety test: spurious slash
9499 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9501 <div style="/* insecure input */">evil</div>
9506 MSIE CSS safety test: hex code
9508 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9510 <div style="/* insecure input */">evil</div>
9515 MSIE CSS safety test: comment in url
9517 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9519 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
9524 MSIE CSS safety test: comment in expression
9526 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
9528 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
9534 Table attribute legitimate extension
9537 !+ style="<nowiki>color:blue</nowiki>"| status
9542 <th style="color:blue"> status
9548 Table attribute safety
9551 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
9556 <th style="/* insecure input */"> status
9562 CSS line continuation 1
9564 <div style="background-image: u\ rl(test.jpg);"></div>
9566 <div style="/* insecure input */"></div>
9571 CSS line continuation 2
9573 <div style="background-image: u\ rl(test.jpg); "></div>
9575 <div style="/* insecure input */"></div>
9586 Expansion of multi-line templates in attribute values (bug 6255)
9588 <div style="background: {{identity|#00FF00}}">-</div>
9590 <div style="background: #00FF00">-</div>
9596 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
9598 <div style="background:
9601 <div style="background: #00FF00">-</div>
9606 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
9608 <div style="background: #00FF00">-</div>
9610 <div style="background: #00FF00">-</div>
9615 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
9618 Parser hook: empty input
9631 Parser hook: empty input using terminated empty elements
9644 Parser hook: empty input using terminated empty elements (space before)
9657 Parser hook: basic input
9671 Parser hook: case insensitive
9685 Parser hook: case insensitive, redux
9698 Parser hook: nested tags
9702 <tag><tag></tag></tag>
9713 Parser hook: basic arguments
9715 <tag width=200 height = "100" depth = '50' square></tag>
9723 'square' => 'square',
9730 Parser hook: argument containing a forward slash (bug 5344)
9732 <tag filename='/tmp/bla'></tag>
9737 'filename' => '/tmp/bla',
9744 Parser hook: empty input using terminated empty elements (bug 2374)
9757 # </tag> should be output literally since there is no matching tag that begins it
9759 Parser hook: basic arguments using terminated empty elements (bug 2374)
9761 <tag width=200 height = "100" depth = '50' square/>
9771 'square' => 'square',
9780 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
9784 Parser hook: static parser hook not inside a comment
9786 <statictag>hello, world</statictag>
9787 <statictag action=flush/>
9795 Parser hook: static parser hook inside a comment
9797 <!-- <statictag>hello, world</statictag> -->
9798 <statictag action=flush/>
9804 # Nested template calls; this case was broken by Parser.php rev 1.506,
9808 Template:One-parameter
9810 (My parameter is: {{{1}}})
9814 Template:Map-one-parameter
9820 Nested template calls
9822 {{Map-one-parameter|One-parameter|param}}
9824 <p>(My parameter is: param)
9833 Sanitizer: Closing of open tags
9835 <s></s><table></table>
9837 <s></s><table></table>
9842 Sanitizer: Closing of open but not closed tags
9851 Sanitizer: Closing of closed but not open tags
9860 Sanitizer: Closing of closed but not open table tags
9862 Table not started</td></tr></table>
9864 <p>Table not started</td></tr></table>
9869 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
9871 <span id="æ: v">byte</span>[[#æ: v|backlink]]
9873 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
9878 Sanitizer: Validating the contents of the id attribute (bug 4515)
9884 Something, but definitely not <br id="9" />...
9888 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
9892 <br id="foo" /><br id="foo" />
9894 Something need to be done. foo-2 ?
9898 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
9901 <meta itemprop="hello" content="world">
9902 <meta http-equiv="refresh" content="5">
9903 <meta itemprop="hello" http-equiv="refresh" content="5">
9904 <link itemprop="hello" href="{{SERVER}}">
9905 <link rel="stylesheet" href="{{SERVER}}">
9906 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
9909 <div itemscope="itemscope">
9910 <p> <meta itemprop="hello" content="world" />
9911 <meta http-equiv="refresh" content="5">
9912 <meta itemprop="hello" content="5" />
9914 <link itemprop="hello" href="http://example.org" />
9915 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
9916 <link itemprop="hello" href="http://example.org" />
9922 Language converter: output gets cut off unexpectedly (bug 5757)
9926 this bit is safe: }-
9928 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
9930 then we get cut off here: }-
9932 all additional text is vanished
9934 <p>this bit is safe: }-
9935 </p><p>but if we add a conversion instance: xxx
9936 </p><p>then we get cut off here: }-
9937 </p><p>all additional text is vanished
9942 Self closed html pairs (bug 5487)
9945 <center><font id="bug" />Centered text</center>
9946 <div><font id="bug2" />In div text</div>
9948 <center><font id="bug" />Centered text</center>
9949 <div><font id="bug2" />In div text</div>
9958 Punctuation: nbsp before exclamation
9962 <p>C'est grave !
9967 Punctuation: CSS !important (bug 11874)
9969 <div style="width:50% !important">important</div>
9971 <div style="width:50% !important">important</div>
9976 Punctuation: CSS ! important (bug 11874; with space after)
9978 <div style="width:50% ! important">important</div>
9980 <div style="width:50% ! important">important</div>
9986 HTML bullet list, closed tags (bug 5497)
10001 HTML bullet list, unclosed tags (bug 5497)
10018 HTML ordered list, closed tags (bug 5497)
10033 HTML ordered list, unclosed tags (bug 5497)
10050 HTML nested bullet list, closed tags (bug 5497)
10075 HTML nested bullet list, open tags (bug 5497)
10100 HTML nested ordered list, closed tags (bug 5497)
10125 HTML nested ordered list, open tags (bug 5497)
10150 HTML ordered list item with parameters oddity
10152 <ol><li id="fragment">One</li></ol>
10154 <ol><li id="fragment">One</li></ol>
10159 bug 5918: autonumbering
10161 [http://first/] [http://second] [ftp://ftp]
10165 [mailto:enclosed@mail.tld With target]
10167 [mailto:enclosed@mail.tld]
10169 mailto:inline@mail.tld
10171 <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>
10172 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
10173 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
10174 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
10175 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
10181 # Security and HTML correctness
10182 # From Nick Jenkins' fuzz testing
10186 Fuzz testing: Parser13
10201 Fuzz testing: Parser14
10206 <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>
10207 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10209 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
10216 Fuzz testing: Parser14-table
10221 <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>
10222 <table style="__TOC__">
10228 # Known to produce bogus xml (extra </td>)
10230 Fuzz testing: Parser16
10250 Fuzz testing: Parser21
10253 ! irc://{{ftp://a" onmouseover="alert('hello world');"
10258 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
10268 Fuzz testing: Parser22
10270 http://===r:::https://b
10274 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
10282 # Known to produce bad XML for now
10284 Fuzz testing: Parser24
10291 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
10292 <br style="onmouseover='alert(document.cookie);' " />
10294 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10299 <u class="|">}}}} >
10300 <br style="onmouseover='alert(document.cookie);'" />
10302 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10311 # Note: the current result listed for this is not what the original one was,
10312 # but the original bug was JavaScript injection, which is fixed in any case.
10313 # It's not clear that the original result listed was any more correct than the
10314 # current one. Original result:
10317 # <li class="||">
10318 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10320 Fuzz testing: Parser25 (bug 6055)
10326 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10328 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10333 Fuzz testing: URL adjacent extension (with space, clean)
10336 http://example.com <nowiki>junk</nowiki>
10338 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10343 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10346 http://example.com<nowiki>junk</nowiki>
10348 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10353 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10356 http://example.com<pre>junk</pre>
10358 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10363 Fuzz testing: image with bogus manual thumbnail
10365 [[Image:foobar.jpg|thumbnail= ]]
10367 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10372 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10374 <pre dir=" "></pre>
10376 <pre dir=" "></pre>
10381 Parsing optional HTML elements (Bug 6171)
10386 <td> Some tabular data</td>
10387 <td> More tabular data ...
10388 <td> And yet som tabular data</td>
10394 <td> Some tabular data</td>
10395 <td> More tabular data ...
10396 </td><td> And yet som tabular data</td>
10403 Correct handling of <td>, <tr> (Bug 6171)
10408 <td> Some tabular data</td>
10409 <td> More tabular data ...</td>
10410 <td> And yet som tabular data</td>
10416 <td> Some tabular data</td>
10417 <td> More tabular data ...</td>
10418 <td> And yet som tabular data</td>
10426 Parsing crashing regression (fr:JavaScript)
10430 <p></body></x>
10435 Inline wiki vs wiki block nesting
10441 <p><b>Bold paragraph</b>
10442 </p><p>New wiki paragraph
10447 Inline HTML vs wiki block nesting
10455 <p><b>Bold paragraph</b>
10456 </p><p>New wiki paragraph
10460 # Original result was this:
10461 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10463 # While that might be marginally more intuitive, maybe, the six-apostrophe
10464 # construct is clearly pathological and the result stated here (which is what
10465 # the parser actually does) is about as reasonable as anything.
10467 Mixing markup for italics and bold
10470 '''bold''''''bold''bolditalics'''''
10472 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10480 Article for special page transclusion test
10484 Special page transclusion
10487 {{Special:Prefixindex/Xyzzyx}}
10489 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10494 Special page transclusion twice (bug 5021)
10497 {{Special:Prefixindex/Xyzzyx}}
10498 {{Special:Prefixindex/Xyzzyx}}
10500 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10501 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10506 Transclusion of default MediaWiki message
10508 {{MediaWiki:Mainpage}}
10515 Transclusion of nonexistent MediaWiki message
10517 {{MediaWiki:Mainpagexxx}}
10519 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
10524 Transclusion of MediaWiki message with underscore
10526 {{MediaWiki:history_short}}
10533 Transclusion of MediaWiki message with space
10535 {{MediaWiki:history short}}
10542 Invalid header with following text
10552 Section extraction test (section 0)
10572 Section extraction test (section 1)
10594 Section extraction test (section 2)
10615 Section extraction test (section 3)
10635 Section extraction test (section 4)
10659 Section extraction test (section 5)
10679 Section extraction test (section 6)
10700 Section extraction test (section 7)
10720 Section extraction test (section 8)
10740 Section extraction test (section 9)
10761 Section extraction test (section 10)
10781 Section extraction test (nonexistent section 11)
10800 Section extraction test with bogus heading (section 1)
10805 ==bogus== not a legal section
10809 ==bogus== not a legal section
10813 Section extraction test with bogus heading (section 2)
10818 ==bogus== not a legal section
10825 Section extraction test with comment after heading (section 1)
10837 Section extraction test with comment after heading (section 2)
10849 Section extraction test with bogus <nowiki> heading (section 1)
10854 ==bogus== <nowiki>not a legal section</nowiki>
10858 ==bogus== <nowiki>not a legal section</nowiki>
10862 Section extraction test with bogus <nowiki> heading (section 2)
10867 ==bogus== <nowiki>not a legal section</nowiki>
10874 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
10875 # instead of respecting commented sections
10877 Section extraction prefixed by comment (section 1)
10888 Section extraction prefixed by comment (section 2)
10899 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
10900 # instead of respecting HTML-style headings
10902 Section extraction, mixed wiki and html (section 1)
10918 Section extraction, mixed wiki and html (section 2)
10934 # Formerly testing for bug 3342
10936 Section extraction, heading surrounded by <noinclude>
10940 <noinclude>==unmarked==</noinclude>
10946 # Test behavior of bug 19910
10948 Sectiion with all-equals
10953 The line above must have a trailing space
10956 But just in case it doesn't...
10960 But just in case it doesn't...
10964 Section replacement test (section 0)
10995 Section replacement test (section 1)
11024 Section replacement test (section 2)
11054 Section replacement test (section 3)
11085 Section replacement test (section 4)
11112 Section replacement test (section 5)
11143 Section replacement test (section 6)
11173 Section replacement test (section 7)
11204 Section replacement test (section 8)
11235 Section replacement test (section 9)
11264 Section replacement test (section 10)
11294 Section replacement test with initial whitespace (bug 13728)
11298 Preformatted initial line
11302 Preformatted initial line
11309 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11321 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11334 Section extraction, <pre> around bogus header (bug 10309)
11351 Section replacement, <pre> around bogus header (bug 10309)
11353 noxml replace=2,"xxx"
11374 Handling of 
 in URLs
11378 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11385 5 quotes, code coverage +1 line (php)
11392 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11394 5 quotes, code coverage +1 line (parsoid)
11400 <p><i><b></b></i></p>
11404 Special:Search page linking.
11408 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11420 * {{ROOTPAGENAMEE}}
11422 * {{BASEPAGENAMEE}}
11424 * {{TALKPAGENAMEE}}
11425 * {{SUBJECTPAGENAME}}
11426 * {{SUBJECTPAGENAMEE}}
11432 * {{SUBJECTSPACEE}}
11433 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11435 <ul><li> Parser test
11436 </li><li> Parser test
11437 </li><li> Parser test
11438 </li><li> Parser_test
11439 </li><li> Parser test
11440 </li><li> Parser_test
11441 </li><li> Parser test
11442 </li><li> Parser_test
11443 </li><li> Talk:Parser test
11444 </li><li> Talk:Parser_test
11445 </li><li> Parser test
11446 </li><li> Parser_test
11453 </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>
11457 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11467 image4 |300px| centre
11468 image5.svg| http://///////
11473 <ul class="gallery">
11474 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11475 <div style="height: 150px;">Image1.png</div>
11476 <div class="gallerytext">
11479 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11480 <div style="height: 150px;">Image2.gif</div>
11481 <div class="gallerytext">
11486 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11487 <div style="height: 150px;">Image3</div>
11488 <div class="gallerytext">
11491 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11492 <div style="height: 150px;">Image4</div>
11493 <div class="gallerytext">
11498 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11499 <div style="height: 150px;">Image5.svg</div>
11500 <div class="gallerytext">
11501 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11505 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11506 <div style="height: 150px;">* image6</div>
11507 <div class="gallerytext">
11515 Gallery (with options)
11517 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11518 File:Nonexistant.jpg|caption
11519 File:Nonexistant.jpg
11520 image:foobar.jpg|some '''caption''' [[Main Page]]
11522 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
11525 <ul class="gallery" style="max-width: 226px;_width: 226px;">
11526 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
11527 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11528 <div style="height: 70px;">Nonexistant.jpg</div>
11529 <div class="gallerytext">
11534 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11535 <div style="height: 70px;">Nonexistant.jpg</div>
11536 <div class="gallerytext">
11539 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11540 <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>
11541 <div class="gallerytext">
11542 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11546 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11547 <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>
11548 <div class="gallerytext">
11551 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11552 <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>
11553 <div class="gallerytext">
11563 Gallery with wikitext inside caption
11566 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
11567 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
11570 <ul class="gallery">
11571 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11572 <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>
11573 <div class="gallerytext">
11574 <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>
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="galleryalt" 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>This is a test template
11590 gallery (with showfilename option)
11592 <gallery showfilename>
11593 File:Nonexistant.jpg|caption
11594 File:Nonexistant.jpg
11595 image:foobar.jpg|some '''caption''' [[Main Page]]
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">
11603 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11608 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11609 <div style="height: 150px;">Nonexistant.jpg</div>
11610 <div class="gallerytext">
11611 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
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="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
11617 <div class="gallerytext">
11618 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11619 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11623 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11624 <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>
11625 <div class="gallerytext">
11626 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11635 Gallery (with namespace-less filenames)
11638 File:Nonexistant.jpg
11644 <ul class="gallery">
11645 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11646 <div style="height: 150px;">Nonexistant.jpg</div>
11647 <div class="gallerytext">
11650 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11651 <div style="height: 150px;">Nonexistant.jpg</div>
11652 <div class="gallerytext">
11655 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11656 <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>
11657 <div class="gallerytext">
11660 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11661 <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>
11662 <div class="gallerytext">
11670 HTML Hex character encoding (spells the word "JavaScript")
11672 JavaScript
11674 <p>JavaScript
11679 HTML Hex character encoding bogus encoding (bug 26437 regression check)
11683 <p>&#xsee;&#XSEE;
11688 HTML Hex character encoding mixed case
11697 __FORCETOC__ override
11709 ISBN 978-0-1234-56 789
11711 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
11716 ISBN followed by 5 spaces
11727 ISBN ISBN 1234567890
11729 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11734 Bug 22905: <abbr> followed by ISBN followed by </a>
11736 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
11738 <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>
11747 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
11752 Double RFC with a wiki link
11756 <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>
11765 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
11770 Centre-aligned image
11772 [[Image:foobar.jpg|centre]]
11774 <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>
11781 [[Image:foobar.jpg|none]]
11783 <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>
11788 Width + Height sized image (using px) (height is ignored)
11790 [[Image:foobar.jpg|640x480px]]
11792 <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>
11797 Width-sized image (using px, no following whitespace)
11799 [[Image:foobar.jpg|640px]]
11801 <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>
11806 Width-sized image (using px, with following whitespace - test regression from r39467)
11808 [[Image:foobar.jpg|640px ]]
11810 <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>
11815 Width-sized image (using px, with preceding whitespace - test regression from r39467)
11817 [[Image:foobar.jpg| 640px]]
11819 <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>
11824 Another italics / bold test
11832 # Note the results may be incorrect, as parserTest output included this:
11833 # XML error: Mismatched tag at byte 6120:
11834 # ...<dd> </dt></dl> </dd...
11842 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
11853 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
11855 Images with the "|" character in the comment
11857 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
11859 <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>
11864 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
11866 <html><script>alert(1);</script></html>
11868 <p><html><script>alert(1);</script></html>
11873 HTML with raw HTML ($wgRawHtml==true)
11877 <html><script>alert(1);</script></html>
11879 <p><script>alert(1);</script>
11884 Parents of subpages, one level up
11886 subpage title=[[Subpage test/L1/L2/L3]]
11890 <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>
11896 Parents of subpages, one level up, not named
11898 subpage title=[[Subpage test/L1/L2/L3]]
11902 <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>
11909 Parents of subpages, two levels up
11911 subpage title=[[Subpage test/L1/L2/L3]]
11917 <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
11918 </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>
11923 Parents of subpages, two levels up, without trailing slash or name.
11925 subpage title=[[Subpage test/L1/L2/L3]]
11934 Parents of subpages, two levels up, with lots of extra trailing slashes.
11936 subpage title=[[Subpage test/L1/L2/L3]]
11940 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
11945 Definition list code coverage
11951 <dl><dt> title  </dt><dd> def
11952 </dd><dt> title </dt><dd> def
11953 </dd><dt>title</dt><dd> def
11959 Don't fall for the self-closing div
11961 <div>hello world</div/>
11963 <div>hello world</div>
11972 <p>[[:Template:Msg]]
11981 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
11985 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
11987 Always escape literal '>' in output, not just after '<'
12001 <p>This is a test template
12002 This is a test template
12014 Inclusion of !userCanEdit() content
12018 <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>
12024 Out-of-order TOC heading levels
12033 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12035 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
12037 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
12038 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
12041 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
12043 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
12044 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
12049 <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>
12050 <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>
12051 <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>
12052 <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>
12053 <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>
12054 <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>
12060 ISBN with a dummy number
12070 ISBN with space-delimited number
12074 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
12080 ISBN with multiple spaces, no number
12099 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12100 </p><p>ISBN 12345678901
12106 ISBN with trailing year (bug 8110)
12108 ISBN 1-234-56789-0 - 2006
12110 ISBN 1 234 56789 0 - 2006
12112 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
12113 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
12121 {{anchorencode:foo bar©#%n}}
12123 <p>foo_bar.C2.A9.23.25n
12128 anchorencode trims spaces
12130 {{anchorencode: __pretty__please__}}
12137 anchorencode deals with links
12139 {{anchorencode: [[hello|world]] [[hi]]}}
12146 anchorencode deals with templates
12148 {{anchorencode: {{Foo}} }}
12155 anchorencode encodes like the TOC generator: (bug 18431)
12157 === _ +:.3A%3A&&]] ===
12158 {{anchorencode: _ +:.3A%3A&&]] }}
12161 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
12162 <p>.2B:.3A.253A.26.26.5D.5D
12166 # Expected output in the following test is not necessarily expected (there
12167 # should probably be <p> tags inside the <blockquote> in the output) -- it's
12168 # only testing for well-formedness.
12170 Bug 6200: blockquotes and paragraph formatting
12190 Bug 8293: Use of center tag ruins paragraph formatting
12211 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
12215 <span><s>x</span></s>
12217 <p><span><s>x</span></s></span>
12222 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
12226 <span><s>x</span></s>
12228 <p><span><s>x</s></span><s></s>
12233 ### Language variants related tests
12236 Self-link in language variants
12238 title=[[Dunav]] language=sr
12240 Both [[Dunav]] and [[Дунав]] are names for this river.
12242 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
12253 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
12255 title=[[Duna]] language=sr
12257 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
12259 <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.
12264 Link to pages in language variants
12268 Main Page can be written as [[Маин Паге]]
12270 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
12276 Multiple links to pages in language variants
12280 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
12282 <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>.
12288 Simple template in language variants
12294 <p>This is a test template
12300 Template with explicit namespace in language variants
12306 <p>This is a test template
12312 Basic test for template parameter in language variants
12316 {{парамтест|param=foo}}
12318 <p>This is a test template with parameter foo
12324 Simple category in language variants
12328 [[Category:МедиаWики Усер'с Гуиде]]
12330 <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>
12347 Don't convert blue categorylinks to another variant (bug 33210)
12351 [[A]][[Category:分类]]
12353 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12358 Stripping -{}- tags (language variants)
12362 Latin proverb: -{Ne nuntium necare}-
12364 <p>Latin proverb: Ne nuntium necare
12370 Prevent conversion with -{}- tags (language variants)
12372 language=sr variant=sr-ec
12374 Latinski: -{Ne nuntium necare}-
12376 <p>Латински: Ne nuntium necare
12382 Prevent conversion of text with -{}- tags (language variants)
12384 language=sr variant=sr-ec
12386 Latinski: -{Ne nuntium necare}-
12388 <p>Латински: Ne nuntium necare
12394 Prevent conversion of links with -{}- tags (language variants)
12396 language=sr variant=sr-ec
12400 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12406 -{}- tags within headlines (within html for parserConvert())
12408 language=sr variant=sr-ec
12412 <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>
12418 Explicit definition of language variant alternatives
12420 language=zh variant=zh-tw
12422 -{zh:China;zh-tw:Taiwan}-, not China
12424 <p>Taiwan, not China
12430 Conversion around HTML tags
12432 language=sr variant=sr-ec
12434 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12435 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12438 <span title="ЛаCтин">ски</span>
12444 Explicit session-wise language variant mapping (A flag and - flag)
12446 language=zh variant=zh-tw
12448 Taiwan is not China.
12449 But -{A|zh:China;zh-tw:Taiwan}- is China,
12450 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12451 and -{China}- is China.
12453 <p>Taiwan is not China.
12454 But Taiwan is Taiwan,
12455 (This should be stripped!)
12456 and China is China.
12461 Explicit session-wise language variant mapping (H flag for hide)
12463 language=zh variant=zh-tw
12465 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12468 <p>(This should be stripped!)
12474 Adding explicit conversion rule for title (T flag)
12476 language=zh variant=zh-tw showtitle
12478 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12481 <p>Should be stripped!
12486 Testing that changing the language variant here in the tests actually works
12488 language=zh variant=zh showtitle
12490 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12493 <p>Should be stripped!
12498 Recursive conversion of alt and title attrs shouldn't clear converter state
12500 language=zh variant=zh-cn showtitle
12502 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
12503 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
12507 Should be stripped<span title="Exclamation">!</span>
12512 Bug 24072: more test on conversion rule for title
12514 language=zh variant=zh-tw showtitle
12516 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12517 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
12520 <p>This should be stripped!
12521 This won't take interferes with the title rule.
12526 Partly disable title conversion if variant == main language code
12528 language=zh variant=zh title=[[ZH]] showtitle
12530 -{T|zh-cn:CN;zh-tw:TW}-
12538 Partly disable title conversion if variant == main language code, more
12540 language=zh variant=zh title=[[ZH]] showtitle
12550 Raw output of variant escape tags (R flag)
12552 language=zh variant=zh-tw
12554 Raw: -{R|zh:China;zh-tw:Taiwan}-
12556 <p>Raw: zh:China;zh-tw:Taiwan
12561 Nested using of manual convert syntax
12563 language=zh variant=zh-hk
12565 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
12567 <p>Nested: Hello Hong Kong!
12572 Proper conversion of text in external links
12574 language=sr variant=sr-ec
12576 http://www.google.com
12577 gopher://www.google.com
12578 [http://www.google.com http://www.google.com]
12579 [gopher://www.google.com gopher://www.google.com]
12580 [https://www.google.com irc://www.google.com]
12581 [ftp://www.google.com www.google.com/ftp://dir]
12582 [//www.google.com www.google.com]
12584 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12585 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12586 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12587 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12588 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
12589 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
12590 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
12595 Do not convert roman numbers to language variants
12597 language=sr variant=sr-ec
12601 <p>Фридрих IV је цар.
12606 Unclosed language converter markup "-{"
12617 Don't convert raw rule "-{R|=>}-" to "=>"
12634 Bug 529: Uncovered bullet
12644 # Plain MediaWiki does not remove empty lists, but tidy actually does.
12645 # Templates in Wikipedia rely on this behavior, as tidy has always been
12646 # enabled there. These tests are normally run *without* tidy, so specify the
12647 # full output here.
12648 # To test realistic parsing behavior, apply a tidy-like transformation to both
12649 # the expected output and your parser's output.
12651 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
12653 ******* Foo {{bullet}}
12655 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
12668 Bug 529: Uncovered table already at line-start
12691 Bug 529: Uncovered bullet in parser function result
12693 * Foo {{lc:{{bullet}} }}
12702 Bug 5678: Double-parsed template argument
12704 {{lc:{{{1}}}|hello}}
12711 Bug 5678: Double-parsed template invocation
12713 {{lc:{{paramtest {{!}} param = hello }} }}
12715 <p>{{paramtest | param = hello }}
12720 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
12723 title=[[Main Page]]
12725 {{PRVNÍVELKÉ:ěščř}}
12726 {{prvnívelké:ěščř}}
12746 Morwen/13: Unclosed link followed by heading
12753 <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>
12758 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
12765 <h1><span class="mw-headline" id="heading">heading</span></h1>
12770 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
12777 <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>
12792 Paragraphs inside divs (no extra line breaks)
12804 Paragraphs inside divs (extra line break on open)
12819 Paragraphs inside divs (extra line break on close)
12834 Paragraphs inside divs (extra line break on open and close)
12851 Nesting tags, paragraphs on lines which begin with <div>
12855 <div></div><strong>A
12864 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
12866 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
12870 <blockquote>Line one
12872 Line two</blockquote>
12874 <blockquote>Line one
12875 Line two</blockquote>
12880 Bug 6200: paragraphs inside blockquotes (extra line break on open)
12887 Line two</blockquote>
12892 Line two</blockquote>
12897 Bug 6200: paragraphs inside blockquotes (extra line break on close)
12901 <blockquote>Line one
12906 <blockquote>Line one
12914 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
12933 Paragraphs inside blockquotes/divs (no extra line breaks)
12935 <blockquote><div>Line one
12937 Line two</div></blockquote>
12939 <blockquote><div>Line one
12940 Line two</div></blockquote>
12945 Paragraphs inside blockquotes/divs (extra line break on open)
12950 Line two</div></blockquote>
12955 Line two</div></blockquote>
12960 Paragraphs inside blockquotes/divs (extra line break on close)
12962 <blockquote><div>Line one
12965 </div></blockquote>
12967 <blockquote><div>Line one
12970 </div></blockquote>
12975 Paragraphs inside blockquotes/divs (extra line break on open and close)
12981 </div></blockquote>
12987 </div></blockquote>
12992 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
12994 wgLinkHolderBatchSize=0
13000 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
13001 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
13002 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
13007 Free external link invading image caption
13009 [[Image:Foobar.jpg|thumb|http://x|hello]]
13011 <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>
13016 Bug 15196: localised external link numbers
13020 [http://en.wikipedia.org/]
13022 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
13027 Multibyte character in padleft
13029 {{padleft:-Hello|7|Æ}}
13036 Multibyte character in padright
13038 {{padright:Hello-|7|Æ}}
13045 formatdate parser function
13047 {{#formatdate:2009-03-24}}
13049 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
13054 formatdate parser function, with default format
13056 {{#formatdate:2009-03-24|mdy}}
13058 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
13063 Spacing of numbers in formatted dates
13065 {{#formatdate:January 15}}
13067 <p><span class="mw-formatted-date" title="01-15">January 15</span>
13072 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
13074 language=nl title=[[MediaWiki:Common.css]]
13076 {{#formatdate:2009-03-24|dmy}}
13078 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
13091 Edit comment with link
13095 I like the [[Main Page]] a lot
13097 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
13101 Edit comment with link and link text
13105 I like the [[Main Page|best pages]] a lot
13107 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13111 Edit comment with link and link text with suffix
13115 I like the [[Main Page|best page]]s a lot
13117 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13121 Edit comment with section link (non-local, eg in history list)
13123 comment title=[[Main Page]]
13125 /* External links */ removed bogus entries
13127 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13131 Edit comment with section link and text before it (non-local, eg in history list)
13133 comment title=[[Main Page]]
13135 pre-comment text /* External links */ removed bogus entries
13137 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>
13141 Edit comment with section link (local, eg in diff view)
13143 comment local title=[[Main Page]]
13145 /* External links */ removed bogus entries
13147 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13151 Edit comment with subpage link (bug 14080)
13155 title=[[Subpage test]]
13157 Poked at a [[/subpage]] here...
13159 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
13163 Edit comment with subpage link and link text (bug 14080)
13167 title=[[Subpage test]]
13169 Poked at a [[/subpage|neat little page]] here...
13171 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
13175 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
13178 title=[[Subpage test]]
13180 Poked at a [[/subpage]] here...
13182 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
13186 Edit comment with bare anchor link (local, as on diff)
13190 title=[[Main Page]]
13194 <a href="#section">#section</a>
13198 Edit comment with bare anchor link (non-local, as on history)
13201 title=[[Main Page]]
13205 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
13209 Anchor starting with underscore
13213 <p><a href="#_ref">One</a>
13218 Id starting with underscore
13220 <div id="_ref"></div>
13222 <div id="_ref"></div>
13227 Space normalisation on autocomment (bug 22784)
13230 title=[[Main Page]]
13232 /* __hello__world__ */
13234 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
13238 percent-encoding and + signs in comments (Bug 26410)
13242 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
13244 <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>
13248 Bad images - basic functionality
13257 Bad images - bug 16039: text after bad image disappears
13271 Verify that displaytitle works (bug #22501) no displaytitle
13275 wgAllowDisplayTitle=true
13276 wgRestrictDisplayTitle=false
13278 this is not the the title
13281 <p>this is not the the title
13286 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
13291 wgAllowDisplayTitle=true
13292 wgRestrictDisplayTitle=false
13294 this is not the the title
13295 {{DISPLAYTITLE:whatever}}
13298 <p>this is not the the title
13303 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
13308 wgAllowDisplayTitle=true
13309 wgRestrictDisplayTitle=true
13311 this is not the the title
13312 {{DISPLAYTITLE:whatever}}
13315 <p>this is not the the title
13320 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13325 wgAllowDisplayTitle=true
13326 wgRestrictDisplayTitle=true
13328 this is not the the title
13329 {{DISPLAYTITLE:screen}}
13332 <p>this is not the the title
13337 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13342 wgAllowDisplayTitle=false
13344 this is not the the title
13345 {{DISPLAYTITLE:screen}}
13348 <p>this is not the the title
13349 <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>
13354 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13359 wgAllowDisplayTitle=false
13361 this is not the the title
13364 <p>this is not the the title
13369 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
13374 wgAllowDisplayTitle=true
13375 wgRestrictDisplayTitle=true
13377 this is not the the title
13378 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
13380 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
13381 <p>this is not the the title
13386 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
13391 wgAllowDisplayTitle=true
13392 wgRestrictDisplayTitle=true
13394 this is not the the title
13395 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
13397 <span style="color: red;">s</span>creen
13398 <p>this is not the the title
13403 preload: check <noinclude> and <includeonly>
13407 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13413 preload: check <onlyinclude>
13417 Goodbye <onlyinclude>Hello world</onlyinclude>
13423 preload: can pass tags through if we want to
13427 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13429 <includeonly>Hello world</includeonly>
13433 preload: check that it doesn't try to do tricks
13437 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13439 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13443 Play a bit with r67090 and bug 3158
13447 <div style="width:50% !important"> </div>
13448 <div style="width:50% !important"> </div>
13449 <div style="width:50% !important"> </div>
13450 <div style="border : solid;"> </div>
13452 <div style="width:50% !important"> </div>
13453 <div style="width:50% !important"> </div>
13454 <div style="width:50% !important"> </div>
13455 <div style="border : solid;"> </div>
13460 HTML5 data attributes
13462 <span data-foo="bar">Baz</span>
13463 <p data-abc-def_hij="">Quuz</p>
13465 <p><span data-foo="bar">Baz</span>
13467 <p data-abc-def_hij="">Quuz</p>
13472 percent-encoding and + signs in internal links (Bug 26410)
13474 [[User:+%]] [[Page+title%]]
13475 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
13476 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
13477 [[%33%45]] [[%33%45+]]
13479 <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>
13480 <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>
13481 <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>
13482 <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>
13487 Special characters in embedded file links (bug 27679)
13489 [[File:Contains & ampersand.jpg]]
13490 [[File:Does not exist.jpg|Title with & ampersand]]
13492 <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>
13493 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
13499 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
13501 Text's been normalized?
13503 <p>Text's been normalized?
13508 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
13510 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
13512 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
13517 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
13519 [http://www.example.org/ ideograms]
13521 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
13526 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
13528 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
13530 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
13554 Bug 31098 Template which includes system messages which includes the template
13558 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13559 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13564 Bug31490 Turkish: ucfirst 'blah'
13575 Bug31490 Turkish: ucfirst 'ix'
13586 Bug31490 Turkish: lcfirst 'BLAH'
13597 Bug31490 Turkish: ucfırst (with a dotless i)
13603 <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>
13608 Bug31490 ucfırst (with a dotless i) with English language
13614 <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>
13619 Bug 26375: TOC with italics
13621 title=[[Main Page]]
13624 == ''Lost'' episodes ==
13626 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13628 <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>
13631 <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>
13636 Bug 26375: TOC with bold
13638 title=[[Main Page]]
13641 == '''should be bold''' then normal text ==
13643 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13645 <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>
13648 <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>
13653 Bug 33845: Headings become cursive in TOC when they contain an image
13655 title=[[Main Page]]
13658 == Image [[Image:foobar.jpg]] ==
13660 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13662 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
13665 <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>
13670 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
13672 title=[[Main Page]]
13675 == <blockquote>Quote</blockquote> ==
13677 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13679 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
13682 <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>
13687 Unclosed tags in TOC
13689 title=[[Main Page]]
13693 <small>Hanc marginis exiguitas non caperet.</small>
13696 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13698 <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>
13701 <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>
13702 <p><small>Hanc marginis exiguitas non caperet.</small>
13708 Multiple tags in TOC
13711 == <i>Foo</i> <b>Bar</b> ==
13713 == <i>Foo</i> <blockquote>Bar</blockquote> ==
13715 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13717 <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>
13718 <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>
13721 <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>
13722 <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>
13727 Tags with parameters in TOC
13730 == <sup class="in-h2">Hello</sup> ==
13732 == <sup class="a > b">Evilbye</sup> ==
13734 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13736 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
13737 <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>
13740 <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>
13741 <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>
13746 span tags with directionality in TOC
13749 == <span dir="ltr">C++</span> ==
13751 == <span dir="rtl">זבנג!</span> ==
13753 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
13755 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
13757 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
13759 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13761 <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>
13762 <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>
13763 <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>
13764 <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>
13765 <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>
13768 <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>
13769 <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>
13770 <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>
13771 <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>
13772 <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>
13779 == {{int:headline_sample}} ==
13783 Bug 32057: Title needed when expanding <h> nodes.
13785 title=[[Main Page]]
13789 <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>
13794 Strip marker in urlencode
13796 {{urlencode:x<nowiki/>y}}
13797 {{urlencode:x<nowiki/>y|wiki}}
13798 {{urlencode:x<nowiki/>y|path}}
13825 Strip marker in formatNum
13827 {{formatnum:1<nowiki/>2}}
13828 {{formatnum:1<nowiki/>2|R}}
13836 Check noCommafy in formatNum
13840 {{formatnum:123456.78}}
13841 {{formatnum:123456.78|NOSEP}}
13849 Strip marker in grammar
13853 {{grammar:elative|foo<nowiki/>bar}}
13860 Strip marker in padleft
13862 {{padleft:|2|x<nowiki/>y}}
13869 Strip marker in padright
13871 {{padright:|2|x<nowiki/>y}}
13878 Strip marker in anchorencode
13880 {{anchorencode:x<nowiki/>y}}
13887 nowiki inside link inside heading (bug 18295)
13889 ==[[foo|x<nowiki>y</nowiki>z]]==
13891 <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>
13896 new support for bdi element (bug 31817)
13898 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13900 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13905 Ignore pipe between table row attributes
13909 |- id=foo | style='color: red'
13917 <tr id="foo" style="color: red">
13924 Gallery override link with WikiLink (bug 34852)
13927 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
13930 <ul class="gallery">
13931 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13932 <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>
13933 <div class="gallerytext">
13943 Gallery override link with absolute external link (bug 34852)
13946 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
13949 <ul class="gallery">
13950 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13951 <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>
13952 <div class="gallerytext">
13962 Gallery override link with malicious javascript (bug 34852)
13965 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
13968 <ul class="gallery">
13969 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13970 <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>
13971 <div class="gallerytext">
13981 Gallery with invalid title as link (bug 43964)
13984 File:foobar.jpg|link=<
13987 <ul class="gallery">
13988 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13989 <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>
13990 <div class="gallerytext">
13998 Language parser function
14007 Padleft and padright as substr
14009 {{padleft:|3|abcde}}
14010 {{padright:|3|abcde}}
14018 Special parser function
14020 {{#special:RandomPage}}
14021 {{#special:BaDtItLe}}
14022 {{#special:Foobar}}
14031 Bug 34939 - Case insensitive link parsing ([HttP://])
14033 [HttP://MediaWiki.Org/]
14035 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
14040 Bug 34939 - Case insensitive link parsing ([HttP:// title])
14042 [HttP://MediaWiki.Org/ MediaWiki]
14044 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
14049 Bug 34939 - Case insensitive link parsing (HttP://)
14051 HttP://MediaWiki.Org/
14053 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
14059 ### Parsoids-specific tests
14060 ### Parsoid-PHP parser incompatibilities
14063 1. SOL-sensitive wikitext tokens as template-args
14065 parsoid=wt2html,wt2wt
14071 <span about="#mwt1" typeof="mw:Transclusion">
14072 </span><ul about="#mwt1"><li>a</li></ul>
14073 <span about="#mwt2" typeof="mw:Transclusion">
14074 </span><ol about="#mwt2"><li>a</li></ol>
14075 <span about="#mwt3" typeof="mw:Transclusion">
14076 </span><dl about="#mwt3"><dd>a</dd></dl>
14079 #### ----------------------------------------------------------------
14080 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
14081 #### tags. Parsoid's output for these tags differs from that of the
14083 #### ----------------------------------------------------------------
14086 Ref: 1. ref-location should be replaced with an index span
14091 B <ref name="x">foo</ref>
14094 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
14095 B <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}' id="cite_ref-x-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-2">[2]</a></span>
14096 C <span about="#mwt3" class="reference" data-mw='{"name":"ref","attrs":{"name":"y"}}' id="cite_ref-y-3-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-y-3">[3]</a></span></p>
14100 Ref: 2. ref-tags with identical names should all get the same index
14104 A <ref name="x">foo</ref>
14107 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}' id="cite_ref-x-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span>
14108 B <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"x"}}' id="cite_ref-x-1-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span></p>
14112 Ref: 3. spaces in ref-names should be ignored
14116 A <ref name="x">foo</ref>
14117 B <ref name=" x " />
14120 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}' id="cite_ref-x-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span>
14121 B <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"x"}}' id="cite_ref-x-1-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span>
14122 C <span about="#mwt3" class="reference" data-mw='{"name":"ref","attrs":{"name":"x"}}' id="cite_ref-x-1-2" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span></p>
14126 Ref: 4. 'constructor' should be accepted as a valid ref-name
14127 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
14131 A <ref name="constructor">foo</ref>
14133 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"constructor"}}' id="cite_ref-constructor-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-constructor-1">[1]</a></span></p>
14137 Ref: 5. body should accept generic wikitext
14142 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
14147 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"This is a <b data-parsoid=\"{&quot;dsr&quot;:[19,40,3,3]}\"><a rel=\"mw:WikiLink\" href=\"./Bolded_link\" data-parsoid=\"{&quot;a&quot;:{&quot;href&quot;:&quot;./Bolded_link&quot;},&quot;sa&quot;:{&quot;href&quot;:&quot;bolded link&quot;},&quot;stx&quot;:&quot;simple&quot;,&quot;dsr&quot;:[22,37,2,2]}\">bolded link</a></b> and this is a <span about=\"#mwt3\" typeof=\"mw:Transclusion\" data-mw=\"{&quot;target&quot;:{&quot;wt&quot;:&quot;echo&quot;,&quot;href&quot;:&quot;./Template:Echo&quot;},&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;transclusion&quot;}}}\" data-parsoid=\"{&quot;src&quot;:&quot;{{echo|transclusion}}&quot;,&quot;dsr&quot;:[55,76,null,null]}\">transclusion</span>\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
14149 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14150 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> This is a <b><a rel="mw:WikiLink" href="./Bolded_link">bolded link</a></b> and this is a <span about="#mwt3" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"transclusion"}}}'>transclusion</span>
14155 Ref: 6. indent-pres should not be output in ref-body
14167 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo\n bar\n baz\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
14169 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14170 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14177 Ref: 6. No p-wrapping in ref-body
14196 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo\n\nbar\n\n\nbaz\n\n\n\nbooz\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
14198 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14199 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14213 Ref: 8. transclusion wikitext has lower precedence
14217 A <ref> foo {{echo|</ref> B C}}
14221 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo <span typeof=\"mw:Nowiki\" data-parsoid=\"{&quot;src&quot;:&quot;{{&quot;,&quot;dsr&quot;:[12,14,2,null]}\">{{</span>echo|"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C<span typeof="mw:Nowiki">}}</span></p>
14223 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14224 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <span typeof="mw:Nowiki">{{</span>echo|</li></ol>
14228 Ref: 9. unclosed comments should not leak out of ref-body
14232 A <ref> foo <!--</ref> B C
14236 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo <!---->"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C</p>
14238 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14239 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
14243 Ref: 10. Unclosed HTML tags should not leak out of ref-body
14247 A <ref> <b> foo </ref> B C
14251 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"<b data-parsoid=\"{&quot;stx&quot;:&quot;html&quot;,&quot;autoInsertedEnd&quot;:true,&quot;dsr&quot;:[8,16,3,0]}\"> foo </b>"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C</p>
14253 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14254 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> <b> foo </b></li></ol>
14258 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
14265 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B
14266 C <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span> D</p>
14270 Ref: 12. ref-tags act as trailing newline migration barrier
14274 <!--the newline at the end of this line moves out of the p-tag-->a
14276 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
14281 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
14284 <p>b<!--the newline at the end of this line stays inside the p-tag--> <span about="#mwt1" class="reference" data-mw='{"name":"ref","attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
14285 <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span></p>
14292 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
14300 <p><span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> A
14301 <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"bar\n"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span> B</p>
14305 Ref: 14. A nested ref-tag should be emitted as plain text
14309 <ref>foo <ref>bar</ref> baz</ref>
14313 <p><span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo &lt;ref&gt;bar"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> baz</ref></p>
14315 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <ref>bar</li></ol>
14319 Ref: 15. ref-tags with identical names should get identical indexes
14323 A1 <ref name="a">foo</ref> A2 <ref name="a" />
14324 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
14328 <p>A1 <span about="#mwt3" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"a"}}' id="cite_ref-a-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span> A2 <span about="#mwt4" class="reference" data-mw='{"name":"ref","attrs":{"name":"a"}}' id="cite_ref-a-1-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span>
14329 B1 <span about="#mwt7" class="reference" data-mw='{"name":"ref","attrs":{"name":"b"}}' id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span> B2 <span about="#mwt8" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"name":"b"}}' id="cite_ref-b-2-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span></p>
14331 <ol about="#mwt10" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-a-1" id="cite_note-a-1"><span rel="mw:referencedBy">↑ <a href="#cite_ref-a-1-0">1.0</a> <a href="#cite_ref-a-1-1">1.1</a></span> foo</li><li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy">↑ <a href="#cite_ref-b-2-0">2.0</a> <a href="#cite_ref-b-2-1">2.1</a></span> bar</li></ol>
14335 References: 1. references tag without any refs should be handled properly
14341 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
14345 References: 2. references tag with group only outputs references from that group
14349 A <ref group="a">foo</ref>
14350 B <ref group="b">bar</ref>
14352 <references group='a' />
14354 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"group":"a"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[a 1]</a></span>
14355 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"group":"b"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[b 1]</a></span></p>
14357 <ol about="#mwt6" class="references" data-mw='{"name":"references","attrs":{"group":"a"}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
14361 References: 3. ref list should be cleared after processing references
14373 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
14375 <ol about="#mwt4" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
14377 <p>B <span about="#mwt6" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
14379 <ol about="#mwt8" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> bar</li></ol>
14383 References: 4. only referenced group should be cleared after processing references
14387 A <ref group="a">afoo</ref>
14390 <references group="a"/>
14396 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"afoo"},"attrs":{"group":"a"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[a 1]</a></span>
14397 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bfoo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>bfoo</ref>","dsr":[30,45,5,6]}'><a href="#cite_note-1">[1]</a></span></p>
14399 <ol about="#mwt6" class="references" data-mw='{"name":"references","attrs":{"group":"a"}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> afoo</li></ol>
14401 <p>C <span about="#mwt8" class="reference" data-mw='{"name":"ref","body":{"html":"cfoo"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span></p>
14403 <ol about="#mwt10" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> bfoo</li><li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2-0">↑</a></span> cfoo</li></ol>
14407 References: 5. ref tags in references should be processed while ignoring all other content
14412 B <ref name="b">bar</ref>
14415 <ref name="a">foo</ref>
14416 This should just get lost.
14419 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"a"}}' id="cite_ref-a-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span>
14420 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"name":"b"}}' id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span></p>
14422 <ol about="#mwt7" class="references" data-mw='{"name":"references","body":{"extsrc":"<ref name=\"a\">foo</ref>\nThis should just get lost."},"attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-a-1" id="cite_note-a-1"><span rel="mw:referencedBy"><a href="#cite_ref-a-1-0">↑</a></span> foo</li><li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy"><a href="#cite_ref-b-2-0">↑</a></span> bar</li></ol>
14425 #### ----------------------------------------------------------------
14426 #### The following section of tests are primarily to test
14427 #### wikitext escaping capabilities of Parsoid. Given that
14428 #### escaping can be done any number of ways, the wikitext (input)
14429 #### is always adjusted to reflect how Parsoid adds nowiki
14432 #### We are marking several tests as parsoid-only since the
14433 #### HTML in the result section is different from what the
14434 #### PHP parser generates for it.
14435 #### ----------------------------------------------------------------
14438 #### --------------- Headings ---------------
14440 #### 1. Nested inside html <h1>=foo=</h1>
14441 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
14442 #### 3. Nested inside html with wikitext split by html tags
14443 #### 4. No escape needed
14444 #### 5. Empty headings <h1></h1>
14445 #### 6. Heading chars in SOL context
14446 #### ----------------------------------------
14448 Headings: 0. Unnested
14452 <nowiki>=foo=</nowiki>
14454 <nowiki> =foo= </nowiki>
14456 <nowiki>=foo=</nowiki>
14458 =foo''a''<nowiki>=</nowiki>
14460 <p><span typeof="mw:Nowiki">=foo=</span></p>
14462 <p><span typeof="mw:Nowiki"> =foo= </span>
14464 <span typeof="mw:Nowiki">=foo=</span></p>
14466 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
14470 Headings: 1. Nested inside html
14474 =<nowiki>=foo=</nowiki>=
14476 ==<nowiki>=foo=</nowiki>==
14478 ===<nowiki>=foo=</nowiki>===
14480 ====<nowiki>=foo=</nowiki>====
14482 =====<nowiki>=foo=</nowiki>=====
14484 ======<nowiki>=foo=</nowiki>======
14486 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
14487 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
14488 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
14489 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
14490 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
14491 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
14495 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
14500 <nowiki>*bar</nowiki>
14506 <nowiki>=bar=</nowiki>
14514 Headings: 3. Nested inside html with wikitext split by html tags
14518 =='''bold'''<nowiki>foo=</nowiki>=
14520 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
14524 Headings: 4a. No escaping needed (testing just h1 and h2)
14542 =<nowiki>=</nowiki>=
14550 <h1><i>=</i>foo=</h1>
14551 <h1><span typeof="mw:Nowiki">=</span></h1>
14555 Headings: 4b. No escaping needed (inside p-tags)
14570 Headings: 5. Empty headings
14582 =====<nowiki/>=====
14584 ======<nowiki/>======
14595 Headings: 6a. Heading chars in SOL context (with trailing spaces)
14607 Headings: 6b. Heading chars in SOL context (with trailing newlines)
14635 Headings: 6c. Heading chars in SOL context (leading newline break)
14647 Headings: 6d. Heading chars in SOL context (with interspersed comments)
14651 <!--c0--><nowiki>=a=</nowiki>
14653 <nowiki>=a= </nowiki><!--c2--> <!--c3-->
14655 <p><!--c0-->=a=</p>
14656 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
14660 Headings: 6d. Heading chars in SOL context (No escaping needed)
14669 #### --------------- Lists ---------------
14670 #### 0. Outside nests (*foo, etc.)
14671 #### 1. Nested inside html <ul><li>*foo</li></ul>
14672 #### 2. Inside definition lists
14673 #### 3. Only bullets at start should be escaped
14674 #### 4. No escapes needed
14675 #### 5. No unnecessary escapes
14676 #### 6. Escape bullets in SOL position
14677 #### 7. Escape bullets in a multi-line context
14678 #### ----------------------------------------
14681 Lists: 0. Outside nests
14683 <nowiki>*foo</nowiki>
14685 <nowiki>#foo</nowiki>
14693 Lists: 1. Nested inside html
14695 *<nowiki>*foo</nowiki>
14697 *<nowiki>#foo</nowiki>
14699 *<nowiki>:foo</nowiki>
14701 *<nowiki>;foo</nowiki>
14703 #<nowiki>*foo</nowiki>
14705 #<nowiki>#foo</nowiki>
14707 #<nowiki>:foo</nowiki>
14709 #<nowiki>;foo</nowiki>
14731 Lists: 2. Inside definition lists
14733 ;<nowiki>;foo</nowiki>
14735 ;<nowiki>:foo</nowiki>
14737 ;<nowiki>:foo</nowiki>
14740 :<nowiki>:foo</nowiki>
14755 Lists: 3. Only bullets at start of text should be escaped
14757 *<nowiki>*foo*bar</nowiki>
14759 *<nowiki>*foo</nowiki>''it''*bar
14763 <ul><li>*foo<i>it</i>*bar
14769 Lists: 4. No escapes needed
14781 <ul><li><i>foo</i>*bar
14783 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
14788 Lists: 5. No unnecessary escapes
14790 * bar <span><nowiki>[[foo]]</nowiki></span>
14792 *=bar <span><nowiki>[[foo]]</nowiki></span>
14794 *[[bar <span><nowiki>[[foo]]</nowiki></span>
14796 *]]bar <span><nowiki>[[foo]]</nowiki></span>
14798 *=bar <span>foo]]</span>=
14802 <ul><li> bar <span>[[foo]]</span>
14804 <ul><li>=bar <span>[[foo]]</span>
14806 <ul><li>[[bar <span>[[foo]]</span>
14808 <ul><li>]]bar <span>[[foo]]</span>
14810 <ul><li>=bar <span>foo]]</span>=
14812 <ul><li> <s></s>: a
14818 Lists: 6. Escape bullets in SOL position
14822 <!--cmt--><nowiki>*foo</nowiki>
14824 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
14828 Lists: 7. Escape bullets in a multi-line context
14838 #### --------------- HRs ---------------
14839 #### 1. Single line
14840 #### -----------------------------------
14843 HRs: 1. Single line
14847 ----<nowiki>----</nowiki>
14851 <hr><span typeof="mw:Nowiki">----</span>
14856 #### --------------- Tables ---------------
14857 #### 1a. Simple example
14858 #### 1b. No escaping needed (!foo)
14859 #### 1c. No escaping needed (|foo)
14860 #### 1d. No escaping needed (|}foo)
14862 #### 2a. Nested in td (<td>foo|bar</td>)
14863 #### 2b. Nested in td (<td>foo||bar</td>)
14864 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
14866 #### 3a. Nested in th (<th>foo!bar</th>)
14867 #### 3b. Nested in th (<th>foo!!bar</th>)
14868 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
14872 #### 4c. No escaping needed
14873 #### --------------------------------------
14876 Tables: 1a. Simple example
14887 Tables: 1b. No escaping needed
14896 Tables: 1c. No escaping needed
14905 Tables: 1d. No escaping needed
14914 Tables: 2a. Nested in td
14919 |<nowiki>foo|bar</nowiki>
14923 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
14927 Tables: 2b. Nested in td
14932 |<nowiki>foo||bar</nowiki>
14933 |''it''<nowiki>foo||bar</nowiki>
14937 <td><span typeof="mw:Nowiki">foo||bar</span></td>
14938 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
14942 Tables: 2c. Nested in td -- no escaping needed
14950 <table><tbody><tr><td>foo!!bar
14951 </td></tr></tbody></table>
14956 Tables: 3a. Nested in th
14964 <table><tbody><tr><th>foo!bar
14965 </th></tr></tbody></table>
14970 Tables: 3b. Nested in th
14975 !<nowiki>foo!!bar</nowiki>
14979 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
14984 Tables: 3c. Nested in th -- no escaping needed
14989 !<nowiki>foo||bar</nowiki>
14993 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
14997 Tables: 4a. Escape -
15005 |<nowiki>-bar</nowiki>
15009 <tr><th>-bar</th></tr>
15011 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
15015 Tables: 4b. Escape +
15023 |<nowiki>+bar</nowiki>
15027 <tr><th>+bar</th></tr>
15029 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
15033 Tables: 4c. No escaping needed
15047 <tr><td>foo-bar</td><td>foo+bar</td></tr>
15048 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
15052 ### SSS FIXME: Disabled right now because accurate html2wt
15053 ### on this snippet requires data-parsoid flags that we've
15054 ### stripped out of these tests. We should scheme how we
15055 ### we want to handle these kind of tests that require
15056 ### data-parsoid flags for accurate html2wt serialization
15059 Tables: 4d. No escaping needed
15077 #### --------------- Links ----------------
15078 #### 1. Quote marks in link text
15079 #### 2. Wikilinks: Escapes needed
15080 #### 3. Wikilinks: No escapes needed
15081 #### 4. Extlinks: Escapes needed
15082 #### 5. Extlinks: No escapes needed
15083 #### --------------------------------------
15085 Links 1. Quote marks in link text
15089 [[Foo|<nowiki>Foo''boo''</nowiki>]]
15091 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
15095 Links 2. WikiLinks: Escapes needed
15099 [[Foo|<nowiki>[Foobar]</nowiki>]]
15100 [[Foo|<nowiki>Foobar]</nowiki>]]
15101 [[Foo|x [Foobar] x]]
15102 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
15103 [[Foo|<nowiki>[[Bar]]</nowiki>]]
15104 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
15105 [[Foo|<nowiki>|Bar</nowiki>]]
15106 [[Foo|<nowiki>]]bar</nowiki>]]
15107 [[Foo|<nowiki>[[bar</nowiki>]]
15108 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
15110 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
15111 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
15112 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
15113 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
15114 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
15115 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
15116 <a href="Foo" rel="mw:WikiLink">|Bar</a>
15117 <a href="Foo" rel="mw:WikiLink">]]bar</a>
15118 <a href="Foo" rel="mw:WikiLink">[[bar</a>
15119 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
15123 Links 3. WikiLinks: No escapes needed
15130 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
15131 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
15135 Links 4. ExtLinks: Escapes needed
15139 [http://google.com <nowiki>[google]</nowiki>]
15140 [http://google.com <nowiki>google]</nowiki>]
15142 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
15143 <a href="http://google.com" rel="mw:ExtLink">google]</a>
15147 Links 5. ExtLinks: No escapes needed
15151 [http://google.com [google]
15153 <a href="http://google.com" rel="mw:ExtLink">[google</a>
15156 #### --------------- Quotes ---------------
15157 #### 1. Quotes inside <b> and <i>
15158 #### 2. Link fragments separated by <i> and <b> tags
15159 #### 3. Link fragments inside <i> and <b>
15160 #### --------------------------------------
15162 1. Quotes inside <b> and <i>
15164 ''<nowiki>'foo'</nowiki>''
15165 ''<nowiki>''foo''</nowiki>''
15166 ''<nowiki>'''foo'''</nowiki>''
15167 '''<nowiki>'foo'</nowiki>'''
15168 '''<nowiki>''foo''</nowiki>'''
15169 '''<nowiki>'''foo'''</nowiki>'''
15170 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
15178 <b>foo'<i>bar'</i>baz</b>
15183 2. Link fragments separated by <i> and <b> tags
15185 [[''foo''<nowiki>hello]]</nowiki>
15187 [['''foo'''<nowiki>hello]]</nowiki>
15189 <p>[[<i>foo</i>hello]]
15190 </p><p>[[<b>foo</b>hello]]
15195 2. Link fragments inside <i> and <b>
15196 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
15197 this is one of the shortcomings of this format)
15199 ''[[foo''<nowiki>]]</nowiki>
15201 '''[[foo'''<nowiki>]]</nowiki>
15204 </p><p><b>[[foo</b>]]
15208 #### ----------- Paragraphs ---------------
15209 #### 1. No unnecessary escapes
15210 #### --------------------------------------
15213 1. No unnecessary escapes
15215 bar <span><nowiki>[[foo]]</nowiki></span>
15217 =bar <span><nowiki>[[foo]]</nowiki></span>
15219 [[bar <span><nowiki>[[foo]]</nowiki></span>
15221 ]]bar <span><nowiki>[[foo]]</nowiki></span>
15223 =bar <span>foo]]</span><nowiki>=</nowiki>
15225 <p>bar <span>[[foo]]</span>
15226 </p><p>=bar <span>[[foo]]</span>
15227 </p><p>[[bar <span>[[foo]]</span>
15228 </p><p>]]bar <span>[[foo]]</span>
15229 </p><p>=bar <span>foo]]</span>=
15233 #### ----------------------- PRE --------------------------
15234 #### 1. Leading whitespace in SOL context should be escaped
15235 #### ------------------------------------------------------
15237 1. Leading whitespace in SOL context should be escaped
15241 <nowiki> a</nowiki>
15243 <nowiki> a</nowiki>
15245 <nowiki> a(tab)</nowiki>
15247 <nowiki> a</nowiki>
15249 <nowiki> a</nowiki>
15264 <p><!--cmt--> a</p>
15273 #### --------------- HTML tags ---------------
15276 #### 3. multi-line html tag
15277 #### -----------------------------------------
15283 <a href="http://google.com">google</a>
15285 <a href="http://google.com">google</a>
15291 <nowiki><div>foo</div>
15292 <div style="color:red">foo</div></nowiki>
15294 <p><div>foo</div>
15295 <div style="color:red">foo</div>
15300 3. multi-line html tag
15312 #### --------------- Others ---------------
15316 <nowiki>foo</nowiki>
15318 <p><nowiki>foo</nowiki>
15323 Tag-like HTML structures are passed through as text
15345 </p><p>1<d e>f
15350 # This fails in the PHP parser (see bug 40670,
15351 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
15353 Tag names followed by punctuation should not be recognized as tags
15359 <p><s.ome> text
15364 HTML tag with necessary entities in attributes
15366 <span title="&amp;">foo</span>
15368 <p><span title="&amp;">foo</span>
15373 HTML tag with 'unnecessary' entity encoding in attributes
15375 <span title="&">foo</span>
15377 <p><span title="&">foo</span>
15382 HTML tag with broken attribute value quoting
15384 <span title="Hello world>Foo</span>
15386 <p><span>Foo</span>
15391 Parsoid-only: HTML tag with broken attribute value quoting
15395 <span title="Hello world>Foo</span>
15397 <p><span title="Hello world">Foo</span>
15402 Table with broken attribute value quoting
15405 | title="Hello world|Foo
15416 Table with broken attribute value quoting on consecutive lines
15419 | title="Hello world|Foo
15420 | style="color:red|Bar
15433 Parsoid-only: Table with broken attribute value quoting on consecutive lines
15438 | title="Hello world|Foo
15439 | style="color:red|Bar
15444 <td title="Hello world">Foo
15445 </td><td style="color: red">Bar
15446 </td></tr></tbody></table>
15451 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
15461 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
15471 Accept empty td cell attribute
15474 | align="center" | foo || |
15479 <td align="center"> foo </td>
15486 Non-empty attributes in th-cells
15489 ! Foo !! style="color: red" | Bar
15495 <th style="color: red"> Bar
15501 Accept empty attributes in th-cells
15516 Empty table rows go away
15537 ### Parsoid-centric tests for testing RTing of inter-element separators
15538 ### Edge cases not tested by existing parser tests and specific to
15539 ### Parsoid-specific serialization strategies.
15543 RT-ed inter-element separators should be valid separators
15556 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
15557 (Parsoid-only since PHP parser relies on Tidy for correct output)
15573 Empty TD followed by TD with tpl-generated attribute
15578 |{{echo|style='color:red'}}|foo
15592 Indented table with an empty td
15611 Empty TR followed by a template-generated TR
15612 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
15614 parsoid=wt2html,wt2wt
15618 {{echo|<tr><td>foo</td></tr>}}
15624 <tr typeof="mw:Transclusion">
15625 <td>foo</td></tr></tbody></table>
15628 ## PHP and parsoid output differ for this, and since this is primarily
15629 ## for testing Parsoid's serializer, marking this Parsoid only
15631 Empty TR followed by mixed-ws-comment line should RT correctly
15645 <td> <!--c--></td></tr>
15647 <td><!--c--> <!--d--></td></tr>
15653 Multi-line image caption generated by templates with/without trailing newlines
15657 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
15658 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
15660 <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>
15661 <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>
15665 ## PHP emits broken html for this, and since this is primarily
15666 ## a Parsoid serializer test, marking this Parsoid only
15668 Improperly nested inline or quotes tags with whitespace in between
15672 <span> <s>x</span> </s>
15675 <p><span> <s>x</s></span><s> </s>
15676 <b> <i>x</i></b><i> </i>
15686 Try for 100% code coverage