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>
7907 Subpage test/subpage
7915 subpage title=[[Subpage test]]
7919 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7924 Subpage noslash link
7926 subpage title=[[Subpage test]]
7930 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7939 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7944 BUG 561: {{/Subpage}}
7946 subpage title=[[Page]]
7950 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7958 Category:MediaWiki User's Guide
7966 [[:Category:MediaWiki User's Guide]]
7968 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7977 [[Category:MediaWiki User's Guide]]
7979 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7983 PAGESINCATEGORY invalid title fatal (r33546 fix)
7985 {{PAGESINCATEGORY:<bogus>}}
7992 Category with different sort key
7996 [[Category:MediaWiki User's Guide|Foo]]
7998 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8002 Category with identical sort key
8006 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8008 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8012 Category with empty sort key
8017 [[Category:MediaWiki User's Guide|]]
8019 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8023 Category with empty sort key and parentheses
8028 [[Category:Foo (bar)|]]
8030 [[Category:Foo (bar)|Foo]]
8034 Category with link tail
8039 123[[Category:Foo]]456
8041 123[[Category:Foo]]456
8045 Category with template
8050 [[Category:{{echo|Foo}}]]
8052 [[Category:{{echo|Foo}}]]
8056 Category with template in sort key
8061 [[Category:Foo|{{echo|Bar}}]]
8063 [[Category:Foo|{{echo|Bar}}]]
8067 Category with template in sort key and title
8072 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8074 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8078 Category / paragraph interactions
8080 Foo [[Category:Baz]] Bar
8082 Foo [[Category:Baz]]
8090 [[Category:Baz]] Bar
8103 {{echo|[[Category:Baz]]}}
8118 ### Inter-language links
8121 Inter-language links
8127 [[zh:食品]]
8129 es:Alimento fr:Nourriture zh:食品
8133 Duplicate interlanguage links (bug 24502)
8149 Basic section headings
8156 ===Smaller headline===
8159 <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>
8162 <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>
8165 <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>
8171 Section headings with TOC
8174 === Subheadline 1 ===
8175 ===== Skipping a level =====
8176 ====== Skipping a level ======
8180 ===Another headline===
8182 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8184 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8186 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8188 <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>
8190 <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>
8197 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8199 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8204 <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>
8205 <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>
8206 <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>
8207 <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>
8208 <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>
8211 <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>
8215 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8217 Handling of sections up to level 6 and beyond
8220 == Level 2 Heading==
8221 === Level 3 Heading===
8222 ==== Level 4 Heading====
8223 ===== Level 5 Heading=====
8224 ====== Level 6 Heading======
8225 ======= Level 7 Heading=======
8226 ======== Level 8 Heading========
8227 ========= Level 9 Heading=========
8228 ========== Level 10 Heading==========
8230 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8232 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8234 <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>
8236 <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>
8238 <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>
8240 <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>
8242 <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>
8243 <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>
8244 <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>
8245 <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>
8246 <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>
8259 <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>
8260 <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>
8261 <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>
8262 <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>
8263 <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>
8264 <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>
8265 <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>
8266 <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>
8267 <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>
8268 <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>
8273 TOC regression (bug 9764)
8277 ==== title 1.1.1 ====
8282 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8284 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8286 <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>
8288 <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>
8291 <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>
8294 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8296 <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>
8301 <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>
8302 <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>
8303 <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>
8304 <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>
8305 <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>
8306 <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>
8311 TOC with wgMaxTocLevel=3 (bug 6204)
8317 ==== title 1.1.1 ====
8322 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8324 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8326 <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>
8327 <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>
8330 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
8332 <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>
8337 <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>
8338 <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>
8339 <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>
8340 <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>
8341 <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>
8342 <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>
8347 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
8353 ====Section 1.1.1====
8354 ====Section 1.1.1.1====
8357 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8359 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
8361 <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>
8364 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
8367 <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>
8368 <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>
8369 <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>
8370 <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>
8371 <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>
8377 Resolving duplicate section names
8382 <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>
8383 <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>
8388 Resolving duplicate section names with differing case (bug 10721)
8393 <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>
8394 <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>
8406 Template with sections, __NOTOC__
8413 <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>
8414 <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>
8415 <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>
8416 <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>
8421 __NOEDITSECTION__ keyword
8427 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
8428 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
8433 Link inside a section heading
8435 ==Section with a [[Main Page|link]] in it==
8437 <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>
8442 TOC regression (bug 12077)
8449 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8451 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
8453 <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>
8456 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
8459 <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>
8460 <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>
8461 <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>
8466 BUG 1219 URL next to image (good)
8468 http://example.com [[Image:foobar.jpg]]
8470 <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>
8475 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
8478 The line above must have a trailing space!
8481 But just in case it doesn't...
8483 <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>
8484 <p>The line above must have a trailing space!
8486 <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>
8487 <p>But just in case it doesn't...
8492 Header with special characters (bug 25462)
8494 The tooltips shall not show entities to the user (ie. be double escaped)
8511 <p>The tooltips shall not show entities to the user (ie. be double escaped)
8513 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8515 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
8516 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
8517 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
8518 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
8519 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
8522 <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>
8525 <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>
8528 <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>
8531 <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>
8534 <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>
8540 Headers with excess '=' characters
8541 (Are similar tests necessary beyond the 1st level?)
8545 =''italic'' heading==
8546 ==''italic'' heading=
8548 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8550 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
8551 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
8552 <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>
8553 <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>
8556 <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>
8557 <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>
8558 <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>
8559 <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>
8564 HTML headers vs TOC (bug 23393)
8565 (__NOEDITSECTION__ for clearer output, doesn't matter here)
8577 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8579 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
8581 <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>
8582 <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>
8585 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
8587 <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>
8588 <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>
8593 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
8594 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
8595 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
8596 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
8597 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
8598 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
8603 BUG 1219 URL next to image (broken)
8605 http://example.com[[Image:foobar.jpg]]
8607 <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>
8612 Bug 1186 news: in the middle of text
8614 http://en.wikinews.org/wiki/Wikinews:Workplace
8616 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
8622 Namespaced link must have a title
8631 Namespaced link must have a title (bad fragment version)
8633 [[Project:#fragment]]
8635 <p>[[Project:#fragment]]
8641 ### HTML tags and HTML attributes
8645 div with no attributes
8647 <div>HTML rocks</div>
8649 <div>HTML rocks</div>
8654 div with double-quoted attribute
8656 <div id="rock">HTML rocks</div>
8658 <div id="rock">HTML rocks</div>
8663 div with single-quoted attribute
8665 <div id='rock'>HTML rocks</div>
8667 <div id="rock">HTML rocks</div>
8672 div with unquoted attribute
8674 <div id=rock>HTML rocks</div>
8676 <div id="rock">HTML rocks</div>
8681 div with illegal double attributes
8683 <div id="a" id="b">HTML rocks</div>
8685 <div id="b">HTML rocks</div>
8689 # FIXME: produce empty string instead of "class" in the PHP parser, following
8692 div with empty attribute value, space before equals
8696 <div class =>HTML rocks</div>
8698 <div class="">HTML rocks</div>
8702 # The PHP parser escapes the opening brace to { for some reason, so
8703 # disabled this test for it.
8705 div with braces in attribute value
8709 <div title="{}">Foo</div>
8711 <div title="{}">Foo</div>
8714 # This it very inconsistent in the PHP parser: it returns
8715 # class="class" if there is a space between the name and the equal sign (see
8716 # 'div with empty attribute value, space before equals'), but strips the
8717 # attribute completely if the space is missing. We hope that not much content
8718 # depends on this, so are implementing the behavior below in Parsoid for
8719 # consistencies' sake. Disabled for the PHP parser.
8720 # FIXME: fix this behavior in the PHP parser?
8722 div with empty attribute value, no space before equals
8726 <div class=>HTML rocks</div>
8728 <div class="">HTML rocks</div>
8733 HTML multiple attributes correction
8735 <p class="error" class="awesome">Awesome!</p>
8737 <p class="awesome">Awesome!</p>
8742 Table multiple attributes correction
8745 !+ class="error" class="awesome"| status
8750 <th class="awesome"> status
8758 <DIV ID="x">HTML ROCKS</DIV>
8760 <div id="x">HTML ROCKS</div>
8765 Non-ASCII pseudo-tags are rendered as text
8774 Pseudo-tag with URL 'name' renders as url link
8776 <http://example.com/>
8778 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
8783 text with amp in the middle of nowhere
8787 <p>Remember AT&T?
8792 text with character entity: eacute
8794 I always thought é was a cute letter.
8796 <p>I always thought é was a cute letter.
8801 text with entity-escaped character entity-like string: eacute
8803 I always thought &eacute; was a cute letter.
8805 <p>I always thought &eacute; was a cute letter.
8810 text with undefined character entity: xacute
8812 I always thought &xacute; was a cute letter.
8814 <p>I always thought &xacute; was a cute letter.
8826 [[Media:Foobar.jpg]]
8828 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
8833 Media link with text
8835 [[Media:Foobar.jpg|A neat file to look at]]
8837 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
8841 # FIXME: this is still bad HTML tag nesting
8843 Media link with nasty text
8844 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
8846 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
8848 <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>
8853 Media link to nonexistent file (bug 1702)
8855 [[Media:No such.jpg]]
8857 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
8862 Image link to nonexistent file (bug 1850 - good)
8864 [[Image:No such.jpg]]
8866 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
8871 :Image link to nonexistent file (bug 1850 - bad)
8873 [[:Image:No such.jpg]]
8875 <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>
8882 Character reference normalization in link text (bug 1938)
8884 [[Main Page|this&that]]
8886 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
8893 Test for unicode normalization
8895 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
8899 (bug 19451) Links should refer to the normalized form.
8907 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8908 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8909 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8910 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8911 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8916 Empty attribute crash test (bug 2067)
8918 <font color="">foo</font>
8920 <p><font color="">foo</font>
8925 Empty attribute crash test single-quotes (bug 2067)
8927 <font color=''>foo</font>
8929 <p><font color="">foo</font>
8934 Attribute test: equals, then nothing
8936 <font color=>foo</font>
8943 Attribute test: unquoted value
8945 <font color=x>foo</font>
8947 <p><font color="x">foo</font>
8952 Attribute test: unquoted but illegal value (hash)
8954 <font color=#x>foo</font>
8956 <p><font color="#x">foo</font>
8961 Attribute test: no value
8963 <font color>foo</font>
8965 <p><font color="color">foo</font>
8970 Bug 2095: link with three closing brackets
8974 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8979 Bug 2095: link with pipe and three closing brackets
8983 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8988 Bug 2095: link with pipe and three closing brackets, version 2
8990 [[Main Page|[http://example.com/]]]
8992 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9002 Template:Dangerous attribute
9004 " onmouseover="alert(document.cookie)
9008 Template:Dangerous style attribute
9010 border-size: expression(alert(document.cookie))
9016 <div style="float: right; {{{1}}}">Magic div</div>
9020 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9022 <div title="{{test}}"></div>
9024 <div title="This is a test template"></div>
9029 Bug 2304: HTML attribute safety (dangerous template; 2309)
9031 <div title="{{dangerous attribute}}"></div>
9033 <div title=""></div>
9038 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9040 <div style="{{dangerous style attribute}}"></div>
9042 <div style="/* insecure input */"></div>
9047 Bug 2304: HTML attribute safety (safe parameter; 2309)
9049 {{div style|width: 200px}}
9051 <div style="float: right; width: 200px">Magic div</div>
9056 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9058 {{div style|width: expression(alert(document.cookie))}}
9060 <div style="/* insecure input */">Magic div</div>
9065 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9067 {{div style|"><script>alert(document.cookie)</script>}}
9069 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9074 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9076 {{div style|" ><script>alert(document.cookie)</script>}}
9078 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9083 Bug 2304: HTML attribute safety (link)
9085 <div title="[[Main Page]]"></div>
9087 <div title="[[Main Page]]"></div>
9092 Bug 2304: HTML attribute safety (italics)
9094 <div title="''foobar''"></div>
9096 <div title="''foobar''"></div>
9101 Bug 2304: HTML attribute safety (bold)
9103 <div title="'''foobar'''"></div>
9105 <div title="'''foobar'''"></div>
9111 Bug 2304: HTML attribute safety (ISBN)
9113 <div title="ISBN 1234567890"></div>
9115 <div title="ISBN 1234567890"></div>
9120 Bug 2304: HTML attribute safety (RFC)
9122 <div title="RFC 1234"></div>
9124 <div title="RFC 1234"></div>
9129 Bug 2304: HTML attribute safety (PMID)
9131 <div title="PMID 1234567890"></div>
9133 <div title="PMID 1234567890"></div>
9138 Bug 2304: HTML attribute safety (web link)
9140 <div title="http://example.com/"></div>
9142 <div title="http://example.com/"></div>
9147 Bug 2304: HTML attribute safety (named web link)
9149 <div title="[http://example.com/ link]"></div>
9151 <div title="[http://example.com/ link]"></div>
9156 Bug 3244: HTML attribute safety (extension; safe)
9158 <div style="<nowiki>background:blue</nowiki>"></div>
9160 <div style="background:blue"></div>
9165 Bug 3244: HTML attribute safety (extension; unsafe)
9167 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
9169 <div style="/* insecure input */"></div>
9173 # More MSIE fun discovered by Tom Gilder
9176 MSIE CSS safety test: spurious slash
9178 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
9180 <div style="/* insecure input */">evil</div>
9185 MSIE CSS safety test: hex code
9187 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
9189 <div style="/* insecure input */">evil</div>
9194 MSIE CSS safety test: comment in url
9196 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
9198 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
9203 MSIE CSS safety test: comment in expression
9205 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
9207 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
9213 Table attribute legitimate extension
9216 !+ style="<nowiki>color:blue</nowiki>"| status
9221 <th style="color:blue"> status
9227 Table attribute safety
9230 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
9235 <th style="/* insecure input */"> status
9241 CSS line continuation 1
9243 <div style="background-image: u\ rl(test.jpg);"></div>
9245 <div style="/* insecure input */"></div>
9250 CSS line continuation 2
9252 <div style="background-image: u\ rl(test.jpg); "></div>
9254 <div style="/* insecure input */"></div>
9265 Expansion of multi-line templates in attribute values (bug 6255)
9267 <div style="background: {{identity|#00FF00}}">-</div>
9269 <div style="background: #00FF00">-</div>
9275 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
9277 <div style="background:
9280 <div style="background: #00FF00">-</div>
9285 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
9287 <div style="background: #00FF00">-</div>
9289 <div style="background: #00FF00">-</div>
9294 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
9297 Parser hook: empty input
9310 Parser hook: empty input using terminated empty elements
9323 Parser hook: empty input using terminated empty elements (space before)
9336 Parser hook: basic input
9350 Parser hook: case insensitive
9364 Parser hook: case insensitive, redux
9377 Parser hook: nested tags
9381 <tag><tag></tag></tag>
9392 Parser hook: basic arguments
9394 <tag width=200 height = "100" depth = '50' square></tag>
9402 'square' => 'square',
9409 Parser hook: argument containing a forward slash (bug 5344)
9411 <tag filename='/tmp/bla'></tag>
9416 'filename' => '/tmp/bla',
9423 Parser hook: empty input using terminated empty elements (bug 2374)
9436 # </tag> should be output literally since there is no matching tag that begins it
9438 Parser hook: basic arguments using terminated empty elements (bug 2374)
9440 <tag width=200 height = "100" depth = '50' square/>
9450 'square' => 'square',
9459 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
9463 Parser hook: static parser hook not inside a comment
9465 <statictag>hello, world</statictag>
9466 <statictag action=flush/>
9474 Parser hook: static parser hook inside a comment
9476 <!-- <statictag>hello, world</statictag> -->
9477 <statictag action=flush/>
9483 # Nested template calls; this case was broken by Parser.php rev 1.506,
9487 Template:One-parameter
9489 (My parameter is: {{{1}}})
9493 Template:Map-one-parameter
9499 Nested template calls
9501 {{Map-one-parameter|One-parameter|param}}
9503 <p>(My parameter is: param)
9512 Sanitizer: Closing of open tags
9514 <s></s><table></table>
9516 <s></s><table></table>
9521 Sanitizer: Closing of open but not closed tags
9530 Sanitizer: Closing of closed but not open tags
9539 Sanitizer: Closing of closed but not open table tags
9541 Table not started</td></tr></table>
9543 <p>Table not started</td></tr></table>
9548 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
9550 <span id="æ: v">byte</span>[[#æ: v|backlink]]
9552 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
9557 Sanitizer: Validating the contents of the id attribute (bug 4515)
9563 Something, but definitely not <br id="9" />...
9567 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
9571 <br id="foo" /><br id="foo" />
9573 Something need to be done. foo-2 ?
9577 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
9580 <meta itemprop="hello" content="world">
9581 <meta http-equiv="refresh" content="5">
9582 <meta itemprop="hello" http-equiv="refresh" content="5">
9583 <link itemprop="hello" href="{{SERVER}}">
9584 <link rel="stylesheet" href="{{SERVER}}">
9585 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
9588 <div itemscope="itemscope">
9589 <p> <meta itemprop="hello" content="world" />
9590 <meta http-equiv="refresh" content="5">
9591 <meta itemprop="hello" content="5" />
9593 <link itemprop="hello" href="http://example.org" />
9594 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
9595 <link itemprop="hello" href="http://example.org" />
9601 Language converter: output gets cut off unexpectedly (bug 5757)
9605 this bit is safe: }-
9607 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
9609 then we get cut off here: }-
9611 all additional text is vanished
9613 <p>this bit is safe: }-
9614 </p><p>but if we add a conversion instance: xxx
9615 </p><p>then we get cut off here: }-
9616 </p><p>all additional text is vanished
9621 Self closed html pairs (bug 5487)
9624 <center><font id="bug" />Centered text</center>
9625 <div><font id="bug2" />In div text</div>
9627 <center><font id="bug" />Centered text</center>
9628 <div><font id="bug2" />In div text</div>
9637 Punctuation: nbsp before exclamation
9641 <p>C'est grave !
9646 Punctuation: CSS !important (bug 11874)
9648 <div style="width:50% !important">important</div>
9650 <div style="width:50% !important">important</div>
9655 Punctuation: CSS ! important (bug 11874; with space after)
9657 <div style="width:50% ! important">important</div>
9659 <div style="width:50% ! important">important</div>
9665 HTML bullet list, closed tags (bug 5497)
9680 HTML bullet list, unclosed tags (bug 5497)
9697 HTML ordered list, closed tags (bug 5497)
9712 HTML ordered list, unclosed tags (bug 5497)
9729 HTML nested bullet list, closed tags (bug 5497)
9754 HTML nested bullet list, open tags (bug 5497)
9779 HTML nested ordered list, closed tags (bug 5497)
9804 HTML nested ordered list, open tags (bug 5497)
9829 HTML ordered list item with parameters oddity
9831 <ol><li id="fragment">One</li></ol>
9833 <ol><li id="fragment">One</li></ol>
9838 bug 5918: autonumbering
9840 [http://first/] [http://second] [ftp://ftp]
9844 [mailto:enclosed@mail.tld With target]
9846 [mailto:enclosed@mail.tld]
9848 mailto:inline@mail.tld
9850 <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>
9851 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
9852 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
9853 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
9854 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
9860 # Security and HTML correctness
9861 # From Nick Jenkins' fuzz testing
9865 Fuzz testing: Parser13
9880 Fuzz testing: Parser14
9885 <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>
9886 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9888 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
9895 Fuzz testing: Parser14-table
9900 <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>
9901 <table style="__TOC__">
9907 # Known to produce bogus xml (extra </td>)
9909 Fuzz testing: Parser16
9929 Fuzz testing: Parser21
9932 ! irc://{{ftp://a" onmouseover="alert('hello world');"
9937 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
9947 Fuzz testing: Parser22
9949 http://===r:::https://b
9953 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9961 # Known to produce bad XML for now
9963 Fuzz testing: Parser24
9970 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9971 <br style="onmouseover='alert(document.cookie);' " />
9973 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9978 <u class="|">}}}} >
9979 <br style="onmouseover='alert(document.cookie);'" />
9981 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9990 # Note: the current result listed for this is not what the original one was,
9991 # but the original bug was JavaScript injection, which is fixed in any case.
9992 # It's not clear that the original result listed was any more correct than the
9993 # current one. Original result:
9996 # <li class="||">
9997 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9999 Fuzz testing: Parser25 (bug 6055)
10005 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10007 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10012 Fuzz testing: URL adjacent extension (with space, clean)
10015 http://example.com <nowiki>junk</nowiki>
10017 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10022 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10025 http://example.com<nowiki>junk</nowiki>
10027 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10032 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10035 http://example.com<pre>junk</pre>
10037 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10042 Fuzz testing: image with bogus manual thumbnail
10044 [[Image:foobar.jpg|thumbnail= ]]
10046 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10051 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10053 <pre dir=" "></pre>
10055 <pre dir=" "></pre>
10060 Parsing optional HTML elements (Bug 6171)
10065 <td> Some tabular data</td>
10066 <td> More tabular data ...
10067 <td> And yet som tabular data</td>
10073 <td> Some tabular data</td>
10074 <td> More tabular data ...
10075 </td><td> And yet som tabular data</td>
10082 Correct handling of <td>, <tr> (Bug 6171)
10087 <td> Some tabular data</td>
10088 <td> More tabular data ...</td>
10089 <td> And yet som tabular data</td>
10095 <td> Some tabular data</td>
10096 <td> More tabular data ...</td>
10097 <td> And yet som tabular data</td>
10105 Parsing crashing regression (fr:JavaScript)
10109 <p></body></x>
10114 Inline wiki vs wiki block nesting
10120 <p><b>Bold paragraph</b>
10121 </p><p>New wiki paragraph
10126 Inline HTML vs wiki block nesting
10134 <p><b>Bold paragraph</b>
10135 </p><p>New wiki paragraph
10139 # Original result was this:
10140 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10142 # While that might be marginally more intuitive, maybe, the six-apostrophe
10143 # construct is clearly pathological and the result stated here (which is what
10144 # the parser actually does) is about as reasonable as anything.
10146 Mixing markup for italics and bold
10149 '''bold''''''bold''bolditalics'''''
10151 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10159 Article for special page transclusion test
10163 Special page transclusion
10166 {{Special:Prefixindex/Xyzzyx}}
10168 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10173 Special page transclusion twice (bug 5021)
10176 {{Special:Prefixindex/Xyzzyx}}
10177 {{Special:Prefixindex/Xyzzyx}}
10179 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10180 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
10185 Transclusion of default MediaWiki message
10187 {{MediaWiki:Mainpage}}
10194 Transclusion of nonexistent MediaWiki message
10196 {{MediaWiki:Mainpagexxx}}
10198 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
10203 Transclusion of MediaWiki message with underscore
10205 {{MediaWiki:history_short}}
10212 Transclusion of MediaWiki message with space
10214 {{MediaWiki:history short}}
10221 Invalid header with following text
10231 Section extraction test (section 0)
10251 Section extraction test (section 1)
10273 Section extraction test (section 2)
10294 Section extraction test (section 3)
10314 Section extraction test (section 4)
10338 Section extraction test (section 5)
10358 Section extraction test (section 6)
10379 Section extraction test (section 7)
10399 Section extraction test (section 8)
10419 Section extraction test (section 9)
10440 Section extraction test (section 10)
10460 Section extraction test (nonexistent section 11)
10479 Section extraction test with bogus heading (section 1)
10484 ==bogus== not a legal section
10488 ==bogus== not a legal section
10492 Section extraction test with bogus heading (section 2)
10497 ==bogus== not a legal section
10504 Section extraction test with comment after heading (section 1)
10516 Section extraction test with comment after heading (section 2)
10528 Section extraction test with bogus <nowiki> heading (section 1)
10533 ==bogus== <nowiki>not a legal section</nowiki>
10537 ==bogus== <nowiki>not a legal section</nowiki>
10541 Section extraction test with bogus <nowiki> heading (section 2)
10546 ==bogus== <nowiki>not a legal section</nowiki>
10553 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
10554 # instead of respecting commented sections
10556 Section extraction prefixed by comment (section 1)
10567 Section extraction prefixed by comment (section 2)
10578 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
10579 # instead of respecting HTML-style headings
10581 Section extraction, mixed wiki and html (section 1)
10597 Section extraction, mixed wiki and html (section 2)
10613 # Formerly testing for bug 3342
10615 Section extraction, heading surrounded by <noinclude>
10619 <noinclude>==unmarked==</noinclude>
10625 # Test behavior of bug 19910
10627 Sectiion with all-equals
10632 The line above must have a trailing space
10635 But just in case it doesn't...
10639 But just in case it doesn't...
10643 Section replacement test (section 0)
10674 Section replacement test (section 1)
10703 Section replacement test (section 2)
10733 Section replacement test (section 3)
10764 Section replacement test (section 4)
10791 Section replacement test (section 5)
10822 Section replacement test (section 6)
10852 Section replacement test (section 7)
10883 Section replacement test (section 8)
10914 Section replacement test (section 9)
10943 Section replacement test (section 10)
10973 Section replacement test with initial whitespace (bug 13728)
10977 Preformatted initial line
10981 Preformatted initial line
10988 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11000 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11013 Section extraction, <pre> around bogus header (bug 10309)
11030 Section replacement, <pre> around bogus header (bug 10309)
11032 noxml replace=2,"xxx"
11053 Handling of 
 in URLs
11057 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11064 5 quotes, code coverage +1 line (php)
11071 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11073 5 quotes, code coverage +1 line (parsoid)
11079 <p><i><b></b></i></p>
11083 Special:Search page linking.
11087 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11099 * {{ROOTPAGENAMEE}}
11101 * {{BASEPAGENAMEE}}
11103 * {{TALKPAGENAMEE}}
11104 * {{SUBJECTPAGENAME}}
11105 * {{SUBJECTPAGENAMEE}}
11111 * {{SUBJECTSPACEE}}
11112 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11114 <ul><li> Parser test
11115 </li><li> Parser test
11116 </li><li> Parser test
11117 </li><li> Parser_test
11118 </li><li> Parser test
11119 </li><li> Parser_test
11120 </li><li> Parser test
11121 </li><li> Parser_test
11122 </li><li> Talk:Parser test
11123 </li><li> Talk:Parser_test
11124 </li><li> Parser test
11125 </li><li> Parser_test
11132 </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>
11136 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11146 image4 |300px| centre
11147 image5.svg| http://///////
11152 <ul class="gallery">
11153 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11154 <div style="height: 150px;">Image1.png</div>
11155 <div class="gallerytext">
11158 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11159 <div style="height: 150px;">Image2.gif</div>
11160 <div class="gallerytext">
11165 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11166 <div style="height: 150px;">Image3</div>
11167 <div class="gallerytext">
11170 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11171 <div style="height: 150px;">Image4</div>
11172 <div class="gallerytext">
11177 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11178 <div style="height: 150px;">Image5.svg</div>
11179 <div class="gallerytext">
11180 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
11184 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11185 <div style="height: 150px;">* image6</div>
11186 <div class="gallerytext">
11194 Gallery (with options)
11196 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
11197 File:Nonexistant.jpg|caption
11198 File:Nonexistant.jpg
11199 image:foobar.jpg|some '''caption''' [[Main Page]]
11201 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
11204 <ul class="gallery" style="max-width: 226px;_width: 226px;">
11205 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
11206 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11207 <div style="height: 70px;">Nonexistant.jpg</div>
11208 <div class="gallerytext">
11213 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11214 <div style="height: 70px;">Nonexistant.jpg</div>
11215 <div class="gallerytext">
11218 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11219 <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>
11220 <div class="gallerytext">
11221 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11225 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11226 <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>
11227 <div class="gallerytext">
11230 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
11231 <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>
11232 <div class="gallerytext">
11242 Gallery with wikitext inside caption
11245 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
11246 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
11249 <ul class="gallery">
11250 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11251 <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>
11252 <div class="gallerytext">
11253 <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>
11257 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11258 <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>
11259 <div class="gallerytext">
11260 <p>This is a test template
11269 gallery (with showfilename option)
11271 <gallery showfilename>
11272 File:Nonexistant.jpg|caption
11273 File:Nonexistant.jpg
11274 image:foobar.jpg|some '''caption''' [[Main Page]]
11278 <ul class="gallery">
11279 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11280 <div style="height: 150px;">Nonexistant.jpg</div>
11281 <div class="gallerytext">
11282 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11287 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11288 <div style="height: 150px;">Nonexistant.jpg</div>
11289 <div class="gallerytext">
11290 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
11294 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11295 <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>
11296 <div class="gallerytext">
11297 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11298 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11302 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11303 <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>
11304 <div class="gallerytext">
11305 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
11314 Gallery (with namespace-less filenames)
11317 File:Nonexistant.jpg
11323 <ul class="gallery">
11324 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11325 <div style="height: 150px;">Nonexistant.jpg</div>
11326 <div class="gallerytext">
11329 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11330 <div style="height: 150px;">Nonexistant.jpg</div>
11331 <div class="gallerytext">
11334 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11335 <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>
11336 <div class="gallerytext">
11339 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11340 <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>
11341 <div class="gallerytext">
11349 HTML Hex character encoding (spells the word "JavaScript")
11351 JavaScript
11353 <p>JavaScript
11358 HTML Hex character encoding bogus encoding (bug 26437 regression check)
11362 <p>&#xsee;&#XSEE;
11367 HTML Hex character encoding mixed case
11376 __FORCETOC__ override
11388 ISBN 978-0-1234-56 789
11390 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
11395 ISBN followed by 5 spaces
11406 ISBN ISBN 1234567890
11408 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11413 Bug 22905: <abbr> followed by ISBN followed by </a>
11415 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
11417 <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>
11426 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
11431 Double RFC with a wiki link
11435 <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>
11444 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
11449 Centre-aligned image
11451 [[Image:foobar.jpg|centre]]
11453 <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>
11460 [[Image:foobar.jpg|none]]
11462 <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>
11467 Width + Height sized image (using px) (height is ignored)
11469 [[Image:foobar.jpg|640x480px]]
11471 <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>
11476 Width-sized image (using px, no following whitespace)
11478 [[Image:foobar.jpg|640px]]
11480 <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>
11485 Width-sized image (using px, with following whitespace - test regression from r39467)
11487 [[Image:foobar.jpg|640px ]]
11489 <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>
11494 Width-sized image (using px, with preceding whitespace - test regression from r39467)
11496 [[Image:foobar.jpg| 640px]]
11498 <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>
11503 Another italics / bold test
11511 # Note the results may be incorrect, as parserTest output included this:
11512 # XML error: Mismatched tag at byte 6120:
11513 # ...<dd> </dt></dl> </dd...
11521 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
11532 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
11534 Images with the "|" character in the comment
11536 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
11538 <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>
11543 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
11545 <html><script>alert(1);</script></html>
11547 <p><html><script>alert(1);</script></html>
11552 HTML with raw HTML ($wgRawHtml==true)
11556 <html><script>alert(1);</script></html>
11558 <p><script>alert(1);</script>
11563 Parents of subpages, one level up
11565 subpage title=[[Subpage test/L1/L2/L3]]
11569 <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>
11575 Parents of subpages, one level up, not named
11577 subpage title=[[Subpage test/L1/L2/L3]]
11581 <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>
11588 Parents of subpages, two levels up
11590 subpage title=[[Subpage test/L1/L2/L3]]
11596 <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
11597 </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>
11602 Parents of subpages, two levels up, without trailing slash or name.
11604 subpage title=[[Subpage test/L1/L2/L3]]
11613 Parents of subpages, two levels up, with lots of extra trailing slashes.
11615 subpage title=[[Subpage test/L1/L2/L3]]
11619 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
11624 Definition list code coverage
11630 <dl><dt> title  </dt><dd> def
11631 </dd><dt> title </dt><dd> def
11632 </dd><dt>title</dt><dd> def
11638 Don't fall for the self-closing div
11640 <div>hello world</div/>
11642 <div>hello world</div>
11651 <p>[[:Template:Msg]]
11660 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
11664 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
11666 Always escape literal '>' in output, not just after '<'
11680 <p>This is a test template
11681 This is a test template
11693 Inclusion of !userCanEdit() content
11697 <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>
11703 Out-of-order TOC heading levels
11712 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11714 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
11716 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
11717 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
11720 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
11722 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
11723 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
11728 <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>
11729 <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>
11730 <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>
11731 <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>
11732 <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>
11733 <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>
11739 ISBN with a dummy number
11749 ISBN with space-delimited number
11753 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
11759 ISBN with multiple spaces, no number
11778 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11779 </p><p>ISBN 12345678901
11785 ISBN with trailing year (bug 8110)
11787 ISBN 1-234-56789-0 - 2006
11789 ISBN 1 234 56789 0 - 2006
11791 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
11792 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
11800 {{anchorencode:foo bar©#%n}}
11802 <p>foo_bar.C2.A9.23.25n
11807 anchorencode trims spaces
11809 {{anchorencode: __pretty__please__}}
11816 anchorencode deals with links
11818 {{anchorencode: [[hello|world]] [[hi]]}}
11825 anchorencode deals with templates
11827 {{anchorencode: {{Foo}} }}
11834 anchorencode encodes like the TOC generator: (bug 18431)
11836 === _ +:.3A%3A&&]] ===
11837 {{anchorencode: _ +:.3A%3A&&]] }}
11840 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
11841 <p>.2B:.3A.253A.26.26.5D.5D
11845 # Expected output in the following test is not necessarily expected (there
11846 # should probably be <p> tags inside the <blockquote> in the output) -- it's
11847 # only testing for well-formedness.
11849 Bug 6200: blockquotes and paragraph formatting
11869 Bug 8293: Use of center tag ruins paragraph formatting
11890 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
11894 <span><s>x</span></s>
11896 <p><span><s>x</span></s></span>
11901 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
11905 <span><s>x</span></s>
11907 <p><span><s>x</s></span><s></s>
11912 ### Language variants related tests
11915 Self-link in language variants
11917 title=[[Dunav]] language=sr
11919 Both [[Dunav]] and [[Дунав]] are names for this river.
11921 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
11932 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
11934 title=[[Duna]] language=sr
11936 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
11938 <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.
11943 Link to pages in language variants
11947 Main Page can be written as [[Маин Паге]]
11949 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
11955 Multiple links to pages in language variants
11959 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
11961 <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>.
11967 Simple template in language variants
11973 <p>This is a test template
11979 Template with explicit namespace in language variants
11985 <p>This is a test template
11991 Basic test for template parameter in language variants
11995 {{парамтест|param=foo}}
11997 <p>This is a test template with parameter foo
12003 Simple category in language variants
12007 [[Category:МедиаWики Усер'с Гуиде]]
12009 <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>
12026 Don't convert blue categorylinks to another variant (bug 33210)
12030 [[A]][[Category:分类]]
12032 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12037 Stripping -{}- tags (language variants)
12041 Latin proverb: -{Ne nuntium necare}-
12043 <p>Latin proverb: Ne nuntium necare
12049 Prevent conversion with -{}- tags (language variants)
12051 language=sr variant=sr-ec
12053 Latinski: -{Ne nuntium necare}-
12055 <p>Латински: Ne nuntium necare
12061 Prevent conversion of text with -{}- tags (language variants)
12063 language=sr variant=sr-ec
12065 Latinski: -{Ne nuntium necare}-
12067 <p>Латински: Ne nuntium necare
12073 Prevent conversion of links with -{}- tags (language variants)
12075 language=sr variant=sr-ec
12079 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12085 -{}- tags within headlines (within html for parserConvert())
12087 language=sr variant=sr-ec
12091 <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>
12097 Explicit definition of language variant alternatives
12099 language=zh variant=zh-tw
12101 -{zh:China;zh-tw:Taiwan}-, not China
12103 <p>Taiwan, not China
12109 Conversion around HTML tags
12111 language=sr variant=sr-ec
12113 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12114 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12117 <span title="ЛаCтин">ски</span>
12123 Explicit session-wise language variant mapping (A flag and - flag)
12125 language=zh variant=zh-tw
12127 Taiwan is not China.
12128 But -{A|zh:China;zh-tw:Taiwan}- is China,
12129 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
12130 and -{China}- is China.
12132 <p>Taiwan is not China.
12133 But Taiwan is Taiwan,
12134 (This should be stripped!)
12135 and China is China.
12140 Explicit session-wise language variant mapping (H flag for hide)
12142 language=zh variant=zh-tw
12144 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
12147 <p>(This should be stripped!)
12153 Adding explicit conversion rule for title (T flag)
12155 language=zh variant=zh-tw showtitle
12157 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12160 <p>Should be stripped!
12165 Testing that changing the language variant here in the tests actually works
12167 language=zh variant=zh showtitle
12169 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12172 <p>Should be stripped!
12177 Recursive conversion of alt and title attrs shouldn't clear converter state
12179 language=zh variant=zh-cn showtitle
12181 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
12182 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
12186 Should be stripped<span title="Exclamation">!</span>
12191 Bug 24072: more test on conversion rule for title
12193 language=zh variant=zh-tw showtitle
12195 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
12196 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
12199 <p>This should be stripped!
12200 This won't take interferes with the title rule.
12205 Partly disable title conversion if variant == main language code
12207 language=zh variant=zh title=[[ZH]] showtitle
12209 -{T|zh-cn:CN;zh-tw:TW}-
12217 Partly disable title conversion if variant == main language code, more
12219 language=zh variant=zh title=[[ZH]] showtitle
12229 Raw output of variant escape tags (R flag)
12231 language=zh variant=zh-tw
12233 Raw: -{R|zh:China;zh-tw:Taiwan}-
12235 <p>Raw: zh:China;zh-tw:Taiwan
12240 Nested using of manual convert syntax
12242 language=zh variant=zh-hk
12244 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
12246 <p>Nested: Hello Hong Kong!
12251 Proper conversion of text in external links
12253 language=sr variant=sr-ec
12255 http://www.google.com
12256 gopher://www.google.com
12257 [http://www.google.com http://www.google.com]
12258 [gopher://www.google.com gopher://www.google.com]
12259 [https://www.google.com irc://www.google.com]
12260 [ftp://www.google.com www.google.com/ftp://dir]
12261 [//www.google.com www.google.com]
12263 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12264 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12265 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
12266 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
12267 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
12268 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
12269 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
12274 Do not convert roman numbers to language variants
12276 language=sr variant=sr-ec
12280 <p>Фридрих IV је цар.
12285 Unclosed language converter markup "-{"
12296 Don't convert raw rule "-{R|=>}-" to "=>"
12313 Bug 529: Uncovered bullet
12323 # Plain MediaWiki does not remove empty lists, but tidy actually does.
12324 # Templates in Wikipedia rely on this behavior, as tidy has always been
12325 # enabled there. These tests are normally run *without* tidy, so specify the
12326 # full output here.
12327 # To test realistic parsing behavior, apply a tidy-like transformation to both
12328 # the expected output and your parser's output.
12330 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
12332 ******* Foo {{bullet}}
12334 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
12347 Bug 529: Uncovered table already at line-start
12370 Bug 529: Uncovered bullet in parser function result
12372 * Foo {{lc:{{bullet}} }}
12381 Bug 5678: Double-parsed template argument
12383 {{lc:{{{1}}}|hello}}
12390 Bug 5678: Double-parsed template invocation
12392 {{lc:{{paramtest {{!}} param = hello }} }}
12394 <p>{{paramtest | param = hello }}
12399 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
12402 title=[[Main Page]]
12404 {{PRVNÍVELKÉ:ěščř}}
12405 {{prvnívelké:ěščř}}
12425 Morwen/13: Unclosed link followed by heading
12432 <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>
12437 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
12444 <h1><span class="mw-headline" id="heading">heading</span></h1>
12449 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
12456 <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>
12471 Paragraphs inside divs (no extra line breaks)
12483 Paragraphs inside divs (extra line break on open)
12498 Paragraphs inside divs (extra line break on close)
12513 Paragraphs inside divs (extra line break on open and close)
12530 Nesting tags, paragraphs on lines which begin with <div>
12534 <div></div><strong>A
12543 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
12545 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
12549 <blockquote>Line one
12551 Line two</blockquote>
12553 <blockquote>Line one
12554 Line two</blockquote>
12559 Bug 6200: paragraphs inside blockquotes (extra line break on open)
12566 Line two</blockquote>
12571 Line two</blockquote>
12576 Bug 6200: paragraphs inside blockquotes (extra line break on close)
12580 <blockquote>Line one
12585 <blockquote>Line one
12593 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
12612 Paragraphs inside blockquotes/divs (no extra line breaks)
12614 <blockquote><div>Line one
12616 Line two</div></blockquote>
12618 <blockquote><div>Line one
12619 Line two</div></blockquote>
12624 Paragraphs inside blockquotes/divs (extra line break on open)
12629 Line two</div></blockquote>
12634 Line two</div></blockquote>
12639 Paragraphs inside blockquotes/divs (extra line break on close)
12641 <blockquote><div>Line one
12644 </div></blockquote>
12646 <blockquote><div>Line one
12649 </div></blockquote>
12654 Paragraphs inside blockquotes/divs (extra line break on open and close)
12660 </div></blockquote>
12666 </div></blockquote>
12671 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
12673 wgLinkHolderBatchSize=0
12679 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
12680 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
12681 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
12686 Free external link invading image caption
12688 [[Image:Foobar.jpg|thumb|http://x|hello]]
12690 <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>
12695 Bug 15196: localised external link numbers
12699 [http://en.wikipedia.org/]
12701 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
12706 Multibyte character in padleft
12708 {{padleft:-Hello|7|Æ}}
12715 Multibyte character in padright
12717 {{padright:Hello-|7|Æ}}
12724 formatdate parser function
12726 {{#formatdate:2009-03-24}}
12728 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
12733 formatdate parser function, with default format
12735 {{#formatdate:2009-03-24|mdy}}
12737 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
12742 Spacing of numbers in formatted dates
12744 {{#formatdate:January 15}}
12746 <p><span class="mw-formatted-date" title="01-15">January 15</span>
12751 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
12753 language=nl title=[[MediaWiki:Common.css]]
12755 {{#formatdate:2009-03-24|dmy}}
12757 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
12770 Edit comment with link
12774 I like the [[Main Page]] a lot
12776 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
12780 Edit comment with link and link text
12784 I like the [[Main Page|best pages]] a lot
12786 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
12790 Edit comment with link and link text with suffix
12794 I like the [[Main Page|best page]]s a lot
12796 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
12800 Edit comment with section link (non-local, eg in history list)
12802 comment title=[[Main Page]]
12804 /* External links */ removed bogus entries
12806 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12810 Edit comment with section link and text before it (non-local, eg in history list)
12812 comment title=[[Main Page]]
12814 pre-comment text /* External links */ removed bogus entries
12816 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>
12820 Edit comment with section link (local, eg in diff view)
12822 comment local title=[[Main Page]]
12824 /* External links */ removed bogus entries
12826 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12830 Edit comment with subpage link (bug 14080)
12834 title=[[Subpage test]]
12836 Poked at a [[/subpage]] here...
12838 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
12842 Edit comment with subpage link and link text (bug 14080)
12846 title=[[Subpage test]]
12848 Poked at a [[/subpage|neat little page]] here...
12850 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
12854 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
12857 title=[[Subpage test]]
12859 Poked at a [[/subpage]] here...
12861 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
12865 Edit comment with bare anchor link (local, as on diff)
12869 title=[[Main Page]]
12873 <a href="#section">#section</a>
12877 Edit comment with bare anchor link (non-local, as on history)
12880 title=[[Main Page]]
12884 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
12888 Anchor starting with underscore
12892 <p><a href="#_ref">One</a>
12897 Id starting with underscore
12899 <div id="_ref"></div>
12901 <div id="_ref"></div>
12906 Space normalisation on autocomment (bug 22784)
12909 title=[[Main Page]]
12911 /* __hello__world__ */
12913 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
12917 percent-encoding and + signs in comments (Bug 26410)
12921 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
12923 <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>
12927 Bad images - basic functionality
12936 Bad images - bug 16039: text after bad image disappears
12950 Verify that displaytitle works (bug #22501) no displaytitle
12954 wgAllowDisplayTitle=true
12955 wgRestrictDisplayTitle=false
12957 this is not the the title
12960 <p>this is not the the title
12965 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
12970 wgAllowDisplayTitle=true
12971 wgRestrictDisplayTitle=false
12973 this is not the the title
12974 {{DISPLAYTITLE:whatever}}
12977 <p>this is not the the title
12982 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
12987 wgAllowDisplayTitle=true
12988 wgRestrictDisplayTitle=true
12990 this is not the the title
12991 {{DISPLAYTITLE:whatever}}
12994 <p>this is not the the title
12999 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13004 wgAllowDisplayTitle=true
13005 wgRestrictDisplayTitle=true
13007 this is not the the title
13008 {{DISPLAYTITLE:screen}}
13011 <p>this is not the the title
13016 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13021 wgAllowDisplayTitle=false
13023 this is not the the title
13024 {{DISPLAYTITLE:screen}}
13027 <p>this is not the the title
13028 <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>
13033 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13038 wgAllowDisplayTitle=false
13040 this is not the the title
13043 <p>this is not the the title
13048 preload: check <noinclude> and <includeonly>
13052 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13058 preload: check <onlyinclude>
13062 Goodbye <onlyinclude>Hello world</onlyinclude>
13068 preload: can pass tags through if we want to
13072 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13074 <includeonly>Hello world</includeonly>
13078 preload: check that it doesn't try to do tricks
13082 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13084 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13088 Play a bit with r67090 and bug 3158
13092 <div style="width:50% !important"> </div>
13093 <div style="width:50% !important"> </div>
13094 <div style="width:50% !important"> </div>
13095 <div style="border : solid;"> </div>
13097 <div style="width:50% !important"> </div>
13098 <div style="width:50% !important"> </div>
13099 <div style="width:50% !important"> </div>
13100 <div style="border : solid;"> </div>
13105 HTML5 data attributes
13107 <span data-foo="bar">Baz</span>
13108 <p data-abc-def_hij="">Quuz</p>
13110 <p><span data-foo="bar">Baz</span>
13112 <p data-abc-def_hij="">Quuz</p>
13117 percent-encoding and + signs in internal links (Bug 26410)
13119 [[User:+%]] [[Page+title%]]
13120 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
13121 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
13122 [[%33%45]] [[%33%45+]]
13124 <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>
13125 <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>
13126 <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>
13127 <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>
13132 Special characters in embedded file links (bug 27679)
13134 [[File:Contains & ampersand.jpg]]
13135 [[File:Does not exist.jpg|Title with & ampersand]]
13137 <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>
13138 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
13144 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
13146 Text's been normalized?
13148 <p>Text's been normalized?
13153 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
13155 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
13157 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
13162 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
13164 [http://www.example.org/ ideograms]
13166 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
13171 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
13173 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
13175 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
13199 Bug 31098 Template which includes system messages which includes the template
13203 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13204 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
13209 Bug31490 Turkish: ucfirst 'blah'
13220 Bug31490 Turkish: ucfirst 'ix'
13231 Bug31490 Turkish: lcfirst 'BLAH'
13242 Bug31490 Turkish: ucfırst (with a dotless i)
13248 <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>
13253 Bug31490 ucfırst (with a dotless i) with English language
13259 <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>
13264 Bug 26375: TOC with italics
13266 title=[[Main Page]]
13269 == ''Lost'' episodes ==
13271 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13273 <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>
13276 <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>
13281 Bug 26375: TOC with bold
13283 title=[[Main Page]]
13286 == '''should be bold''' then normal text ==
13288 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13290 <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>
13293 <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>
13298 Bug 33845: Headings become cursive in TOC when they contain an image
13300 title=[[Main Page]]
13303 == Image [[Image:foobar.jpg]] ==
13305 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13307 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
13310 <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>
13315 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
13317 title=[[Main Page]]
13320 == <blockquote>Quote</blockquote> ==
13322 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13324 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
13327 <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>
13332 Unclosed tags in TOC
13334 title=[[Main Page]]
13338 <small>Hanc marginis exiguitas non caperet.</small>
13341 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13343 <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>
13346 <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>
13347 <p><small>Hanc marginis exiguitas non caperet.</small>
13353 Multiple tags in TOC
13356 == <i>Foo</i> <b>Bar</b> ==
13358 == <i>Foo</i> <blockquote>Bar</blockquote> ==
13360 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13362 <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>
13363 <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>
13366 <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>
13367 <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>
13372 Tags with parameters in TOC
13375 == <sup class="in-h2">Hello</sup> ==
13377 == <sup class="a > b">Evilbye</sup> ==
13379 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13381 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
13382 <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>
13385 <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>
13386 <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>
13391 span tags with directionality in TOC
13394 == <span dir="ltr">C++</span> ==
13396 == <span dir="rtl">זבנג!</span> ==
13398 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
13400 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
13402 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
13404 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
13406 <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>
13407 <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>
13408 <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>
13409 <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>
13410 <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>
13413 <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>
13414 <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>
13415 <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>
13416 <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>
13417 <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>
13424 == {{int:headline_sample}} ==
13428 Bug 32057: Title needed when expanding <h> nodes.
13430 title=[[Main Page]]
13434 <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>
13439 Strip marker in urlencode
13441 {{urlencode:x<nowiki/>y}}
13442 {{urlencode:x<nowiki/>y|wiki}}
13443 {{urlencode:x<nowiki/>y|path}}
13470 Strip marker in formatNum
13472 {{formatnum:1<nowiki/>2}}
13473 {{formatnum:1<nowiki/>2|R}}
13481 Check noCommafy in formatNum
13485 {{formatnum:123456.78}}
13486 {{formatnum:123456.78|NOSEP}}
13494 Strip marker in grammar
13498 {{grammar:elative|foo<nowiki/>bar}}
13505 Strip marker in padleft
13507 {{padleft:|2|x<nowiki/>y}}
13514 Strip marker in padright
13516 {{padright:|2|x<nowiki/>y}}
13523 Strip marker in anchorencode
13525 {{anchorencode:x<nowiki/>y}}
13532 nowiki inside link inside heading (bug 18295)
13534 ==[[foo|x<nowiki>y</nowiki>z]]==
13536 <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>
13541 new support for bdi element (bug 31817)
13543 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13545 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
13550 Ignore pipe between table row attributes
13554 |- id=foo | style='color: red'
13562 <tr id="foo" style="color: red">
13569 Gallery override link with WikiLink (bug 34852)
13572 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
13575 <ul class="gallery">
13576 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13577 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/InterWikiLink"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
13578 <div class="gallerytext">
13588 Gallery override link with absolute external link (bug 34852)
13591 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
13594 <ul class="gallery">
13595 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13596 <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>
13597 <div class="gallerytext">
13607 Gallery override link with malicious javascript (bug 34852)
13610 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
13613 <ul class="gallery">
13614 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13615 <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>
13616 <div class="gallerytext">
13626 Gallery with invalid title as link (bug 43964)
13629 File:foobar.jpg|link=<
13632 <ul class="gallery">
13633 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
13634 <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>
13635 <div class="gallerytext">
13643 Language parser function
13652 Padleft and padright as substr
13654 {{padleft:|3|abcde}}
13655 {{padright:|3|abcde}}
13663 Bug 34939 - Case insensitive link parsing ([HttP://])
13665 [HttP://MediaWiki.Org/]
13667 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
13672 Bug 34939 - Case insensitive link parsing ([HttP:// title])
13674 [HttP://MediaWiki.Org/ MediaWiki]
13676 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
13681 Bug 34939 - Case insensitive link parsing (HttP://)
13683 HttP://MediaWiki.Org/
13685 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
13690 ### Parsoids-specific tests
13691 ### Parsoid-PHP parser incompatibilities
13694 1. SOL-sensitive wikitext tokens as template-args
13696 parsoid=wt2html,wt2wt
13702 <span about="#mwt1" typeof="mw:Object/Template">
13703 </span><ul about="#mwt1"><li>a</li></ul>
13704 <span about="#mwt2" typeof="mw:Object/Template">
13705 </span><ol about="#mwt2"><li>a</li></ol>
13706 <span about="#mwt3" typeof="mw:Object/Template">
13707 </span><dl about="#mwt3"><dd>a</dd></dl>
13710 #### The following section of tests are primarily to test
13711 #### wikitext escaping capabilities of Parsoid. Given that
13712 #### escaping can be done any number of ways, the wikitext (input)
13713 #### is always adjusted to reflect how Parsoid adds nowiki
13716 #### We are marking several tests as parsoid-only since the
13717 #### HTML in the result section is different from what the
13718 #### PHP parser generates for it.
13721 #### --------------- Headings ---------------
13723 #### 1. Nested inside html <h1>=foo=</h1>
13724 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
13725 #### 3. Nested inside html with wikitext split by html tags
13726 #### 4. No escape needed
13727 #### 5. Empty headings <h1></h1>
13728 #### 6. Heading chars in SOL context
13729 #### ----------------------------------------
13731 Headings: 0. Unnested
13735 <nowiki>=foo=</nowiki>
13737 <nowiki> =foo= </nowiki>
13739 <nowiki>=foo=</nowiki>
13741 =foo''a''<nowiki>=</nowiki>
13743 <p><span typeof="mw:Nowiki">=foo=</span></p>
13745 <p><span typeof="mw:Nowiki"> =foo= </span>
13747 <span typeof="mw:Nowiki">=foo=</span></p>
13749 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
13753 Headings: 1. Nested inside html
13757 =<nowiki>=foo=</nowiki>=
13758 ==<nowiki>=foo=</nowiki>==
13759 ===<nowiki>=foo=</nowiki>===
13760 ====<nowiki>=foo=</nowiki>====
13761 =====<nowiki>=foo=</nowiki>=====
13762 ======<nowiki>=foo=</nowiki>======
13764 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
13765 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
13766 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
13767 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
13768 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
13769 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
13773 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
13778 <nowiki>*bar</nowiki>
13782 <nowiki>=bar=</nowiki>
13790 Headings: 3. Nested inside html with wikitext split by html tags
13794 =='''bold'''<nowiki>foo=</nowiki>=
13796 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
13800 Headings: 4a. No escaping needed (testing just h1 and h2)
13811 =<nowiki>=</nowiki>=
13819 <h1><i>=</i>foo=</h1>
13820 <h1><span typeof="mw:Nowiki">=</span></h1>
13824 Headings: 4b. No escaping needed (inside p-tags)
13839 Headings: 5. Empty headings
13847 =====<nowiki/>=====
13848 ======<nowiki/>======
13859 Headings: 6. Heading chars in SOL context
13863 <!--cmt--><nowiki>=h1=</nowiki>
13864 <!--cmt--><nowiki> =h1= </nowiki>
13866 <p><!--cmt--><span typeof="mw:Nowiki">=h1=</span>
13867 <!--cmt--><span typeof="mw:Nowiki"> =h1= </span></p>
13870 #### --------------- Lists ---------------
13871 #### 0. Outside nests (*foo, etc.)
13872 #### 1. Nested inside html <ul><li>*foo</li></ul>
13873 #### 2. Inside definition lists
13874 #### 3. Only bullets at start should be escaped
13875 #### 4. No escapes needed
13876 #### 5. No unnecessary escapes
13877 #### 6. Escape bullets in SOL position
13878 #### 7. Escape bullets in a multi-line context
13879 #### ----------------------------------------
13882 Lists: 0. Outside nests
13884 <nowiki>*foo</nowiki>
13886 <nowiki>#foo</nowiki>
13894 Lists: 1. Nested inside html
13896 *<nowiki>*foo</nowiki>
13898 *<nowiki>#foo</nowiki>
13900 *<nowiki>:foo</nowiki>
13902 *<nowiki>;foo</nowiki>
13904 #<nowiki>*foo</nowiki>
13906 #<nowiki>#foo</nowiki>
13908 #<nowiki>:foo</nowiki>
13910 #<nowiki>;foo</nowiki>
13932 Lists: 2. Inside definition lists
13934 ;<nowiki>;foo</nowiki>
13936 ;<nowiki>:foo</nowiki>
13938 ;<nowiki>:foo</nowiki>
13941 :<nowiki>:foo</nowiki>
13956 Lists: 3. Only bullets at start of text should be escaped
13958 *<nowiki>*foo*bar</nowiki>
13960 *<nowiki>*foo</nowiki>''it''*bar
13964 <ul><li>*foo<i>it</i>*bar
13970 Lists: 4. No escapes needed
13982 <ul><li><i>foo</i>*bar
13984 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
13989 Lists: 5. No unnecessary escapes
13991 * bar <span><nowiki>[[foo]]</nowiki></span>
13993 *=bar <span><nowiki>[[foo]]</nowiki></span>
13995 *[[bar <span><nowiki>[[foo]]</nowiki></span>
13997 *]]bar <span><nowiki>[[foo]]</nowiki></span>
13999 *=bar <span>foo]]</span>=
14003 <ul><li> bar <span>[[foo]]</span>
14005 <ul><li>=bar <span>[[foo]]</span>
14007 <ul><li>[[bar <span>[[foo]]</span>
14009 <ul><li>]]bar <span>[[foo]]</span>
14011 <ul><li>=bar <span>foo]]</span>=
14013 <ul><li> <s></s>: a
14019 Lists: 6. Escape bullets in SOL position
14023 <!--cmt--><nowiki>*foo</nowiki>
14025 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
14029 Lists: 7. Escape bullets in a multi-line context
14039 #### --------------- HRs ---------------
14040 #### 1. Single line
14041 #### -----------------------------------
14044 HRs: 1. Single line
14048 ----<nowiki>----</nowiki>
14052 <hr><span typeof="mw:Nowiki">----</span>
14057 #### --------------- Tables ---------------
14058 #### 1a. Simple example
14059 #### 1b. No escaping needed (!foo)
14060 #### 1c. No escaping needed (|foo)
14061 #### 1d. No escaping needed (|}foo)
14063 #### 2a. Nested in td (<td>foo|bar</td>)
14064 #### 2b. Nested in td (<td>foo||bar</td>)
14065 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
14067 #### 3a. Nested in th (<th>foo!bar</th>)
14068 #### 3b. Nested in th (<th>foo!!bar</th>)
14069 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
14073 #### 4c. No escaping needed
14074 #### --------------------------------------
14077 Tables: 1a. Simple example
14088 Tables: 1b. No escaping needed
14097 Tables: 1c. No escaping needed
14106 Tables: 1d. No escaping needed
14115 Tables: 2a. Nested in td
14120 |<nowiki>foo|bar</nowiki>
14124 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
14128 Tables: 2b. Nested in td
14133 |<nowiki>foo||bar</nowiki>
14134 |''it''<nowiki>foo||bar</nowiki>
14138 <td><span typeof="mw:Nowiki">foo||bar</span></td>
14139 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
14143 Tables: 2c. Nested in td -- no escaping needed
14151 <table><tbody><tr><td>foo!!bar
14152 </td></tr></tbody></table>
14157 Tables: 3a. Nested in th
14165 <table><tbody><tr><th>foo!bar
14166 </th></tr></tbody></table>
14171 Tables: 3b. Nested in th
14176 !<nowiki>foo!!bar</nowiki>
14180 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
14185 Tables: 3c. Nested in th -- no escaping needed
14190 !<nowiki>foo||bar</nowiki>
14194 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
14198 Tables: 4a. Escape -
14206 |<nowiki>-bar</nowiki>
14210 <tr><th>-bar</th></tr>
14212 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
14216 Tables: 4b. Escape +
14224 |<nowiki>+bar</nowiki>
14228 <tr><th>+bar</th></tr>
14230 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
14234 Tables: 4c. No escaping needed
14248 <tr><td>foo-bar</td><td>foo+bar</td></tr>
14249 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
14253 ### SSS FIXME: Disabled right now because accurate html2wt
14254 ### on this snippet requires data-parsoid flags that we've
14255 ### stripped out of these tests. We should scheme how we
14256 ### we want to handle these kind of tests that require
14257 ### data-parsoid flags for accurate html2wt serialization
14260 Tables: 4d. No escaping needed
14278 #### --------------- Links ---------------
14279 #### 1. Quote marks in link text
14280 #### 2. Wikilinks: Escapes needed
14281 #### 3. Wikilinks: No escapes needed
14282 #### 4. Extlinks: Escapes needed
14283 #### 5. Extlinks: No escapes needed
14284 #### --------------------------------------
14286 Links 1. Quote marks in link text
14290 [[Foo|<nowiki>Foo''boo''</nowiki>]]
14292 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
14296 Links 2. WikiLinks: Escapes needed
14300 [[Foo|<nowiki>[Foobar]</nowiki>]]
14301 [[Foo|<nowiki>Foobar]</nowiki>]]
14302 [[Foo|x [Foobar] x]]
14303 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
14304 [[Foo|<nowiki>[[Bar]]</nowiki>]]
14305 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
14306 [[Foo|<nowiki>|Bar</nowiki>]]
14307 [[Foo|<nowiki>]]bar</nowiki>]]
14308 [[Foo|<nowiki>[[bar</nowiki>]]
14309 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
14311 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
14312 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
14313 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
14314 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
14315 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
14316 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
14317 <a href="Foo" rel="mw:WikiLink">|Bar</a>
14318 <a href="Foo" rel="mw:WikiLink">]]bar</a>
14319 <a href="Foo" rel="mw:WikiLink">[[bar</a>
14320 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
14324 Links 3. WikiLinks: No escapes needed
14331 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
14332 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
14336 Links 4. ExtLinks: Escapes needed
14340 [http://google.com <nowiki>[google]</nowiki>]
14341 [http://google.com <nowiki>google]</nowiki>]
14343 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
14344 <a href="http://google.com" rel="mw:ExtLink">google]</a>
14348 Links 5. ExtLinks: No escapes needed
14352 [http://google.com [google]
14354 <a href="http://google.com" rel="mw:ExtLink">[google</a>
14357 #### --------------- Quotes ---------------
14358 #### 1. Quotes inside <b> and <i>
14359 #### 2. Link fragments separated by <i> and <b> tags
14360 #### 3. Link fragments inside <i> and <b>
14361 #### --------------------------------------
14363 1. Quotes inside <b> and <i>
14365 ''<nowiki>'foo'</nowiki>''
14366 ''<nowiki>''foo''</nowiki>''
14367 ''<nowiki>'''foo'''</nowiki>''
14368 '''<nowiki>'foo'</nowiki>'''
14369 '''<nowiki>''foo''</nowiki>'''
14370 '''<nowiki>'''foo'''</nowiki>'''
14371 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
14379 <b>foo'<i>bar'</i>baz</b>
14384 2. Link fragments separated by <i> and <b> tags
14386 [[''foo''<nowiki>hello]]</nowiki>
14388 [['''foo'''<nowiki>hello]]</nowiki>
14390 <p>[[<i>foo</i>hello]]
14391 </p><p>[[<b>foo</b>hello]]
14396 2. Link fragments inside <i> and <b>
14397 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
14398 this is one of the shortcomings of this format)
14400 ''[[foo''<nowiki>]]</nowiki>
14402 '''[[foo'''<nowiki>]]</nowiki>
14405 </p><p><b>[[foo</b>]]
14409 #### --------------- Paragraphs ---------------
14410 #### 1. No unnecessary escapes
14411 #### --------------------------------------
14414 1. No unnecessary escapes
14416 bar <span><nowiki>[[foo]]</nowiki></span>
14418 =bar <span><nowiki>[[foo]]</nowiki></span>
14420 [[bar <span><nowiki>[[foo]]</nowiki></span>
14422 ]]bar <span><nowiki>[[foo]]</nowiki></span>
14424 =bar <span>foo]]</span><nowiki>=</nowiki>
14426 <p>bar <span>[[foo]]</span>
14427 </p><p>=bar <span>[[foo]]</span>
14428 </p><p>[[bar <span>[[foo]]</span>
14429 </p><p>]]bar <span>[[foo]]</span>
14430 </p><p>=bar <span>foo]]</span>=
14434 #### --------------- PRE ------------------
14435 #### 1. Leading space in SOL context should be escaped
14436 #### --------------------------------------
14438 1. Leading space in SOL context should be escaped
14442 <nowiki> foo</nowiki>
14443 <!--cmt--><nowiki> foo</nowiki>
14450 #### --------------- HTML tags ---------------
14453 #### 3. multi-line html tag
14454 #### --------------------------------------
14460 <a href="http://google.com">google</a>
14462 <a href="http://google.com">google</a>
14468 <nowiki><div>foo</div>
14469 <div style="color:red">foo</div></nowiki>
14471 <p><div>foo</div>
14472 <div style="color:red">foo</div>
14477 3. multi-line html tag
14489 #### --------------- Others ---------------
14493 <nowiki>foo</nowiki>
14495 <p><nowiki>foo</nowiki>
14500 Tag-like HTML structures are passed through as text
14522 </p><p>1<d e>f
14527 # This fails in the PHP parser (see bug 40670,
14528 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
14530 Tag names followed by punctuation should not be recognized as tags
14536 <p><s.ome> text
14541 HTML tag with necessary entities in attributes
14543 <span title="&amp;">foo</span>
14545 <p><span title="&amp;">foo</span>
14550 HTML tag with 'unnecessary' entity encoding in attributes
14552 <span title="&">foo</span>
14554 <p><span title="&">foo</span>
14559 HTML tag with broken attribute value quoting
14561 <span title="Hello world>Foo</span>
14563 <p><span>Foo</span>
14568 Parsoid-only: HTML tag with broken attribute value quoting
14572 <span title="Hello world>Foo</span>
14574 <p><span title="Hello world">Foo</span>
14579 Table with broken attribute value quoting
14582 | title="Hello world|Foo
14593 Table with broken attribute value quoting on consecutive lines
14596 | title="Hello world|Foo
14597 | style="color:red|Bar
14610 Parsoid-only: Table with broken attribute value quoting on consecutive lines
14615 | title="Hello world|Foo
14616 | style="color:red|Bar
14621 <td title="Hello world">Foo
14622 </td><td style="color: red">Bar
14623 </td></tr></tbody></table>
14628 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14638 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
14648 Accept empty td cell attribute
14651 | align="center" | foo || |
14656 <td align="center"> foo </td>
14663 Non-empty attributes in th-cells
14666 ! Foo !! style="color: red" | Bar
14672 <th style="color: red"> Bar
14678 Accept empty attributes in th-cells
14693 Empty table rows go away
14714 ### Parsoid-centric tests for testing RTing of inter-element separators
14715 ### Edge cases not tested by existing parser tests and specific to
14716 ### Parsoid-specific serialization strategies.
14720 RT-ed inter-element separators should be valid separators
14733 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
14734 (Parsoid-only since PHP parser relies on Tidy for correct output)
14750 Empty TD followed by TD with tpl-generated attribute
14755 |{{echo|style='color:red'}}|foo
14769 Indented table with an empty td
14788 Empty TR followed by a template-generated TR
14789 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
14791 parsoid=wt2html,wt2wt
14795 {{echo|<tr><td>foo</td></tr>}}
14801 <tr typeof="mw:Object/Template">
14802 <td>foo</td></tr></tbody></table>
14805 ## PHP and parsoid output differ for this, and since this is primarily
14806 ## for testing Parsoid's serializer, marking this Parsoid only
14808 Empty TR followed by mixed-ws-comment line should RT correctly
14822 <td> <!--c--></td></tr>
14824 <td><!--c--> <!--d--></td></tr>
14830 Multi-line image caption generated by templates with/without trailing newlines
14834 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
14835 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
14837 <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>
14838 <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>
14842 ## PHP emits broken html for this, and since this is primarily
14843 ## a Parsoid serializer test, marking this Parsoid only
14845 Improperly nested inline or quotes tags with whitespace in between
14849 <span> <s>x</span> </s>
14852 <p><span> <s>x</s></span><s> </s>
14853 <b> <i>x</i></b><i> </i>
14862 Try for 100% code coverage