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
170 http://fr.wikipedia.org/wiki/🍺
171 <!-- EasterEgg we love beer, better be able be able to link to it -->
173 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
193 * plain''italic''plain
194 * plain''italic''plain''italic''plain
195 * plain'''bold'''plain
196 * plain'''bold'''plain'''bold'''plain
197 * plain''italic''plain'''bold'''plain
198 * plain'''bold'''plain''italic''plain
199 * plain''italic'''bold-italic'''italic''plain
200 * plain'''bold''bold-italic''bold'''plain
201 * plain'''''bold-italic'''italic''plain
202 * plain'''''bold-italic''bold'''plain
203 * plain''italic'''bold-italic'''''plain
204 * plain'''bold''bold-italic'''''plain
205 * plain l'''italic''plain
206 * plain l''''bold''' plain
209 </li><li> plain<i>italic</i>plain
210 </li><li> plain<i>italic</i>plain<i>italic</i>plain
211 </li><li> plain<b>bold</b>plain
212 </li><li> plain<b>bold</b>plain<b>bold</b>plain
213 </li><li> plain<i>italic</i>plain<b>bold</b>plain
214 </li><li> plain<b>bold</b>plain<i>italic</i>plain
215 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
216 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
217 </li><li> plain<i><b>bold-italic</b>italic</i>plain
218 </li><li> plain<b><i>bold-italic</i>bold</b>plain
219 </li><li> plain<i>italic<b>bold-italic</b></i>plain
220 </li><li> plain<b>bold<i>bold-italic</i></b>plain
221 </li><li> plain l'<i>italic</i>plain
222 </li><li> plain l'<b>bold</b> plain
228 ### 2-quote opening sequence tests
231 Italics and bold: 2-quote opening sequence: (2,2)
241 Italics and bold: 2-quote opening sequence: (2,3)
251 Italics and bold: 2-quote opening sequence: (2,4)
261 Italics and bold: 2-quote opening sequence: (2,5)
271 ### 3-quote opening sequence tests
275 Italics and bold: 3-quote opening sequence: (3,2)
285 Italics and bold: 3-quote opening sequence: (3,3)
295 Italics and bold: 3-quote opening sequence: (3,4)
305 Italics and bold: 3-quote opening sequence: (3,5)
315 ### 4-quote opening sequence tests
319 Italics and bold: 4-quote opening sequence: (4,2)
329 Italics and bold: 4-quote opening sequence: (4,3)
339 Italics and bold: 4-quote opening sequence: (4,4)
349 Italics and bold: 4-quote opening sequence: (4,5)
359 ### 5-quote opening sequence tests
363 Italics and bold: 5-quote opening sequence: (5,2)
373 Italics and bold: 5-quote opening sequence: (5,3)
383 Italics and bold: 5-quote opening sequence: (5,4)
387 <p><i><b>foo'</b></i>
393 Italics and bold: 5-quote opening sequence: (5,5)
402 ### multiple quote sequences in a line
405 Italics and bold: multiple quote sequences: (2,4,2)
409 <p><i>foo'<b>bar</b></i>
415 Italics and bold: multiple quote sequences: (2,4,3)
419 <p><i>foo'<b>bar</b></i>
425 Italics and bold: multiple quote sequences: (2,4,4)
429 <p><i>foo'<b>bar'</b></i>
435 Italics and bold: multiple quote sequences: (3,4,2)
445 Italics and bold: multiple quote sequences: (3,4,3)
454 ### other quote tests
457 Italics and bold: other quote tests: (2,3,5)
459 ''this is about '''foo's family'''''
461 <p><i>this is about <b>foo's family</b></i>
467 Italics and bold: other quote tests: (2,(3,3),2)
469 ''this is about '''foo's''' family''
471 <p><i>this is about <b>foo's</b> family</i>
477 Italics and bold: other quote tests: (3,2,3,2)
479 '''this is about ''foo'''s family''
481 <p><b>this is about <i>foo</i></b><i>s family</i>
487 Italics and bold: other quote tests: (3,2,3,3)
489 '''this is about ''foo'''s family'''
491 <p>'<i>this is about </i>foo<b>s family</b>
497 Italics and bold: other quote tests: (3,(2,2),3)
499 '''this is about ''foo's'' family'''
501 <p><b>this is about <i>foo's</i> family</b>
507 Italicized possessive
509 The ''[[Main Page]]'''s talk page.
511 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
520 Non-html5 tags should be accepted
522 <center>''foo''</center>
525 <strike>''foo''</strike>
528 <center><i>foo</i></center>
529 <p><big><i>foo</i></big>
530 <font><i>foo</i></font>
531 <strike><i>foo</i></strike>
537 ### <nowiki> test cases
541 <nowiki> unordered list
543 <nowiki>* This is not an unordered list item.</nowiki>
545 <p>* This is not an unordered list item.
552 <nowiki>Lorem ipsum dolor
573 :There is not nowiki.
574 :There is <nowiki>nowiki</nowiki>.
576 #There is not nowiki.
577 #There is <nowiki>nowiki</nowiki>.
579 *There is not nowiki.
580 *There is <nowiki>nowiki</nowiki>.
582 <dl><dd>There is not nowiki.
583 </dd><dd>There is nowiki.
585 <ol><li>There is not nowiki.
586 </li><li>There is nowiki.
588 <ul><li>There is not nowiki.
589 </li><li>There is nowiki.
595 Entities inside <nowiki>
597 <nowiki><</nowiki>
608 Comments and Indent-Pre
610 <!-- comment 1 --> asdf
612 <!-- comment 1 --> asdf
615 <!-- comment 1 --> asdf
616 <!-- comment 2 -->xyz
618 <!-- comment 1 --> asdf
619 <!-- comment 2 --> xyz
675 asdf<!-- comment 1 -->jkl
685 <!-- foo --> b <!-- bar -->
699 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
705 Comment semantics and delimiters
707 <!-- --><!----><!-----><!------>
713 Comment semantics and delimiters, redux
715 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
716 -- foo -- funky huh? ... -->
722 Comment semantics and delimiters: directors cut
724 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
725 everything starting with < followed by !-- until the first -- and > we see,
726 that wouldn't be valid XML however, since in XML -- has to terminate a comment
734 Comment semantics: nesting
736 <!--<!-- no, we're not going to do anything fancy here -->-->
743 Comment semantics: unclosed comment at end
745 <!--This comment will run out to the end of the document
751 Comment in template title
760 Comment on its own line post-expand
772 Comment on its own line post-expand with non-significant whitespace
784 ### paragraph wraping tests
798 Block tag on one line
810 Block tag on both lines
822 Multiple lines without block tags
840 Empty lines between block tags to test open p-tags are closed between the block tags
858 ### Preformatted text
867 And a [[Main Page|link]]
873 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
878 Ident preformatting with inline content
889 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
906 Regression with preformatted in <center>
919 # Expected output in the following test is not really expected (there should be
920 # <pre> in the output) -- it's only testing for well-formedness.
922 Bug 6200: Preformatted in <blockquote>
935 <pre> with attributes (bug 3202)
937 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
939 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
944 <pre> with width attribute (bug 3202)
946 <pre width="8">Narrow screen goodies</pre>
948 <pre width="8">Narrow screen goodies</pre>
953 <pre> with forbidden attribute (bug 3202)
955 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
957 <pre width="8">Narrow screen goodies</pre>
962 Entities inside <pre>
971 <pre> with forbidden attribute values (bug 3202)
973 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
975 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
980 <nowiki> inside <pre> (bug 13238)
988 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
996 <pre><nowiki>Foo</nowiki></pre>
1001 <nowiki> and <pre> preference (first one wins)
1032 </pre> inside nowiki
1034 <nowiki></pre></nowiki>
1041 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1049 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1059 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1071 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1092 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1096 {{echo| foo}}{{echo| bar}}
1101 {{echo|<!--cmt--> foo}}
1103 <!--cmt-->{{echo| foo}}
1105 {{echo|{{echo| }}bar}}
1123 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1160 Templates: Single-line variant of parameter whitespace stripping test
1166 {{echo|{{echo| a}}}}
1168 {{echo|1={{echo| a}}}}
1181 Templates: Strip whitespace from named parameters, but not positional ones
1209 ### Parsoid-centric tests for testing RT edge cases for pre
1213 1a. Indent-Pre and Comments
1226 1b. Indent-Pre and Comments
1239 1c. Indent-Pre and Comments
1252 2a. Indent-Pre and tables
1273 2b. Indent-Pre and tables
1289 2c. Indent-Pre and tables (bug 42252)
1306 3a. Indent-Pre and block tags (single-line html)
1314 <pre><span> foo </span>
1319 3b. Indent-Pre and block tags (pre-content on separate line)
1371 4. Multiple spaces at start-of-line
1390 5. White-space in indent-pre
1391 NOTE: the white-space char on 2nd line is significant
1404 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1408 HTML-pre: 1. embedded newlines
1444 HTML-pre: 2: indented text
1457 HTML-pre: 3: other wikitext
1478 ### Definition lists
1485 <dl><dt> name </dt><dd> Definition
1491 Definition list for indentation only
1495 <dl><dd> Indented text
1501 Definition list with no space
1505 <dl><dt>name</dt><dd>Definition
1511 Definition list with URL link
1513 ; http://example.com/ : definition
1515 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1521 Definition list with bracketed URL link
1523 ;[http://www.example.com/ Example]:Something about it
1525 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1531 Definition list with wikilink containing colon
1533 ; [[Help:FAQ]]: The least-read page on Wikipedia
1535 <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
1540 # At Brion's and JeLuF's insistence... :)
1542 Definition list with news link containing colon
1544 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1546 <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!
1552 Malformed definition list with colon
1554 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1556 <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
1562 Definition lists: colon in external link text
1564 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1566 <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
1572 Definition lists: colon in HTML attribute
1574 ;<b style="display: inline">bold</b>
1576 <dl><dt><b style="display: inline">bold</b>
1582 Definition lists: self-closed tag
1584 ;one<br/>two : two-line fun
1586 <dl><dt>one<br />two </dt><dd> two-line fun
1592 Bug 11748: Literal closing tags
1596 <dd>test test test test test</dd>
1598 <dd>test test test test test</dd>
1603 <dd>test test test test test</dd>
1605 <dd>test test test test test</dd>
1611 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1614 ; term : description
1620 <dl><dt> term </dt><dd> description
1631 Definition list with empty definition and following paragraph
1636 <dl><dt> term</dt><dd>
1643 Nested definition lists using html syntax
1660 Definition Lists: No nesting: Multiple dd's
1674 Definition Lists: Indentation: Regular
1690 Definition Lists: Indentation: Missing 1st level
1704 Definition Lists: Indentation: Multi-level indent
1708 <dl><dd><dl><dd><dl><dd>i3
1716 Definition Lists: Hacky use to indent tables
1723 should be left alone
1725 <dl><dd><dl><dd><table>
1730 </td></tr></table></dd></dl></dd></dl>
1732 should be left alone
1735 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1736 ## as an empty dt item. It also ignores all but the last ";" when followed
1737 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1738 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1741 ## Ex: ";;t2 ::d2" is transformed into:
1753 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1754 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1765 ## All Parsoid only definition list tests have this difference.
1767 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1768 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1771 Table / list interaction: indented table with lists in table contents
1793 </td></tr></table></dd></dl>
1798 Table / list interaction: lists nested in tables nested in indented lists
1823 </td></tr></table></dd></dl>
1831 Definition Lists: Nesting: Multi-level (Parsoid only)
1861 Definition Lists: Nesting: Test 2 (Parsoid only)
1881 Definition Lists: Nesting: Test 3 (Parsoid only)
1909 Definition Lists: Nesting: Test 4
1914 <dl><dd><dl><dd><dl><dt>t3
1924 Definition Lists: Mixed Lists: Test 1
1930 <dl><dd><dl><dt><ul><li> foo
1942 Definition Lists: Mixed Lists: Test 2
1956 Definition Lists: Mixed Lists: Test 3
1961 <ul><li><dl><dd><dl><dd><dl><dd> d1
1972 Definition Lists: Mixed Lists: Test 4
1977 <ul><li><dl><dt>d1 </dt><dd>d2
1978 </dd><dt>d3 </dt><dd>d4
1986 Definition Lists: Mixed Lists: Test 5
2001 Definition Lists: Mixed Lists: Test 6
2006 <ol><li><ul><li><dl><dd>d1
2018 Definition Lists: Mixed Lists: Test 7
2032 Definition Lists: Mixed Lists: Test 8
2048 Definition Lists: Mixed Lists: Test 9
2052 <ul><li><dl><dt>foo </dt><dd>bar
2060 Definition Lists: Mixed Lists: Test 10
2064 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2073 Definition Lists: Mixed Lists: Test 11
2078 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2083 <dl><dt>boo </dt><dd>baz
2094 Definition Lists: Weird Ones: Test 1
2096 *#;*::;; foo : bar (who uses this?)
2098 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2114 External links: non-bracketed
2116 Non-bracketed: http://example.com
2118 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2123 External links: numbered
2125 Numbered: [http://example.com]
2126 Numbered: [http://example.net]
2127 Numbered: [http://example.com]
2129 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2130 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2131 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2136 External links: specified text
2138 Specified text: [http://example.com link]
2140 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2145 External links: trail
2147 Linktrails should not work for external links: [http://example.com link]s
2149 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2154 External links: dollar sign in URL
2156 http://example.com/1$2345
2158 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2163 External links: dollar sign in URL (named)
2165 [http://example.com/1$2345]
2167 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2172 External links: open square bracket forbidden in URL (bug 4377)
2174 http://example.com/1[2345
2176 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2181 External links: open square bracket forbidden in URL (named) (bug 4377)
2183 [http://example.com/1[2345]
2185 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2190 External links: nowiki in URL link text (bug 6230)
2192 [http://example.com/ <nowiki>''example site''</nowiki>]
2194 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2199 External links: newline forbidden in text (bug 6230 regression check)
2201 [http://example.com/ first
2204 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2210 External links: Pipe char between url and text
2212 [http://example.com | link]
2214 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2219 External links: protocol-relative URL in brackets
2221 [//example.com/ Test]
2223 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2228 External links: protocol-relative URL in brackets without text
2232 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2237 External links: protocol-relative URL in free text is left alone
2241 <p>//example.com/Foo
2246 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2248 foo//example.com/Foo
2250 <p>foo//example.com/Foo
2257 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2259 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2264 External image from https
2266 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2268 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2273 Link to non-http image, no img tag
2275 Link to non-http image, no img tag: ftp://example.com/test.jpg
2277 <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>
2282 External links: terminating separator
2284 Terminating separator: http://example.com/thing,
2286 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2291 External links: intervening separator
2293 Intervening separator: http://example.com/1,2,3
2295 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2300 External links: old bug with URL in query
2302 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2304 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2309 External links: old URL-in-URL bug, mixed protocols
2311 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2313 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2318 External links: URL in text
2320 URL in text: [http://example.com http://example.com]
2322 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2327 External links: Clickable images
2329 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2331 <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>
2336 External links: raw ampersand
2338 Old & use: http://x&y
2340 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2345 External links: encoded ampersand
2347 Old & use: http://x&y
2349 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2354 External links: encoded equals (bug 6102)
2356 http://example.com/?foo=bar
2358 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2363 External links: [raw ampersand]
2365 Old & use: [http://x&y]
2367 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2372 External links: [encoded ampersand]
2374 Old & use: [http://x&y]
2376 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2381 External links: [encoded equals] (bug 6102)
2383 [http://example.com/?foo=bar]
2385 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2390 External links: [IDN ignored character reference in hostname; strip it right off]
2392 [http://e‌xample.com/]
2394 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2398 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2399 # Where an external link could easily circumvent the sanitization of the text of
2400 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2401 # test demands a higher standard. That's a bit strange.
2405 # http://example.com -> [http://example.com|http://example.com]
2406 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2408 # The first example is sanitized, but the second is not. Any security benefits
2409 # from this production are trivial to circumvent. Either remove this test and
2410 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2411 # the test accordingly.
2416 External links: IDN ignored character reference in hostname; strip it right off
2418 http://e‌xample.com/
2420 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2425 External links: www.jpeg.org (bug 554)
2429 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2434 External links: URL within URL (original bug 2)
2436 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2438 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2443 BUG 361: URL inside bracketed URL
2445 [http://www.example.com/foo http://www.example.com/bar]
2447 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2452 BUG 361: URL within URL, not bracketed
2454 http://www.example.com/foo?=http://www.example.com/bar
2456 <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>
2461 BUG 289: ">"-token in URL-tail
2463 http://www.example.com/<hello>
2465 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2470 BUG 289: literal ">"-token in URL-tail
2472 http://www.example.com/<b>html</b>
2474 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2479 BUG 289: ">"-token in bracketed URL
2481 [http://www.example.com/<hello> stuff]
2483 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2488 BUG 289: literal ">"-token in bracketed URL
2490 [http://www.example.com/<b>html</b> stuff]
2492 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2497 BUG 289: literal double quote at end of URL
2499 http://www.example.com/"hello"
2501 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2506 BUG 289: literal double quote in bracketed URL
2508 [http://www.example.com/"hello" stuff]
2510 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2515 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2517 [http://www.example.com test]
2519 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2524 External links: link text with spaces
2526 [http://www.example.com a b c]
2527 [http://www.example.com ''a'' ''b'']
2529 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
2530 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
2535 External links: wiki links within external link (Bug 3695)
2537 [http://example.com [[wikilink]] embedded in ext link]
2539 <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>
2544 BUG 787: Links with one slash after the url protocol are invalid
2548 [http:/example.com title]
2550 <p>http:/example.com
2551 </p><p>[http:/example.com title]
2556 Bracketed external links with template-generated invalid target
2558 [{{echo|http:/example.com}} title]
2560 <p>[http:/example.com title]
2565 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2567 ''[http://example.com text'']
2568 [http://example.com '''text]'''
2569 ''Something [http://example.com in italic'']
2570 ''Something [http://example.com mixed''''', even bold]'''
2571 '''''Now [http://example.com both''''']
2573 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2574 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2575 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2576 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2577 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2583 Bug 4781: %26 in URL
2585 http://www.example.com/?title=AT%26T
2587 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2591 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2592 # % is actually legal in HTML5. Any change in output would need testing though.
2594 Bug 4781, 5267: %25 in URL
2596 http://www.example.com/?title=100%25_Bran
2598 <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>
2603 Bug 4781, 5267: %28, %29 in URL
2605 http://www.example.com/?title=Ben-Hur_%281959_film%29
2607 <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>
2613 Bug 4781: %26 in autonumber URL
2615 [http://www.example.com/?title=AT%26T]
2617 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2622 Bug 4781, 5267: %26 in autonumber URL
2624 [http://www.example.com/?title=100%25_Bran]
2626 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2631 Bug 4781, 5267: %28, %29 in autonumber URL
2633 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2635 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2641 Bug 4781: %26 in bracketed URL
2643 [http://www.example.com/?title=AT%26T link]
2645 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2650 Bug 4781, 5267: %26 in bracketed URL
2652 [http://www.example.com/?title=100%25_Bran link]
2654 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2659 Bug 4781, 5267: %28, %29 in bracketed URL
2661 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2663 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2668 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2670 Some [http://example.com/ pretty ''italics'' and stuff]!
2672 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2677 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2679 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2681 <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>
2686 External link containing double-single-quotes with no space separating the url from text in italics
2688 [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]].]
2690 <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>
2695 URL-encoding in URL functions (single parameter)
2697 {{localurl:Some page|amp=&}}
2699 <p>/index.php?title=Some_page&amp=&
2704 URL-encoding in URL functions (multiple parameters)
2706 {{localurl:Some page|q=?&=&}}
2708 <p>/index.php?title=Some_page&q=?&amp=&
2715 http://example.com/index.php?foozoid%5B%5D=bar
2717 http://example.com/index.php?foozoid[]=bar
2719 <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>
2720 </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>
2725 IPv6 urls (bug 21261)
2729 http://[2404:130:0:1000::187:2]/index.php
2731 <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>
2736 Non-extlinks in brackets
2745 [{{echo|foo}} ''bar'']
2746 [{{echo|foo}}l's] errand
2747 [{{echo|foo}}l's errand]
2749 [url=http://example.com]
2762 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
2773 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2775 Normal text. '''''Bold italic text.''''' Normal text.
2777 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2778 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2784 Unclosed and unmatched quotes
2786 '''''Bold italic text '''with bold deactivated''' in between.'''''
2788 '''''Bold italic text ''with italic deactivated'' in between.'''''
2792 ..spanning two paragraphs (should not work).'''
2794 '''Bold tag left open
2796 ''Italic tag left open
2800 <!-- Unmatching number of opening, closing tags: -->
2801 '''This year''''s election ''should'' beat '''last year''''s.
2803 ''Tom'''s car is bigger than ''Susan'''s.
2805 Plain ''italic'''s plain
2807 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2808 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2809 </p><p><b>Bold text..</b>
2810 </p><p>..spanning two paragraphs (should not work).
2811 </p><p><b>Bold tag left open</b>
2812 </p><p><i>Italic tag left open</i>
2814 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2815 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2816 </p><p>Plain <i>italic'</i>s plain
2823 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2826 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2827 # is the bare minimun required by the spec, see:
2828 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2830 A table with no data.
2836 # A table with nothing but a caption is invalid XHTML, we might want to render
2837 # this as <p>caption</p>
2839 A table with nothing but a caption
2847 </caption><tr><td></td></tr></table>
2852 A table with caption with default-spaced attributes and a table row
2855 |+ style="color: red;" | caption1
2861 <caption style="color: red;"> caption1
2870 A table with captions with non-default spaced attributes and a table row
2873 |+style="color: red;"|caption2
2874 |+ style="color: red;"| caption3
2880 <caption style="color: red;">caption2
2882 <caption style="color: red;"> caption3
2891 Table td-cell syntax variations
2895 | foo bar foo || baz
2896 | style='color:red;' | baz
2897 | style='color:red;' || baz
2904 <td> foo bar foo </td>
2907 <td style="color:red;"> baz
2909 <td> style='color:red;' </td>
2937 Simple table but with multiple dashes for row wikitext
2955 Multiplication table
2957 {| border="1" cellpadding="2"
2958 |+Multiplication table
2960 ! × !! 1 !! 2 !! 3
2978 <table border="1" cellpadding="2">
2979 <caption>Multiplication table
3026 Accept "||" in table headings
3041 Accept "||" in indented table headings
3051 </th></tr></table></dd></dl>
3056 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3073 Accept "| !" at start of line in tables (ignore !-attribute)
3077 | !style="color:red" | bar
3089 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 +/-
3093 |style='color:red;'|+1
3094 |style='color:blue;'|-1
3106 <td style="color:red;">+1
3108 <td style="color:blue;">-1
3132 |rowspan=2| Cell 2, row 1 (and 2)
3143 <td rowspan="2"> Cell 2, row 1 (and 2)
3161 {| bgcolor=#ABCDEF border=2
3166 |the original table again
3174 <table bgcolor="#ABCDEF" border="2">
3182 <td>the original table again
3188 Invalid attributes in table cell (bug 1830)
3203 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3206 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3210 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3211 <td>]" onmouseover="alert(document.cookie)">test
3220 Indented table markup mixed with indented pre content (proposed in bug 6200)
3225 Text that should be rendered preformatted
3233 <pre>Text that should be rendered preformatted
3242 Template-generated table cell attributes and cell content
3250 <td style="color: red"> Foo
3256 Table with row followed by newlines and table heading
3273 # FIXME: Preserve the attribute properly (with an empty string as value) in
3274 # the PHP parser. Parsoid implements the behavior below.
3276 Table attributes with empty value
3292 Wikitext table with a lot of comments
3315 Wikitext table with double-line table cell
3331 # The expected HTML structure in this test is debatable. The PHP parser does
3332 # not parse this kind of table at all. The main focus for Parsoid is on
3333 # round-tripping, so this output is ok for now. TODO: revisit!
3335 Wikitext table with html-syntax row (Parsoid)
3348 <td>foo</td></tr></tbody></table>
3355 Plain link, capitalized
3359 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3364 Plain link, uncapitalized
3368 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3375 [[Main Page|The Main Page]]
3377 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3386 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3391 Broken link with fragment
3393 [[Zigzagzogzagzig#zug]]
3395 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3400 Special page link with fragment
3402 [[Special:Version#anchor]]
3404 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3409 Nonexistent special page link with fragment
3411 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3413 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3420 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3422 <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>
3429 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3431 <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>!!!
3442 Bug 43661: Piped links with identical prefixes
3444 [[prefixed article|prefixed articles with spaces]]
3446 [[prefixed article|prefixed articlesaoeu]]
3448 [[Main Page|Main Page test]]
3450 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3451 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3452 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3458 Link with HTML entity in suffix / tail
3460 [[Main Page]]", [[Main Page]]a
3462 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3467 Link with 3 brackets
3476 Piped link with 3 brackets
3478 [[[main page|the main page]]]
3480 <p>[[[main page|the main page]]]
3485 Link with multiple pipes
3487 [[Main Page|The|Main|Page]]
3489 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3496 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3498 <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>
3503 Piped link to namespace
3505 [[Meta:Disclaimers|The disclaimers]]
3507 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3514 [[Usually caused by a typo (oops}]]
3516 <p>[[Usually caused by a typo (oops}]]
3521 Link containing % (not as a hex sequence)
3525 <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>
3530 Link containing % as a single hex sequence interpreted to char
3534 <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>
3539 Link containing % as a double hex sequence interpreted to hex sequence
3543 <p>[[7%2525 Solution]]
3548 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3549 Example for such a section: == < ==
3551 [[%23%3c]][[%23%3e]]
3553 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3558 Link containing "<#" and ">#" as a hex sequences
3560 [[%3c%23]][[%3e%23]]
3562 <p>[[%3c%23]][[%3e%23]]
3567 Link containing double-single-quotes '' (bug 4598)
3569 [[Lista d''e paise d''o munno]]
3571 <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>
3576 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3578 Some [[Link|pretty ''italics'' and stuff]]!
3580 <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>!
3585 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3587 ''Some [[Link|pretty ''italics'' and stuff]]!
3589 <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>
3594 Link with double quotes in title part (literal) and alternate part (interpreted)
3596 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3600 [[''Pentecoste''|Pentecoste]]
3602 [[''Pentecoste''|''Pentecoste'']]
3604 <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>
3605 </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>
3606 </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>
3607 </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>
3612 Broken image links with HTML captions (bug 39700)
3614 [[File:Nonexistent|<script></script>]]
3615 [[File:Nonexistent|100px|<script></script>]]
3616 [[File:Nonexistent|<]]
3617 [[File:Nonexistent|a<i>b</i>c]]
3619 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3620 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3621 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3622 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3629 [[http://www.example.com]]
3631 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3636 Plain link to URL with link text
3638 [[http://www.example.com Link text]]
3640 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3645 Plain link to protocol-relative URL
3647 [[//www.example.com]]
3649 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3654 Plain link to protocol-relative URL with link text
3656 [[//www.example.com Link text]]
3658 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3663 Plain link to page with question mark in title
3669 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3670 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3675 # I'm fairly sure the expected result here is wrong.
3676 # We want these to be URL links, not pseudo-pages with URLs for titles....
3677 # However the current output is also pretty screwy.
3680 # I'm changing it to match the current output--it arguably makes more
3681 # sense in the light of the test above. Old expected result was:
3682 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3684 # But I think this test is bordering on "garbage in, garbage out" anyway.
3689 Piped link to URL: [[http://www.example.com|an example URL]]
3691 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3696 BUG 2: [[page|http://url/]] should link to page, not http://url/
3698 [[Main Page|http://url/]]
3700 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3705 BUG 337: Escaped self-links should be bold
3709 [[Bug462]] [[Bug462]]
3711 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3716 Self-link to section should not be bold
3720 [[Main Page#section]]
3722 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3733 Self-link to numeric title
3739 <p><strong class="selflink">0</strong>
3744 Link to numeric-equivalent title
3750 <p><a href="/wiki/00" title="00">00</a>
3755 <nowiki> inside a link
3757 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3759 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3764 Non-breaking spaces in title
3766 [[ Main Page ]]
3768 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3773 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3779 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3784 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3790 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3795 Internal link with en linktrail: no apostrophes (bug 27473)
3801 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3806 Internal link with ca linktrail with apostrophes (bug 27473)
3812 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3817 Internal link with kaa linktrail with apostrophes (bug 27473)
3823 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3828 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
3836 [http://wp.org ''foo'']
3838 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
3839 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
3840 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
3841 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
3846 ### Interwiki links (see maintenance/interwiki.sql)
3850 Inline interwiki link
3852 [[MeatBall:SoftSecurity]]
3854 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3859 Inline interwiki link with empty title (bug 2372)
3863 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3868 Interwiki link encoding conversion (bug 1636)
3870 *[[Wikipedia:ro:Olteniţa]]
3871 *[[Wikipedia:ro:Olteniţa]]
3873 <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>
3874 </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>
3880 Interwiki link with fragment (bug 2130)
3882 [[MeatBall:SoftSecurity#foo]]
3884 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3899 Double interlanguage link
3910 Interlanguage link, with prefix links
3922 Double interlanguage link, with prefix links (bug 8897)
3935 Parsoid-specific test: Wikilinks with should RT properly
3941 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3959 Broken br tag sanitization
3968 Incorrecly removing closing slashes from correctly formed XHTML
3970 <br style="clear:both;" />
3972 <p><br style="clear:both;" />
3977 Failing to transform badly formed HTML into correct XHTML
3979 <br style="clear: left;">
3980 <br style="clear: right;">
3981 <br style="clear: both;">
3983 <p><br style="clear: left;" />
3984 <br style="clear: right;" />
3985 <br style="clear: both;" />
3990 Handling html with a div self-closing tag
3999 <p><div title />
4003 <p><div title=bar />
4004 <div title=bar/>
4006 <div title="bar/"></div>
4012 Handling html with a br self-closing tag
4021 <p><br title="title" />
4022 <br title="title" />
4031 Horizontal ruler (should it add that extra space?)
4045 Horizontal ruler -- 4+ dashes render hr
4054 Horizontal ruler -- eats additional dashes on the same line
4063 Horizontal ruler -- does not collaps dashes on consecutive lines
4074 Horizontal ruler -- <4 dashes render as plain text
4083 Horizontal ruler -- Supports content following dashes on same line
4092 ### Block-level elements
4115 <ol><li>Numbered list
4132 ***#Number on level 4
4134 **#Number on level 3
4135 **#Number on level 3
4139 #** Level 3, but ordered
4142 <ol><li> with numbers
4144 <ul><li> and bullets
4146 <ol><li> and numbers
4148 </li><li>bullets again
4149 <ul><li>bullet level 2
4150 <ul><li>bullet level 3
4151 <ol><li>Number on level 4
4154 </li><li>bullet level 2
4155 <ol><li>Number on level 3
4156 </li><li>Number on level 3
4159 <ol><li>number level 2
4162 <ul><li><ul><li> Level 3
4166 <ol><li><ul><li><ul><li> Level 3, but ordered
4200 Nested lists 3 (first element empty)
4213 Nested lists 4 (first element empty)
4226 Nested lists 5 (both elements empty)
4239 Nested lists 6 (both elements empty)
4252 Nested lists 7 (skip initial nesting levels)
4256 <ul><li><ul><li><ul><li> foo
4264 Nested lists 8 (multiple nesting transitions)
4272 <ul><li><ul><li> bar
4282 1. Lists with start-of-line-transparent tokens before bullets: Comments
4296 2. Lists with start-of-line-transparent tokens before bullets: Template close
4308 Unbalanced closing block tags break a list
4309 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4319 </li></ul></div><div>
4325 Unbalanced closing non-block tags don't break a list
4326 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4336 <ul><li>a<span></span>
4342 Unclosed formatting tags that straddle lists are closed and reopened
4343 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4351 </li><li> <s> b </s>
4356 List embedded in a non-block tag
4357 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
4365 <p><small></small></p>
4371 <p><small></small></p>
4375 List items are not parsed correctly following a <pre> block (bug 785)
4381 <ul><li> <pre>foo</pre>
4382 </li><li> <pre>bar</pre>
4389 List items from template
4400 * notSOL{{inner list}}
4419 List interrupted by empty line or heading
4429 <ul><li><ul><li> bar
4432 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: A heading">edit</a>]</span> <span class="mw-headline" id="A_heading"> A heading </span></h2>
4433 <ul><li> Another list item
4439 Multiple list tags generated by templates
4458 Magic Word: {{CURRENTDAY}}
4467 Magic Word: {{CURRENTDAY2}}
4476 Magic Word: {{CURRENTDAYNAME}}
4485 Magic Word: {{CURRENTDOW}}
4494 Magic Word: {{CURRENTMONTH}}
4503 Magic Word: {{CURRENTMONTHABBREV}}
4505 {{CURRENTMONTHABBREV}}
4512 Magic Word: {{CURRENTMONTHNAME}}
4514 {{CURRENTMONTHNAME}}
4521 Magic Word: {{CURRENTMONTHNAMEGEN}}
4523 {{CURRENTMONTHNAMEGEN}}
4530 Magic Word: {{CURRENTTIME}}
4539 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4548 Magic Word: {{CURRENTYEAR}}
4557 Magic Word: {{FULLPAGENAME}}
4559 title=[[User:Ævar Arnfjörð Bjarmason]]
4563 <p>User:Ævar Arnfjörð Bjarmason
4568 Magic Word: {{FULLPAGENAMEE}}
4570 title=[[User:Ævar Arnfjörð Bjarmason]]
4574 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4579 Magic Word: {{NAMESPACE}}
4581 title=[[User:Ævar Arnfjörð Bjarmason]]
4590 Magic Word: {{NAMESPACEE}}
4592 title=[[User:Ævar Arnfjörð Bjarmason]]
4601 Magic Word: {{NAMESPACENUMBER}}
4603 title=[[User:Ævar Arnfjörð Bjarmason]]
4612 Magic Word: {{NUMBEROFFILES}}
4621 Magic Word: {{PAGENAME}}
4623 title=[[User:Ævar Arnfjörð Bjarmason]]
4627 <p>Ævar Arnfjörð Bjarmason
4632 Magic Word: {{PAGENAME}} with metacharacters
4634 title=[['foo & bar = baz']]
4638 <p><i>'foo & bar = baz'</i>
4643 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4645 title=[[*RFC 1234 http://example.com/]]
4649 <p>*RFC 1234 http://example.com/
4654 Magic Word: {{PAGENAMEE}}
4656 title=[[User:Ævar Arnfjörð Bjarmason]]
4660 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4665 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4667 title=[[*RFC 1234 http://example.com/]]
4671 <p>*RFC_1234_http://example.com/
4676 Magic Word: {{REVISIONID}}
4685 Magic Word: {{SCRIPTPATH}}
4694 Magic Word: {{SERVER}}
4698 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
4703 Magic Word: {{SERVERNAME}}
4712 Magic Word: {{SITENAME}}
4721 Case-sensitive magic words, when cased differently, should just be template transclusions
4728 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
4729 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
4730 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
4731 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
4736 Case-insensitive magic words should still work with weird casing.
4746 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
4751 Namespace 1 {{ns:1}}
4760 Namespace 1 {{ns:01}}
4769 Namespace 0 {{ns:0}} (bug 4783)
4777 Namespace 0 {{ns:00}} (bug 4783)
4785 Namespace -1 {{ns:-1}}
4794 Namespace User {{ns:User}}
4803 Namespace User talk {{ns:User_talk}}
4812 Namespace User talk {{ns:uSeR tAlK}}
4821 Namespace File {{ns:File}}
4830 Namespace File {{ns:Image}}
4839 Namespace (lang=de) Benutzer {{ns:User}}
4850 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4856 <p>Benutzer Diskussion
4864 {{urlencode:hi world?!}}
4865 {{urlencode:hi world?!|WIKI}}
4866 {{urlencode:hi world?!|PATH}}
4867 {{urlencode:hi world?!|QUERY}}
4880 Magic links: internal link to RFC (bug 479)
4884 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4889 Magic links: RFC (bug 479)
4893 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4898 Magic links: ISBN (bug 1937)
4902 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4907 Magic links: PMID incorrectly converts space to underscore
4911 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4920 Nonexistent template
4922 {{thistemplatedoesnotexist}}
4924 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4929 Template with invalid target containing tags
4931 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4933 <p>{{a<b>b</b>|foo|a=b|a = b}}
4938 Template with invalid target containing unclosed tag
4940 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4942 <p>{{a<b>|foo|a=b|a = b}}</b>
4949 This is a test template
4957 <p>This is a test template
4962 Template with explicit namespace
4966 <p>This is a test template
4974 This is a test template with parameter {{{param}}}
4980 {{paramtest|param=foo}}
4982 <p>This is a test template with parameter foo
4987 Template:paramtestnum
4993 Template unnamed parameter
4995 {{paramtestnum|Main Page|the main page}}
4997 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5002 Template:templatesimple
5008 Template:templateredirect
5010 #redirect [[Template:templatesimple]]
5014 Template:templateasargtestnum
5020 Template:templateasargtest
5022 {{template{{{templ}}}}}
5026 Template:templateasargtest2
5032 Template with template name as unnamed argument
5034 {{templateasargtestnum|templatesimple}}
5041 Template with template name as argument
5043 {{templateasargtest|templ=simple}}
5050 Template with template name as argument (2)
5052 {{templateasargtest2|templ=templatesimple}}
5059 Template:templateasargtestdefault
5061 {{{{{templ|templatesimple}}}}}
5071 Template with default value
5073 {{templateasargtestdefault}}
5080 Template with default value (value set)
5082 {{templateasargtestdefault|templ=templa}}
5091 {{templateredirect}}
5098 Template with argument in separate line
5100 {{ templateasargtest |
5108 Template with complex template as argument
5111 param ={{ templateasargtest |
5114 <p>This is a test template with parameter (test)
5119 Template with thumb image (with link in description)
5122 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
5124 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>
5129 Template:complextemplate
5131 {{{1}}} {{paramtest|
5132 param ={{{param}}}}}
5136 Template with complex arguments
5139 param ={{ templateasargtest |
5140 templ = simple }}|[[Template:complextemplate|link]]}}
5142 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5147 BUG 553: link with two variables in a piped link
5150 |[[{{{1}}}|{{{2}}}]]
5155 <td>[[{{{1}}}|{{{2}}}]]
5161 Magic variable as template parameter
5163 {{paramtest|param={{SITENAME}}}}
5165 <p>This is a test template with parameter MediaWiki
5172 [[{{{param}}}|link]]
5176 Template parameter as link source
5178 {{linktest|param=Main Page}}
5180 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5185 Template-generated attribute string (k='v')
5187 <span {{attr_str|id|v1}}>bar</span>
5189 <p><span id="v1">bar</span>
5196 including another template, {{paramtest|param={{{arg}}}}}
5200 Template passing argument to another template
5202 {{paramtest2|arg='hmm'}}
5204 <p>including another template, This is a test template with parameter 'hmm'
5215 Template as link source
5219 [[{{linktest2}}|Main Page]]
5221 [[{{linktest2}}]]Page
5223 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5224 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5225 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5243 Template infinite loop
5247 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5252 Template from main namespace
5271 BUG 529: Template with table, not included at beginning of line
5290 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5310 BUG 41: Template parameters shown as broken links
5319 Template with targets containing wikilinks
5323 {{[[{{echo|foo}}]]}}
5325 {{{{echo|[[foo}}]]}}
5327 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5328 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5336 ''None'' of '''this''' should be
5338 but rather passed unmodified
5342 # hmm, fix this or just deprecate msgnw and document its behavior?
5348 {{msgnw:MSGNW test}}
5350 <p>''None'' of '''this''' should be
5352 but rather passed unmodified
5360 {{int:youhavenewmessages|lots of money|not!}}
5362 <p>You have lots of money (not!).
5369 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5373 <includeonly> and <noinclude> being included
5384 <onlyinclude>Foo</onlyinclude>bar
5388 <onlyinclude> being included
5400 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5404 <onlyinclude> and <includeonly> being included
5413 <includeonly> and <noinclude> on a page
5415 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5422 Un-closed <noinclude>
5429 <onlyinclude> on a page
5431 <onlyinclude>Foo</onlyinclude>bar
5438 Un-closed <onlyinclude>
5445 Self-closed noinclude, includeonly, onlyinclude tags
5456 Unbalanced includeonly and noinclude tags
5460 |b</noinclude></noinclude>
5461 |c</noinclude></includeonly>
5462 |d</includeonly></includeonly>
5471 <td>c</includeonly>
5473 <td>d</includeonly></includeonly>
5479 Template:Includeonly section
5482 ==Includeonly section==
5488 Bug 6563: Edit link generation for section shown by <includeonly>
5490 {{includeonly section}}
5492 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Includeonly_section">Includeonly section</span></h2>
5493 <h2><span class="editsection">[<a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a>]</span> <span class="mw-headline" id="Section_T-1">Section T-1</span></h2>
5497 # Uses same input as the contents of [[Template:Includeonly section]]
5499 Bug 6563: Section extraction for section shown by <includeonly>
5504 ==Includeonly section==
5512 Bug 6563: Edit link generation for section suppressed by <includeonly>
5515 ==Includeonly section==
5519 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2>
5524 Bug 6563: Section extraction for section suppressed by <includeonly>
5529 ==Includeonly section==
5537 Un-closed <includeonly>
5544 ### <includeonly> and <noinclude> in attributes
5547 0. includeonly around the entire attribute
5549 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5551 <p><span id="v2">bar</span>
5556 1. includeonly in html attr key
5558 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5560 <p><span id="foo">bar</span>
5565 2. includeonly in html attr value
5567 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5568 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5570 <p><span id="v1">bar</span>
5571 <span id="v1">bar</span>
5576 3. includeonly in part of an attr value
5578 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5580 <p><span style="color:red;">bar</span>
5585 ### Testing parsing of templates where a template arg
5586 ### has the same name as the template itself.
5596 Templates: Template Name/Arg clash: 1. Use of positional param
5605 Templates: Template Name/Arg clash: 2. Use of named param
5614 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5623 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5627 Templates: 1. Simple use
5636 Templates: 2. Inside a block tag
5638 <div>{{echo|Foo}}</div>
5645 Templates: P-wrapping: 1a. Templates on consecutive lines
5656 Templates: P-wrapping: 1b. Templates on consecutive lines
5670 Templates: P-wrapping: 1c. Templates on consecutive lines
5673 {{echo|bar}} <div>baz</div>
5682 Templates: Inline Text: 1. Multiple tmeplate uses
5684 {{echo|Foo}}bar{{echo|baz}}
5691 Templates: Inline Text: 2. Back-to-back template uses
5693 {{echo|Foo}}{{echo|bar}}
5700 Templates: Block Tags: 1. Multiple template uses
5702 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5704 <div>Foo</div><div>bar</div><div>baz</div>
5709 Templates: Block Tags: 2. Back-to-back template uses
5711 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5713 <div>Foo</div><div>bar</div>
5718 Templates: Links: 1. Simple example
5720 {{echo|[[Foo|bar]]}}
5722 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5727 Templates: Links: 2. Generation of link href
5729 [[{{echo|Foo}}|bar]]
5731 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5736 Templates: Links: 3. Generation of part of a link href
5738 [[Fo{{echo|o}}|bar]]
5742 [[Foo{{echo|bar}}baz]]
5744 [[Foo{{echo|bar}}|bar]]
5746 [[:Foo{{echo|bar}}]]
5748 [[:Foo{{echo|bar}}|bar]]
5750 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5751 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5752 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
5753 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5754 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5755 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5760 Templates: Links: 4. Multiple templates generating link href
5762 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5764 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5769 Templates: Links: 5. Generation of link text
5771 [[Foo|{{echo|bar}}]]
5773 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5778 Templates: Links: 5. Nested templates (only outermost template should be marked)
5780 {{echo|[[{{echo|Foo}}|bar]]}}
5782 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5787 Templates: HTML Tag: 1. Generation of HTML attr. key
5789 <div {{echo|style}}="color:red;">foo</div>
5791 <div style="color:red;">foo</div>
5796 Templates: HTML Tag: 2. Generation of HTML attr. value
5798 <div style={{echo|'color:red;'}}>foo</div>
5800 <div style="color:red;">foo</div>
5805 Templates: HTML Tag: 3. Generation of HTML attr key and value
5807 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5809 <div style="color:red;">foo</div>
5814 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5816 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5818 <div title="This is a long title with just one piece templated">foo</div>
5823 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5825 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5827 <div title="This is a long title with just one piece templated">foo</div>
5832 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5834 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5836 <div title="This is a long title with just one piece templated">foo</div>
5841 Templates: HTML Tables: 1. Generating start of a HTML table
5843 {{echo|<table><tr><td>foo</td>}}</tr></table>
5845 <table><tr><td>foo</td></tr></table>
5850 Templates: HTML Tables: 2a. Generating middle of a HTML table
5852 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5854 <table><tr><td>foo</td></tr></table>
5859 Templates: HTML Tables: 2b. Generating middle of a HTML table
5861 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5863 <table><tr><td>foo</td></tr></table>
5868 Templates: HTML Tables: 3. Generating end of a HTML table
5870 <table><tr>{{echo|<td>foo</td></tr></table>}}
5872 <table><tr><td>foo</td></tr></table>
5877 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5879 {{echo|<table>}}<tr><td>foo</td></tr></table>
5881 <table><tr><td>foo</td></tr></table>
5886 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5888 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5890 <table><tr><td>foo</td></tr></table>
5895 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5897 <table><tr>{{echo|<td>}}foo</td></tr></table>
5899 <table><tr><td>foo</td></tr></table>
5904 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5906 <table><tr><td>foo{{echo|</td>}}</tr></table>
5908 <table><tr><td>foo</td></tr></table>
5913 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5915 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5917 <table><tr><td>foo</td></tr></table>
5922 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5924 <table><tr><td>foo</td></tr>{{echo|</table>}}
5926 <table><tr><td>foo</td></tr></table>
5931 Templates: Wiki Tables: 1a. Fostering of entire template content
5939 <tr><td></td></tr></table>
5944 Templates: Wiki Tables: 1b. Fostering of entire template content
5957 <tr><td></td></tr></table>
5962 Templates: Wiki Tables: 2. Fostering of partial template content
5972 <tr><td></td></tr></table>
5977 Templates: Wiki Tables: 3. td-content via multiple templates
5980 {{echo|{{pipe}}a}}{{echo|b}}
5991 Templates: Wiki Tables: 4. Templated tags, no content
5997 <tr><td></td></tr></table>
6002 Templates: Wiki Tables: 5. Templated tags, regular td-tags
6016 Templates: Wiki Tables: 6. Templated tags, templated td-tags
6030 Templates: Lists: Multi-line list-items via templates
6032 *{{echo|a {{nonexistent|
6034 *{{echo|b {{nonexistent|
6037 <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>
6038 </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>
6044 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
6046 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
6048 <p><i>ab</i>c<i>d</i>e
6053 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
6054 (PHP parser generates misnested html)
6058 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
6060 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
6064 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
6065 (PHP parser generates misnested html)
6069 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
6072 <div><i>b</i>c<i>d</i></div>
6077 Templates: Ugly nesting: 4. Divs opened/closed across templates
6079 a<div>b{{echo|c</div>d}}e
6086 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
6092 |{{echo|foo</table>}}
6096 <table about="#mwt1" typeof="mw:Object/Template ">
6097 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
6098 bar</span><span about="#mwt1">
6103 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
6113 <td>1. {{echo|foo </table>}}</td>
6115 <td>2. {{echo|baz </table>}}</td>
6128 <table about="#mwt1" typeof="mw:Object/Template">
6133 <td >1. foo </td></tr></tbody></table></td>
6135 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
6136 </span><span about="#mwt1">
6138 abc</span><span about="#mwt1">
6139 </span><span about="#mwt1">
6140 </span><span about="#mwt1">
6141 </span><span about="#mwt1">
6142 </span><span about="#mwt1">
6144 xyz</span><span about="#mwt1">
6145 </span><span about="#mwt1">
6150 Templates: Ugly templates: 3. newline-only template parameter
6159 # This looks like a bug: a single newline triggers p/br for some reason.
6161 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6172 Parser Functions: 1. Simple example
6181 Parser Functions: 2. Nested use (only outermost should be marked up)
6190 ### Pre-save transform tests
6193 pre-save transform: subst:
6199 This is a test template
6203 pre-save transform: normal template
6213 pre-save transform: nonexistent template
6217 {{thistemplatedoesnotexist}}
6219 {{thistemplatedoesnotexist}}
6224 pre-save transform: subst magic variables
6233 # This is bug 89, which I fixed. -- wtm
6235 pre-save transform: subst: templates with parameters
6239 {{subst:paramtest|param="something else"}}
6241 This is a test template with parameter "something else"
6247 <nowiki>'''not wiki'''</nowiki>
6251 pre-save transform: nowiki in subst (bug 1188)
6255 {{subst:nowikitest}}
6257 <nowiki>'''not wiki'''</nowiki>
6262 Template:commenttest
6264 This template has <!-- a comment --> in it.
6268 pre-save transform: comment in subst (bug 1936)
6272 {{subst:commenttest}}
6274 This template has <!-- a comment --> in it.
6278 pre-save transform: unclosed tag
6282 <nowiki>'''not wiki'''
6284 <nowiki>'''not wiki'''
6288 pre-save transform: mixed tag case
6292 <NOwiki>'''not wiki'''</noWIKI>
6294 <NOwiki>'''not wiki'''</noWIKI>
6298 pre-save transform: unclosed comment in <nowiki>
6302 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6304 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6310 <span onmouseover="alert('crap')">Oh no</span>
6314 (confirming safety of fix for subst bug 1936)
6316 {{Template:dangerous}}
6318 <p><span>Oh no</span>
6323 pre-save transform: comment containing gallery (bug 5024)
6327 <!-- <gallery>data</gallery> -->
6329 <!-- <gallery>data</gallery> -->
6333 pre-save transform: comment containing extension
6337 <!-- <tag>data</tag> -->
6339 <!-- <tag>data</tag> -->
6343 pre-save transform: comment containing nowiki
6347 <!-- <nowiki>data</nowiki> -->
6349 <!-- <nowiki>data</nowiki> -->
6353 pre-save transform: <noinclude> in subst (bug 3298)
6363 pre-save transform: <onlyinclude> in subst (bug 3298)
6375 {{<includeonly>subst:</includeonly>Includes}}
6379 Template:SafeSubstTest
6381 {{<includeonly>safesubst:</includeonly>Includes}}
6385 bug 22297: safesubst: works during PST
6389 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6395 bug 22297: safesubst: works during normal parse
6404 subst: does not work during normal parse
6408 <p>{{subst:Includes}}
6413 pre-save transform: context links ("pipe trick")
6417 [[Article (context)|]]
6420 [[Bar:Article (context)|]]
6421 [[:Bar:Article (context)|]]
6423 [[|Article (context)]]
6427 [[Article (context)|Article]]
6428 [[Bar:Article|Article]]
6429 [[:Bar:Article|Article]]
6430 [[Bar:Article (context)|Article]]
6431 [[:Bar:Article (context)|Article]]
6433 [[Article (context)]]
6434 [[Bar:X (Y) Z|X (Y) Z]]
6435 [[:Bar:X (Y) Z|X (Y) Z]]
6439 pre-save transform: context links ("pipe trick") with interwiki prefix
6443 [[interwiki:Article|]]
6444 [[:interwiki:Article|]]
6445 [[interwiki:Bar:Article|]]
6446 [[:interwiki:Bar:Article|]]
6448 [[interwiki:Article|Article]]
6449 [[:interwiki:Article|Article]]
6450 [[interwiki:Bar:Article|Bar:Article]]
6451 [[:interwiki:Bar:Article|Bar:Article]]
6455 pre-save transform: context links ("pipe trick") with parens in title
6457 pst title=[[Somearticle (context)]]
6461 [[Article (context)|Article]]
6465 pre-save transform: context links ("pipe trick") with comma in title
6467 pst title=[[Someplace, Somewhere]]
6470 [[Otherplace, Elsewhere|]]
6471 [[Otherplace, Elsewhere, Anywhere|]]
6473 [[Otherplace, Somewhere|Otherplace]]
6474 [[Otherplace, Elsewhere|Otherplace]]
6475 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6479 pre-save transform: context links ("pipe trick") with parens and comma
6481 pst title=[[Someplace (IGNORED), Somewhere]]
6484 [[Otherplace (place), Elsewhere|]]
6486 [[Otherplace, Somewhere|Otherplace]]
6487 [[Otherplace (place), Elsewhere|Otherplace]]
6491 pre-save transform: context links ("pipe trick") with comma and parens
6493 pst title=[[Who, me? (context)]]
6496 [[Me, Myself, and I (1937 song)|]]
6498 [[Yes, you. (context)|Yes, you.]]
6499 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6503 pre-save transform: context links ("pipe trick") with namespace
6505 pst title=[[Ns:Somearticle]]
6509 [[Ns:Article|Article]]
6513 pre-save transform: context links ("pipe trick") with namespace and parens
6515 pst title=[[Ns:Somearticle (context)]]
6519 [[Ns:Article (context)|Article]]
6523 pre-save transform: context links ("pipe trick") with namespace and comma
6525 pst title=[[Ns:Somearticle, Context, Whatever]]
6529 [[Ns:Article, Context, Whatever|Article]]
6533 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6535 pst title=[[Ns:Somearticle, Context (context)]]
6539 [[Ns:Article (context)|Article]]
6543 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6545 pst title=[[Ns:Somearticle (IGNORED), Context]]
6549 [[Ns:Article, Context|Article]]
6553 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
6557 [[Article(context)|]]
6558 [[Bar:Article(context)|]]
6559 [[:Bar:Article(context)|]]
6560 [[|Article(context)]]
6564 [[Article(context)|Article]]
6565 [[Bar:Article(context)|Article]]
6566 [[:Bar:Article(context)|Article]]
6567 [[Article(context)]]
6569 [[:Bar:X(Y)Z|X(Y)Z]]
6573 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
6577 [[Article (context)|]]
6578 [[Bar:Article (context)|]]
6579 [[:Bar:Article (context)|]]
6580 [[|Article (context)]]
6584 [[Article (context)|Article]]
6585 [[Bar:Article (context)|Article]]
6586 [[:Bar:Article (context)|Article]]
6587 [[Article (context)]]
6588 [[Bar:X (Y) Z|X (Y) Z]]
6589 [[:Bar:X (Y) Z|X (Y) Z]]
6593 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
6597 [[Article(context)|]]
6598 [[Bar:Article(context)|]]
6599 [[:Bar:Article(context)|]]
6600 [[|Article(context)]]
6604 [[Article(context)|Article]]
6605 [[Bar:Article(context)|Article]]
6606 [[:Bar:Article(context)|Article]]
6607 [[Article(context)]]
6609 [[:Bar:X(Y)Z|X(Y)Z]]
6613 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6617 [[Article (context), context|]]
6618 [[Article (context),context|]]
6619 [[Bar:Article (context), context|]]
6620 [[Bar:Article (context),context|]]
6621 [[:Bar:Article (context), context|]]
6622 [[:Bar:Article (context),context|]]
6624 [[Article (context), context|Article]]
6625 [[Article (context),context|Article]]
6626 [[Bar:Article (context), context|Article]]
6627 [[Bar:Article (context),context|Article]]
6628 [[:Bar:Article (context), context|Article]]
6629 [[:Bar:Article (context),context|Article]]
6633 pre-save transform: trim trailing empty lines
6637 Empty lines are trimmed
6643 Empty lines are trimmed
6647 pre-save transform: Signature expansion
6652 * <noinclude>~~~</noinclude>
6653 * <includeonly>~~~</includeonly>
6654 * <onlyinclude>~~~</onlyinclude>
6656 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6657 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6658 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6659 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6664 pre-save transform: Signature expansion in nowiki tags (bug 93)
6670 <nowiki>~~~~</nowiki>
6672 <includeonly><nowiki>~~~~</nowiki></includeonly>
6674 <noinclude><nowiki>~~~~</nowiki></noinclude>
6676 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6678 {{subst:Foo}} shall be converted to FOO
6680 As well as inside noinclude/onlyinclude
6681 <noinclude>{{subst:Foo}}</noinclude>
6682 <onlyinclude>{{subst:Foo}}</onlyinclude>
6684 But not inside includeonly
6685 <includeonly>{{subst:Foo}}</includeonly>
6689 <nowiki>~~~~</nowiki>
6691 <includeonly><nowiki>~~~~</nowiki></includeonly>
6693 <noinclude><nowiki>~~~~</nowiki></noinclude>
6695 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6697 FOO shall be converted to FOO
6699 As well as inside noinclude/onlyinclude
6700 <noinclude>FOO</noinclude>
6701 <onlyinclude>FOO</onlyinclude>
6703 But not inside includeonly
6704 <includeonly>{{subst:Foo}}</includeonly>
6708 ### Message transform tests
6711 message transform: magic variables
6721 message transform: should not transform wiki markup
6731 message transform: <noinclude> in transcluded template (bug 4926)
6741 message transform: <onlyinclude> in transcluded template (bug 4926)
6751 {{#special:}} page name, known
6755 {{#special:Recentchanges}}
6757 Special:RecentChanges
6761 {{#special:}} page name with subpage, known
6765 {{#special:Recentchanges/param}}
6767 Special:RecentChanges/param
6771 {{#special:}} page name, unknown
6775 {{#special:foobarnonexistent}}
6777 No such special page
6781 {{#speciale:}} page name, known
6785 {{#speciale:Recentchanges}}
6787 Special:RecentChanges
6791 {{#speciale:}} page name with subpage, known
6795 {{#speciale:Recentchanges/param}}
6797 Special:RecentChanges/param
6801 {{#speciale:}} page name, unknown
6805 {{#speciale:foobarnonexistent}}
6807 No_such_special_page
6816 [[Image:foobar.jpg]]
6818 <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>
6825 [[Image:foobar.jpg|right]]
6827 <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>
6832 Simple image (using File: namespace, now canonical)
6836 <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>
6843 [[Image:foobar.jpg|right|Caption text]]
6845 <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>
6850 Image with empty attribute
6852 [[Image:foobar.jpg|right||Caption text]]
6854 <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>
6859 Image with link tails
6861 123[[Image:foobar.jpg]]456
6862 123[[Image:foobar.jpg|right]]456
6863 123[[Image:foobar.jpg|thumb]]456
6865 <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
6867 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
6868 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
6873 Image with multiple captions -- only last one is accepted
6875 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6877 <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>
6882 Image with width attribute at different positions
6884 [[Image:foobar.jpg|200px|right|Caption]]
6885 [[Image:foobar.jpg|right|200px|Caption]]
6886 [[Image:foobar.jpg|right|Caption|200px]]
6888 <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>
6889 <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>
6890 <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>
6895 Image with link parameter, wiki target
6897 [[Image:foobar.jpg|link=Target page]]
6899 <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>
6904 Image with link parameter, URL target
6906 [[Image:foobar.jpg|link=http://example.com/]]
6908 <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>
6913 Image with link parameter, wgExternalLinkTarget
6915 [[Image:foobar.jpg|link=http://example.com/]]
6917 wgExternalLinkTarget='foobar'
6919 <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>
6924 Image with link parameter, wgNoFollowLinks set to false
6926 [[Image:foobar.jpg|link=http://example.com/]]
6928 wgNoFollowLinks=false
6930 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6935 Image with link parameter, wgNoFollowDomainExceptions
6937 [[Image:foobar.jpg|link=http://example.com/]]
6939 wgNoFollowDomainExceptions='example.com'
6941 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6946 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6948 [[Image:foobar.jpg|link=http://example.com/|Title]]
6950 wgExternalLinkTarget='foobar'
6952 <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>
6957 Image with empty link parameter
6959 [[Image:foobar.jpg|link=]]
6961 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6966 Image with link parameter (wiki target) and unnamed parameter
6968 [[Image:foobar.jpg|link=Target page|Title]]
6970 <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>
6975 Image with link parameter (URL target) and unnamed parameter
6977 [[Image:foobar.jpg|link=http://example.com/|Title]]
6979 <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>
6984 Thumbnail image with link parameter
6986 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6988 <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>
6993 Image with frame and link
6995 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6997 <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>
7002 Image with frame and link and explicit alt
7004 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
7006 <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>
7011 Image with wiki markup in implicit alt
7013 [[Image:Foobar.jpg|testing '''bold''' in alt]]
7015 <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>
7020 Image with wiki markup in explicit alt
7022 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
7024 <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>
7029 Link to image page- image page normally doesn't exists, hence edit link
7030 Add test with existing image page
7031 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
7035 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
7040 bug 18784 Link to non-existent image page with caption should use caption as link text
7042 [[:Image:test|caption]]
7044 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
7049 Frameless image caption with a free URL
7051 [[Image:foobar.jpg|http://example.com]]
7053 <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>
7058 Thumbnail image caption with a free URL
7060 [[Image:foobar.jpg|thumb|http://example.com]]
7062 <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>
7067 Thumbnail image caption with a free URL and explicit alt
7069 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
7071 <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>
7076 BUG 1887: A ISBN with a thumbnail
7078 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
7080 <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>
7085 BUG 1887: A RFC with a thumbnail
7087 [[Image:foobar.jpg|thumb|This is RFC 12354]]
7089 <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>
7094 BUG 1887: A mailto link with a thumbnail
7096 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
7098 <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>
7102 # Pending resolution to bug 368
7104 BUG 648: Frameless image caption with a link
7106 [[Image:foobar.jpg|text with a [[link]] in it]]
7108 <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>
7113 BUG 648: Frameless image caption with a link (suffix)
7115 [[Image:foobar.jpg|text with a [[link]]foo in it]]
7117 <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>
7122 BUG 648: Frameless image caption with an interwiki link
7124 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
7126 <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>
7131 BUG 648: Frameless image caption with a piped interwiki link
7133 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7135 <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>
7140 Escape HTML special chars in image alt text
7142 [[Image:foobar.jpg|& < > "]]
7144 <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>
7149 BUG 499: Alt text should have Ӓ, not &1234;
7151 [[Image:foobar.jpg|♀]]
7153 <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>
7158 Broken image caption with link
7160 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7162 <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.
7167 Image caption containing another image
7169 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7171 <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>
7176 Image caption containing a newline
7178 [[Image:Foobar.jpg|This
7181 <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>
7186 Parsoid: Image caption containing leading space
7187 (The leading space should not trigger nowiki escaping in wt2wt mode)
7189 [[Image:Foobar.jpg|thumb| bar]]
7191 <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>
7196 Bug 3090: External links other than http: in image captions
7198 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7200 <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>
7207 [[Image:foobar.jpg|a|class=b]]
7209 <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>
7214 Localized image handling (1).
7218 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
7220 <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>
7225 Localized image handling (2).
7229 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
7231 <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>
7236 "border", "frameless" and "class" attributes on an image.
7238 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
7240 <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>
7247 #REDIRECT [[File:Barfoo.jpg]]
7253 [[Image:Barfoo.jpg]]
7255 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7260 Missing image with uploads disabled
7264 [[Image:Foobaz.jpg]]
7266 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7275 Subpage test/subpage
7283 subpage title=[[Subpage test]]
7287 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7292 Subpage noslash link
7294 subpage title=[[Subpage test]]
7298 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7307 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7312 BUG 561: {{/Subpage}}
7314 subpage title=[[Page]]
7318 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7326 Category:MediaWiki User's Guide
7334 [[:Category:MediaWiki User's Guide]]
7336 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7345 [[Category:MediaWiki User's Guide]]
7347 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7351 PAGESINCATEGORY invalid title fatal (r33546 fix)
7353 {{PAGESINCATEGORY:<bogus>}}
7360 Category with different sort key
7364 [[Category:MediaWiki User's Guide|Foo]]
7366 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7370 Category with identical sort key
7374 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7376 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7380 Category with empty sort key
7385 [[Category:MediaWiki User's Guide|]]
7387 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7391 Category with empty sort key and parentheses
7396 [[Category:Foo (bar)|]]
7398 [[Category:Foo (bar)|Foo]]
7402 Category with link tail
7407 123[[Category:Foo]]456
7409 123[[Category:Foo]]456
7413 Category with template
7418 [[Category:{{echo|Foo}}]]
7420 [[Category:{{echo|Foo}}]]
7424 Category with template in sort key
7429 [[Category:Foo|{{echo|Bar}}]]
7431 [[Category:Foo|{{echo|Bar}}]]
7435 Category with template in sort key and title
7440 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7442 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7446 Category / paragraph interactions
7448 Foo [[Category:Baz]] Bar
7450 Foo [[Category:Baz]]
7458 [[Category:Baz]] Bar
7471 {{echo|[[Category:Baz]]}}
7486 ### Inter-language links
7489 Inter-language links
7495 [[zh:食品]]
7497 es:Alimento fr:Nourriture zh:食品
7501 Duplicate interlanguage links (bug 24502)
7517 Basic section headings
7524 ===Smaller headline===
7527 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
7530 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2">Headline 2</span></h2>
7533 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a>]</span> <span class="mw-headline" id="Smaller_headline">Smaller headline</span></h3>
7539 Section headings with TOC
7542 === Subheadline 1 ===
7543 ===== Skipping a level =====
7544 ====== Skipping a level ======
7548 ===Another headline===
7550 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7552 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
7554 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
7556 <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>
7558 <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>
7565 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
7567 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
7572 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2>
7573 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a>]</span> <span class="mw-headline" id="Subheadline_1"> Subheadline 1 </span></h3>
7574 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level"> Skipping a level </span></h5>
7575 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level_2"> Skipping a level </span></h6>
7576 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a>]</span> <span class="mw-headline" id="Headline_2"> Headline 2 </span></h2>
7579 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a>]</span> <span class="mw-headline" id="Another_headline">Another headline</span></h3>
7583 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
7585 Handling of sections up to level 6 and beyond
7588 == Level 2 Heading==
7589 === Level 3 Heading===
7590 ==== Level 4 Heading====
7591 ===== Level 5 Heading=====
7592 ====== Level 6 Heading======
7593 ======= Level 7 Heading=======
7594 ======== Level 8 Heading========
7595 ========= Level 9 Heading=========
7596 ========== Level 10 Heading==========
7598 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7600 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
7602 <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>
7604 <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>
7606 <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>
7608 <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>
7610 <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>
7611 <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>
7612 <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>
7613 <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>
7614 <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>
7627 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a>]</span> <span class="mw-headline" id="Level_1_Heading"> Level 1 Heading</span></h1>
7628 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a>]</span> <span class="mw-headline" id="Level_2_Heading"> Level 2 Heading</span></h2>
7629 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a>]</span> <span class="mw-headline" id="Level_3_Heading"> Level 3 Heading</span></h3>
7630 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a>]</span> <span class="mw-headline" id="Level_4_Heading"> Level 4 Heading</span></h4>
7631 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a>]</span> <span class="mw-headline" id="Level_5_Heading"> Level 5 Heading</span></h5>
7632 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a>]</span> <span class="mw-headline" id="Level_6_Heading"> Level 6 Heading</span></h6>
7633 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a>]</span> <span class="mw-headline" id=".3D_Level_7_Heading.3D">= Level 7 Heading=</span></h6>
7634 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a>]</span> <span class="mw-headline" id=".3D.3D_Level_8_Heading.3D.3D">== Level 8 Heading==</span></h6>
7635 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D">=== Level 9 Heading===</span></h6>
7636 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a>]</span> <span class="mw-headline" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D">==== Level 10 Heading====</span></h6>
7641 TOC regression (bug 9764)
7645 ==== title 1.1.1 ====
7650 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7652 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7654 <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>
7656 <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>
7659 <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>
7662 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7664 <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>
7669 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
7670 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
7671 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4>
7672 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2"> title 1.2 </span></h3>
7673 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
7674 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1"> title 2.1 </span></h3>
7679 TOC with wgMaxTocLevel=3 (bug 6204)
7685 ==== title 1.1.1 ====
7690 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7692 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7694 <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>
7695 <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>
7698 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7700 <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>
7705 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
7706 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
7707 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4>
7708 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a>]</span> <span class="mw-headline" id="title_1.2"> title 1.2 </span></h3>
7709 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
7710 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a>]</span> <span class="mw-headline" id="title_2.1"> title 2.1 </span></h3>
7715 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7721 ====Section 1.1.1====
7722 ====Section 1.1.1.1====
7725 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7727 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7729 <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>
7732 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7735 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7736 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1">Section 1.1</span></h3>
7737 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Section 1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1">Section 1.1.1</span></h4>
7738 <h4><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Section 1.1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1.1">Section 1.1.1.1</span></h4>
7739 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Section 2">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7745 Resolving duplicate section names
7750 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar"> Foo bar </span></h2>
7751 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar_2"> Foo bar </span></h2>
7756 Resolving duplicate section names with differing case (bug 10721)
7761 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a>]</span> <span class="mw-headline" id="Foo_bar"> Foo bar </span></h2>
7762 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2"> Foo Bar </span></h2>
7774 Template with sections, __NOTOC__
7781 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a>]</span> <span class="mw-headline" id="Section_0">Section 0</span></h2>
7782 <h3><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-1" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h3>
7783 <h2><span class="editsection">[<a href="/index.php?title=Template:Sections&action=edit&section=T-2" title="Template:Sections">edit</a>]</span> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7784 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a>]</span> <span class="mw-headline" id="Section_4">Section 4</span></h2>
7789 __NOEDITSECTION__ keyword
7795 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7796 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7801 Link inside a section heading
7803 ==Section with a [[Main Page|link]] in it==
7805 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a>]</span> <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></h2>
7810 TOC regression (bug 12077)
7817 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7819 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7821 <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>
7824 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7827 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2>
7828 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3>
7829 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2>
7834 BUG 1219 URL next to image (good)
7836 http://example.com [[Image:foobar.jpg]]
7838 <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>
7843 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
7846 The line above must have a trailing space!
7849 But just in case it doesn't...
7851 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D">=</span></h1>
7852 <p>The line above must have a trailing space!
7854 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =">edit</a>]</span> <span class="mw-headline" id=".3D_2">=</span></h1>
7855 <p>But just in case it doesn't...
7860 Header with special characters (bug 25462)
7862 The tooltips shall not show entities to the user (ie. be double escaped)
7879 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7881 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7883 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7884 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7885 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7886 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7887 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7890 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: text > text">edit</a>]</span> <span class="mw-headline" id="text_.3E_text"> text > text </span></h2>
7893 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: text < text">edit</a>]</span> <span class="mw-headline" id="text_.3C_text"> text < text </span></h2>
7896 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: text & text">edit</a>]</span> <span class="mw-headline" id="text_.26_text"> text & text </span></h2>
7899 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: text ' text">edit</a>]</span> <span class="mw-headline" id="text_.27_text"> text ' text </span></h2>
7902 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: text " text">edit</a>]</span> <span class="mw-headline" id="text_.22_text"> text " text </span></h2>
7908 Headers with excess '=' characters
7909 (Are similar tests necessary beyond the 1st level?)
7913 =''italic'' heading==
7914 ==''italic'' heading=
7916 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7918 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7919 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7920 <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>
7921 <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>
7924 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: foo=">edit</a>]</span> <span class="mw-headline" id="foo.3D">foo=</span></h1>
7925 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =foo">edit</a>]</span> <span class="mw-headline" id=".3Dfoo">=foo</span></h1>
7926 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: italic heading=">edit</a>]</span> <span class="mw-headline" id="italic_heading.3D"><i>italic</i> heading=</span></h1>
7927 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: =italic heading">edit</a>]</span> <span class="mw-headline" id=".3Ditalic_heading">=<i>italic</i> heading</span></h1>
7932 BUG 1219 URL next to image (broken)
7934 http://example.com[[Image:foobar.jpg]]
7936 <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>
7941 Bug 1186 news: in the middle of text
7943 http://en.wikinews.org/wiki/Wikinews:Workplace
7945 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7951 Namespaced link must have a title
7960 Namespaced link must have a title (bad fragment version)
7962 [[Project:#fragment]]
7964 <p>[[Project:#fragment]]
7970 ### HTML tags and HTML attributes
7974 div with no attributes
7976 <div>HTML rocks</div>
7978 <div>HTML rocks</div>
7983 div with double-quoted attribute
7985 <div id="rock">HTML rocks</div>
7987 <div id="rock">HTML rocks</div>
7992 div with single-quoted attribute
7994 <div id='rock'>HTML rocks</div>
7996 <div id="rock">HTML rocks</div>
8001 div with unquoted attribute
8003 <div id=rock>HTML rocks</div>
8005 <div id="rock">HTML rocks</div>
8010 div with illegal double attributes
8012 <div id="a" id="b">HTML rocks</div>
8014 <div id="b">HTML rocks</div>
8018 # FIXME: produce empty string instead of "class" in the PHP parser, following
8021 div with empty attribute value, space before equals
8025 <div class =>HTML rocks</div>
8027 <div class="">HTML rocks</div>
8031 # The PHP parser escapes the opening brace to { for some reason, so
8032 # disabled this test for it.
8034 div with braces in attribute value
8038 <div title="{}">Foo</div>
8040 <div title="{}">Foo</div>
8043 # This it very inconsistent in the PHP parser: it returns
8044 # class="class" if there is a space between the name and the equal sign (see
8045 # 'div with empty attribute value, space before equals'), but strips the
8046 # attribute completely if the space is missing. We hope that not much content
8047 # depends on this, so are implementing the behavior below in Parsoid for
8048 # consistencies' sake. Disabled for the PHP parser.
8049 # FIXME: fix this behavior in the PHP parser?
8051 div with empty attribute value, no space before equals
8055 <div class=>HTML rocks</div>
8057 <div class="">HTML rocks</div>
8062 HTML multiple attributes correction
8064 <p class="error" class="awesome">Awesome!</p>
8066 <p class="awesome">Awesome!</p>
8071 Table multiple attributes correction
8074 !+ class="error" class="awesome"| status
8079 <th class="awesome"> status
8087 <DIV ID="x">HTML ROCKS</DIV>
8089 <div id="x">HTML ROCKS</div>
8094 Non-ASCII pseudo-tags are rendered as text
8103 Pseudo-tag with URL 'name' renders as url link
8105 <http://example.com/>
8107 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
8112 text with amp in the middle of nowhere
8116 <p>Remember AT&T?
8121 text with character entity: eacute
8123 I always thought é was a cute letter.
8125 <p>I always thought é was a cute letter.
8130 text with entity-escaped character entity-like string: eacute
8132 I always thought &eacute; was a cute letter.
8134 <p>I always thought &eacute; was a cute letter.
8139 text with undefined character entity: xacute
8141 I always thought &xacute; was a cute letter.
8143 <p>I always thought &xacute; was a cute letter.
8155 [[Media:Foobar.jpg]]
8157 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
8162 Media link with text
8164 [[Media:Foobar.jpg|A neat file to look at]]
8166 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
8170 # FIXME: this is still bad HTML tag nesting
8172 Media link with nasty text
8173 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
8175 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
8177 <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>
8182 Media link to nonexistent file (bug 1702)
8184 [[Media:No such.jpg]]
8186 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
8191 Image link to nonexistent file (bug 1850 - good)
8193 [[Image:No such.jpg]]
8195 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
8200 :Image link to nonexistent file (bug 1850 - bad)
8202 [[:Image:No such.jpg]]
8204 <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>
8211 Character reference normalization in link text (bug 1938)
8213 [[Main Page|this&that]]
8215 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
8222 Test for unicode normalization
8224 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
8228 (bug 19451) Links should refer to the normalized form.
8236 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8237 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8238 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8239 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8240 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8245 Empty attribute crash test (bug 2067)
8247 <font color="">foo</font>
8249 <p><font color="">foo</font>
8254 Empty attribute crash test single-quotes (bug 2067)
8256 <font color=''>foo</font>
8258 <p><font color="">foo</font>
8263 Attribute test: equals, then nothing
8265 <font color=>foo</font>
8272 Attribute test: unquoted value
8274 <font color=x>foo</font>
8276 <p><font color="x">foo</font>
8281 Attribute test: unquoted but illegal value (hash)
8283 <font color=#x>foo</font>
8285 <p><font color="#x">foo</font>
8290 Attribute test: no value
8292 <font color>foo</font>
8294 <p><font color="color">foo</font>
8299 Bug 2095: link with three closing brackets
8303 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8308 Bug 2095: link with pipe and three closing brackets
8312 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8317 Bug 2095: link with pipe and three closing brackets, version 2
8319 [[Main Page|[http://example.com/]]]
8321 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
8331 Template:Dangerous attribute
8333 " onmouseover="alert(document.cookie)
8337 Template:Dangerous style attribute
8339 border-size: expression(alert(document.cookie))
8345 <div style="float: right; {{{1}}}">Magic div</div>
8349 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
8351 <div title="{{test}}"></div>
8353 <div title="This is a test template"></div>
8358 Bug 2304: HTML attribute safety (dangerous template; 2309)
8360 <div title="{{dangerous attribute}}"></div>
8362 <div title=""></div>
8367 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8369 <div style="{{dangerous style attribute}}"></div>
8371 <div style="/* insecure input */"></div>
8376 Bug 2304: HTML attribute safety (safe parameter; 2309)
8378 {{div style|width: 200px}}
8380 <div style="float: right; width: 200px">Magic div</div>
8385 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
8387 {{div style|width: expression(alert(document.cookie))}}
8389 <div style="/* insecure input */">Magic div</div>
8394 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
8396 {{div style|"><script>alert(document.cookie)</script>}}
8398 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8403 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
8405 {{div style|" ><script>alert(document.cookie)</script>}}
8407 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8412 Bug 2304: HTML attribute safety (link)
8414 <div title="[[Main Page]]"></div>
8416 <div title="[[Main Page]]"></div>
8421 Bug 2304: HTML attribute safety (italics)
8423 <div title="''foobar''"></div>
8425 <div title="''foobar''"></div>
8430 Bug 2304: HTML attribute safety (bold)
8432 <div title="'''foobar'''"></div>
8434 <div title="'''foobar'''"></div>
8440 Bug 2304: HTML attribute safety (ISBN)
8442 <div title="ISBN 1234567890"></div>
8444 <div title="ISBN 1234567890"></div>
8449 Bug 2304: HTML attribute safety (RFC)
8451 <div title="RFC 1234"></div>
8453 <div title="RFC 1234"></div>
8458 Bug 2304: HTML attribute safety (PMID)
8460 <div title="PMID 1234567890"></div>
8462 <div title="PMID 1234567890"></div>
8467 Bug 2304: HTML attribute safety (web link)
8469 <div title="http://example.com/"></div>
8471 <div title="http://example.com/"></div>
8476 Bug 2304: HTML attribute safety (named web link)
8478 <div title="[http://example.com/ link]"></div>
8480 <div title="[http://example.com/ link]"></div>
8485 Bug 3244: HTML attribute safety (extension; safe)
8487 <div style="<nowiki>background:blue</nowiki>"></div>
8489 <div style="background:blue"></div>
8494 Bug 3244: HTML attribute safety (extension; unsafe)
8496 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
8498 <div style="/* insecure input */"></div>
8502 # More MSIE fun discovered by Tom Gilder
8505 MSIE CSS safety test: spurious slash
8507 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
8509 <div style="/* insecure input */">evil</div>
8514 MSIE CSS safety test: hex code
8516 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
8518 <div style="/* insecure input */">evil</div>
8523 MSIE CSS safety test: comment in url
8525 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
8527 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
8532 MSIE CSS safety test: comment in expression
8534 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
8536 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
8542 Table attribute legitimate extension
8545 !+ style="<nowiki>color:blue</nowiki>"| status
8550 <th style="color:blue"> status
8556 Table attribute safety
8559 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
8564 <th style="/* insecure input */"> status
8570 CSS line continuation 1
8572 <div style="background-image: u\ rl(test.jpg);"></div>
8574 <div style="/* insecure input */"></div>
8579 CSS line continuation 2
8581 <div style="background-image: u\ rl(test.jpg); "></div>
8583 <div style="/* insecure input */"></div>
8594 Expansion of multi-line templates in attribute values (bug 6255)
8596 <div style="background: {{identity|#00FF00}}">-</div>
8598 <div style="background: #00FF00">-</div>
8604 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
8606 <div style="background:
8609 <div style="background: #00FF00">-</div>
8614 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
8616 <div style="background: #00FF00">-</div>
8618 <div style="background: #00FF00">-</div>
8623 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
8626 Parser hook: empty input
8639 Parser hook: empty input using terminated empty elements
8652 Parser hook: empty input using terminated empty elements (space before)
8665 Parser hook: basic input
8679 Parser hook: case insensitive
8693 Parser hook: case insensitive, redux
8706 Parser hook: nested tags
8710 <tag><tag></tag></tag>
8721 Parser hook: basic arguments
8723 <tag width=200 height = "100" depth = '50' square></tag>
8731 'square' => 'square',
8738 Parser hook: argument containing a forward slash (bug 5344)
8740 <tag filename='/tmp/bla'></tag>
8745 'filename' => '/tmp/bla',
8752 Parser hook: empty input using terminated empty elements (bug 2374)
8765 # </tag> should be output literally since there is no matching tag that begins it
8767 Parser hook: basic arguments using terminated empty elements (bug 2374)
8769 <tag width=200 height = "100" depth = '50' square/>
8779 'square' => 'square',
8788 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8792 Parser hook: static parser hook not inside a comment
8794 <statictag>hello, world</statictag>
8795 <statictag action=flush/>
8803 Parser hook: static parser hook inside a comment
8805 <!-- <statictag>hello, world</statictag> -->
8806 <statictag action=flush/>
8812 # Nested template calls; this case was broken by Parser.php rev 1.506,
8816 Template:One-parameter
8818 (My parameter is: {{{1}}})
8822 Template:Map-one-parameter
8828 Nested template calls
8830 {{Map-one-parameter|One-parameter|param}}
8832 <p>(My parameter is: param)
8841 Sanitizer: Closing of open tags
8843 <s></s><table></table>
8845 <s></s><table></table>
8850 Sanitizer: Closing of open but not closed tags
8859 Sanitizer: Closing of closed but not open tags
8868 Sanitizer: Closing of closed but not open table tags
8870 Table not started</td></tr></table>
8872 <p>Table not started</td></tr></table>
8877 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8879 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8881 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8886 Sanitizer: Validating the contents of the id attribute (bug 4515)
8892 Something, but definitely not <br id="9" />...
8896 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8900 <br id="foo" /><br id="foo" />
8902 Something need to be done. foo-2 ?
8906 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8909 <meta itemprop="hello" content="world">
8910 <meta http-equiv="refresh" content="5">
8911 <meta itemprop="hello" http-equiv="refresh" content="5">
8912 <link itemprop="hello" href="{{SERVER}}">
8913 <link rel="stylesheet" href="{{SERVER}}">
8914 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8917 <div itemscope="itemscope">
8918 <p> <meta itemprop="hello" content="world" />
8919 <meta http-equiv="refresh" content="5">
8920 <meta itemprop="hello" content="5" />
8922 <link itemprop="hello" href="http://example.org" />
8923 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
8924 <link itemprop="hello" href="http://example.org" />
8930 Language converter: output gets cut off unexpectedly (bug 5757)
8934 this bit is safe: }-
8936 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8938 then we get cut off here: }-
8940 all additional text is vanished
8942 <p>this bit is safe: }-
8943 </p><p>but if we add a conversion instance: xxx
8944 </p><p>then we get cut off here: }-
8945 </p><p>all additional text is vanished
8950 Self closed html pairs (bug 5487)
8953 <center><font id="bug" />Centered text</center>
8954 <div><font id="bug2" />In div text</div>
8956 <center><font id="bug" />Centered text</center>
8957 <div><font id="bug2" />In div text</div>
8966 Punctuation: nbsp before exclamation
8970 <p>C'est grave !
8975 Punctuation: CSS !important (bug 11874)
8977 <div style="width:50% !important">important</div>
8979 <div style="width:50% !important">important</div>
8984 Punctuation: CSS ! important (bug 11874; with space after)
8986 <div style="width:50% ! important">important</div>
8988 <div style="width:50% ! important">important</div>
8994 HTML bullet list, closed tags (bug 5497)
9009 HTML bullet list, unclosed tags (bug 5497)
9026 HTML ordered list, closed tags (bug 5497)
9041 HTML ordered list, unclosed tags (bug 5497)
9058 HTML nested bullet list, closed tags (bug 5497)
9083 HTML nested bullet list, open tags (bug 5497)
9108 HTML nested ordered list, closed tags (bug 5497)
9133 HTML nested ordered list, open tags (bug 5497)
9158 HTML ordered list item with parameters oddity
9160 <ol><li id="fragment">One</li></ol>
9162 <ol><li id="fragment">One</li></ol>
9167 bug 5918: autonumbering
9169 [http://first/] [http://second] [ftp://ftp]
9173 [mailto:enclosed@mail.tld With target]
9175 [mailto:enclosed@mail.tld]
9177 mailto:inline@mail.tld
9179 <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>
9180 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
9181 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
9182 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
9183 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
9189 # Security and HTML correctness
9190 # From Nick Jenkins' fuzz testing
9194 Fuzz testing: Parser13
9209 Fuzz testing: Parser14
9214 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a>]</span> <span class="mw-headline" id="onmouseover.3D"> onmouseover= </span></h2>
9215 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9217 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
9224 Fuzz testing: Parser14-table
9229 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a>]</span> <span class="mw-headline" id="a">a</span></h2>
9230 <table style="__TOC__">
9236 # Known to produce bogus xml (extra </td>)
9238 Fuzz testing: Parser16
9258 Fuzz testing: Parser21
9261 ! irc://{{ftp://a" onmouseover="alert('hello world');"
9266 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
9276 Fuzz testing: Parser22
9278 http://===r:::https://b
9282 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9290 # Known to produce bad XML for now
9292 Fuzz testing: Parser24
9299 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9300 <br style="onmouseover='alert(document.cookie);' " />
9302 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9307 <u class="|">}}}} >
9308 <br style="onmouseover='alert(document.cookie);'" />
9310 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9319 # Note: the current result listed for this is not what the original one was,
9320 # but the original bug was JavaScript injection, which is fixed in any case.
9321 # It's not clear that the original result listed was any more correct than the
9322 # current one. Original result:
9325 # <li class="||">
9326 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9328 Fuzz testing: Parser25 (bug 6055)
9334 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
9336 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9341 Fuzz testing: URL adjacent extension (with space, clean)
9344 http://example.com <nowiki>junk</nowiki>
9346 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
9351 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
9354 http://example.com<nowiki>junk</nowiki>
9356 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
9361 Fuzz testing: URL adjacent extension (no space, dirty; pre)
9364 http://example.com<pre>junk</pre>
9366 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9371 Fuzz testing: image with bogus manual thumbnail
9373 [[Image:foobar.jpg|thumbnail= ]]
9375 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9380 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9382 <pre dir=" "></pre>
9384 <pre dir=" "></pre>
9389 Parsing optional HTML elements (Bug 6171)
9394 <td> Some tabular data</td>
9395 <td> More tabular data ...
9396 <td> And yet som tabular data</td>
9402 <td> Some tabular data</td>
9403 <td> More tabular data ...
9404 </td><td> And yet som tabular data</td>
9411 Correct handling of <td>, <tr> (Bug 6171)
9416 <td> Some tabular data</td>
9417 <td> More tabular data ...</td>
9418 <td> And yet som tabular data</td>
9424 <td> Some tabular data</td>
9425 <td> More tabular data ...</td>
9426 <td> And yet som tabular data</td>
9434 Parsing crashing regression (fr:JavaScript)
9438 <p></body></x>
9443 Inline wiki vs wiki block nesting
9449 <p><b>Bold paragraph</b>
9450 </p><p>New wiki paragraph
9455 Inline HTML vs wiki block nesting
9463 <p><b>Bold paragraph</b>
9464 </p><p>New wiki paragraph
9468 # Original result was this:
9469 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
9471 # While that might be marginally more intuitive, maybe, the six-apostrophe
9472 # construct is clearly pathological and the result stated here (which is what
9473 # the parser actually does) is about as reasonable as anything.
9475 Mixing markup for italics and bold
9478 '''bold''''''bold''bolditalics'''''
9480 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
9488 Article for special page transclusion test
9492 Special page transclusion
9495 {{Special:Prefixindex/Xyzzyx}}
9497 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9502 Special page transclusion twice (bug 5021)
9505 {{Special:Prefixindex/Xyzzyx}}
9506 {{Special:Prefixindex/Xyzzyx}}
9508 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9509 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9514 Transclusion of default MediaWiki message
9516 {{MediaWiki:Mainpage}}
9523 Transclusion of nonexistent MediaWiki message
9525 {{MediaWiki:Mainpagexxx}}
9527 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
9532 Transclusion of MediaWiki message with underscore
9534 {{MediaWiki:history_short}}
9541 Transclusion of MediaWiki message with space
9543 {{MediaWiki:history short}}
9550 Invalid header with following text
9560 Section extraction test (section 0)
9580 Section extraction test (section 1)
9602 Section extraction test (section 2)
9623 Section extraction test (section 3)
9643 Section extraction test (section 4)
9667 Section extraction test (section 5)
9687 Section extraction test (section 6)
9708 Section extraction test (section 7)
9728 Section extraction test (section 8)
9748 Section extraction test (section 9)
9769 Section extraction test (section 10)
9789 Section extraction test (nonexistent section 11)
9808 Section extraction test with bogus heading (section 1)
9813 ==bogus== not a legal section
9817 ==bogus== not a legal section
9821 Section extraction test with bogus heading (section 2)
9826 ==bogus== not a legal section
9833 Section extraction test with comment after heading (section 1)
9845 Section extraction test with comment after heading (section 2)
9857 Section extraction test with bogus <nowiki> heading (section 1)
9862 ==bogus== <nowiki>not a legal section</nowiki>
9866 ==bogus== <nowiki>not a legal section</nowiki>
9870 Section extraction test with bogus <nowiki> heading (section 2)
9875 ==bogus== <nowiki>not a legal section</nowiki>
9882 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9883 # instead of respecting commented sections
9885 Section extraction prefixed by comment (section 1)
9896 Section extraction prefixed by comment (section 2)
9907 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9908 # instead of respecting HTML-style headings
9910 Section extraction, mixed wiki and html (section 1)
9926 Section extraction, mixed wiki and html (section 2)
9942 # Formerly testing for bug 3342
9944 Section extraction, heading surrounded by <noinclude>
9948 <noinclude>==unmarked==</noinclude>
9954 # Test behavior of bug 19910
9956 Sectiion with all-equals
9961 The line above must have a trailing space
9964 But just in case it doesn't...
9968 But just in case it doesn't...
9972 Section replacement test (section 0)
10003 Section replacement test (section 1)
10032 Section replacement test (section 2)
10062 Section replacement test (section 3)
10093 Section replacement test (section 4)
10120 Section replacement test (section 5)
10151 Section replacement test (section 6)
10181 Section replacement test (section 7)
10212 Section replacement test (section 8)
10243 Section replacement test (section 9)
10272 Section replacement test (section 10)
10302 Section replacement test with initial whitespace (bug 13728)
10306 Preformatted initial line
10310 Preformatted initial line
10317 Section extraction, heading followed by pre with 20 spaces (bug 6398)
10329 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
10342 Section extraction, <pre> around bogus header (bug 10309)
10359 Section replacement, <pre> around bogus header (bug 10309)
10361 noxml replace=2,"xxx"
10382 Handling of 
 in URLs
10386 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
10393 5 quotes, code coverage +1 line
10400 Special:Search page linking.
10404 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
10416 * {{BASEPAGENAMEE}}
10418 * {{TALKPAGENAMEE}}
10419 * {{SUBJECTPAGENAME}}
10420 * {{SUBJECTPAGENAMEE}}
10426 * {{SUBJECTSPACEE}}
10427 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
10429 <ul><li> Parser test
10430 </li><li> Parser test
10431 </li><li> Parser test
10432 </li><li> Parser_test
10433 </li><li> Parser test
10434 </li><li> Parser_test
10435 </li><li> Talk:Parser test
10436 </li><li> Talk:Parser_test
10437 </li><li> Parser test
10438 </li><li> Parser_test
10445 </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>
10449 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
10459 image4 |300px| centre
10460 image5.svg| http://///////
10465 <ul class="gallery">
10466 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10467 <div style="height: 150px;">Image1.png</div>
10468 <div class="gallerytext">
10471 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10472 <div style="height: 150px;">Image2.gif</div>
10473 <div class="gallerytext">
10478 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10479 <div style="height: 150px;">Image3</div>
10480 <div class="gallerytext">
10483 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10484 <div style="height: 150px;">Image4</div>
10485 <div class="gallerytext">
10490 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10491 <div style="height: 150px;">Image5.svg</div>
10492 <div class="gallerytext">
10493 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
10497 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10498 <div style="height: 150px;">* image6</div>
10499 <div class="gallerytext">
10507 Gallery (with options)
10509 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
10510 File:Nonexistant.jpg|caption
10511 File:Nonexistant.jpg
10512 image:foobar.jpg|some '''caption''' [[Main Page]]
10514 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
10517 <ul class="gallery" style="max-width: 226px;_width: 226px;">
10518 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
10519 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10520 <div style="height: 70px;">Nonexistant.jpg</div>
10521 <div class="gallerytext">
10526 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10527 <div style="height: 70px;">Nonexistant.jpg</div>
10528 <div class="gallerytext">
10531 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10532 <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>
10533 <div class="gallerytext">
10534 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10538 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10539 <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>
10540 <div class="gallerytext">
10543 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10544 <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>
10545 <div class="gallerytext">
10555 Gallery with wikitext inside caption
10558 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
10559 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
10562 <ul class="gallery">
10563 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10564 <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>
10565 <div class="gallerytext">
10566 <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>
10570 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10571 <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>
10572 <div class="gallerytext">
10573 <p>This is a test template
10582 gallery (with showfilename option)
10584 <gallery showfilename>
10585 File:Nonexistant.jpg|caption
10586 File:Nonexistant.jpg
10587 image:foobar.jpg|some '''caption''' [[Main Page]]
10591 <ul class="gallery">
10592 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10593 <div style="height: 150px;">Nonexistant.jpg</div>
10594 <div class="gallerytext">
10595 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10600 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10601 <div style="height: 150px;">Nonexistant.jpg</div>
10602 <div class="gallerytext">
10603 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10607 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10608 <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>
10609 <div class="gallerytext">
10610 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10611 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10615 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10616 <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>
10617 <div class="gallerytext">
10618 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10627 Gallery (with namespace-less filenames)
10630 File:Nonexistant.jpg
10636 <ul class="gallery">
10637 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10638 <div style="height: 150px;">Nonexistant.jpg</div>
10639 <div class="gallerytext">
10642 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10643 <div style="height: 150px;">Nonexistant.jpg</div>
10644 <div class="gallerytext">
10647 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10648 <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>
10649 <div class="gallerytext">
10652 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10653 <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>
10654 <div class="gallerytext">
10662 HTML Hex character encoding (spells the word "JavaScript")
10664 JavaScript
10666 <p>JavaScript
10671 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10675 <p>&#xsee;&#XSEE;
10680 HTML Hex character encoding mixed case
10689 __FORCETOC__ override
10701 ISBN 978-0-1234-56 789
10703 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10708 ISBN followed by 5 spaces
10719 ISBN ISBN 1234567890
10721 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10726 Bug 22905: <abbr> followed by ISBN followed by </a>
10728 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10730 <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>
10739 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10744 Double RFC with a wiki link
10748 <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>
10757 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10762 Centre-aligned image
10764 [[Image:foobar.jpg|centre]]
10766 <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>
10773 [[Image:foobar.jpg|none]]
10775 <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>
10780 Width + Height sized image (using px) (height is ignored)
10782 [[Image:foobar.jpg|640x480px]]
10784 <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>
10789 Width-sized image (using px, no following whitespace)
10791 [[Image:foobar.jpg|640px]]
10793 <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>
10798 Width-sized image (using px, with following whitespace - test regression from r39467)
10800 [[Image:foobar.jpg|640px ]]
10802 <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>
10807 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10809 [[Image:foobar.jpg| 640px]]
10811 <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>
10816 Another italics / bold test
10824 # Note the results may be incorrect, as parserTest output included this:
10825 # XML error: Mismatched tag at byte 6120:
10826 # ...<dd> </dt></dl> </dd...
10834 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10845 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10847 Images with the "|" character in the comment
10849 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10851 <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>
10856 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10858 <html><script>alert(1);</script></html>
10860 <p><html><script>alert(1);</script></html>
10865 HTML with raw HTML ($wgRawHtml==true)
10869 <html><script>alert(1);</script></html>
10871 <p><script>alert(1);</script>
10876 Parents of subpages, one level up
10878 subpage title=[[Subpage test/L1/L2/L3]]
10882 <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>
10888 Parents of subpages, one level up, not named
10890 subpage title=[[Subpage test/L1/L2/L3]]
10894 <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>
10901 Parents of subpages, two levels up
10903 subpage title=[[Subpage test/L1/L2/L3]]
10909 <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
10910 </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>
10915 Parents of subpages, two levels up, without trailing slash or name.
10917 subpage title=[[Subpage test/L1/L2/L3]]
10926 Parents of subpages, two levels up, with lots of extra trailing slashes.
10928 subpage title=[[Subpage test/L1/L2/L3]]
10932 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10937 Definition list code coverage
10943 <dl><dt> title  </dt><dd> def
10944 </dd><dt> title </dt><dd> def
10945 </dd><dt>title</dt><dd> def
10951 Don't fall for the self-closing div
10953 <div>hello world</div/>
10955 <div>hello world</div>
10964 <p>[[:Template:Msg]]
10973 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10977 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10979 Always escape literal '>' in output, not just after '<'
10993 <p>This is a test template
10994 This is a test template
11006 Inclusion of !userCanEdit() content
11010 <h2><span class="editsection">[<a href="/index.php?title=MediaWiki:Fake&action=edit&section=T-1" title="MediaWiki:Fake">edit</a>]</span> <span class="mw-headline" id="header">header</span></h2>
11016 Out-of-order TOC heading levels
11025 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11027 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
11029 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
11030 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
11033 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
11035 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
11036 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
11041 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2">2</span></h2>
11042 <h6><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a>]</span> <span class="mw-headline" id="6">6</span></h6>
11043 <h3><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a>]</span> <span class="mw-headline" id="3">3</span></h3>
11044 <h1><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a>]</span> <span class="mw-headline" id="1">1</span></h1>
11045 <h5><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: 5">edit</a>]</span> <span class="mw-headline" id="5">5</span></h5>
11046 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2_2">2</span></h2>
11052 ISBN with a dummy number
11062 ISBN with space-delimited number
11066 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
11072 ISBN with multiple spaces, no number
11091 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11092 </p><p>ISBN 12345678901
11098 ISBN with trailing year (bug 8110)
11100 ISBN 1-234-56789-0 - 2006
11102 ISBN 1 234 56789 0 - 2006
11104 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
11105 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
11113 {{anchorencode:foo bar©#%n}}
11115 <p>foo_bar.C2.A9.23.25n
11120 anchorencode trims spaces
11122 {{anchorencode: __pretty__please__}}
11129 anchorencode deals with links
11131 {{anchorencode: [[hello|world]] [[hi]]}}
11138 anchorencode deals with templates
11140 {{anchorencode: {{Foo}} }}
11147 anchorencode encodes like the TOC generator: (bug 18431)
11149 === _ +:.3A%3A&&]] ===
11150 {{anchorencode: _ +:.3A%3A&&]] }}
11153 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
11154 <p>.2B:.3A.253A.26.26.5D.5D
11158 # Expected output in the following test is not necessarily expected (there
11159 # should probably be <p> tags inside the <blockquote> in the output) -- it's
11160 # only testing for well-formedness.
11162 Bug 6200: blockquotes and paragraph formatting
11182 Bug 8293: Use of center tag ruins paragraph formatting
11204 ### Language variants related tests
11207 Self-link in language variants
11209 title=[[Dunav]] language=sr
11211 Both [[Dunav]] and [[Дунав]] are names for this river.
11213 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
11224 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
11226 title=[[Duna]] language=sr
11228 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
11230 <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.
11235 Link to pages in language variants
11239 Main Page can be written as [[Маин Паге]]
11241 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
11247 Multiple links to pages in language variants
11251 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
11253 <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>.
11259 Simple template in language variants
11265 <p>This is a test template
11271 Template with explicit namespace in language variants
11277 <p>This is a test template
11283 Basic test for template parameter in language variants
11287 {{парамтест|param=foo}}
11289 <p>This is a test template with parameter foo
11295 Simple category in language variants
11299 [[Category:МедиаWики Усер'с Гуиде]]
11301 <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>
11318 Don't convert blue categorylinks to another variant (bug 33210)
11322 [[A]][[Category:分类]]
11324 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
11329 Stripping -{}- tags (language variants)
11333 Latin proverb: -{Ne nuntium necare}-
11335 <p>Latin proverb: Ne nuntium necare
11341 Prevent conversion with -{}- tags (language variants)
11343 language=sr variant=sr-ec
11345 Latinski: -{Ne nuntium necare}-
11347 <p>Латински: Ne nuntium necare
11353 Prevent conversion of text with -{}- tags (language variants)
11355 language=sr variant=sr-ec
11357 Latinski: -{Ne nuntium necare}-
11359 <p>Латински: Ne nuntium necare
11365 Prevent conversion of links with -{}- tags (language variants)
11367 language=sr variant=sr-ec
11371 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11377 -{}- tags within headlines (within html for parserConvert())
11379 language=sr variant=sr-ec
11383 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Уредите одељак „Naslov“">уреди</a>]</span> <span class="mw-headline" id="-.7BNaslov.7D-"> Naslov </span></h2>
11389 Explicit definition of language variant alternatives
11391 language=zh variant=zh-tw
11393 -{zh:China;zh-tw:Taiwan}-, not China
11395 <p>Taiwan, not China
11401 Conversion around HTML tags
11403 language=sr variant=sr-ec
11405 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
11406 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
11409 <span title="ЛаCтин">ски</span>
11415 Explicit session-wise language variant mapping (A flag and - flag)
11417 language=zh variant=zh-tw
11419 Taiwan is not China.
11420 But -{A|zh:China;zh-tw:Taiwan}- is China,
11421 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
11422 and -{China}- is China.
11424 <p>Taiwan is not China.
11425 But Taiwan is Taiwan,
11426 (This should be stripped!)
11427 and China is China.
11432 Explicit session-wise language variant mapping (H flag for hide)
11434 language=zh variant=zh-tw
11436 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
11439 <p>(This should be stripped!)
11445 Adding explicit conversion rule for title (T flag)
11447 language=zh variant=zh-tw showtitle
11449 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11452 <p>Should be stripped!
11457 Testing that changing the language variant here in the tests actually works
11459 language=zh variant=zh showtitle
11461 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11464 <p>Should be stripped!
11469 Recursive conversion of alt and title attrs shouldn't clear converter state
11471 language=zh variant=zh-cn showtitle
11473 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
11474 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
11478 Should be stripped<span title="Exclamation">!</span>
11483 Bug 24072: more test on conversion rule for title
11485 language=zh variant=zh-tw showtitle
11487 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11488 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
11491 <p>This should be stripped!
11492 This won't take interferes with the title rule.
11497 Raw output of variant escape tags (R flag)
11499 language=zh variant=zh-tw
11501 Raw: -{R|zh:China;zh-tw:Taiwan}-
11503 <p>Raw: zh:China;zh-tw:Taiwan
11508 Nested using of manual convert syntax
11510 language=zh variant=zh-hk
11512 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
11514 <p>Nested: Hello Hong Kong!
11519 Proper conversion of text in external links
11521 language=sr variant=sr-ec
11523 http://www.google.com
11524 gopher://www.google.com
11525 [http://www.google.com http://www.google.com]
11526 [gopher://www.google.com gopher://www.google.com]
11527 [https://www.google.com irc://www.google.com]
11528 [ftp://www.google.com www.google.com/ftp://dir]
11529 [//www.google.com www.google.com]
11531 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11532 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11533 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11534 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11535 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
11536 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
11537 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
11542 Do not convert roman numbers to language variants
11544 language=sr variant=sr-ec
11548 <p>Фридрих IV је цар.
11553 Unclosed language converter markup "-{"
11564 Don't convert raw rule "-{R|=>}-" to "=>"
11581 Bug 529: Uncovered bullet
11591 # Plain MediaWiki does not remove empty lists, but tidy actually does.
11592 # Templates in Wikipedia rely on this behavior, as tidy has always been
11593 # enabled there. These tests are normally run *without* tidy, so specify the
11594 # full output here.
11595 # To test realistic parsing behavior, apply a tidy-like transformation to both
11596 # the expected output and your parser's output.
11598 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
11600 ******* Foo {{bullet}}
11602 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
11615 Bug 529: Uncovered table already at line-start
11638 Bug 529: Uncovered bullet in parser function result
11640 * Foo {{lc:{{bullet}} }}
11649 Bug 5678: Double-parsed template argument
11651 {{lc:{{{1}}}|hello}}
11658 Bug 5678: Double-parsed template invocation
11660 {{lc:{{paramtest {{!}} param = hello }} }}
11662 <p>{{paramtest | param = hello }}
11667 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
11670 title=[[Main Page]]
11672 {{PRVNÍVELKÉ:ěščř}}
11673 {{prvnívelké:ěščř}}
11693 Morwen/13: Unclosed link followed by heading
11700 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
11705 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11712 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11717 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
11724 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a>]</span> <span class="mw-headline" id="heading">heading</span></h2>
11739 Paragraphs inside divs (no extra line breaks)
11751 Paragraphs inside divs (extra line break on open)
11766 Paragraphs inside divs (extra line break on close)
11781 Paragraphs inside divs (extra line break on open and close)
11798 Nesting tags, paragraphs on lines which begin with <div>
11802 <div></div><strong>A
11811 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11813 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11817 <blockquote>Line one
11819 Line two</blockquote>
11821 <blockquote>Line one
11822 Line two</blockquote>
11827 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11834 Line two</blockquote>
11839 Line two</blockquote>
11844 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11848 <blockquote>Line one
11853 <blockquote>Line one
11861 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11880 Paragraphs inside blockquotes/divs (no extra line breaks)
11882 <blockquote><div>Line one
11884 Line two</div></blockquote>
11886 <blockquote><div>Line one
11887 Line two</div></blockquote>
11892 Paragraphs inside blockquotes/divs (extra line break on open)
11897 Line two</div></blockquote>
11902 Line two</div></blockquote>
11907 Paragraphs inside blockquotes/divs (extra line break on close)
11909 <blockquote><div>Line one
11912 </div></blockquote>
11914 <blockquote><div>Line one
11917 </div></blockquote>
11922 Paragraphs inside blockquotes/divs (extra line break on open and close)
11928 </div></blockquote>
11934 </div></blockquote>
11939 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11941 wgLinkHolderBatchSize=0
11947 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11948 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11949 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11954 Free external link invading image caption
11956 [[Image:Foobar.jpg|thumb|http://x|hello]]
11958 <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>
11963 Bug 15196: localised external link numbers
11967 [http://en.wikipedia.org/]
11969 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11974 Multibyte character in padleft
11976 {{padleft:-Hello|7|Æ}}
11983 Multibyte character in padright
11985 {{padright:Hello-|7|Æ}}
11992 formatdate parser function
11994 {{#formatdate:2009-03-24}}
11996 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
12001 formatdate parser function, with default format
12003 {{#formatdate:2009-03-24|mdy}}
12005 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
12010 Spacing of numbers in formatted dates
12012 {{#formatdate:January 15}}
12014 <p><span class="mw-formatted-date" title="01-15">January 15</span>
12019 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
12021 language=nl title=[[MediaWiki:Common.css]]
12023 {{#formatdate:2009-03-24|dmy}}
12025 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
12038 Edit comment with link
12042 I like the [[Main Page]] a lot
12044 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
12048 Edit comment with link and link text
12052 I like the [[Main Page|best pages]] a lot
12054 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
12058 Edit comment with link and link text with suffix
12062 I like the [[Main Page|best page]]s a lot
12064 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
12068 Edit comment with section link (non-local, eg in history list)
12070 comment title=[[Main Page]]
12072 /* External links */ removed bogus entries
12074 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12078 Edit comment with section link and text before it (non-local, eg in history list)
12080 comment title=[[Main Page]]
12082 pre-comment text /* External links */ removed bogus entries
12084 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>
12088 Edit comment with section link (local, eg in diff view)
12090 comment local title=[[Main Page]]
12092 /* External links */ removed bogus entries
12094 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12098 Edit comment with subpage link (bug 14080)
12102 title=[[Subpage test]]
12104 Poked at a [[/subpage]] here...
12106 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
12110 Edit comment with subpage link and link text (bug 14080)
12114 title=[[Subpage test]]
12116 Poked at a [[/subpage|neat little page]] here...
12118 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
12122 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
12125 title=[[Subpage test]]
12127 Poked at a [[/subpage]] here...
12129 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
12133 Edit comment with bare anchor link (local, as on diff)
12137 title=[[Main Page]]
12141 <a href="#section">#section</a>
12145 Edit comment with bare anchor link (non-local, as on history)
12148 title=[[Main Page]]
12152 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
12156 Anchor starting with underscore
12160 <p><a href="#_ref">One</a>
12165 Id starting with underscore
12167 <div id="_ref"></div>
12169 <div id="_ref"></div>
12174 Space normalisation on autocomment (bug 22784)
12177 title=[[Main Page]]
12179 /* __hello__world__ */
12181 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
12185 percent-encoding and + signs in comments (Bug 26410)
12189 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
12191 <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>
12195 Bad images - basic functionality
12204 Bad images - bug 16039: text after bad image disappears
12218 Verify that displaytitle works (bug #22501) no displaytitle
12222 wgAllowDisplayTitle=true
12223 wgRestrictDisplayTitle=false
12225 this is not the the title
12228 <p>this is not the the title
12233 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
12238 wgAllowDisplayTitle=true
12239 wgRestrictDisplayTitle=false
12241 this is not the the title
12242 {{DISPLAYTITLE:whatever}}
12245 <p>this is not the the title
12250 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
12255 wgAllowDisplayTitle=true
12256 wgRestrictDisplayTitle=true
12258 this is not the the title
12259 {{DISPLAYTITLE:whatever}}
12262 <p>this is not the the title
12267 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
12272 wgAllowDisplayTitle=true
12273 wgRestrictDisplayTitle=true
12275 this is not the the title
12276 {{DISPLAYTITLE:screen}}
12279 <p>this is not the the title
12284 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
12289 wgAllowDisplayTitle=false
12291 this is not the the title
12292 {{DISPLAYTITLE:screen}}
12295 <p>this is not the the title
12296 <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>
12301 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
12306 wgAllowDisplayTitle=false
12308 this is not the the title
12311 <p>this is not the the title
12316 preload: check <noinclude> and <includeonly>
12320 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
12326 preload: check <onlyinclude>
12330 Goodbye <onlyinclude>Hello world</onlyinclude>
12336 preload: can pass tags through if we want to
12340 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
12342 <includeonly>Hello world</includeonly>
12346 preload: check that it doesn't try to do tricks
12350 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12352 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12356 Play a bit with r67090 and bug 3158
12360 <div style="width:50% !important"> </div>
12361 <div style="width:50% !important"> </div>
12362 <div style="width:50% !important"> </div>
12363 <div style="border : solid;"> </div>
12365 <div style="width:50% !important"> </div>
12366 <div style="width:50% !important"> </div>
12367 <div style="width:50% !important"> </div>
12368 <div style="border : solid;"> </div>
12373 HTML5 data attributes
12375 <span data-foo="bar">Baz</span>
12376 <p data-abc-def_hij="">Quuz</p>
12378 <p><span data-foo="bar">Baz</span>
12380 <p data-abc-def_hij="">Quuz</p>
12385 percent-encoding and + signs in internal links (Bug 26410)
12387 [[User:+%]] [[Page+title%]]
12388 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
12389 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
12390 [[%33%45]] [[%33%45+]]
12392 <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>
12393 <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>
12394 <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>
12395 <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>
12400 Special characters in embedded file links (bug 27679)
12402 [[File:Contains & ampersand.jpg]]
12403 [[File:Does not exist.jpg|Title with & ampersand]]
12405 <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>
12406 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
12412 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
12414 Text's been normalized?
12416 <p>Text's been normalized?
12421 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
12423 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
12425 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
12430 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
12432 [http://www.example.org/ ideograms]
12434 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
12439 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
12441 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
12443 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
12467 Bug 31098 Template which includes system messages which includes the template
12471 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12472 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12477 Bug31490 Turkish: ucfirst 'blah'
12488 Bug31490 Turkish: ucfirst 'ix'
12499 Bug31490 Turkish: lcfirst 'BLAH'
12510 Bug31490 Turkish: ucfırst (with a dotless i)
12516 <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>
12521 Bug31490 ucfırst (with a dotless i) with English language
12527 <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>
12532 Bug 26375: TOC with italics
12534 title=[[Main Page]]
12537 == ''Lost'' episodes ==
12539 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12541 <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>
12544 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Lost episodes">edit</a>]</span> <span class="mw-headline" id="Lost_episodes"> <i>Lost</i> episodes </span></h2>
12549 Bug 26375: TOC with bold
12551 title=[[Main Page]]
12554 == '''should be bold''' then normal text ==
12556 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12558 <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>
12561 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: should be bold then normal text">edit</a>]</span> <span class="mw-headline" id="should_be_bold_then_normal_text"> <b>should be bold</b> then normal text </span></h2>
12566 Bug 33845: Headings become cursive in TOC when they contain an image
12568 title=[[Main Page]]
12571 == Image [[Image:foobar.jpg]] ==
12573 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12575 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
12578 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Image">edit</a>]</span> <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></h2>
12583 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
12585 title=[[Main Page]]
12588 == <blockquote>Quote</blockquote> ==
12590 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12592 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
12595 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Quote">edit</a>]</span> <span class="mw-headline" id="Quote"> <blockquote>Quote</blockquote> </span></h2>
12600 Unclosed tags in TOC
12602 title=[[Main Page]]
12606 <small>Hanc marginis exiguitas non caperet.</small>
12609 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12611 <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>
12614 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Proof: 2 < 3">edit</a>]</span> <span class="mw-headline" id="Proof:_2_.3C_3"> Proof: 2 < 3 </span></h2>
12615 <p><small>Hanc marginis exiguitas non caperet.</small>
12621 Multiple tags in TOC
12624 == <i>Foo</i> <b>Bar</b> ==
12626 == <i>Foo</i> <blockquote>Bar</blockquote> ==
12628 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12630 <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>
12631 <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>
12634 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar"> <i>Foo</i> <b>Bar</b> </span></h2>
12635 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a>]</span> <span class="mw-headline" id="Foo_Bar_2"> <i>Foo</i> <blockquote>Bar</blockquote> </span></h2>
12640 Tags with parameters in TOC
12643 == <sup class="in-h2">Hello</sup> ==
12645 == <sup class="a > b">Evilbye</sup> ==
12647 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12649 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
12650 <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>
12653 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Hello">edit</a>]</span> <span class="mw-headline" id="Hello"> <sup class="in-h2">Hello</sup> </span></h2>
12654 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">Evilbye">edit</a>]</span> <span class="mw-headline" id="b.22.3EEvilbye"> <sup> b">Evilbye</sup> </span></h2>
12659 span tags with directionality in TOC
12662 == <span dir="ltr">C++</span> ==
12664 == <span dir="rtl">זבנג!</span> ==
12666 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12668 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12670 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12672 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12674 <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>
12675 <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>
12676 <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>
12677 <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>
12678 <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>
12681 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: C++">edit</a>]</span> <span class="mw-headline" id="C.2B.2B"> <span dir="ltr">C++</span> </span></h2>
12682 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: זבנג!">edit</a>]</span> <span class="mw-headline" id=".D7.96.D7.91.D7.A0.D7.92.21"> <span dir="rtl">זבנג!</span> </span></h2>
12683 <h2><span class="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> <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></h2>
12684 <h2><span class="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> <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></h2>
12685 <h2><span class="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> <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></h2>
12692 == {{int:headline_sample}} ==
12696 Bug 32057: Title needed when expanding <h> nodes.
12698 title=[[Main Page]]
12702 <h2><span class="editsection">[<a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Headline text">edit</a>]</span> <span class="mw-headline" id="Headline_text"> Headline text </span></h2>
12707 Strip marker in urlencode
12709 {{urlencode:x<nowiki/>y}}
12710 {{urlencode:x<nowiki/>y|wiki}}
12711 {{urlencode:x<nowiki/>y|path}}
12738 Strip marker in formatNum
12740 {{formatnum:1<nowiki/>2}}
12741 {{formatnum:1<nowiki/>2|R}}
12749 Check noCommafy in formatNum
12753 {{formatnum:123456.78}}
12754 {{formatnum:123456.78|NOSEP}}
12762 Strip marker in grammar
12766 {{grammar:elative|foo<nowiki/>bar}}
12773 Strip marker in padleft
12775 {{padleft:|2|x<nowiki/>y}}
12782 Strip marker in padright
12784 {{padright:|2|x<nowiki/>y}}
12791 Strip marker in anchorencode
12793 {{anchorencode:x<nowiki/>y}}
12800 nowiki inside link inside heading (bug 18295)
12802 ==[[foo|x<nowiki>y</nowiki>z]]==
12804 <h2><span class="editsection">[<a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: xyz">edit</a>]</span> <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></h2>
12809 new support for bdi element (bug 31817)
12811 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12813 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12818 Ignore pipe between table row attributes
12822 |- id=foo | style='color: red'
12830 <tr id="foo" style="color: red">
12837 Gallery override link with WikiLink (bug 34852)
12840 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12843 <ul class="gallery">
12844 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12845 <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>
12846 <div class="gallerytext">
12856 Gallery override link with absolute external link (bug 34852)
12859 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12862 <ul class="gallery">
12863 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12864 <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>
12865 <div class="gallerytext">
12875 Gallery override link with malicious javascript (bug 34852)
12878 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12881 <ul class="gallery">
12882 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12883 <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>
12884 <div class="gallerytext">
12894 Gallery with invalid title as link (bug 43964)
12897 File:foobar.jpg|link=<
12900 <ul class="gallery">
12901 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12902 <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>
12903 <div class="gallerytext">
12911 Language parser function
12920 Padleft and padright as substr
12922 {{padleft:|3|abcde}}
12923 {{padright:|3|abcde}}
12931 Bug 34939 - Case insensitive link parsing ([HttP://])
12933 [HttP://MediaWiki.Org/]
12935 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12940 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12942 [HttP://MediaWiki.Org/ MediaWiki]
12944 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12949 Bug 34939 - Case insensitive link parsing (HttP://)
12951 HttP://MediaWiki.Org/
12953 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12958 ### Parsoids-specific tests
12959 ### Parsoid-PHP parser incompatibilities
12962 1. SOL-sensitive wikitext tokens as template-args
12976 #### The following section of tests are primarily to test
12977 #### wikitext escaping capabilities of Parsoid.
12978 #### A lot of the tests are disabled for the PHP parser either
12979 #### because of minor newline diffs or other reasons.
12980 #### As Parsoid serializer can handle newlines and other HTML
12981 #### more robustly, some of these tests might get reenabled
12982 #### for the PHP parser.
12984 #### --------------- Headings ---------------
12986 #### 1. Nested inside html <h1>=foo=</h1>
12987 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12988 #### 3. Nested inside html with wikitext split by html tags
12989 #### 4. No escape needed
12990 #### 5. Empty headings <h1></h1>
12991 #### 6. Heading chars in SOL context
12992 #### ----------------------------------------
12994 Headings: 0. Unnested
12996 <nowiki>=foo=</nowiki>
12998 <nowiki>=foo</nowiki>''a''=
13001 </p><p>=foo<i>a</i>=
13006 Headings: 1. Nested inside html
13010 =<nowiki>=foo=</nowiki>=
13011 ==<nowiki>=foo=</nowiki>==
13012 ===<nowiki>=foo=</nowiki>===
13013 ====<nowiki>=foo=</nowiki>====
13014 =====<nowiki>=foo=</nowiki>=====
13015 ======<nowiki>=foo=</nowiki>======
13026 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
13031 <nowiki>*bar</nowiki>
13035 <nowiki>=bar=</nowiki>
13043 Headings: 3. Nested inside html with wikitext split by html tags
13047 =<nowiki>=</nowiki>'''bold'''foo==
13049 <h1>=<b>bold</b>foo=</h1>
13053 Headings: 4. No escaping needed (testing just h1 and h2)
13068 <h1><i>=</i>foo=</h1>
13073 Headings: 5. Empty headings
13077 =<nowiki></nowiki>=
13078 ==<nowiki></nowiki>==
13079 ===<nowiki></nowiki>===
13080 ====<nowiki></nowiki>====
13081 =====<nowiki></nowiki>=====
13082 ======<nowiki></nowiki>======
13093 Headings: 6. Heading chars in SOL context
13097 <!--cmt--><nowiki>=h1=</nowiki>
13103 #### --------------- Lists ---------------
13104 #### 0. Outside nests (*foo, etc.)
13105 #### 1. Nested inside html <ul><li>*foo</li></ul>
13106 #### 2. Inside definition lists
13107 #### 3. Only bullets at start should be escaped
13108 #### 4. No escapes needed
13109 #### 5. No unnecessary escapes
13110 #### 6. Escape bullets in SOL position
13111 #### 7. Escape bullets in a multi-line context
13112 #### ----------------------------------------
13115 Lists: 0. Outside nests
13117 <nowiki>*foo</nowiki>
13119 <nowiki>#foo</nowiki>
13127 Lists: 1. Nested inside html
13129 *<nowiki>*foo</nowiki>
13131 *<nowiki>#foo</nowiki>
13133 *<nowiki>:foo</nowiki>
13135 *<nowiki>;foo</nowiki>
13137 #<nowiki>*foo</nowiki>
13139 #<nowiki>#foo</nowiki>
13141 #<nowiki>:foo</nowiki>
13143 #<nowiki>;foo</nowiki>
13165 Lists: 2. Inside definition lists
13167 ;<nowiki>;foo</nowiki>
13169 ;<nowiki>:foo</nowiki>
13171 ;<nowiki>:foo</nowiki>
13174 :<nowiki>:foo</nowiki>
13189 Lists: 3. Only bullets at start of text should be escaped
13191 *<nowiki>*foo*bar</nowiki>
13193 *<nowiki>*foo</nowiki>''it''*bar
13197 <ul><li>*foo<i>it</i>*bar
13203 Lists: 4. No escapes needed
13215 <ul><li><i>foo</i>*bar
13217 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
13222 Lists: 5. No unnecessary escapes
13224 * bar <span><nowiki>[[foo]]</nowiki></span>
13226 *=bar <span><nowiki>[[foo]]</nowiki></span>
13228 *[[bar <span><nowiki>[[foo]]</nowiki></span>
13230 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13232 *=bar <span>foo]]</span>=
13234 <ul><li> bar <span>[[foo]]</span>
13236 <ul><li>=bar <span>[[foo]]</span>
13238 <ul><li>[[bar <span>[[foo]]</span>
13240 <ul><li>]]bar <span>[[foo]]</span>
13242 <ul><li>=bar <span>foo]]</span>=
13248 Lists: 6. Escape bullets in SOL position
13252 <!--cmt--><nowiki>*foo</nowiki>
13259 Lists: 7. Escape bullets in a multi-line context
13269 #### --------------- HRs ---------------
13270 #### 1. Single line
13271 #### -----------------------------------
13274 HRs: 1. Single line
13279 <nowiki>----</nowiki>
13281 <nowiki>=foo=</nowiki>
13283 <nowiki>*foo</nowiki>
13290 #### --------------- Tables ---------------
13291 #### 1a. Simple example
13292 #### 1b. No escaping needed (!foo)
13293 #### 1c. No escaping needed (|foo)
13294 #### 1d. No escaping needed (|}foo)
13296 #### 2a. Nested in td (<td>foo|bar</td>)
13297 #### 2b. Nested in td (<td>foo||bar</td>)
13298 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
13300 #### 3a. Nested in th (<th>foo!bar</th>)
13301 #### 3b. Nested in th (<th>foo!!bar</th>)
13302 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
13306 #### 4c. No escaping needed
13307 #### --------------------------------------
13310 Tables: 1a. Simple example
13321 Tables: 1b. No escaping needed
13330 Tables: 1c. No escaping needed
13339 Tables: 1d. No escaping needed
13348 Tables: 2a. Nested in td
13353 |<nowiki>foo|bar</nowiki>
13363 Tables: 2b. Nested in td
13368 |<nowiki>foo||bar</nowiki>
13369 |''it''<nowiki>foo||bar</nowiki>
13374 </td><td><i>it</i>foo||bar
13380 Tables: 2c. Nested in td -- no escaping needed
13395 Tables: 3a. Nested in th
13410 Tables: 3b. Nested in th
13415 !<nowiki>foo!!bar</nowiki>
13425 Tables: 3c. Nested in th -- no escaping needed
13440 Tables: 4a. Escape -
13448 |<nowiki>-bar</nowiki>
13452 <tr><th>-bar</th></tr>
13453 <tr><td>-bar</td></tr>
13458 Tables: 4b. Escape +
13466 |<nowiki>+bar</nowiki>
13470 <tr><th>+bar</th></tr>
13471 <tr><td>+bar</td></tr>
13476 Tables: 4c. No escaping needed
13490 <tr><td>foo-bar</td><td>foo+bar</td></tr>
13491 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
13496 Tables: 4d. No escaping needed
13512 #### --------------- Links ---------------
13513 #### 1. Quote marks in link text
13514 #### 2. Wikilinks: Escapes needed
13515 #### 3. Wikilinks: No escapes needed
13516 #### 4. Extlinks: Escapes needed
13517 #### 5. Extlinks: No escapes needed
13518 #### --------------------------------------
13520 Links 1. Quote marks in link text
13524 [[Foo|<nowiki>Foo''boo''</nowiki>]]
13526 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
13530 Links 2. WikiLinks: Escapes needed
13534 [[Foo|<nowiki>[Foobar]</nowiki>]]
13535 [[Foo|<nowiki>Foobar]</nowiki>]]
13536 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
13537 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
13538 [[Foo|<nowiki>[[Bar]]</nowiki>]]
13539 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
13540 [[Foo|<nowiki>|Bar</nowiki>]]
13542 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
13543 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
13544 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
13545 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
13546 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
13547 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
13548 <a href="Foo" rel="mw:WikiLink">|Bar</a>
13552 Links 3. WikiLinks: No escapes needed
13559 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
13560 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
13564 Links 4. ExtLinks: Escapes needed
13568 [http://google.com <nowiki>[google]</nowiki>]
13569 [http://google.com <nowiki>google]</nowiki>]
13571 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
13572 <a href="http://google.com" rel="mw:ExtLink">google]</a>
13576 Links 5. ExtLinks: No escapes needed
13580 [http://google.com [google]
13582 <a href="http://google.com" rel="mw:ExtLink">[google</a>
13585 #### --------------- Quotes ---------------
13586 #### 1. Quotes inside <b> and <i>
13587 #### 2. Link fragments separated by <i> and <b> tags
13588 #### 3. Link fragments inside <i> and <b>
13589 #### --------------------------------------
13591 1. Quotes inside <b> and <i>
13593 ''<nowiki>'foo'</nowiki>''
13594 ''<nowiki>''foo''</nowiki>''
13595 ''<nowiki>'''foo'''</nowiki>''
13596 '''<nowiki>'foo'</nowiki>'''
13597 '''<nowiki>''foo''</nowiki>'''
13598 '''<nowiki>'''foo'''</nowiki>'''
13599 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
13607 <b>foo'<i>bar'</i>baz</b>
13612 2. Link fragments separated by <i> and <b> tags
13614 [[''foo''<nowiki>hello]]</nowiki>
13616 [['''foo'''<nowiki>hello]]</nowiki>
13618 <p>[[<i>foo</i>hello]]
13619 </p><p>[[<b>foo</b>hello]]
13624 2. Link fragments inside <i> and <b>
13625 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
13626 this is one of the shortcomings of this format)
13628 ''[[foo''<nowiki>]]</nowiki>
13630 '''[[foo'''<nowiki>]]</nowiki>
13633 </p><p><b>[[foo</b>]]
13637 #### --------------- Paragraphs ---------------
13638 #### 1. No unnecessary escapes
13639 #### --------------------------------------
13642 1. No unnecessary escapes
13644 bar <span><nowiki>[[foo]]</nowiki></span>
13646 =bar <span><nowiki>[[foo]]</nowiki></span>
13648 [[bar <span><nowiki>[[foo]]</nowiki></span>
13650 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13652 <nowiki>=bar </nowiki><span>foo]]</span>=
13654 <p>bar <span>[[foo]]</span>
13655 </p><p>=bar <span>[[foo]]</span>
13656 </p><p>[[bar <span>[[foo]]</span>
13657 </p><p>]]bar <span>[[foo]]</span>
13658 </p><p>=bar <span>foo]]</span>=
13662 #### --------------- PRE ------------------
13663 #### 1. Leading space in SOL context should be escaped
13664 #### --------------------------------------
13666 1. Leading space in SOL context should be escaped
13670 <nowiki> foo</nowiki>
13671 <!--cmt--><nowiki> foo</nowiki>
13678 #### --------------- HTML tags ---------------
13681 #### 3. multi-line html tag
13682 #### --------------------------------------
13688 <a href="http://google.com">google</a>
13690 <a href="http://google.com">google</a>
13696 <nowiki><div>foo</div>
13697 <div style="color:red">foo</div></nowiki>
13699 <p><div>foo</div>
13700 <div style="color:red">foo</div>
13705 3. multi-line html tag
13717 #### --------------- Others ---------------
13721 <nowiki>foo</nowiki>
13723 <p><nowiki>foo</nowiki>
13728 Tag-like HTML structures are passed through as text
13750 </p><p>1<d e>f
13755 # This fails in the PHP parser (see bug 40670,
13756 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13758 Tag names followed by punctuation should not be recognized as tags
13764 <p><s.ome> text
13769 HTML tag with necessary entities in attributes
13771 <span title="&amp;">foo</span>
13773 <p><span title="&amp;">foo</span>
13778 HTML tag with 'unnecessary' entity encoding in attributes
13780 <span title="&">foo</span>
13782 <p><span title="&">foo</span>
13787 HTML tag with broken attribute value quoting
13789 <span title="Hello world>Foo</span>
13791 <p><span>Foo</span>
13796 Parsoid-only: HTML tag with broken attribute value quoting
13800 <span title="Hello world>Foo</span>
13802 <p><span title="Hello world">Foo</span>
13807 Table with broken attribute value quoting
13810 | title="Hello world|Foo
13821 Table with broken attribute value quoting on consecutive lines
13824 | title="Hello world|Foo
13825 | style="color:red|Bar
13838 Parsoid-only: Table with broken attribute value quoting on consecutive lines
13843 | title="Hello world|Foo
13844 | style="color:red|Bar
13849 <td title="Hello world">Foo
13850 </td><td style="color: red">Bar
13856 Accept empty td cell attribute
13859 | align="center" | foo || |
13864 <td align="center"> foo </td>
13871 Non-empty attributes in th-cells
13874 ! Foo !! style="color: red" | Bar
13880 <th style="color: red"> Bar
13886 Accept empty attributes in th-cells
13901 Empty table rows go away
13926 Try for 100% code coverage