1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # parsoid parsoid-only test (not run by PHP parser)
25 # php php-only test (not run by the parsoid parser)
26 # showtitle make the first line the title
27 # comment run through Linker::formatComment() instead of main parser
28 # local format section links in edit comment text as local links
30 # For testing purposes, temporary articles can created:
31 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
32 # where '/' denotes a newline.
34 # This is the standard article assumed to exist.
59 MediaWiki:bad image list
61 * [[File:Bad.jpg]] except [[Nasty page]]
95 Template:echo_with_span
101 Template:echo_with_div
113 Template:table_attribs
116 |</noinclude>style="color: red"| Foo
138 This is a simple paragraph.
140 <p>This is a simple paragraph.
145 Paragraphs with extra newline spacing
168 Paragraphs with newline spacing with comment lines in between
176 <!--foo--><!--More than 1 comment disables stripping of this line!-->
233 Paragraphs with newline spacing with non-empty white-space lines in between
260 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
268 <!--foo--><!--More than 1 comment disables stripping of this line!-->
309 http://fr.wikipedia.org/wiki/🍺
310 <!-- EasterEgg we love beer, better be able be able to link to it -->
312 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
332 * plain''italic''plain
333 * plain''italic''plain''italic''plain
334 * plain'''bold'''plain
335 * plain'''bold'''plain'''bold'''plain
336 * plain''italic''plain'''bold'''plain
337 * plain'''bold'''plain''italic''plain
338 * plain''italic'''bold-italic'''italic''plain
339 * plain'''bold''bold-italic''bold'''plain
340 * plain'''''bold-italic'''italic''plain
341 * plain'''''bold-italic''bold'''plain
342 * plain''italic'''bold-italic'''''plain
343 * plain'''bold''bold-italic'''''plain
344 * plain l'''italic''plain
345 * plain l''''bold''' plain
348 </li><li> plain<i>italic</i>plain
349 </li><li> plain<i>italic</i>plain<i>italic</i>plain
350 </li><li> plain<b>bold</b>plain
351 </li><li> plain<b>bold</b>plain<b>bold</b>plain
352 </li><li> plain<i>italic</i>plain<b>bold</b>plain
353 </li><li> plain<b>bold</b>plain<i>italic</i>plain
354 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
355 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
356 </li><li> plain<i><b>bold-italic</b>italic</i>plain
357 </li><li> plain<b><i>bold-italic</i>bold</b>plain
358 </li><li> plain<i>italic<b>bold-italic</b></i>plain
359 </li><li> plain<b>bold<i>bold-italic</i></b>plain
360 </li><li> plain l'<i>italic</i>plain
361 </li><li> plain l'<b>bold</b> plain
366 # this example taken from the simple/Moon article
368 Italics and possessives
370 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
372 <p>obtained by <i><a href="/index.php?title=Lunar_Prospector&action=edit&redlink=1" class="new" title="Lunar Prospector (page does not exist)">Lunar Prospector</a>'</i>s gamma-ray spectrometer
377 ### 2-quote opening sequence tests
380 Italics and bold: 2-quote opening sequence: (2,2)
390 Italics and bold: 2-quote opening sequence: (2,3)
400 Italics and bold: 2-quote opening sequence: (2,4)
410 Italics and bold: 2-quote opening sequence: (2,5) (php)
419 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
421 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
433 ### 3-quote opening sequence tests
437 Italics and bold: 3-quote opening sequence: (3,2)
447 Italics and bold: 3-quote opening sequence: (3,3)
457 Italics and bold: 3-quote opening sequence: (3,4)
467 Italics and bold: 3-quote opening sequence: (3,5) (php)
476 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
478 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
490 ### 4-quote opening sequence tests
494 Italics and bold: 4-quote opening sequence: (4,2)
504 Italics and bold: 4-quote opening sequence: (4,3)
514 Italics and bold: 4-quote opening sequence: (4,4)
524 Italics and bold: 4-quote opening sequence: (4,5) (php)
533 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
535 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
541 <p>'<b>foo<i></i></b>
547 ### 5-quote opening sequence tests
551 Italics and bold: 5-quote opening sequence: (5,2) (php)
560 # Parsoid reverses the nesting order, compared to the PHP parser
562 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
574 Italics and bold: 5-quote opening sequence: (5,3)
584 Italics and bold: 5-quote opening sequence: (5,4)
588 <p><i><b>foo'</b></i>
594 Italics and bold: 5-quote opening sequence: (5,5)
603 ### multiple quote sequences in a line
606 Italics and bold: multiple quote sequences: (2,4,2)
610 <p><i>foo'<b>bar</b></i>
616 Italics and bold: multiple quote sequences: (2,4,3)
620 <p><i>foo'<b>bar</b></i>
626 Italics and bold: multiple quote sequences: (2,4,4)
630 <p><i>foo'<b>bar'</b></i>
636 Italics and bold: multiple quote sequences: (3,4,2) (php)
645 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
647 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
653 <p><b>foo'</b>bar<i></i>
659 Italics and bold: multiple quote sequences: (3,4,3) (php)
668 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
670 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
676 <p><b>foo'</b>bar<b></b>
681 ### other quote tests
684 Italics and bold: other quote tests: (2,3,5)
686 ''this is about '''foo's family'''''
688 <p><i>this is about <b>foo's family</b></i>
694 Italics and bold: other quote tests: (2,(3,3),2)
696 ''this is about '''foo's''' family''
698 <p><i>this is about <b>foo's</b> family</i>
704 Italics and bold: other quote tests: (3,2,3,2)
706 '''this is about ''foo'''s family''
708 <p><b>this is about <i>foo</i></b><i>s family</i>
713 # The Parsoid team believes the PHP parser's output on this test is wrong.
714 # It only checks for convert-to-bold-on-single-character-word when the word
715 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
716 # This means that the bold token in position 2 (0-indexed) gets converted by
717 # parsoid, but doesn't get changed by the PHP parser.
719 Italics and bold: other quote tests: (3,2,3,3) (php)
723 '''this is about ''foo'''s family'''
725 <p>'<i>this is about </i>foo<b>s family</b>
728 # This is the output the Parsoid team believes to be correct.
730 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
734 '''this is about ''foo'''s family'''
736 <p><b>this is about <i>foo'</i>s family</b>
742 Italics and bold: other quote tests: (3,(2,2),3)
744 '''this is about ''foo's'' family'''
746 <p><b>this is about <i>foo's</i> family</b>
752 Italicized possessive
754 The ''[[Main Page]]'''s talk page.
756 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
765 Non-html5 tags should be accepted
767 <center>''foo''</center>
770 <strike>''foo''</strike>
773 <center><i>foo</i></center>
774 <p><big><i>foo</i></big>
775 <font><i>foo</i></font>
776 <strike><i>foo</i></strike>
782 ### <nowiki> test cases
786 <nowiki> unordered list
788 <nowiki>* This is not an unordered list item.</nowiki>
790 <p>* This is not an unordered list item.
797 <nowiki>Lorem ipsum dolor
818 :There is not nowiki.
819 :There is <nowiki>nowiki</nowiki>.
821 #There is not nowiki.
822 #There is <nowiki>nowiki</nowiki>.
824 *There is not nowiki.
825 *There is <nowiki>nowiki</nowiki>.
827 <dl><dd>There is not nowiki.
828 </dd><dd>There is nowiki.
830 <ol><li>There is not nowiki.
831 </li><li>There is nowiki.
833 <ul><li>There is not nowiki.
834 </li><li>There is nowiki.
840 Entities inside <nowiki>
842 <nowiki><</nowiki>
853 Comments and Indent-Pre
855 <!-- comment 1 --> asdf
857 <!-- comment 1 --> asdf
860 <!-- comment 1 --> asdf
861 <!-- comment 2 -->xyz
863 <!-- comment 1 --> asdf
864 <!-- comment 2 --> xyz
920 asdf<!-- comment 1 -->jkl
930 <!-- foo --> b <!-- bar -->
944 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
950 Comment semantics and delimiters
952 <!-- --><!----><!-----><!------>
958 Comment semantics and delimiters, redux
960 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
961 -- foo -- funky huh? ... -->
967 Comment semantics and delimiters: directors cut
969 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
970 everything starting with < followed by !-- until the first -- and > we see,
971 that wouldn't be valid XML however, since in XML -- has to terminate a comment
979 Comment semantics: nesting
981 <!--<!-- no, we're not going to do anything fancy here -->-->
988 Comment semantics: unclosed comment at end
990 <!--This comment will run out to the end of the document
996 Comment in template title
1005 Comment on its own line post-expand
1017 Comment on its own line post-expand with non-significant whitespace
1029 ### paragraph wraping tests
1043 Block tag on one line
1055 Block tag on both lines
1067 Multiple lines without block tags
1085 Empty lines between lines with block tags
1115 ### Preformatted text
1124 And a [[Main Page|link]]
1130 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1135 Ident preformatting with inline content
1146 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1163 Regression with preformatted in <center>
1176 # Expected output in the following test is not really expected (there should be
1177 # <pre> in the output) -- it's only testing for well-formedness.
1179 Bug 6200: Preformatted in <blockquote>
1192 <pre> with attributes (bug 3202)
1194 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1196 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1201 <pre> with width attribute (bug 3202)
1203 <pre width="8">Narrow screen goodies</pre>
1205 <pre width="8">Narrow screen goodies</pre>
1210 <pre> with forbidden attribute (bug 3202)
1212 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1214 <pre width="8">Narrow screen goodies</pre>
1219 Entities inside <pre>
1228 <pre> with forbidden attribute values (bug 3202)
1230 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1232 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1237 <nowiki> inside <pre> (bug 13238)
1245 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1253 <pre><nowiki>Foo</nowiki></pre>
1258 <nowiki> and <pre> preference (first one wins)
1289 </pre> inside nowiki
1291 <nowiki></pre></nowiki>
1298 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1306 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1316 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1328 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1349 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1353 {{echo| foo}}{{echo| bar}}
1358 {{echo|<!--cmt--> foo}}
1360 <!--cmt-->{{echo| foo}}
1362 {{echo|{{echo| }}bar}}
1380 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1417 Templates: Single-line variant of parameter whitespace stripping test
1423 {{echo|{{echo| a}}}}
1425 {{echo|1={{echo| a}}}}
1438 Templates: Strip whitespace from named parameters, but not positional ones
1466 ### Parsoid-centric tests for testing RT edge cases for pre
1470 1a. Indent-Pre and Comments
1483 1b. Indent-Pre and Comments
1496 1c. Indent-Pre and Comments
1509 2a. Indent-Pre and tables
1530 2b. Indent-Pre and tables
1546 2c. Indent-Pre and tables (bug 42252)
1563 3a. Indent-Pre and block tags (single-line html)
1571 <pre><span> foo </span>
1576 3b. Indent-Pre and block tags (pre-content on separate line)
1628 4. Multiple spaces at start-of-line
1647 5. White-space in indent-pre
1648 NOTE: the white-space char on 2nd line is significant
1661 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1665 HTML-pre: 1. embedded newlines
1701 HTML-pre: 2: indented text
1714 HTML-pre: 3: other wikitext
1735 ### Definition lists
1742 <dl><dt> name </dt><dd> Definition
1748 Definition list for indentation only
1752 <dl><dd> Indented text
1758 Definition list with no space
1762 <dl><dt>name</dt><dd>Definition
1768 Definition list with URL link
1770 ; http://example.com/ : definition
1772 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1778 Definition list with bracketed URL link
1780 ;[http://www.example.com/ Example]:Something about it
1782 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1788 Definition list with wikilink containing colon
1790 ; [[Help:FAQ]]: The least-read page on Wikipedia
1792 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
1797 # At Brion's and JeLuF's insistence... :)
1799 Definition list with news link containing colon
1801 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1803 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
1809 Malformed definition list with colon
1811 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1813 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
1819 Definition lists: colon in external link text
1821 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1823 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
1829 Definition lists: colon in HTML attribute
1831 ;<b style="display: inline">bold</b>
1833 <dl><dt><b style="display: inline">bold</b>
1839 Definition lists: self-closed tag
1841 ;one<br/>two : two-line fun
1843 <dl><dt>one<br />two </dt><dd> two-line fun
1849 Bug 11748: Literal closing tags
1853 <dd>test test test test test</dd>
1855 <dd>test test test test test</dd>
1860 <dd>test test test test test</dd>
1862 <dd>test test test test test</dd>
1868 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1871 ; term : description
1877 <dl><dt> term </dt><dd> description
1888 Definition list with empty definition and following paragraph
1893 <dl><dt> term</dt><dd>
1900 Nested definition lists using html syntax
1917 Definition Lists: No nesting: Multiple dd's
1931 Definition Lists: Indentation: Regular
1947 Definition Lists: Indentation: Missing 1st level
1961 Definition Lists: Indentation: Multi-level indent
1965 <dl><dd><dl><dd><dl><dd>i3
1973 Definition Lists: Hacky use to indent tables
1980 should be left alone
1982 <dl><dd><dl><dd><table>
1987 </td></tr></table></dd></dl></dd></dl>
1989 should be left alone
1992 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1993 ## as an empty dt item. It also ignores all but the last ";" when followed
1994 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1995 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1998 ## Ex: ";;t2 ::d2" is transformed into:
2010 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2011 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2022 ## All Parsoid only definition list tests have this difference.
2024 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2025 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2028 Table / list interaction: indented table with lists in table contents
2050 </td></tr></table></dd></dl>
2055 Table / list interaction: lists nested in tables nested in indented lists
2080 </td></tr></table></dd></dl>
2088 Definition Lists: Nesting: Multi-level (Parsoid only)
2118 Definition Lists: Nesting: Test 2 (Parsoid only)
2138 Definition Lists: Nesting: Test 3 (Parsoid only)
2166 Definition Lists: Nesting: Test 4
2171 <dl><dd><dl><dd><dl><dt>t3
2180 ## The Parsoid team believes the following three test exposes a
2181 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2182 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2184 Definition Lists: Mixed Lists: Test 1 (php)
2192 <dl><dd><dl><dt><ul><li> foo
2202 Definition Lists: Mixed Lists: Test 1 (parsoid)
2210 <dl><dd><dl><dt><ul><li> foo
2211 </li></ul></dt><dd><ul><li> bar
2212 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2216 Definition Lists: Mixed Lists: Test 2
2230 Definition Lists: Mixed Lists: Test 3
2235 <ul><li><dl><dd><dl><dd><dl><dd> d1
2246 Definition Lists: Mixed Lists: Test 4
2251 <ul><li><dl><dt>d1 </dt><dd>d2
2252 </dd><dt>d3 </dt><dd>d4
2260 Definition Lists: Mixed Lists: Test 5
2275 Definition Lists: Mixed Lists: Test 6
2280 <ol><li><ul><li><dl><dd>d1
2292 Definition Lists: Mixed Lists: Test 7
2306 Definition Lists: Mixed Lists: Test 8
2322 Definition Lists: Mixed Lists: Test 9
2326 <ul><li><dl><dt>foo </dt><dd>bar
2334 Definition Lists: Mixed Lists: Test 10
2338 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2345 # The Parsoid team disagrees with the PHP parser's seemingly-random
2346 # rules regarding dd/dt on the next two tests. Parsoid is more
2347 # consistent, and recognizes the shared nesting and keeps the
2348 # still-open tags around until the nesting is complete.
2351 Definition Lists: Mixed Lists: Test 11 (php)
2358 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2363 <dl><dt>boo </dt><dd>baz
2372 Definition Lists: Mixed Lists: Test 11 (parsoid)
2394 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2395 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2396 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2397 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2402 Definition Lists: Weird Ones: Test 1 (php)
2406 *#;*::;; foo : bar (who uses this?)
2408 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2420 Definition Lists: Weird Ones: Test 1 (parsoid)
2424 *#;*::;; foo : bar (who uses this?)
2441 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2442 <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>
2449 External links: non-bracketed
2451 Non-bracketed: http://example.com
2453 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2458 External links: numbered
2460 Numbered: [http://example.com]
2461 Numbered: [http://example.net]
2462 Numbered: [http://example.com]
2464 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2465 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2466 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2471 External links: specified text
2473 Specified text: [http://example.com link]
2475 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2480 External links: trail
2482 Linktrails should not work for external links: [http://example.com link]s
2484 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2489 External links: dollar sign in URL
2491 http://example.com/1$2345
2493 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2498 External links: dollar sign in URL (named)
2500 [http://example.com/1$2345]
2502 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2507 External links: open square bracket forbidden in URL (bug 4377)
2509 http://example.com/1[2345
2511 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2516 External links: open square bracket forbidden in URL (named) (bug 4377)
2518 [http://example.com/1[2345]
2520 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2525 External links: nowiki in URL link text (bug 6230)
2527 [http://example.com/ <nowiki>''example site''</nowiki>]
2529 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2534 External links: newline forbidden in text (bug 6230 regression check)
2536 [http://example.com/ first
2539 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2545 External links: Pipe char between url and text
2547 [http://example.com | link]
2549 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2554 External links: protocol-relative URL in brackets
2556 [//example.com/ Test]
2558 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2563 External links: protocol-relative URL in brackets without text
2567 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2572 External links: protocol-relative URL in free text is left alone
2576 <p>//example.com/Foo
2581 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2583 foo//example.com/Foo
2585 <p>foo//example.com/Foo
2592 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2594 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2599 External image from https
2601 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2603 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2608 Link to non-http image, no img tag
2610 Link to non-http image, no img tag: ftp://example.com/test.jpg
2612 <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>
2617 External links: terminating separator
2619 Terminating separator: http://example.com/thing,
2621 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2626 External links: intervening separator
2628 Intervening separator: http://example.com/1,2,3
2630 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2635 External links: old bug with URL in query
2637 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2639 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2644 External links: old URL-in-URL bug, mixed protocols
2646 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2648 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2653 External links: URL in text
2655 URL in text: [http://example.com http://example.com]
2657 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2662 External links: Clickable images
2664 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2666 <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>
2671 External links: raw ampersand
2673 Old & use: http://x&y
2675 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2680 External links: encoded ampersand
2682 Old & use: http://x&y
2684 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2689 External links: encoded equals (bug 6102)
2691 http://example.com/?foo=bar
2693 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2698 External links: [raw ampersand]
2700 Old & use: [http://x&y]
2702 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2707 External links: [encoded ampersand]
2709 Old & use: [http://x&y]
2711 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2716 External links: [encoded equals] (bug 6102)
2718 [http://example.com/?foo=bar]
2720 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2725 External links: [IDN ignored character reference in hostname; strip it right off]
2727 [http://e‌xample.com/]
2729 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2733 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2734 # Where an external link could easily circumvent the sanitization of the text of
2735 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2736 # test demands a higher standard. That's a bit strange.
2740 # http://example.com -> [http://example.com|http://example.com]
2741 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2743 # The first example is sanitized, but the second is not. Any security benefits
2744 # from this production are trivial to circumvent. Either remove this test and
2745 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2746 # the test accordingly.
2751 External links: IDN ignored character reference in hostname; strip it right off
2753 http://e‌xample.com/
2755 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2760 External links: www.jpeg.org (bug 554)
2764 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2769 External links: URL within URL (original bug 2)
2771 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2773 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2778 BUG 361: URL inside bracketed URL
2780 [http://www.example.com/foo http://www.example.com/bar]
2782 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2787 BUG 361: URL within URL, not bracketed
2789 http://www.example.com/foo?=http://www.example.com/bar
2791 <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>
2796 BUG 289: ">"-token in URL-tail
2798 http://www.example.com/<hello>
2800 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2805 BUG 289: literal ">"-token in URL-tail
2807 http://www.example.com/<b>html</b>
2809 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2814 BUG 289: ">"-token in bracketed URL
2816 [http://www.example.com/<hello> stuff]
2818 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2823 BUG 289: literal ">"-token in bracketed URL
2825 [http://www.example.com/<b>html</b> stuff]
2827 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2832 BUG 289: literal double quote at end of URL
2834 http://www.example.com/"hello"
2836 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2841 BUG 289: literal double quote in bracketed URL
2843 [http://www.example.com/"hello" stuff]
2845 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2850 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2852 [http://www.example.com test]
2854 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2859 External links: link text with spaces
2861 [http://www.example.com a b c]
2862 [http://www.example.com ''a'' ''b'']
2864 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
2865 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
2870 External links: wiki links within external link (Bug 3695)
2872 [http://example.com [[wikilink]] embedded in ext link]
2874 <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>
2879 BUG 787: Links with one slash after the url protocol are invalid
2883 [http:/example.com title]
2885 <p>http:/example.com
2886 </p><p>[http:/example.com title]
2891 Bracketed external links with template-generated invalid target
2893 [{{echo|http:/example.com}} title]
2895 <p>[http:/example.com title]
2900 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2902 ''[http://example.com text'']
2903 [http://example.com '''text]'''
2904 ''Something [http://example.com in italic'']
2905 ''Something [http://example.com mixed''''', even bold]'''
2906 '''''Now [http://example.com both''''']
2908 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2909 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2910 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2911 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2912 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2918 Bug 4781: %26 in URL
2920 http://www.example.com/?title=AT%26T
2922 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2926 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2927 # % is actually legal in HTML5. Any change in output would need testing though.
2929 Bug 4781, 5267: %25 in URL
2931 http://www.example.com/?title=100%25_Bran
2933 <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>
2938 Bug 4781, 5267: %28, %29 in URL
2940 http://www.example.com/?title=Ben-Hur_%281959_film%29
2942 <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>
2948 Bug 4781: %26 in autonumber URL
2950 [http://www.example.com/?title=AT%26T]
2952 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2957 Bug 4781, 5267: %26 in autonumber URL
2959 [http://www.example.com/?title=100%25_Bran]
2961 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2966 Bug 4781, 5267: %28, %29 in autonumber URL
2968 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2970 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2976 Bug 4781: %26 in bracketed URL
2978 [http://www.example.com/?title=AT%26T link]
2980 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2985 Bug 4781, 5267: %26 in bracketed URL
2987 [http://www.example.com/?title=100%25_Bran link]
2989 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2994 Bug 4781, 5267: %28, %29 in bracketed URL
2996 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2998 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3003 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3005 Some [http://example.com/ pretty ''italics'' and stuff]!
3007 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3012 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3014 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3016 <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>
3021 External link containing double-single-quotes with no space separating the url from text in italics
3023 [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]].]
3025 <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>
3030 URL-encoding in URL functions (single parameter)
3032 {{localurl:Some page|amp=&}}
3034 <p>/index.php?title=Some_page&amp=&
3039 URL-encoding in URL functions (multiple parameters)
3041 {{localurl:Some page|q=?&=&}}
3043 <p>/index.php?title=Some_page&q=?&amp=&
3050 http://example.com/index.php?foozoid%5B%5D=bar
3052 http://example.com/index.php?foozoid[]=bar
3054 <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>
3055 </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>
3060 IPv6 urls (bug 21261)
3064 http://[2404:130:0:1000::187:2]/index.php
3066 <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>
3071 Non-extlinks in brackets
3080 [{{echo|foo}} ''bar'']
3081 [{{echo|foo}}l's] errand
3082 [{{echo|foo}}l's errand]
3084 [url=http://example.com]
3097 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3108 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3110 Normal text. '''''Bold italic text.''''' Normal text.
3112 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3113 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3119 Unclosed and unmatched quotes (php)
3123 '''''Bold italic text '''with bold deactivated''' in between.'''''
3125 '''''Bold italic text ''with italic deactivated'' in between.'''''
3129 ..spanning two paragraphs (should not work).'''
3131 '''Bold tag left open
3133 ''Italic tag left open
3137 <!-- Unmatching number of opening, closing tags: -->
3138 '''This year''''s election ''should'' beat '''last year''''s.
3140 ''Tom'''s car is bigger than ''Susan'''s.
3142 Plain ''italic'''s plain
3144 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3145 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3146 </p><p><b>Bold text..</b>
3147 </p><p>..spanning two paragraphs (should not work).
3148 </p><p><b>Bold tag left open</b>
3149 </p><p><i>Italic tag left open</i>
3151 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3152 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3153 </p><p>Plain <i>italic'</i>s plain
3156 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3157 # parser strips. The wikitext contains just the first half of the bold
3158 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3159 # differently than the PHP parser.)
3161 Unclosed and unmatched quotes (parsoid)
3165 '''''Bold italic text '''with bold deactivated''' in between.'''''
3167 '''''Bold italic text ''with italic deactivated'' in between.'''''
3171 ..spanning two paragraphs (should not work).'''
3173 '''Bold tag left open
3175 ''Italic tag left open
3179 <!-- Unmatching number of opening, closing tags: -->
3180 '''This year''''s election ''should'' beat '''last year''''s.
3182 ''Tom'''s car is bigger than ''Susan'''s.
3184 Plain ''italic'''s plain
3186 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3187 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3188 </p><p><b>Bold text..</b>
3189 </p><p>..spanning two paragraphs (should not work).<b></b>
3190 </p><p><b>Bold tag left open</b>
3191 </p><p><i>Italic tag left open</i>
3193 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3194 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3195 </p><p>Plain <i>italic'</i>s plain
3202 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3205 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3206 # is the bare minimun required by the spec, see:
3207 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3209 A table with no data. (php)
3216 # Parsoid team replies: empty table tags are legal in HTML5
3218 A table with no data. (parsoid)
3227 # A table with nothing but a caption is invalid XHTML, we might want to render
3228 # this as <p>caption</p>
3230 A table with nothing but a caption (php)
3240 </caption><tr><td></td></tr></table>
3243 # Parsoid team replies: table with only a caption is legal in HTML5
3245 A table with nothing but a caption (parsoid)
3253 <table><caption> caption</caption></table>
3257 A table with caption with default-spaced attributes and a table row
3260 |+ style="color: red;" | caption1
3266 <caption style="color: red;"> caption1
3275 A table with captions with non-default spaced attributes and a table row
3278 |+style="color: red;"|caption2
3279 |+ style="color: red;"| caption3
3285 <caption style="color: red;">caption2
3287 <caption style="color: red;"> caption3
3296 Table td-cell syntax variations
3300 | foo bar foo || baz
3301 | style='color:red;' | baz
3302 | style='color:red;' || baz
3309 <td> foo bar foo </td>
3312 <td style="color:red;"> baz
3314 <td> style='color:red;' </td>
3342 Simple table but with multiple dashes for row wikitext
3360 Multiplication table
3362 {| border="1" cellpadding="2"
3363 |+Multiplication table
3365 ! × !! 1 !! 2 !! 3
3383 <table border="1" cellpadding="2">
3384 <caption>Multiplication table
3431 Accept "||" in table headings
3446 Accept "||" in indented table headings
3456 </th></tr></table></dd></dl>
3461 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3478 Accept "| !" at start of line in tables (ignore !-attribute)
3482 | !style="color:red" | bar
3494 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 +/-
3498 |style='color:red;'|+1
3499 |style='color:blue;'|-1
3511 <td style="color:red;">+1
3513 <td style="color:blue;">-1
3537 |rowspan=2| Cell 2, row 1 (and 2)
3548 <td rowspan="2"> Cell 2, row 1 (and 2)
3566 {| bgcolor=#ABCDEF border=2
3571 |the original table again
3579 <table bgcolor="#ABCDEF" border="2">
3587 <td>the original table again
3593 Invalid attributes in table cell (bug 1830)
3608 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3611 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3615 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3616 <td>]" onmouseover="alert(document.cookie)">test
3625 Indented table markup mixed with indented pre content (proposed in bug 6200)
3630 Text that should be rendered preformatted
3638 <pre>Text that should be rendered preformatted
3647 Template-generated table cell attributes and cell content
3655 <td style="color: red"> Foo
3661 Table with row followed by newlines and table heading
3679 Table with empty line following the start tag
3696 # FIXME: Preserve the attribute properly (with an empty string as value) in
3697 # the PHP parser. Parsoid implements the behavior below.
3699 Table attributes with empty value
3711 </td></tr></tbody></table>
3716 Wikitext table with a lot of comments
3739 Wikitext table with double-line table cell
3756 Table cell with a single comment
3772 # The expected HTML structure in this test is debatable. The PHP parser does
3773 # not parse this kind of table at all. The main focus for Parsoid is on
3774 # round-tripping, so this output is ok for now. TODO: revisit!
3776 Wikitext table with html-syntax row (Parsoid)
3788 <td>foo</td></tr></tbody></table>
3795 Plain link, capitalized
3799 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3804 Plain link, uncapitalized
3808 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3815 [[Main Page|The Main Page]]
3817 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3826 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3831 Broken link with fragment
3833 [[Zigzagzogzagzig#zug]]
3835 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3840 Special page link with fragment
3842 [[Special:Version#anchor]]
3844 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3849 Nonexistent special page link with fragment
3851 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3853 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3860 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3862 <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>
3869 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3871 <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>!!!
3882 Bug 43661: Piped links with identical prefixes
3884 [[prefixed article|prefixed articles with spaces]]
3886 [[prefixed article|prefixed articlesaoeu]]
3888 [[Main Page|Main Page test]]
3890 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3891 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3892 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3898 Link with HTML entity in suffix / tail
3900 [[Main Page]]", [[Main Page]]a
3902 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3907 Link with 3 brackets
3916 Piped link with 3 brackets
3918 [[[main page|the main page]]]
3920 <p>[[[main page|the main page]]]
3925 Link with multiple pipes
3927 [[Main Page|The|Main|Page]]
3929 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3936 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3938 <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>
3943 Piped link to namespace
3945 [[Meta:Disclaimers|The disclaimers]]
3947 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3954 [[Usually caused by a typo (oops}]]
3956 <p>[[Usually caused by a typo (oops}]]
3961 Link containing % (not as a hex sequence)
3965 <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>
3970 Link containing % as a single hex sequence interpreted to char
3974 <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>
3979 Link containing % as a double hex sequence interpreted to hex sequence
3983 <p>[[7%2525 Solution]]
3988 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3989 Example for such a section: == < ==
3991 [[%23%3c]][[%23%3e]]
3993 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3998 Link containing "<#" and ">#" as a hex sequences
4000 [[%3c%23]][[%3e%23]]
4002 <p>[[%3c%23]][[%3e%23]]
4007 Link containing an equals sign
4009 [[Special:BookSources/isbn=4-00-026157-6]]
4011 <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>
4018 Just a test of an article title containing a tilde.
4021 # note that links containing signatures, like [[Foo~~~~]], are
4022 # massaged by the pre-save transform (PST) and so the tildes are never
4023 # seen by the parser.
4025 Link containing a tilde
4029 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4034 Link containing double-single-quotes '' (bug 4598)
4036 [[Lista d''e paise d''o munno]]
4038 <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>
4043 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4045 Some [[Link|pretty ''italics'' and stuff]]!
4047 <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>!
4052 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4054 ''Some [[Link|pretty ''italics'' and stuff]]!
4056 <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>
4061 Link with double quotes in title part (literal) and alternate part (interpreted)
4063 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4067 [[''Pentecoste''|Pentecoste]]
4069 [[''Pentecoste''|''Pentecoste'']]
4071 <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>
4072 </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>
4073 </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>
4074 </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>
4079 Broken image links with HTML captions (bug 39700)
4081 [[File:Nonexistent|<script></script>]]
4082 [[File:Nonexistent|100px|<script></script>]]
4083 [[File:Nonexistent|<]]
4084 [[File:Nonexistent|a<i>b</i>c]]
4086 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4087 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4088 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4089 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4096 [[http://www.example.com]]
4098 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4103 Plain link to URL with link text
4105 [[http://www.example.com Link text]]
4107 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4112 Plain link to protocol-relative URL
4114 [[//www.example.com]]
4116 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4121 Plain link to protocol-relative URL with link text
4123 [[//www.example.com Link text]]
4125 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4130 Plain link to page with question mark in title
4136 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4137 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4142 # I'm fairly sure the expected result here is wrong.
4143 # We want these to be URL links, not pseudo-pages with URLs for titles....
4144 # However the current output is also pretty screwy.
4147 # I'm changing it to match the current output--it arguably makes more
4148 # sense in the light of the test above. Old expected result was:
4149 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4151 # But I think this test is bordering on "garbage in, garbage out" anyway.
4156 Piped link to URL: [[http://www.example.com|an example URL]]
4158 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4163 BUG 2: [[page|http://url/]] should link to page, not http://url/
4165 [[Main Page|http://url/]]
4167 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4172 BUG 337: Escaped self-links should be bold
4176 [[Bug462]] [[Bug462]]
4178 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4183 Self-link to section should not be bold
4187 [[Main Page#section]]
4189 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4200 Self-link to numeric title
4206 <p><strong class="selflink">0</strong>
4211 Link to numeric-equivalent title
4217 <p><a href="/wiki/00" title="00">00</a>
4222 <nowiki> inside a link
4224 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4226 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4231 Non-breaking spaces in title
4233 [[ Main Page ]]
4235 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4240 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4246 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4251 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4257 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4262 Internal link with en linktrail: no apostrophes (bug 27473)
4268 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4273 Internal link with ca linktrail with apostrophes (bug 27473)
4279 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4284 Internal link with kaa linktrail with apostrophes (bug 27473)
4290 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4301 Internal link with is link prefix
4305 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4307 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4318 Internal link with is link trail and link prefix
4322 [[mótmælendatrú|xxx]]ar
4324 mótmælenda[[söfnuður]]
4325 mótmælenda[[söfnuður|söfnuðir]]
4326 mótmælenda[[söfnuður|söfnuðir]]xxx
4328 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4329 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4330 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4331 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4332 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4337 Parsoid link trail escaping
4339 parsoid=html2wt,html2html
4343 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4347 Parsoid link prefix escaping
4350 parsoid=html2wt,html2html
4352 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4354 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4358 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4366 [http://wp.org ''foo'']
4368 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4369 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4370 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4371 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4376 ### Interwiki links (see maintenance/interwiki.sql)
4380 Inline interwiki link
4382 [[MeatBall:SoftSecurity]]
4384 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4389 Inline interwiki link with empty title (bug 2372)
4393 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4398 Interwiki link encoding conversion (bug 1636)
4400 *[[Wikipedia:ro:Olteniţa]]
4401 *[[Wikipedia:ro:Olteniţa]]
4403 <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>
4404 </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>
4410 Interwiki link with fragment (bug 2130)
4412 [[MeatBall:SoftSecurity#foo]]
4414 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4429 Double interlanguage link
4440 Interlanguage link, with prefix links
4452 Double interlanguage link, with prefix links (bug 8897)
4465 Parsoid-specific test: Wikilinks with should RT properly
4471 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4489 Broken br tag sanitization
4498 Incorrecly removing closing slashes from correctly formed XHTML
4500 <br style="clear:both;" />
4502 <p><br style="clear:both;" />
4507 Failing to transform badly formed HTML into correct XHTML
4509 <br style="clear: left;">
4510 <br style="clear: right;">
4511 <br style="clear: both;">
4513 <p><br style="clear: left;" />
4514 <br style="clear: right;" />
4515 <br style="clear: both;" />
4520 Handling html with a div self-closing tag
4529 <p><div title />
4533 <p><div title=bar />
4534 <div title=bar/>
4536 <div title="bar/"></div>
4542 Handling html with a br self-closing tag
4551 <p><br title="title" />
4552 <br title="title" />
4561 Horizontal ruler (should it add that extra space?)
4575 Horizontal ruler -- 4+ dashes render hr
4584 Horizontal ruler -- eats additional dashes on the same line
4593 Horizontal ruler -- does not collapse dashes on consecutive lines
4604 Horizontal ruler -- <4 dashes render as plain text
4613 Horizontal ruler -- Supports content following dashes on same line
4622 ### Block-level elements
4645 <ol><li>Numbered list
4662 ***#Number on level 4
4664 **#Number on level 3
4665 **#Number on level 3
4669 #** Level 3, but ordered
4672 <ol><li> with numbers
4674 <ul><li> and bullets
4676 <ol><li> and numbers
4678 </li><li>bullets again
4679 <ul><li>bullet level 2
4680 <ul><li>bullet level 3
4681 <ol><li>Number on level 4
4684 </li><li>bullet level 2
4685 <ol><li>Number on level 3
4686 </li><li>Number on level 3
4689 <ol><li>number level 2
4692 <ul><li><ul><li> Level 3
4696 <ol><li><ul><li><ul><li> Level 3, but ordered
4730 Nested lists 3 (first element empty)
4743 Nested lists 4 (first element empty)
4756 Nested lists 5 (both elements empty)
4769 Nested lists 6 (both elements empty)
4782 Nested lists 7 (skip initial nesting levels)
4786 <ul><li><ul><li><ul><li> foo
4794 Nested lists 8 (multiple nesting transitions)
4802 <ul><li><ul><li> bar
4812 1. Lists with start-of-line-transparent tokens before bullets: Comments
4826 2. Lists with start-of-line-transparent tokens before bullets: Template close
4838 Unbalanced closing block tags break a list
4839 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
4849 </li></ul></div><div>
4855 Unbalanced closing non-block tags don't break a list
4856 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
4866 <ul><li>a<span></span>
4872 Unclosed formatting tags that straddle lists are closed and reopened
4873 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
4881 </li><li> <s> b </s>
4886 List embedded in a non-block tag
4887 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
4895 <p><small></small></p>
4901 <p><small></small></p>
4905 List items are not parsed correctly following a <pre> block (bug 785)
4911 <ul><li> <pre>foo</pre>
4912 </li><li> <pre>bar</pre>
4919 List items from template
4930 * notSOL{{inner list}}
4949 List interrupted by empty line or heading
4959 <ul><li><ul><li> bar
4962 <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>
4963 <ul><li> Another list item
4969 Multiple list tags generated by templates
4984 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
4987 <!--This line will NOT split the list-->
4989 <!--This line will NOT split the list either-->
4991 <!--foo--> <!--This line with more than 1 comment will split the list-->
5008 Magic Word: {{CURRENTDAY}}
5017 Magic Word: {{CURRENTDAY2}}
5026 Magic Word: {{CURRENTDAYNAME}}
5035 Magic Word: {{CURRENTDOW}}
5044 Magic Word: {{CURRENTMONTH}}
5053 Magic Word: {{CURRENTMONTHABBREV}}
5055 {{CURRENTMONTHABBREV}}
5062 Magic Word: {{CURRENTMONTHNAME}}
5064 {{CURRENTMONTHNAME}}
5071 Magic Word: {{CURRENTMONTHNAMEGEN}}
5073 {{CURRENTMONTHNAMEGEN}}
5080 Magic Word: {{CURRENTTIME}}
5089 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5098 Magic Word: {{CURRENTYEAR}}
5107 Magic Word: {{FULLPAGENAME}}
5109 title=[[User:Ævar Arnfjörð Bjarmason]]
5113 <p>User:Ævar Arnfjörð Bjarmason
5118 Magic Word: {{FULLPAGENAMEE}}
5120 title=[[User:Ævar Arnfjörð Bjarmason]]
5124 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5129 Magic Word: {{NAMESPACE}}
5131 title=[[User:Ævar Arnfjörð Bjarmason]]
5140 Magic Word: {{NAMESPACEE}}
5142 title=[[User:Ævar Arnfjörð Bjarmason]]
5151 Magic Word: {{NAMESPACENUMBER}}
5153 title=[[User:Ævar Arnfjörð Bjarmason]]
5162 Magic Word: {{NUMBEROFFILES}}
5171 Magic Word: {{PAGENAME}}
5173 title=[[User:Ævar Arnfjörð Bjarmason]]
5177 <p>Ævar Arnfjörð Bjarmason
5182 Magic Word: {{PAGENAME}} with metacharacters
5184 title=[['foo & bar = baz']]
5188 <p><i>'foo & bar = baz'</i>
5193 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5195 title=[[*RFC 1234 http://example.com/]]
5199 <p>*RFC 1234 http://example.com/
5204 Magic Word: {{PAGENAMEE}}
5206 title=[[User:Ævar Arnfjörð Bjarmason]]
5210 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5215 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5217 title=[[*RFC 1234 http://example.com/]]
5221 <p>*RFC_1234_http://example.com/
5226 Magic Word: {{REVISIONID}}
5235 Magic Word: {{SCRIPTPATH}}
5244 Magic Word: {{SERVER}}
5248 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5253 Magic Word: {{SERVERNAME}}
5262 Magic Word: {{SITENAME}}
5271 Case-sensitive magic words, when cased differently, should just be template transclusions
5278 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5279 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5280 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5281 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5286 Case-insensitive magic words should still work with weird casing.
5296 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5301 Namespace 1 {{ns:1}}
5310 Namespace 1 {{ns:01}}
5319 Namespace 0 {{ns:0}} (bug 4783)
5327 Namespace 0 {{ns:00}} (bug 4783)
5335 Namespace -1 {{ns:-1}}
5344 Namespace User {{ns:User}}
5353 Namespace User talk {{ns:User_talk}}
5362 Namespace User talk {{ns:uSeR tAlK}}
5371 Namespace File {{ns:File}}
5380 Namespace File {{ns:Image}}
5389 Namespace (lang=de) Benutzer {{ns:User}}
5400 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5406 <p>Benutzer Diskussion
5414 {{urlencode:hi world?!}}
5415 {{urlencode:hi world?!|WIKI}}
5416 {{urlencode:hi world?!|PATH}}
5417 {{urlencode:hi world?!|QUERY}}
5430 Magic links: internal link to RFC (bug 479)
5434 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5439 Magic links: RFC (bug 479)
5443 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5448 Magic links: ISBN (bug 1937)
5452 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5457 Magic links: PMID incorrectly converts space to underscore
5461 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5470 Nonexistent template
5472 {{thistemplatedoesnotexist}}
5474 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5479 Template with invalid target containing tags
5481 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5483 <p>{{a<b>b</b>|foo|a=b|a = b}}
5488 Template with invalid target containing unclosed tag
5490 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5492 <p>{{a<b>|foo|a=b|a = b}}</b>
5499 This is a test template
5507 <p>This is a test template
5512 Template with explicit namespace
5516 <p>This is a test template
5524 This is a test template with parameter {{{param}}}
5530 {{paramtest|param=foo}}
5532 <p>This is a test template with parameter foo
5537 Template:paramtestnum
5543 Template unnamed parameter
5545 {{paramtestnum|Main Page|the main page}}
5547 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5552 Template:templatesimple
5558 Template:templateredirect
5560 #redirect [[Template:templatesimple]]
5564 Template:templateasargtestnum
5570 Template:templateasargtest
5572 {{template{{{templ}}}}}
5576 Template:templateasargtest2
5582 Template with template name as unnamed argument
5584 {{templateasargtestnum|templatesimple}}
5591 Template with template name as argument
5593 {{templateasargtest|templ=simple}}
5600 Template with template name as argument (2)
5602 {{templateasargtest2|templ=templatesimple}}
5609 Template:templateasargtestdefault
5611 {{{{{templ|templatesimple}}}}}
5621 Template with default value
5623 {{templateasargtestdefault}}
5630 Template with default value (value set)
5632 {{templateasargtestdefault|templ=templa}}
5641 {{templateredirect}}
5648 Template with argument in separate line
5650 {{ templateasargtest |
5658 Template with complex template as argument
5661 param ={{ templateasargtest |
5664 <p>This is a test template with parameter (test)
5669 Template with thumb image (with link in description)
5672 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
5674 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>
5679 Template:complextemplate
5681 {{{1}}} {{paramtest|
5682 param ={{{param}}}}}
5686 Template with complex arguments
5689 param ={{ templateasargtest |
5690 templ = simple }}|[[Template:complextemplate|link]]}}
5692 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5697 BUG 553: link with two variables in a piped link
5700 |[[{{{1}}}|{{{2}}}]]
5705 <td>[[{{{1}}}|{{{2}}}]]
5711 Magic variable as template parameter
5713 {{paramtest|param={{SITENAME}}}}
5715 <p>This is a test template with parameter MediaWiki
5722 [[{{{param}}}|link]]
5726 Template parameter as link source
5728 {{linktest|param=Main Page}}
5730 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5735 Template-generated attribute string (k='v')
5737 <span {{attr_str|id|v1}}>bar</span>
5739 <p><span id="v1">bar</span>
5746 including another template, {{paramtest|param={{{arg}}}}}
5750 Template passing argument to another template
5752 {{paramtest2|arg='hmm'}}
5754 <p>including another template, This is a test template with parameter 'hmm'
5765 Template as link source
5769 [[{{linktest2}}|Main Page]]
5771 [[{{linktest2}}]]Page
5773 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5774 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5775 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5793 Template infinite loop
5797 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5802 Template from main namespace
5821 BUG 529: Template with table, not included at beginning of line
5840 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5860 BUG 41: Template parameters shown as broken links
5869 Template with targets containing wikilinks
5873 {{[[{{echo|foo}}]]}}
5875 {{{{echo|[[foo}}]]}}
5877 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5878 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5886 ''None'' of '''this''' should be
5888 but rather passed unmodified
5892 # hmm, fix this or just deprecate msgnw and document its behavior?
5898 {{msgnw:MSGNW test}}
5900 <p>''None'' of '''this''' should be
5902 but rather passed unmodified
5910 {{int:youhavenewmessages|lots of money|not!}}
5912 <p>You have lots of money (not!).
5919 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5923 <includeonly> and <noinclude> being included
5934 <onlyinclude>Foo</onlyinclude>bar
5938 <onlyinclude> being included
5950 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5954 <onlyinclude> and <includeonly> being included
5963 <includeonly> and <noinclude> on a page
5965 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5972 Un-closed <noinclude>
5979 <onlyinclude> on a page
5981 <onlyinclude>Foo</onlyinclude>bar
5988 Un-closed <onlyinclude>
5995 Self-closed noinclude, includeonly, onlyinclude tags
6006 Unbalanced includeonly and noinclude tags
6010 |b</noinclude></noinclude>
6011 |c</noinclude></includeonly>
6012 |d</includeonly></includeonly>
6021 <td>c</includeonly>
6023 <td>d</includeonly></includeonly>
6029 Template:Includeonly section
6032 ==Includeonly section==
6038 Bug 6563: Edit link generation for section shown by <includeonly>
6040 {{includeonly section}}
6042 <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>
6043 <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>
6047 # Uses same input as the contents of [[Template:Includeonly section]]
6049 Bug 6563: Section extraction for section shown by <includeonly>
6054 ==Includeonly section==
6062 Bug 6563: Edit link generation for section suppressed by <includeonly>
6065 ==Includeonly section==
6069 <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>
6074 Bug 6563: Section extraction for section suppressed by <includeonly>
6079 ==Includeonly section==
6087 Un-closed <includeonly>
6094 ### <includeonly> and <noinclude> in attributes
6097 0. includeonly around the entire attribute
6099 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6101 <p><span id="v2">bar</span>
6106 1. includeonly in html attr key
6108 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6110 <p><span id="foo">bar</span>
6115 2. includeonly in html attr value
6117 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6118 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6120 <p><span id="v1">bar</span>
6121 <span id="v1">bar</span>
6126 3. includeonly in part of an attr value
6128 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6130 <p><span style="color:red;">bar</span>
6135 ### Testing parsing of templates where a template arg
6136 ### has the same name as the template itself.
6146 Templates: Template Name/Arg clash: 1. Use of positional param
6155 Templates: Template Name/Arg clash: 2. Use of named param
6164 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6173 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6177 Templates: 1. Simple use
6186 Templates: 2. Inside a block tag
6188 <div>{{echo|Foo}}</div>
6195 Templates: P-wrapping: 1a. Templates on consecutive lines
6206 Templates: P-wrapping: 1b. Templates on consecutive lines
6220 Templates: P-wrapping: 1c. Templates on consecutive lines
6223 {{echo|bar}} <div>baz</div>
6232 Templates: P-wrapping: 1d. Template preceded by comment-only line
6234 parsoid=wt2html,wt2wt
6240 <p typeof="mw:Object/Template">Bar
6245 Templates: Inline Text: 1. Multiple tmeplate uses
6247 {{echo|Foo}}bar{{echo|baz}}
6254 Templates: Inline Text: 2. Back-to-back template uses
6256 {{echo|Foo}}{{echo|bar}}
6263 Templates: Block Tags: 1. Multiple template uses
6265 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6267 <div>Foo</div><div>bar</div><div>baz</div>
6272 Templates: Block Tags: 2. Back-to-back template uses
6274 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6276 <div>Foo</div><div>bar</div>
6281 Templates: Links: 1. Simple example
6283 {{echo|[[Foo|bar]]}}
6285 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6290 Templates: Links: 2. Generation of link href
6292 [[{{echo|Foo}}|bar]]
6294 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6299 Templates: Links: 3. Generation of part of a link href
6301 [[Fo{{echo|o}}|bar]]
6305 [[Foo{{echo|bar}}baz]]
6307 [[Foo{{echo|bar}}|bar]]
6309 [[:Foo{{echo|bar}}]]
6311 [[:Foo{{echo|bar}}|bar]]
6313 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6314 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6315 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6316 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6317 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6318 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6323 Templates: Links: 4. Multiple templates generating link href
6325 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6327 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6332 Templates: Links: 5. Generation of link text
6334 [[Foo|{{echo|bar}}]]
6336 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6341 Templates: Links: 5. Nested templates (only outermost template should be marked)
6343 {{echo|[[{{echo|Foo}}|bar]]}}
6345 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6350 Templates: HTML Tag: 1. Generation of HTML attr. key
6352 <div {{echo|style}}="color:red;">foo</div>
6354 <div style="color:red;">foo</div>
6359 Templates: HTML Tag: 2. Generation of HTML attr. value
6361 <div style={{echo|'color:red;'}}>foo</div>
6363 <div style="color:red;">foo</div>
6368 Templates: HTML Tag: 3. Generation of HTML attr key and value
6370 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6372 <div style="color:red;">foo</div>
6377 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6379 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6381 <div title="This is a long title with just one piece templated">foo</div>
6386 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6388 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6390 <div title="This is a long title with just one piece templated">foo</div>
6395 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6397 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6399 <div title="This is a long title with just one piece templated">foo</div>
6404 Templates: HTML Tag: 7. Generation of partial attribute key string
6406 <div st{{echo|yle}}="color:red;">foo</div>
6408 <div style="color:red;">foo</div>
6413 Templates: HTML Tables: 1. Generating start of a HTML table
6415 {{echo|<table><tr><td>foo</td>}}</tr></table>
6417 <table><tr><td>foo</td></tr></table>
6422 Templates: HTML Tables: 2a. Generating middle of a HTML table
6424 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6426 <table><tr><td>foo</td></tr></table>
6431 Templates: HTML Tables: 2b. Generating middle of a HTML table
6433 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6435 <table><tr><td>foo</td></tr></table>
6440 Templates: HTML Tables: 3. Generating end of a HTML table
6442 <table><tr>{{echo|<td>foo</td></tr></table>}}
6444 <table><tr><td>foo</td></tr></table>
6449 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6451 {{echo|<table>}}<tr><td>foo</td></tr></table>
6453 <table><tr><td>foo</td></tr></table>
6458 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6460 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6462 <table><tr><td>foo</td></tr></table>
6467 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6469 <table><tr>{{echo|<td>}}foo</td></tr></table>
6471 <table><tr><td>foo</td></tr></table>
6476 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6478 <table><tr><td>foo{{echo|</td>}}</tr></table>
6480 <table><tr><td>foo</td></tr></table>
6485 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6487 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6489 <table><tr><td>foo</td></tr></table>
6494 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6496 <table><tr><td>foo</td></tr>{{echo|</table>}}
6498 <table><tr><td>foo</td></tr></table>
6503 Templates: Wiki Tables: 1a. Fostering of entire template content
6511 <tr><td></td></tr></table>
6516 Templates: Wiki Tables: 1b. Fostering of entire template content
6529 <tr><td></td></tr></table>
6534 Templates: Wiki Tables: 2. Fostering of partial template content
6544 <tr><td></td></tr></table>
6549 Templates: Wiki Tables: 3. td-content via multiple templates
6552 {{echo|{{pipe}}a}}{{echo|b}}
6563 Templates: Wiki Tables: 4. Templated tags, no content
6569 <tr><td></td></tr></table>
6574 Templates: Wiki Tables: 5. Templated tags, regular td-tags
6588 Templates: Wiki Tables: 6. Templated tags, templated td-tags
6602 Templates: Lists: Multi-line list-items via templates
6604 *{{echo|a {{nonexistent|
6606 *{{echo|b {{nonexistent|
6609 <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>
6610 </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>
6616 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
6618 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
6620 <p><i>ab</i>c<i>d</i>e
6625 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
6626 (PHP parser generates misnested html)
6628 parsoid=wt2html,wt2wt
6630 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
6632 <p><span typeof="mw:Object/Template"><i>a</i></span><i typeof="mw:Object/Template"><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
6636 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
6637 (PHP parser generates misnested html)
6639 parsoid=wt2html,wt2wt
6641 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
6643 <div typeof="mw:Object/Template"><i>a</i></div>
6644 <div typeof="mw:Object/Template"><i>b</i>c<i>d</i></div>
6645 <div typeof="mw:Object/Template">e</div>
6649 Templates: Ugly nesting: 4. Divs opened/closed across templates
6651 a<div>b{{echo|c</div>d}}e
6658 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
6664 |{{echo|foo</table>}}
6668 <table typeof="mw:Object/Template">
6671 <td>foo</td></tr></tbody></table><span>bar</span>
6675 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
6685 <td>1. {{echo|foo </table>}}</td>
6687 <td>2. {{echo|baz </table>}}</td>
6700 <table about="#mwt1" typeof="mw:Object/Template">
6705 <td >1. foo </td></tr></tbody></table></td>
6707 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
6708 </span><span about="#mwt1">
6710 abc</span><span about="#mwt1">
6711 </span><span about="#mwt1">
6712 </span><span about="#mwt1">
6713 </span><span about="#mwt1">
6714 </span><span about="#mwt1">
6716 xyz</span><span about="#mwt1">
6717 </span><span about="#mwt1">
6722 Templates: Ugly templates: 3. newline-only template parameter
6731 # This looks like a bug: a single newline triggers p/br for some reason.
6733 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6744 Parser Functions: 1. Simple example
6753 Parser Functions: 2. Nested use (only outermost should be marked up)
6762 ### Pre-save transform tests
6765 pre-save transform: subst:
6771 This is a test template
6775 pre-save transform: normal template
6785 pre-save transform: nonexistent template
6789 {{thistemplatedoesnotexist}}
6791 {{thistemplatedoesnotexist}}
6796 pre-save transform: subst magic variables
6805 # This is bug 89, which I fixed. -- wtm
6807 pre-save transform: subst: templates with parameters
6811 {{subst:paramtest|param="something else"}}
6813 This is a test template with parameter "something else"
6819 <nowiki>'''not wiki'''</nowiki>
6823 pre-save transform: nowiki in subst (bug 1188)
6827 {{subst:nowikitest}}
6829 <nowiki>'''not wiki'''</nowiki>
6834 Template:commenttest
6836 This template has <!-- a comment --> in it.
6840 pre-save transform: comment in subst (bug 1936)
6844 {{subst:commenttest}}
6846 This template has <!-- a comment --> in it.
6850 pre-save transform: unclosed tag
6854 <nowiki>'''not wiki'''
6856 <nowiki>'''not wiki'''
6860 pre-save transform: mixed tag case
6864 <NOwiki>'''not wiki'''</noWIKI>
6866 <NOwiki>'''not wiki'''</noWIKI>
6870 pre-save transform: unclosed comment in <nowiki>
6874 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6876 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6879 # Leading @ in this template definition works around a limitation
6880 # in parsoid's parserTests which otherwise strips the <span> from the
6881 # result (confusing it for a template wrapper)
6885 @<span onmouseover="alert('crap')">Oh no</span>
6889 (confirming safety of fix for subst bug 1936)
6891 {{Template:dangerous}}
6893 <p>@<span>Oh no</span>
6898 pre-save transform: comment containing gallery (bug 5024)
6902 <!-- <gallery>data</gallery> -->
6904 <!-- <gallery>data</gallery> -->
6908 pre-save transform: comment containing extension
6912 <!-- <tag>data</tag> -->
6914 <!-- <tag>data</tag> -->
6918 pre-save transform: comment containing nowiki
6922 <!-- <nowiki>data</nowiki> -->
6924 <!-- <nowiki>data</nowiki> -->
6928 pre-save transform: <noinclude> in subst (bug 3298)
6938 pre-save transform: <onlyinclude> in subst (bug 3298)
6950 {{<includeonly>subst:</includeonly>Includes}}
6954 Template:SafeSubstTest
6956 {{<includeonly>safesubst:</includeonly>Includes}}
6960 bug 22297: safesubst: works during PST
6964 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6970 bug 22297: safesubst: works during normal parse
6979 subst: does not work during normal parse
6983 <p>{{subst:Includes}}
6988 pre-save transform: context links ("pipe trick")
6992 [[Article (context)|]]
6995 [[Bar:Article (context)|]]
6996 [[:Bar:Article (context)|]]
6998 [[|Article (context)]]
7002 [[Article (context)|Article]]
7003 [[Bar:Article|Article]]
7004 [[:Bar:Article|Article]]
7005 [[Bar:Article (context)|Article]]
7006 [[:Bar:Article (context)|Article]]
7008 [[Article (context)]]
7009 [[Bar:X (Y) Z|X (Y) Z]]
7010 [[:Bar:X (Y) Z|X (Y) Z]]
7014 pre-save transform: context links ("pipe trick") with interwiki prefix
7018 [[interwiki:Article|]]
7019 [[:interwiki:Article|]]
7020 [[interwiki:Bar:Article|]]
7021 [[:interwiki:Bar:Article|]]
7023 [[interwiki:Article|Article]]
7024 [[:interwiki:Article|Article]]
7025 [[interwiki:Bar:Article|Bar:Article]]
7026 [[:interwiki:Bar:Article|Bar:Article]]
7030 pre-save transform: context links ("pipe trick") with parens in title
7032 pst title=[[Somearticle (context)]]
7036 [[Article (context)|Article]]
7040 pre-save transform: context links ("pipe trick") with comma in title
7042 pst title=[[Someplace, Somewhere]]
7045 [[Otherplace, Elsewhere|]]
7046 [[Otherplace, Elsewhere, Anywhere|]]
7048 [[Otherplace, Somewhere|Otherplace]]
7049 [[Otherplace, Elsewhere|Otherplace]]
7050 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7054 pre-save transform: context links ("pipe trick") with parens and comma
7056 pst title=[[Someplace (IGNORED), Somewhere]]
7059 [[Otherplace (place), Elsewhere|]]
7061 [[Otherplace, Somewhere|Otherplace]]
7062 [[Otherplace (place), Elsewhere|Otherplace]]
7066 pre-save transform: context links ("pipe trick") with comma and parens
7068 pst title=[[Who, me? (context)]]
7071 [[Me, Myself, and I (1937 song)|]]
7073 [[Yes, you. (context)|Yes, you.]]
7074 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7078 pre-save transform: context links ("pipe trick") with namespace
7080 pst title=[[Ns:Somearticle]]
7084 [[Ns:Article|Article]]
7088 pre-save transform: context links ("pipe trick") with namespace and parens
7090 pst title=[[Ns:Somearticle (context)]]
7094 [[Ns:Article (context)|Article]]
7098 pre-save transform: context links ("pipe trick") with namespace and comma
7100 pst title=[[Ns:Somearticle, Context, Whatever]]
7104 [[Ns:Article, Context, Whatever|Article]]
7108 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7110 pst title=[[Ns:Somearticle, Context (context)]]
7114 [[Ns:Article (context)|Article]]
7118 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7120 pst title=[[Ns:Somearticle (IGNORED), Context]]
7124 [[Ns:Article, Context|Article]]
7128 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7132 [[Article(context)|]]
7133 [[Bar:Article(context)|]]
7134 [[:Bar:Article(context)|]]
7135 [[|Article(context)]]
7139 [[Article(context)|Article]]
7140 [[Bar:Article(context)|Article]]
7141 [[:Bar:Article(context)|Article]]
7142 [[Article(context)]]
7144 [[:Bar:X(Y)Z|X(Y)Z]]
7148 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7152 [[Article (context)|]]
7153 [[Bar:Article (context)|]]
7154 [[:Bar:Article (context)|]]
7155 [[|Article (context)]]
7159 [[Article (context)|Article]]
7160 [[Bar:Article (context)|Article]]
7161 [[:Bar:Article (context)|Article]]
7162 [[Article (context)]]
7163 [[Bar:X (Y) Z|X (Y) Z]]
7164 [[:Bar:X (Y) Z|X (Y) Z]]
7168 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7172 [[Article(context)|]]
7173 [[Bar:Article(context)|]]
7174 [[:Bar:Article(context)|]]
7175 [[|Article(context)]]
7179 [[Article(context)|Article]]
7180 [[Bar:Article(context)|Article]]
7181 [[:Bar:Article(context)|Article]]
7182 [[Article(context)]]
7184 [[:Bar:X(Y)Z|X(Y)Z]]
7188 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7192 [[Article (context), context|]]
7193 [[Article (context),context|]]
7194 [[Bar:Article (context), context|]]
7195 [[Bar:Article (context),context|]]
7196 [[:Bar:Article (context), context|]]
7197 [[:Bar:Article (context),context|]]
7199 [[Article (context), context|Article]]
7200 [[Article (context),context|Article]]
7201 [[Bar:Article (context), context|Article]]
7202 [[Bar:Article (context),context|Article]]
7203 [[:Bar:Article (context), context|Article]]
7204 [[:Bar:Article (context),context|Article]]
7208 pre-save transform: trim trailing empty lines
7212 Empty lines are trimmed
7218 Empty lines are trimmed
7222 pre-save transform: Signature expansion
7227 * <noinclude>~~~</noinclude>
7228 * <includeonly>~~~</includeonly>
7229 * <onlyinclude>~~~</onlyinclude>
7231 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7232 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7233 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7234 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7239 pre-save transform: Signature expansion in nowiki tags (bug 93)
7245 <nowiki>~~~~</nowiki>
7247 <includeonly><nowiki>~~~~</nowiki></includeonly>
7249 <noinclude><nowiki>~~~~</nowiki></noinclude>
7251 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7253 {{subst:Foo}} shall be converted to FOO
7255 As well as inside noinclude/onlyinclude
7256 <noinclude>{{subst:Foo}}</noinclude>
7257 <onlyinclude>{{subst:Foo}}</onlyinclude>
7259 But not inside includeonly
7260 <includeonly>{{subst:Foo}}</includeonly>
7264 <nowiki>~~~~</nowiki>
7266 <includeonly><nowiki>~~~~</nowiki></includeonly>
7268 <noinclude><nowiki>~~~~</nowiki></noinclude>
7270 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7272 FOO shall be converted to FOO
7274 As well as inside noinclude/onlyinclude
7275 <noinclude>FOO</noinclude>
7276 <onlyinclude>FOO</onlyinclude>
7278 But not inside includeonly
7279 <includeonly>{{subst:Foo}}</includeonly>
7283 ### Message transform tests
7286 message transform: magic variables
7296 message transform: should not transform wiki markup
7306 message transform: <noinclude> in transcluded template (bug 4926)
7316 message transform: <onlyinclude> in transcluded template (bug 4926)
7326 {{#special:}} page name, known
7330 {{#special:Recentchanges}}
7332 Special:RecentChanges
7336 {{#special:}} page name with subpage, known
7340 {{#special:Recentchanges/param}}
7342 Special:RecentChanges/param
7346 {{#special:}} page name, unknown
7350 {{#special:foobarnonexistent}}
7352 No such special page
7356 {{#speciale:}} page name, known
7360 {{#speciale:Recentchanges}}
7362 Special:RecentChanges
7366 {{#speciale:}} page name with subpage, known
7370 {{#speciale:Recentchanges/param}}
7372 Special:RecentChanges/param
7376 {{#speciale:}} page name, unknown
7380 {{#speciale:foobarnonexistent}}
7382 No_such_special_page
7391 [[Image:foobar.jpg]]
7393 <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>
7400 [[Image:foobar.jpg|right]]
7402 <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>
7407 Simple image (using File: namespace, now canonical)
7411 <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>
7418 [[Image:foobar.jpg|right|Caption text]]
7420 <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>
7425 Image with empty attribute
7427 [[Image:foobar.jpg|right||Caption text]]
7429 <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>
7434 Image with link tails
7436 123[[Image:foobar.jpg]]456
7437 123[[Image:foobar.jpg|right]]456
7438 123[[Image:foobar.jpg|thumb]]456
7440 <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
7442 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
7443 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
7448 Image with multiple captions -- only last one is accepted
7450 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7452 <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>
7457 Image with width attribute at different positions
7459 [[Image:foobar.jpg|200px|right|Caption]]
7460 [[Image:foobar.jpg|right|200px|Caption]]
7461 [[Image:foobar.jpg|right|Caption|200px]]
7463 <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>
7464 <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>
7465 <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>
7470 Image with link parameter, wiki target
7472 [[Image:foobar.jpg|link=Target page]]
7474 <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>
7479 Image with link parameter, URL target
7481 [[Image:foobar.jpg|link=http://example.com/]]
7483 <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>
7488 Image with link parameter, wgExternalLinkTarget
7490 [[Image:foobar.jpg|link=http://example.com/]]
7492 wgExternalLinkTarget='foobar'
7494 <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>
7499 Image with link parameter, wgNoFollowLinks set to false
7501 [[Image:foobar.jpg|link=http://example.com/]]
7503 wgNoFollowLinks=false
7505 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7510 Image with link parameter, wgNoFollowDomainExceptions
7512 [[Image:foobar.jpg|link=http://example.com/]]
7514 wgNoFollowDomainExceptions='example.com'
7516 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7521 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7523 [[Image:foobar.jpg|link=http://example.com/|Title]]
7525 wgExternalLinkTarget='foobar'
7527 <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>
7532 Image with empty link parameter
7534 [[Image:foobar.jpg|link=]]
7536 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7541 Image with link parameter (wiki target) and unnamed parameter
7543 [[Image:foobar.jpg|link=Target page|Title]]
7545 <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>
7550 Image with link parameter (URL target) and unnamed parameter
7552 [[Image:foobar.jpg|link=http://example.com/|Title]]
7554 <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>
7559 Thumbnail image with link parameter
7563 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
7565 <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>
7570 Manually-specified thumbnail image
7574 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
7576 <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>
7581 Manually-specified thumbnail image with explicit link to wiki page
7585 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
7587 <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>
7592 Manually-specified thumbnail image with explicit link to url
7596 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
7598 <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>
7603 Manually-specified thumbnail image with explicit no link
7607 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
7609 <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>
7614 Manually-specified thumbnail image with explicit link and alt text
7618 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
7620 <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>
7625 Image with frame and link
7627 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
7629 <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>
7634 Image with frame and link and explicit alt
7636 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
7638 <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>
7643 Image with wiki markup in implicit alt
7645 [[Image:Foobar.jpg|testing '''bold''' in alt]]
7647 <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>
7652 Image with wiki markup in explicit alt
7654 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
7656 <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>
7661 Link to image page- image page normally doesn't exists, hence edit link
7662 Add test with existing image page
7663 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
7667 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
7672 bug 18784 Link to non-existent image page with caption should use caption as link text
7674 [[:Image:test|caption]]
7676 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
7681 Frameless image caption with a free URL
7683 [[Image:foobar.jpg|http://example.com]]
7685 <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>
7690 Thumbnail image caption with a free URL
7692 [[Image:foobar.jpg|thumb|http://example.com]]
7694 <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>
7699 Thumbnail image caption with a free URL and explicit alt
7701 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
7703 <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>
7708 BUG 1887: A ISBN with a thumbnail
7710 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
7712 <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>
7717 BUG 1887: A RFC with a thumbnail
7719 [[Image:foobar.jpg|thumb|This is RFC 12354]]
7721 <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>
7726 BUG 1887: A mailto link with a thumbnail
7728 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
7730 <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>
7734 # Pending resolution to bug 368
7736 BUG 648: Frameless image caption with a link
7738 [[Image:foobar.jpg|text with a [[link]] in it]]
7740 <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>
7745 BUG 648: Frameless image caption with a link (suffix)
7747 [[Image:foobar.jpg|text with a [[link]]foo in it]]
7749 <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>
7754 BUG 648: Frameless image caption with an interwiki link
7756 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
7758 <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>
7763 BUG 648: Frameless image caption with a piped interwiki link
7765 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7767 <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>
7772 Escape HTML special chars in image alt text
7774 [[Image:foobar.jpg|& < > "]]
7776 <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>
7781 BUG 499: Alt text should have Ӓ, not &1234;
7783 [[Image:foobar.jpg|♀]]
7785 <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>
7790 Broken image caption with link
7792 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7794 <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.
7799 Image caption containing another image
7801 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7803 <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>
7808 Image caption containing a newline
7810 [[Image:Foobar.jpg|This
7813 <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>
7818 Parsoid: Image caption containing leading space
7819 (The leading space should not trigger nowiki escaping in wt2wt mode)
7821 [[Image:Foobar.jpg|thumb| bar]]
7823 <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>
7828 Bug 3090: External links other than http: in image captions
7830 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7832 <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>
7839 [[Image:foobar.jpg|a|class=b]]
7841 <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>
7846 Localized image handling (1).
7850 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
7852 <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>
7857 Localized image handling (2).
7861 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
7863 <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>
7868 "border", "frameless" and "class" attributes on an image.
7870 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
7872 <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>
7879 #REDIRECT [[File:Barfoo.jpg]]
7885 [[Image:Barfoo.jpg]]
7887 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7892 Missing image with uploads disabled
7896 [[Image:Foobaz.jpg]]
7898 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7902 # Parsoid-specific testing for images
7903 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
7904 # Currently imperfect due to a flaw in the Parsoid testrunner
7908 Parsoid-specific image handling - simple image
7912 [[Image:Foobar.jpg]]
7915 <span class="mw-default-size" typeof="mw:Image">
7916 <a href="File:Foobar.jpg">
7917 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
7924 Parsoid-specific image handling - simple image without link
7928 [[Image:Foobar.jpg|link=]]
7931 <span class="mw-default-size" typeof="mw:Image">
7933 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
7940 Parsoid-specific image handling - simple image with specific link
7944 [[Image:Foobar.jpg|link=Main Page]]
7947 <span class="mw-default-size" typeof="mw:Image">
7948 <a href="Main_Page">
7949 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
7956 Parsoid-specific image handling - simple image with size and middle alignment
7960 [[Image:Foobar.jpg|50px|middle]]
7963 <span class="mw-valign-middle" typeof="mw:Image">
7964 <a href="File:Foobar.jpg">
7965 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
7972 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
7976 [[Image:Foobar.jpg|500x10px|baseline|caption]]
7979 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
7980 <a href="File:Foobar.jpg">
7981 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
7988 Parsoid-specific image handling - simple image with border and size spec
7992 [[Image:Foobar.jpg|50px|border|caption]]
7995 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
7996 <a href="File:Foobar.jpg">
7997 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8004 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8008 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8010 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8011 <a href="File:Foobar.jpg">
8012 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8014 <figcaption class="mw-figcaption">caption content</figcaption>
8019 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8023 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
8025 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
8026 <a href="File:Foobar.jpg">
8027 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
8029 <figcaption class="mw-figcaption">caption</figcaption>
8034 Parsoid-specific image handling - framed image with specific size and caption
8038 [[Image:Foobar.jpg|500x50px|frame|caption]]
8040 <figure typeof="mw:Image/Frame">
8041 <a href="File:Foobar.jpg">
8042 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8044 <figcaption class="mw-figcaption">caption</figcaption>
8049 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
8053 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
8055 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
8056 <a href="File:Foobar.jpg">
8057 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8059 <figcaption class="mw-figcaption">caption</figcaption>
8064 Parsoid-specific image handling - frameless image with specific size, border, and caption
8068 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
8071 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
8072 <a href="File:Foobar.jpg">
8073 <img resource="./File:Foobar.jpg" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8079 #Parsoid-specific image handling - simple image with a formatted caption
8083 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
8086 #<span typeof="mw:Image">
8087 #<a class="mw-default-size" href="Image:Foobar.jpg">
8088 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8099 Subpage test/subpage
8107 subpage title=[[Subpage test]]
8111 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
8116 Subpage noslash link
8118 subpage title=[[Subpage test]]
8122 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
8131 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
8136 BUG 561: {{/Subpage}}
8138 subpage title=[[Page]]
8142 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
8150 Category:MediaWiki User's Guide
8158 [[:Category:MediaWiki User's Guide]]
8160 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
8169 [[Category:MediaWiki User's Guide]]
8171 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8175 PAGESINCATEGORY invalid title fatal (r33546 fix)
8177 {{PAGESINCATEGORY:<bogus>}}
8184 Category with different sort key
8188 [[Category:MediaWiki User's Guide|Foo]]
8190 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8194 Category with identical sort key
8198 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8200 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8204 Category with empty sort key
8209 [[Category:MediaWiki User's Guide|]]
8211 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8215 Category with empty sort key and parentheses
8220 [[Category:Foo (bar)|]]
8222 [[Category:Foo (bar)|Foo]]
8226 Category with link tail
8231 123[[Category:Foo]]456
8233 123[[Category:Foo]]456
8237 Category with template
8242 [[Category:{{echo|Foo}}]]
8244 [[Category:{{echo|Foo}}]]
8248 Category with template in sort key
8253 [[Category:Foo|{{echo|Bar}}]]
8255 [[Category:Foo|{{echo|Bar}}]]
8259 Category with template in sort key and title
8264 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8266 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8270 Category / paragraph interactions
8272 Foo [[Category:Baz]] Bar
8274 Foo [[Category:Baz]]
8282 [[Category:Baz]] Bar
8295 {{echo|[[Category:Baz]]}}
8310 ### Inter-language links
8313 Inter-language links
8319 [[zh:食品]]
8321 es:Alimento fr:Nourriture zh:食品
8325 Duplicate interlanguage links (bug 24502)
8341 Basic section headings
8348 ===Smaller headline===
8351 <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>
8354 <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>
8357 <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>
8363 Section headings with TOC
8366 === Subheadline 1 ===
8367 ===== Skipping a level =====
8368 ====== Skipping a level ======
8372 ===Another headline===
8374 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8376 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8378 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8380 <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>
8382 <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>
8389 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8391 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8396 <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>
8397 <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>
8398 <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>
8399 <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>
8400 <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>
8403 <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>
8407 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8409 Handling of sections up to level 6 and beyond
8412 == Level 2 Heading==
8413 === Level 3 Heading===
8414 ==== Level 4 Heading====
8415 ===== Level 5 Heading=====
8416 ====== Level 6 Heading======
8417 ======= Level 7 Heading=======
8418 ======== Level 8 Heading========
8419 ========= Level 9 Heading=========
8420 ========== Level 10 Heading==========
8422 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8424 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8426 <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>
8428 <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>
8430 <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>
8432 <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>
8434 <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>
8435 <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>
8436 <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>
8437 <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>
8438 <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>
8451 <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>
8452 <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>
8453 <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>
8454 <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>
8455 <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>
8456 <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>
8457 <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>
8458 <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>
8459 <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>
8460 <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>
8465 TOC regression (bug 9764)
8469 ==== title 1.1.1 ====
8474 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8476 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8478 <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>
8480 <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>
8483 <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>
8486 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8488 <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>
8493 <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>
8494 <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>
8495 <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>
8496 <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>
8497 <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>
8498 <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>
8503 TOC with wgMaxTocLevel=3 (bug 6204)
8509 ==== title 1.1.1 ====
8514 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8516 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8518 <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>
8519 <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>
8522 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8524 <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>
8529 <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>
8530 <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>
8531 <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>
8532 <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>
8533 <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>
8534 <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>
8539 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
8545 ====Section 1.1.1====
8546 ====Section 1.1.1.1====
8549 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8551 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
8553 <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>
8556 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
8559 <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>
8560 <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>
8561 <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>
8562 <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>
8563 <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>
8569 Resolving duplicate section names
8574 <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>
8575 <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>
8580 Resolving duplicate section names with differing case (bug 10721)
8585 <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>
8586 <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>
8598 Template with sections, __NOTOC__
8605 <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>
8606 <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>
8607 <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>
8608 <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>
8613 __NOEDITSECTION__ keyword
8619 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
8620 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
8625 Link inside a section heading
8627 ==Section with a [[Main Page|link]] in it==
8629 <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>
8634 TOC regression (bug 12077)
8641 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8643 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8645 <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-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
8651 <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>
8652 <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>
8653 <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>
8658 BUG 1219 URL next to image (good)
8660 http://example.com [[Image:foobar.jpg]]
8662 <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>
8667 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
8670 The line above must have a trailing space!
8673 But just in case it doesn't...
8675 <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>
8676 <p>The line above must have a trailing space!
8678 <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>
8679 <p>But just in case it doesn't...
8684 Header with special characters (bug 25462)
8686 The tooltips shall not show entities to the user (ie. be double escaped)
8703 <p>The tooltips shall not show entities to the user (ie. be double escaped)
8705 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8707 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
8708 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
8709 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
8710 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
8711 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
8714 <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>
8717 <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>
8720 <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>
8723 <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>
8726 <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>
8732 Headers with excess '=' characters
8733 (Are similar tests necessary beyond the 1st level?)
8737 =''italic'' heading==
8738 ==''italic'' heading=
8740 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8742 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
8743 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
8744 <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>
8745 <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>
8748 <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>
8749 <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>
8750 <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>
8751 <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>
8756 HTML headers vs TOC (bug 23393)
8757 (__NOEDITSECTION__ for clearer output, doesn't matter here)
8769 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8771 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
8773 <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>
8774 <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>
8777 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
8779 <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>
8780 <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>
8785 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
8786 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
8787 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
8788 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
8789 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
8790 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
8795 BUG 1219 URL next to image (broken)
8797 http://example.com[[Image:foobar.jpg]]
8799 <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>
8804 Bug 1186 news: in the middle of text
8806 http://en.wikinews.org/wiki/Wikinews:Workplace
8808 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
8814 Namespaced link must have a title
8823 Namespaced link must have a title (bad fragment version)
8825 [[Project:#fragment]]
8827 <p>[[Project:#fragment]]
8833 ### HTML tags and HTML attributes
8837 div with no attributes
8839 <div>HTML rocks</div>
8841 <div>HTML rocks</div>
8846 div with double-quoted attribute
8848 <div id="rock">HTML rocks</div>
8850 <div id="rock">HTML rocks</div>
8855 div with single-quoted attribute
8857 <div id='rock'>HTML rocks</div>
8859 <div id="rock">HTML rocks</div>
8864 div with unquoted attribute
8866 <div id=rock>HTML rocks</div>
8868 <div id="rock">HTML rocks</div>
8873 div with illegal double attributes
8875 <div id="a" id="b">HTML rocks</div>
8877 <div id="b">HTML rocks</div>
8881 # FIXME: produce empty string instead of "class" in the PHP parser, following
8884 div with empty attribute value, space before equals
8888 <div class =>HTML rocks</div>
8890 <div class="">HTML rocks</div>
8894 # The PHP parser escapes the opening brace to { for some reason, so
8895 # disabled this test for it.
8897 div with braces in attribute value
8901 <div title="{}">Foo</div>
8903 <div title="{}">Foo</div>
8906 # This it very inconsistent in the PHP parser: it returns
8907 # class="class" if there is a space between the name and the equal sign (see
8908 # 'div with empty attribute value, space before equals'), but strips the
8909 # attribute completely if the space is missing. We hope that not much content
8910 # depends on this, so are implementing the behavior below in Parsoid for
8911 # consistencies' sake. Disabled for the PHP parser.
8912 # FIXME: fix this behavior in the PHP parser?
8914 div with empty attribute value, no space before equals
8918 <div class=>HTML rocks</div>
8920 <div class="">HTML rocks</div>
8925 HTML multiple attributes correction
8927 <p class="error" class="awesome">Awesome!</p>
8929 <p class="awesome">Awesome!</p>
8934 Table multiple attributes correction
8937 !+ class="error" class="awesome"| status
8942 <th class="awesome"> status
8950 <DIV ID="x">HTML ROCKS</DIV>
8952 <div id="x">HTML ROCKS</div>
8957 Non-ASCII pseudo-tags are rendered as text
8966 Pseudo-tag with URL 'name' renders as url link
8968 <http://example.com/>
8970 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
8975 text with amp in the middle of nowhere
8979 <p>Remember AT&T?
8984 text with character entity: eacute
8986 I always thought é was a cute letter.
8988 <p>I always thought é was a cute letter.
8993 text with entity-escaped character entity-like string: eacute
8995 I always thought &eacute; was a cute letter.
8997 <p>I always thought &eacute; was a cute letter.
9002 text with undefined character entity: xacute
9004 I always thought &xacute; was a cute letter.
9006 <p>I always thought &xacute; was a cute letter.
9018 [[Media:Foobar.jpg]]
9020 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
9025 Media link with text
9027 [[Media:Foobar.jpg|A neat file to look at]]
9029 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
9033 # FIXME: this is still bad HTML tag nesting
9035 Media link with nasty text
9036 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
9038 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
9040 <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>
9045 Media link to nonexistent file (bug 1702)
9047 [[Media:No such.jpg]]
9049 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
9054 Image link to nonexistent file (bug 1850 - good)
9056 [[Image:No such.jpg]]
9058 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
9063 :Image link to nonexistent file (bug 1850 - bad)
9065 [[:Image:No such.jpg]]
9067 <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>
9074 Character reference normalization in link text (bug 1938)
9076 [[Main Page|this&that]]
9078 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
9085 Test for unicode normalization
9087 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
9091 (bug 19451) Links should refer to the normalized form.
9099 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9100 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9101 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9102 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9103 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9108 Empty attribute crash test (bug 2067)
9110 <font color="">foo</font>
9112 <p><font color="">foo</font>
9117 Empty attribute crash test single-quotes (bug 2067)
9119 <font color=''>foo</font>
9121 <p><font color="">foo</font>
9126 Attribute test: equals, then nothing
9128 <font color=>foo</font>
9135 Attribute test: unquoted value
9137 <font color=x>foo</font>
9139 <p><font color="x">foo</font>
9144 Attribute test: unquoted but illegal value (hash)
9146 <font color=#x>foo</font>
9148 <p><font color="#x">foo</font>
9153 Attribute test: no value
9155 <font color>foo</font>
9157 <p><font color="color">foo</font>
9162 Bug 2095: link with three closing brackets
9166 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
9171 Bug 2095: link with pipe and three closing brackets
9175 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
9180 Bug 2095: link with pipe and three closing brackets, version 2
9182 [[Main Page|[http://example.com/]]]
9184 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9194 Template:Dangerous attribute
9196 " onmouseover="alert(document.cookie)
9200 Template:Dangerous style attribute
9202 border-size: expression(alert(document.cookie))
9208 <div style="float: right; {{{1}}}">Magic div</div>
9212 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9214 <div title="{{test}}"></div>
9216 <div title="This is a test template"></div>
9221 Bug 2304: HTML attribute safety (dangerous template; 2309)
9223 <div title="{{dangerous attribute}}"></div>
9225 <div title=""></div>
9230 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9232 <div style="{{dangerous style attribute}}"></div>
9234 <div style="/* insecure input */"></div>
9239 Bug 2304: HTML attribute safety (safe parameter; 2309)
9241 {{div style|width: 200px}}
9243 <div style="float: right; width: 200px">Magic div</div>
9248 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9250 {{div style|width: expression(alert(document.cookie))}}
9252 <div style="/* insecure input */">Magic div</div>
9257 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9259 {{div style|"><script>alert(document.cookie)</script>}}
9261 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9266 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9268 {{div style|" ><script>alert(document.cookie)</script>}}
9270 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9275 Bug 2304: HTML attribute safety (link)
9277 <div title="[[Main Page]]"></div>
9279 <div title="[[Main Page]]"></div>
9284 Bug 2304: HTML attribute safety (italics)
9286 <div title="''foobar''"></div>
9288 <div title="''foobar''"></div>
9293 Bug 2304: HTML attribute safety (bold)
9295 <div title="'''foobar'''"></div>
9297 <div title="'''foobar'''"></div>
9303 Bug 2304: HTML attribute safety (ISBN)
9305 <div title="ISBN 1234567890"></div>
9307 <div title="ISBN 1234567890"></div>
9312 Bug 2304: HTML attribute safety (RFC)
9314 <div title="RFC 1234"></div>
9316 <div title="RFC 1234"></div>
9321 Bug 2304: HTML attribute safety (PMID)
9323 <div title="PMID 1234567890"></div>
9325 <div title="PMID 1234567890"></div>
9330 Bug 2304: HTML attribute safety (web link)
9332 <div title="http://example.com/"></div>
9334 <div title="http://example.com/"></div>
9339 Bug 2304: HTML attribute safety (named web link)
9341 <div title="[http://example.com/ link]"></div>
9343 <div title="[http://example.com/ link]"></div>
9348 Bug 3244: HTML attribute safety (extension; safe)
9350 <div style="<nowiki>background:blue</nowiki>"></div>
9352 <div style="background:blue"></div>
9357 Bug 3244: HTML attribute safety (extension; unsafe)
9359 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9361 <div style="/* insecure input */"></div>
9365 # More MSIE fun discovered by Tom Gilder
9368 MSIE CSS safety test: spurious slash
9370 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9372 <div style="/* insecure input */">evil</div>
9377 MSIE CSS safety test: hex code
9379 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9381 <div style="/* insecure input */">evil</div>
9386 MSIE CSS safety test: comment in url
9388 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9390 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
9395 MSIE CSS safety test: comment in expression
9397 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
9399 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
9405 Table attribute legitimate extension
9408 !+ style="<nowiki>color:blue</nowiki>"| status
9413 <th style="color:blue"> status
9419 Table attribute safety
9422 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
9427 <th style="/* insecure input */"> status
9433 CSS line continuation 1
9435 <div style="background-image: u\ rl(test.jpg);"></div>
9437 <div style="/* insecure input */"></div>
9442 CSS line continuation 2
9444 <div style="background-image: u\ rl(test.jpg); "></div>
9446 <div style="/* insecure input */"></div>
9457 Expansion of multi-line templates in attribute values (bug 6255)
9459 <div style="background: {{identity|#00FF00}}">-</div>
9461 <div style="background: #00FF00">-</div>
9467 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
9469 <div style="background:
9472 <div style="background: #00FF00">-</div>
9477 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
9479 <div style="background: #00FF00">-</div>
9481 <div style="background: #00FF00">-</div>
9486 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
9489 Parser hook: empty input
9502 Parser hook: empty input using terminated empty elements
9515 Parser hook: empty input using terminated empty elements (space before)
9528 Parser hook: basic input
9542 Parser hook: case insensitive
9556 Parser hook: case insensitive, redux
9569 Parser hook: nested tags
9573 <tag><tag></tag></tag>
9584 Parser hook: basic arguments
9586 <tag width=200 height = "100" depth = '50' square></tag>
9594 'square' => 'square',
9601 Parser hook: argument containing a forward slash (bug 5344)
9603 <tag filename='/tmp/bla'></tag>
9608 'filename' => '/tmp/bla',
9615 Parser hook: empty input using terminated empty elements (bug 2374)
9628 # </tag> should be output literally since there is no matching tag that begins it
9630 Parser hook: basic arguments using terminated empty elements (bug 2374)
9632 <tag width=200 height = "100" depth = '50' square/>
9642 'square' => 'square',
9651 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
9655 Parser hook: static parser hook not inside a comment
9657 <statictag>hello, world</statictag>
9658 <statictag action=flush/>
9666 Parser hook: static parser hook inside a comment
9668 <!-- <statictag>hello, world</statictag> -->
9669 <statictag action=flush/>
9675 # Nested template calls; this case was broken by Parser.php rev 1.506,
9679 Template:One-parameter
9681 (My parameter is: {{{1}}})
9685 Template:Map-one-parameter
9691 Nested template calls
9693 {{Map-one-parameter|One-parameter|param}}
9695 <p>(My parameter is: param)
9704 Sanitizer: Closing of open tags
9706 <s></s><table></table>
9708 <s></s><table></table>
9713 Sanitizer: Closing of open but not closed tags
9722 Sanitizer: Closing of closed but not open tags
9731 Sanitizer: Closing of closed but not open table tags
9733 Table not started</td></tr></table>
9735 <p>Table not started</td></tr></table>
9740 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
9742 <span id="æ: v">byte</span>[[#æ: v|backlink]]
9744 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
9749 Sanitizer: Validating the contents of the id attribute (bug 4515)
9755 Something, but definitely not <br id="9" />...
9759 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
9763 <br id="foo" /><br id="foo" />
9765 Something need to be done. foo-2 ?
9769 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
9772 <meta itemprop="hello" content="world">
9773 <meta http-equiv="refresh" content="5">
9774 <meta itemprop="hello" http-equiv="refresh" content="5">
9775 <link itemprop="hello" href="{{SERVER}}">
9776 <link rel="stylesheet" href="{{SERVER}}">
9777 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
9780 <div itemscope="itemscope">
9781 <p> <meta itemprop="hello" content="world" />
9782 <meta http-equiv="refresh" content="5">
9783 <meta itemprop="hello" content="5" />
9785 <link itemprop="hello" href="http://example.org" />
9786 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
9787 <link itemprop="hello" href="http://example.org" />
9793 Language converter: output gets cut off unexpectedly (bug 5757)
9797 this bit is safe: }-
9799 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
9801 then we get cut off here: }-
9803 all additional text is vanished
9805 <p>this bit is safe: }-
9806 </p><p>but if we add a conversion instance: xxx
9807 </p><p>then we get cut off here: }-
9808 </p><p>all additional text is vanished
9813 Self closed html pairs (bug 5487)
9816 <center><font id="bug" />Centered text</center>
9817 <div><font id="bug2" />In div text</div>
9819 <center><font id="bug" />Centered text</center>
9820 <div><font id="bug2" />In div text</div>
9829 Punctuation: nbsp before exclamation
9833 <p>C'est grave !
9838 Punctuation: CSS !important (bug 11874)
9840 <div style="width:50% !important">important</div>
9842 <div style="width:50% !important">important</div>
9847 Punctuation: CSS ! important (bug 11874; with space after)
9849 <div style="width:50% ! important">important</div>
9851 <div style="width:50% ! important">important</div>
9857 HTML bullet list, closed tags (bug 5497)
9872 HTML bullet list, unclosed tags (bug 5497)
9889 HTML ordered list, closed tags (bug 5497)
9904 HTML ordered list, unclosed tags (bug 5497)
9921 HTML nested bullet list, closed tags (bug 5497)
9946 HTML nested bullet list, open tags (bug 5497)
9971 HTML nested ordered list, closed tags (bug 5497)
9996 HTML nested ordered list, open tags (bug 5497)
10021 HTML ordered list item with parameters oddity
10023 <ol><li id="fragment">One</li></ol>
10025 <ol><li id="fragment">One</li></ol>
10030 bug 5918: autonumbering
10032 [http://first/] [http://second] [ftp://ftp]
10036 [mailto:enclosed@mail.tld With target]
10038 [mailto:enclosed@mail.tld]
10040 mailto:inline@mail.tld
10042 <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>
10043 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
10044 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
10045 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
10046 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
10052 # Security and HTML correctness
10053 # From Nick Jenkins' fuzz testing
10057 Fuzz testing: Parser13
10072 Fuzz testing: Parser14
10077 <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>
10078 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10080 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
10087 Fuzz testing: Parser14-table
10092 <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>
10093 <table style="__TOC__">
10099 # Known to produce bogus xml (extra </td>)
10101 Fuzz testing: Parser16
10121 Fuzz testing: Parser21
10124 ! irc://{{ftp://a" onmouseover="alert('hello world');"
10129 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
10139 Fuzz testing: Parser22
10141 http://===r:::https://b
10145 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
10153 # Known to produce bad XML for now
10155 Fuzz testing: Parser24
10162 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
10163 <br style="onmouseover='alert(document.cookie);' " />
10165 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10170 <u class="|">}}}} >
10171 <br style="onmouseover='alert(document.cookie);'" />
10173 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10182 # Note: the current result listed for this is not what the original one was,
10183 # but the original bug was JavaScript injection, which is fixed in any case.
10184 # It's not clear that the original result listed was any more correct than the
10185 # current one. Original result:
10188 # <li class="||">
10189 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10191 Fuzz testing: Parser25 (bug 6055)
10197 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10199 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10204 Fuzz testing: URL adjacent extension (with space, clean)
10207 http://example.com <nowiki>junk</nowiki>
10209 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10214 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10217 http://example.com<nowiki>junk</nowiki>
10219 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10224 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10227 http://example.com<pre>junk</pre>
10229 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10234 Fuzz testing: image with bogus manual thumbnail
10236 [[Image:foobar.jpg|thumbnail= ]]
10238 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10243 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10245 <pre dir=" "></pre>
10247 <pre dir=" "></pre>
10252 Parsing optional HTML elements (Bug 6171)
10257 <td> Some tabular data</td>
10258 <td> More tabular data ...
10259 <td> And yet som tabular data</td>
10265 <td> Some tabular data</td>
10266 <td> More tabular data ...
10267 </td><td> And yet som tabular data</td>
10274 Correct handling of <td>, <tr> (Bug 6171)
10279 <td> Some tabular data</td>
10280 <td> More tabular data ...</td>
10281 <td> And yet som tabular data</td>
10287 <td> Some tabular data</td>
10288 <td> More tabular data ...</td>
10289 <td> And yet som tabular data</td>
10297 Parsing crashing regression (fr:JavaScript)
10301 <p></body></x>
10306 Inline wiki vs wiki block nesting
10312 <p><b>Bold paragraph</b>
10313 </p><p>New wiki paragraph
10318 Inline HTML vs wiki block nesting
10326 <p><b>Bold paragraph</b>
10327 </p><p>New wiki paragraph
10331 # Original result was this:
10332 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10334 # While that might be marginally more intuitive, maybe, the six-apostrophe
10335 # construct is clearly pathological and the result stated here (which is what
10336 # the parser actually does) is about as reasonable as anything.
10338 Mixing markup for italics and bold
10341 '''bold''''''bold''bolditalics'''''
10343 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10351 Article for special page transclusion test
10355 Special page transclusion
10358 {{Special:Prefixindex/Xyzzyx}}
10360 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10365 Special page transclusion twice (bug 5021)
10368 {{Special:Prefixindex/Xyzzyx}}
10369 {{Special:Prefixindex/Xyzzyx}}
10371 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10372 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10377 Transclusion of default MediaWiki message
10379 {{MediaWiki:Mainpage}}
10386 Transclusion of nonexistent MediaWiki message
10388 {{MediaWiki:Mainpagexxx}}
10390 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
10395 Transclusion of MediaWiki message with underscore
10397 {{MediaWiki:history_short}}
10404 Transclusion of MediaWiki message with space
10406 {{MediaWiki:history short}}
10413 Invalid header with following text
10423 Section extraction test (section 0)
10443 Section extraction test (section 1)
10465 Section extraction test (section 2)
10486 Section extraction test (section 3)
10506 Section extraction test (section 4)
10530 Section extraction test (section 5)
10550 Section extraction test (section 6)
10571 Section extraction test (section 7)
10591 Section extraction test (section 8)
10611 Section extraction test (section 9)
10632 Section extraction test (section 10)
10652 Section extraction test (nonexistent section 11)
10671 Section extraction test with bogus heading (section 1)
10676 ==bogus== not a legal section
10680 ==bogus== not a legal section
10684 Section extraction test with bogus heading (section 2)
10689 ==bogus== not a legal section
10696 Section extraction test with comment after heading (section 1)
10708 Section extraction test with comment after heading (section 2)
10720 Section extraction test with bogus <nowiki> heading (section 1)
10725 ==bogus== <nowiki>not a legal section</nowiki>
10729 ==bogus== <nowiki>not a legal section</nowiki>
10733 Section extraction test with bogus <nowiki> heading (section 2)
10738 ==bogus== <nowiki>not a legal section</nowiki>
10745 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
10746 # instead of respecting commented sections
10748 Section extraction prefixed by comment (section 1)
10759 Section extraction prefixed by comment (section 2)
10770 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
10771 # instead of respecting HTML-style headings
10773 Section extraction, mixed wiki and html (section 1)
10789 Section extraction, mixed wiki and html (section 2)
10805 # Formerly testing for bug 3342
10807 Section extraction, heading surrounded by <noinclude>
10811 <noinclude>==unmarked==</noinclude>
10817 # Test behavior of bug 19910
10819 Sectiion with all-equals
10824 The line above must have a trailing space
10827 But just in case it doesn't...
10831 But just in case it doesn't...
10835 Section replacement test (section 0)
10866 Section replacement test (section 1)
10895 Section replacement test (section 2)
10925 Section replacement test (section 3)
10956 Section replacement test (section 4)
10983 Section replacement test (section 5)
11014 Section replacement test (section 6)
11044 Section replacement test (section 7)
11075 Section replacement test (section 8)
11106 Section replacement test (section 9)
11135 Section replacement test (section 10)
11165 Section replacement test with initial whitespace (bug 13728)
11169 Preformatted initial line
11173 Preformatted initial line
11180 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11192 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11205 Section extraction, <pre> around bogus header (bug 10309)
11222 Section replacement, <pre> around bogus header (bug 10309)
11224 noxml replace=2,"xxx"
11245 Handling of 
 in URLs
11249 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11256 5 quotes, code coverage +1 line (php)
11263 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11265 5 quotes, code coverage +1 line (parsoid)
11271 <p><i><b></b></i></p>
11275 Special:Search page linking.
11279 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11291 * {{ROOTPAGENAMEE}}
11293 * {{BASEPAGENAMEE}}
11295 * {{TALKPAGENAMEE}}
11296 * {{SUBJECTPAGENAME}}
11297 * {{SUBJECTPAGENAMEE}}
11303 * {{SUBJECTSPACEE}}
11304 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11306 <ul><li> Parser test
11307 </li><li> Parser test
11308 </li><li> Parser test
11309 </li><li> Parser_test
11310 </li><li> Parser test
11311 </li><li> Parser_test
11312 </li><li> Parser test
11313 </li><li> Parser_test
11314 </li><li> Talk:Parser test
11315 </li><li> Talk:Parser_test
11316 </li><li> Parser test
11317 </li><li> Parser_test
11324 </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>
11328 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11338 image4 |300px| centre
11339 image5.svg| http://///////
11344 <ul class="gallery">
11345 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11346 <div style="height: 150px;">Image1.png</div>
11347 <div class="gallerytext">
11350 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11351 <div style="height: 150px;">Image2.gif</div>
11352 <div class="gallerytext">
11357 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11358 <div style="height: 150px;">Image3</div>
11359 <div class="gallerytext">
11362 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11363 <div style="height: 150px;">Image4</div>
11364 <div class="gallerytext">
11369 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11370 <div style="height: 150px;">Image5.svg</div>
11371 <div class="gallerytext">
11372 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11376 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11377 <div style="height: 150px;">* image6</div>
11378 <div class="gallerytext">
11386 Gallery (with options)
11388 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11389 File:Nonexistant.jpg|caption
11390 File:Nonexistant.jpg
11391 image:foobar.jpg|some '''caption''' [[Main Page]]
11393 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
11396 <ul class="gallery" style="max-width: 226px;_width: 226px;">
11397 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
11398 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11399 <div style="height: 70px;">Nonexistant.jpg</div>
11400 <div class="gallerytext">
11405 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11406 <div style="height: 70px;">Nonexistant.jpg</div>
11407 <div class="gallerytext">
11410 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11411 <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>
11412 <div class="gallerytext">
11413 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11417 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11418 <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>
11419 <div class="gallerytext">
11422 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11423 <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>
11424 <div class="gallerytext">
11434 Gallery with wikitext inside caption
11437 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
11438 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
11441 <ul class="gallery">
11442 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11443 <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>
11444 <div class="gallerytext">
11445 <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>
11449 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11450 <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>
11451 <div class="gallerytext">
11452 <p>This is a test template
11461 gallery (with showfilename option)
11463 <gallery showfilename>
11464 File:Nonexistant.jpg|caption
11465 File:Nonexistant.jpg
11466 image:foobar.jpg|some '''caption''' [[Main Page]]
11470 <ul class="gallery">
11471 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11472 <div style="height: 150px;">Nonexistant.jpg</div>
11473 <div class="gallerytext">
11474 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11479 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11480 <div style="height: 150px;">Nonexistant.jpg</div>
11481 <div class="gallerytext">
11482 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11486 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11487 <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>
11488 <div class="gallerytext">
11489 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11490 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11494 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11495 <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>
11496 <div class="gallerytext">
11497 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11506 Gallery (with namespace-less filenames)
11509 File:Nonexistant.jpg
11515 <ul class="gallery">
11516 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11517 <div style="height: 150px;">Nonexistant.jpg</div>
11518 <div class="gallerytext">
11521 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11522 <div style="height: 150px;">Nonexistant.jpg</div>
11523 <div class="gallerytext">
11526 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11527 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
11528 <div class="gallerytext">
11531 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11532 <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>
11533 <div class="gallerytext">
11541 HTML Hex character encoding (spells the word "JavaScript")
11543 JavaScript
11545 <p>JavaScript
11550 HTML Hex character encoding bogus encoding (bug 26437 regression check)
11554 <p>&#xsee;&#XSEE;
11559 HTML Hex character encoding mixed case
11568 __FORCETOC__ override
11580 ISBN 978-0-1234-56 789
11582 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
11587 ISBN followed by 5 spaces
11598 ISBN ISBN 1234567890
11600 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11605 Bug 22905: <abbr> followed by ISBN followed by </a>
11607 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
11609 <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>
11618 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
11623 Double RFC with a wiki link
11627 <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>
11636 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
11641 Centre-aligned image
11643 [[Image:foobar.jpg|centre]]
11645 <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>
11652 [[Image:foobar.jpg|none]]
11654 <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>
11659 Width + Height sized image (using px) (height is ignored)
11661 [[Image:foobar.jpg|640x480px]]
11663 <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>
11668 Width-sized image (using px, no following whitespace)
11670 [[Image:foobar.jpg|640px]]
11672 <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>
11677 Width-sized image (using px, with following whitespace - test regression from r39467)
11679 [[Image:foobar.jpg|640px ]]
11681 <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>
11686 Width-sized image (using px, with preceding whitespace - test regression from r39467)
11688 [[Image:foobar.jpg| 640px]]
11690 <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>
11695 Another italics / bold test
11703 # Note the results may be incorrect, as parserTest output included this:
11704 # XML error: Mismatched tag at byte 6120:
11705 # ...<dd> </dt></dl> </dd...
11713 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
11724 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
11726 Images with the "|" character in the comment
11728 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
11730 <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>
11735 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
11737 <html><script>alert(1);</script></html>
11739 <p><html><script>alert(1);</script></html>
11744 HTML with raw HTML ($wgRawHtml==true)
11748 <html><script>alert(1);</script></html>
11750 <p><script>alert(1);</script>
11755 Parents of subpages, one level up
11757 subpage title=[[Subpage test/L1/L2/L3]]
11761 <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>
11767 Parents of subpages, one level up, not named
11769 subpage title=[[Subpage test/L1/L2/L3]]
11773 <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>
11780 Parents of subpages, two levels up
11782 subpage title=[[Subpage test/L1/L2/L3]]
11788 <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
11789 </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>
11794 Parents of subpages, two levels up, without trailing slash or name.
11796 subpage title=[[Subpage test/L1/L2/L3]]
11805 Parents of subpages, two levels up, with lots of extra trailing slashes.
11807 subpage title=[[Subpage test/L1/L2/L3]]
11811 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
11816 Definition list code coverage
11822 <dl><dt> title  </dt><dd> def
11823 </dd><dt> title </dt><dd> def
11824 </dd><dt>title</dt><dd> def
11830 Don't fall for the self-closing div
11832 <div>hello world</div/>
11834 <div>hello world</div>
11843 <p>[[:Template:Msg]]
11852 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
11856 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
11858 Always escape literal '>' in output, not just after '<'
11872 <p>This is a test template
11873 This is a test template
11885 Inclusion of !userCanEdit() content
11889 <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>
11895 Out-of-order TOC heading levels
11904 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11906 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
11908 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
11909 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
11912 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
11914 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
11915 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
11920 <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>
11921 <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>
11922 <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>
11923 <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>
11924 <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>
11925 <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>
11931 ISBN with a dummy number
11941 ISBN with space-delimited number
11945 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
11951 ISBN with multiple spaces, no number
11970 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11971 </p><p>ISBN 12345678901
11977 ISBN with trailing year (bug 8110)
11979 ISBN 1-234-56789-0 - 2006
11981 ISBN 1 234 56789 0 - 2006
11983 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
11984 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
11992 {{anchorencode:foo bar©#%n}}
11994 <p>foo_bar.C2.A9.23.25n
11999 anchorencode trims spaces
12001 {{anchorencode: __pretty__please__}}
12008 anchorencode deals with links
12010 {{anchorencode: [[hello|world]] [[hi]]}}
12017 anchorencode deals with templates
12019 {{anchorencode: {{Foo}} }}
12026 anchorencode encodes like the TOC generator: (bug 18431)
12028 === _ +:.3A%3A&&]] ===
12029 {{anchorencode: _ +:.3A%3A&&]] }}
12032 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
12033 <p>.2B:.3A.253A.26.26.5D.5D
12037 # Expected output in the following test is not necessarily expected (there
12038 # should probably be <p> tags inside the <blockquote> in the output) -- it's
12039 # only testing for well-formedness.
12041 Bug 6200: blockquotes and paragraph formatting
12061 Bug 8293: Use of center tag ruins paragraph formatting
12082 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
12086 <span><s>x</span></s>
12088 <p><span><s>x</span></s></span>
12093 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
12097 <span><s>x</span></s>
12099 <p><span><s>x</s></span><s></s>
12104 ### Language variants related tests
12107 Self-link in language variants
12109 title=[[Dunav]] language=sr
12111 Both [[Dunav]] and [[Дунав]] are names for this river.
12113 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
12124 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
12126 title=[[Duna]] language=sr
12128 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
12130 <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.
12135 Link to pages in language variants
12139 Main Page can be written as [[Маин Паге]]
12141 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
12147 Multiple links to pages in language variants
12151 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
12153 <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>.
12159 Simple template in language variants
12165 <p>This is a test template
12171 Template with explicit namespace in language variants
12177 <p>This is a test template
12183 Basic test for template parameter in language variants
12187 {{парамтест|param=foo}}
12189 <p>This is a test template with parameter foo
12195 Simple category in language variants
12199 [[Category:МедиаWики Усер'с Гуиде]]
12201 <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>
12218 Don't convert blue categorylinks to another variant (bug 33210)
12222 [[A]][[Category:分类]]
12224 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12229 Stripping -{}- tags (language variants)
12233 Latin proverb: -{Ne nuntium necare}-
12235 <p>Latin proverb: Ne nuntium necare
12241 Prevent conversion with -{}- tags (language variants)
12243 language=sr variant=sr-ec
12245 Latinski: -{Ne nuntium necare}-
12247 <p>Латински: Ne nuntium necare
12253 Prevent conversion of text with -{}- tags (language variants)
12255 language=sr variant=sr-ec
12257 Latinski: -{Ne nuntium necare}-
12259 <p>Латински: Ne nuntium necare
12265 Prevent conversion of links with -{}- tags (language variants)
12267 language=sr variant=sr-ec
12271 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12277 -{}- tags within headlines (within html for parserConvert())
12279 language=sr variant=sr-ec
12283 <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>
12289 Explicit definition of language variant alternatives
12291 language=zh variant=zh-tw
12293 -{zh:China;zh-tw:Taiwan}-, not China
12295 <p>Taiwan, not China
12301 Conversion around HTML tags
12303 language=sr variant=sr-ec
12305 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12306 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12309 <span title="ЛаCтин">ски</span>
12315 Explicit session-wise language variant mapping (A flag and - flag)
12317 language=zh variant=zh-tw
12319 Taiwan is not China.
12320 But -{A|zh:China;zh-tw:Taiwan}- is China,
12321 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12322 and -{China}- is China.
12324 <p>Taiwan is not China.
12325 But Taiwan is Taiwan,
12326 (This should be stripped!)
12327 and China is China.
12332 Explicit session-wise language variant mapping (H flag for hide)
12334 language=zh variant=zh-tw
12336 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12339 <p>(This should be stripped!)
12345 Adding explicit conversion rule for title (T flag)
12347 language=zh variant=zh-tw showtitle
12349 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12352 <p>Should be stripped!
12357 Testing that changing the language variant here in the tests actually works
12359 language=zh variant=zh showtitle
12361 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12364 <p>Should be stripped!
12369 Recursive conversion of alt and title attrs shouldn't clear converter state
12371 language=zh variant=zh-cn showtitle
12373 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
12374 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
12378 Should be stripped<span title="Exclamation">!</span>
12383 Bug 24072: more test on conversion rule for title
12385 language=zh variant=zh-tw showtitle
12387 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12388 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
12391 <p>This should be stripped!
12392 This won't take interferes with the title rule.
12397 Partly disable title conversion if variant == main language code
12399 language=zh variant=zh title=[[ZH]] showtitle
12401 -{T|zh-cn:CN;zh-tw:TW}-
12409 Partly disable title conversion if variant == main language code, more
12411 language=zh variant=zh title=[[ZH]] showtitle
12421 Raw output of variant escape tags (R flag)
12423 language=zh variant=zh-tw
12425 Raw: -{R|zh:China;zh-tw:Taiwan}-
12427 <p>Raw: zh:China;zh-tw:Taiwan
12432 Nested using of manual convert syntax
12434 language=zh variant=zh-hk
12436 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
12438 <p>Nested: Hello Hong Kong!
12443 Proper conversion of text in external links
12445 language=sr variant=sr-ec
12447 http://www.google.com
12448 gopher://www.google.com
12449 [http://www.google.com http://www.google.com]
12450 [gopher://www.google.com gopher://www.google.com]
12451 [https://www.google.com irc://www.google.com]
12452 [ftp://www.google.com www.google.com/ftp://dir]
12453 [//www.google.com www.google.com]
12455 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12456 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12457 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12458 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12459 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
12460 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
12461 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
12466 Do not convert roman numbers to language variants
12468 language=sr variant=sr-ec
12472 <p>Фридрих IV је цар.
12477 Unclosed language converter markup "-{"
12488 Don't convert raw rule "-{R|=>}-" to "=>"
12505 Bug 529: Uncovered bullet
12515 # Plain MediaWiki does not remove empty lists, but tidy actually does.
12516 # Templates in Wikipedia rely on this behavior, as tidy has always been
12517 # enabled there. These tests are normally run *without* tidy, so specify the
12518 # full output here.
12519 # To test realistic parsing behavior, apply a tidy-like transformation to both
12520 # the expected output and your parser's output.
12522 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
12524 ******* Foo {{bullet}}
12526 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
12539 Bug 529: Uncovered table already at line-start
12562 Bug 529: Uncovered bullet in parser function result
12564 * Foo {{lc:{{bullet}} }}
12573 Bug 5678: Double-parsed template argument
12575 {{lc:{{{1}}}|hello}}
12582 Bug 5678: Double-parsed template invocation
12584 {{lc:{{paramtest {{!}} param = hello }} }}
12586 <p>{{paramtest | param = hello }}
12591 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
12594 title=[[Main Page]]
12596 {{PRVNÍVELKÉ:ěščř}}
12597 {{prvnívelké:ěščř}}
12617 Morwen/13: Unclosed link followed by heading
12624 <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>
12629 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
12636 <h1><span class="mw-headline" id="heading">heading</span></h1>
12641 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
12648 <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>
12663 Paragraphs inside divs (no extra line breaks)
12675 Paragraphs inside divs (extra line break on open)
12690 Paragraphs inside divs (extra line break on close)
12705 Paragraphs inside divs (extra line break on open and close)
12722 Nesting tags, paragraphs on lines which begin with <div>
12726 <div></div><strong>A
12735 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
12737 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
12741 <blockquote>Line one
12743 Line two</blockquote>
12745 <blockquote>Line one
12746 Line two</blockquote>
12751 Bug 6200: paragraphs inside blockquotes (extra line break on open)
12758 Line two</blockquote>
12763 Line two</blockquote>
12768 Bug 6200: paragraphs inside blockquotes (extra line break on close)
12772 <blockquote>Line one
12777 <blockquote>Line one
12785 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
12804 Paragraphs inside blockquotes/divs (no extra line breaks)
12806 <blockquote><div>Line one
12808 Line two</div></blockquote>
12810 <blockquote><div>Line one
12811 Line two</div></blockquote>
12816 Paragraphs inside blockquotes/divs (extra line break on open)
12821 Line two</div></blockquote>
12826 Line two</div></blockquote>
12831 Paragraphs inside blockquotes/divs (extra line break on close)
12833 <blockquote><div>Line one
12836 </div></blockquote>
12838 <blockquote><div>Line one
12841 </div></blockquote>
12846 Paragraphs inside blockquotes/divs (extra line break on open and close)
12852 </div></blockquote>
12858 </div></blockquote>
12863 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
12865 wgLinkHolderBatchSize=0
12871 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
12872 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
12873 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
12878 Free external link invading image caption
12880 [[Image:Foobar.jpg|thumb|http://x|hello]]
12882 <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>
12887 Bug 15196: localised external link numbers
12891 [http://en.wikipedia.org/]
12893 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
12898 Multibyte character in padleft
12900 {{padleft:-Hello|7|Æ}}
12907 Multibyte character in padright
12909 {{padright:Hello-|7|Æ}}
12916 formatdate parser function
12918 {{#formatdate:2009-03-24}}
12920 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
12925 formatdate parser function, with default format
12927 {{#formatdate:2009-03-24|mdy}}
12929 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
12934 Spacing of numbers in formatted dates
12936 {{#formatdate:January 15}}
12938 <p><span class="mw-formatted-date" title="01-15">January 15</span>
12943 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
12945 language=nl title=[[MediaWiki:Common.css]]
12947 {{#formatdate:2009-03-24|dmy}}
12949 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
12962 Edit comment with link
12966 I like the [[Main Page]] a lot
12968 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
12972 Edit comment with link and link text
12976 I like the [[Main Page|best pages]] a lot
12978 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
12982 Edit comment with link and link text with suffix
12986 I like the [[Main Page|best page]]s a lot
12988 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
12992 Edit comment with section link (non-local, eg in history list)
12994 comment title=[[Main Page]]
12996 /* External links */ removed bogus entries
12998 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13002 Edit comment with section link and text before it (non-local, eg in history list)
13004 comment title=[[Main Page]]
13006 pre-comment text /* External links */ removed bogus entries
13008 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>
13012 Edit comment with section link (local, eg in diff view)
13014 comment local title=[[Main Page]]
13016 /* External links */ removed bogus entries
13018 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13022 Edit comment with subpage link (bug 14080)
13026 title=[[Subpage test]]
13028 Poked at a [[/subpage]] here...
13030 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
13034 Edit comment with subpage link and link text (bug 14080)
13038 title=[[Subpage test]]
13040 Poked at a [[/subpage|neat little page]] here...
13042 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
13046 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
13049 title=[[Subpage test]]
13051 Poked at a [[/subpage]] here...
13053 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
13057 Edit comment with bare anchor link (local, as on diff)
13061 title=[[Main Page]]
13065 <a href="#section">#section</a>
13069 Edit comment with bare anchor link (non-local, as on history)
13072 title=[[Main Page]]
13076 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
13080 Anchor starting with underscore
13084 <p><a href="#_ref">One</a>
13089 Id starting with underscore
13091 <div id="_ref"></div>
13093 <div id="_ref"></div>
13098 Space normalisation on autocomment (bug 22784)
13101 title=[[Main Page]]
13103 /* __hello__world__ */
13105 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
13109 percent-encoding and + signs in comments (Bug 26410)
13113 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
13115 <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>
13119 Bad images - basic functionality
13128 Bad images - bug 16039: text after bad image disappears
13142 Verify that displaytitle works (bug #22501) no displaytitle
13146 wgAllowDisplayTitle=true
13147 wgRestrictDisplayTitle=false
13149 this is not the the title
13152 <p>this is not the the title
13157 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
13162 wgAllowDisplayTitle=true
13163 wgRestrictDisplayTitle=false
13165 this is not the the title
13166 {{DISPLAYTITLE:whatever}}
13169 <p>this is not the the title
13174 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
13179 wgAllowDisplayTitle=true
13180 wgRestrictDisplayTitle=true
13182 this is not the the title
13183 {{DISPLAYTITLE:whatever}}
13186 <p>this is not the the title
13191 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13196 wgAllowDisplayTitle=true
13197 wgRestrictDisplayTitle=true
13199 this is not the the title
13200 {{DISPLAYTITLE:screen}}
13203 <p>this is not the the title
13208 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13213 wgAllowDisplayTitle=false
13215 this is not the the title
13216 {{DISPLAYTITLE:screen}}
13219 <p>this is not the the title
13220 <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>
13225 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13230 wgAllowDisplayTitle=false
13232 this is not the the title
13235 <p>this is not the the title
13240 preload: check <noinclude> and <includeonly>
13244 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13250 preload: check <onlyinclude>
13254 Goodbye <onlyinclude>Hello world</onlyinclude>
13260 preload: can pass tags through if we want to
13264 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13266 <includeonly>Hello world</includeonly>
13270 preload: check that it doesn't try to do tricks
13274 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13276 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13280 Play a bit with r67090 and bug 3158
13284 <div style="width:50% !important"> </div>
13285 <div style="width:50% !important"> </div>
13286 <div style="width:50% !important"> </div>
13287 <div style="border : solid;"> </div>
13289 <div style="width:50% !important"> </div>
13290 <div style="width:50% !important"> </div>
13291 <div style="width:50% !important"> </div>
13292 <div style="border : solid;"> </div>
13297 HTML5 data attributes
13299 <span data-foo="bar">Baz</span>
13300 <p data-abc-def_hij="">Quuz</p>
13302 <p><span data-foo="bar">Baz</span>
13304 <p data-abc-def_hij="">Quuz</p>
13309 percent-encoding and + signs in internal links (Bug 26410)
13311 [[User:+%]] [[Page+title%]]
13312 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
13313 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
13314 [[%33%45]] [[%33%45+]]
13316 <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>
13317 <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>
13318 <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>
13319 <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>
13324 Special characters in embedded file links (bug 27679)
13326 [[File:Contains & ampersand.jpg]]
13327 [[File:Does not exist.jpg|Title with & ampersand]]
13329 <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>
13330 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
13336 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
13338 Text's been normalized?
13340 <p>Text's been normalized?
13345 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
13347 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
13349 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
13354 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
13356 [http://www.example.org/ ideograms]
13358 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
13363 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
13365 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
13367 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
13391 Bug 31098 Template which includes system messages which includes the template
13395 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13396 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13401 Bug31490 Turkish: ucfirst 'blah'
13412 Bug31490 Turkish: ucfirst 'ix'
13423 Bug31490 Turkish: lcfirst 'BLAH'
13434 Bug31490 Turkish: ucfırst (with a dotless i)
13440 <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>
13445 Bug31490 ucfırst (with a dotless i) with English language
13451 <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>
13456 Bug 26375: TOC with italics
13458 title=[[Main Page]]
13461 == ''Lost'' episodes ==
13463 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13465 <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>
13468 <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>
13473 Bug 26375: TOC with bold
13475 title=[[Main Page]]
13478 == '''should be bold''' then normal text ==
13480 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13482 <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>
13485 <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>
13490 Bug 33845: Headings become cursive in TOC when they contain an image
13492 title=[[Main Page]]
13495 == Image [[Image:foobar.jpg]] ==
13497 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13499 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
13502 <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>
13507 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
13509 title=[[Main Page]]
13512 == <blockquote>Quote</blockquote> ==
13514 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13516 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
13519 <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>
13524 Unclosed tags in TOC
13526 title=[[Main Page]]
13530 <small>Hanc marginis exiguitas non caperet.</small>
13533 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13535 <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>
13538 <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>
13539 <p><small>Hanc marginis exiguitas non caperet.</small>
13545 Multiple tags in TOC
13548 == <i>Foo</i> <b>Bar</b> ==
13550 == <i>Foo</i> <blockquote>Bar</blockquote> ==
13552 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13554 <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>
13555 <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>
13558 <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>
13559 <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>
13564 Tags with parameters in TOC
13567 == <sup class="in-h2">Hello</sup> ==
13569 == <sup class="a > b">Evilbye</sup> ==
13571 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13573 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
13574 <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>
13577 <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>
13578 <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>
13583 span tags with directionality in TOC
13586 == <span dir="ltr">C++</span> ==
13588 == <span dir="rtl">זבנג!</span> ==
13590 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
13592 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
13594 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
13596 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13598 <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>
13599 <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>
13600 <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>
13601 <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>
13602 <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>
13605 <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>
13606 <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>
13607 <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>
13608 <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>
13609 <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>
13616 == {{int:headline_sample}} ==
13620 Bug 32057: Title needed when expanding <h> nodes.
13622 title=[[Main Page]]
13626 <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>
13631 Strip marker in urlencode
13633 {{urlencode:x<nowiki/>y}}
13634 {{urlencode:x<nowiki/>y|wiki}}
13635 {{urlencode:x<nowiki/>y|path}}
13662 Strip marker in formatNum
13664 {{formatnum:1<nowiki/>2}}
13665 {{formatnum:1<nowiki/>2|R}}
13673 Check noCommafy in formatNum
13677 {{formatnum:123456.78}}
13678 {{formatnum:123456.78|NOSEP}}
13686 Strip marker in grammar
13690 {{grammar:elative|foo<nowiki/>bar}}
13697 Strip marker in padleft
13699 {{padleft:|2|x<nowiki/>y}}
13706 Strip marker in padright
13708 {{padright:|2|x<nowiki/>y}}
13715 Strip marker in anchorencode
13717 {{anchorencode:x<nowiki/>y}}
13724 nowiki inside link inside heading (bug 18295)
13726 ==[[foo|x<nowiki>y</nowiki>z]]==
13728 <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>
13733 new support for bdi element (bug 31817)
13735 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13737 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13742 Ignore pipe between table row attributes
13746 |- id=foo | style='color: red'
13754 <tr id="foo" style="color: red">
13761 Gallery override link with WikiLink (bug 34852)
13764 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
13767 <ul class="gallery">
13768 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13769 <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>
13770 <div class="gallerytext">
13780 Gallery override link with absolute external link (bug 34852)
13783 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
13786 <ul class="gallery">
13787 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13788 <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>
13789 <div class="gallerytext">
13799 Gallery override link with malicious javascript (bug 34852)
13802 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
13805 <ul class="gallery">
13806 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13807 <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>
13808 <div class="gallerytext">
13818 Gallery with invalid title as link (bug 43964)
13821 File:foobar.jpg|link=<
13824 <ul class="gallery">
13825 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13826 <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>
13827 <div class="gallerytext">
13835 Language parser function
13844 Padleft and padright as substr
13846 {{padleft:|3|abcde}}
13847 {{padright:|3|abcde}}
13855 Bug 34939 - Case insensitive link parsing ([HttP://])
13857 [HttP://MediaWiki.Org/]
13859 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
13864 Bug 34939 - Case insensitive link parsing ([HttP:// title])
13866 [HttP://MediaWiki.Org/ MediaWiki]
13868 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
13873 Bug 34939 - Case insensitive link parsing (HttP://)
13875 HttP://MediaWiki.Org/
13877 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
13882 ### Parsoids-specific tests
13883 ### Parsoid-PHP parser incompatibilities
13886 1. SOL-sensitive wikitext tokens as template-args
13888 parsoid=wt2html,wt2wt
13894 <span about="#mwt1" typeof="mw:Object/Template">
13895 </span><ul about="#mwt1"><li>a</li></ul>
13896 <span about="#mwt2" typeof="mw:Object/Template">
13897 </span><ol about="#mwt2"><li>a</li></ol>
13898 <span about="#mwt3" typeof="mw:Object/Template">
13899 </span><dl about="#mwt3"><dd>a</dd></dl>
13902 #### The following section of tests are primarily to test
13903 #### wikitext escaping capabilities of Parsoid. Given that
13904 #### escaping can be done any number of ways, the wikitext (input)
13905 #### is always adjusted to reflect how Parsoid adds nowiki
13908 #### We are marking several tests as parsoid-only since the
13909 #### HTML in the result section is different from what the
13910 #### PHP parser generates for it.
13913 #### --------------- Headings ---------------
13915 #### 1. Nested inside html <h1>=foo=</h1>
13916 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
13917 #### 3. Nested inside html with wikitext split by html tags
13918 #### 4. No escape needed
13919 #### 5. Empty headings <h1></h1>
13920 #### 6. Heading chars in SOL context
13921 #### ----------------------------------------
13923 Headings: 0. Unnested
13927 <nowiki>=foo=</nowiki>
13929 <nowiki> =foo= </nowiki>
13931 <nowiki>=foo=</nowiki>
13933 =foo''a''<nowiki>=</nowiki>
13935 <p><span typeof="mw:Nowiki">=foo=</span></p>
13937 <p><span typeof="mw:Nowiki"> =foo= </span>
13939 <span typeof="mw:Nowiki">=foo=</span></p>
13941 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
13945 Headings: 1. Nested inside html
13949 =<nowiki>=foo=</nowiki>=
13950 ==<nowiki>=foo=</nowiki>==
13951 ===<nowiki>=foo=</nowiki>===
13952 ====<nowiki>=foo=</nowiki>====
13953 =====<nowiki>=foo=</nowiki>=====
13954 ======<nowiki>=foo=</nowiki>======
13956 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
13957 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
13958 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
13959 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
13960 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
13961 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
13965 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
13970 <nowiki>*bar</nowiki>
13974 <nowiki>=bar=</nowiki>
13982 Headings: 3. Nested inside html with wikitext split by html tags
13986 =='''bold'''<nowiki>foo=</nowiki>=
13988 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
13992 Headings: 4a. No escaping needed (testing just h1 and h2)
14003 =<nowiki>=</nowiki>=
14011 <h1><i>=</i>foo=</h1>
14012 <h1><span typeof="mw:Nowiki">=</span></h1>
14016 Headings: 4b. No escaping needed (inside p-tags)
14031 Headings: 5. Empty headings
14039 =====<nowiki/>=====
14040 ======<nowiki/>======
14051 Headings: 6. Heading chars in SOL context
14055 <!--cmt--><nowiki>=h1=</nowiki>
14056 <!--cmt--><nowiki> =h1= </nowiki>
14058 <p><!--cmt--><span typeof="mw:Nowiki">=h1=</span>
14059 <!--cmt--><span typeof="mw:Nowiki"> =h1= </span></p>
14062 #### --------------- Lists ---------------
14063 #### 0. Outside nests (*foo, etc.)
14064 #### 1. Nested inside html <ul><li>*foo</li></ul>
14065 #### 2. Inside definition lists
14066 #### 3. Only bullets at start should be escaped
14067 #### 4. No escapes needed
14068 #### 5. No unnecessary escapes
14069 #### 6. Escape bullets in SOL position
14070 #### 7. Escape bullets in a multi-line context
14071 #### ----------------------------------------
14074 Lists: 0. Outside nests
14076 <nowiki>*foo</nowiki>
14078 <nowiki>#foo</nowiki>
14086 Lists: 1. Nested inside html
14088 *<nowiki>*foo</nowiki>
14090 *<nowiki>#foo</nowiki>
14092 *<nowiki>:foo</nowiki>
14094 *<nowiki>;foo</nowiki>
14096 #<nowiki>*foo</nowiki>
14098 #<nowiki>#foo</nowiki>
14100 #<nowiki>:foo</nowiki>
14102 #<nowiki>;foo</nowiki>
14124 Lists: 2. Inside definition lists
14126 ;<nowiki>;foo</nowiki>
14128 ;<nowiki>:foo</nowiki>
14130 ;<nowiki>:foo</nowiki>
14133 :<nowiki>:foo</nowiki>
14148 Lists: 3. Only bullets at start of text should be escaped
14150 *<nowiki>*foo*bar</nowiki>
14152 *<nowiki>*foo</nowiki>''it''*bar
14156 <ul><li>*foo<i>it</i>*bar
14162 Lists: 4. No escapes needed
14174 <ul><li><i>foo</i>*bar
14176 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
14181 Lists: 5. No unnecessary escapes
14183 * bar <span><nowiki>[[foo]]</nowiki></span>
14185 *=bar <span><nowiki>[[foo]]</nowiki></span>
14187 *[[bar <span><nowiki>[[foo]]</nowiki></span>
14189 *]]bar <span><nowiki>[[foo]]</nowiki></span>
14191 *=bar <span>foo]]</span>=
14195 <ul><li> bar <span>[[foo]]</span>
14197 <ul><li>=bar <span>[[foo]]</span>
14199 <ul><li>[[bar <span>[[foo]]</span>
14201 <ul><li>]]bar <span>[[foo]]</span>
14203 <ul><li>=bar <span>foo]]</span>=
14205 <ul><li> <s></s>: a
14211 Lists: 6. Escape bullets in SOL position
14215 <!--cmt--><nowiki>*foo</nowiki>
14217 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
14221 Lists: 7. Escape bullets in a multi-line context
14231 #### --------------- HRs ---------------
14232 #### 1. Single line
14233 #### -----------------------------------
14236 HRs: 1. Single line
14240 ----<nowiki>----</nowiki>
14244 <hr><span typeof="mw:Nowiki">----</span>
14249 #### --------------- Tables ---------------
14250 #### 1a. Simple example
14251 #### 1b. No escaping needed (!foo)
14252 #### 1c. No escaping needed (|foo)
14253 #### 1d. No escaping needed (|}foo)
14255 #### 2a. Nested in td (<td>foo|bar</td>)
14256 #### 2b. Nested in td (<td>foo||bar</td>)
14257 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
14259 #### 3a. Nested in th (<th>foo!bar</th>)
14260 #### 3b. Nested in th (<th>foo!!bar</th>)
14261 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
14265 #### 4c. No escaping needed
14266 #### --------------------------------------
14269 Tables: 1a. Simple example
14280 Tables: 1b. No escaping needed
14289 Tables: 1c. No escaping needed
14298 Tables: 1d. No escaping needed
14307 Tables: 2a. Nested in td
14312 |<nowiki>foo|bar</nowiki>
14316 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
14320 Tables: 2b. Nested in td
14325 |<nowiki>foo||bar</nowiki>
14326 |''it''<nowiki>foo||bar</nowiki>
14330 <td><span typeof="mw:Nowiki">foo||bar</span></td>
14331 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
14335 Tables: 2c. Nested in td -- no escaping needed
14343 <table><tbody><tr><td>foo!!bar
14344 </td></tr></tbody></table>
14349 Tables: 3a. Nested in th
14357 <table><tbody><tr><th>foo!bar
14358 </th></tr></tbody></table>
14363 Tables: 3b. Nested in th
14368 !<nowiki>foo!!bar</nowiki>
14372 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
14377 Tables: 3c. Nested in th -- no escaping needed
14382 !<nowiki>foo||bar</nowiki>
14386 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
14390 Tables: 4a. Escape -
14398 |<nowiki>-bar</nowiki>
14402 <tr><th>-bar</th></tr>
14404 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
14408 Tables: 4b. Escape +
14416 |<nowiki>+bar</nowiki>
14420 <tr><th>+bar</th></tr>
14422 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
14426 Tables: 4c. No escaping needed
14440 <tr><td>foo-bar</td><td>foo+bar</td></tr>
14441 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
14445 ### SSS FIXME: Disabled right now because accurate html2wt
14446 ### on this snippet requires data-parsoid flags that we've
14447 ### stripped out of these tests. We should scheme how we
14448 ### we want to handle these kind of tests that require
14449 ### data-parsoid flags for accurate html2wt serialization
14452 Tables: 4d. No escaping needed
14470 #### --------------- Links ---------------
14471 #### 1. Quote marks in link text
14472 #### 2. Wikilinks: Escapes needed
14473 #### 3. Wikilinks: No escapes needed
14474 #### 4. Extlinks: Escapes needed
14475 #### 5. Extlinks: No escapes needed
14476 #### --------------------------------------
14478 Links 1. Quote marks in link text
14482 [[Foo|<nowiki>Foo''boo''</nowiki>]]
14484 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
14488 Links 2. WikiLinks: Escapes needed
14492 [[Foo|<nowiki>[Foobar]</nowiki>]]
14493 [[Foo|<nowiki>Foobar]</nowiki>]]
14494 [[Foo|x [Foobar] x]]
14495 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
14496 [[Foo|<nowiki>[[Bar]]</nowiki>]]
14497 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
14498 [[Foo|<nowiki>|Bar</nowiki>]]
14499 [[Foo|<nowiki>]]bar</nowiki>]]
14500 [[Foo|<nowiki>[[bar</nowiki>]]
14501 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
14503 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
14504 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
14505 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
14506 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
14507 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
14508 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
14509 <a href="Foo" rel="mw:WikiLink">|Bar</a>
14510 <a href="Foo" rel="mw:WikiLink">]]bar</a>
14511 <a href="Foo" rel="mw:WikiLink">[[bar</a>
14512 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
14516 Links 3. WikiLinks: No escapes needed
14523 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
14524 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
14528 Links 4. ExtLinks: Escapes needed
14532 [http://google.com <nowiki>[google]</nowiki>]
14533 [http://google.com <nowiki>google]</nowiki>]
14535 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
14536 <a href="http://google.com" rel="mw:ExtLink">google]</a>
14540 Links 5. ExtLinks: No escapes needed
14544 [http://google.com [google]
14546 <a href="http://google.com" rel="mw:ExtLink">[google</a>
14549 #### --------------- Quotes ---------------
14550 #### 1. Quotes inside <b> and <i>
14551 #### 2. Link fragments separated by <i> and <b> tags
14552 #### 3. Link fragments inside <i> and <b>
14553 #### --------------------------------------
14555 1. Quotes inside <b> and <i>
14557 ''<nowiki>'foo'</nowiki>''
14558 ''<nowiki>''foo''</nowiki>''
14559 ''<nowiki>'''foo'''</nowiki>''
14560 '''<nowiki>'foo'</nowiki>'''
14561 '''<nowiki>''foo''</nowiki>'''
14562 '''<nowiki>'''foo'''</nowiki>'''
14563 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
14571 <b>foo'<i>bar'</i>baz</b>
14576 2. Link fragments separated by <i> and <b> tags
14578 [[''foo''<nowiki>hello]]</nowiki>
14580 [['''foo'''<nowiki>hello]]</nowiki>
14582 <p>[[<i>foo</i>hello]]
14583 </p><p>[[<b>foo</b>hello]]
14588 2. Link fragments inside <i> and <b>
14589 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
14590 this is one of the shortcomings of this format)
14592 ''[[foo''<nowiki>]]</nowiki>
14594 '''[[foo'''<nowiki>]]</nowiki>
14597 </p><p><b>[[foo</b>]]
14601 #### --------------- Paragraphs ---------------
14602 #### 1. No unnecessary escapes
14603 #### --------------------------------------
14606 1. No unnecessary escapes
14608 bar <span><nowiki>[[foo]]</nowiki></span>
14610 =bar <span><nowiki>[[foo]]</nowiki></span>
14612 [[bar <span><nowiki>[[foo]]</nowiki></span>
14614 ]]bar <span><nowiki>[[foo]]</nowiki></span>
14616 =bar <span>foo]]</span><nowiki>=</nowiki>
14618 <p>bar <span>[[foo]]</span>
14619 </p><p>=bar <span>[[foo]]</span>
14620 </p><p>[[bar <span>[[foo]]</span>
14621 </p><p>]]bar <span>[[foo]]</span>
14622 </p><p>=bar <span>foo]]</span>=
14626 #### --------------- PRE ------------------
14627 #### 1. Leading space in SOL context should be escaped
14628 #### --------------------------------------
14630 1. Leading space in SOL context should be escaped
14634 <nowiki> foo</nowiki>
14635 <!--cmt--><nowiki> foo</nowiki>
14642 #### --------------- HTML tags ---------------
14645 #### 3. multi-line html tag
14646 #### --------------------------------------
14652 <a href="http://google.com">google</a>
14654 <a href="http://google.com">google</a>
14660 <nowiki><div>foo</div>
14661 <div style="color:red">foo</div></nowiki>
14663 <p><div>foo</div>
14664 <div style="color:red">foo</div>
14669 3. multi-line html tag
14681 #### --------------- Others ---------------
14685 <nowiki>foo</nowiki>
14687 <p><nowiki>foo</nowiki>
14692 Tag-like HTML structures are passed through as text
14714 </p><p>1<d e>f
14719 # This fails in the PHP parser (see bug 40670,
14720 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
14722 Tag names followed by punctuation should not be recognized as tags
14728 <p><s.ome> text
14733 HTML tag with necessary entities in attributes
14735 <span title="&amp;">foo</span>
14737 <p><span title="&amp;">foo</span>
14742 HTML tag with 'unnecessary' entity encoding in attributes
14744 <span title="&">foo</span>
14746 <p><span title="&">foo</span>
14751 HTML tag with broken attribute value quoting
14753 <span title="Hello world>Foo</span>
14755 <p><span>Foo</span>
14760 Parsoid-only: HTML tag with broken attribute value quoting
14764 <span title="Hello world>Foo</span>
14766 <p><span title="Hello world">Foo</span>
14771 Table with broken attribute value quoting
14774 | title="Hello world|Foo
14785 Table with broken attribute value quoting on consecutive lines
14788 | title="Hello world|Foo
14789 | style="color:red|Bar
14802 Parsoid-only: Table with broken attribute value quoting on consecutive lines
14807 | title="Hello world|Foo
14808 | style="color:red|Bar
14813 <td title="Hello world">Foo
14814 </td><td style="color: red">Bar
14815 </td></tr></tbody></table>
14820 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14830 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14840 Accept empty td cell attribute
14843 | align="center" | foo || |
14848 <td align="center"> foo </td>
14855 Non-empty attributes in th-cells
14858 ! Foo !! style="color: red" | Bar
14864 <th style="color: red"> Bar
14870 Accept empty attributes in th-cells
14885 Empty table rows go away
14906 ### Parsoid-centric tests for testing RTing of inter-element separators
14907 ### Edge cases not tested by existing parser tests and specific to
14908 ### Parsoid-specific serialization strategies.
14912 RT-ed inter-element separators should be valid separators
14925 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
14926 (Parsoid-only since PHP parser relies on Tidy for correct output)
14942 Empty TD followed by TD with tpl-generated attribute
14947 |{{echo|style='color:red'}}|foo
14961 Indented table with an empty td
14980 Empty TR followed by a template-generated TR
14981 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
14983 parsoid=wt2html,wt2wt
14987 {{echo|<tr><td>foo</td></tr>}}
14993 <tr typeof="mw:Object/Template">
14994 <td>foo</td></tr></tbody></table>
14997 ## PHP and parsoid output differ for this, and since this is primarily
14998 ## for testing Parsoid's serializer, marking this Parsoid only
15000 Empty TR followed by mixed-ws-comment line should RT correctly
15014 <td> <!--c--></td></tr>
15016 <td><!--c--> <!--d--></td></tr>
15022 Multi-line image caption generated by templates with/without trailing newlines
15026 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
15027 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
15029 <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>
15030 <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>
15034 ## PHP emits broken html for this, and since this is primarily
15035 ## a Parsoid serializer test, marking this Parsoid only
15037 Improperly nested inline or quotes tags with whitespace in between
15041 <span> <s>x</span> </s>
15044 <p><span> <s>x</s></span><s> </s>
15045 <b> <i>x</i></b><i> </i>
15055 Try for 100% code coverage