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
6257 ### Inter-language links
6260 Inter-language links
6266 [[zh:食品]]
6268 es:Alimento fr:Nourriture zh:食品
6272 Duplicate interlanguage links (bug 24502)
6288 Basic section headings
6295 ===Smaller headline===
6298 <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>
6301 <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>
6304 <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>
6310 Section headings with TOC
6313 === Subheadline 1 ===
6314 ===== Skipping a level =====
6315 ====== Skipping a level ======
6319 ===Another headline===
6321 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6323 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6325 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6327 <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>
6329 <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>
6336 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6338 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6343 <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>
6344 <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>
6345 <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>
6346 <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>
6347 <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>
6350 <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>
6354 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6356 Handling of sections up to level 6 and beyond
6359 == Level 2 Heading==
6360 === Level 3 Heading===
6361 ==== Level 4 Heading====
6362 ===== Level 5 Heading=====
6363 ====== Level 6 Heading======
6364 ======= Level 7 Heading=======
6365 ======== Level 8 Heading========
6366 ========= Level 9 Heading=========
6367 ========== Level 10 Heading==========
6369 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6371 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6373 <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>
6375 <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>
6377 <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>
6379 <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>
6381 <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>
6382 <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>
6383 <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>
6384 <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>
6385 <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>
6398 <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>
6399 <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>
6400 <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>
6401 <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>
6402 <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>
6403 <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>
6404 <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>
6405 <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>
6406 <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>
6407 <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>
6412 TOC regression (bug 9764)
6416 ==== title 1.1.1 ====
6421 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6423 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6425 <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>
6427 <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>
6430 <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>
6433 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6435 <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>
6440 <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>
6441 <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>
6442 <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>
6443 <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>
6444 <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>
6445 <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>
6450 TOC with wgMaxTocLevel=3 (bug 6204)
6456 ==== title 1.1.1 ====
6461 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6463 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6465 <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>
6466 <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>
6469 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6471 <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>
6476 <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>
6477 <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>
6478 <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>
6479 <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>
6480 <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>
6481 <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>
6486 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6492 ====Section 1.1.1====
6493 ====Section 1.1.1.1====
6496 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6498 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6500 <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>
6503 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6506 <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>
6507 <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>
6508 <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>
6509 <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>
6510 <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>
6516 Resolving duplicate section names
6521 <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>
6522 <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>
6527 Resolving duplicate section names with differing case (bug 10721)
6532 <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>
6533 <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>
6545 Template with sections, __NOTOC__
6552 <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>
6553 <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>
6554 <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>
6555 <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>
6560 __NOEDITSECTION__ keyword
6566 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6567 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6572 Link inside a section heading
6574 ==Section with a [[Main Page|link]] in it==
6576 <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>
6581 TOC regression (bug 12077)
6588 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6590 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6592 <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>
6595 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6598 <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>
6599 <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>
6600 <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>
6605 BUG 1219 URL next to image (good)
6607 http://example.com [[Image:foobar.jpg]]
6609 <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>
6614 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6617 The line above must have a trailing space!
6620 But just in case it doesn't...
6622 <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>
6623 <p>The line above must have a trailing space!
6625 <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>
6626 <p>But just in case it doesn't...
6631 Header with special characters (bug 25462)
6633 The tooltips shall not show entities to the user (ie. be double escaped)
6650 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6652 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6654 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6655 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6656 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6657 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6658 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6661 <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>
6664 <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>
6667 <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>
6670 <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>
6673 <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>
6679 Headers with excess '=' characters
6680 (Are similar tests necessary beyond the 1st level?)
6684 =''italic'' heading==
6685 ==''italic'' heading=
6687 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6689 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6690 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6691 <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>
6692 <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>
6695 <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>
6696 <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>
6697 <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>
6698 <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>
6703 BUG 1219 URL next to image (broken)
6705 http://example.com[[Image:foobar.jpg]]
6707 <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>
6712 Bug 1186 news: in the middle of text
6714 http://en.wikinews.org/wiki/Wikinews:Workplace
6716 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6722 Namespaced link must have a title
6731 Namespaced link must have a title (bad fragment version)
6733 [[Project:#fragment]]
6735 <p>[[Project:#fragment]]
6741 div with no attributes
6743 <div>HTML rocks</div>
6745 <div>HTML rocks</div>
6750 div with double-quoted attribute
6752 <div id="rock">HTML rocks</div>
6754 <div id="rock">HTML rocks</div>
6759 div with single-quoted attribute
6761 <div id='rock'>HTML rocks</div>
6763 <div id="rock">HTML rocks</div>
6768 div with unquoted attribute
6770 <div id=rock>HTML rocks</div>
6772 <div id="rock">HTML rocks</div>
6777 div with illegal double attributes
6779 <div id="a" id="b">HTML rocks</div>
6781 <div id="b">HTML rocks</div>
6786 HTML multiple attributes correction
6788 <p class="error" class="awesome">Awesome!</p>
6790 <p class="awesome">Awesome!</p>
6795 Table multiple attributes correction
6798 !+ class="error" class="awesome"| status
6803 <th class="awesome"> status
6811 <DIV ID="x">HTML ROCKS</DIV>
6813 <div id="x">HTML ROCKS</div>
6819 text with amp in the middle of nowhere
6823 <p>Remember AT&T?
6828 text with character entity: eacute
6830 I always thought é was a cute letter.
6832 <p>I always thought é was a cute letter.
6837 text with undefined character entity: xacute
6839 I always thought &xacute; was a cute letter.
6841 <p>I always thought &xacute; was a cute letter.
6853 [[Media:Foobar.jpg]]
6855 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6860 Media link with text
6862 [[Media:Foobar.jpg|A neat file to look at]]
6864 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6868 # FIXME: this is still bad HTML tag nesting
6870 Media link with nasty text
6871 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6873 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6875 <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>
6880 Media link to nonexistent file (bug 1702)
6882 [[Media:No such.jpg]]
6884 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6889 Image link to nonexistent file (bug 1850 - good)
6891 [[Image:No such.jpg]]
6893 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6898 :Image link to nonexistent file (bug 1850 - bad)
6900 [[:Image:No such.jpg]]
6902 <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>
6909 Character reference normalization in link text (bug 1938)
6911 [[Main Page|this&that]]
6913 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6920 Test for unicode normalization
6922 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6926 (bug 19451) Links should refer to the normalized form.
6934 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6935 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6936 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6937 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6938 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6943 Empty attribute crash test (bug 2067)
6945 <font color="">foo</font>
6947 <p><font color="">foo</font>
6952 Empty attribute crash test single-quotes (bug 2067)
6954 <font color=''>foo</font>
6956 <p><font color="">foo</font>
6961 Attribute test: equals, then nothing
6963 <font color=>foo</font>
6970 Attribute test: unquoted value
6972 <font color=x>foo</font>
6974 <p><font color="x">foo</font>
6979 Attribute test: unquoted but illegal value (hash)
6981 <font color=#x>foo</font>
6983 <p><font color="#x">foo</font>
6988 Attribute test: no value
6990 <font color>foo</font>
6992 <p><font color="color">foo</font>
6997 Bug 2095: link with three closing brackets
7001 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7006 Bug 2095: link with pipe and three closing brackets
7010 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7015 Bug 2095: link with pipe and three closing brackets, version 2
7017 [[Main Page|[http://example.com/]]]
7019 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7029 Template:Dangerous attribute
7031 " onmouseover="alert(document.cookie)
7035 Template:Dangerous style attribute
7037 border-size: expression(alert(document.cookie))
7043 <div style="float: right; {{{1}}}">Magic div</div>
7047 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7049 <div title="{{test}}"></div>
7051 <div title="This is a test template"></div>
7056 Bug 2304: HTML attribute safety (dangerous template; 2309)
7058 <div title="{{dangerous attribute}}"></div>
7060 <div title=""></div>
7065 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7067 <div style="{{dangerous style attribute}}"></div>
7069 <div style="/* insecure input */"></div>
7074 Bug 2304: HTML attribute safety (safe parameter; 2309)
7076 {{div style|width: 200px}}
7078 <div style="float: right; width: 200px">Magic div</div>
7083 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7085 {{div style|width: expression(alert(document.cookie))}}
7087 <div style="/* insecure input */">Magic div</div>
7092 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7094 {{div style|"><script>alert(document.cookie)</script>}}
7096 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7101 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7103 {{div style|" ><script>alert(document.cookie)</script>}}
7105 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7110 Bug 2304: HTML attribute safety (link)
7112 <div title="[[Main Page]]"></div>
7114 <div title="[[Main Page]]"></div>
7119 Bug 2304: HTML attribute safety (italics)
7121 <div title="''foobar''"></div>
7123 <div title="''foobar''"></div>
7128 Bug 2304: HTML attribute safety (bold)
7130 <div title="'''foobar'''"></div>
7132 <div title="'''foobar'''"></div>
7138 Bug 2304: HTML attribute safety (ISBN)
7140 <div title="ISBN 1234567890"></div>
7142 <div title="ISBN 1234567890"></div>
7147 Bug 2304: HTML attribute safety (RFC)
7149 <div title="RFC 1234"></div>
7151 <div title="RFC 1234"></div>
7156 Bug 2304: HTML attribute safety (PMID)
7158 <div title="PMID 1234567890"></div>
7160 <div title="PMID 1234567890"></div>
7165 Bug 2304: HTML attribute safety (web link)
7167 <div title="http://example.com/"></div>
7169 <div title="http://example.com/"></div>
7174 Bug 2304: HTML attribute safety (named web link)
7176 <div title="[http://example.com/ link]"></div>
7178 <div title="[http://example.com/ link]"></div>
7183 Bug 3244: HTML attribute safety (extension; safe)
7185 <div style="<nowiki>background:blue</nowiki>"></div>
7187 <div style="background:blue"></div>
7192 Bug 3244: HTML attribute safety (extension; unsafe)
7194 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7196 <div style="/* insecure input */"></div>
7200 # More MSIE fun discovered by Tom Gilder
7203 MSIE CSS safety test: spurious slash
7205 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7207 <div style="/* insecure input */">evil</div>
7212 MSIE CSS safety test: hex code
7214 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7216 <div style="/* insecure input */">evil</div>
7221 MSIE CSS safety test: comment in url
7223 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7225 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7230 MSIE CSS safety test: comment in expression
7232 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7234 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7240 Table attribute legitimate extension
7243 !+ style="<nowiki>color:blue</nowiki>"| status
7248 <th style="color:blue"> status
7254 Table attribute safety
7257 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7262 <th style="/* insecure input */"> status
7268 CSS line continuation 1
7270 <div style="background-image: u\ rl(test.jpg);"></div>
7272 <div style="/* insecure input */"></div>
7277 CSS line continuation 2
7279 <div style="background-image: u\ rl(test.jpg); "></div>
7281 <div style="/* insecure input */"></div>
7292 Expansion of multi-line templates in attribute values (bug 6255)
7294 <div style="background: {{identity|#00FF00}}">-</div>
7296 <div style="background: #00FF00">-</div>
7302 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7304 <div style="background:
7307 <div style="background: #00FF00">-</div>
7312 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7314 <div style="background: #00FF00">-</div>
7316 <div style="background: #00FF00">-</div>
7321 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7324 Parser hook: empty input
7337 Parser hook: empty input using terminated empty elements
7350 Parser hook: empty input using terminated empty elements (space before)
7363 Parser hook: basic input
7377 Parser hook: case insensitive
7391 Parser hook: case insensitive, redux
7404 Parser hook: nested tags
7408 <tag><tag></tag></tag>
7419 Parser hook: basic arguments
7421 <tag width=200 height = "100" depth = '50' square></tag>
7429 'square' => 'square',
7436 Parser hook: argument containing a forward slash (bug 5344)
7438 <tag filename='/tmp/bla'></tag>
7443 'filename' => '/tmp/bla',
7450 Parser hook: empty input using terminated empty elements (bug 2374)
7463 # </tag> should be output literally since there is no matching tag that begins it
7465 Parser hook: basic arguments using terminated empty elements (bug 2374)
7467 <tag width=200 height = "100" depth = '50' square/>
7477 'square' => 'square',
7486 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7490 Parser hook: static parser hook not inside a comment
7492 <statictag>hello, world</statictag>
7493 <statictag action=flush/>
7501 Parser hook: static parser hook inside a comment
7503 <!-- <statictag>hello, world</statictag> -->
7504 <statictag action=flush/>
7510 # Nested template calls; this case was broken by Parser.php rev 1.506,
7514 Template:One-parameter
7516 (My parameter is: {{{1}}})
7520 Template:Map-one-parameter
7526 Nested template calls
7528 {{Map-one-parameter|One-parameter|param}}
7530 <p>(My parameter is: param)
7539 Sanitizer: Closing of open tags
7541 <s></s><table></table>
7543 <s></s><table></table>
7548 Sanitizer: Closing of open but not closed tags
7557 Sanitizer: Closing of closed but not open tags
7566 Sanitizer: Closing of closed but not open table tags
7568 Table not started</td></tr></table>
7570 <p>Table not started</td></tr></table>
7575 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7577 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7579 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7584 Sanitizer: Validating the contents of the id attribute (bug 4515)
7590 Something, but definitely not <br id="9" />...
7594 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7598 <br id="foo" /><br id="foo" />
7600 Something need to be done. foo-2 ?
7604 Language converter: output gets cut off unexpectedly (bug 5757)
7608 this bit is safe: }-
7610 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7612 then we get cut off here: }-
7614 all additional text is vanished
7616 <p>this bit is safe: }-
7617 </p><p>but if we add a conversion instance: xxx
7618 </p><p>then we get cut off here: }-
7619 </p><p>all additional text is vanished
7624 Self closed html pairs (bug 5487)
7627 <center><font id="bug" />Centered text</center>
7628 <div><font id="bug2" />In div text</div>
7630 <center><font id="bug" />Centered text</center>
7631 <div><font id="bug2" />In div text</div>
7640 Punctuation: nbsp before exclamation
7644 <p>C'est grave !
7649 Punctuation: CSS !important (bug 11874)
7651 <div style="width:50% !important">important</div>
7653 <div style="width:50% !important">important</div>
7658 Punctuation: CSS ! important (bug 11874; with space after)
7660 <div style="width:50% ! important">important</div>
7662 <div style="width:50% ! important">important</div>
7668 HTML bullet list, closed tags (bug 5497)
7683 HTML bullet list, unclosed tags (bug 5497)
7700 HTML ordered list, closed tags (bug 5497)
7715 HTML ordered list, unclosed tags (bug 5497)
7732 HTML nested bullet list, closed tags (bug 5497)
7757 HTML nested bullet list, open tags (bug 5497)
7782 HTML nested ordered list, closed tags (bug 5497)
7807 HTML nested ordered list, open tags (bug 5497)
7832 HTML ordered list item with parameters oddity
7834 <ol><li id="fragment">One</li></ol>
7836 <ol><li id="fragment">One</li></ol>
7841 bug 5918: autonumbering
7843 [http://first/] [http://second] [ftp://ftp]
7847 [mailto:enclosed@mail.tld With target]
7849 [mailto:enclosed@mail.tld]
7851 mailto:inline@mail.tld
7853 <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>
7854 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7855 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7856 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7857 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7863 # Security and HTML correctness
7864 # From Nick Jenkins' fuzz testing
7868 Fuzz testing: Parser13
7883 Fuzz testing: Parser14
7888 <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>
7889 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7891 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7898 Fuzz testing: Parser14-table
7903 <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>
7904 <table style="__TOC__">
7910 # Known to produce bogus xml (extra </td>)
7912 Fuzz testing: Parser16
7932 Fuzz testing: Parser21
7935 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7940 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7950 Fuzz testing: Parser22
7952 http://===r:::https://b
7956 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7964 # Known to produce bad XML for now
7966 Fuzz testing: Parser24
7973 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7974 <br style="onmouseover='alert(document.cookie);' " />
7976 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7981 <u class="|">}}}} >
7982 <br style="onmouseover='alert(document.cookie);'" />
7984 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7993 # Note: the current result listed for this is not what the original one was,
7994 # but the original bug was JavaScript injection, which is fixed in any case.
7995 # It's not clear that the original result listed was any more correct than the
7996 # current one. Original result:
7999 # <li class="||">
8000 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8002 Fuzz testing: Parser25 (bug 6055)
8008 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8010 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8015 Fuzz testing: URL adjacent extension (with space, clean)
8018 http://example.com <nowiki>junk</nowiki>
8020 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8025 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8028 http://example.com<nowiki>junk</nowiki>
8030 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8035 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8038 http://example.com<pre>junk</pre>
8040 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8045 Fuzz testing: image with bogus manual thumbnail
8047 [[Image:foobar.jpg|thumbnail= ]]
8049 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8054 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8056 <pre dir=" "></pre>
8058 <pre dir=" "></pre>
8063 Parsing optional HTML elements (Bug 6171)
8068 <td> Some tabular data</td>
8069 <td> More tabular data ...
8070 <td> And yet som tabular data</td>
8076 <td> Some tabular data</td>
8077 <td> More tabular data ...
8078 </td><td> And yet som tabular data</td>
8085 Correct handling of <td>, <tr> (Bug 6171)
8090 <td> Some tabular data</td>
8091 <td> More tabular data ...</td>
8092 <td> And yet som tabular data</td>
8098 <td> Some tabular data</td>
8099 <td> More tabular data ...</td>
8100 <td> And yet som tabular data</td>
8108 Parsing crashing regression (fr:JavaScript)
8112 <p></body></x>
8117 Inline wiki vs wiki block nesting
8123 <p><b>Bold paragraph</b>
8124 </p><p>New wiki paragraph
8129 Inline HTML vs wiki block nesting
8137 <p><b>Bold paragraph</b>
8138 </p><p>New wiki paragraph
8142 # Original result was this:
8143 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8145 # While that might be marginally more intuitive, maybe, the six-apostrophe
8146 # construct is clearly pathological and the result stated here (which is what
8147 # the parser actually does) is about as reasonable as anything.
8149 Mixing markup for italics and bold
8152 '''bold''''''bold''bolditalics'''''
8154 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8162 Article for special page transclusion test
8166 Special page transclusion
8169 {{Special:Prefixindex/Xyzzyx}}
8171 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8176 Special page transclusion twice (bug 5021)
8179 {{Special:Prefixindex/Xyzzyx}}
8180 {{Special:Prefixindex/Xyzzyx}}
8182 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8183 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8188 Transclusion of default MediaWiki message
8190 {{MediaWiki:Mainpage}}
8197 Transclusion of nonexistent MediaWiki message
8199 {{MediaWiki:Mainpagexxx}}
8201 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8206 Transclusion of MediaWiki message with underscore
8208 {{MediaWiki:history_short}}
8215 Transclusion of MediaWiki message with space
8217 {{MediaWiki:history short}}
8224 Invalid header with following text
8234 Section extraction test (section 0)
8254 Section extraction test (section 1)
8276 Section extraction test (section 2)
8297 Section extraction test (section 3)
8317 Section extraction test (section 4)
8341 Section extraction test (section 5)
8361 Section extraction test (section 6)
8382 Section extraction test (section 7)
8402 Section extraction test (section 8)
8422 Section extraction test (section 9)
8443 Section extraction test (section 10)
8463 Section extraction test (nonexistent section 11)
8482 Section extraction test with bogus heading (section 1)
8487 ==bogus== not a legal section
8491 ==bogus== not a legal section
8495 Section extraction test with bogus heading (section 2)
8500 ==bogus== not a legal section
8507 Section extraction test with comment after heading (section 1)
8519 Section extraction test with comment after heading (section 2)
8531 Section extraction test with bogus <nowiki> heading (section 1)
8536 ==bogus== <nowiki>not a legal section</nowiki>
8540 ==bogus== <nowiki>not a legal section</nowiki>
8544 Section extraction test with bogus <nowiki> heading (section 2)
8549 ==bogus== <nowiki>not a legal section</nowiki>
8556 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8557 # instead of respecting commented sections
8559 Section extraction prefixed by comment (section 1)
8570 Section extraction prefixed by comment (section 2)
8581 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8582 # instead of respecting HTML-style headings
8584 Section extraction, mixed wiki and html (section 1)
8600 Section extraction, mixed wiki and html (section 2)
8616 # Formerly testing for bug 3342
8618 Section extraction, heading surrounded by <noinclude>
8622 <noinclude>==unmarked==</noinclude>
8628 # Test behaviour of bug 19910
8630 Sectiion with all-equals
8635 The line above must have a trailing space
8638 But just in case it doesn't...
8642 But just in case it doesn't...
8646 Section replacement test (section 0)
8677 Section replacement test (section 1)
8706 Section replacement test (section 2)
8736 Section replacement test (section 3)
8767 Section replacement test (section 4)
8794 Section replacement test (section 5)
8825 Section replacement test (section 6)
8855 Section replacement test (section 7)
8886 Section replacement test (section 8)
8917 Section replacement test (section 9)
8946 Section replacement test (section 10)
8976 Section replacement test with initial whitespace (bug 13728)
8980 Preformatted initial line
8984 Preformatted initial line
8991 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9003 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9016 Section extraction, <pre> around bogus header (bug 10309)
9033 Section replacement, <pre> around bogus header (bug 10309)
9035 noxml replace=2,"xxx"
9056 Handling of 
 in URLs
9060 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9067 5 quotes, code coverage +1 line
9074 Special:Search page linking.
9078 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9093 * {{SUBJECTPAGENAME}}
9094 * {{SUBJECTPAGENAMEE}}
9101 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9103 <ul><li> Parser test
9104 </li><li> Parser test
9105 </li><li> Parser test
9106 </li><li> Parser_test
9107 </li><li> Parser test
9108 </li><li> Parser_test
9109 </li><li> Talk:Parser test
9110 </li><li> Talk:Parser_test
9111 </li><li> Parser test
9112 </li><li> Parser_test
9119 </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>
9123 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9133 image4 |300px| centre
9134 image5.svg| http://///////
9139 <ul class="gallery">
9140 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9141 <div style="height: 150px;">Image1.png</div>
9142 <div class="gallerytext">
9145 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9146 <div style="height: 150px;">Image2.gif</div>
9147 <div class="gallerytext">
9152 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9153 <div style="height: 150px;">Image3</div>
9154 <div class="gallerytext">
9157 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9158 <div style="height: 150px;">Image4</div>
9159 <div class="gallerytext">
9164 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9165 <div style="height: 150px;">Image5.svg</div>
9166 <div class="gallerytext">
9167 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9171 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9172 <div style="height: 150px;">* image6</div>
9173 <div class="gallerytext">
9181 Gallery (with options)
9183 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9184 File:Nonexistant.jpg|caption
9185 File:Nonexistant.jpg
9186 image:foobar.jpg|some '''caption''' [[Main Page]]
9188 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9191 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9192 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9193 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9194 <div style="height: 70px;">Nonexistant.jpg</div>
9195 <div class="gallerytext">
9200 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9201 <div style="height: 70px;">Nonexistant.jpg</div>
9202 <div class="gallerytext">
9205 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9206 <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>
9207 <div class="gallerytext">
9208 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9212 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9213 <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>
9214 <div class="gallerytext">
9217 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9218 <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>
9219 <div class="gallerytext">
9229 Gallery with wikitext inside caption
9232 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9233 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9236 <ul class="gallery">
9237 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9238 <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>
9239 <div class="gallerytext">
9240 <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>
9244 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9245 <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>
9246 <div class="gallerytext">
9247 <p>This is a test template
9256 gallery (with showfilename option)
9258 <gallery showfilename>
9259 File:Nonexistant.jpg|caption
9260 File:Nonexistant.jpg
9261 image:foobar.jpg|some '''caption''' [[Main Page]]
9265 <ul class="gallery">
9266 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9267 <div style="height: 150px;">Nonexistant.jpg</div>
9268 <div class="gallerytext">
9269 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9274 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9275 <div style="height: 150px;">Nonexistant.jpg</div>
9276 <div class="gallerytext">
9277 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9281 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9282 <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>
9283 <div class="gallerytext">
9284 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9285 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9289 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9290 <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>
9291 <div class="gallerytext">
9292 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9301 Gallery (with namespace-less filenames)
9304 File:Nonexistant.jpg
9310 <ul class="gallery">
9311 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9312 <div style="height: 150px;">Nonexistant.jpg</div>
9313 <div class="gallerytext">
9316 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9317 <div style="height: 150px;">Nonexistant.jpg</div>
9318 <div class="gallerytext">
9321 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9322 <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>
9323 <div class="gallerytext">
9326 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9327 <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>
9328 <div class="gallerytext">
9336 HTML Hex character encoding (spells the word "JavaScript")
9338 JavaScript
9340 <p>JavaScript
9345 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9349 <p>&#xsee;&#XSEE;
9354 HTML Hex character encoding mixed case
9363 __FORCETOC__ override
9375 ISBN 978-0-1234-56 789
9377 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9382 ISBN followed by 5 spaces
9393 ISBN ISBN 1234567890
9395 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9400 Bug 22905: <abbr> followed by ISBN followed by </a>
9402 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9404 <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>
9413 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9418 Double RFC with a wiki link
9422 <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>
9431 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9436 Centre-aligned image
9438 [[Image:foobar.jpg|centre]]
9440 <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>
9447 [[Image:foobar.jpg|none]]
9449 <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>
9454 Width + Height sized image (using px) (height is ignored)
9456 [[Image:foobar.jpg|640x480px]]
9458 <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>
9463 Width-sized image (using px, no following whitespace)
9465 [[Image:foobar.jpg|640px]]
9467 <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>
9472 Width-sized image (using px, with following whitespace - test regression from r39467)
9474 [[Image:foobar.jpg|640px ]]
9476 <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>
9481 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9483 [[Image:foobar.jpg| 640px]]
9485 <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>
9490 Another italics / bold test
9498 # Note the results may be incorrect, as parserTest output included this:
9499 # XML error: Mismatched tag at byte 6120:
9500 # ...<dd> </dt></dl> </dd...
9508 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9519 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9521 Images with the "|" character in the comment
9523 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9525 <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>
9530 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9532 <html><script>alert(1);</script></html>
9534 <p><html><script>alert(1);</script></html>
9539 HTML with raw HTML ($wgRawHtml==true)
9543 <html><script>alert(1);</script></html>
9545 <p><script>alert(1);</script>
9550 Parents of subpages, one level up
9552 subpage title=[[Subpage test/L1/L2/L3]]
9556 <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>
9562 Parents of subpages, one level up, not named
9564 subpage title=[[Subpage test/L1/L2/L3]]
9568 <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>
9575 Parents of subpages, two levels up
9577 subpage title=[[Subpage test/L1/L2/L3]]
9583 <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
9584 </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>
9589 Parents of subpages, two levels up, without trailing slash or name.
9591 subpage title=[[Subpage test/L1/L2/L3]]
9600 Parents of subpages, two levels up, with lots of extra trailing slashes.
9602 subpage title=[[Subpage test/L1/L2/L3]]
9606 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9611 Definition list code coverage
9617 <dl><dt> title  </dt><dd> def
9618 </dd><dt> title </dt><dd> def
9619 </dd><dt>title</dt><dd> def
9625 Don't fall for the self-closing div
9627 <div>hello world</div/>
9629 <div>hello world</div>
9638 <p>[[:Template:Msg]]
9647 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9651 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9653 Always escape literal '>' in output, not just after '<'
9667 <p>This is a test template
9668 This is a test template
9680 Inclusion of !userCanEdit() content
9684 <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>
9690 Out-of-order TOC heading levels
9699 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9701 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9703 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9704 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9707 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9709 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9710 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9715 <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>
9716 <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>
9717 <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>
9718 <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>
9719 <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>
9720 <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>
9726 ISBN with a dummy number
9736 ISBN with space-delimited number
9740 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9746 ISBN with multiple spaces, no number
9765 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9766 </p><p>ISBN 12345678901
9772 ISBN with trailing year (bug 8110)
9774 ISBN 1-234-56789-0 - 2006
9776 ISBN 1 234 56789 0 - 2006
9778 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9779 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9787 {{anchorencode:foo bar©#%n}}
9789 <p>foo_bar.C2.A9.23.25n
9794 anchorencode trims spaces
9796 {{anchorencode: __pretty__please__}}
9803 anchorencode deals with links
9805 {{anchorencode: [[hello|world]] [[hi]]}}
9812 anchorencode deals with templates
9814 {{anchorencode: {{Foo}} }}
9821 anchorencode encodes like the TOC generator: (bug 18431)
9823 === _ +:.3A%3A&&]] ===
9824 {{anchorencode: _ +:.3A%3A&&]] }}
9827 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9828 <p>.2B:.3A.253A.26.26.5D.5D
9832 # Expected output in the following test is not necessarily expected (there
9833 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9834 # only testing for well-formedness.
9836 Bug 6200: blockquotes and paragraph formatting
9856 Bug 8293: Use of center tag ruins paragraph formatting
9878 ### Language variants related tests
9881 Self-link in language variants
9883 title=[[Dunav]] language=sr
9885 Both [[Dunav]] and [[Дунав]] are names for this river.
9887 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9893 Link to pages in language variants
9897 Main Page can be written as [[Маин Паге]]
9899 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9905 Multiple links to pages in language variants
9909 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9911 <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>.
9917 Simple template in language variants
9923 <p>This is a test template
9929 Template with explicit namespace in language variants
9935 <p>This is a test template
9941 Basic test for template parameter in language variants
9945 {{парамтест|param=foo}}
9947 <p>This is a test template with parameter foo
9953 Simple category in language variants
9957 [[Category:МедиаWики Усер'с Гуиде]]
9959 <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>
9964 Stripping -{}- tags (language variants)
9968 Latin proverb: -{Ne nuntium necare}-
9970 <p>Latin proverb: Ne nuntium necare
9976 Prevent conversion with -{}- tags (language variants)
9978 language=sr variant=sr-ec
9980 Latinski: -{Ne nuntium necare}-
9982 <p>Латински: Ne nuntium necare
9988 Prevent conversion of text with -{}- tags (language variants)
9990 language=sr variant=sr-ec
9992 Latinski: -{Ne nuntium necare}-
9994 <p>Латински: Ne nuntium necare
10000 Prevent conversion of links with -{}- tags (language variants)
10002 language=sr variant=sr-ec
10006 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10012 -{}- tags within headlines (within html for parserConvert())
10014 language=sr variant=sr-ec
10018 <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>
10024 Explicit definition of language variant alternatives
10026 language=zh variant=zh-tw
10028 -{zh:China;zh-tw:Taiwan}-, not China
10030 <p>Taiwan, not China
10036 Explicit session-wise language variant mapping (A flag and - flag)
10038 language=zh variant=zh-tw
10040 Taiwan is not China.
10041 But -{A|zh:China;zh-tw:Taiwan}- is China,
10042 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10043 and -{China}- is China.
10045 <p>Taiwan is not China.
10046 But Taiwan is Taiwan,
10047 (This should be stripped!)
10048 and China is China.
10053 Explicit session-wise language variant mapping (H flag for hide)
10055 language=zh variant=zh-tw
10057 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10060 <p>(This should be stripped!)
10066 Adding explicit conversion rule for title (T flag)
10068 language=zh variant=zh-tw showtitle
10070 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10073 <p>Should be stripped!
10078 Testing that changing the language variant here in the tests actually works
10080 language=zh variant=zh showtitle
10082 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10085 <p>Should be stripped!
10090 Bug 24072: more test on conversion rule for title
10092 language=zh variant=zh-tw showtitle
10094 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10095 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10098 <p>This should be stripped!
10099 This won't take interferes with the title rule.
10104 Raw output of variant escape tags (R flag)
10106 language=zh variant=zh-tw
10108 Raw: -{R|zh:China;zh-tw:Taiwan}-
10110 <p>Raw: zh:China;zh-tw:Taiwan
10115 Nested using of manual convert syntax
10117 language=zh variant=zh-hk
10119 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10121 <p>Nested: Hello Hong Kong!
10126 Do not convert roman numbers to language variants
10128 language=sr variant=sr-ec
10132 <p>Фридрих IV је цар.
10137 Unclosed language converter markup "-{"
10148 Don't convert raw rule "-{R|=>}-" to "=>"
10165 Bug 529: Uncovered bullet
10176 Bug 529: Uncovered table already at line-start
10199 Bug 529: Uncovered bullet in parser function result
10201 * Foo {{lc:{{bullet}} }}
10210 Bug 5678: Double-parsed template argument
10212 {{lc:{{{1}}}|hello}}
10219 Bug 5678: Double-parsed template invocation
10221 {{lc:{{paramtest {{!}} param = hello }} }}
10223 <p>{{paramtest | param = hello }}
10228 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10231 title=[[Main Page]]
10233 {{PRVNÍVELKÉ:ěščř}}
10234 {{prvnívelké:ěščř}}
10254 Morwen/13: Unclosed link followed by heading
10261 <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>
10266 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10273 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10278 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10285 <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>
10300 Paragraphs inside divs (no extra line breaks)
10312 Paragraphs inside divs (extra line break on open)
10327 Paragraphs inside divs (extra line break on close)
10342 Paragraphs inside divs (extra line break on open and close)
10359 Nesting tags, paragraphs on lines which begin with <div>
10363 <div></div><strong>A
10372 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10374 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10378 <blockquote>Line one
10380 Line two</blockquote>
10382 <blockquote>Line one
10383 Line two</blockquote>
10388 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10395 Line two</blockquote>
10400 Line two</blockquote>
10405 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10409 <blockquote>Line one
10414 <blockquote>Line one
10422 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10441 Paragraphs inside blockquotes/divs (no extra line breaks)
10443 <blockquote><div>Line one
10445 Line two</div></blockquote>
10447 <blockquote><div>Line one
10448 Line two</div></blockquote>
10453 Paragraphs inside blockquotes/divs (extra line break on open)
10458 Line two</div></blockquote>
10463 Line two</div></blockquote>
10468 Paragraphs inside blockquotes/divs (extra line break on close)
10470 <blockquote><div>Line one
10473 </div></blockquote>
10475 <blockquote><div>Line one
10478 </div></blockquote>
10483 Paragraphs inside blockquotes/divs (extra line break on open and close)
10489 </div></blockquote>
10495 </div></blockquote>
10500 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10502 wgLinkHolderBatchSize=0
10508 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10509 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10510 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10515 Free external link invading image caption
10517 [[Image:Foobar.jpg|thumb|http://x|hello]]
10519 <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>
10524 Bug 15196: localised external link numbers
10528 [http://en.wikipedia.org/]
10530 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10535 Multibyte character in padleft
10537 {{padleft:-Hello|7|Æ}}
10544 Multibyte character in padright
10546 {{padright:Hello-|7|Æ}}
10555 wgUseDynamicDates=1
10559 <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>
10564 formatdate parser function
10566 {{#formatdate:2009-03-24}}
10568 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10573 formatdate parser function, with default format
10575 {{#formatdate:2009-03-24|mdy}}
10577 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10582 Linked date with autoformatting disabled
10584 wgUseDynamicDates=false
10588 <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>
10593 Spacing of numbers in formatted dates
10595 {{#formatdate:January 15}}
10597 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10602 Spacing of numbers in formatted dates (linked)
10604 wgUseDynamicDates=true
10608 <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>
10613 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
10615 language=nl title=[[MediaWiki:Common.css]]
10617 {{#formatdate:2009-03-24|dmy}}
10619 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10632 Edit comment with link
10636 I like the [[Main Page]] a lot
10638 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10642 Edit comment with link and link text
10646 I like the [[Main Page|best pages]] a lot
10648 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10652 Edit comment with link and link text with suffix
10656 I like the [[Main Page|best page]]s a lot
10658 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10662 Edit comment with section link (non-local, eg in history list)
10664 comment title=[[Main Page]]
10666 /* External links */ removed bogus entries
10668 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10672 Edit comment with section link and text before it (non-local, eg in history list)
10674 comment title=[[Main Page]]
10676 pre-comment text /* External links */ removed bogus entries
10678 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>
10682 Edit comment with section link (local, eg in diff view)
10684 comment local title=[[Main Page]]
10686 /* External links */ removed bogus entries
10688 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10692 Edit comment with subpage link (bug 14080)
10696 title=[[Subpage test]]
10698 Poked at a [[/subpage]] here...
10700 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10704 Edit comment with subpage link and link text (bug 14080)
10708 title=[[Subpage test]]
10710 Poked at a [[/subpage|neat little page]] here...
10712 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10716 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10719 title=[[Subpage test]]
10721 Poked at a [[/subpage]] here...
10723 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10727 Edit comment with bare anchor link (local, as on diff)
10731 title=[[Main Page]]
10735 <a href="#section">#section</a>
10739 Edit comment with bare anchor link (non-local, as on history)
10742 title=[[Main Page]]
10746 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10750 Anchor starting with underscore
10754 <p><a href="#_ref">One</a>
10759 Id starting with underscore
10761 <div id="_ref"></div>
10763 <div id="_ref"></div>
10768 Space normalisation on autocomment (bug 22784)
10771 title=[[Main Page]]
10773 /* __hello__world__ */
10775 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10779 percent-encoding and + signs in comments (Bug 26410)
10783 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10785 <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>
10789 Bad images - basic functionality
10798 Bad images - bug 16039: text after bad image disappears
10812 Verify that displaytitle works (bug #22501) no displaytitle
10816 wgAllowDisplayTitle=true
10817 wgRestrictDisplayTitle=false
10819 this is not the the title
10822 <p>this is not the the title
10827 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10832 wgAllowDisplayTitle=true
10833 wgRestrictDisplayTitle=false
10835 this is not the the title
10836 {{DISPLAYTITLE:whatever}}
10839 <p>this is not the the title
10844 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10849 wgAllowDisplayTitle=true
10850 wgRestrictDisplayTitle=true
10852 this is not the the title
10853 {{DISPLAYTITLE:whatever}}
10856 <p>this is not the the title
10861 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10866 wgAllowDisplayTitle=true
10867 wgRestrictDisplayTitle=true
10869 this is not the the title
10870 {{DISPLAYTITLE:screen}}
10873 <p>this is not the the title
10878 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10883 wgAllowDisplayTitle=false
10885 this is not the the title
10886 {{DISPLAYTITLE:screen}}
10889 <p>this is not the the title
10890 <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>
10895 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10900 wgAllowDisplayTitle=false
10902 this is not the the title
10905 <p>this is not the the title
10910 preload: check <noinclude> and <includeonly>
10914 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10920 preload: check <onlyinclude>
10924 Goodbye <onlyinclude>Hello world</onlyinclude>
10930 preload: can pass tags through if we want to
10934 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10936 <includeonly>Hello world</includeonly>
10940 preload: check that it doesn't try to do tricks
10944 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10946 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10950 Play a bit with r67090 and bug 3158
10954 <div style="width:50% !important"> </div>
10955 <div style="width:50% !important"> </div>
10956 <div style="width:50% !important"> </div>
10957 <div style="border : solid;"> </div>
10959 <div style="width:50% !important"> </div>
10960 <div style="width:50% !important"> </div>
10961 <div style="width:50% !important"> </div>
10962 <div style="border : solid;"> </div>
10967 HTML5 data attributes
10969 <span data-foo="bar">Baz</span>
10970 <p data-abc-def_hij="">Quuz</p>
10972 <p><span data-foo="bar">Baz</span>
10974 <p data-abc-def_hij="">Quuz</p>
10979 percent-encoding and + signs in internal links (Bug 26410)
10981 [[User:+%]] [[Page+title%]]
10982 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10983 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10984 [[%33%45]] [[%33%45+]]
10986 <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>
10987 <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>
10988 <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>
10989 <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>
10994 Special characters in embedded file links (bug 27679)
10996 [[File:Contains & ampersand.jpg]]
10997 [[File:Does not exist.jpg|Title with & ampersand]]
10999 <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>
11000 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11006 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11008 Text's been normalized?
11010 <p>Text's been normalized?
11015 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11017 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11019 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11024 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11026 [http://www.example.org/ ideograms]
11028 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11033 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11035 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11037 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11061 Bug 31098 Template which includes system messages which includes the template
11065 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11066 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11071 Deprecated presentational attributes are converted to css
11074 | valign=top align=left width=100 height=25% | Asdf
11076 <ul type="disc"></ul>
11080 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
11082 <ul style="list-style-type: disc;"></ul>
11087 Bug31490 Turkish: ucfirst 'blah'
11098 Bug31490 Turkish: ucfirst 'ix'
11109 Bug31490 Turkish: lcfirst 'BLAH'
11120 Bug31490 Turkish: ucfırst (with a dotless i)
11126 <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>
11131 Bug31490 ucfırst (with a dotless i) with English language
11137 <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>
11142 Bug 26375: TOC with italics
11144 title=[[Main Page]]
11147 == ''Lost'' episodes ==
11149 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11151 <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>
11154 <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>
11159 Bug 26375: TOC with bold
11161 title=[[Main Page]]
11164 == '''should be bold''' then normal text ==
11166 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11168 <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>
11171 <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>
11176 Bug 33845: Headings become cursive in TOC when they contain an image
11178 title=[[Main Page]]
11181 == Image [[Image:foobar.jpg]] ==
11183 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11185 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11188 <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>
11193 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11195 title=[[Main Page]]
11198 == <blockquote>Quote</blockquote> ==
11200 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11202 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11205 <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>
11210 Unclosed tags in TOC
11212 title=[[Main Page]]
11216 <small>Hanc marginis exiguitas non caperet.</small>
11219 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11221 <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>
11224 <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>
11225 <p><small>Hanc marginis exiguitas non caperet.</small>
11231 Multiple tags in TOC
11234 == <i>Foo</i> <b>Bar</b> ==
11236 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11238 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11240 <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>
11241 <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>
11244 <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>
11245 <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>
11250 Tags with parameters in TOC
11253 == <sup class="in-h2">Hello</sup> ==
11255 == <sup class="a > b">Evilbye</sup> ==
11257 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11259 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11260 <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>
11263 <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>
11264 <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>
11269 span tags with directionality in TOC
11272 == <span dir="ltr">C++</span> ==
11274 == <span dir="rtl">זבנג!</span> ==
11276 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11278 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11280 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11282 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11284 <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>
11285 <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>
11286 <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>
11287 <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>
11288 <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>
11291 <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>
11292 <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>
11293 <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>
11294 <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>
11295 <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>
11302 == {{int:headline_sample}} ==
11306 Bug 32057: Title needed when expanding <h> nodes.
11308 title=[[Main Page]]
11312 <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>
11317 Strip marker in urlencode
11319 {{urlencode:x<nowiki/>y}}
11320 {{urlencode:x<nowiki/>y|wiki}}
11321 {{urlencode:x<nowiki/>y|path}}
11348 Strip marker in formatNum
11350 {{formatnum:1<nowiki/>2}}
11351 {{formatnum:1<nowiki/>2|R}}
11359 Strip marker in grammar
11363 {{grammar:elative|foo<nowiki/>bar}}
11370 Strip marker in padleft
11372 {{padleft:|2|x<nowiki/>y}}
11379 Strip marker in padright
11381 {{padright:|2|x<nowiki/>y}}
11388 Strip marker in anchorencode
11390 {{anchorencode:x<nowiki/>y}}
11397 nowiki inside link inside heading (bug 18295)
11399 ==[[foo|x<nowiki>y</nowiki>z]]==
11401 <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>
11406 new support for bdi element (bug 31817)
11408 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11410 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11415 Ignore pipe between table row attributes
11419 |- id=foo | style='color: red'
11427 <tr id="foo" style="color: red">
11434 Gallery override link with WikiLink (bug 34852)
11437 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11440 <ul class="gallery">
11441 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11442 <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>
11443 <div class="gallerytext">
11453 Gallery override link with absolute external link (bug 34852)
11456 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11459 <ul class="gallery">
11460 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11461 <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>
11462 <div class="gallerytext">
11472 Gallery override link with malicious javascript (bug 34852)
11475 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11478 <ul class="gallery">
11479 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11480 <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>
11481 <div class="gallerytext">
11491 Language parser function
11500 Padleft and padright as substr
11502 {{padleft:|3|abcde}}
11503 {{padright:|3|abcde}}
11511 Bug 34939 - Case insensitive link parsing ([HttP://])
11513 [HttP://MediaWiki.Org/]
11515 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11520 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11522 [HttP://MediaWiki.Org/ MediaWiki]
11524 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11529 Bug 34939 - Case insensitive link parsing (HttP://)
11531 HttP://MediaWiki.Org/
11533 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11538 ### Parsoids-specific tests
11539 ### Parsoid-PHP parser incompatibilities
11542 1. SOL-sensitive wikitext tokens as template-args
11556 #### The following section of tests are primarily to test
11557 #### wikitext escaping capabilities of Parsoid.
11558 #### A lot of the tests are disabled for the PHP parser either
11559 #### because of minor newline diffs or other reasons.
11560 #### As Parsoid serializer can handle newlines and other HTML
11561 #### more robustly, some of these tests might get reenabled
11562 #### for the PHP parser.
11564 #### --------------- Headings ---------------
11566 #### 1. Nested inside html <h1>=foo=</h1>
11567 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
11568 #### 3. Nested inside html with wikitext split by html tags
11569 #### 4. No escape needed
11570 #### 5. Empty headings <h1></h1>
11571 #### 6. Heading chars in SOL context
11572 #### ----------------------------------------
11574 Headings: 0. Unnested
11576 <nowiki>=foo=</nowiki>
11578 <nowiki>=foo</nowiki>''a''=
11581 </p><p>=foo<i>a</i>=
11586 Headings: 1. Nested inside html
11590 =<nowiki>=foo=</nowiki>=
11591 ==<nowiki>=foo=</nowiki>==
11592 ===<nowiki>=foo=</nowiki>===
11593 ====<nowiki>=foo=</nowiki>====
11594 =====<nowiki>=foo=</nowiki>=====
11595 ======<nowiki>=foo=</nowiki>======
11606 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
11611 <nowiki>*bar</nowiki>
11615 <nowiki>=bar=</nowiki>
11623 Headings: 3. Nested inside html with wikitext split by html tags
11627 =<nowiki>=</nowiki>'''bold'''foo==
11629 <h1>=<b>bold</b>foo=</h1>
11633 Headings: 4. No escaping needed (testing just h1 and h2)
11648 <h1><i>=</i>foo=</h1>
11653 Headings: 5. Empty headings
11657 =<nowiki></nowiki>=
11658 ==<nowiki></nowiki>==
11659 ===<nowiki></nowiki>===
11660 ====<nowiki></nowiki>====
11661 =====<nowiki></nowiki>=====
11662 ======<nowiki></nowiki>======
11673 Headings: 6. Heading chars in SOL context
11677 <!--cmt--><nowiki>=h1=</nowiki>
11683 #### --------------- Lists ---------------
11684 #### 0. Outside nests (*foo, etc.)
11685 #### 1. Nested inside html <ul><li>*foo</li></ul>
11686 #### 2. Inside definition lists
11687 #### 3. Only bullets at start should be escaped
11688 #### 4. No escapes needed
11689 #### 5. No unnecessary escapes
11690 #### 6. Escape bullets in SOL position
11691 #### 7. Escape bullets in a multi-line context
11692 #### ----------------------------------------
11695 Lists: 0. Outside nests
11697 <nowiki>*foo</nowiki>
11699 <nowiki>#foo</nowiki>
11707 Lists: 1. Nested inside html
11709 *<nowiki>*foo</nowiki>
11711 *<nowiki>#foo</nowiki>
11713 *<nowiki>:foo</nowiki>
11715 *<nowiki>;foo</nowiki>
11717 #<nowiki>*foo</nowiki>
11719 #<nowiki>#foo</nowiki>
11721 #<nowiki>:foo</nowiki>
11723 #<nowiki>;foo</nowiki>
11745 Lists: 2. Inside definition lists
11747 ;<nowiki>;foo</nowiki>
11749 ;<nowiki>:foo</nowiki>
11751 ;<nowiki>:foo</nowiki>
11754 :<nowiki>:foo</nowiki>
11769 Lists: 3. Only bullets at start of text should be escaped
11771 *<nowiki>*foo*bar</nowiki>
11773 *<nowiki>*foo</nowiki>''it''*bar
11777 <ul><li>*foo<i>it</i>*bar
11783 Lists: 4. No escapes needed
11795 <ul><li><i>foo</i>*bar
11797 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
11802 Lists: 5. No unnecessary escapes
11804 * bar <span><nowiki>[[foo]]</nowiki></span>
11806 *=bar <span><nowiki>[[foo]]</nowiki></span>
11808 *[[bar <span><nowiki>[[foo]]</nowiki></span>
11810 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
11812 *=bar <span>foo]]</span>=
11814 <ul><li> bar <span>[[foo]]</span>
11816 <ul><li>=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>=
11828 Lists: 6. Escape bullets in SOL position
11832 <!--cmt--><nowiki>*foo</nowiki>
11839 Lists: 7. Escape bullets in a multi-line context
11849 #### --------------- HRs ---------------
11850 #### 1. Single line
11851 #### -----------------------------------
11854 HRs: 1. Single line
11859 <nowiki>----</nowiki>
11861 <nowiki>=foo=</nowiki>
11863 <nowiki>*foo</nowiki>
11870 #### --------------- Tables ---------------
11871 #### 1a. Simple example
11872 #### 1b. No escaping needed (!foo)
11873 #### 1c. No escaping needed (|foo)
11874 #### 1d. No escaping needed (|}foo)
11876 #### 2a. Nested in td (<td>foo|bar</td>)
11877 #### 2b. Nested in td (<td>foo||bar</td>)
11878 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
11880 #### 3a. Nested in th (<th>foo!bar</th>)
11881 #### 3b. Nested in th (<th>foo!!bar</th>)
11882 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
11886 #### 4c. No escaping needed
11887 #### --------------------------------------
11890 Tables: 1a. Simple example
11901 Tables: 1b. No escaping needed
11910 Tables: 1c. No escaping needed
11919 Tables: 1d. No escaping needed
11928 Tables: 2a. Nested in td
11933 |<nowiki>foo|bar</nowiki>
11943 Tables: 2b. Nested in td
11948 |<nowiki>foo||bar</nowiki>
11949 |''it''<nowiki>foo||bar</nowiki>
11954 </td><td><i>it</i>foo||bar
11960 Tables: 2c. Nested in td -- no escaping needed
11975 Tables: 3a. Nested in th
11990 Tables: 3b. Nested in th
11995 !<nowiki>foo!!bar</nowiki>
12005 Tables: 3c. Nested in th -- no escaping needed
12020 Tables: 4a. Escape -
12028 |<nowiki>-bar</nowiki>
12032 <tr><th>-bar</th></tr>
12033 <tr><td>-bar</td></tr>
12038 Tables: 4b. Escape +
12046 |<nowiki>+bar</nowiki>
12050 <tr><th>+bar</th></tr>
12051 <tr><td>+bar</td></tr>
12056 Tables: 4c. No escaping needed
12070 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12071 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12075 #### --------------- Links ---------------
12076 #### 1. Quote marks in link text
12077 #### 2. Wikilinks: Escapes needed
12078 #### 3. Wikilinks: No escapes needed
12079 #### 4. Extlinks: Escapes needed
12080 #### 5. Extlinks: No escapes needed
12081 #### --------------------------------------
12083 Links 1. Quote marks in link text
12087 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12089 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12093 Links 2. WikiLinks: Escapes needed
12097 [[Foo|<nowiki>[Foobar]</nowiki>]]
12098 [[Foo|<nowiki>Foobar]</nowiki>]]
12099 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12100 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12101 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12102 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12103 [[Foo|<nowiki>|Bar</nowiki>]]
12105 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12106 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12107 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12108 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12109 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12110 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12111 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12115 Links 3. WikiLinks: No escapes needed
12122 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12123 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12127 Links 4. ExtLinks: Escapes needed
12131 [http://google.com <nowiki>[google]</nowiki>]
12132 [http://google.com <nowiki>google]</nowiki>]
12134 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12135 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12139 Links 5. ExtLinks: No escapes needed
12143 [http://google.com [google]
12145 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12148 #### --------------- Quotes ---------------
12149 #### 1. Quotes inside <b> and <i>
12150 #### 2. Link fragments separated by <i> and <b> tags
12151 #### 3. Link fragments inside <i> and <b>
12152 #### --------------------------------------
12154 1. Quotes inside <b> and <i>
12156 ''<nowiki>'foo'</nowiki>''
12157 ''<nowiki>''foo''</nowiki>''
12158 ''<nowiki>'''foo'''</nowiki>''
12159 '''<nowiki>'foo'</nowiki>'''
12160 '''<nowiki>''foo''</nowiki>'''
12161 '''<nowiki>'''foo'''</nowiki>'''
12162 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12170 <b>foo'<i>bar'</i>baz</b>
12175 2. Link fragments separated by <i> and <b> tags
12177 [[''foo''<nowiki>hello]]</nowiki>
12179 [['''foo'''<nowiki>hello]]</nowiki>
12181 <p>[[<i>foo</i>hello]]
12182 </p><p>[[<b>foo</b>hello]]
12187 2. Link fragments inside <i> and <b>
12188 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12189 this is one of the shortcomings of this format)
12191 ''[[foo''<nowiki>]]</nowiki>
12193 '''[[foo'''<nowiki>]]</nowiki>
12196 </p><p><b>[[foo</b>]]
12200 #### --------------- Paragraphs ---------------
12201 #### 1. No unnecessary escapes
12202 #### --------------------------------------
12205 1. No unnecessary escapes
12207 bar <span><nowiki>[[foo]]</nowiki></span>
12209 =bar <span><nowiki>[[foo]]</nowiki></span>
12211 [[bar <span><nowiki>[[foo]]</nowiki></span>
12213 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12215 <nowiki>=bar </nowiki><span>foo]]</span>=
12217 <p>bar <span>[[foo]]</span>
12218 </p><p>=bar <span>[[foo]]</span>
12219 </p><p>[[bar <span>[[foo]]</span>
12220 </p><p>]]bar <span>[[foo]]</span>
12221 </p><p>=bar <span>foo]]</span>=
12225 #### --------------- PRE ------------------
12226 #### 1. Leading space in SOL context should be escaped
12227 #### --------------------------------------
12229 1. Leading space in SOL context should be escaped
12233 <nowiki> foo</nowiki>
12234 <!--cmt--><nowiki> foo</nowiki>
12241 #### --------------- HTML tags ---------------
12244 #### 3. multi-line html tag
12245 #### --------------------------------------
12251 <a href="http://google.com">google</a>
12253 <a href="http://google.com">google</a>
12259 <nowiki><div>foo</div>
12260 <div style="color:red">foo</div></nowiki>
12262 <p><div>foo</div>
12263 <div style="color:red">foo</div>
12268 3. multi-line html tag
12280 #### --------------- Others ---------------
12284 <nowiki>foo</nowiki>
12286 <p><nowiki>foo</nowiki>
12295 Try for 100% code coverage