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 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
75 Template:echo_with_span
81 Template:echo_with_div
105 This is a simple paragraph.
107 <p>This is a simple paragraph.
112 Paragraphs with extra newline spacing
150 * plain''italic''plain
151 * plain''italic''plain''italic''plain
152 * plain'''bold'''plain
153 * plain'''bold'''plain'''bold'''plain
154 * plain''italic''plain'''bold'''plain
155 * plain'''bold'''plain''italic''plain
156 * plain''italic'''bold-italic'''italic''plain
157 * plain'''bold''bold-italic''bold'''plain
158 * plain'''''bold-italic'''italic''plain
159 * plain'''''bold-italic''bold'''plain
160 * plain''italic'''bold-italic'''''plain
161 * plain'''bold''bold-italic'''''plain
162 * plain l'''italic''plain
163 * plain l''''bold''' plain
166 </li><li> plain<i>italic</i>plain
167 </li><li> plain<i>italic</i>plain<i>italic</i>plain
168 </li><li> plain<b>bold</b>plain
169 </li><li> plain<b>bold</b>plain<b>bold</b>plain
170 </li><li> plain<i>italic</i>plain<b>bold</b>plain
171 </li><li> plain<b>bold</b>plain<i>italic</i>plain
172 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
173 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
174 </li><li> plain<i><b>bold-italic</b>italic</i>plain
175 </li><li> plain<b><i>bold-italic</i>bold</b>plain
176 </li><li> plain<i>italic<b>bold-italic</b></i>plain
177 </li><li> plain<b>bold<i>bold-italic</i></b>plain
178 </li><li> plain l'<i>italic</i>plain
179 </li><li> plain l'<b>bold</b> plain
185 ### 2-quote opening sequence tests
188 Italics and bold: 2-quote opening sequence: (2,2)
198 Italics and bold: 2-quote opening sequence: (2,3)
208 Italics and bold: 2-quote opening sequence: (2,4)
218 Italics and bold: 2-quote opening sequence: (2,5)
228 ### 3-quote opening sequence tests
232 Italics and bold: 3-quote opening sequence: (3,2)
242 Italics and bold: 3-quote opening sequence: (3,3)
252 Italics and bold: 3-quote opening sequence: (3,4)
262 Italics and bold: 3-quote opening sequence: (3,5)
272 ### 4-quote opening sequence tests
276 Italics and bold: 4-quote opening sequence: (4,2)
286 Italics and bold: 4-quote opening sequence: (4,3)
296 Italics and bold: 4-quote opening sequence: (4,4)
306 Italics and bold: 4-quote opening sequence: (4,5)
316 ### 5-quote opening sequence tests
320 Italics and bold: 5-quote opening sequence: (5,2)
330 Italics and bold: 5-quote opening sequence: (5,3)
340 Italics and bold: 5-quote opening sequence: (5,4)
344 <p><i><b>foo'</b></i>
350 Italics and bold: 5-quote opening sequence: (5,5)
359 ### multiple quote sequences in a line
362 Italics and bold: multiple quote sequences: (2,4,2)
366 <p><i>foo'<b>bar</b></i>
372 Italics and bold: multiple quote sequences: (2,4,3)
376 <p><i>foo'<b>bar</b></i>
382 Italics and bold: multiple quote sequences: (2,4,4)
386 <p><i>foo'<b>bar'</b></i>
392 Italics and bold: multiple quote sequences: (3,4,2)
402 Italics and bold: multiple quote sequences: (3,4,3)
411 ### other quote tests
414 Italics and bold: other quote tests: (2,3,5)
416 ''this is about '''foo's family'''''
418 <p><i>this is about <b>foo's family</b></i>
424 Italics and bold: other quote tests: (2,(3,3),2)
426 ''this is about '''foo's''' family''
428 <p><i>this is about <b>foo's</b> family</i>
434 Italics and bold: other quote tests: (3,2,3,2)
436 '''this is about ''foo'''s family''
438 <p><b>this is about <i>foo</i></b><i>s family</i>
444 Italics and bold: other quote tests: (3,2,3,3)
446 '''this is about ''foo'''s family'''
448 <p>'<i>this is about </i>foo<b>s family</b>
455 Italics and bold: other quote tests: (3,(2,2),3)
457 '''this is about ''foo's'' family'''
459 <p><b>this is about <i>foo's</i> family</b>
464 ### <nowiki> test cases
468 <nowiki> unordered list
470 <nowiki>* This is not an unordered list item.</nowiki>
472 <p>* This is not an unordered list item.
479 <nowiki>Lorem ipsum dolor
500 :There is not nowiki.
501 :There is <nowiki>nowiki</nowiki>.
503 #There is not nowiki.
504 #There is <nowiki>nowiki</nowiki>.
506 *There is not nowiki.
507 *There is <nowiki>nowiki</nowiki>.
509 <dl><dd>There is not nowiki.
510 </dd><dd>There is nowiki.
512 <ol><li>There is not nowiki.
513 </li><li>There is nowiki.
515 <ul><li>There is not nowiki.
516 </li><li>There is nowiki.
528 <!-- comment 1 --> asdf
530 <!-- comment 1 --> asdf
533 <!-- comment 1 --> asdf
534 <!-- comment 2 -->xyz
536 <!-- comment 1 --> asdf
537 <!-- comment 2 --> xyz
593 asdf<!-- comment 1 -->jkl
603 <!-- foo --> b <!-- bar -->
617 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
623 Comment semantics and delimiters
625 <!-- --><!----><!-----><!------>
631 Comment semantics and delimiters, redux
633 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
634 -- foo -- funky huh? ... -->
640 Comment semantics and delimiters: directors cut
642 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
643 everything starting with < followed by !-- until the first -- and > we see,
644 that wouldn't be valid XML however, since in XML -- has to terminate a comment
652 Comment semantics: nesting
654 <!--<!-- no, we're not going to do anything fancy here -->-->
661 Comment semantics: unclosed comment at end
663 <!--This comment will run out to the end of the document
669 Comment in template title
678 Comment on its own line post-expand
690 Comment on its own line post-expand with non-significant whitespace
702 ### paragraph wraping tests
716 Block tag on one line
728 Block tag on both lines
740 Multiple lines without block tags
758 ### Preformatted text
767 And a [[Main Page|link]]
773 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
778 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
795 Regression with preformatted in <center>
808 # Expected output in the following test is not really expected (there should be
809 # <pre> in the output) -- it's only testing for well-formedness.
811 Bug 6200: Preformatted in <blockquote>
824 <pre> with attributes (bug 3202)
826 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
828 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
833 <pre> with width attribute (bug 3202)
835 <pre width="8">Narrow screen goodies</pre>
837 <pre width="8">Narrow screen goodies</pre>
842 <pre> with forbidden attribute (bug 3202)
844 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
846 <pre width="8">Narrow screen goodies</pre>
851 <pre> with forbidden attribute values (bug 3202)
853 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
855 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
860 <nowiki> inside <pre> (bug 13238)
868 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
876 <pre><nowiki>Foo</nowiki></pre>
881 <nowiki> and <pre> preference (first one wins)
912 Templates: Pre: 1a. Templates that break a line should suppress <pre>
920 Templates: Pre: 1b. Templates that break a line should suppress <pre>
930 Templates: Pre: 1c: Wrapping should be based on expanded content
942 Templates: Pre: 1d: Wrapping should be based on expanded content
963 Templates: Pre: 1e. Wrapping should be based on expanded content
970 {{echo|<!--cmt--> foo}}
972 <!--cmt-->{{echo| foo}}
974 {{echo|{{echo| }}bar}}
990 ### Parsoid-centric tests for testing RT edge cases for pre
1007 1b. Pre and Comments
1020 1c. Pre and Comments
1070 3. Pre and block tags
1078 <pre><span> foo </span>
1083 4. Multiple spaces at start-of-line
1102 ### Definition lists
1109 <dl><dt> name </dt><dd> Definition
1115 Definition list for indentation only
1119 <dl><dd> Indented text
1125 Definition list with no space
1129 <dl><dt>name</dt><dd>Definition
1135 Definition list with URL link
1137 ; http://example.com/ : definition
1139 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1145 Definition list with bracketed URL link
1147 ;[http://www.example.com/ Example]:Something about it
1149 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1155 Definition list with wikilink containing colon
1157 ; [[Help:FAQ]]: The least-read page on Wikipedia
1159 <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
1164 # At Brion's and JeLuF's insistence... :)
1166 Definition list with news link containing colon
1168 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1170 <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!
1176 Malformed definition list with colon
1178 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1180 <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
1186 Definition lists: colon in external link text
1188 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1190 <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
1196 Definition lists: colon in HTML attribute
1198 ;<b style="display: inline">bold</b>
1200 <dl><dt><b style="display: inline">bold</b>
1206 Definition lists: self-closed tag
1208 ;one<br/>two : two-line fun
1210 <dl><dt>one<br />two </dt><dd> two-line fun
1216 Bug 11748: Literal closing tags
1220 <dd>test test test test test</dd>
1222 <dd>test test test test test</dd>
1227 <dd>test test test test test</dd>
1229 <dd>test test test test test</dd>
1235 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1238 ; term : description
1244 <dl><dt> term </dt><dd> description
1255 Definition list with empty definition and following paragraph
1260 <dl><dt> term</dt><dd>
1267 Nested definition lists using html syntax
1284 Definition Lists: No nesting: Multiple dd's
1298 Definition Lists: Indentation: Regular
1314 Definition Lists: Indentation: Missing 1st level
1328 Definition Lists: Indentation: Multi-level indent
1332 <dl><dd><dl><dd><dl><dd>i3
1340 Definition Lists: Hacky use to indent tables
1347 should be left alone
1349 <dl><dd><dl><dd><table>
1354 </td></tr></table></dd></dl></dd></dl>
1356 should be left alone
1359 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1360 ## as an empty dt item. It also ignores all but the last ";" when followed
1361 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1362 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1365 ## Ex: ";;t2 ::d2" is transformed into:
1377 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1378 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1389 ## All Parsoid only definition list tests have this difference.
1391 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1392 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1395 Definition Lists: Nesting: Multi-level (Parsoid only)
1425 Definition Lists: Nesting: Test 2 (Parsoid only)
1445 Definition Lists: Nesting: Test 3 (Parsoid only)
1473 Definition Lists: Nesting: Test 4
1478 <dl><dd><dl><dd><dl><dt>t3
1488 Definition Lists: Mixed Lists: Test 1
1494 <dl><dd><dl><dt><ul><li> foo
1506 Definition Lists: Mixed Lists: Test 2
1520 Definition Lists: Mixed Lists: Test 3
1525 <ul><li><dl><dd><dl><dd><dl><dd> d1
1536 Definition Lists: Mixed Lists: Test 4
1541 <ul><li><dl><dt>d1 </dt><dd>d2
1542 </dd><dt>d3 </dt><dd>d4
1550 Definition Lists: Mixed Lists: Test 5
1565 Definition Lists: Mixed Lists: Test 6
1570 <ol><li><ul><li><dl><dd>d1
1582 Definition Lists: Mixed Lists: Test 7
1596 Definition Lists: Mixed Lists: Test 8
1612 Definition Lists: Mixed Lists: Test 9
1616 <ul><li><dl><dt>foo </dt><dd>bar
1624 Definition Lists: Mixed Lists: Test 10
1628 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1637 Definition Lists: Mixed Lists: Test 11
1642 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1647 <dl><dt>boo </dt><dd>baz
1658 Definition Lists: Weird Ones: Test 1
1660 *#;*::;; foo : bar (who uses this?)
1662 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1678 External links: non-bracketed
1680 Non-bracketed: http://example.com
1682 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1687 External links: numbered
1689 Numbered: [http://example.com]
1690 Numbered: [http://example.net]
1691 Numbered: [http://example.com]
1693 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1694 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1695 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1700 External links: specified text
1702 Specified text: [http://example.com link]
1704 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1709 External links: trail
1711 Linktrails should not work for external links: [http://example.com link]s
1713 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1718 External links: dollar sign in URL
1720 http://example.com/1$2345
1722 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1727 External links: dollar sign in URL (named)
1729 [http://example.com/1$2345]
1731 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1736 External links: open square bracket forbidden in URL (bug 4377)
1738 http://example.com/1[2345
1740 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1745 External links: open square bracket forbidden in URL (named) (bug 4377)
1747 [http://example.com/1[2345]
1749 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1754 External links: nowiki in URL link text (bug 6230)
1756 [http://example.com/ <nowiki>''example site''</nowiki>]
1758 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1763 External links: newline forbidden in text (bug 6230 regression check)
1765 [http://example.com/ first
1768 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1774 External links: Pipe char between url and text
1776 [http://example.com | link]
1778 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1783 External links: protocol-relative URL in brackets
1785 [//example.com/ Test]
1787 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1792 External links: protocol-relative URL in brackets without text
1796 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1801 External links: protocol-relative URL in free text is left alone
1805 <p>//example.com/Foo
1810 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1812 foo//example.com/Foo
1814 <p>foo//example.com/Foo
1821 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1823 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1828 External image from https
1830 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1832 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1837 Link to non-http image, no img tag
1839 Link to non-http image, no img tag: ftp://example.com/test.jpg
1841 <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>
1846 External links: terminating separator
1848 Terminating separator: http://example.com/thing,
1850 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1855 External links: intervening separator
1857 Intervening separator: http://example.com/1,2,3
1859 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1864 External links: old bug with URL in query
1866 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1868 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1873 External links: old URL-in-URL bug, mixed protocols
1875 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1877 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1882 External links: URL in text
1884 URL in text: [http://example.com http://example.com]
1886 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1891 External links: Clickable images
1893 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1895 <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>
1900 External links: raw ampersand
1902 Old & use: http://x&y
1904 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1909 External links: encoded ampersand
1911 Old & use: http://x&y
1913 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1918 External links: encoded equals (bug 6102)
1920 http://example.com/?foo=bar
1922 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1927 External links: [raw ampersand]
1929 Old & use: [http://x&y]
1931 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1936 External links: [encoded ampersand]
1938 Old & use: [http://x&y]
1940 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1945 External links: [encoded equals] (bug 6102)
1947 [http://example.com/?foo=bar]
1949 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1954 External links: [IDN ignored character reference in hostname; strip it right off]
1956 [http://e‌xample.com/]
1958 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1962 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
1963 # Where an external link could easily circumvent the sanitization of the text of
1964 # a link like this (where an IDN-ignore character is in the URL somewhere), this
1965 # test demands a higher standard. That's a bit strange.
1969 # http://example.com -> [http://example.com|http://example.com]
1970 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
1972 # The first example is sanitized, but the second is not. Any security benefits
1973 # from this production are trivial to circumvent. Either remove this test and
1974 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
1975 # the test accordingly.
1980 External links: IDN ignored character reference in hostname; strip it right off
1982 http://e‌xample.com/
1984 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1989 External links: www.jpeg.org (bug 554)
1993 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1998 External links: URL within URL (original bug 2)
2000 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2002 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2007 BUG 361: URL inside bracketed URL
2009 [http://www.example.com/foo http://www.example.com/bar]
2011 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2016 BUG 361: URL within URL, not bracketed
2018 http://www.example.com/foo?=http://www.example.com/bar
2020 <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>
2025 BUG 289: ">"-token in URL-tail
2027 http://www.example.com/<hello>
2029 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2034 BUG 289: literal ">"-token in URL-tail
2036 http://www.example.com/<b>html</b>
2038 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2043 BUG 289: ">"-token in bracketed URL
2045 [http://www.example.com/<hello> stuff]
2047 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2052 BUG 289: literal ">"-token in bracketed URL
2054 [http://www.example.com/<b>html</b> stuff]
2056 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2061 BUG 289: literal double quote at end of URL
2063 http://www.example.com/"hello"
2065 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2070 BUG 289: literal double quote in bracketed URL
2072 [http://www.example.com/"hello" stuff]
2074 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2079 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2081 [http://www.example.com test]
2083 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2088 External links: wiki links within external link (Bug 3695)
2090 [http://example.com [[wikilink]] embedded in ext link]
2092 <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>
2097 BUG 787: Links with one slash after the url protocol are invalid
2101 [http:/example.com title]
2103 <p>http:/example.com
2104 </p><p>[http:/example.com title]
2109 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2111 ''[http://example.com text'']
2112 [http://example.com '''text]'''
2113 ''Something [http://example.com in italic'']
2114 ''Something [http://example.com mixed''''', even bold]'''
2115 '''''Now [http://example.com both''''']
2117 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2118 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2119 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2120 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2121 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2127 Bug 4781: %26 in URL
2129 http://www.example.com/?title=AT%26T
2131 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2135 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2136 # % is actually legal in HTML5. Any change in output would need testing though.
2138 Bug 4781, 5267: %25 in URL
2140 http://www.example.com/?title=100%25_Bran
2142 <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>
2147 Bug 4781, 5267: %28, %29 in URL
2149 http://www.example.com/?title=Ben-Hur_%281959_film%29
2151 <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>
2157 Bug 4781: %26 in autonumber URL
2159 [http://www.example.com/?title=AT%26T]
2161 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2166 Bug 4781, 5267: %26 in autonumber URL
2168 [http://www.example.com/?title=100%25_Bran]
2170 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2175 Bug 4781, 5267: %28, %29 in autonumber URL
2177 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2179 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2185 Bug 4781: %26 in bracketed URL
2187 [http://www.example.com/?title=AT%26T link]
2189 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2194 Bug 4781, 5267: %26 in bracketed URL
2196 [http://www.example.com/?title=100%25_Bran link]
2198 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2203 Bug 4781, 5267: %28, %29 in bracketed URL
2205 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2207 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2212 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2214 Some [http://example.com/ pretty ''italics'' and stuff]!
2216 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2221 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2223 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2225 <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>
2230 External link containing double-single-quotes with no space separating the url from text in italics
2232 [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]].]
2234 <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>
2239 URL-encoding in URL functions (single parameter)
2241 {{localurl:Some page|amp=&}}
2243 <p>/index.php?title=Some_page&amp=&
2248 URL-encoding in URL functions (multiple parameters)
2250 {{localurl:Some page|q=?&=&}}
2252 <p>/index.php?title=Some_page&q=?&amp=&
2259 http://example.com/index.php?foozoid%5B%5D=bar
2261 http://example.com/index.php?foozoid[]=bar
2263 <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>
2264 </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>
2269 IPv6 urls (bug 21261)
2273 http://[2404:130:0:1000::187:2]/index.php
2275 <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>
2286 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2288 Normal text. '''''Bold italic text.''''' Normal text.
2290 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2291 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2297 Unclosed and unmatched quotes
2299 '''''Bold italic text '''with bold deactivated''' in between.'''''
2301 '''''Bold italic text ''with italic deactivated'' in between.'''''
2305 ..spanning two paragraphs (should not work).'''
2307 '''Bold tag left open
2309 ''Italic tag left open
2313 <!-- Unmatching number of opening, closing tags: -->
2314 '''This year''''s election ''should'' beat '''last year''''s.
2316 ''Tom'''s car is bigger than ''Susan'''s.
2318 Plain ''italic'''s plain
2320 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2321 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2322 </p><p><b>Bold text..</b>
2323 </p><p>..spanning two paragraphs (should not work).
2324 </p><p><b>Bold tag left open</b>
2325 </p><p><i>Italic tag left open</i>
2327 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2328 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2329 </p><p>Plain <i>italic'</i>s plain
2336 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2339 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2340 # is the bare minimun required by the spec, see:
2341 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2343 A table with no data.
2349 # A table with nothing but a caption is invalid XHTML, we might want to render
2350 # this as <p>caption</p>
2352 A table with nothing but a caption
2360 </caption><tr><td></td></tr></table>
2386 Simple table but with multiple dashes for row wikitext
2404 Multiplication table
2406 {| border="1" cellpadding="2"
2407 |+Multiplication table
2409 ! × !! 1 !! 2 !! 3
2427 <table border="1" cellpadding="2">
2428 <caption>Multiplication table
2475 Allow +/- in 2nd and later cells in a row
2502 |rowspan=2| Cell 2, row 1 (and 2)
2513 <td rowspan="2"> Cell 2, row 1 (and 2)
2531 {| bgcolor=#ABCDEF border=2
2536 |the original table again
2544 <table bgcolor="#ABCDEF" border="2">
2552 <td>the original table again
2558 Invalid attributes in table cell (bug 1830)
2573 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2576 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2580 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2581 <td>]" onmouseover="alert(document.cookie)">test
2590 Indented table markup mixed with indented pre content (proposed in bug 6200)
2595 Text that should be rendered preformatted
2603 <pre>Text that should be rendered preformatted
2616 Plain link, capitalized
2620 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2625 Plain link, uncapitalized
2629 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2636 [[Main Page|The Main Page]]
2638 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2647 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2652 Broken link with fragment
2654 [[Zigzagzogzagzig#zug]]
2656 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2661 Special page link with fragment
2663 [[Special:Version#anchor]]
2665 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2670 Nonexistent special page link with fragment
2672 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2674 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2681 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2683 <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>
2690 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2692 <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>!!!
2697 Link with 3 brackets
2706 Piped link with 3 brackets
2708 [[[main page|the main page]]]
2710 <p>[[[main page|the main page]]]
2715 Link with multiple pipes
2717 [[Main Page|The|Main|Page]]
2719 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2726 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2728 <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>
2733 Piped link to namespace
2735 [[Meta:Disclaimers|The disclaimers]]
2737 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2744 [[Usually caused by a typo (oops}]]
2746 <p>[[Usually caused by a typo (oops}]]
2751 Link containing % (not as a hex sequence)
2755 <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>
2760 Link containing % as a single hex sequence interpreted to char
2764 <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>
2769 Link containing % as a double hex sequence interpreted to hex sequence
2773 <p>[[7%2525 Solution]]
2778 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2779 Example for such a section: == < ==
2781 [[%23%3c]][[%23%3e]]
2783 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2788 Link containing "<#" and ">#" as a hex sequences
2790 [[%3c%23]][[%3e%23]]
2792 <p>[[%3c%23]][[%3e%23]]
2797 Link containing double-single-quotes '' (bug 4598)
2799 [[Lista d''e paise d''o munno]]
2801 <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>
2806 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2808 Some [[Link|pretty ''italics'' and stuff]]!
2810 <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>!
2815 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2817 ''Some [[Link|pretty ''italics'' and stuff]]!
2819 <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>
2824 Link with double quotes in title part (literal) and alternate part (interpreted)
2826 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2830 [[''Pentecoste''|Pentecoste]]
2832 [[''Pentecoste''|''Pentecoste'']]
2834 <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>
2835 </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>
2836 </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>
2837 </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>
2842 Broken image links with HTML captions (bug 39700)
2844 [[File:Nonexistent|<script></script>]]
2845 [[File:Nonexistent|100px|<script></script>]]
2846 [[File:Nonexistent|<]]
2847 [[File:Nonexistent|a<i>b</i>c]]
2849 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2850 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2851 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2852 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2859 [[http://www.example.com]]
2861 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2866 Plain link to URL with link text
2868 [[http://www.example.com Link text]]
2870 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2875 Plain link to protocol-relative URL
2877 [[//www.example.com]]
2879 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2884 Plain link to protocol-relative URL with link text
2886 [[//www.example.com Link text]]
2888 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2893 # I'm fairly sure the expected result here is wrong.
2894 # We want these to be URL links, not pseudo-pages with URLs for titles....
2895 # However the current output is also pretty screwy.
2898 # I'm changing it to match the current output--it arguably makes more
2899 # sense in the light of the test above. Old expected result was:
2900 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2902 # But I think this test is bordering on "garbage in, garbage out" anyway.
2907 Piped link to URL: [[http://www.example.com|an example URL]]
2909 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2914 BUG 2: [[page|http://url/]] should link to page, not http://url/
2916 [[Main Page|http://url/]]
2918 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2923 BUG 337: Escaped self-links should be bold
2927 [[Bug462]] [[Bug462]]
2929 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2934 Self-link to section should not be bold
2938 [[Main Page#section]]
2940 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2951 Self-link to numeric title
2957 <p><strong class="selflink">0</strong>
2962 Link to numeric-equivalent title
2968 <p><a href="/wiki/00" title="00">00</a>
2973 <nowiki> inside a link
2975 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2977 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2982 Non-breaking spaces in title
2984 [[ Main Page ]]
2986 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2991 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2997 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3002 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3008 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3013 Internal link with en linktrail: no apostrophes (bug 27473)
3019 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3024 Internal link with ca linktrail with apostrophes (bug 27473)
3030 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3035 Internal link with kaa linktrail with apostrophes (bug 27473)
3041 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3046 ### Interwiki links (see maintenance/interwiki.sql)
3050 Inline interwiki link
3052 [[MeatBall:SoftSecurity]]
3054 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3059 Inline interwiki link with empty title (bug 2372)
3063 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3068 Interwiki link encoding conversion (bug 1636)
3070 *[[Wikipedia:ro:Olteniţa]]
3071 *[[Wikipedia:ro:Olteniţa]]
3073 <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>
3074 </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>
3080 Interwiki link with fragment (bug 2130)
3082 [[MeatBall:SoftSecurity#foo]]
3084 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3099 Double interlanguage link
3110 Interlanguage link, with prefix links
3122 Double interlanguage link, with prefix links (bug 8897)
3135 Parsoid-specific test: Wikilinks with should RT properly
3141 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3159 Incorrecly removing closing slashes from correctly formed XHTML
3161 <br style="clear:both;" />
3163 <p><br style="clear:both;" />
3168 Failing to transform badly formed HTML into correct XHTML
3170 <br style="clear: left;">
3171 <br style="clear: right;">
3172 <br style="clear: both;">
3174 <p><br style="clear: left;" />
3175 <br style="clear: right;" />
3176 <br style="clear: both;" />
3181 Handling html with a div self-closing tag
3190 <p><div title />
3194 <p><div title=bar />
3195 <div title=bar/>
3197 <div title="bar/"></div>
3203 Handling html with a br self-closing tag
3212 <p><br title="title" />
3213 <br title="title" />
3222 Horizontal ruler (should it add that extra space?)
3236 Horizontal ruler -- 4+ dashes render hr
3245 Horizontal ruler -- eats additional dashes on the same line
3254 Horizontal ruler -- does not collaps dashes on consecutive lines
3265 Horizontal ruler -- <4 dashes render as plain text
3274 ### Block-level elements
3297 <ol><li>Numbered list
3314 ***#Number on level 4
3316 **#Number on level 3
3317 **#Number on level 3
3321 #** Level 3, but ordered
3324 <ol><li> with numbers
3326 <ul><li> and bullets
3328 <ol><li> and numbers
3330 </li><li>bullets again
3331 <ul><li>bullet level 2
3332 <ul><li>bullet level 3
3333 <ol><li>Number on level 4
3336 </li><li>bullet level 2
3337 <ol><li>Number on level 3
3338 </li><li>Number on level 3
3341 <ol><li>number level 2
3344 <ul><li><ul><li> Level 3
3348 <ol><li><ul><li><ul><li> Level 3, but ordered
3382 Nested lists 3 (first element empty)
3395 Nested lists 4 (first element empty)
3408 Nested lists 5 (both elements empty)
3421 Nested lists 6 (both elements empty)
3434 Nested lists 7 (skip initial nesting levels)
3438 <ul><li><ul><li><ul><li> foo
3446 Nested lists 8 (multiple nesting transitions)
3454 <ul><li><ul><li> bar
3464 1. Lists with start-of-line-transparent tokens before bullets: Comments
3478 2. Lists with start-of-line-transparent tokens before bullets: Template close
3490 List items are not parsed correctly following a <pre> block (bug 785)
3496 <ul><li> <pre>foo</pre>
3497 </li><li> <pre>bar</pre>
3504 List items from template
3515 * notSOL{{inner list}}
3534 List interrupted by empty line or heading
3544 <ul><li><ul><li> bar
3547 <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>
3548 <ul><li> Another list item
3559 Magic Word: {{CURRENTDAY}}
3568 Magic Word: {{CURRENTDAY2}}
3577 Magic Word: {{CURRENTDAYNAME}}
3586 Magic Word: {{CURRENTDOW}}
3595 Magic Word: {{CURRENTMONTH}}
3604 Magic Word: {{CURRENTMONTHABBREV}}
3606 {{CURRENTMONTHABBREV}}
3613 Magic Word: {{CURRENTMONTHNAME}}
3615 {{CURRENTMONTHNAME}}
3622 Magic Word: {{CURRENTMONTHNAMEGEN}}
3624 {{CURRENTMONTHNAMEGEN}}
3631 Magic Word: {{CURRENTTIME}}
3640 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3649 Magic Word: {{CURRENTYEAR}}
3658 Magic Word: {{FULLPAGENAME}}
3660 title=[[User:Ævar Arnfjörð Bjarmason]]
3664 <p>User:Ævar Arnfjörð Bjarmason
3669 Magic Word: {{FULLPAGENAMEE}}
3671 title=[[User:Ævar Arnfjörð Bjarmason]]
3675 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3680 Magic Word: {{NAMESPACE}}
3682 title=[[User:Ævar Arnfjörð Bjarmason]]
3691 Magic Word: {{NAMESPACEE}}
3693 title=[[User:Ævar Arnfjörð Bjarmason]]
3702 Magic Word: {{NAMESPACENUMBER}}
3704 title=[[User:Ævar Arnfjörð Bjarmason]]
3713 Magic Word: {{NUMBEROFFILES}}
3722 Magic Word: {{PAGENAME}}
3724 title=[[User:Ævar Arnfjörð Bjarmason]]
3728 <p>Ævar Arnfjörð Bjarmason
3733 Magic Word: {{PAGENAME}} with metacharacters
3735 title=[['foo & bar = baz']]
3739 <p><i>'foo & bar = baz'</i>
3744 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3746 title=[[*RFC 1234 http://example.com/]]
3750 <p>*RFC 1234 http://example.com/
3755 Magic Word: {{PAGENAMEE}}
3757 title=[[User:Ævar Arnfjörð Bjarmason]]
3761 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3766 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3768 title=[[*RFC 1234 http://example.com/]]
3772 <p>*RFC_1234_http://example.com/
3777 Magic Word: {{REVISIONID}}
3786 Magic Word: {{SCRIPTPATH}}
3795 Magic Word: {{SERVER}}
3799 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3804 Magic Word: {{SERVERNAME}}
3813 Magic Word: {{SITENAME}}
3822 Namespace 1 {{ns:1}}
3831 Namespace 1 {{ns:01}}
3840 Namespace 0 {{ns:0}} (bug 4783)
3848 Namespace 0 {{ns:00}} (bug 4783)
3856 Namespace -1 {{ns:-1}}
3865 Namespace User {{ns:User}}
3874 Namespace User talk {{ns:User_talk}}
3883 Namespace User talk {{ns:uSeR tAlK}}
3892 Namespace File {{ns:File}}
3901 Namespace File {{ns:Image}}
3910 Namespace (lang=de) Benutzer {{ns:User}}
3921 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3927 <p>Benutzer Diskussion
3935 {{urlencode:hi world?!}}
3936 {{urlencode:hi world?!|WIKI}}
3937 {{urlencode:hi world?!|PATH}}
3938 {{urlencode:hi world?!|QUERY}}
3951 Magic links: internal link to RFC (bug 479)
3955 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3960 Magic links: RFC (bug 479)
3964 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3969 Magic links: ISBN (bug 1937)
3973 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3978 Magic links: PMID incorrectly converts space to underscore
3982 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3991 Nonexistent template
3993 {{thistemplatedoesnotexist}}
3995 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4002 This is a test template
4010 <p>This is a test template
4015 Template with explicit namespace
4019 <p>This is a test template
4027 This is a test template with parameter {{{param}}}
4033 {{paramtest|param=foo}}
4035 <p>This is a test template with parameter foo
4040 Template:paramtestnum
4046 Template unnamed parameter
4048 {{paramtestnum|Main Page|the main page}}
4050 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4055 Template:templatesimple
4061 Template:templateredirect
4063 #redirect [[Template:templatesimple]]
4067 Template:templateasargtestnum
4073 Template:templateasargtest
4075 {{template{{{templ}}}}}
4079 Template:templateasargtest2
4085 Template with template name as unnamed argument
4087 {{templateasargtestnum|templatesimple}}
4094 Template with template name as argument
4096 {{templateasargtest|templ=simple}}
4103 Template with template name as argument (2)
4105 {{templateasargtest2|templ=templatesimple}}
4112 Template:templateasargtestdefault
4114 {{{{{templ|templatesimple}}}}}
4124 Template with default value
4126 {{templateasargtestdefault}}
4133 Template with default value (value set)
4135 {{templateasargtestdefault|templ=templa}}
4144 {{templateredirect}}
4151 Template with argument in separate line
4153 {{ templateasargtest |
4161 Template with complex template as argument
4164 param ={{ templateasargtest |
4167 <p>This is a test template with parameter (test)
4172 Template with thumb image (with link in description)
4175 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4177 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>
4182 Template:complextemplate
4184 {{{1}}} {{paramtest|
4185 param ={{{param}}}}}
4189 Template with complex arguments
4192 param ={{ templateasargtest |
4193 templ = simple }}|[[Template:complextemplate|link]]}}
4195 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4200 BUG 553: link with two variables in a piped link
4203 |[[{{{1}}}|{{{2}}}]]
4208 <td>[[{{{1}}}|{{{2}}}]]
4214 Magic variable as template parameter
4216 {{paramtest|param={{SITENAME}}}}
4218 <p>This is a test template with parameter MediaWiki
4225 [[{{{param}}}|link]]
4229 Template parameter as link source
4231 {{linktest|param=Main Page}}
4233 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4238 Template-generated attribute string (k='v')
4240 <span {{attr_str|id|v1}}>bar</span>
4242 <p><span id="v1">bar</span>
4249 including another template, {{paramtest|param={{{arg}}}}}
4253 Template passing argument to another template
4255 {{paramtest2|arg='hmm'}}
4257 <p>including another template, This is a test template with parameter 'hmm'
4268 Template as link source
4272 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4290 Template infinite loop
4294 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4299 Template from main namespace
4318 BUG 529: Template with table, not included at beginning of line
4337 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4357 BUG 41: Template parameters shown as broken links
4369 ''None'' of '''this''' should be
4371 but rather passed unmodified
4375 # hmm, fix this or just deprecate msgnw and document its behavior?
4381 {{msgnw:MSGNW test}}
4383 <p>''None'' of '''this''' should be
4385 but rather passed unmodified
4393 {{int:youhavenewmessages|lots of money|not!}}
4395 <p>You have lots of money (not!).
4402 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4406 <includeonly> and <noinclude> being included
4417 <onlyinclude>Foo</onlyinclude>bar
4421 <onlyinclude> being included
4433 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4437 <onlyinclude> and <includeonly> being included
4446 <includeonly> and <noinclude> on a page
4448 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4455 <onlyinclude> on a page
4457 <onlyinclude>Foo</onlyinclude>bar
4464 Template:Includeonly section
4467 ==Includeonly section==
4473 Bug 6563: Edit link generation for section shown by <includeonly>
4475 {{includeonly section}}
4477 <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>
4478 <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>
4482 # Uses same input as the contents of [[Template:Includeonly section]]
4484 Bug 6563: Section extraction for section shown by <includeonly>
4489 ==Includeonly section==
4497 Bug 6563: Edit link generation for section suppressed by <includeonly>
4500 ==Includeonly section==
4504 <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>
4509 Bug 6563: Section extraction for section suppressed by <includeonly>
4514 ==Includeonly section==
4522 ### <includeonly> and <noinclude> in attributes
4525 0. includeonly around the entire attribute
4527 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4529 <p><span id="v2">bar</span>
4534 1. includeonly in html attr key
4536 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4538 <p><span id="foo">bar</span>
4543 2. includeonly in html attr value
4545 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4546 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4548 <p><span id="v1">bar</span>
4549 <span id="v1">bar</span>
4554 3. includeonly in part of an attr value
4556 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4558 <p><span style="color:red;">bar</span>
4563 ### Testing parsing of templates where a template arg
4564 ### has the same name as the template itself.
4574 Templates: Template Name/Arg clash: 1. Use of positional param
4583 Templates: Template Name/Arg clash: 2. Use of named param
4592 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4601 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4605 Templates: 1. Simple use
4614 Templates: 2. Inside a block tag
4616 <div>{{echo|Foo}}</div>
4623 Templates: P-wrapping: 1a. Templates on consecutive lines
4634 Templates: P-wrapping: 1b. Templates on consecutive lines
4648 Templates: P-wrapping: 1c. Templates on consecutive lines
4651 {{echo|bar}} <div>baz</div>
4660 Templates: Inline Text: 1. Multiple tmeplate uses
4662 {{echo|Foo}}bar{{echo|baz}}
4669 Templates: Inline Text: 2. Back-to-back template uses
4671 {{echo|Foo}}{{echo|bar}}
4678 Templates: Block Tags: 1. Multiple template uses
4680 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4682 <div>Foo</div><div>bar</div><div>baz</div>
4687 Templates: Block Tags: 2. Back-to-back template uses
4689 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4691 <div>Foo</div><div>bar</div>
4696 Templates: Links: 1. Simple example
4698 {{echo|[[Foo|bar]]}}
4700 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4705 Templates: Links: 2. Generation of link href
4707 [[{{echo|Foo}}|bar]]
4709 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4714 Templates: Links: 3. Generation of part of a link href
4716 [[Fo{{echo|o}}|bar]]
4718 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4723 Templates: Links: 4. Multiple templates generating link href
4725 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4727 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4732 Templates: Links: 5. Generation of link text
4734 [[Foo|{{echo|bar}}]]
4736 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4741 Templates: Links: 5. Nested templates (only outermost template should be marked)
4743 {{echo|[[{{echo|Foo}}|bar]]}}
4745 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4750 Templates: HTML Tag: 1. Generation of HTML attr. key
4752 <div {{echo|style}}="color:red;">foo</div>
4754 <div style="color:red;">foo</div>
4759 Templates: HTML Tag: 2. Generation of HTML attr. value
4761 <div style={{echo|'color:red;'}}>foo</div>
4763 <div style="color:red;">foo</div>
4768 Templates: HTML Tag: 3. Generation of HTML attr key and value
4770 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4772 <div style="color:red;">foo</div>
4777 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4779 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4781 <div title="This is a long title with just one piece templated">foo</div>
4786 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4788 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4790 <div title="This is a long title with just one piece templated">foo</div>
4795 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4797 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4799 <div title="This is a long title with just one piece templated">foo</div>
4804 Templates: Tables: 1. Generating start of a HTML table
4806 {{echo|<table><tr><td>foo</td>}}</tr></table>
4808 <table><tr><td>foo</td></tr></table>
4813 Templates: Tables: 2a. Generating middle of a HTML table
4815 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4817 <table><tr><td>foo</td></tr></table>
4822 Templates: Tables: 2b. Generating middle of a HTML table
4824 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4826 <table><tr><td>foo</td></tr></table>
4831 Templates: Tables: 3. Generating end of a HTML table
4833 <table><tr>{{echo|<td>foo</td></tr></table>}}
4835 <table><tr><td>foo</td></tr></table>
4840 Templates: Tables: 4a. Generating a single tag of a HTML table
4842 {{echo|<table>}}<tr><td>foo</td></tr></table>
4844 <table><tr><td>foo</td></tr></table>
4849 Templates: Tables: 4b. Generating a single tag of a HTML table
4851 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4853 <table><tr><td>foo</td></tr></table>
4858 Templates: Tables: 4c. Generating a single tag of a HTML table
4860 <table><tr>{{echo|<td>}}foo</td></tr></table>
4862 <table><tr><td>foo</td></tr></table>
4867 Templates: Tables: 4d. Generating a single tag of a HTML table
4869 <table><tr><td>foo{{echo|</td>}}</tr></table>
4871 <table><tr><td>foo</td></tr></table>
4876 Templates: Tables: 4e. Generating a single tag of a HTML table
4878 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4880 <table><tr><td>foo</td></tr></table>
4885 Templates: Tables: 4f. Generating a single tag of a HTML table
4887 <table><tr><td>foo</td></tr>{{echo|</table>}}
4889 <table><tr><td>foo</td></tr></table>
4894 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
4896 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
4898 <p><i>ab</i>c<i>d</i>e
4903 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
4904 (PHP parser generates misnested html)
4908 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
4910 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
4914 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
4915 (PHP parser generates misnested html)
4919 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
4922 <div><i>b</i>c<i>d</i></div>
4927 Templates: Ugly nesting: 4. Divs opened/closed across templates
4929 a<div>b{{echo|c</div>d}}e
4936 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
4942 |{{echo|foo</table>}}
4946 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
4947 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
4948 bar</span><span about="#mwt1">
4953 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
4963 <td>1. {{echo|foo </table>}}</td>
4965 <td>2. {{echo|baz </table>}}</td>
4978 <table data-parsoid="{"src":"<table>\n <tr>\n <td>\n <table>\n <tr>\n <td>1. {{echo|foo </table>}}</td>\n <td> bar </td>\n <td>2. {{echo|baz </table>}}</td>\n </tr>\n <tr>\n <td>abc</td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>xyz</td>\n </tr>\n</table>"}" about="#mwt1" typeof="mw:Object/Template">
4979 <tbody><tr data-parsoid="{"stx":"html"}">
4980 <td data-parsoid="{"stx":"html"}">
4981 <table data-parsoid="{"stx":"html"}">
4982 <tbody><tr data-parsoid="{"stx":"html"}">
4983 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
4984 <td data-parsoid="{"stx":"html"}"> bar </td>
4985 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
4986 </span><span about="#mwt1">
4988 abc</span><span about="#mwt1">
4989 </span><span about="#mwt1">
4990 </span><span about="#mwt1">
4991 </span><span about="#mwt1">
4992 </span><span about="#mwt1">
4994 xyz</span><span about="#mwt1">
4995 </span><span about="#mwt1">
5000 Parser Functions: 1. Simple example
5009 Parser Functions: 2. Nested use (only outermost should be marked up)
5018 ### Pre-save transform tests
5021 pre-save transform: subst:
5027 This is a test template
5031 pre-save transform: normal template
5041 pre-save transform: nonexistent template
5045 {{thistemplatedoesnotexist}}
5047 {{thistemplatedoesnotexist}}
5052 pre-save transform: subst magic variables
5061 # This is bug 89, which I fixed. -- wtm
5063 pre-save transform: subst: templates with parameters
5067 {{subst:paramtest|param="something else"}}
5069 This is a test template with parameter "something else"
5075 <nowiki>'''not wiki'''</nowiki>
5079 pre-save transform: nowiki in subst (bug 1188)
5083 {{subst:nowikitest}}
5085 <nowiki>'''not wiki'''</nowiki>
5090 Template:commenttest
5092 This template has <!-- a comment --> in it.
5096 pre-save transform: comment in subst (bug 1936)
5100 {{subst:commenttest}}
5102 This template has <!-- a comment --> in it.
5106 pre-save transform: unclosed tag
5110 <nowiki>'''not wiki'''
5112 <nowiki>'''not wiki'''
5116 pre-save transform: mixed tag case
5120 <NOwiki>'''not wiki'''</noWIKI>
5122 <NOwiki>'''not wiki'''</noWIKI>
5126 pre-save transform: unclosed comment in <nowiki>
5130 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5132 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5138 <span onmouseover="alert('crap')">Oh no</span>
5142 (confirming safety of fix for subst bug 1936)
5144 {{Template:dangerous}}
5146 <p><span>Oh no</span>
5151 pre-save transform: comment containing gallery (bug 5024)
5155 <!-- <gallery>data</gallery> -->
5157 <!-- <gallery>data</gallery> -->
5161 pre-save transform: comment containing extension
5165 <!-- <tag>data</tag> -->
5167 <!-- <tag>data</tag> -->
5171 pre-save transform: comment containing nowiki
5175 <!-- <nowiki>data</nowiki> -->
5177 <!-- <nowiki>data</nowiki> -->
5181 pre-save transform: <noinclude> in subst (bug 3298)
5191 pre-save transform: <onlyinclude> in subst (bug 3298)
5203 {{<includeonly>subst:</includeonly>Includes}}
5207 Template:SafeSubstTest
5209 {{<includeonly>safesubst:</includeonly>Includes}}
5213 bug 22297: safesubst: works during PST
5217 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5223 bug 22297: safesubst: works during normal parse
5232 subst: does not work during normal parse
5236 <p>{{subst:Includes}}
5241 pre-save transform: context links ("pipe trick")
5245 [[Article (context)|]]
5248 [[Bar:Article (context)|]]
5249 [[:Bar:Article (context)|]]
5251 [[|Article (context)]]
5255 [[Article (context)|Article]]
5256 [[Bar:Article|Article]]
5257 [[:Bar:Article|Article]]
5258 [[Bar:Article (context)|Article]]
5259 [[:Bar:Article (context)|Article]]
5261 [[Article (context)]]
5262 [[Bar:X (Y) Z|X (Y) Z]]
5263 [[:Bar:X (Y) Z|X (Y) Z]]
5267 pre-save transform: context links ("pipe trick") with interwiki prefix
5271 [[interwiki:Article|]]
5272 [[:interwiki:Article|]]
5273 [[interwiki:Bar:Article|]]
5274 [[:interwiki:Bar:Article|]]
5276 [[interwiki:Article|Article]]
5277 [[:interwiki:Article|Article]]
5278 [[interwiki:Bar:Article|Bar:Article]]
5279 [[:interwiki:Bar:Article|Bar:Article]]
5283 pre-save transform: context links ("pipe trick") with parens in title
5285 pst title=[[Somearticle (context)]]
5289 [[Article (context)|Article]]
5293 pre-save transform: context links ("pipe trick") with comma in title
5295 pst title=[[Someplace, Somewhere]]
5298 [[Otherplace, Elsewhere|]]
5299 [[Otherplace, Elsewhere, Anywhere|]]
5301 [[Otherplace, Somewhere|Otherplace]]
5302 [[Otherplace, Elsewhere|Otherplace]]
5303 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5307 pre-save transform: context links ("pipe trick") with parens and comma
5309 pst title=[[Someplace (IGNORED), Somewhere]]
5312 [[Otherplace (place), Elsewhere|]]
5314 [[Otherplace, Somewhere|Otherplace]]
5315 [[Otherplace (place), Elsewhere|Otherplace]]
5319 pre-save transform: context links ("pipe trick") with comma and parens
5321 pst title=[[Who, me? (context)]]
5324 [[Me, Myself, and I (1937 song)|]]
5326 [[Yes, you. (context)|Yes, you.]]
5327 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5331 pre-save transform: context links ("pipe trick") with namespace
5333 pst title=[[Ns:Somearticle]]
5337 [[Ns:Article|Article]]
5341 pre-save transform: context links ("pipe trick") with namespace and parens
5343 pst title=[[Ns:Somearticle (context)]]
5347 [[Ns:Article (context)|Article]]
5351 pre-save transform: context links ("pipe trick") with namespace and comma
5353 pst title=[[Ns:Somearticle, Context, Whatever]]
5357 [[Ns:Article, Context, Whatever|Article]]
5361 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5363 pst title=[[Ns:Somearticle, Context (context)]]
5367 [[Ns:Article (context)|Article]]
5371 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5373 pst title=[[Ns:Somearticle (IGNORED), Context]]
5377 [[Ns:Article, Context|Article]]
5381 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5385 [[Article(context)|]]
5386 [[Bar:Article(context)|]]
5387 [[:Bar:Article(context)|]]
5388 [[|Article(context)]]
5392 [[Article(context)|Article]]
5393 [[Bar:Article(context)|Article]]
5394 [[:Bar:Article(context)|Article]]
5395 [[Article(context)]]
5397 [[:Bar:X(Y)Z|X(Y)Z]]
5401 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5405 [[Article (context)|]]
5406 [[Bar:Article (context)|]]
5407 [[:Bar:Article (context)|]]
5408 [[|Article (context)]]
5412 [[Article (context)|Article]]
5413 [[Bar:Article (context)|Article]]
5414 [[:Bar:Article (context)|Article]]
5415 [[Article (context)]]
5416 [[Bar:X (Y) Z|X (Y) Z]]
5417 [[:Bar:X (Y) Z|X (Y) Z]]
5421 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5425 [[Article(context)|]]
5426 [[Bar:Article(context)|]]
5427 [[:Bar:Article(context)|]]
5428 [[|Article(context)]]
5432 [[Article(context)|Article]]
5433 [[Bar:Article(context)|Article]]
5434 [[:Bar:Article(context)|Article]]
5435 [[Article(context)]]
5437 [[:Bar:X(Y)Z|X(Y)Z]]
5441 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5445 [[Article (context), context|]]
5446 [[Article (context),context|]]
5447 [[Bar:Article (context), context|]]
5448 [[Bar:Article (context),context|]]
5449 [[:Bar:Article (context), context|]]
5450 [[:Bar:Article (context),context|]]
5452 [[Article (context), context|Article]]
5453 [[Article (context),context|Article]]
5454 [[Bar:Article (context), context|Article]]
5455 [[Bar:Article (context),context|Article]]
5456 [[:Bar:Article (context), context|Article]]
5457 [[:Bar:Article (context),context|Article]]
5461 pre-save transform: trim trailing empty lines
5465 Empty lines are trimmed
5471 Empty lines are trimmed
5475 pre-save transform: Signature expansion
5480 * <noinclude>~~~</noinclude>
5481 * <includeonly>~~~</includeonly>
5482 * <onlyinclude>~~~</onlyinclude>
5484 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5485 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5486 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5487 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5492 pre-save transform: Signature expansion in nowiki tags (bug 93)
5498 <nowiki>~~~~</nowiki>
5500 <includeonly><nowiki>~~~~</nowiki></includeonly>
5502 <noinclude><nowiki>~~~~</nowiki></noinclude>
5504 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5506 {{subst:Foo}} shall be converted to FOO
5508 As well as inside noinclude/onlyinclude
5509 <noinclude>{{subst:Foo}}</noinclude>
5510 <onlyinclude>{{subst:Foo}}</onlyinclude>
5512 But not inside includeonly
5513 <includeonly>{{subst:Foo}}</includeonly>
5517 <nowiki>~~~~</nowiki>
5519 <includeonly><nowiki>~~~~</nowiki></includeonly>
5521 <noinclude><nowiki>~~~~</nowiki></noinclude>
5523 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5525 FOO shall be converted to FOO
5527 As well as inside noinclude/onlyinclude
5528 <noinclude>FOO</noinclude>
5529 <onlyinclude>FOO</onlyinclude>
5531 But not inside includeonly
5532 <includeonly>{{subst:Foo}}</includeonly>
5536 ### Message transform tests
5539 message transform: magic variables
5549 message transform: should not transform wiki markup
5559 message transform: <noinclude> in transcluded template (bug 4926)
5569 message transform: <onlyinclude> in transcluded template (bug 4926)
5579 {{#special:}} page name, known
5583 {{#special:Recentchanges}}
5585 Special:RecentChanges
5589 {{#special:}} page name with subpage, known
5593 {{#special:Recentchanges/param}}
5595 Special:RecentChanges/param
5599 {{#special:}} page name, unknown
5603 {{#special:foobarnonexistent}}
5605 No such special page
5609 {{#speciale:}} page name, known
5613 {{#speciale:Recentchanges}}
5615 Special:RecentChanges
5619 {{#speciale:}} page name with subpage, known
5623 {{#speciale:Recentchanges/param}}
5625 Special:RecentChanges/param
5629 {{#speciale:}} page name, unknown
5633 {{#speciale:foobarnonexistent}}
5635 No_such_special_page
5644 [[Image:foobar.jpg]]
5646 <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>
5653 [[Image:foobar.jpg|right]]
5655 <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>
5660 Simple image (using File: namespace, now canonical)
5664 <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>
5671 [[Image:foobar.jpg|right|Caption text]]
5673 <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>
5678 Image with empty attribute
5680 [[Image:foobar.jpg|right||Caption text]]
5682 <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>
5687 Image with link tails
5689 123[[Image:foobar.jpg]]456
5690 123[[Image:foobar.jpg|right]]456
5691 123[[Image:foobar.jpg|thumb]]456
5693 <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
5695 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
5696 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
5701 Image with multiple captions -- only last one is accepted
5703 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
5705 <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>
5710 Image with link parameter, wiki target
5712 [[Image:foobar.jpg|link=Target page]]
5714 <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>
5719 Image with link parameter, URL target
5721 [[Image:foobar.jpg|link=http://example.com/]]
5723 <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>
5728 Image with link parameter, wgExternalLinkTarget
5730 [[Image:foobar.jpg|link=http://example.com/]]
5732 wgExternalLinkTarget='foobar'
5734 <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>
5739 Image with link parameter, wgNoFollowLinks set to false
5741 [[Image:foobar.jpg|link=http://example.com/]]
5743 wgNoFollowLinks=false
5745 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5750 Image with link parameter, wgNoFollowDomainExceptions
5752 [[Image:foobar.jpg|link=http://example.com/]]
5754 wgNoFollowDomainExceptions='example.com'
5756 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5761 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5763 [[Image:foobar.jpg|link=http://example.com/|Title]]
5765 wgExternalLinkTarget='foobar'
5767 <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>
5772 Image with empty link parameter
5774 [[Image:foobar.jpg|link=]]
5776 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5781 Image with link parameter (wiki target) and unnamed parameter
5783 [[Image:foobar.jpg|link=Target page|Title]]
5785 <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>
5790 Image with link parameter (URL target) and unnamed parameter
5792 [[Image:foobar.jpg|link=http://example.com/|Title]]
5794 <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>
5799 Thumbnail image with link parameter
5801 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5803 <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>
5808 Image with frame and link
5810 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5812 <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>
5817 Image with frame and link and explicit alt
5819 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5821 <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>
5826 Image with wiki markup in implicit alt
5828 [[Image:Foobar.jpg|testing '''bold''' in alt]]
5830 <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>
5835 Image with wiki markup in explicit alt
5837 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
5839 <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>
5844 Link to image page- image page normally doesn't exists, hence edit link
5845 Add test with existing image page
5846 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
5850 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
5855 bug 18784 Link to non-existent image page with caption should use caption as link text
5857 [[:Image:test|caption]]
5859 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
5864 Frameless image caption with a free URL
5866 [[Image:foobar.jpg|http://example.com]]
5868 <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>
5873 Thumbnail image caption with a free URL
5875 [[Image:foobar.jpg|thumb|http://example.com]]
5877 <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>
5882 Thumbnail image caption with a free URL and explicit alt
5884 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
5886 <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>
5891 BUG 1887: A ISBN with a thumbnail
5893 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
5895 <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>
5900 BUG 1887: A RFC with a thumbnail
5902 [[Image:foobar.jpg|thumb|This is RFC 12354]]
5904 <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" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
5909 BUG 1887: A mailto link with a thumbnail
5911 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
5913 <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>
5917 # Pending resolution to bug 368
5919 BUG 648: Frameless image caption with a link
5921 [[Image:foobar.jpg|text with a [[link]] in it]]
5923 <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>
5928 BUG 648: Frameless image caption with a link (suffix)
5930 [[Image:foobar.jpg|text with a [[link]]foo in it]]
5932 <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>
5937 BUG 648: Frameless image caption with an interwiki link
5939 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
5941 <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>
5946 BUG 648: Frameless image caption with a piped interwiki link
5948 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
5950 <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>
5955 Escape HTML special chars in image alt text
5957 [[Image:foobar.jpg|& < > "]]
5959 <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>
5964 BUG 499: Alt text should have Ӓ, not &1234;
5966 [[Image:foobar.jpg|♀]]
5968 <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>
5973 Broken image caption with link
5975 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
5977 <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.
5982 Image caption containing another image
5984 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
5986 <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>
5991 Image caption containing a newline
5993 [[Image:Foobar.jpg|This
5996 <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>
6002 Bug 3090: External links other than http: in image captions
6004 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6006 <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>
6013 [[Image:foobar.jpg|a|class=b]]
6015 <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>
6022 #REDIRECT [[File:Barfoo.jpg]]
6028 [[Image:Barfoo.jpg]]
6030 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6035 Missing image with uploads disabled
6039 [[Image:Foobaz.jpg]]
6041 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6050 Subpage test/subpage
6058 subpage title=[[Subpage test]]
6062 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6067 Subpage noslash link
6069 subpage title=[[Subpage test]]
6073 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6082 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6087 BUG 561: {{/Subpage}}
6089 subpage title=[[Page]]
6093 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6101 Category:MediaWiki User's Guide
6109 [[:Category:MediaWiki User's Guide]]
6111 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6120 [[Category:MediaWiki User's Guide]]
6122 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6126 PAGESINCATEGORY invalid title fatal (r33546 fix)
6128 {{PAGESINCATEGORY:<bogus>}}
6135 Category with different sort key
6139 [[Category:MediaWiki User's Guide|Foo]]
6141 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6145 Category with identical sort key
6149 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6151 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6155 Category with empty sort key
6160 [[Category:MediaWiki User's Guide|]]
6162 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6166 Category with empty sort key and parentheses
6171 [[Category:Foo (bar)|]]
6173 [[Category:Foo (bar)|Foo]]
6177 Category with link tail
6182 123[[Category:Foo]]456
6184 123[[Category:Foo]]456
6188 Category with template
6193 [[Category:{{echo|Foo}}]]
6195 [[Category:{{echo|Foo}}]]
6199 Category with template in sort key
6204 [[Category:Foo|{{echo|Bar}}]]
6206 [[Category:Foo|{{echo|Bar}}]]
6210 Category with template in sort key and title
6215 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6217 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6221 Category / paragraph interactions
6223 Foo [[Category:Baz]] Bar
6225 Foo [[Category:Baz]]
6233 [[Category:Baz]] Bar
6246 {{echo|[[Category:Baz]]}}
6261 ### Inter-language links
6264 Inter-language links
6270 [[zh:食品]]
6272 es:Alimento fr:Nourriture zh:食品
6276 Duplicate interlanguage links (bug 24502)
6292 Basic section headings
6299 ===Smaller headline===
6302 <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>
6305 <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>
6308 <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>
6314 Section headings with TOC
6317 === Subheadline 1 ===
6318 ===== Skipping a level =====
6319 ====== Skipping a level ======
6323 ===Another headline===
6325 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6327 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6329 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6331 <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>
6333 <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>
6340 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6342 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6347 <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>
6348 <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>
6349 <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>
6350 <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>
6351 <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>
6354 <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>
6358 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6360 Handling of sections up to level 6 and beyond
6363 == Level 2 Heading==
6364 === Level 3 Heading===
6365 ==== Level 4 Heading====
6366 ===== Level 5 Heading=====
6367 ====== Level 6 Heading======
6368 ======= Level 7 Heading=======
6369 ======== Level 8 Heading========
6370 ========= Level 9 Heading=========
6371 ========== Level 10 Heading==========
6373 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6375 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6377 <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>
6379 <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>
6381 <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>
6383 <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>
6385 <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>
6386 <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>
6387 <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>
6388 <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>
6389 <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>
6402 <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>
6403 <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>
6404 <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>
6405 <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>
6406 <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>
6407 <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>
6408 <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>
6409 <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>
6410 <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>
6411 <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>
6416 TOC regression (bug 9764)
6420 ==== title 1.1.1 ====
6425 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6427 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6429 <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>
6431 <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>
6434 <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>
6437 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6439 <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>
6444 <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>
6445 <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>
6446 <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>
6447 <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>
6448 <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>
6449 <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>
6454 TOC with wgMaxTocLevel=3 (bug 6204)
6460 ==== title 1.1.1 ====
6465 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6467 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6469 <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>
6470 <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>
6473 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6475 <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>
6480 <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>
6481 <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>
6482 <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>
6483 <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>
6484 <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>
6485 <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>
6490 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6496 ====Section 1.1.1====
6497 ====Section 1.1.1.1====
6500 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6502 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6504 <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>
6507 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6510 <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>
6511 <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>
6512 <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>
6513 <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>
6514 <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>
6520 Resolving duplicate section names
6525 <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>
6526 <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>
6531 Resolving duplicate section names with differing case (bug 10721)
6536 <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>
6537 <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>
6549 Template with sections, __NOTOC__
6556 <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>
6557 <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>
6558 <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>
6559 <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>
6564 __NOEDITSECTION__ keyword
6570 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6571 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6576 Link inside a section heading
6578 ==Section with a [[Main Page|link]] in it==
6580 <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>
6585 TOC regression (bug 12077)
6592 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6594 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6596 <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>
6599 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6602 <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>
6603 <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>
6604 <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>
6609 BUG 1219 URL next to image (good)
6611 http://example.com [[Image:foobar.jpg]]
6613 <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>
6618 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6621 The line above must have a trailing space!
6624 But just in case it doesn't...
6626 <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>
6627 <p>The line above must have a trailing space!
6629 <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>
6630 <p>But just in case it doesn't...
6635 Header with special characters (bug 25462)
6637 The tooltips shall not show entities to the user (ie. be double escaped)
6654 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6656 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6658 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6659 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6660 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6661 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6662 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6665 <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>
6668 <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>
6671 <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>
6674 <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>
6677 <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>
6683 Headers with excess '=' characters
6684 (Are similar tests necessary beyond the 1st level?)
6688 =''italic'' heading==
6689 ==''italic'' heading=
6691 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6693 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6694 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6695 <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>
6696 <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>
6699 <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>
6700 <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>
6701 <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>
6702 <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>
6707 BUG 1219 URL next to image (broken)
6709 http://example.com[[Image:foobar.jpg]]
6711 <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>
6716 Bug 1186 news: in the middle of text
6718 http://en.wikinews.org/wiki/Wikinews:Workplace
6720 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6726 Namespaced link must have a title
6735 Namespaced link must have a title (bad fragment version)
6737 [[Project:#fragment]]
6739 <p>[[Project:#fragment]]
6745 div with no attributes
6747 <div>HTML rocks</div>
6749 <div>HTML rocks</div>
6754 div with double-quoted attribute
6756 <div id="rock">HTML rocks</div>
6758 <div id="rock">HTML rocks</div>
6763 div with single-quoted attribute
6765 <div id='rock'>HTML rocks</div>
6767 <div id="rock">HTML rocks</div>
6772 div with unquoted attribute
6774 <div id=rock>HTML rocks</div>
6776 <div id="rock">HTML rocks</div>
6781 div with illegal double attributes
6783 <div id="a" id="b">HTML rocks</div>
6785 <div id="b">HTML rocks</div>
6790 HTML multiple attributes correction
6792 <p class="error" class="awesome">Awesome!</p>
6794 <p class="awesome">Awesome!</p>
6799 Table multiple attributes correction
6802 !+ class="error" class="awesome"| status
6807 <th class="awesome"> status
6815 <DIV ID="x">HTML ROCKS</DIV>
6817 <div id="x">HTML ROCKS</div>
6823 text with amp in the middle of nowhere
6827 <p>Remember AT&T?
6832 text with character entity: eacute
6834 I always thought é was a cute letter.
6836 <p>I always thought é was a cute letter.
6841 text with undefined character entity: xacute
6843 I always thought &xacute; was a cute letter.
6845 <p>I always thought &xacute; was a cute letter.
6857 [[Media:Foobar.jpg]]
6859 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6864 Media link with text
6866 [[Media:Foobar.jpg|A neat file to look at]]
6868 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6872 # FIXME: this is still bad HTML tag nesting
6874 Media link with nasty text
6875 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6877 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6879 <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>
6884 Media link to nonexistent file (bug 1702)
6886 [[Media:No such.jpg]]
6888 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6893 Image link to nonexistent file (bug 1850 - good)
6895 [[Image:No such.jpg]]
6897 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6902 :Image link to nonexistent file (bug 1850 - bad)
6904 [[:Image:No such.jpg]]
6906 <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>
6913 Character reference normalization in link text (bug 1938)
6915 [[Main Page|this&that]]
6917 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6924 Test for unicode normalization
6926 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6930 (bug 19451) Links should refer to the normalized form.
6938 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6939 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6940 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6941 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6942 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6947 Empty attribute crash test (bug 2067)
6949 <font color="">foo</font>
6951 <p><font color="">foo</font>
6956 Empty attribute crash test single-quotes (bug 2067)
6958 <font color=''>foo</font>
6960 <p><font color="">foo</font>
6965 Attribute test: equals, then nothing
6967 <font color=>foo</font>
6974 Attribute test: unquoted value
6976 <font color=x>foo</font>
6978 <p><font color="x">foo</font>
6983 Attribute test: unquoted but illegal value (hash)
6985 <font color=#x>foo</font>
6987 <p><font color="#x">foo</font>
6992 Attribute test: no value
6994 <font color>foo</font>
6996 <p><font color="color">foo</font>
7001 Bug 2095: link with three closing brackets
7005 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7010 Bug 2095: link with pipe and three closing brackets
7014 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7019 Bug 2095: link with pipe and three closing brackets, version 2
7021 [[Main Page|[http://example.com/]]]
7023 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7033 Template:Dangerous attribute
7035 " onmouseover="alert(document.cookie)
7039 Template:Dangerous style attribute
7041 border-size: expression(alert(document.cookie))
7047 <div style="float: right; {{{1}}}">Magic div</div>
7051 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7053 <div title="{{test}}"></div>
7055 <div title="This is a test template"></div>
7060 Bug 2304: HTML attribute safety (dangerous template; 2309)
7062 <div title="{{dangerous attribute}}"></div>
7064 <div title=""></div>
7069 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7071 <div style="{{dangerous style attribute}}"></div>
7073 <div style="/* insecure input */"></div>
7078 Bug 2304: HTML attribute safety (safe parameter; 2309)
7080 {{div style|width: 200px}}
7082 <div style="float: right; width: 200px">Magic div</div>
7087 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7089 {{div style|width: expression(alert(document.cookie))}}
7091 <div style="/* insecure input */">Magic div</div>
7096 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7098 {{div style|"><script>alert(document.cookie)</script>}}
7100 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7105 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7107 {{div style|" ><script>alert(document.cookie)</script>}}
7109 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7114 Bug 2304: HTML attribute safety (link)
7116 <div title="[[Main Page]]"></div>
7118 <div title="[[Main Page]]"></div>
7123 Bug 2304: HTML attribute safety (italics)
7125 <div title="''foobar''"></div>
7127 <div title="''foobar''"></div>
7132 Bug 2304: HTML attribute safety (bold)
7134 <div title="'''foobar'''"></div>
7136 <div title="'''foobar'''"></div>
7142 Bug 2304: HTML attribute safety (ISBN)
7144 <div title="ISBN 1234567890"></div>
7146 <div title="ISBN 1234567890"></div>
7151 Bug 2304: HTML attribute safety (RFC)
7153 <div title="RFC 1234"></div>
7155 <div title="RFC 1234"></div>
7160 Bug 2304: HTML attribute safety (PMID)
7162 <div title="PMID 1234567890"></div>
7164 <div title="PMID 1234567890"></div>
7169 Bug 2304: HTML attribute safety (web link)
7171 <div title="http://example.com/"></div>
7173 <div title="http://example.com/"></div>
7178 Bug 2304: HTML attribute safety (named web link)
7180 <div title="[http://example.com/ link]"></div>
7182 <div title="[http://example.com/ link]"></div>
7187 Bug 3244: HTML attribute safety (extension; safe)
7189 <div style="<nowiki>background:blue</nowiki>"></div>
7191 <div style="background:blue"></div>
7196 Bug 3244: HTML attribute safety (extension; unsafe)
7198 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7200 <div style="/* insecure input */"></div>
7204 # More MSIE fun discovered by Tom Gilder
7207 MSIE CSS safety test: spurious slash
7209 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7211 <div style="/* insecure input */">evil</div>
7216 MSIE CSS safety test: hex code
7218 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7220 <div style="/* insecure input */">evil</div>
7225 MSIE CSS safety test: comment in url
7227 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7229 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7234 MSIE CSS safety test: comment in expression
7236 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7238 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7244 Table attribute legitimate extension
7247 !+ style="<nowiki>color:blue</nowiki>"| status
7252 <th style="color:blue"> status
7258 Table attribute safety
7261 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7266 <th style="/* insecure input */"> status
7272 CSS line continuation 1
7274 <div style="background-image: u\ rl(test.jpg);"></div>
7276 <div style="/* insecure input */"></div>
7281 CSS line continuation 2
7283 <div style="background-image: u\ rl(test.jpg); "></div>
7285 <div style="/* insecure input */"></div>
7296 Expansion of multi-line templates in attribute values (bug 6255)
7298 <div style="background: {{identity|#00FF00}}">-</div>
7300 <div style="background: #00FF00">-</div>
7306 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7308 <div style="background:
7311 <div style="background: #00FF00">-</div>
7316 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7318 <div style="background: #00FF00">-</div>
7320 <div style="background: #00FF00">-</div>
7325 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7328 Parser hook: empty input
7341 Parser hook: empty input using terminated empty elements
7354 Parser hook: empty input using terminated empty elements (space before)
7367 Parser hook: basic input
7381 Parser hook: case insensitive
7395 Parser hook: case insensitive, redux
7408 Parser hook: nested tags
7412 <tag><tag></tag></tag>
7423 Parser hook: basic arguments
7425 <tag width=200 height = "100" depth = '50' square></tag>
7433 'square' => 'square',
7440 Parser hook: argument containing a forward slash (bug 5344)
7442 <tag filename='/tmp/bla'></tag>
7447 'filename' => '/tmp/bla',
7454 Parser hook: empty input using terminated empty elements (bug 2374)
7467 # </tag> should be output literally since there is no matching tag that begins it
7469 Parser hook: basic arguments using terminated empty elements (bug 2374)
7471 <tag width=200 height = "100" depth = '50' square/>
7481 'square' => 'square',
7490 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7494 Parser hook: static parser hook not inside a comment
7496 <statictag>hello, world</statictag>
7497 <statictag action=flush/>
7505 Parser hook: static parser hook inside a comment
7507 <!-- <statictag>hello, world</statictag> -->
7508 <statictag action=flush/>
7514 # Nested template calls; this case was broken by Parser.php rev 1.506,
7518 Template:One-parameter
7520 (My parameter is: {{{1}}})
7524 Template:Map-one-parameter
7530 Nested template calls
7532 {{Map-one-parameter|One-parameter|param}}
7534 <p>(My parameter is: param)
7543 Sanitizer: Closing of open tags
7545 <s></s><table></table>
7547 <s></s><table></table>
7552 Sanitizer: Closing of open but not closed tags
7561 Sanitizer: Closing of closed but not open tags
7570 Sanitizer: Closing of closed but not open table tags
7572 Table not started</td></tr></table>
7574 <p>Table not started</td></tr></table>
7579 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7581 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7583 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7588 Sanitizer: Validating the contents of the id attribute (bug 4515)
7594 Something, but definitely not <br id="9" />...
7598 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7602 <br id="foo" /><br id="foo" />
7604 Something need to be done. foo-2 ?
7608 Language converter: output gets cut off unexpectedly (bug 5757)
7612 this bit is safe: }-
7614 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7616 then we get cut off here: }-
7618 all additional text is vanished
7620 <p>this bit is safe: }-
7621 </p><p>but if we add a conversion instance: xxx
7622 </p><p>then we get cut off here: }-
7623 </p><p>all additional text is vanished
7628 Self closed html pairs (bug 5487)
7631 <center><font id="bug" />Centered text</center>
7632 <div><font id="bug2" />In div text</div>
7634 <center><font id="bug" />Centered text</center>
7635 <div><font id="bug2" />In div text</div>
7644 Punctuation: nbsp before exclamation
7648 <p>C'est grave !
7653 Punctuation: CSS !important (bug 11874)
7655 <div style="width:50% !important">important</div>
7657 <div style="width:50% !important">important</div>
7662 Punctuation: CSS ! important (bug 11874; with space after)
7664 <div style="width:50% ! important">important</div>
7666 <div style="width:50% ! important">important</div>
7672 HTML bullet list, closed tags (bug 5497)
7687 HTML bullet list, unclosed tags (bug 5497)
7704 HTML ordered list, closed tags (bug 5497)
7719 HTML ordered list, unclosed tags (bug 5497)
7736 HTML nested bullet list, closed tags (bug 5497)
7761 HTML nested bullet list, open tags (bug 5497)
7786 HTML nested ordered list, closed tags (bug 5497)
7811 HTML nested ordered list, open tags (bug 5497)
7836 HTML ordered list item with parameters oddity
7838 <ol><li id="fragment">One</li></ol>
7840 <ol><li id="fragment">One</li></ol>
7845 bug 5918: autonumbering
7847 [http://first/] [http://second] [ftp://ftp]
7851 [mailto:enclosed@mail.tld With target]
7853 [mailto:enclosed@mail.tld]
7855 mailto:inline@mail.tld
7857 <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>
7858 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7859 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7860 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7861 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7867 # Security and HTML correctness
7868 # From Nick Jenkins' fuzz testing
7872 Fuzz testing: Parser13
7887 Fuzz testing: Parser14
7892 <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>
7893 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7895 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7902 Fuzz testing: Parser14-table
7907 <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>
7908 <table style="__TOC__">
7914 # Known to produce bogus xml (extra </td>)
7916 Fuzz testing: Parser16
7936 Fuzz testing: Parser21
7939 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7944 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7954 Fuzz testing: Parser22
7956 http://===r:::https://b
7960 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7968 # Known to produce bad XML for now
7970 Fuzz testing: Parser24
7977 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7978 <br style="onmouseover='alert(document.cookie);' " />
7980 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7985 <u class="|">}}}} >
7986 <br style="onmouseover='alert(document.cookie);'" />
7988 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7997 # Note: the current result listed for this is not what the original one was,
7998 # but the original bug was JavaScript injection, which is fixed in any case.
7999 # It's not clear that the original result listed was any more correct than the
8000 # current one. Original result:
8003 # <li class="||">
8004 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8006 Fuzz testing: Parser25 (bug 6055)
8012 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8014 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8019 Fuzz testing: URL adjacent extension (with space, clean)
8022 http://example.com <nowiki>junk</nowiki>
8024 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8029 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8032 http://example.com<nowiki>junk</nowiki>
8034 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8039 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8042 http://example.com<pre>junk</pre>
8044 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8049 Fuzz testing: image with bogus manual thumbnail
8051 [[Image:foobar.jpg|thumbnail= ]]
8053 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8058 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8060 <pre dir=" "></pre>
8062 <pre dir=" "></pre>
8067 Parsing optional HTML elements (Bug 6171)
8072 <td> Some tabular data</td>
8073 <td> More tabular data ...
8074 <td> And yet som tabular data</td>
8080 <td> Some tabular data</td>
8081 <td> More tabular data ...
8082 </td><td> And yet som tabular data</td>
8089 Correct handling of <td>, <tr> (Bug 6171)
8094 <td> Some tabular data</td>
8095 <td> More tabular data ...</td>
8096 <td> And yet som tabular data</td>
8102 <td> Some tabular data</td>
8103 <td> More tabular data ...</td>
8104 <td> And yet som tabular data</td>
8112 Parsing crashing regression (fr:JavaScript)
8116 <p></body></x>
8121 Inline wiki vs wiki block nesting
8127 <p><b>Bold paragraph</b>
8128 </p><p>New wiki paragraph
8133 Inline HTML vs wiki block nesting
8141 <p><b>Bold paragraph</b>
8142 </p><p>New wiki paragraph
8146 # Original result was this:
8147 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8149 # While that might be marginally more intuitive, maybe, the six-apostrophe
8150 # construct is clearly pathological and the result stated here (which is what
8151 # the parser actually does) is about as reasonable as anything.
8153 Mixing markup for italics and bold
8156 '''bold''''''bold''bolditalics'''''
8158 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8166 Article for special page transclusion test
8170 Special page transclusion
8173 {{Special:Prefixindex/Xyzzyx}}
8175 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8180 Special page transclusion twice (bug 5021)
8183 {{Special:Prefixindex/Xyzzyx}}
8184 {{Special:Prefixindex/Xyzzyx}}
8186 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8187 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8192 Transclusion of default MediaWiki message
8194 {{MediaWiki:Mainpage}}
8201 Transclusion of nonexistent MediaWiki message
8203 {{MediaWiki:Mainpagexxx}}
8205 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8210 Transclusion of MediaWiki message with underscore
8212 {{MediaWiki:history_short}}
8219 Transclusion of MediaWiki message with space
8221 {{MediaWiki:history short}}
8228 Invalid header with following text
8238 Section extraction test (section 0)
8258 Section extraction test (section 1)
8280 Section extraction test (section 2)
8301 Section extraction test (section 3)
8321 Section extraction test (section 4)
8345 Section extraction test (section 5)
8365 Section extraction test (section 6)
8386 Section extraction test (section 7)
8406 Section extraction test (section 8)
8426 Section extraction test (section 9)
8447 Section extraction test (section 10)
8467 Section extraction test (nonexistent section 11)
8486 Section extraction test with bogus heading (section 1)
8491 ==bogus== not a legal section
8495 ==bogus== not a legal section
8499 Section extraction test with bogus heading (section 2)
8504 ==bogus== not a legal section
8511 Section extraction test with comment after heading (section 1)
8523 Section extraction test with comment after heading (section 2)
8535 Section extraction test with bogus <nowiki> heading (section 1)
8540 ==bogus== <nowiki>not a legal section</nowiki>
8544 ==bogus== <nowiki>not a legal section</nowiki>
8548 Section extraction test with bogus <nowiki> heading (section 2)
8553 ==bogus== <nowiki>not a legal section</nowiki>
8560 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8561 # instead of respecting commented sections
8563 Section extraction prefixed by comment (section 1)
8574 Section extraction prefixed by comment (section 2)
8585 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8586 # instead of respecting HTML-style headings
8588 Section extraction, mixed wiki and html (section 1)
8604 Section extraction, mixed wiki and html (section 2)
8620 # Formerly testing for bug 3342
8622 Section extraction, heading surrounded by <noinclude>
8626 <noinclude>==unmarked==</noinclude>
8632 # Test behaviour of bug 19910
8634 Sectiion with all-equals
8639 The line above must have a trailing space
8642 But just in case it doesn't...
8646 But just in case it doesn't...
8650 Section replacement test (section 0)
8681 Section replacement test (section 1)
8710 Section replacement test (section 2)
8740 Section replacement test (section 3)
8771 Section replacement test (section 4)
8798 Section replacement test (section 5)
8829 Section replacement test (section 6)
8859 Section replacement test (section 7)
8890 Section replacement test (section 8)
8921 Section replacement test (section 9)
8950 Section replacement test (section 10)
8980 Section replacement test with initial whitespace (bug 13728)
8984 Preformatted initial line
8988 Preformatted initial line
8995 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9007 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9020 Section extraction, <pre> around bogus header (bug 10309)
9037 Section replacement, <pre> around bogus header (bug 10309)
9039 noxml replace=2,"xxx"
9060 Handling of 
 in URLs
9064 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9071 5 quotes, code coverage +1 line
9078 Special:Search page linking.
9082 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9097 * {{SUBJECTPAGENAME}}
9098 * {{SUBJECTPAGENAMEE}}
9105 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9107 <ul><li> Parser test
9108 </li><li> Parser test
9109 </li><li> Parser test
9110 </li><li> Parser_test
9111 </li><li> Parser test
9112 </li><li> Parser_test
9113 </li><li> Talk:Parser test
9114 </li><li> Talk:Parser_test
9115 </li><li> Parser test
9116 </li><li> Parser_test
9123 </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>
9127 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9137 image4 |300px| centre
9138 image5.svg| http://///////
9143 <ul class="gallery">
9144 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9145 <div style="height: 150px;">Image1.png</div>
9146 <div class="gallerytext">
9149 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9150 <div style="height: 150px;">Image2.gif</div>
9151 <div class="gallerytext">
9156 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9157 <div style="height: 150px;">Image3</div>
9158 <div class="gallerytext">
9161 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9162 <div style="height: 150px;">Image4</div>
9163 <div class="gallerytext">
9168 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9169 <div style="height: 150px;">Image5.svg</div>
9170 <div class="gallerytext">
9171 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9175 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9176 <div style="height: 150px;">* image6</div>
9177 <div class="gallerytext">
9185 Gallery (with options)
9187 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9188 File:Nonexistant.jpg|caption
9189 File:Nonexistant.jpg
9190 image:foobar.jpg|some '''caption''' [[Main Page]]
9192 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9195 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9196 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9197 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9198 <div style="height: 70px;">Nonexistant.jpg</div>
9199 <div class="gallerytext">
9204 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9205 <div style="height: 70px;">Nonexistant.jpg</div>
9206 <div class="gallerytext">
9209 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9210 <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>
9211 <div class="gallerytext">
9212 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9216 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9217 <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>
9218 <div class="gallerytext">
9221 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9222 <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>
9223 <div class="gallerytext">
9233 Gallery with wikitext inside caption
9236 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9237 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9240 <ul class="gallery">
9241 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9242 <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>
9243 <div class="gallerytext">
9244 <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>
9248 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9249 <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>
9250 <div class="gallerytext">
9251 <p>This is a test template
9260 gallery (with showfilename option)
9262 <gallery showfilename>
9263 File:Nonexistant.jpg|caption
9264 File:Nonexistant.jpg
9265 image:foobar.jpg|some '''caption''' [[Main Page]]
9269 <ul class="gallery">
9270 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9271 <div style="height: 150px;">Nonexistant.jpg</div>
9272 <div class="gallerytext">
9273 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9278 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9279 <div style="height: 150px;">Nonexistant.jpg</div>
9280 <div class="gallerytext">
9281 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9285 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9286 <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>
9287 <div class="gallerytext">
9288 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9289 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9293 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9294 <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>
9295 <div class="gallerytext">
9296 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9305 Gallery (with namespace-less filenames)
9308 File:Nonexistant.jpg
9314 <ul class="gallery">
9315 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9316 <div style="height: 150px;">Nonexistant.jpg</div>
9317 <div class="gallerytext">
9320 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9321 <div style="height: 150px;">Nonexistant.jpg</div>
9322 <div class="gallerytext">
9325 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9326 <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>
9327 <div class="gallerytext">
9330 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9331 <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>
9332 <div class="gallerytext">
9340 HTML Hex character encoding (spells the word "JavaScript")
9342 JavaScript
9344 <p>JavaScript
9349 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9353 <p>&#xsee;&#XSEE;
9358 HTML Hex character encoding mixed case
9367 __FORCETOC__ override
9379 ISBN 978-0-1234-56 789
9381 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9386 ISBN followed by 5 spaces
9397 ISBN ISBN 1234567890
9399 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9404 Bug 22905: <abbr> followed by ISBN followed by </a>
9406 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9408 <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>
9417 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9422 Double RFC with a wiki link
9426 <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>
9435 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9440 Centre-aligned image
9442 [[Image:foobar.jpg|centre]]
9444 <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>
9451 [[Image:foobar.jpg|none]]
9453 <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>
9458 Width + Height sized image (using px) (height is ignored)
9460 [[Image:foobar.jpg|640x480px]]
9462 <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>
9467 Width-sized image (using px, no following whitespace)
9469 [[Image:foobar.jpg|640px]]
9471 <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>
9476 Width-sized image (using px, with following whitespace - test regression from r39467)
9478 [[Image:foobar.jpg|640px ]]
9480 <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>
9485 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9487 [[Image:foobar.jpg| 640px]]
9489 <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>
9494 Another italics / bold test
9502 # Note the results may be incorrect, as parserTest output included this:
9503 # XML error: Mismatched tag at byte 6120:
9504 # ...<dd> </dt></dl> </dd...
9512 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9523 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9525 Images with the "|" character in the comment
9527 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9529 <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>
9534 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9536 <html><script>alert(1);</script></html>
9538 <p><html><script>alert(1);</script></html>
9543 HTML with raw HTML ($wgRawHtml==true)
9547 <html><script>alert(1);</script></html>
9549 <p><script>alert(1);</script>
9554 Parents of subpages, one level up
9556 subpage title=[[Subpage test/L1/L2/L3]]
9560 <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>
9566 Parents of subpages, one level up, not named
9568 subpage title=[[Subpage test/L1/L2/L3]]
9572 <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>
9579 Parents of subpages, two levels up
9581 subpage title=[[Subpage test/L1/L2/L3]]
9587 <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
9588 </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>
9593 Parents of subpages, two levels up, without trailing slash or name.
9595 subpage title=[[Subpage test/L1/L2/L3]]
9604 Parents of subpages, two levels up, with lots of extra trailing slashes.
9606 subpage title=[[Subpage test/L1/L2/L3]]
9610 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9615 Definition list code coverage
9621 <dl><dt> title  </dt><dd> def
9622 </dd><dt> title </dt><dd> def
9623 </dd><dt>title</dt><dd> def
9629 Don't fall for the self-closing div
9631 <div>hello world</div/>
9633 <div>hello world</div>
9642 <p>[[:Template:Msg]]
9651 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9655 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9657 Always escape literal '>' in output, not just after '<'
9671 <p>This is a test template
9672 This is a test template
9684 Inclusion of !userCanEdit() content
9688 <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>
9694 Out-of-order TOC heading levels
9703 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9705 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9707 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9708 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9711 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9713 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9714 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9719 <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>
9720 <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>
9721 <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>
9722 <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>
9723 <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>
9724 <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>
9730 ISBN with a dummy number
9740 ISBN with space-delimited number
9744 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9750 ISBN with multiple spaces, no number
9769 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9770 </p><p>ISBN 12345678901
9776 ISBN with trailing year (bug 8110)
9778 ISBN 1-234-56789-0 - 2006
9780 ISBN 1 234 56789 0 - 2006
9782 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9783 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9791 {{anchorencode:foo bar©#%n}}
9793 <p>foo_bar.C2.A9.23.25n
9798 anchorencode trims spaces
9800 {{anchorencode: __pretty__please__}}
9807 anchorencode deals with links
9809 {{anchorencode: [[hello|world]] [[hi]]}}
9816 anchorencode deals with templates
9818 {{anchorencode: {{Foo}} }}
9825 anchorencode encodes like the TOC generator: (bug 18431)
9827 === _ +:.3A%3A&&]] ===
9828 {{anchorencode: _ +:.3A%3A&&]] }}
9831 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9832 <p>.2B:.3A.253A.26.26.5D.5D
9836 # Expected output in the following test is not necessarily expected (there
9837 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9838 # only testing for well-formedness.
9840 Bug 6200: blockquotes and paragraph formatting
9860 Bug 8293: Use of center tag ruins paragraph formatting
9882 ### Language variants related tests
9885 Self-link in language variants
9887 title=[[Dunav]] language=sr
9889 Both [[Dunav]] and [[Дунав]] are names for this river.
9891 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9897 Link to pages in language variants
9901 Main Page can be written as [[Маин Паге]]
9903 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9909 Multiple links to pages in language variants
9913 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9915 <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>.
9921 Simple template in language variants
9927 <p>This is a test template
9933 Template with explicit namespace in language variants
9939 <p>This is a test template
9945 Basic test for template parameter in language variants
9949 {{парамтест|param=foo}}
9951 <p>This is a test template with parameter foo
9957 Simple category in language variants
9961 [[Category:МедиаWики Усер'с Гуиде]]
9963 <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>
9968 Stripping -{}- tags (language variants)
9972 Latin proverb: -{Ne nuntium necare}-
9974 <p>Latin proverb: Ne nuntium necare
9980 Prevent conversion with -{}- tags (language variants)
9982 language=sr variant=sr-ec
9984 Latinski: -{Ne nuntium necare}-
9986 <p>Латински: Ne nuntium necare
9992 Prevent conversion of text with -{}- tags (language variants)
9994 language=sr variant=sr-ec
9996 Latinski: -{Ne nuntium necare}-
9998 <p>Латински: Ne nuntium necare
10004 Prevent conversion of links with -{}- tags (language variants)
10006 language=sr variant=sr-ec
10010 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10016 -{}- tags within headlines (within html for parserConvert())
10018 language=sr variant=sr-ec
10022 <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>
10028 Explicit definition of language variant alternatives
10030 language=zh variant=zh-tw
10032 -{zh:China;zh-tw:Taiwan}-, not China
10034 <p>Taiwan, not China
10040 Explicit session-wise language variant mapping (A flag and - flag)
10042 language=zh variant=zh-tw
10044 Taiwan is not China.
10045 But -{A|zh:China;zh-tw:Taiwan}- is China,
10046 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10047 and -{China}- is China.
10049 <p>Taiwan is not China.
10050 But Taiwan is Taiwan,
10051 (This should be stripped!)
10052 and China is China.
10057 Explicit session-wise language variant mapping (H flag for hide)
10059 language=zh variant=zh-tw
10061 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10064 <p>(This should be stripped!)
10070 Adding explicit conversion rule for title (T flag)
10072 language=zh variant=zh-tw showtitle
10074 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10077 <p>Should be stripped!
10082 Testing that changing the language variant here in the tests actually works
10084 language=zh variant=zh showtitle
10086 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10089 <p>Should be stripped!
10094 Bug 24072: more test on conversion rule for title
10096 language=zh variant=zh-tw showtitle
10098 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10099 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10102 <p>This should be stripped!
10103 This won't take interferes with the title rule.
10108 Raw output of variant escape tags (R flag)
10110 language=zh variant=zh-tw
10112 Raw: -{R|zh:China;zh-tw:Taiwan}-
10114 <p>Raw: zh:China;zh-tw:Taiwan
10119 Nested using of manual convert syntax
10121 language=zh variant=zh-hk
10123 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10125 <p>Nested: Hello Hong Kong!
10130 Do not convert roman numbers to language variants
10132 language=sr variant=sr-ec
10136 <p>Фридрих IV је цар.
10141 Unclosed language converter markup "-{"
10152 Don't convert raw rule "-{R|=>}-" to "=>"
10169 Bug 529: Uncovered bullet
10180 Bug 529: Uncovered table already at line-start
10203 Bug 529: Uncovered bullet in parser function result
10205 * Foo {{lc:{{bullet}} }}
10214 Bug 5678: Double-parsed template argument
10216 {{lc:{{{1}}}|hello}}
10223 Bug 5678: Double-parsed template invocation
10225 {{lc:{{paramtest {{!}} param = hello }} }}
10227 <p>{{paramtest | param = hello }}
10232 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10235 title=[[Main Page]]
10237 {{PRVNÍVELKÉ:ěščř}}
10238 {{prvnívelké:ěščř}}
10258 Morwen/13: Unclosed link followed by heading
10265 <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>
10270 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10277 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10282 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10289 <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>
10304 Paragraphs inside divs (no extra line breaks)
10316 Paragraphs inside divs (extra line break on open)
10331 Paragraphs inside divs (extra line break on close)
10346 Paragraphs inside divs (extra line break on open and close)
10363 Nesting tags, paragraphs on lines which begin with <div>
10367 <div></div><strong>A
10376 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10378 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10382 <blockquote>Line one
10384 Line two</blockquote>
10386 <blockquote>Line one
10387 Line two</blockquote>
10392 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10399 Line two</blockquote>
10404 Line two</blockquote>
10409 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10413 <blockquote>Line one
10418 <blockquote>Line one
10426 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10445 Paragraphs inside blockquotes/divs (no extra line breaks)
10447 <blockquote><div>Line one
10449 Line two</div></blockquote>
10451 <blockquote><div>Line one
10452 Line two</div></blockquote>
10457 Paragraphs inside blockquotes/divs (extra line break on open)
10462 Line two</div></blockquote>
10467 Line two</div></blockquote>
10472 Paragraphs inside blockquotes/divs (extra line break on close)
10474 <blockquote><div>Line one
10477 </div></blockquote>
10479 <blockquote><div>Line one
10482 </div></blockquote>
10487 Paragraphs inside blockquotes/divs (extra line break on open and close)
10493 </div></blockquote>
10499 </div></blockquote>
10504 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10506 wgLinkHolderBatchSize=0
10512 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10513 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10514 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10519 Free external link invading image caption
10521 [[Image:Foobar.jpg|thumb|http://x|hello]]
10523 <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>
10528 Bug 15196: localised external link numbers
10532 [http://en.wikipedia.org/]
10534 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10539 Multibyte character in padleft
10541 {{padleft:-Hello|7|Æ}}
10548 Multibyte character in padright
10550 {{padright:Hello-|7|Æ}}
10559 wgUseDynamicDates=1
10563 <p><span class="mw-formatted-date" title="2009-03-24"><a href="/index.php?title=2009&action=edit&redlink=1" class="new" title="2009 (page does not exist)">2009</a>-<a href="/index.php?title=March_24&action=edit&redlink=1" class="new" title="March 24 (page does not exist)">03-24</a></span>
10568 formatdate parser function
10570 {{#formatdate:2009-03-24}}
10572 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10577 formatdate parser function, with default format
10579 {{#formatdate:2009-03-24|mdy}}
10581 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10586 Linked date with autoformatting disabled
10588 wgUseDynamicDates=false
10592 <p><a href="/index.php?title=2009-03-24&action=edit&redlink=1" class="new" title="2009-03-24 (page does not exist)">2009-03-24</a>
10597 Spacing of numbers in formatted dates
10599 {{#formatdate:January 15}}
10601 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10606 Spacing of numbers in formatted dates (linked)
10608 wgUseDynamicDates=true
10612 <p><span class="mw-formatted-date" title="01-15"><a href="/index.php?title=January_15&action=edit&redlink=1" class="new" title="January 15 (page does not exist)">January 15</a></span>
10617 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
10619 language=nl title=[[MediaWiki:Common.css]]
10621 {{#formatdate:2009-03-24|dmy}}
10623 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10636 Edit comment with link
10640 I like the [[Main Page]] a lot
10642 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10646 Edit comment with link and link text
10650 I like the [[Main Page|best pages]] a lot
10652 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10656 Edit comment with link and link text with suffix
10660 I like the [[Main Page|best page]]s a lot
10662 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10666 Edit comment with section link (non-local, eg in history list)
10668 comment title=[[Main Page]]
10670 /* External links */ removed bogus entries
10672 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10676 Edit comment with section link and text before it (non-local, eg in history list)
10678 comment title=[[Main Page]]
10680 pre-comment text /* External links */ removed bogus entries
10682 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>
10686 Edit comment with section link (local, eg in diff view)
10688 comment local title=[[Main Page]]
10690 /* External links */ removed bogus entries
10692 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10696 Edit comment with subpage link (bug 14080)
10700 title=[[Subpage test]]
10702 Poked at a [[/subpage]] here...
10704 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10708 Edit comment with subpage link and link text (bug 14080)
10712 title=[[Subpage test]]
10714 Poked at a [[/subpage|neat little page]] here...
10716 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10720 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10723 title=[[Subpage test]]
10725 Poked at a [[/subpage]] here...
10727 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10731 Edit comment with bare anchor link (local, as on diff)
10735 title=[[Main Page]]
10739 <a href="#section">#section</a>
10743 Edit comment with bare anchor link (non-local, as on history)
10746 title=[[Main Page]]
10750 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10754 Anchor starting with underscore
10758 <p><a href="#_ref">One</a>
10763 Id starting with underscore
10765 <div id="_ref"></div>
10767 <div id="_ref"></div>
10772 Space normalisation on autocomment (bug 22784)
10775 title=[[Main Page]]
10777 /* __hello__world__ */
10779 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10783 percent-encoding and + signs in comments (Bug 26410)
10787 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10789 <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>
10793 Bad images - basic functionality
10802 Bad images - bug 16039: text after bad image disappears
10816 Verify that displaytitle works (bug #22501) no displaytitle
10820 wgAllowDisplayTitle=true
10821 wgRestrictDisplayTitle=false
10823 this is not the the title
10826 <p>this is not the the title
10831 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10836 wgAllowDisplayTitle=true
10837 wgRestrictDisplayTitle=false
10839 this is not the the title
10840 {{DISPLAYTITLE:whatever}}
10843 <p>this is not the the title
10848 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10853 wgAllowDisplayTitle=true
10854 wgRestrictDisplayTitle=true
10856 this is not the the title
10857 {{DISPLAYTITLE:whatever}}
10860 <p>this is not the the title
10865 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10870 wgAllowDisplayTitle=true
10871 wgRestrictDisplayTitle=true
10873 this is not the the title
10874 {{DISPLAYTITLE:screen}}
10877 <p>this is not the the title
10882 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10887 wgAllowDisplayTitle=false
10889 this is not the the title
10890 {{DISPLAYTITLE:screen}}
10893 <p>this is not the the title
10894 <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>
10899 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10904 wgAllowDisplayTitle=false
10906 this is not the the title
10909 <p>this is not the the title
10914 preload: check <noinclude> and <includeonly>
10918 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10924 preload: check <onlyinclude>
10928 Goodbye <onlyinclude>Hello world</onlyinclude>
10934 preload: can pass tags through if we want to
10938 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10940 <includeonly>Hello world</includeonly>
10944 preload: check that it doesn't try to do tricks
10948 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10950 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10954 Play a bit with r67090 and bug 3158
10958 <div style="width:50% !important"> </div>
10959 <div style="width:50% !important"> </div>
10960 <div style="width:50% !important"> </div>
10961 <div style="border : solid;"> </div>
10963 <div style="width:50% !important"> </div>
10964 <div style="width:50% !important"> </div>
10965 <div style="width:50% !important"> </div>
10966 <div style="border : solid;"> </div>
10971 HTML5 data attributes
10973 <span data-foo="bar">Baz</span>
10974 <p data-abc-def_hij="">Quuz</p>
10976 <p><span data-foo="bar">Baz</span>
10978 <p data-abc-def_hij="">Quuz</p>
10983 percent-encoding and + signs in internal links (Bug 26410)
10985 [[User:+%]] [[Page+title%]]
10986 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10987 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10988 [[%33%45]] [[%33%45+]]
10990 <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>
10991 <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>
10992 <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>
10993 <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>
10998 Special characters in embedded file links (bug 27679)
11000 [[File:Contains & ampersand.jpg]]
11001 [[File:Does not exist.jpg|Title with & ampersand]]
11003 <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>
11004 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11010 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11012 Text's been normalized?
11014 <p>Text's been normalized?
11019 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11021 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11023 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11028 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11030 [http://www.example.org/ ideograms]
11032 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11037 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11039 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11041 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11065 Bug 31098 Template which includes system messages which includes the template
11069 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11070 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11075 Deprecated presentational attributes are converted to css
11078 | valign=top align=left width=100 height=25% | Asdf
11080 <ul type="disc"></ul>
11084 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11086 <ul style="list-style-type: disc;"></ul>
11091 Bug31490 Turkish: ucfirst 'blah'
11102 Bug31490 Turkish: ucfirst 'ix'
11113 Bug31490 Turkish: lcfirst 'BLAH'
11124 Bug31490 Turkish: ucfırst (with a dotless i)
11130 <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>
11135 Bug31490 ucfırst (with a dotless i) with English language
11141 <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>
11146 Bug 26375: TOC with italics
11148 title=[[Main Page]]
11151 == ''Lost'' episodes ==
11153 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11155 <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>
11158 <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>
11163 Bug 26375: TOC with bold
11165 title=[[Main Page]]
11168 == '''should be bold''' then normal text ==
11170 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11172 <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>
11175 <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>
11180 Bug 33845: Headings become cursive in TOC when they contain an image
11182 title=[[Main Page]]
11185 == Image [[Image:foobar.jpg]] ==
11187 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11189 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11192 <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>
11197 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11199 title=[[Main Page]]
11202 == <blockquote>Quote</blockquote> ==
11204 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11206 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11209 <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>
11214 Unclosed tags in TOC
11216 title=[[Main Page]]
11220 <small>Hanc marginis exiguitas non caperet.</small>
11223 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11225 <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>
11228 <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>
11229 <p><small>Hanc marginis exiguitas non caperet.</small>
11235 Multiple tags in TOC
11238 == <i>Foo</i> <b>Bar</b> ==
11240 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11242 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11244 <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>
11245 <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>
11248 <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>
11249 <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>
11254 Tags with parameters in TOC
11257 == <sup class="in-h2">Hello</sup> ==
11259 == <sup class="a > b">Evilbye</sup> ==
11261 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11263 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11264 <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>
11267 <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>
11268 <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>
11273 span tags with directionality in TOC
11276 == <span dir="ltr">C++</span> ==
11278 == <span dir="rtl">זבנג!</span> ==
11280 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11282 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11284 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11286 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11288 <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>
11289 <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>
11290 <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>
11291 <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>
11292 <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>
11295 <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>
11296 <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>
11297 <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>
11298 <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>
11299 <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>
11306 == {{int:headline_sample}} ==
11310 Bug 32057: Title needed when expanding <h> nodes.
11312 title=[[Main Page]]
11316 <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>
11321 Strip marker in urlencode
11323 {{urlencode:x<nowiki/>y}}
11324 {{urlencode:x<nowiki/>y|wiki}}
11325 {{urlencode:x<nowiki/>y|path}}
11352 Strip marker in formatNum
11354 {{formatnum:1<nowiki/>2}}
11355 {{formatnum:1<nowiki/>2|R}}
11363 Strip marker in grammar
11367 {{grammar:elative|foo<nowiki/>bar}}
11374 Strip marker in padleft
11376 {{padleft:|2|x<nowiki/>y}}
11383 Strip marker in padright
11385 {{padright:|2|x<nowiki/>y}}
11392 Strip marker in anchorencode
11394 {{anchorencode:x<nowiki/>y}}
11401 nowiki inside link inside heading (bug 18295)
11403 ==[[foo|x<nowiki>y</nowiki>z]]==
11405 <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>
11410 new support for bdi element (bug 31817)
11412 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11414 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11419 Ignore pipe between table row attributes
11423 |- id=foo | style='color: red'
11431 <tr id="foo" style="color: red">
11438 Gallery override link with WikiLink (bug 34852)
11441 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11444 <ul class="gallery">
11445 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11446 <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>
11447 <div class="gallerytext">
11457 Gallery override link with absolute external link (bug 34852)
11460 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11463 <ul class="gallery">
11464 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11465 <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>
11466 <div class="gallerytext">
11476 Gallery override link with malicious javascript (bug 34852)
11479 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11482 <ul class="gallery">
11483 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11484 <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>
11485 <div class="gallerytext">
11495 Language parser function
11504 Padleft and padright as substr
11506 {{padleft:|3|abcde}}
11507 {{padright:|3|abcde}}
11515 Bug 34939 - Case insensitive link parsing ([HttP://])
11517 [HttP://MediaWiki.Org/]
11519 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11524 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11526 [HttP://MediaWiki.Org/ MediaWiki]
11528 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11533 Bug 34939 - Case insensitive link parsing (HttP://)
11535 HttP://MediaWiki.Org/
11537 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11542 ### Parsoids-specific tests
11543 ### Parsoid-PHP parser incompatibilities
11546 1. SOL-sensitive wikitext tokens as template-args
11560 #### The following section of tests are primarily to test
11561 #### wikitext escaping capabilities of Parsoid.
11562 #### A lot of the tests are disabled for the PHP parser either
11563 #### because of minor newline diffs or other reasons.
11564 #### As Parsoid serializer can handle newlines and other HTML
11565 #### more robustly, some of these tests might get reenabled
11566 #### for the PHP parser.
11568 #### --------------- Headings ---------------
11570 #### 1. Nested inside html <h1>=foo=</h1>
11571 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11572 #### 3. Nested inside html with wikitext split by html tags
11573 #### 4. No escape needed
11574 #### 5. Empty headings <h1></h1>
11575 #### 6. Heading chars in SOL context
11576 #### ----------------------------------------
11578 Headings: 0. Unnested
11580 <nowiki>=foo=</nowiki>
11582 <nowiki>=foo</nowiki>''a''=
11585 </p><p>=foo<i>a</i>=
11590 Headings: 1. Nested inside html
11594 =<nowiki>=foo=</nowiki>=
11595 ==<nowiki>=foo=</nowiki>==
11596 ===<nowiki>=foo=</nowiki>===
11597 ====<nowiki>=foo=</nowiki>====
11598 =====<nowiki>=foo=</nowiki>=====
11599 ======<nowiki>=foo=</nowiki>======
11610 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11615 <nowiki>*bar</nowiki>
11619 <nowiki>=bar=</nowiki>
11627 Headings: 3. Nested inside html with wikitext split by html tags
11631 =<nowiki>=</nowiki>'''bold'''foo==
11633 <h1>=<b>bold</b>foo=</h1>
11637 Headings: 4. No escaping needed (testing just h1 and h2)
11652 <h1><i>=</i>foo=</h1>
11657 Headings: 5. Empty headings
11661 =<nowiki></nowiki>=
11662 ==<nowiki></nowiki>==
11663 ===<nowiki></nowiki>===
11664 ====<nowiki></nowiki>====
11665 =====<nowiki></nowiki>=====
11666 ======<nowiki></nowiki>======
11677 Headings: 6. Heading chars in SOL context
11681 <!--cmt--><nowiki>=h1=</nowiki>
11687 #### --------------- Lists ---------------
11688 #### 0. Outside nests (*foo, etc.)
11689 #### 1. Nested inside html <ul><li>*foo</li></ul>
11690 #### 2. Inside definition lists
11691 #### 3. Only bullets at start should be escaped
11692 #### 4. No escapes needed
11693 #### 5. No unnecessary escapes
11694 #### 6. Escape bullets in SOL position
11695 #### 7. Escape bullets in a multi-line context
11696 #### ----------------------------------------
11699 Lists: 0. Outside nests
11701 <nowiki>*foo</nowiki>
11703 <nowiki>#foo</nowiki>
11711 Lists: 1. Nested inside html
11713 *<nowiki>*foo</nowiki>
11715 *<nowiki>#foo</nowiki>
11717 *<nowiki>:foo</nowiki>
11719 *<nowiki>;foo</nowiki>
11721 #<nowiki>*foo</nowiki>
11723 #<nowiki>#foo</nowiki>
11725 #<nowiki>:foo</nowiki>
11727 #<nowiki>;foo</nowiki>
11749 Lists: 2. Inside definition lists
11751 ;<nowiki>;foo</nowiki>
11753 ;<nowiki>:foo</nowiki>
11755 ;<nowiki>:foo</nowiki>
11758 :<nowiki>:foo</nowiki>
11773 Lists: 3. Only bullets at start of text should be escaped
11775 *<nowiki>*foo*bar</nowiki>
11777 *<nowiki>*foo</nowiki>''it''*bar
11781 <ul><li>*foo<i>it</i>*bar
11787 Lists: 4. No escapes needed
11799 <ul><li><i>foo</i>*bar
11801 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
11806 Lists: 5. No unnecessary escapes
11808 * bar <span><nowiki>[[foo]]</nowiki></span>
11810 *=bar <span><nowiki>[[foo]]</nowiki></span>
11812 *[[bar <span><nowiki>[[foo]]</nowiki></span>
11814 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
11816 *=bar <span>foo]]</span>=
11818 <ul><li> bar <span>[[foo]]</span>
11820 <ul><li>=bar <span>[[foo]]</span>
11822 <ul><li>[[bar <span>[[foo]]</span>
11824 <ul><li>]]bar <span>[[foo]]</span>
11826 <ul><li>=bar <span>foo]]</span>=
11832 Lists: 6. Escape bullets in SOL position
11836 <!--cmt--><nowiki>*foo</nowiki>
11843 Lists: 7. Escape bullets in a multi-line context
11853 #### --------------- HRs ---------------
11854 #### 1. Single line
11855 #### -----------------------------------
11858 HRs: 1. Single line
11863 <nowiki>----</nowiki>
11865 <nowiki>=foo=</nowiki>
11867 <nowiki>*foo</nowiki>
11874 #### --------------- Tables ---------------
11875 #### 1a. Simple example
11876 #### 1b. No escaping needed (!foo)
11877 #### 1c. No escaping needed (|foo)
11878 #### 1d. No escaping needed (|}foo)
11880 #### 2a. Nested in td (<td>foo|bar</td>)
11881 #### 2b. Nested in td (<td>foo||bar</td>)
11882 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
11884 #### 3a. Nested in th (<th>foo!bar</th>)
11885 #### 3b. Nested in th (<th>foo!!bar</th>)
11886 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
11890 #### 4c. No escaping needed
11891 #### --------------------------------------
11894 Tables: 1a. Simple example
11905 Tables: 1b. No escaping needed
11914 Tables: 1c. No escaping needed
11923 Tables: 1d. No escaping needed
11932 Tables: 2a. Nested in td
11937 |<nowiki>foo|bar</nowiki>
11947 Tables: 2b. Nested in td
11952 |<nowiki>foo||bar</nowiki>
11953 |''it''<nowiki>foo||bar</nowiki>
11958 </td><td><i>it</i>foo||bar
11964 Tables: 2c. Nested in td -- no escaping needed
11979 Tables: 3a. Nested in th
11994 Tables: 3b. Nested in th
11999 !<nowiki>foo!!bar</nowiki>
12009 Tables: 3c. Nested in th -- no escaping needed
12024 Tables: 4a. Escape -
12032 |<nowiki>-bar</nowiki>
12036 <tr><th>-bar</th></tr>
12037 <tr><td>-bar</td></tr>
12042 Tables: 4b. Escape +
12050 |<nowiki>+bar</nowiki>
12054 <tr><th>+bar</th></tr>
12055 <tr><td>+bar</td></tr>
12060 Tables: 4c. No escaping needed
12074 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12075 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12079 #### --------------- Links ---------------
12080 #### 1. Quote marks in link text
12081 #### 2. Wikilinks: Escapes needed
12082 #### 3. Wikilinks: No escapes needed
12083 #### 4. Extlinks: Escapes needed
12084 #### 5. Extlinks: No escapes needed
12085 #### --------------------------------------
12087 Links 1. Quote marks in link text
12091 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12093 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12097 Links 2. WikiLinks: Escapes needed
12101 [[Foo|<nowiki>[Foobar]</nowiki>]]
12102 [[Foo|<nowiki>Foobar]</nowiki>]]
12103 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12104 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12105 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12106 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12107 [[Foo|<nowiki>|Bar</nowiki>]]
12109 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12110 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12111 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12112 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12113 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12114 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12115 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12119 Links 3. WikiLinks: No escapes needed
12126 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12127 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12131 Links 4. ExtLinks: Escapes needed
12135 [http://google.com <nowiki>[google]</nowiki>]
12136 [http://google.com <nowiki>google]</nowiki>]
12138 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12139 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12143 Links 5. ExtLinks: No escapes needed
12147 [http://google.com [google]
12149 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12152 #### --------------- Quotes ---------------
12153 #### 1. Quotes inside <b> and <i>
12154 #### 2. Link fragments separated by <i> and <b> tags
12155 #### 3. Link fragments inside <i> and <b>
12156 #### --------------------------------------
12158 1. Quotes inside <b> and <i>
12160 ''<nowiki>'foo'</nowiki>''
12161 ''<nowiki>''foo''</nowiki>''
12162 ''<nowiki>'''foo'''</nowiki>''
12163 '''<nowiki>'foo'</nowiki>'''
12164 '''<nowiki>''foo''</nowiki>'''
12165 '''<nowiki>'''foo'''</nowiki>'''
12166 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12174 <b>foo'<i>bar'</i>baz</b>
12179 2. Link fragments separated by <i> and <b> tags
12181 [[''foo''<nowiki>hello]]</nowiki>
12183 [['''foo'''<nowiki>hello]]</nowiki>
12185 <p>[[<i>foo</i>hello]]
12186 </p><p>[[<b>foo</b>hello]]
12191 2. Link fragments inside <i> and <b>
12192 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12193 this is one of the shortcomings of this format)
12195 ''[[foo''<nowiki>]]</nowiki>
12197 '''[[foo'''<nowiki>]]</nowiki>
12200 </p><p><b>[[foo</b>]]
12204 #### --------------- Paragraphs ---------------
12205 #### 1. No unnecessary escapes
12206 #### --------------------------------------
12209 1. No unnecessary escapes
12211 bar <span><nowiki>[[foo]]</nowiki></span>
12213 =bar <span><nowiki>[[foo]]</nowiki></span>
12215 [[bar <span><nowiki>[[foo]]</nowiki></span>
12217 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12219 <nowiki>=bar </nowiki><span>foo]]</span>=
12221 <p>bar <span>[[foo]]</span>
12222 </p><p>=bar <span>[[foo]]</span>
12223 </p><p>[[bar <span>[[foo]]</span>
12224 </p><p>]]bar <span>[[foo]]</span>
12225 </p><p>=bar <span>foo]]</span>=
12229 #### --------------- PRE ------------------
12230 #### 1. Leading space in SOL context should be escaped
12231 #### --------------------------------------
12233 1. Leading space in SOL context should be escaped
12237 <nowiki> foo</nowiki>
12238 <!--cmt--><nowiki> foo</nowiki>
12245 #### --------------- HTML tags ---------------
12248 #### 3. multi-line html tag
12249 #### --------------------------------------
12255 <a href="http://google.com">google</a>
12257 <a href="http://google.com">google</a>
12263 <nowiki><div>foo</div>
12264 <div style="color:red">foo</div></nowiki>
12266 <p><div>foo</div>
12267 <div style="color:red">foo</div>
12272 3. multi-line html tag
12284 #### --------------- Others ---------------
12288 <nowiki>foo</nowiki>
12290 <p><nowiki>foo</nowiki>
12299 Try for 100% code coverage