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
3318 Plain link, capitalized
3322 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
3327 Plain link, uncapitalized
3331 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
3338 [[Main Page|The Main Page]]
3340 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
3349 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
3354 Broken link with fragment
3356 [[Zigzagzogzagzig#zug]]
3358 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
3363 Special page link with fragment
3365 [[Special:Version#anchor]]
3367 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
3372 Nonexistent special page link with fragment
3374 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
3376 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
3383 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
3385 <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>
3392 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
3394 <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>!!!
3405 Bug 43661: Piped links with identical prefixes
3407 [[prefixed article|prefixed articles with spaces]]
3409 [[prefixed article|prefixed articlesaoeu]]
3411 [[Main Page|Main Page test]]
3413 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
3414 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
3415 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
3421 Link with HTML entity in suffix / tail
3423 [[Main Page]]", [[Main Page]]a
3425 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
3430 Link with 3 brackets
3439 Piped link with 3 brackets
3441 [[[main page|the main page]]]
3443 <p>[[[main page|the main page]]]
3448 Link with multiple pipes
3450 [[Main Page|The|Main|Page]]
3452 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3459 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3461 <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>
3466 Piped link to namespace
3468 [[Meta:Disclaimers|The disclaimers]]
3470 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3477 [[Usually caused by a typo (oops}]]
3479 <p>[[Usually caused by a typo (oops}]]
3484 Link containing % (not as a hex sequence)
3488 <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>
3493 Link containing % as a single hex sequence interpreted to char
3497 <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>
3502 Link containing % as a double hex sequence interpreted to hex sequence
3506 <p>[[7%2525 Solution]]
3511 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3512 Example for such a section: == < ==
3514 [[%23%3c]][[%23%3e]]
3516 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3521 Link containing "<#" and ">#" as a hex sequences
3523 [[%3c%23]][[%3e%23]]
3525 <p>[[%3c%23]][[%3e%23]]
3530 Link containing double-single-quotes '' (bug 4598)
3532 [[Lista d''e paise d''o munno]]
3534 <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>
3539 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3541 Some [[Link|pretty ''italics'' and stuff]]!
3543 <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>!
3548 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3550 ''Some [[Link|pretty ''italics'' and stuff]]!
3552 <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>
3557 Link with double quotes in title part (literal) and alternate part (interpreted)
3559 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3563 [[''Pentecoste''|Pentecoste]]
3565 [[''Pentecoste''|''Pentecoste'']]
3567 <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>
3568 </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>
3569 </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>
3570 </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>
3575 Broken image links with HTML captions (bug 39700)
3577 [[File:Nonexistent|<script></script>]]
3578 [[File:Nonexistent|100px|<script></script>]]
3579 [[File:Nonexistent|<]]
3580 [[File:Nonexistent|a<i>b</i>c]]
3582 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3583 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3584 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3585 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3592 [[http://www.example.com]]
3594 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3599 Plain link to URL with link text
3601 [[http://www.example.com Link text]]
3603 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3608 Plain link to protocol-relative URL
3610 [[//www.example.com]]
3612 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3617 Plain link to protocol-relative URL with link text
3619 [[//www.example.com Link text]]
3621 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3626 Plain link to page with question mark in title
3632 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3633 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3638 # I'm fairly sure the expected result here is wrong.
3639 # We want these to be URL links, not pseudo-pages with URLs for titles....
3640 # However the current output is also pretty screwy.
3643 # I'm changing it to match the current output--it arguably makes more
3644 # sense in the light of the test above. Old expected result was:
3645 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3647 # But I think this test is bordering on "garbage in, garbage out" anyway.
3652 Piped link to URL: [[http://www.example.com|an example URL]]
3654 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3659 BUG 2: [[page|http://url/]] should link to page, not http://url/
3661 [[Main Page|http://url/]]
3663 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3668 BUG 337: Escaped self-links should be bold
3672 [[Bug462]] [[Bug462]]
3674 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3679 Self-link to section should not be bold
3683 [[Main Page#section]]
3685 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3696 Self-link to numeric title
3702 <p><strong class="selflink">0</strong>
3707 Link to numeric-equivalent title
3713 <p><a href="/wiki/00" title="00">00</a>
3718 <nowiki> inside a link
3720 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3722 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3727 Non-breaking spaces in title
3729 [[ Main Page ]]
3731 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3736 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3742 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3747 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3753 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3758 Internal link with en linktrail: no apostrophes (bug 27473)
3764 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3769 Internal link with ca linktrail with apostrophes (bug 27473)
3775 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3780 Internal link with kaa linktrail with apostrophes (bug 27473)
3786 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3791 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
3799 [http://wp.org ''foo'']
3801 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
3802 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
3803 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
3804 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
3809 ### Interwiki links (see maintenance/interwiki.sql)
3813 Inline interwiki link
3815 [[MeatBall:SoftSecurity]]
3817 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3822 Inline interwiki link with empty title (bug 2372)
3826 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3831 Interwiki link encoding conversion (bug 1636)
3833 *[[Wikipedia:ro:Olteniţa]]
3834 *[[Wikipedia:ro:Olteniţa]]
3836 <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>
3837 </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>
3843 Interwiki link with fragment (bug 2130)
3845 [[MeatBall:SoftSecurity#foo]]
3847 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3862 Double interlanguage link
3873 Interlanguage link, with prefix links
3885 Double interlanguage link, with prefix links (bug 8897)
3898 Parsoid-specific test: Wikilinks with should RT properly
3904 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3922 Broken br tag sanitization
3931 Incorrecly removing closing slashes from correctly formed XHTML
3933 <br style="clear:both;" />
3935 <p><br style="clear:both;" />
3940 Failing to transform badly formed HTML into correct XHTML
3942 <br style="clear: left;">
3943 <br style="clear: right;">
3944 <br style="clear: both;">
3946 <p><br style="clear: left;" />
3947 <br style="clear: right;" />
3948 <br style="clear: both;" />
3953 Handling html with a div self-closing tag
3962 <p><div title />
3966 <p><div title=bar />
3967 <div title=bar/>
3969 <div title="bar/"></div>
3975 Handling html with a br self-closing tag
3984 <p><br title="title" />
3985 <br title="title" />
3994 Horizontal ruler (should it add that extra space?)
4008 Horizontal ruler -- 4+ dashes render hr
4017 Horizontal ruler -- eats additional dashes on the same line
4026 Horizontal ruler -- does not collaps dashes on consecutive lines
4037 Horizontal ruler -- <4 dashes render as plain text
4046 Horizontal ruler -- Supports content following dashes on same line
4055 ### Block-level elements
4078 <ol><li>Numbered list
4095 ***#Number on level 4
4097 **#Number on level 3
4098 **#Number on level 3
4102 #** Level 3, but ordered
4105 <ol><li> with numbers
4107 <ul><li> and bullets
4109 <ol><li> and numbers
4111 </li><li>bullets again
4112 <ul><li>bullet level 2
4113 <ul><li>bullet level 3
4114 <ol><li>Number on level 4
4117 </li><li>bullet level 2
4118 <ol><li>Number on level 3
4119 </li><li>Number on level 3
4122 <ol><li>number level 2
4125 <ul><li><ul><li> Level 3
4129 <ol><li><ul><li><ul><li> Level 3, but ordered
4163 Nested lists 3 (first element empty)
4176 Nested lists 4 (first element empty)
4189 Nested lists 5 (both elements empty)
4202 Nested lists 6 (both elements empty)
4215 Nested lists 7 (skip initial nesting levels)
4219 <ul><li><ul><li><ul><li> foo
4227 Nested lists 8 (multiple nesting transitions)
4235 <ul><li><ul><li> bar
4245 1. Lists with start-of-line-transparent tokens before bullets: Comments
4259 2. Lists with start-of-line-transparent tokens before bullets: Template close
4271 Unbalanced closing block tags break a list
4272 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4282 </li></ul></div><div>
4288 Unbalanced closing non-block tags don't break a list
4289 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4299 <ul><li>a<span></span>
4305 Unclosed formatting tags that straddle lists are closed and reopened
4306 (Disabled since php parser generates broken html -- relies on Tidy to fix up)
4314 </li><li> <s> b </s>
4319 List embedded in a non-block tag
4320 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
4328 <p><small></small></p>
4334 <p><small></small></p>
4338 List items are not parsed correctly following a <pre> block (bug 785)
4344 <ul><li> <pre>foo</pre>
4345 </li><li> <pre>bar</pre>
4352 List items from template
4363 * notSOL{{inner list}}
4382 List interrupted by empty line or heading
4392 <ul><li><ul><li> bar
4395 <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>
4396 <ul><li> Another list item
4402 Multiple list tags generated by templates
4421 Magic Word: {{CURRENTDAY}}
4430 Magic Word: {{CURRENTDAY2}}
4439 Magic Word: {{CURRENTDAYNAME}}
4448 Magic Word: {{CURRENTDOW}}
4457 Magic Word: {{CURRENTMONTH}}
4466 Magic Word: {{CURRENTMONTHABBREV}}
4468 {{CURRENTMONTHABBREV}}
4475 Magic Word: {{CURRENTMONTHNAME}}
4477 {{CURRENTMONTHNAME}}
4484 Magic Word: {{CURRENTMONTHNAMEGEN}}
4486 {{CURRENTMONTHNAMEGEN}}
4493 Magic Word: {{CURRENTTIME}}
4502 Magic Word: {{CURRENTWEEK}} (@bug 4594)
4511 Magic Word: {{CURRENTYEAR}}
4520 Magic Word: {{FULLPAGENAME}}
4522 title=[[User:Ævar Arnfjörð Bjarmason]]
4526 <p>User:Ævar Arnfjörð Bjarmason
4531 Magic Word: {{FULLPAGENAMEE}}
4533 title=[[User:Ævar Arnfjörð Bjarmason]]
4537 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4542 Magic Word: {{NAMESPACE}}
4544 title=[[User:Ævar Arnfjörð Bjarmason]]
4553 Magic Word: {{NAMESPACEE}}
4555 title=[[User:Ævar Arnfjörð Bjarmason]]
4564 Magic Word: {{NAMESPACENUMBER}}
4566 title=[[User:Ævar Arnfjörð Bjarmason]]
4575 Magic Word: {{NUMBEROFFILES}}
4584 Magic Word: {{PAGENAME}}
4586 title=[[User:Ævar Arnfjörð Bjarmason]]
4590 <p>Ævar Arnfjörð Bjarmason
4595 Magic Word: {{PAGENAME}} with metacharacters
4597 title=[['foo & bar = baz']]
4601 <p><i>'foo & bar = baz'</i>
4606 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4608 title=[[*RFC 1234 http://example.com/]]
4612 <p>*RFC 1234 http://example.com/
4617 Magic Word: {{PAGENAMEE}}
4619 title=[[User:Ævar Arnfjörð Bjarmason]]
4623 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4628 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4630 title=[[*RFC 1234 http://example.com/]]
4634 <p>*RFC_1234_http://example.com/
4639 Magic Word: {{REVISIONID}}
4648 Magic Word: {{SCRIPTPATH}}
4657 Magic Word: {{SERVER}}
4661 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
4666 Magic Word: {{SERVERNAME}}
4675 Magic Word: {{SITENAME}}
4684 Namespace 1 {{ns:1}}
4693 Namespace 1 {{ns:01}}
4702 Namespace 0 {{ns:0}} (bug 4783)
4710 Namespace 0 {{ns:00}} (bug 4783)
4718 Namespace -1 {{ns:-1}}
4727 Namespace User {{ns:User}}
4736 Namespace User talk {{ns:User_talk}}
4745 Namespace User talk {{ns:uSeR tAlK}}
4754 Namespace File {{ns:File}}
4763 Namespace File {{ns:Image}}
4772 Namespace (lang=de) Benutzer {{ns:User}}
4783 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4789 <p>Benutzer Diskussion
4797 {{urlencode:hi world?!}}
4798 {{urlencode:hi world?!|WIKI}}
4799 {{urlencode:hi world?!|PATH}}
4800 {{urlencode:hi world?!|QUERY}}
4813 Magic links: internal link to RFC (bug 479)
4817 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4822 Magic links: RFC (bug 479)
4826 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4831 Magic links: ISBN (bug 1937)
4835 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4840 Magic links: PMID incorrectly converts space to underscore
4844 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4853 Nonexistent template
4855 {{thistemplatedoesnotexist}}
4857 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4862 Template with invalid target containing tags
4864 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4866 <p>{{a<b>b</b>|foo|a=b|a = b}}
4871 Template with invalid target containing unclosed tag
4873 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
4875 <p>{{a<b>|foo|a=b|a = b}}</b>
4882 This is a test template
4890 <p>This is a test template
4895 Template with explicit namespace
4899 <p>This is a test template
4907 This is a test template with parameter {{{param}}}
4913 {{paramtest|param=foo}}
4915 <p>This is a test template with parameter foo
4920 Template:paramtestnum
4926 Template unnamed parameter
4928 {{paramtestnum|Main Page|the main page}}
4930 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4935 Template:templatesimple
4941 Template:templateredirect
4943 #redirect [[Template:templatesimple]]
4947 Template:templateasargtestnum
4953 Template:templateasargtest
4955 {{template{{{templ}}}}}
4959 Template:templateasargtest2
4965 Template with template name as unnamed argument
4967 {{templateasargtestnum|templatesimple}}
4974 Template with template name as argument
4976 {{templateasargtest|templ=simple}}
4983 Template with template name as argument (2)
4985 {{templateasargtest2|templ=templatesimple}}
4992 Template:templateasargtestdefault
4994 {{{{{templ|templatesimple}}}}}
5004 Template with default value
5006 {{templateasargtestdefault}}
5013 Template with default value (value set)
5015 {{templateasargtestdefault|templ=templa}}
5024 {{templateredirect}}
5031 Template with argument in separate line
5033 {{ templateasargtest |
5041 Template with complex template as argument
5044 param ={{ templateasargtest |
5047 <p>This is a test template with parameter (test)
5052 Template with thumb image (with link in description)
5055 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
5057 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>
5062 Template:complextemplate
5064 {{{1}}} {{paramtest|
5065 param ={{{param}}}}}
5069 Template with complex arguments
5072 param ={{ templateasargtest |
5073 templ = simple }}|[[Template:complextemplate|link]]}}
5075 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
5080 BUG 553: link with two variables in a piped link
5083 |[[{{{1}}}|{{{2}}}]]
5088 <td>[[{{{1}}}|{{{2}}}]]
5094 Magic variable as template parameter
5096 {{paramtest|param={{SITENAME}}}}
5098 <p>This is a test template with parameter MediaWiki
5105 [[{{{param}}}|link]]
5109 Template parameter as link source
5111 {{linktest|param=Main Page}}
5113 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
5118 Template-generated attribute string (k='v')
5120 <span {{attr_str|id|v1}}>bar</span>
5122 <p><span id="v1">bar</span>
5129 including another template, {{paramtest|param={{{arg}}}}}
5133 Template passing argument to another template
5135 {{paramtest2|arg='hmm'}}
5137 <p>including another template, This is a test template with parameter 'hmm'
5148 Template as link source
5152 [[{{linktest2}}|Main Page]]
5154 [[{{linktest2}}]]Page
5156 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5157 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
5158 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
5176 Template infinite loop
5180 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
5185 Template from main namespace
5204 BUG 529: Template with table, not included at beginning of line
5223 BUG 523: Template shouldn't eat newline (or add an extra one before table)
5243 BUG 41: Template parameters shown as broken links
5252 Template with targets containing wikilinks
5256 {{[[{{echo|foo}}]]}}
5258 {{{{echo|[[foo}}]]}}
5260 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5261 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
5269 ''None'' of '''this''' should be
5271 but rather passed unmodified
5275 # hmm, fix this or just deprecate msgnw and document its behavior?
5281 {{msgnw:MSGNW test}}
5283 <p>''None'' of '''this''' should be
5285 but rather passed unmodified
5293 {{int:youhavenewmessages|lots of money|not!}}
5295 <p>You have lots of money (not!).
5302 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5306 <includeonly> and <noinclude> being included
5317 <onlyinclude>Foo</onlyinclude>bar
5321 <onlyinclude> being included
5333 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
5337 <onlyinclude> and <includeonly> being included
5346 <includeonly> and <noinclude> on a page
5348 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
5355 Un-closed <noinclude>
5362 <onlyinclude> on a page
5364 <onlyinclude>Foo</onlyinclude>bar
5371 Un-closed <onlyinclude>
5378 Self-closed noinclude, includeonly, onlyinclude tags
5389 Unbalanced includeonly and noinclude tags
5393 |b</noinclude></noinclude>
5394 |c</noinclude></includeonly>
5395 |d</includeonly></includeonly>
5404 <td>c</includeonly>
5406 <td>d</includeonly></includeonly>
5412 Template:Includeonly section
5415 ==Includeonly section==
5421 Bug 6563: Edit link generation for section shown by <includeonly>
5423 {{includeonly section}}
5425 <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>
5426 <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>
5430 # Uses same input as the contents of [[Template:Includeonly section]]
5432 Bug 6563: Section extraction for section shown by <includeonly>
5437 ==Includeonly section==
5445 Bug 6563: Edit link generation for section suppressed by <includeonly>
5448 ==Includeonly section==
5452 <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>
5457 Bug 6563: Section extraction for section suppressed by <includeonly>
5462 ==Includeonly section==
5470 Un-closed <includeonly>
5477 ### <includeonly> and <noinclude> in attributes
5480 0. includeonly around the entire attribute
5482 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
5484 <p><span id="v2">bar</span>
5489 1. includeonly in html attr key
5491 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
5493 <p><span id="foo">bar</span>
5498 2. includeonly in html attr value
5500 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
5501 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
5503 <p><span id="v1">bar</span>
5504 <span id="v1">bar</span>
5509 3. includeonly in part of an attr value
5511 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
5513 <p><span style="color:red;">bar</span>
5518 ### Testing parsing of templates where a template arg
5519 ### has the same name as the template itself.
5529 Templates: Template Name/Arg clash: 1. Use of positional param
5538 Templates: Template Name/Arg clash: 2. Use of named param
5547 Templates: Template Name/Arg clash: 3. Use of named param with empty input
5556 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
5560 Templates: 1. Simple use
5569 Templates: 2. Inside a block tag
5571 <div>{{echo|Foo}}</div>
5578 Templates: P-wrapping: 1a. Templates on consecutive lines
5589 Templates: P-wrapping: 1b. Templates on consecutive lines
5603 Templates: P-wrapping: 1c. Templates on consecutive lines
5606 {{echo|bar}} <div>baz</div>
5615 Templates: Inline Text: 1. Multiple tmeplate uses
5617 {{echo|Foo}}bar{{echo|baz}}
5624 Templates: Inline Text: 2. Back-to-back template uses
5626 {{echo|Foo}}{{echo|bar}}
5633 Templates: Block Tags: 1. Multiple template uses
5635 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5637 <div>Foo</div><div>bar</div><div>baz</div>
5642 Templates: Block Tags: 2. Back-to-back template uses
5644 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5646 <div>Foo</div><div>bar</div>
5651 Templates: Links: 1. Simple example
5653 {{echo|[[Foo|bar]]}}
5655 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5660 Templates: Links: 2. Generation of link href
5662 [[{{echo|Foo}}|bar]]
5664 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5669 Templates: Links: 3. Generation of part of a link href
5671 [[Fo{{echo|o}}|bar]]
5675 [[Foo{{echo|bar}}baz]]
5677 [[Foo{{echo|bar}}|bar]]
5679 [[:Foo{{echo|bar}}]]
5681 [[:Foo{{echo|bar}}|bar]]
5683 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5684 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5685 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
5686 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5687 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5688 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
5693 Templates: Links: 4. Multiple templates generating link href
5695 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5697 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5702 Templates: Links: 5. Generation of link text
5704 [[Foo|{{echo|bar}}]]
5706 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5711 Templates: Links: 5. Nested templates (only outermost template should be marked)
5713 {{echo|[[{{echo|Foo}}|bar]]}}
5715 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5720 Templates: HTML Tag: 1. Generation of HTML attr. key
5722 <div {{echo|style}}="color:red;">foo</div>
5724 <div style="color:red;">foo</div>
5729 Templates: HTML Tag: 2. Generation of HTML attr. value
5731 <div style={{echo|'color:red;'}}>foo</div>
5733 <div style="color:red;">foo</div>
5738 Templates: HTML Tag: 3. Generation of HTML attr key and value
5740 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5742 <div style="color:red;">foo</div>
5747 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5749 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5751 <div title="This is a long title with just one piece templated">foo</div>
5756 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5758 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5760 <div title="This is a long title with just one piece templated">foo</div>
5765 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5767 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5769 <div title="This is a long title with just one piece templated">foo</div>
5774 Templates: HTML Tables: 1. Generating start of a HTML table
5776 {{echo|<table><tr><td>foo</td>}}</tr></table>
5778 <table><tr><td>foo</td></tr></table>
5783 Templates: HTML Tables: 2a. Generating middle of a HTML table
5785 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5787 <table><tr><td>foo</td></tr></table>
5792 Templates: HTML Tables: 2b. Generating middle of a HTML table
5794 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5796 <table><tr><td>foo</td></tr></table>
5801 Templates: HTML Tables: 3. Generating end of a HTML table
5803 <table><tr>{{echo|<td>foo</td></tr></table>}}
5805 <table><tr><td>foo</td></tr></table>
5810 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5812 {{echo|<table>}}<tr><td>foo</td></tr></table>
5814 <table><tr><td>foo</td></tr></table>
5819 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5821 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5823 <table><tr><td>foo</td></tr></table>
5828 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5830 <table><tr>{{echo|<td>}}foo</td></tr></table>
5832 <table><tr><td>foo</td></tr></table>
5837 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5839 <table><tr><td>foo{{echo|</td>}}</tr></table>
5841 <table><tr><td>foo</td></tr></table>
5846 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5848 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5850 <table><tr><td>foo</td></tr></table>
5855 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5857 <table><tr><td>foo</td></tr>{{echo|</table>}}
5859 <table><tr><td>foo</td></tr></table>
5864 Templates: Wiki Tables: 1a. Fostering of entire template content
5872 <tr><td></td></tr></table>
5877 Templates: Wiki Tables: 1b. Fostering of entire template content
5890 <tr><td></td></tr></table>
5895 Templates: Wiki Tables: 2. Fostering of partial template content
5905 <tr><td></td></tr></table>
5910 Templates: Wiki Tables: 3. td-content via multiple templates
5913 {{echo|{{pipe}}a}}{{echo|b}}
5924 Templates: Wiki Tables: 4. Templated tags, no content
5930 <tr><td></td></tr></table>
5935 Templates: Wiki Tables: 5. Templated tags, regular td-tags
5949 Templates: Wiki Tables: 6. Templated tags, templated td-tags
5963 Templates: Lists: Multi-line list-items via templates
5965 *{{echo|a {{nonexistent|
5967 *{{echo|b {{nonexistent|
5970 <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>
5971 </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>
5977 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5979 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5981 <p><i>ab</i>c<i>d</i>e
5986 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5987 (PHP parser generates misnested html)
5991 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5993 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5997 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5998 (PHP parser generates misnested html)
6002 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
6005 <div><i>b</i>c<i>d</i></div>
6010 Templates: Ugly nesting: 4. Divs opened/closed across templates
6012 a<div>b{{echo|c</div>d}}e
6019 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
6025 |{{echo|foo</table>}}
6029 <table about="#mwt1" typeof="mw:Object/Template ">
6030 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
6031 bar</span><span about="#mwt1">
6036 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
6046 <td>1. {{echo|foo </table>}}</td>
6048 <td>2. {{echo|baz </table>}}</td>
6061 <table about="#mwt1" typeof="mw:Object/Template">
6066 <td >1. foo </td></tr></tbody></table></td>
6068 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
6069 </span><span about="#mwt1">
6071 abc</span><span about="#mwt1">
6072 </span><span about="#mwt1">
6073 </span><span about="#mwt1">
6074 </span><span about="#mwt1">
6075 </span><span about="#mwt1">
6077 xyz</span><span about="#mwt1">
6078 </span><span about="#mwt1">
6083 Templates: Ugly templates: 3. newline-only template parameter
6092 # This looks like a bug: a single newline triggers p/br for some reason.
6094 Templates: Ugly templates: 4. newline-only template parameter inconsistency
6105 Parser Functions: 1. Simple example
6114 Parser Functions: 2. Nested use (only outermost should be marked up)
6123 ### Pre-save transform tests
6126 pre-save transform: subst:
6132 This is a test template
6136 pre-save transform: normal template
6146 pre-save transform: nonexistent template
6150 {{thistemplatedoesnotexist}}
6152 {{thistemplatedoesnotexist}}
6157 pre-save transform: subst magic variables
6166 # This is bug 89, which I fixed. -- wtm
6168 pre-save transform: subst: templates with parameters
6172 {{subst:paramtest|param="something else"}}
6174 This is a test template with parameter "something else"
6180 <nowiki>'''not wiki'''</nowiki>
6184 pre-save transform: nowiki in subst (bug 1188)
6188 {{subst:nowikitest}}
6190 <nowiki>'''not wiki'''</nowiki>
6195 Template:commenttest
6197 This template has <!-- a comment --> in it.
6201 pre-save transform: comment in subst (bug 1936)
6205 {{subst:commenttest}}
6207 This template has <!-- a comment --> in it.
6211 pre-save transform: unclosed tag
6215 <nowiki>'''not wiki'''
6217 <nowiki>'''not wiki'''
6221 pre-save transform: mixed tag case
6225 <NOwiki>'''not wiki'''</noWIKI>
6227 <NOwiki>'''not wiki'''</noWIKI>
6231 pre-save transform: unclosed comment in <nowiki>
6235 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6237 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
6243 <span onmouseover="alert('crap')">Oh no</span>
6247 (confirming safety of fix for subst bug 1936)
6249 {{Template:dangerous}}
6251 <p><span>Oh no</span>
6256 pre-save transform: comment containing gallery (bug 5024)
6260 <!-- <gallery>data</gallery> -->
6262 <!-- <gallery>data</gallery> -->
6266 pre-save transform: comment containing extension
6270 <!-- <tag>data</tag> -->
6272 <!-- <tag>data</tag> -->
6276 pre-save transform: comment containing nowiki
6280 <!-- <nowiki>data</nowiki> -->
6282 <!-- <nowiki>data</nowiki> -->
6286 pre-save transform: <noinclude> in subst (bug 3298)
6296 pre-save transform: <onlyinclude> in subst (bug 3298)
6308 {{<includeonly>subst:</includeonly>Includes}}
6312 Template:SafeSubstTest
6314 {{<includeonly>safesubst:</includeonly>Includes}}
6318 bug 22297: safesubst: works during PST
6322 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
6328 bug 22297: safesubst: works during normal parse
6337 subst: does not work during normal parse
6341 <p>{{subst:Includes}}
6346 pre-save transform: context links ("pipe trick")
6350 [[Article (context)|]]
6353 [[Bar:Article (context)|]]
6354 [[:Bar:Article (context)|]]
6356 [[|Article (context)]]
6360 [[Article (context)|Article]]
6361 [[Bar:Article|Article]]
6362 [[:Bar:Article|Article]]
6363 [[Bar:Article (context)|Article]]
6364 [[:Bar:Article (context)|Article]]
6366 [[Article (context)]]
6367 [[Bar:X (Y) Z|X (Y) Z]]
6368 [[:Bar:X (Y) Z|X (Y) Z]]
6372 pre-save transform: context links ("pipe trick") with interwiki prefix
6376 [[interwiki:Article|]]
6377 [[:interwiki:Article|]]
6378 [[interwiki:Bar:Article|]]
6379 [[:interwiki:Bar:Article|]]
6381 [[interwiki:Article|Article]]
6382 [[:interwiki:Article|Article]]
6383 [[interwiki:Bar:Article|Bar:Article]]
6384 [[:interwiki:Bar:Article|Bar:Article]]
6388 pre-save transform: context links ("pipe trick") with parens in title
6390 pst title=[[Somearticle (context)]]
6394 [[Article (context)|Article]]
6398 pre-save transform: context links ("pipe trick") with comma in title
6400 pst title=[[Someplace, Somewhere]]
6403 [[Otherplace, Elsewhere|]]
6404 [[Otherplace, Elsewhere, Anywhere|]]
6406 [[Otherplace, Somewhere|Otherplace]]
6407 [[Otherplace, Elsewhere|Otherplace]]
6408 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
6412 pre-save transform: context links ("pipe trick") with parens and comma
6414 pst title=[[Someplace (IGNORED), Somewhere]]
6417 [[Otherplace (place), Elsewhere|]]
6419 [[Otherplace, Somewhere|Otherplace]]
6420 [[Otherplace (place), Elsewhere|Otherplace]]
6424 pre-save transform: context links ("pipe trick") with comma and parens
6426 pst title=[[Who, me? (context)]]
6429 [[Me, Myself, and I (1937 song)|]]
6431 [[Yes, you. (context)|Yes, you.]]
6432 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
6436 pre-save transform: context links ("pipe trick") with namespace
6438 pst title=[[Ns:Somearticle]]
6442 [[Ns:Article|Article]]
6446 pre-save transform: context links ("pipe trick") with namespace and parens
6448 pst title=[[Ns:Somearticle (context)]]
6452 [[Ns:Article (context)|Article]]
6456 pre-save transform: context links ("pipe trick") with namespace and comma
6458 pst title=[[Ns:Somearticle, Context, Whatever]]
6462 [[Ns:Article, Context, Whatever|Article]]
6466 pre-save transform: context links ("pipe trick") with namespace, comma and parens
6468 pst title=[[Ns:Somearticle, Context (context)]]
6472 [[Ns:Article (context)|Article]]
6476 pre-save transform: context links ("pipe trick") with namespace, parens and comma
6478 pst title=[[Ns:Somearticle (IGNORED), Context]]
6482 [[Ns:Article, Context|Article]]
6486 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
6490 [[Article(context)|]]
6491 [[Bar:Article(context)|]]
6492 [[:Bar:Article(context)|]]
6493 [[|Article(context)]]
6497 [[Article(context)|Article]]
6498 [[Bar:Article(context)|Article]]
6499 [[:Bar:Article(context)|Article]]
6500 [[Article(context)]]
6502 [[:Bar:X(Y)Z|X(Y)Z]]
6506 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
6510 [[Article (context)|]]
6511 [[Bar:Article (context)|]]
6512 [[:Bar:Article (context)|]]
6513 [[|Article (context)]]
6517 [[Article (context)|Article]]
6518 [[Bar:Article (context)|Article]]
6519 [[:Bar:Article (context)|Article]]
6520 [[Article (context)]]
6521 [[Bar:X (Y) Z|X (Y) Z]]
6522 [[:Bar:X (Y) Z|X (Y) Z]]
6526 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
6530 [[Article(context)|]]
6531 [[Bar:Article(context)|]]
6532 [[:Bar:Article(context)|]]
6533 [[|Article(context)]]
6537 [[Article(context)|Article]]
6538 [[Bar:Article(context)|Article]]
6539 [[:Bar:Article(context)|Article]]
6540 [[Article(context)]]
6542 [[:Bar:X(Y)Z|X(Y)Z]]
6546 pre-save transform: context links ("pipe trick") with commas (bug 21660)
6550 [[Article (context), context|]]
6551 [[Article (context),context|]]
6552 [[Bar:Article (context), context|]]
6553 [[Bar:Article (context),context|]]
6554 [[:Bar:Article (context), context|]]
6555 [[:Bar:Article (context),context|]]
6557 [[Article (context), context|Article]]
6558 [[Article (context),context|Article]]
6559 [[Bar:Article (context), context|Article]]
6560 [[Bar:Article (context),context|Article]]
6561 [[:Bar:Article (context), context|Article]]
6562 [[:Bar:Article (context),context|Article]]
6566 pre-save transform: trim trailing empty lines
6570 Empty lines are trimmed
6576 Empty lines are trimmed
6580 pre-save transform: Signature expansion
6585 * <noinclude>~~~</noinclude>
6586 * <includeonly>~~~</includeonly>
6587 * <onlyinclude>~~~</onlyinclude>
6589 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
6590 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
6591 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
6592 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
6597 pre-save transform: Signature expansion in nowiki tags (bug 93)
6603 <nowiki>~~~~</nowiki>
6605 <includeonly><nowiki>~~~~</nowiki></includeonly>
6607 <noinclude><nowiki>~~~~</nowiki></noinclude>
6609 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6611 {{subst:Foo}} shall be converted to FOO
6613 As well as inside noinclude/onlyinclude
6614 <noinclude>{{subst:Foo}}</noinclude>
6615 <onlyinclude>{{subst:Foo}}</onlyinclude>
6617 But not inside includeonly
6618 <includeonly>{{subst:Foo}}</includeonly>
6622 <nowiki>~~~~</nowiki>
6624 <includeonly><nowiki>~~~~</nowiki></includeonly>
6626 <noinclude><nowiki>~~~~</nowiki></noinclude>
6628 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
6630 FOO shall be converted to FOO
6632 As well as inside noinclude/onlyinclude
6633 <noinclude>FOO</noinclude>
6634 <onlyinclude>FOO</onlyinclude>
6636 But not inside includeonly
6637 <includeonly>{{subst:Foo}}</includeonly>
6641 ### Message transform tests
6644 message transform: magic variables
6654 message transform: should not transform wiki markup
6664 message transform: <noinclude> in transcluded template (bug 4926)
6674 message transform: <onlyinclude> in transcluded template (bug 4926)
6684 {{#special:}} page name, known
6688 {{#special:Recentchanges}}
6690 Special:RecentChanges
6694 {{#special:}} page name with subpage, known
6698 {{#special:Recentchanges/param}}
6700 Special:RecentChanges/param
6704 {{#special:}} page name, unknown
6708 {{#special:foobarnonexistent}}
6710 No such special page
6714 {{#speciale:}} page name, known
6718 {{#speciale:Recentchanges}}
6720 Special:RecentChanges
6724 {{#speciale:}} page name with subpage, known
6728 {{#speciale:Recentchanges/param}}
6730 Special:RecentChanges/param
6734 {{#speciale:}} page name, unknown
6738 {{#speciale:foobarnonexistent}}
6740 No_such_special_page
6749 [[Image:foobar.jpg]]
6751 <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>
6758 [[Image:foobar.jpg|right]]
6760 <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>
6765 Simple image (using File: namespace, now canonical)
6769 <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>
6776 [[Image:foobar.jpg|right|Caption text]]
6778 <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>
6783 Image with empty attribute
6785 [[Image:foobar.jpg|right||Caption text]]
6787 <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>
6792 Image with link tails
6794 123[[Image:foobar.jpg]]456
6795 123[[Image:foobar.jpg|right]]456
6796 123[[Image:foobar.jpg|thumb]]456
6798 <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
6800 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
6801 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
6806 Image with multiple captions -- only last one is accepted
6808 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6810 <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>
6815 Image with width attribute at different positions
6817 [[Image:foobar.jpg|200px|right|Caption]]
6818 [[Image:foobar.jpg|right|200px|Caption]]
6819 [[Image:foobar.jpg|right|Caption|200px]]
6821 <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>
6822 <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>
6823 <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>
6828 Image with link parameter, wiki target
6830 [[Image:foobar.jpg|link=Target page]]
6832 <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>
6837 Image with link parameter, URL target
6839 [[Image:foobar.jpg|link=http://example.com/]]
6841 <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>
6846 Image with link parameter, wgExternalLinkTarget
6848 [[Image:foobar.jpg|link=http://example.com/]]
6850 wgExternalLinkTarget='foobar'
6852 <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>
6857 Image with link parameter, wgNoFollowLinks set to false
6859 [[Image:foobar.jpg|link=http://example.com/]]
6861 wgNoFollowLinks=false
6863 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6868 Image with link parameter, wgNoFollowDomainExceptions
6870 [[Image:foobar.jpg|link=http://example.com/]]
6872 wgNoFollowDomainExceptions='example.com'
6874 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6879 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6881 [[Image:foobar.jpg|link=http://example.com/|Title]]
6883 wgExternalLinkTarget='foobar'
6885 <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>
6890 Image with empty link parameter
6892 [[Image:foobar.jpg|link=]]
6894 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6899 Image with link parameter (wiki target) and unnamed parameter
6901 [[Image:foobar.jpg|link=Target page|Title]]
6903 <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>
6908 Image with link parameter (URL target) and unnamed parameter
6910 [[Image:foobar.jpg|link=http://example.com/|Title]]
6912 <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>
6917 Thumbnail image with link parameter
6919 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6921 <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>
6926 Image with frame and link
6928 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6930 <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>
6935 Image with frame and link and explicit alt
6937 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6939 <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>
6944 Image with wiki markup in implicit alt
6946 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6948 <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>
6953 Image with wiki markup in explicit alt
6955 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6957 <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>
6962 Link to image page- image page normally doesn't exists, hence edit link
6963 Add test with existing image page
6964 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6968 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6973 bug 18784 Link to non-existent image page with caption should use caption as link text
6975 [[:Image:test|caption]]
6977 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6982 Frameless image caption with a free URL
6984 [[Image:foobar.jpg|http://example.com]]
6986 <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>
6991 Thumbnail image caption with a free URL
6993 [[Image:foobar.jpg|thumb|http://example.com]]
6995 <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>
7000 Thumbnail image caption with a free URL and explicit alt
7002 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
7004 <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>
7009 BUG 1887: A ISBN with a thumbnail
7011 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
7013 <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>
7018 BUG 1887: A RFC with a thumbnail
7020 [[Image:foobar.jpg|thumb|This is RFC 12354]]
7022 <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>
7027 BUG 1887: A mailto link with a thumbnail
7029 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
7031 <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>
7035 # Pending resolution to bug 368
7037 BUG 648: Frameless image caption with a link
7039 [[Image:foobar.jpg|text with a [[link]] in it]]
7041 <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>
7046 BUG 648: Frameless image caption with a link (suffix)
7048 [[Image:foobar.jpg|text with a [[link]]foo in it]]
7050 <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>
7055 BUG 648: Frameless image caption with an interwiki link
7057 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
7059 <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>
7064 BUG 648: Frameless image caption with a piped interwiki link
7066 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
7068 <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>
7073 Escape HTML special chars in image alt text
7075 [[Image:foobar.jpg|& < > "]]
7077 <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>
7082 BUG 499: Alt text should have Ӓ, not &1234;
7084 [[Image:foobar.jpg|♀]]
7086 <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>
7091 Broken image caption with link
7093 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
7095 <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.
7100 Image caption containing another image
7102 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
7104 <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>
7109 Image caption containing a newline
7111 [[Image:Foobar.jpg|This
7114 <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>
7119 Parsoid: Image caption containing leading space
7120 (The leading space should not trigger nowiki escaping in wt2wt mode)
7122 [[Image:Foobar.jpg|thumb| bar]]
7124 <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>
7129 Bug 3090: External links other than http: in image captions
7131 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
7133 <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>
7140 [[Image:foobar.jpg|a|class=b]]
7142 <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>
7147 Localized image handling (1).
7151 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
7153 <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>
7158 Localized image handling (2).
7162 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
7164 <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>
7169 "border", "frameless" and "class" attributes on an image.
7171 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
7173 <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>
7180 #REDIRECT [[File:Barfoo.jpg]]
7186 [[Image:Barfoo.jpg]]
7188 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
7193 Missing image with uploads disabled
7197 [[Image:Foobaz.jpg]]
7199 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
7208 Subpage test/subpage
7216 subpage title=[[Subpage test]]
7220 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
7225 Subpage noslash link
7227 subpage title=[[Subpage test]]
7231 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
7240 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
7245 BUG 561: {{/Subpage}}
7247 subpage title=[[Page]]
7251 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
7259 Category:MediaWiki User's Guide
7267 [[:Category:MediaWiki User's Guide]]
7269 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
7278 [[Category:MediaWiki User's Guide]]
7280 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7284 PAGESINCATEGORY invalid title fatal (r33546 fix)
7286 {{PAGESINCATEGORY:<bogus>}}
7293 Category with different sort key
7297 [[Category:MediaWiki User's Guide|Foo]]
7299 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7303 Category with identical sort key
7307 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7309 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
7313 Category with empty sort key
7318 [[Category:MediaWiki User's Guide|]]
7320 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
7324 Category with empty sort key and parentheses
7329 [[Category:Foo (bar)|]]
7331 [[Category:Foo (bar)|Foo]]
7335 Category with link tail
7340 123[[Category:Foo]]456
7342 123[[Category:Foo]]456
7346 Category with template
7351 [[Category:{{echo|Foo}}]]
7353 [[Category:{{echo|Foo}}]]
7357 Category with template in sort key
7362 [[Category:Foo|{{echo|Bar}}]]
7364 [[Category:Foo|{{echo|Bar}}]]
7368 Category with template in sort key and title
7373 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7375 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
7379 Category / paragraph interactions
7381 Foo [[Category:Baz]] Bar
7383 Foo [[Category:Baz]]
7391 [[Category:Baz]] Bar
7404 {{echo|[[Category:Baz]]}}
7419 ### Inter-language links
7422 Inter-language links
7428 [[zh:食品]]
7430 es:Alimento fr:Nourriture zh:食品
7434 Duplicate interlanguage links (bug 24502)
7450 Basic section headings
7457 ===Smaller headline===
7460 <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>
7463 <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>
7466 <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>
7472 Section headings with TOC
7475 === Subheadline 1 ===
7476 ===== Skipping a level =====
7477 ====== Skipping a level ======
7481 ===Another headline===
7483 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7485 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
7487 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
7489 <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>
7491 <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>
7498 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
7500 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
7505 <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>
7506 <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>
7507 <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>
7508 <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>
7509 <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>
7512 <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>
7516 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
7518 Handling of sections up to level 6 and beyond
7521 == Level 2 Heading==
7522 === Level 3 Heading===
7523 ==== Level 4 Heading====
7524 ===== Level 5 Heading=====
7525 ====== Level 6 Heading======
7526 ======= Level 7 Heading=======
7527 ======== Level 8 Heading========
7528 ========= Level 9 Heading=========
7529 ========== Level 10 Heading==========
7531 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7533 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
7535 <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>
7537 <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>
7539 <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>
7541 <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>
7543 <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>
7544 <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>
7545 <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>
7546 <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>
7547 <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>
7560 <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>
7561 <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>
7562 <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>
7563 <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>
7564 <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>
7565 <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>
7566 <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>
7567 <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>
7568 <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>
7569 <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>
7574 TOC regression (bug 9764)
7578 ==== title 1.1.1 ====
7583 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7585 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7587 <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>
7589 <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>
7592 <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>
7595 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7597 <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>
7602 <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>
7603 <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>
7604 <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>
7605 <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>
7606 <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>
7607 <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>
7612 TOC with wgMaxTocLevel=3 (bug 6204)
7618 ==== title 1.1.1 ====
7623 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7625 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7627 <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>
7628 <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>
7631 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
7633 <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>
7638 <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>
7639 <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>
7640 <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>
7641 <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>
7642 <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>
7643 <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>
7648 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
7654 ====Section 1.1.1====
7655 ====Section 1.1.1.1====
7658 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7660 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
7662 <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>
7665 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
7668 <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>
7669 <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>
7670 <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>
7671 <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>
7672 <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>
7678 Resolving duplicate section names
7683 <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>
7684 <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>
7689 Resolving duplicate section names with differing case (bug 10721)
7694 <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>
7695 <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>
7707 Template with sections, __NOTOC__
7714 <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>
7715 <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>
7716 <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>
7717 <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>
7722 __NOEDITSECTION__ keyword
7728 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
7729 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7734 Link inside a section heading
7736 ==Section with a [[Main Page|link]] in it==
7738 <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>
7743 TOC regression (bug 12077)
7750 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7752 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7754 <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>
7757 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7760 <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>
7761 <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>
7762 <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>
7767 BUG 1219 URL next to image (good)
7769 http://example.com [[Image:foobar.jpg]]
7771 <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>
7776 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7779 The line above must have a trailing space!
7782 But just in case it doesn't...
7784 <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>
7785 <p>The line above must have a trailing space!
7787 <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>
7788 <p>But just in case it doesn't...
7793 Header with special characters (bug 25462)
7795 The tooltips shall not show entities to the user (ie. be double escaped)
7812 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7814 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7816 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7817 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7818 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7819 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7820 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7823 <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>
7826 <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>
7829 <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>
7832 <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>
7835 <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>
7841 Headers with excess '=' characters
7842 (Are similar tests necessary beyond the 1st level?)
7846 =''italic'' heading==
7847 ==''italic'' heading=
7849 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7851 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7852 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7853 <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>
7854 <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>
7857 <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>
7858 <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>
7859 <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>
7860 <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>
7865 BUG 1219 URL next to image (broken)
7867 http://example.com[[Image:foobar.jpg]]
7869 <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>
7874 Bug 1186 news: in the middle of text
7876 http://en.wikinews.org/wiki/Wikinews:Workplace
7878 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7884 Namespaced link must have a title
7893 Namespaced link must have a title (bad fragment version)
7895 [[Project:#fragment]]
7897 <p>[[Project:#fragment]]
7903 ### HTML tags and HTML attributes
7907 div with no attributes
7909 <div>HTML rocks</div>
7911 <div>HTML rocks</div>
7916 div with double-quoted attribute
7918 <div id="rock">HTML rocks</div>
7920 <div id="rock">HTML rocks</div>
7925 div with single-quoted attribute
7927 <div id='rock'>HTML rocks</div>
7929 <div id="rock">HTML rocks</div>
7934 div with unquoted attribute
7936 <div id=rock>HTML rocks</div>
7938 <div id="rock">HTML rocks</div>
7943 div with illegal double attributes
7945 <div id="a" id="b">HTML rocks</div>
7947 <div id="b">HTML rocks</div>
7951 # FIXME: produce empty string instead of "class" in the PHP parser, following
7954 div with empty attribute value, space before equals
7958 <div class =>HTML rocks</div>
7960 <div class="">HTML rocks</div>
7964 # The PHP parser escapes the opening brace to { for some reason, so
7965 # disabled this test for it.
7967 div with braces in attribute value
7971 <div title="{}">Foo</div>
7973 <div title="{}">Foo</div>
7976 # This it very inconsistent in the PHP parser: it returns
7977 # class="class" if there is a space between the name and the equal sign (see
7978 # 'div with empty attribute value, space before equals'), but strips the
7979 # attribute completely if the space is missing. We hope that not much content
7980 # depends on this, so are implementing the behavior below in Parsoid for
7981 # consistencies' sake. Disabled for the PHP parser.
7982 # FIXME: fix this behavior in the PHP parser?
7984 div with empty attribute value, no space before equals
7988 <div class=>HTML rocks</div>
7990 <div class="">HTML rocks</div>
7995 HTML multiple attributes correction
7997 <p class="error" class="awesome">Awesome!</p>
7999 <p class="awesome">Awesome!</p>
8004 Table multiple attributes correction
8007 !+ class="error" class="awesome"| status
8012 <th class="awesome"> status
8020 <DIV ID="x">HTML ROCKS</DIV>
8022 <div id="x">HTML ROCKS</div>
8027 Non-ASCII pseudo-tags are rendered as text
8036 Pseudo-tag with URL 'name' renders as url link
8038 <http://example.com/>
8040 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
8045 text with amp in the middle of nowhere
8049 <p>Remember AT&T?
8054 text with character entity: eacute
8056 I always thought é was a cute letter.
8058 <p>I always thought é was a cute letter.
8063 text with entity-escaped character entity-like string: eacute
8065 I always thought &eacute; was a cute letter.
8067 <p>I always thought &eacute; was a cute letter.
8072 text with undefined character entity: xacute
8074 I always thought &xacute; was a cute letter.
8076 <p>I always thought &xacute; was a cute letter.
8088 [[Media:Foobar.jpg]]
8090 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
8095 Media link with text
8097 [[Media:Foobar.jpg|A neat file to look at]]
8099 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
8103 # FIXME: this is still bad HTML tag nesting
8105 Media link with nasty text
8106 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
8108 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
8110 <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>
8115 Media link to nonexistent file (bug 1702)
8117 [[Media:No such.jpg]]
8119 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
8124 Image link to nonexistent file (bug 1850 - good)
8126 [[Image:No such.jpg]]
8128 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
8133 :Image link to nonexistent file (bug 1850 - bad)
8135 [[:Image:No such.jpg]]
8137 <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>
8144 Character reference normalization in link text (bug 1938)
8146 [[Main Page|this&that]]
8148 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
8155 Test for unicode normalization
8157 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
8161 (bug 19451) Links should refer to the normalized form.
8169 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8170 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8171 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8172 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8173 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
8178 Empty attribute crash test (bug 2067)
8180 <font color="">foo</font>
8182 <p><font color="">foo</font>
8187 Empty attribute crash test single-quotes (bug 2067)
8189 <font color=''>foo</font>
8191 <p><font color="">foo</font>
8196 Attribute test: equals, then nothing
8198 <font color=>foo</font>
8205 Attribute test: unquoted value
8207 <font color=x>foo</font>
8209 <p><font color="x">foo</font>
8214 Attribute test: unquoted but illegal value (hash)
8216 <font color=#x>foo</font>
8218 <p><font color="#x">foo</font>
8223 Attribute test: no value
8225 <font color>foo</font>
8227 <p><font color="color">foo</font>
8232 Bug 2095: link with three closing brackets
8236 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
8241 Bug 2095: link with pipe and three closing brackets
8245 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
8250 Bug 2095: link with pipe and three closing brackets, version 2
8252 [[Main Page|[http://example.com/]]]
8254 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
8264 Template:Dangerous attribute
8266 " onmouseover="alert(document.cookie)
8270 Template:Dangerous style attribute
8272 border-size: expression(alert(document.cookie))
8278 <div style="float: right; {{{1}}}">Magic div</div>
8282 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
8284 <div title="{{test}}"></div>
8286 <div title="This is a test template"></div>
8291 Bug 2304: HTML attribute safety (dangerous template; 2309)
8293 <div title="{{dangerous attribute}}"></div>
8295 <div title=""></div>
8300 Bug 2304: HTML attribute safety (dangerous style template; 2309)
8302 <div style="{{dangerous style attribute}}"></div>
8304 <div style="/* insecure input */"></div>
8309 Bug 2304: HTML attribute safety (safe parameter; 2309)
8311 {{div style|width: 200px}}
8313 <div style="float: right; width: 200px">Magic div</div>
8318 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
8320 {{div style|width: expression(alert(document.cookie))}}
8322 <div style="/* insecure input */">Magic div</div>
8327 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
8329 {{div style|"><script>alert(document.cookie)</script>}}
8331 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8336 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
8338 {{div style|" ><script>alert(document.cookie)</script>}}
8340 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
8345 Bug 2304: HTML attribute safety (link)
8347 <div title="[[Main Page]]"></div>
8349 <div title="[[Main Page]]"></div>
8354 Bug 2304: HTML attribute safety (italics)
8356 <div title="''foobar''"></div>
8358 <div title="''foobar''"></div>
8363 Bug 2304: HTML attribute safety (bold)
8365 <div title="'''foobar'''"></div>
8367 <div title="'''foobar'''"></div>
8373 Bug 2304: HTML attribute safety (ISBN)
8375 <div title="ISBN 1234567890"></div>
8377 <div title="ISBN 1234567890"></div>
8382 Bug 2304: HTML attribute safety (RFC)
8384 <div title="RFC 1234"></div>
8386 <div title="RFC 1234"></div>
8391 Bug 2304: HTML attribute safety (PMID)
8393 <div title="PMID 1234567890"></div>
8395 <div title="PMID 1234567890"></div>
8400 Bug 2304: HTML attribute safety (web link)
8402 <div title="http://example.com/"></div>
8404 <div title="http://example.com/"></div>
8409 Bug 2304: HTML attribute safety (named web link)
8411 <div title="[http://example.com/ link]"></div>
8413 <div title="[http://example.com/ link]"></div>
8418 Bug 3244: HTML attribute safety (extension; safe)
8420 <div style="<nowiki>background:blue</nowiki>"></div>
8422 <div style="background:blue"></div>
8427 Bug 3244: HTML attribute safety (extension; unsafe)
8429 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
8431 <div style="/* insecure input */"></div>
8435 # More MSIE fun discovered by Tom Gilder
8438 MSIE CSS safety test: spurious slash
8440 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
8442 <div style="/* insecure input */">evil</div>
8447 MSIE CSS safety test: hex code
8449 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
8451 <div style="/* insecure input */">evil</div>
8456 MSIE CSS safety test: comment in url
8458 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
8460 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
8465 MSIE CSS safety test: comment in expression
8467 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
8469 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
8475 Table attribute legitimate extension
8478 !+ style="<nowiki>color:blue</nowiki>"| status
8483 <th style="color:blue"> status
8489 Table attribute safety
8492 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
8497 <th style="/* insecure input */"> status
8503 CSS line continuation 1
8505 <div style="background-image: u\ rl(test.jpg);"></div>
8507 <div style="/* insecure input */"></div>
8512 CSS line continuation 2
8514 <div style="background-image: u\ rl(test.jpg); "></div>
8516 <div style="/* insecure input */"></div>
8527 Expansion of multi-line templates in attribute values (bug 6255)
8529 <div style="background: {{identity|#00FF00}}">-</div>
8531 <div style="background: #00FF00">-</div>
8537 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
8539 <div style="background:
8542 <div style="background: #00FF00">-</div>
8547 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
8549 <div style="background: #00FF00">-</div>
8551 <div style="background: #00FF00">-</div>
8556 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
8559 Parser hook: empty input
8572 Parser hook: empty input using terminated empty elements
8585 Parser hook: empty input using terminated empty elements (space before)
8598 Parser hook: basic input
8612 Parser hook: case insensitive
8626 Parser hook: case insensitive, redux
8639 Parser hook: nested tags
8643 <tag><tag></tag></tag>
8654 Parser hook: basic arguments
8656 <tag width=200 height = "100" depth = '50' square></tag>
8664 'square' => 'square',
8671 Parser hook: argument containing a forward slash (bug 5344)
8673 <tag filename='/tmp/bla'></tag>
8678 'filename' => '/tmp/bla',
8685 Parser hook: empty input using terminated empty elements (bug 2374)
8698 # </tag> should be output literally since there is no matching tag that begins it
8700 Parser hook: basic arguments using terminated empty elements (bug 2374)
8702 <tag width=200 height = "100" depth = '50' square/>
8712 'square' => 'square',
8721 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
8725 Parser hook: static parser hook not inside a comment
8727 <statictag>hello, world</statictag>
8728 <statictag action=flush/>
8736 Parser hook: static parser hook inside a comment
8738 <!-- <statictag>hello, world</statictag> -->
8739 <statictag action=flush/>
8745 # Nested template calls; this case was broken by Parser.php rev 1.506,
8749 Template:One-parameter
8751 (My parameter is: {{{1}}})
8755 Template:Map-one-parameter
8761 Nested template calls
8763 {{Map-one-parameter|One-parameter|param}}
8765 <p>(My parameter is: param)
8774 Sanitizer: Closing of open tags
8776 <s></s><table></table>
8778 <s></s><table></table>
8783 Sanitizer: Closing of open but not closed tags
8792 Sanitizer: Closing of closed but not open tags
8801 Sanitizer: Closing of closed but not open table tags
8803 Table not started</td></tr></table>
8805 <p>Table not started</td></tr></table>
8810 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8812 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8814 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8819 Sanitizer: Validating the contents of the id attribute (bug 4515)
8825 Something, but definitely not <br id="9" />...
8829 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8833 <br id="foo" /><br id="foo" />
8835 Something need to be done. foo-2 ?
8839 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8842 <meta itemprop="hello" content="world">
8843 <meta http-equiv="refresh" content="5">
8844 <meta itemprop="hello" http-equiv="refresh" content="5">
8845 <link itemprop="hello" href="{{SERVER}}">
8846 <link rel="stylesheet" href="{{SERVER}}">
8847 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8850 <div itemscope="itemscope">
8851 <p> <meta itemprop="hello" content="world" />
8852 <meta http-equiv="refresh" content="5">
8853 <meta itemprop="hello" content="5" />
8855 <link itemprop="hello" href="http://example.org" />
8856 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
8857 <link itemprop="hello" href="http://example.org" />
8863 Language converter: output gets cut off unexpectedly (bug 5757)
8867 this bit is safe: }-
8869 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8871 then we get cut off here: }-
8873 all additional text is vanished
8875 <p>this bit is safe: }-
8876 </p><p>but if we add a conversion instance: xxx
8877 </p><p>then we get cut off here: }-
8878 </p><p>all additional text is vanished
8883 Self closed html pairs (bug 5487)
8886 <center><font id="bug" />Centered text</center>
8887 <div><font id="bug2" />In div text</div>
8889 <center><font id="bug" />Centered text</center>
8890 <div><font id="bug2" />In div text</div>
8899 Punctuation: nbsp before exclamation
8903 <p>C'est grave !
8908 Punctuation: CSS !important (bug 11874)
8910 <div style="width:50% !important">important</div>
8912 <div style="width:50% !important">important</div>
8917 Punctuation: CSS ! important (bug 11874; with space after)
8919 <div style="width:50% ! important">important</div>
8921 <div style="width:50% ! important">important</div>
8927 HTML bullet list, closed tags (bug 5497)
8942 HTML bullet list, unclosed tags (bug 5497)
8959 HTML ordered list, closed tags (bug 5497)
8974 HTML ordered list, unclosed tags (bug 5497)
8991 HTML nested bullet list, closed tags (bug 5497)
9016 HTML nested bullet list, open tags (bug 5497)
9041 HTML nested ordered list, closed tags (bug 5497)
9066 HTML nested ordered list, open tags (bug 5497)
9091 HTML ordered list item with parameters oddity
9093 <ol><li id="fragment">One</li></ol>
9095 <ol><li id="fragment">One</li></ol>
9100 bug 5918: autonumbering
9102 [http://first/] [http://second] [ftp://ftp]
9106 [mailto:enclosed@mail.tld With target]
9108 [mailto:enclosed@mail.tld]
9110 mailto:inline@mail.tld
9112 <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>
9113 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
9114 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
9115 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
9116 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
9122 # Security and HTML correctness
9123 # From Nick Jenkins' fuzz testing
9127 Fuzz testing: Parser13
9142 Fuzz testing: Parser14
9147 <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>
9148 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9150 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
9157 Fuzz testing: Parser14-table
9162 <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>
9163 <table style="__TOC__">
9169 # Known to produce bogus xml (extra </td>)
9171 Fuzz testing: Parser16
9191 Fuzz testing: Parser21
9194 ! irc://{{ftp://a" onmouseover="alert('hello world');"
9199 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
9209 Fuzz testing: Parser22
9211 http://===r:::https://b
9215 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
9223 # Known to produce bad XML for now
9225 Fuzz testing: Parser24
9232 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
9233 <br style="onmouseover='alert(document.cookie);' " />
9235 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9240 <u class="|">}}}} >
9241 <br style="onmouseover='alert(document.cookie);'" />
9243 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
9252 # Note: the current result listed for this is not what the original one was,
9253 # but the original bug was JavaScript injection, which is fixed in any case.
9254 # It's not clear that the original result listed was any more correct than the
9255 # current one. Original result:
9258 # <li class="||">
9259 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9261 Fuzz testing: Parser25 (bug 6055)
9267 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
9269 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
9274 Fuzz testing: URL adjacent extension (with space, clean)
9277 http://example.com <nowiki>junk</nowiki>
9279 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
9284 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
9287 http://example.com<nowiki>junk</nowiki>
9289 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
9294 Fuzz testing: URL adjacent extension (no space, dirty; pre)
9297 http://example.com<pre>junk</pre>
9299 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
9304 Fuzz testing: image with bogus manual thumbnail
9306 [[Image:foobar.jpg|thumbnail= ]]
9308 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
9313 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
9315 <pre dir=" "></pre>
9317 <pre dir=" "></pre>
9322 Parsing optional HTML elements (Bug 6171)
9327 <td> Some tabular data</td>
9328 <td> More tabular data ...
9329 <td> And yet som tabular data</td>
9335 <td> Some tabular data</td>
9336 <td> More tabular data ...
9337 </td><td> And yet som tabular data</td>
9344 Correct handling of <td>, <tr> (Bug 6171)
9349 <td> Some tabular data</td>
9350 <td> More tabular data ...</td>
9351 <td> And yet som tabular data</td>
9357 <td> Some tabular data</td>
9358 <td> More tabular data ...</td>
9359 <td> And yet som tabular data</td>
9367 Parsing crashing regression (fr:JavaScript)
9371 <p></body></x>
9376 Inline wiki vs wiki block nesting
9382 <p><b>Bold paragraph</b>
9383 </p><p>New wiki paragraph
9388 Inline HTML vs wiki block nesting
9396 <p><b>Bold paragraph</b>
9397 </p><p>New wiki paragraph
9401 # Original result was this:
9402 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
9404 # While that might be marginally more intuitive, maybe, the six-apostrophe
9405 # construct is clearly pathological and the result stated here (which is what
9406 # the parser actually does) is about as reasonable as anything.
9408 Mixing markup for italics and bold
9411 '''bold''''''bold''bolditalics'''''
9413 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
9421 Article for special page transclusion test
9425 Special page transclusion
9428 {{Special:Prefixindex/Xyzzyx}}
9430 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9435 Special page transclusion twice (bug 5021)
9438 {{Special:Prefixindex/Xyzzyx}}
9439 {{Special:Prefixindex/Xyzzyx}}
9441 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9442 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
9447 Transclusion of default MediaWiki message
9449 {{MediaWiki:Mainpage}}
9456 Transclusion of nonexistent MediaWiki message
9458 {{MediaWiki:Mainpagexxx}}
9460 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
9465 Transclusion of MediaWiki message with underscore
9467 {{MediaWiki:history_short}}
9474 Transclusion of MediaWiki message with space
9476 {{MediaWiki:history short}}
9483 Invalid header with following text
9493 Section extraction test (section 0)
9513 Section extraction test (section 1)
9535 Section extraction test (section 2)
9556 Section extraction test (section 3)
9576 Section extraction test (section 4)
9600 Section extraction test (section 5)
9620 Section extraction test (section 6)
9641 Section extraction test (section 7)
9661 Section extraction test (section 8)
9681 Section extraction test (section 9)
9702 Section extraction test (section 10)
9722 Section extraction test (nonexistent section 11)
9741 Section extraction test with bogus heading (section 1)
9746 ==bogus== not a legal section
9750 ==bogus== not a legal section
9754 Section extraction test with bogus heading (section 2)
9759 ==bogus== not a legal section
9766 Section extraction test with comment after heading (section 1)
9778 Section extraction test with comment after heading (section 2)
9790 Section extraction test with bogus <nowiki> heading (section 1)
9795 ==bogus== <nowiki>not a legal section</nowiki>
9799 ==bogus== <nowiki>not a legal section</nowiki>
9803 Section extraction test with bogus <nowiki> heading (section 2)
9808 ==bogus== <nowiki>not a legal section</nowiki>
9815 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9816 # instead of respecting commented sections
9818 Section extraction prefixed by comment (section 1)
9829 Section extraction prefixed by comment (section 2)
9840 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9841 # instead of respecting HTML-style headings
9843 Section extraction, mixed wiki and html (section 1)
9859 Section extraction, mixed wiki and html (section 2)
9875 # Formerly testing for bug 3342
9877 Section extraction, heading surrounded by <noinclude>
9881 <noinclude>==unmarked==</noinclude>
9887 # Test behaviour of bug 19910
9889 Sectiion with all-equals
9894 The line above must have a trailing space
9897 But just in case it doesn't...
9901 But just in case it doesn't...
9905 Section replacement test (section 0)
9936 Section replacement test (section 1)
9965 Section replacement test (section 2)
9995 Section replacement test (section 3)
10026 Section replacement test (section 4)
10053 Section replacement test (section 5)
10084 Section replacement test (section 6)
10114 Section replacement test (section 7)
10145 Section replacement test (section 8)
10176 Section replacement test (section 9)
10205 Section replacement test (section 10)
10235 Section replacement test with initial whitespace (bug 13728)
10239 Preformatted initial line
10243 Preformatted initial line
10250 Section extraction, heading followed by pre with 20 spaces (bug 6398)
10262 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
10275 Section extraction, <pre> around bogus header (bug 10309)
10292 Section replacement, <pre> around bogus header (bug 10309)
10294 noxml replace=2,"xxx"
10315 Handling of 
 in URLs
10319 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
10326 5 quotes, code coverage +1 line
10333 Special:Search page linking.
10337 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
10349 * {{BASEPAGENAMEE}}
10351 * {{TALKPAGENAMEE}}
10352 * {{SUBJECTPAGENAME}}
10353 * {{SUBJECTPAGENAMEE}}
10359 * {{SUBJECTSPACEE}}
10360 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
10362 <ul><li> Parser test
10363 </li><li> Parser test
10364 </li><li> Parser test
10365 </li><li> Parser_test
10366 </li><li> Parser test
10367 </li><li> Parser_test
10368 </li><li> Talk:Parser test
10369 </li><li> Talk:Parser_test
10370 </li><li> Parser test
10371 </li><li> Parser_test
10378 </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>
10382 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
10392 image4 |300px| centre
10393 image5.svg| http://///////
10398 <ul class="gallery">
10399 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10400 <div style="height: 150px;">Image1.png</div>
10401 <div class="gallerytext">
10404 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10405 <div style="height: 150px;">Image2.gif</div>
10406 <div class="gallerytext">
10411 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10412 <div style="height: 150px;">Image3</div>
10413 <div class="gallerytext">
10416 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10417 <div style="height: 150px;">Image4</div>
10418 <div class="gallerytext">
10423 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10424 <div style="height: 150px;">Image5.svg</div>
10425 <div class="gallerytext">
10426 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
10430 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10431 <div style="height: 150px;">* image6</div>
10432 <div class="gallerytext">
10440 Gallery (with options)
10442 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
10443 File:Nonexistant.jpg|caption
10444 File:Nonexistant.jpg
10445 image:foobar.jpg|some '''caption''' [[Main Page]]
10447 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
10450 <ul class="gallery" style="max-width: 226px;_width: 226px;">
10451 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
10452 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10453 <div style="height: 70px;">Nonexistant.jpg</div>
10454 <div class="gallerytext">
10459 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10460 <div style="height: 70px;">Nonexistant.jpg</div>
10461 <div class="gallerytext">
10464 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10465 <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>
10466 <div class="gallerytext">
10467 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10471 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10472 <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>
10473 <div class="gallerytext">
10476 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
10477 <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>
10478 <div class="gallerytext">
10488 Gallery with wikitext inside caption
10491 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
10492 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
10495 <ul class="gallery">
10496 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10497 <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>
10498 <div class="gallerytext">
10499 <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>
10503 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10504 <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>
10505 <div class="gallerytext">
10506 <p>This is a test template
10515 gallery (with showfilename option)
10517 <gallery showfilename>
10518 File:Nonexistant.jpg|caption
10519 File:Nonexistant.jpg
10520 image:foobar.jpg|some '''caption''' [[Main Page]]
10524 <ul class="gallery">
10525 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10526 <div style="height: 150px;">Nonexistant.jpg</div>
10527 <div class="gallerytext">
10528 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10533 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10534 <div style="height: 150px;">Nonexistant.jpg</div>
10535 <div class="gallerytext">
10536 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
10540 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10541 <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>
10542 <div class="gallerytext">
10543 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10544 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10548 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10549 <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>
10550 <div class="gallerytext">
10551 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
10560 Gallery (with namespace-less filenames)
10563 File:Nonexistant.jpg
10569 <ul class="gallery">
10570 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10571 <div style="height: 150px;">Nonexistant.jpg</div>
10572 <div class="gallerytext">
10575 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10576 <div style="height: 150px;">Nonexistant.jpg</div>
10577 <div class="gallerytext">
10580 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10581 <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>
10582 <div class="gallerytext">
10585 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
10586 <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>
10587 <div class="gallerytext">
10595 HTML Hex character encoding (spells the word "JavaScript")
10597 JavaScript
10599 <p>JavaScript
10604 HTML Hex character encoding bogus encoding (bug 26437 regression check)
10608 <p>&#xsee;&#XSEE;
10613 HTML Hex character encoding mixed case
10622 __FORCETOC__ override
10634 ISBN 978-0-1234-56 789
10636 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
10641 ISBN followed by 5 spaces
10652 ISBN ISBN 1234567890
10654 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10659 Bug 22905: <abbr> followed by ISBN followed by </a>
10661 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
10663 <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>
10672 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
10677 Double RFC with a wiki link
10681 <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>
10690 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
10695 Centre-aligned image
10697 [[Image:foobar.jpg|centre]]
10699 <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>
10706 [[Image:foobar.jpg|none]]
10708 <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>
10713 Width + Height sized image (using px) (height is ignored)
10715 [[Image:foobar.jpg|640x480px]]
10717 <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>
10722 Width-sized image (using px, no following whitespace)
10724 [[Image:foobar.jpg|640px]]
10726 <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>
10731 Width-sized image (using px, with following whitespace - test regression from r39467)
10733 [[Image:foobar.jpg|640px ]]
10735 <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>
10740 Width-sized image (using px, with preceding whitespace - test regression from r39467)
10742 [[Image:foobar.jpg| 640px]]
10744 <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>
10749 Another italics / bold test
10757 # Note the results may be incorrect, as parserTest output included this:
10758 # XML error: Mismatched tag at byte 6120:
10759 # ...<dd> </dt></dl> </dd...
10767 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10778 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10780 Images with the "|" character in the comment
10782 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10784 <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>
10789 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10791 <html><script>alert(1);</script></html>
10793 <p><html><script>alert(1);</script></html>
10798 HTML with raw HTML ($wgRawHtml==true)
10802 <html><script>alert(1);</script></html>
10804 <p><script>alert(1);</script>
10809 Parents of subpages, one level up
10811 subpage title=[[Subpage test/L1/L2/L3]]
10815 <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>
10821 Parents of subpages, one level up, not named
10823 subpage title=[[Subpage test/L1/L2/L3]]
10827 <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>
10834 Parents of subpages, two levels up
10836 subpage title=[[Subpage test/L1/L2/L3]]
10842 <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
10843 </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>
10848 Parents of subpages, two levels up, without trailing slash or name.
10850 subpage title=[[Subpage test/L1/L2/L3]]
10859 Parents of subpages, two levels up, with lots of extra trailing slashes.
10861 subpage title=[[Subpage test/L1/L2/L3]]
10865 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10870 Definition list code coverage
10876 <dl><dt> title  </dt><dd> def
10877 </dd><dt> title </dt><dd> def
10878 </dd><dt>title</dt><dd> def
10884 Don't fall for the self-closing div
10886 <div>hello world</div/>
10888 <div>hello world</div>
10897 <p>[[:Template:Msg]]
10906 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10910 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10912 Always escape literal '>' in output, not just after '<'
10926 <p>This is a test template
10927 This is a test template
10939 Inclusion of !userCanEdit() content
10943 <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>
10949 Out-of-order TOC heading levels
10958 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10960 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10962 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10963 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10966 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10968 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10969 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10974 <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>
10975 <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>
10976 <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>
10977 <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>
10978 <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>
10979 <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>
10985 ISBN with a dummy number
10995 ISBN with space-delimited number
10999 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
11005 ISBN with multiple spaces, no number
11024 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
11025 </p><p>ISBN 12345678901
11031 ISBN with trailing year (bug 8110)
11033 ISBN 1-234-56789-0 - 2006
11035 ISBN 1 234 56789 0 - 2006
11037 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
11038 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
11046 {{anchorencode:foo bar©#%n}}
11048 <p>foo_bar.C2.A9.23.25n
11053 anchorencode trims spaces
11055 {{anchorencode: __pretty__please__}}
11062 anchorencode deals with links
11064 {{anchorencode: [[hello|world]] [[hi]]}}
11071 anchorencode deals with templates
11073 {{anchorencode: {{Foo}} }}
11080 anchorencode encodes like the TOC generator: (bug 18431)
11082 === _ +:.3A%3A&&]] ===
11083 {{anchorencode: _ +:.3A%3A&&]] }}
11086 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
11087 <p>.2B:.3A.253A.26.26.5D.5D
11091 # Expected output in the following test is not necessarily expected (there
11092 # should probably be <p> tags inside the <blockquote> in the output) -- it's
11093 # only testing for well-formedness.
11095 Bug 6200: blockquotes and paragraph formatting
11115 Bug 8293: Use of center tag ruins paragraph formatting
11137 ### Language variants related tests
11140 Self-link in language variants
11142 title=[[Dunav]] language=sr
11144 Both [[Dunav]] and [[Дунав]] are names for this river.
11146 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
11157 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
11159 title=[[Duna]] language=sr
11161 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
11163 <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.
11168 Link to pages in language variants
11172 Main Page can be written as [[Маин Паге]]
11174 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
11180 Multiple links to pages in language variants
11184 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
11186 <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>.
11192 Simple template in language variants
11198 <p>This is a test template
11204 Template with explicit namespace in language variants
11210 <p>This is a test template
11216 Basic test for template parameter in language variants
11220 {{парамтест|param=foo}}
11222 <p>This is a test template with parameter foo
11228 Simple category in language variants
11232 [[Category:МедиаWики Усер'с Гуиде]]
11234 <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>
11251 Don't convert blue categorylinks to another variant (bug 33210)
11255 [[A]][[Category:分类]]
11257 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
11262 Stripping -{}- tags (language variants)
11266 Latin proverb: -{Ne nuntium necare}-
11268 <p>Latin proverb: Ne nuntium necare
11274 Prevent conversion with -{}- tags (language variants)
11276 language=sr variant=sr-ec
11278 Latinski: -{Ne nuntium necare}-
11280 <p>Латински: Ne nuntium necare
11286 Prevent conversion of text with -{}- tags (language variants)
11288 language=sr variant=sr-ec
11290 Latinski: -{Ne nuntium necare}-
11292 <p>Латински: Ne nuntium necare
11298 Prevent conversion of links with -{}- tags (language variants)
11300 language=sr variant=sr-ec
11304 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
11310 -{}- tags within headlines (within html for parserConvert())
11312 language=sr variant=sr-ec
11316 <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>
11322 Explicit definition of language variant alternatives
11324 language=zh variant=zh-tw
11326 -{zh:China;zh-tw:Taiwan}-, not China
11328 <p>Taiwan, not China
11334 Conversion around HTML tags
11336 language=sr variant=sr-ec
11338 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
11339 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
11342 <span title="ЛаCтин">ски</span>
11348 Explicit session-wise language variant mapping (A flag and - flag)
11350 language=zh variant=zh-tw
11352 Taiwan is not China.
11353 But -{A|zh:China;zh-tw:Taiwan}- is China,
11354 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
11355 and -{China}- is China.
11357 <p>Taiwan is not China.
11358 But Taiwan is Taiwan,
11359 (This should be stripped!)
11360 and China is China.
11365 Explicit session-wise language variant mapping (H flag for hide)
11367 language=zh variant=zh-tw
11369 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
11372 <p>(This should be stripped!)
11378 Adding explicit conversion rule for title (T flag)
11380 language=zh variant=zh-tw showtitle
11382 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11385 <p>Should be stripped!
11390 Testing that changing the language variant here in the tests actually works
11392 language=zh variant=zh showtitle
11394 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11397 <p>Should be stripped!
11402 Recursive conversion of alt and title attrs shouldn't clear converter state
11404 language=zh variant=zh-cn showtitle
11406 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
11407 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
11411 Should be stripped<span title="Exclamation">!</span>
11416 Bug 24072: more test on conversion rule for title
11418 language=zh variant=zh-tw showtitle
11420 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
11421 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
11424 <p>This should be stripped!
11425 This won't take interferes with the title rule.
11430 Raw output of variant escape tags (R flag)
11432 language=zh variant=zh-tw
11434 Raw: -{R|zh:China;zh-tw:Taiwan}-
11436 <p>Raw: zh:China;zh-tw:Taiwan
11441 Nested using of manual convert syntax
11443 language=zh variant=zh-hk
11445 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
11447 <p>Nested: Hello Hong Kong!
11452 Proper conversion of text in external links
11454 language=sr variant=sr-ec
11456 http://www.google.com
11457 gopher://www.google.com
11458 [http://www.google.com http://www.google.com]
11459 [gopher://www.google.com gopher://www.google.com]
11460 [https://www.google.com irc://www.google.com]
11461 [ftp://www.google.com www.google.com/ftp://dir]
11462 [//www.google.com www.google.com]
11464 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11465 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11466 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
11467 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
11468 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
11469 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
11470 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
11475 Do not convert roman numbers to language variants
11477 language=sr variant=sr-ec
11481 <p>Фридрих IV је цар.
11486 Unclosed language converter markup "-{"
11497 Don't convert raw rule "-{R|=>}-" to "=>"
11514 Bug 529: Uncovered bullet
11524 # Plain MediaWiki does not remove empty lists, but tidy actually does.
11525 # Templates in Wikipedia rely on this behavior, as tidy has always been
11526 # enabled there. These tests are normally run *without* tidy, so specify the
11527 # full output here.
11528 # To test realistic parsing behavior, apply a tidy-like transformation to both
11529 # the expected output and your parser's output.
11531 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
11533 ******* Foo {{bullet}}
11535 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
11548 Bug 529: Uncovered table already at line-start
11571 Bug 529: Uncovered bullet in parser function result
11573 * Foo {{lc:{{bullet}} }}
11582 Bug 5678: Double-parsed template argument
11584 {{lc:{{{1}}}|hello}}
11591 Bug 5678: Double-parsed template invocation
11593 {{lc:{{paramtest {{!}} param = hello }} }}
11595 <p>{{paramtest | param = hello }}
11600 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
11603 title=[[Main Page]]
11605 {{PRVNÍVELKÉ:ěščř}}
11606 {{prvnívelké:ěščř}}
11626 Morwen/13: Unclosed link followed by heading
11633 <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>
11638 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
11645 <h1> <span class="mw-headline" id="heading">heading</span></h1>
11650 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
11657 <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>
11672 Paragraphs inside divs (no extra line breaks)
11684 Paragraphs inside divs (extra line break on open)
11699 Paragraphs inside divs (extra line break on close)
11714 Paragraphs inside divs (extra line break on open and close)
11731 Nesting tags, paragraphs on lines which begin with <div>
11735 <div></div><strong>A
11744 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
11746 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
11750 <blockquote>Line one
11752 Line two</blockquote>
11754 <blockquote>Line one
11755 Line two</blockquote>
11760 Bug 6200: paragraphs inside blockquotes (extra line break on open)
11767 Line two</blockquote>
11772 Line two</blockquote>
11777 Bug 6200: paragraphs inside blockquotes (extra line break on close)
11781 <blockquote>Line one
11786 <blockquote>Line one
11794 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
11813 Paragraphs inside blockquotes/divs (no extra line breaks)
11815 <blockquote><div>Line one
11817 Line two</div></blockquote>
11819 <blockquote><div>Line one
11820 Line two</div></blockquote>
11825 Paragraphs inside blockquotes/divs (extra line break on open)
11830 Line two</div></blockquote>
11835 Line two</div></blockquote>
11840 Paragraphs inside blockquotes/divs (extra line break on close)
11842 <blockquote><div>Line one
11845 </div></blockquote>
11847 <blockquote><div>Line one
11850 </div></blockquote>
11855 Paragraphs inside blockquotes/divs (extra line break on open and close)
11861 </div></blockquote>
11867 </div></blockquote>
11872 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11874 wgLinkHolderBatchSize=0
11880 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11881 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11882 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11887 Free external link invading image caption
11889 [[Image:Foobar.jpg|thumb|http://x|hello]]
11891 <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>
11896 Bug 15196: localised external link numbers
11900 [http://en.wikipedia.org/]
11902 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11907 Multibyte character in padleft
11909 {{padleft:-Hello|7|Æ}}
11916 Multibyte character in padright
11918 {{padright:Hello-|7|Æ}}
11925 formatdate parser function
11927 {{#formatdate:2009-03-24}}
11929 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11934 formatdate parser function, with default format
11936 {{#formatdate:2009-03-24|mdy}}
11938 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11943 Spacing of numbers in formatted dates
11945 {{#formatdate:January 15}}
11947 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11952 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
11954 language=nl title=[[MediaWiki:Common.css]]
11956 {{#formatdate:2009-03-24|dmy}}
11958 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11971 Edit comment with link
11975 I like the [[Main Page]] a lot
11977 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11981 Edit comment with link and link text
11985 I like the [[Main Page|best pages]] a lot
11987 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11991 Edit comment with link and link text with suffix
11995 I like the [[Main Page|best page]]s a lot
11997 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
12001 Edit comment with section link (non-local, eg in history list)
12003 comment title=[[Main Page]]
12005 /* External links */ removed bogus entries
12007 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12011 Edit comment with section link and text before it (non-local, eg in history list)
12013 comment title=[[Main Page]]
12015 pre-comment text /* External links */ removed bogus entries
12017 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>
12021 Edit comment with section link (local, eg in diff view)
12023 comment local title=[[Main Page]]
12025 /* External links */ removed bogus entries
12027 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
12031 Edit comment with subpage link (bug 14080)
12035 title=[[Subpage test]]
12037 Poked at a [[/subpage]] here...
12039 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
12043 Edit comment with subpage link and link text (bug 14080)
12047 title=[[Subpage test]]
12049 Poked at a [[/subpage|neat little page]] here...
12051 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
12055 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
12058 title=[[Subpage test]]
12060 Poked at a [[/subpage]] here...
12062 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
12066 Edit comment with bare anchor link (local, as on diff)
12070 title=[[Main Page]]
12074 <a href="#section">#section</a>
12078 Edit comment with bare anchor link (non-local, as on history)
12081 title=[[Main Page]]
12085 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
12089 Anchor starting with underscore
12093 <p><a href="#_ref">One</a>
12098 Id starting with underscore
12100 <div id="_ref"></div>
12102 <div id="_ref"></div>
12107 Space normalisation on autocomment (bug 22784)
12110 title=[[Main Page]]
12112 /* __hello__world__ */
12114 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
12118 percent-encoding and + signs in comments (Bug 26410)
12122 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
12124 <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>
12128 Bad images - basic functionality
12137 Bad images - bug 16039: text after bad image disappears
12151 Verify that displaytitle works (bug #22501) no displaytitle
12155 wgAllowDisplayTitle=true
12156 wgRestrictDisplayTitle=false
12158 this is not the the title
12161 <p>this is not the the title
12166 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
12171 wgAllowDisplayTitle=true
12172 wgRestrictDisplayTitle=false
12174 this is not the the title
12175 {{DISPLAYTITLE:whatever}}
12178 <p>this is not the the title
12183 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
12188 wgAllowDisplayTitle=true
12189 wgRestrictDisplayTitle=true
12191 this is not the the title
12192 {{DISPLAYTITLE:whatever}}
12195 <p>this is not the the title
12200 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
12205 wgAllowDisplayTitle=true
12206 wgRestrictDisplayTitle=true
12208 this is not the the title
12209 {{DISPLAYTITLE:screen}}
12212 <p>this is not the the title
12217 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
12222 wgAllowDisplayTitle=false
12224 this is not the the title
12225 {{DISPLAYTITLE:screen}}
12228 <p>this is not the the title
12229 <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>
12234 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
12239 wgAllowDisplayTitle=false
12241 this is not the the title
12244 <p>this is not the the title
12249 preload: check <noinclude> and <includeonly>
12253 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
12259 preload: check <onlyinclude>
12263 Goodbye <onlyinclude>Hello world</onlyinclude>
12269 preload: can pass tags through if we want to
12273 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
12275 <includeonly>Hello world</includeonly>
12279 preload: check that it doesn't try to do tricks
12283 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12285 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
12289 Play a bit with r67090 and bug 3158
12293 <div style="width:50% !important"> </div>
12294 <div style="width:50% !important"> </div>
12295 <div style="width:50% !important"> </div>
12296 <div style="border : solid;"> </div>
12298 <div style="width:50% !important"> </div>
12299 <div style="width:50% !important"> </div>
12300 <div style="width:50% !important"> </div>
12301 <div style="border : solid;"> </div>
12306 HTML5 data attributes
12308 <span data-foo="bar">Baz</span>
12309 <p data-abc-def_hij="">Quuz</p>
12311 <p><span data-foo="bar">Baz</span>
12313 <p data-abc-def_hij="">Quuz</p>
12318 percent-encoding and + signs in internal links (Bug 26410)
12320 [[User:+%]] [[Page+title%]]
12321 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
12322 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
12323 [[%33%45]] [[%33%45+]]
12325 <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>
12326 <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>
12327 <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>
12328 <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>
12333 Special characters in embedded file links (bug 27679)
12335 [[File:Contains & ampersand.jpg]]
12336 [[File:Does not exist.jpg|Title with & ampersand]]
12338 <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>
12339 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
12345 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
12347 Text's been normalized?
12349 <p>Text's been normalized?
12354 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
12356 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
12358 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
12363 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
12365 [http://www.example.org/ ideograms]
12367 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
12372 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
12374 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
12376 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
12400 Bug 31098 Template which includes system messages which includes the template
12404 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12405 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
12410 Bug31490 Turkish: ucfirst 'blah'
12421 Bug31490 Turkish: ucfirst 'ix'
12432 Bug31490 Turkish: lcfirst 'BLAH'
12443 Bug31490 Turkish: ucfırst (with a dotless i)
12449 <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>
12454 Bug31490 ucfırst (with a dotless i) with English language
12460 <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>
12465 Bug 26375: TOC with italics
12467 title=[[Main Page]]
12470 == ''Lost'' episodes ==
12472 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12474 <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>
12477 <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>
12482 Bug 26375: TOC with bold
12484 title=[[Main Page]]
12487 == '''should be bold''' then normal text ==
12489 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12491 <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>
12494 <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>
12499 Bug 33845: Headings become cursive in TOC when they contain an image
12501 title=[[Main Page]]
12504 == Image [[Image:foobar.jpg]] ==
12506 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12508 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
12511 <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>
12516 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
12518 title=[[Main Page]]
12521 == <blockquote>Quote</blockquote> ==
12523 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12525 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
12528 <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>
12533 Unclosed tags in TOC
12535 title=[[Main Page]]
12539 <small>Hanc marginis exiguitas non caperet.</small>
12542 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12544 <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>
12547 <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>
12548 <p><small>Hanc marginis exiguitas non caperet.</small>
12554 Multiple tags in TOC
12557 == <i>Foo</i> <b>Bar</b> ==
12559 == <i>Foo</i> <blockquote>Bar</blockquote> ==
12561 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12563 <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>
12564 <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>
12567 <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>
12568 <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>
12573 Tags with parameters in TOC
12576 == <sup class="in-h2">Hello</sup> ==
12578 == <sup class="a > b">Evilbye</sup> ==
12580 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12582 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
12583 <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>
12586 <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>
12587 <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>
12592 span tags with directionality in TOC
12595 == <span dir="ltr">C++</span> ==
12597 == <span dir="rtl">זבנג!</span> ==
12599 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
12601 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
12603 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
12605 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
12607 <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>
12608 <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>
12609 <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>
12610 <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>
12611 <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>
12614 <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>
12615 <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>
12616 <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>
12617 <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>
12618 <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>
12625 == {{int:headline_sample}} ==
12629 Bug 32057: Title needed when expanding <h> nodes.
12631 title=[[Main Page]]
12635 <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>
12640 Strip marker in urlencode
12642 {{urlencode:x<nowiki/>y}}
12643 {{urlencode:x<nowiki/>y|wiki}}
12644 {{urlencode:x<nowiki/>y|path}}
12671 Strip marker in formatNum
12673 {{formatnum:1<nowiki/>2}}
12674 {{formatnum:1<nowiki/>2|R}}
12682 Check noCommafy in formatNum
12686 {{formatnum:123456.78}}
12687 {{formatnum:123456.78|NOSEP}}
12695 Strip marker in grammar
12699 {{grammar:elative|foo<nowiki/>bar}}
12706 Strip marker in padleft
12708 {{padleft:|2|x<nowiki/>y}}
12715 Strip marker in padright
12717 {{padright:|2|x<nowiki/>y}}
12724 Strip marker in anchorencode
12726 {{anchorencode:x<nowiki/>y}}
12733 nowiki inside link inside heading (bug 18295)
12735 ==[[foo|x<nowiki>y</nowiki>z]]==
12737 <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>
12742 new support for bdi element (bug 31817)
12744 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12746 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
12751 Ignore pipe between table row attributes
12755 |- id=foo | style='color: red'
12763 <tr id="foo" style="color: red">
12770 Gallery override link with WikiLink (bug 34852)
12773 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
12776 <ul class="gallery">
12777 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12778 <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>
12779 <div class="gallerytext">
12789 Gallery override link with absolute external link (bug 34852)
12792 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
12795 <ul class="gallery">
12796 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12797 <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>
12798 <div class="gallerytext">
12808 Gallery override link with malicious javascript (bug 34852)
12811 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12814 <ul class="gallery">
12815 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12816 <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>
12817 <div class="gallerytext">
12827 Gallery with invalid title as link (bug 43964)
12830 File:foobar.jpg|link=<
12833 <ul class="gallery">
12834 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12835 <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>
12836 <div class="gallerytext">
12844 Language parser function
12853 Padleft and padright as substr
12855 {{padleft:|3|abcde}}
12856 {{padright:|3|abcde}}
12864 Bug 34939 - Case insensitive link parsing ([HttP://])
12866 [HttP://MediaWiki.Org/]
12868 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12873 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12875 [HttP://MediaWiki.Org/ MediaWiki]
12877 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12882 Bug 34939 - Case insensitive link parsing (HttP://)
12884 HttP://MediaWiki.Org/
12886 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12891 ### Parsoids-specific tests
12892 ### Parsoid-PHP parser incompatibilities
12895 1. SOL-sensitive wikitext tokens as template-args
12909 #### The following section of tests are primarily to test
12910 #### wikitext escaping capabilities of Parsoid.
12911 #### A lot of the tests are disabled for the PHP parser either
12912 #### because of minor newline diffs or other reasons.
12913 #### As Parsoid serializer can handle newlines and other HTML
12914 #### more robustly, some of these tests might get reenabled
12915 #### for the PHP parser.
12917 #### --------------- Headings ---------------
12919 #### 1. Nested inside html <h1>=foo=</h1>
12920 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12921 #### 3. Nested inside html with wikitext split by html tags
12922 #### 4. No escape needed
12923 #### 5. Empty headings <h1></h1>
12924 #### 6. Heading chars in SOL context
12925 #### ----------------------------------------
12927 Headings: 0. Unnested
12929 <nowiki>=foo=</nowiki>
12931 <nowiki>=foo</nowiki>''a''=
12934 </p><p>=foo<i>a</i>=
12939 Headings: 1. Nested inside html
12943 =<nowiki>=foo=</nowiki>=
12944 ==<nowiki>=foo=</nowiki>==
12945 ===<nowiki>=foo=</nowiki>===
12946 ====<nowiki>=foo=</nowiki>====
12947 =====<nowiki>=foo=</nowiki>=====
12948 ======<nowiki>=foo=</nowiki>======
12959 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12964 <nowiki>*bar</nowiki>
12968 <nowiki>=bar=</nowiki>
12976 Headings: 3. Nested inside html with wikitext split by html tags
12980 =<nowiki>=</nowiki>'''bold'''foo==
12982 <h1>=<b>bold</b>foo=</h1>
12986 Headings: 4. No escaping needed (testing just h1 and h2)
13001 <h1><i>=</i>foo=</h1>
13006 Headings: 5. Empty headings
13010 =<nowiki></nowiki>=
13011 ==<nowiki></nowiki>==
13012 ===<nowiki></nowiki>===
13013 ====<nowiki></nowiki>====
13014 =====<nowiki></nowiki>=====
13015 ======<nowiki></nowiki>======
13026 Headings: 6. Heading chars in SOL context
13030 <!--cmt--><nowiki>=h1=</nowiki>
13036 #### --------------- Lists ---------------
13037 #### 0. Outside nests (*foo, etc.)
13038 #### 1. Nested inside html <ul><li>*foo</li></ul>
13039 #### 2. Inside definition lists
13040 #### 3. Only bullets at start should be escaped
13041 #### 4. No escapes needed
13042 #### 5. No unnecessary escapes
13043 #### 6. Escape bullets in SOL position
13044 #### 7. Escape bullets in a multi-line context
13045 #### ----------------------------------------
13048 Lists: 0. Outside nests
13050 <nowiki>*foo</nowiki>
13052 <nowiki>#foo</nowiki>
13060 Lists: 1. Nested inside html
13062 *<nowiki>*foo</nowiki>
13064 *<nowiki>#foo</nowiki>
13066 *<nowiki>:foo</nowiki>
13068 *<nowiki>;foo</nowiki>
13070 #<nowiki>*foo</nowiki>
13072 #<nowiki>#foo</nowiki>
13074 #<nowiki>:foo</nowiki>
13076 #<nowiki>;foo</nowiki>
13098 Lists: 2. Inside definition lists
13100 ;<nowiki>;foo</nowiki>
13102 ;<nowiki>:foo</nowiki>
13104 ;<nowiki>:foo</nowiki>
13107 :<nowiki>:foo</nowiki>
13122 Lists: 3. Only bullets at start of text should be escaped
13124 *<nowiki>*foo*bar</nowiki>
13126 *<nowiki>*foo</nowiki>''it''*bar
13130 <ul><li>*foo<i>it</i>*bar
13136 Lists: 4. No escapes needed
13148 <ul><li><i>foo</i>*bar
13150 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
13155 Lists: 5. No unnecessary escapes
13157 * bar <span><nowiki>[[foo]]</nowiki></span>
13159 *=bar <span><nowiki>[[foo]]</nowiki></span>
13161 *[[bar <span><nowiki>[[foo]]</nowiki></span>
13163 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13165 *=bar <span>foo]]</span>=
13167 <ul><li> bar <span>[[foo]]</span>
13169 <ul><li>=bar <span>[[foo]]</span>
13171 <ul><li>[[bar <span>[[foo]]</span>
13173 <ul><li>]]bar <span>[[foo]]</span>
13175 <ul><li>=bar <span>foo]]</span>=
13181 Lists: 6. Escape bullets in SOL position
13185 <!--cmt--><nowiki>*foo</nowiki>
13192 Lists: 7. Escape bullets in a multi-line context
13202 #### --------------- HRs ---------------
13203 #### 1. Single line
13204 #### -----------------------------------
13207 HRs: 1. Single line
13212 <nowiki>----</nowiki>
13214 <nowiki>=foo=</nowiki>
13216 <nowiki>*foo</nowiki>
13223 #### --------------- Tables ---------------
13224 #### 1a. Simple example
13225 #### 1b. No escaping needed (!foo)
13226 #### 1c. No escaping needed (|foo)
13227 #### 1d. No escaping needed (|}foo)
13229 #### 2a. Nested in td (<td>foo|bar</td>)
13230 #### 2b. Nested in td (<td>foo||bar</td>)
13231 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
13233 #### 3a. Nested in th (<th>foo!bar</th>)
13234 #### 3b. Nested in th (<th>foo!!bar</th>)
13235 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
13239 #### 4c. No escaping needed
13240 #### --------------------------------------
13243 Tables: 1a. Simple example
13254 Tables: 1b. No escaping needed
13263 Tables: 1c. No escaping needed
13272 Tables: 1d. No escaping needed
13281 Tables: 2a. Nested in td
13286 |<nowiki>foo|bar</nowiki>
13296 Tables: 2b. Nested in td
13301 |<nowiki>foo||bar</nowiki>
13302 |''it''<nowiki>foo||bar</nowiki>
13307 </td><td><i>it</i>foo||bar
13313 Tables: 2c. Nested in td -- no escaping needed
13328 Tables: 3a. Nested in th
13343 Tables: 3b. Nested in th
13348 !<nowiki>foo!!bar</nowiki>
13358 Tables: 3c. Nested in th -- no escaping needed
13373 Tables: 4a. Escape -
13381 |<nowiki>-bar</nowiki>
13385 <tr><th>-bar</th></tr>
13386 <tr><td>-bar</td></tr>
13391 Tables: 4b. Escape +
13399 |<nowiki>+bar</nowiki>
13403 <tr><th>+bar</th></tr>
13404 <tr><td>+bar</td></tr>
13409 Tables: 4c. No escaping needed
13423 <tr><td>foo-bar</td><td>foo+bar</td></tr>
13424 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
13429 Tables: 4d. No escaping needed
13445 #### --------------- Links ---------------
13446 #### 1. Quote marks in link text
13447 #### 2. Wikilinks: Escapes needed
13448 #### 3. Wikilinks: No escapes needed
13449 #### 4. Extlinks: Escapes needed
13450 #### 5. Extlinks: No escapes needed
13451 #### --------------------------------------
13453 Links 1. Quote marks in link text
13457 [[Foo|<nowiki>Foo''boo''</nowiki>]]
13459 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
13463 Links 2. WikiLinks: Escapes needed
13467 [[Foo|<nowiki>[Foobar]</nowiki>]]
13468 [[Foo|<nowiki>Foobar]</nowiki>]]
13469 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
13470 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
13471 [[Foo|<nowiki>[[Bar]]</nowiki>]]
13472 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
13473 [[Foo|<nowiki>|Bar</nowiki>]]
13475 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
13476 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
13477 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
13478 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
13479 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
13480 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
13481 <a href="Foo" rel="mw:WikiLink">|Bar</a>
13485 Links 3. WikiLinks: No escapes needed
13492 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
13493 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
13497 Links 4. ExtLinks: Escapes needed
13501 [http://google.com <nowiki>[google]</nowiki>]
13502 [http://google.com <nowiki>google]</nowiki>]
13504 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
13505 <a href="http://google.com" rel="mw:ExtLink">google]</a>
13509 Links 5. ExtLinks: No escapes needed
13513 [http://google.com [google]
13515 <a href="http://google.com" rel="mw:ExtLink">[google</a>
13518 #### --------------- Quotes ---------------
13519 #### 1. Quotes inside <b> and <i>
13520 #### 2. Link fragments separated by <i> and <b> tags
13521 #### 3. Link fragments inside <i> and <b>
13522 #### --------------------------------------
13524 1. Quotes inside <b> and <i>
13526 ''<nowiki>'foo'</nowiki>''
13527 ''<nowiki>''foo''</nowiki>''
13528 ''<nowiki>'''foo'''</nowiki>''
13529 '''<nowiki>'foo'</nowiki>'''
13530 '''<nowiki>''foo''</nowiki>'''
13531 '''<nowiki>'''foo'''</nowiki>'''
13532 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
13540 <b>foo'<i>bar'</i>baz</b>
13545 2. Link fragments separated by <i> and <b> tags
13547 [[''foo''<nowiki>hello]]</nowiki>
13549 [['''foo'''<nowiki>hello]]</nowiki>
13551 <p>[[<i>foo</i>hello]]
13552 </p><p>[[<b>foo</b>hello]]
13557 2. Link fragments inside <i> and <b>
13558 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
13559 this is one of the shortcomings of this format)
13561 ''[[foo''<nowiki>]]</nowiki>
13563 '''[[foo'''<nowiki>]]</nowiki>
13566 </p><p><b>[[foo</b>]]
13570 #### --------------- Paragraphs ---------------
13571 #### 1. No unnecessary escapes
13572 #### --------------------------------------
13575 1. No unnecessary escapes
13577 bar <span><nowiki>[[foo]]</nowiki></span>
13579 =bar <span><nowiki>[[foo]]</nowiki></span>
13581 [[bar <span><nowiki>[[foo]]</nowiki></span>
13583 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
13585 <nowiki>=bar </nowiki><span>foo]]</span>=
13587 <p>bar <span>[[foo]]</span>
13588 </p><p>=bar <span>[[foo]]</span>
13589 </p><p>[[bar <span>[[foo]]</span>
13590 </p><p>]]bar <span>[[foo]]</span>
13591 </p><p>=bar <span>foo]]</span>=
13595 #### --------------- PRE ------------------
13596 #### 1. Leading space in SOL context should be escaped
13597 #### --------------------------------------
13599 1. Leading space in SOL context should be escaped
13603 <nowiki> foo</nowiki>
13604 <!--cmt--><nowiki> foo</nowiki>
13611 #### --------------- HTML tags ---------------
13614 #### 3. multi-line html tag
13615 #### --------------------------------------
13621 <a href="http://google.com">google</a>
13623 <a href="http://google.com">google</a>
13629 <nowiki><div>foo</div>
13630 <div style="color:red">foo</div></nowiki>
13632 <p><div>foo</div>
13633 <div style="color:red">foo</div>
13638 3. multi-line html tag
13650 #### --------------- Others ---------------
13654 <nowiki>foo</nowiki>
13656 <p><nowiki>foo</nowiki>
13661 Tag-like HTML structures are passed through as text
13683 </p><p>1<d e>f
13688 # This fails in the PHP parser (see bug 40670,
13689 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
13691 Tag names followed by punctuation should not be recognized as tags
13697 <p><s.ome> text
13702 HTML tag with necessary entities in attributes
13704 <span title="&amp;">foo</span>
13706 <p><span title="&amp;">foo</span>
13711 HTML tag with 'unnecessary' entity encoding in attributes
13713 <span title="&">foo</span>
13715 <p><span title="&">foo</span>
13720 HTML tag with broken attribute value quoting
13722 <span title="Hello world>Foo</span>
13724 <p><span>Foo</span>
13729 Parsoid-only: HTML tag with broken attribute value quoting
13733 <span title="Hello world>Foo</span>
13735 <p><span title="Hello world">Foo</span>
13740 Table with broken attribute value quoting
13743 | title="Hello world|Foo
13754 Table with broken attribute value quoting on consecutive lines
13757 | title="Hello world|Foo
13758 | style="color:red|Bar
13771 Parsoid-only: Table with broken attribute value quoting on consecutive lines
13776 | title="Hello world|Foo
13777 | style="color:red|Bar
13782 <td title="Hello world">Foo
13783 </td><td style="color: red">Bar
13789 Accept empty td cell attribute
13792 | align="center" | foo || |
13797 <td align="center"> foo </td>
13804 Non-empty attributes in th-cells
13807 ! Foo !! style="color: red" | Bar
13813 <th style="color: red"> Bar
13819 Accept empty attributes in th-cells
13834 Empty table rows go away
13859 Try for 100% code coverage