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]]
81 Template:echo_with_span
87 Template:echo_with_div
99 Template:table_attribs
102 |</noinclude>style="color: red"| Foo
124 This is a simple paragraph.
126 <p>This is a simple paragraph.
131 Paragraphs with extra newline spacing
169 * plain''italic''plain
170 * plain''italic''plain''italic''plain
171 * plain'''bold'''plain
172 * plain'''bold'''plain'''bold'''plain
173 * plain''italic''plain'''bold'''plain
174 * plain'''bold'''plain''italic''plain
175 * plain''italic'''bold-italic'''italic''plain
176 * plain'''bold''bold-italic''bold'''plain
177 * plain'''''bold-italic'''italic''plain
178 * plain'''''bold-italic''bold'''plain
179 * plain''italic'''bold-italic'''''plain
180 * plain'''bold''bold-italic'''''plain
181 * plain l'''italic''plain
182 * plain l''''bold''' plain
185 </li><li> plain<i>italic</i>plain
186 </li><li> plain<i>italic</i>plain<i>italic</i>plain
187 </li><li> plain<b>bold</b>plain
188 </li><li> plain<b>bold</b>plain<b>bold</b>plain
189 </li><li> plain<i>italic</i>plain<b>bold</b>plain
190 </li><li> plain<b>bold</b>plain<i>italic</i>plain
191 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
192 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
193 </li><li> plain<i><b>bold-italic</b>italic</i>plain
194 </li><li> plain<b><i>bold-italic</i>bold</b>plain
195 </li><li> plain<i>italic<b>bold-italic</b></i>plain
196 </li><li> plain<b>bold<i>bold-italic</i></b>plain
197 </li><li> plain l'<i>italic</i>plain
198 </li><li> plain l'<b>bold</b> plain
204 ### 2-quote opening sequence tests
207 Italics and bold: 2-quote opening sequence: (2,2)
217 Italics and bold: 2-quote opening sequence: (2,3)
227 Italics and bold: 2-quote opening sequence: (2,4)
237 Italics and bold: 2-quote opening sequence: (2,5)
247 ### 3-quote opening sequence tests
251 Italics and bold: 3-quote opening sequence: (3,2)
261 Italics and bold: 3-quote opening sequence: (3,3)
271 Italics and bold: 3-quote opening sequence: (3,4)
281 Italics and bold: 3-quote opening sequence: (3,5)
291 ### 4-quote opening sequence tests
295 Italics and bold: 4-quote opening sequence: (4,2)
305 Italics and bold: 4-quote opening sequence: (4,3)
315 Italics and bold: 4-quote opening sequence: (4,4)
325 Italics and bold: 4-quote opening sequence: (4,5)
335 ### 5-quote opening sequence tests
339 Italics and bold: 5-quote opening sequence: (5,2)
349 Italics and bold: 5-quote opening sequence: (5,3)
359 Italics and bold: 5-quote opening sequence: (5,4)
363 <p><i><b>foo'</b></i>
369 Italics and bold: 5-quote opening sequence: (5,5)
378 ### multiple quote sequences in a line
381 Italics and bold: multiple quote sequences: (2,4,2)
385 <p><i>foo'<b>bar</b></i>
391 Italics and bold: multiple quote sequences: (2,4,3)
395 <p><i>foo'<b>bar</b></i>
401 Italics and bold: multiple quote sequences: (2,4,4)
405 <p><i>foo'<b>bar'</b></i>
411 Italics and bold: multiple quote sequences: (3,4,2)
421 Italics and bold: multiple quote sequences: (3,4,3)
430 ### other quote tests
433 Italics and bold: other quote tests: (2,3,5)
435 ''this is about '''foo's family'''''
437 <p><i>this is about <b>foo's family</b></i>
443 Italics and bold: other quote tests: (2,(3,3),2)
445 ''this is about '''foo's''' family''
447 <p><i>this is about <b>foo's</b> family</i>
453 Italics and bold: other quote tests: (3,2,3,2)
455 '''this is about ''foo'''s family''
457 <p><b>this is about <i>foo</i></b><i>s family</i>
463 Italics and bold: other quote tests: (3,2,3,3)
465 '''this is about ''foo'''s family'''
467 <p>'<i>this is about </i>foo<b>s family</b>
474 Italics and bold: other quote tests: (3,(2,2),3)
476 '''this is about ''foo's'' family'''
478 <p><b>this is about <i>foo's</i> family</b>
483 ### <nowiki> test cases
487 <nowiki> unordered list
489 <nowiki>* This is not an unordered list item.</nowiki>
491 <p>* This is not an unordered list item.
498 <nowiki>Lorem ipsum dolor
519 :There is not nowiki.
520 :There is <nowiki>nowiki</nowiki>.
522 #There is not nowiki.
523 #There is <nowiki>nowiki</nowiki>.
525 *There is not nowiki.
526 *There is <nowiki>nowiki</nowiki>.
528 <dl><dd>There is not nowiki.
529 </dd><dd>There is nowiki.
531 <ol><li>There is not nowiki.
532 </li><li>There is nowiki.
534 <ul><li>There is not nowiki.
535 </li><li>There is nowiki.
547 <!-- comment 1 --> asdf
549 <!-- comment 1 --> asdf
552 <!-- comment 1 --> asdf
553 <!-- comment 2 -->xyz
555 <!-- comment 1 --> asdf
556 <!-- comment 2 --> xyz
612 asdf<!-- comment 1 -->jkl
622 <!-- foo --> b <!-- bar -->
636 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
642 Comment semantics and delimiters
644 <!-- --><!----><!-----><!------>
650 Comment semantics and delimiters, redux
652 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
653 -- foo -- funky huh? ... -->
659 Comment semantics and delimiters: directors cut
661 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
662 everything starting with < followed by !-- until the first -- and > we see,
663 that wouldn't be valid XML however, since in XML -- has to terminate a comment
671 Comment semantics: nesting
673 <!--<!-- no, we're not going to do anything fancy here -->-->
680 Comment semantics: unclosed comment at end
682 <!--This comment will run out to the end of the document
688 Comment in template title
697 Comment on its own line post-expand
709 Comment on its own line post-expand with non-significant whitespace
721 ### paragraph wraping tests
735 Block tag on one line
747 Block tag on both lines
759 Multiple lines without block tags
777 ### Preformatted text
786 And a [[Main Page|link]]
792 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
797 Ident preformatting with inline content
808 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
825 Regression with preformatted in <center>
838 # Expected output in the following test is not really expected (there should be
839 # <pre> in the output) -- it's only testing for well-formedness.
841 Bug 6200: Preformatted in <blockquote>
854 <pre> with attributes (bug 3202)
856 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
858 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
863 <pre> with width attribute (bug 3202)
865 <pre width="8">Narrow screen goodies</pre>
867 <pre width="8">Narrow screen goodies</pre>
872 <pre> with forbidden attribute (bug 3202)
874 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
876 <pre width="8">Narrow screen goodies</pre>
881 <pre> with forbidden attribute values (bug 3202)
883 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
885 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
890 <nowiki> inside <pre> (bug 13238)
898 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
906 <pre><nowiki>Foo</nowiki></pre>
911 <nowiki> and <pre> preference (first one wins)
944 <nowiki></pre></nowiki>
951 Templates: Pre: 1a. Templates that break a line should suppress <pre>
959 Templates: Pre: 1b. Templates that break a line should suppress <pre>
969 Templates: Pre: 1c: Wrapping should be based on expanded content
981 Templates: Pre: 1d: Wrapping should be based on expanded content
1002 Templates: Pre: 1e. Wrapping should be based on expanded content
1006 {{echo| foo}}{{echo| bar}}
1011 {{echo|<!--cmt--> foo}}
1013 <!--cmt-->{{echo| foo}}
1015 {{echo|{{echo| }}bar}}
1033 Templates: Pre: 1f: Wrapping should be based on expanded content
1070 Templates: Single-line variant of parameter whitespace stripping test
1076 {{echo|{{echo| a}}}}
1078 {{echo|1={{echo| a}}}}
1091 Templates: Strip whitespace from named parameters, but not positional ones
1119 ### Parsoid-centric tests for testing RT edge cases for pre
1123 1a. Pre and Comments
1136 1b. Pre and Comments
1149 1c. Pre and Comments
1199 3a. Pre and block tags (single-line html)
1207 <pre><span> foo </span>
1212 3b. Pre and block tags (pre-content on separate line)
1264 4. Multiple spaces at start-of-line
1283 ### Definition lists
1290 <dl><dt> name </dt><dd> Definition
1296 Definition list for indentation only
1300 <dl><dd> Indented text
1306 Definition list with no space
1310 <dl><dt>name</dt><dd>Definition
1316 Definition list with URL link
1318 ; http://example.com/ : definition
1320 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1326 Definition list with bracketed URL link
1328 ;[http://www.example.com/ Example]:Something about it
1330 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1336 Definition list with wikilink containing colon
1338 ; [[Help:FAQ]]: The least-read page on Wikipedia
1340 <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
1345 # At Brion's and JeLuF's insistence... :)
1347 Definition list with news link containing colon
1349 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1351 <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!
1357 Malformed definition list with colon
1359 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1361 <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
1367 Definition lists: colon in external link text
1369 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1371 <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
1377 Definition lists: colon in HTML attribute
1379 ;<b style="display: inline">bold</b>
1381 <dl><dt><b style="display: inline">bold</b>
1387 Definition lists: self-closed tag
1389 ;one<br/>two : two-line fun
1391 <dl><dt>one<br />two </dt><dd> two-line fun
1397 Bug 11748: Literal closing tags
1401 <dd>test test test test test</dd>
1403 <dd>test test test test test</dd>
1408 <dd>test test test test test</dd>
1410 <dd>test test test test test</dd>
1416 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1419 ; term : description
1425 <dl><dt> term </dt><dd> description
1436 Definition list with empty definition and following paragraph
1441 <dl><dt> term</dt><dd>
1448 Nested definition lists using html syntax
1465 Definition Lists: No nesting: Multiple dd's
1479 Definition Lists: Indentation: Regular
1495 Definition Lists: Indentation: Missing 1st level
1509 Definition Lists: Indentation: Multi-level indent
1513 <dl><dd><dl><dd><dl><dd>i3
1521 Definition Lists: Hacky use to indent tables
1528 should be left alone
1530 <dl><dd><dl><dd><table>
1535 </td></tr></table></dd></dl></dd></dl>
1537 should be left alone
1540 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1541 ## as an empty dt item. It also ignores all but the last ";" when followed
1542 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1543 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1546 ## Ex: ";;t2 ::d2" is transformed into:
1558 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1559 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1570 ## All Parsoid only definition list tests have this difference.
1572 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1573 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1576 Definition Lists: Nesting: Multi-level (Parsoid only)
1606 Definition Lists: Nesting: Test 2 (Parsoid only)
1626 Definition Lists: Nesting: Test 3 (Parsoid only)
1654 Definition Lists: Nesting: Test 4
1659 <dl><dd><dl><dd><dl><dt>t3
1669 Definition Lists: Mixed Lists: Test 1
1675 <dl><dd><dl><dt><ul><li> foo
1687 Definition Lists: Mixed Lists: Test 2
1701 Definition Lists: Mixed Lists: Test 3
1706 <ul><li><dl><dd><dl><dd><dl><dd> d1
1717 Definition Lists: Mixed Lists: Test 4
1722 <ul><li><dl><dt>d1 </dt><dd>d2
1723 </dd><dt>d3 </dt><dd>d4
1731 Definition Lists: Mixed Lists: Test 5
1746 Definition Lists: Mixed Lists: Test 6
1751 <ol><li><ul><li><dl><dd>d1
1763 Definition Lists: Mixed Lists: Test 7
1777 Definition Lists: Mixed Lists: Test 8
1793 Definition Lists: Mixed Lists: Test 9
1797 <ul><li><dl><dt>foo </dt><dd>bar
1805 Definition Lists: Mixed Lists: Test 10
1809 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1818 Definition Lists: Mixed Lists: Test 11
1823 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1828 <dl><dt>boo </dt><dd>baz
1839 Definition Lists: Weird Ones: Test 1
1841 *#;*::;; foo : bar (who uses this?)
1843 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1859 External links: non-bracketed
1861 Non-bracketed: http://example.com
1863 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1868 External links: numbered
1870 Numbered: [http://example.com]
1871 Numbered: [http://example.net]
1872 Numbered: [http://example.com]
1874 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1875 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1876 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1881 External links: specified text
1883 Specified text: [http://example.com link]
1885 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1890 External links: trail
1892 Linktrails should not work for external links: [http://example.com link]s
1894 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1899 External links: dollar sign in URL
1901 http://example.com/1$2345
1903 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1908 External links: dollar sign in URL (named)
1910 [http://example.com/1$2345]
1912 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1917 External links: open square bracket forbidden in URL (bug 4377)
1919 http://example.com/1[2345
1921 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1926 External links: open square bracket forbidden in URL (named) (bug 4377)
1928 [http://example.com/1[2345]
1930 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1935 External links: nowiki in URL link text (bug 6230)
1937 [http://example.com/ <nowiki>''example site''</nowiki>]
1939 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1944 External links: newline forbidden in text (bug 6230 regression check)
1946 [http://example.com/ first
1949 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1955 External links: Pipe char between url and text
1957 [http://example.com | link]
1959 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1964 External links: protocol-relative URL in brackets
1966 [//example.com/ Test]
1968 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1973 External links: protocol-relative URL in brackets without text
1977 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1982 External links: protocol-relative URL in free text is left alone
1986 <p>//example.com/Foo
1991 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1993 foo//example.com/Foo
1995 <p>foo//example.com/Foo
2002 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2004 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2009 External image from https
2011 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2013 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2018 Link to non-http image, no img tag
2020 Link to non-http image, no img tag: ftp://example.com/test.jpg
2022 <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>
2027 External links: terminating separator
2029 Terminating separator: http://example.com/thing,
2031 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2036 External links: intervening separator
2038 Intervening separator: http://example.com/1,2,3
2040 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2045 External links: old bug with URL in query
2047 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2049 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2054 External links: old URL-in-URL bug, mixed protocols
2056 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2058 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2063 External links: URL in text
2065 URL in text: [http://example.com http://example.com]
2067 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2072 External links: Clickable images
2074 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2076 <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>
2081 External links: raw ampersand
2083 Old & use: http://x&y
2085 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2090 External links: encoded ampersand
2092 Old & use: http://x&y
2094 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2099 External links: encoded equals (bug 6102)
2101 http://example.com/?foo=bar
2103 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2108 External links: [raw ampersand]
2110 Old & use: [http://x&y]
2112 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2117 External links: [encoded ampersand]
2119 Old & use: [http://x&y]
2121 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2126 External links: [encoded equals] (bug 6102)
2128 [http://example.com/?foo=bar]
2130 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2135 External links: [IDN ignored character reference in hostname; strip it right off]
2137 [http://e‌xample.com/]
2139 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2143 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2144 # Where an external link could easily circumvent the sanitization of the text of
2145 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2146 # test demands a higher standard. That's a bit strange.
2150 # http://example.com -> [http://example.com|http://example.com]
2151 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2153 # The first example is sanitized, but the second is not. Any security benefits
2154 # from this production are trivial to circumvent. Either remove this test and
2155 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2156 # the test accordingly.
2161 External links: IDN ignored character reference in hostname; strip it right off
2163 http://e‌xample.com/
2165 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2170 External links: www.jpeg.org (bug 554)
2174 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2179 External links: URL within URL (original bug 2)
2181 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2183 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2188 BUG 361: URL inside bracketed URL
2190 [http://www.example.com/foo http://www.example.com/bar]
2192 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2197 BUG 361: URL within URL, not bracketed
2199 http://www.example.com/foo?=http://www.example.com/bar
2201 <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>
2206 BUG 289: ">"-token in URL-tail
2208 http://www.example.com/<hello>
2210 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2215 BUG 289: literal ">"-token in URL-tail
2217 http://www.example.com/<b>html</b>
2219 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2224 BUG 289: ">"-token in bracketed URL
2226 [http://www.example.com/<hello> stuff]
2228 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2233 BUG 289: literal ">"-token in bracketed URL
2235 [http://www.example.com/<b>html</b> stuff]
2237 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
2242 BUG 289: literal double quote at end of URL
2244 http://www.example.com/"hello"
2246 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
2251 BUG 289: literal double quote in bracketed URL
2253 [http://www.example.com/"hello" stuff]
2255 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
2260 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
2262 [http://www.example.com test]
2264 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
2269 External links: wiki links within external link (Bug 3695)
2271 [http://example.com [[wikilink]] embedded in ext link]
2273 <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>
2278 BUG 787: Links with one slash after the url protocol are invalid
2282 [http:/example.com title]
2284 <p>http:/example.com
2285 </p><p>[http:/example.com title]
2290 Bracketed external links with template-generated invalid target
2292 [{{echo|http:/example.com}} title]
2294 <p>[http:/example.com title]
2299 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2301 ''[http://example.com text'']
2302 [http://example.com '''text]'''
2303 ''Something [http://example.com in italic'']
2304 ''Something [http://example.com mixed''''', even bold]'''
2305 '''''Now [http://example.com both''''']
2307 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2308 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2309 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2310 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2311 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2317 Bug 4781: %26 in URL
2319 http://www.example.com/?title=AT%26T
2321 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2325 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2326 # % is actually legal in HTML5. Any change in output would need testing though.
2328 Bug 4781, 5267: %25 in URL
2330 http://www.example.com/?title=100%25_Bran
2332 <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>
2337 Bug 4781, 5267: %28, %29 in URL
2339 http://www.example.com/?title=Ben-Hur_%281959_film%29
2341 <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>
2347 Bug 4781: %26 in autonumber URL
2349 [http://www.example.com/?title=AT%26T]
2351 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2356 Bug 4781, 5267: %26 in autonumber URL
2358 [http://www.example.com/?title=100%25_Bran]
2360 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2365 Bug 4781, 5267: %28, %29 in autonumber URL
2367 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2369 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2375 Bug 4781: %26 in bracketed URL
2377 [http://www.example.com/?title=AT%26T link]
2379 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2384 Bug 4781, 5267: %26 in bracketed URL
2386 [http://www.example.com/?title=100%25_Bran link]
2388 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2393 Bug 4781, 5267: %28, %29 in bracketed URL
2395 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2397 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2402 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2404 Some [http://example.com/ pretty ''italics'' and stuff]!
2406 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2411 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2413 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2415 <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>
2420 External link containing double-single-quotes with no space separating the url from text in italics
2422 [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]].]
2424 <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>
2429 URL-encoding in URL functions (single parameter)
2431 {{localurl:Some page|amp=&}}
2433 <p>/index.php?title=Some_page&amp=&
2438 URL-encoding in URL functions (multiple parameters)
2440 {{localurl:Some page|q=?&=&}}
2442 <p>/index.php?title=Some_page&q=?&amp=&
2449 http://example.com/index.php?foozoid%5B%5D=bar
2451 http://example.com/index.php?foozoid[]=bar
2453 <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>
2454 </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>
2459 IPv6 urls (bug 21261)
2463 http://[2404:130:0:1000::187:2]/index.php
2465 <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>
2470 Non-extlinks in brackets
2479 [{{echo|foo}} ''bar'']
2480 [{{echo|foo}}l's] errand
2481 [{{echo|foo}}l's errand]
2503 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2505 Normal text. '''''Bold italic text.''''' Normal text.
2507 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2508 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2514 Unclosed and unmatched quotes
2516 '''''Bold italic text '''with bold deactivated''' in between.'''''
2518 '''''Bold italic text ''with italic deactivated'' in between.'''''
2522 ..spanning two paragraphs (should not work).'''
2524 '''Bold tag left open
2526 ''Italic tag left open
2530 <!-- Unmatching number of opening, closing tags: -->
2531 '''This year''''s election ''should'' beat '''last year''''s.
2533 ''Tom'''s car is bigger than ''Susan'''s.
2535 Plain ''italic'''s plain
2537 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2538 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2539 </p><p><b>Bold text..</b>
2540 </p><p>..spanning two paragraphs (should not work).
2541 </p><p><b>Bold tag left open</b>
2542 </p><p><i>Italic tag left open</i>
2544 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2545 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2546 </p><p>Plain <i>italic'</i>s plain
2553 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2556 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2557 # is the bare minimun required by the spec, see:
2558 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2560 A table with no data.
2566 # A table with nothing but a caption is invalid XHTML, we might want to render
2567 # this as <p>caption</p>
2569 A table with nothing but a caption
2577 </caption><tr><td></td></tr></table>
2582 Table td-cell syntax variations
2586 | foo bar foo || baz
2587 | style='color:red;' | baz
2588 | style='color:red;' || baz
2595 <td> foo bar foo </td>
2598 <td style="color:red;"> baz
2600 <td> style='color:red;' </td>
2628 Simple table but with multiple dashes for row wikitext
2646 Multiplication table
2648 {| border="1" cellpadding="2"
2649 |+Multiplication table
2651 ! × !! 1 !! 2 !! 3
2669 <table border="1" cellpadding="2">
2670 <caption>Multiplication table
2717 Allow +/- in 2nd and later cells in a row
2744 |rowspan=2| Cell 2, row 1 (and 2)
2755 <td rowspan="2"> Cell 2, row 1 (and 2)
2773 {| bgcolor=#ABCDEF border=2
2778 |the original table again
2786 <table bgcolor="#ABCDEF" border="2">
2794 <td>the original table again
2800 Invalid attributes in table cell (bug 1830)
2815 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2818 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2822 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2823 <td>]" onmouseover="alert(document.cookie)">test
2832 Indented table markup mixed with indented pre content (proposed in bug 6200)
2837 Text that should be rendered preformatted
2845 <pre>Text that should be rendered preformatted
2854 Template-generated table cell attributes and cell content
2862 <td style="color: red"> Foo
2868 Table with row followed by newlines and table heading
2885 # FIXME: Preserve the attribute properly (with an empty string as value) in
2886 # the PHP parser. Parsoid implements the behavior below.
2888 Table attributes with empty value
2907 Plain link, capitalized
2911 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2916 Plain link, uncapitalized
2920 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2927 [[Main Page|The Main Page]]
2929 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2938 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2943 Broken link with fragment
2945 [[Zigzagzogzagzig#zug]]
2947 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2952 Special page link with fragment
2954 [[Special:Version#anchor]]
2956 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2961 Nonexistent special page link with fragment
2963 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2965 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2972 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2974 <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>
2981 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2983 <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>!!!
2988 Link with 3 brackets
2997 Piped link with 3 brackets
2999 [[[main page|the main page]]]
3001 <p>[[[main page|the main page]]]
3006 Link with multiple pipes
3008 [[Main Page|The|Main|Page]]
3010 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
3017 [[Talk:Parser testing]], [[Meta:Disclaimers]]
3019 <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>
3024 Piped link to namespace
3026 [[Meta:Disclaimers|The disclaimers]]
3028 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
3035 [[Usually caused by a typo (oops}]]
3037 <p>[[Usually caused by a typo (oops}]]
3042 Link containing % (not as a hex sequence)
3046 <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>
3051 Link containing % as a single hex sequence interpreted to char
3055 <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>
3060 Link containing % as a double hex sequence interpreted to hex sequence
3064 <p>[[7%2525 Solution]]
3069 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
3070 Example for such a section: == < ==
3072 [[%23%3c]][[%23%3e]]
3074 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
3079 Link containing "<#" and ">#" as a hex sequences
3081 [[%3c%23]][[%3e%23]]
3083 <p>[[%3c%23]][[%3e%23]]
3088 Link containing double-single-quotes '' (bug 4598)
3090 [[Lista d''e paise d''o munno]]
3092 <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>
3097 Link containing double-single-quotes '' in text (bug 4598 sanity check)
3099 Some [[Link|pretty ''italics'' and stuff]]!
3101 <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>!
3106 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
3108 ''Some [[Link|pretty ''italics'' and stuff]]!
3110 <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>
3115 Link with double quotes in title part (literal) and alternate part (interpreted)
3117 [[File:Denys Savchenko ''Pentecoste''.jpg]]
3121 [[''Pentecoste''|Pentecoste]]
3123 [[''Pentecoste''|''Pentecoste'']]
3125 <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>
3126 </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>
3127 </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>
3128 </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>
3133 Broken image links with HTML captions (bug 39700)
3135 [[File:Nonexistent|<script></script>]]
3136 [[File:Nonexistent|100px|<script></script>]]
3137 [[File:Nonexistent|<]]
3138 [[File:Nonexistent|a<i>b</i>c]]
3140 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3141 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
3142 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
3143 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
3150 [[http://www.example.com]]
3152 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
3157 Plain link to URL with link text
3159 [[http://www.example.com Link text]]
3161 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
3166 Plain link to protocol-relative URL
3168 [[//www.example.com]]
3170 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
3175 Plain link to protocol-relative URL with link text
3177 [[//www.example.com Link text]]
3179 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
3184 Plain link to page with question mark in title
3190 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
3191 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
3196 # I'm fairly sure the expected result here is wrong.
3197 # We want these to be URL links, not pseudo-pages with URLs for titles....
3198 # However the current output is also pretty screwy.
3201 # I'm changing it to match the current output--it arguably makes more
3202 # sense in the light of the test above. Old expected result was:
3203 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
3205 # But I think this test is bordering on "garbage in, garbage out" anyway.
3210 Piped link to URL: [[http://www.example.com|an example URL]]
3212 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
3217 BUG 2: [[page|http://url/]] should link to page, not http://url/
3219 [[Main Page|http://url/]]
3221 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
3226 BUG 337: Escaped self-links should be bold
3230 [[Bug462]] [[Bug462]]
3232 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
3237 Self-link to section should not be bold
3241 [[Main Page#section]]
3243 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
3254 Self-link to numeric title
3260 <p><strong class="selflink">0</strong>
3265 Link to numeric-equivalent title
3271 <p><a href="/wiki/00" title="00">00</a>
3276 <nowiki> inside a link
3278 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
3280 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
3285 Non-breaking spaces in title
3287 [[ Main Page ]]
3289 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
3294 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
3300 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
3305 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
3311 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
3316 Internal link with en linktrail: no apostrophes (bug 27473)
3322 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
3327 Internal link with ca linktrail with apostrophes (bug 27473)
3333 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
3338 Internal link with kaa linktrail with apostrophes (bug 27473)
3344 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
3349 ### Interwiki links (see maintenance/interwiki.sql)
3353 Inline interwiki link
3355 [[MeatBall:SoftSecurity]]
3357 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
3362 Inline interwiki link with empty title (bug 2372)
3366 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
3371 Interwiki link encoding conversion (bug 1636)
3373 *[[Wikipedia:ro:Olteniţa]]
3374 *[[Wikipedia:ro:Olteniţa]]
3376 <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>
3377 </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>
3383 Interwiki link with fragment (bug 2130)
3385 [[MeatBall:SoftSecurity#foo]]
3387 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
3402 Double interlanguage link
3413 Interlanguage link, with prefix links
3425 Double interlanguage link, with prefix links (bug 8897)
3438 Parsoid-specific test: Wikilinks with should RT properly
3444 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3462 Broken br tag sanitization
3471 Incorrecly removing closing slashes from correctly formed XHTML
3473 <br style="clear:both;" />
3475 <p><br style="clear:both;" />
3480 Failing to transform badly formed HTML into correct XHTML
3482 <br style="clear: left;">
3483 <br style="clear: right;">
3484 <br style="clear: both;">
3486 <p><br style="clear: left;" />
3487 <br style="clear: right;" />
3488 <br style="clear: both;" />
3493 Handling html with a div self-closing tag
3502 <p><div title />
3506 <p><div title=bar />
3507 <div title=bar/>
3509 <div title="bar/"></div>
3515 Handling html with a br self-closing tag
3524 <p><br title="title" />
3525 <br title="title" />
3534 Horizontal ruler (should it add that extra space?)
3548 Horizontal ruler -- 4+ dashes render hr
3557 Horizontal ruler -- eats additional dashes on the same line
3566 Horizontal ruler -- does not collaps dashes on consecutive lines
3577 Horizontal ruler -- <4 dashes render as plain text
3586 Horizontal ruler -- Supports content following dashes on same line
3595 ### Block-level elements
3618 <ol><li>Numbered list
3635 ***#Number on level 4
3637 **#Number on level 3
3638 **#Number on level 3
3642 #** Level 3, but ordered
3645 <ol><li> with numbers
3647 <ul><li> and bullets
3649 <ol><li> and numbers
3651 </li><li>bullets again
3652 <ul><li>bullet level 2
3653 <ul><li>bullet level 3
3654 <ol><li>Number on level 4
3657 </li><li>bullet level 2
3658 <ol><li>Number on level 3
3659 </li><li>Number on level 3
3662 <ol><li>number level 2
3665 <ul><li><ul><li> Level 3
3669 <ol><li><ul><li><ul><li> Level 3, but ordered
3703 Nested lists 3 (first element empty)
3716 Nested lists 4 (first element empty)
3729 Nested lists 5 (both elements empty)
3742 Nested lists 6 (both elements empty)
3755 Nested lists 7 (skip initial nesting levels)
3759 <ul><li><ul><li><ul><li> foo
3767 Nested lists 8 (multiple nesting transitions)
3775 <ul><li><ul><li> bar
3785 1. Lists with start-of-line-transparent tokens before bullets: Comments
3799 2. Lists with start-of-line-transparent tokens before bullets: Template close
3811 List items are not parsed correctly following a <pre> block (bug 785)
3817 <ul><li> <pre>foo</pre>
3818 </li><li> <pre>bar</pre>
3825 List items from template
3836 * notSOL{{inner list}}
3855 List interrupted by empty line or heading
3865 <ul><li><ul><li> bar
3868 <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>
3869 <ul><li> Another list item
3880 Magic Word: {{CURRENTDAY}}
3889 Magic Word: {{CURRENTDAY2}}
3898 Magic Word: {{CURRENTDAYNAME}}
3907 Magic Word: {{CURRENTDOW}}
3916 Magic Word: {{CURRENTMONTH}}
3925 Magic Word: {{CURRENTMONTHABBREV}}
3927 {{CURRENTMONTHABBREV}}
3934 Magic Word: {{CURRENTMONTHNAME}}
3936 {{CURRENTMONTHNAME}}
3943 Magic Word: {{CURRENTMONTHNAMEGEN}}
3945 {{CURRENTMONTHNAMEGEN}}
3952 Magic Word: {{CURRENTTIME}}
3961 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3970 Magic Word: {{CURRENTYEAR}}
3979 Magic Word: {{FULLPAGENAME}}
3981 title=[[User:Ævar Arnfjörð Bjarmason]]
3985 <p>User:Ævar Arnfjörð Bjarmason
3990 Magic Word: {{FULLPAGENAMEE}}
3992 title=[[User:Ævar Arnfjörð Bjarmason]]
3996 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4001 Magic Word: {{NAMESPACE}}
4003 title=[[User:Ævar Arnfjörð Bjarmason]]
4012 Magic Word: {{NAMESPACEE}}
4014 title=[[User:Ævar Arnfjörð Bjarmason]]
4023 Magic Word: {{NAMESPACENUMBER}}
4025 title=[[User:Ævar Arnfjörð Bjarmason]]
4034 Magic Word: {{NUMBEROFFILES}}
4043 Magic Word: {{PAGENAME}}
4045 title=[[User:Ævar Arnfjörð Bjarmason]]
4049 <p>Ævar Arnfjörð Bjarmason
4054 Magic Word: {{PAGENAME}} with metacharacters
4056 title=[['foo & bar = baz']]
4060 <p><i>'foo & bar = baz'</i>
4065 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
4067 title=[[*RFC 1234 http://example.com/]]
4071 <p>*RFC 1234 http://example.com/
4076 Magic Word: {{PAGENAMEE}}
4078 title=[[User:Ævar Arnfjörð Bjarmason]]
4082 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
4087 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
4089 title=[[*RFC 1234 http://example.com/]]
4093 <p>*RFC_1234_http://example.com/
4098 Magic Word: {{REVISIONID}}
4107 Magic Word: {{SCRIPTPATH}}
4116 Magic Word: {{SERVER}}
4120 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
4125 Magic Word: {{SERVERNAME}}
4134 Magic Word: {{SITENAME}}
4143 Namespace 1 {{ns:1}}
4152 Namespace 1 {{ns:01}}
4161 Namespace 0 {{ns:0}} (bug 4783)
4169 Namespace 0 {{ns:00}} (bug 4783)
4177 Namespace -1 {{ns:-1}}
4186 Namespace User {{ns:User}}
4195 Namespace User talk {{ns:User_talk}}
4204 Namespace User talk {{ns:uSeR tAlK}}
4213 Namespace File {{ns:File}}
4222 Namespace File {{ns:Image}}
4231 Namespace (lang=de) Benutzer {{ns:User}}
4242 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
4248 <p>Benutzer Diskussion
4256 {{urlencode:hi world?!}}
4257 {{urlencode:hi world?!|WIKI}}
4258 {{urlencode:hi world?!|PATH}}
4259 {{urlencode:hi world?!|QUERY}}
4272 Magic links: internal link to RFC (bug 479)
4276 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
4281 Magic links: RFC (bug 479)
4285 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
4290 Magic links: ISBN (bug 1937)
4294 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
4299 Magic links: PMID incorrectly converts space to underscore
4303 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
4312 Nonexistent template
4314 {{thistemplatedoesnotexist}}
4316 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
4323 This is a test template
4331 <p>This is a test template
4336 Template with explicit namespace
4340 <p>This is a test template
4348 This is a test template with parameter {{{param}}}
4354 {{paramtest|param=foo}}
4356 <p>This is a test template with parameter foo
4361 Template:paramtestnum
4367 Template unnamed parameter
4369 {{paramtestnum|Main Page|the main page}}
4371 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
4376 Template:templatesimple
4382 Template:templateredirect
4384 #redirect [[Template:templatesimple]]
4388 Template:templateasargtestnum
4394 Template:templateasargtest
4396 {{template{{{templ}}}}}
4400 Template:templateasargtest2
4406 Template with template name as unnamed argument
4408 {{templateasargtestnum|templatesimple}}
4415 Template with template name as argument
4417 {{templateasargtest|templ=simple}}
4424 Template with template name as argument (2)
4426 {{templateasargtest2|templ=templatesimple}}
4433 Template:templateasargtestdefault
4435 {{{{{templ|templatesimple}}}}}
4445 Template with default value
4447 {{templateasargtestdefault}}
4454 Template with default value (value set)
4456 {{templateasargtestdefault|templ=templa}}
4465 {{templateredirect}}
4472 Template with argument in separate line
4474 {{ templateasargtest |
4482 Template with complex template as argument
4485 param ={{ templateasargtest |
4488 <p>This is a test template with parameter (test)
4493 Template with thumb image (with link in description)
4496 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4498 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>
4503 Template:complextemplate
4505 {{{1}}} {{paramtest|
4506 param ={{{param}}}}}
4510 Template with complex arguments
4513 param ={{ templateasargtest |
4514 templ = simple }}|[[Template:complextemplate|link]]}}
4516 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4521 BUG 553: link with two variables in a piped link
4524 |[[{{{1}}}|{{{2}}}]]
4529 <td>[[{{{1}}}|{{{2}}}]]
4535 Magic variable as template parameter
4537 {{paramtest|param={{SITENAME}}}}
4539 <p>This is a test template with parameter MediaWiki
4546 [[{{{param}}}|link]]
4550 Template parameter as link source
4552 {{linktest|param=Main Page}}
4554 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4559 Template-generated attribute string (k='v')
4561 <span {{attr_str|id|v1}}>bar</span>
4563 <p><span id="v1">bar</span>
4570 including another template, {{paramtest|param={{{arg}}}}}
4574 Template passing argument to another template
4576 {{paramtest2|arg='hmm'}}
4578 <p>including another template, This is a test template with parameter 'hmm'
4589 Template as link source
4593 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4611 Template infinite loop
4615 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4620 Template from main namespace
4639 BUG 529: Template with table, not included at beginning of line
4658 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4678 BUG 41: Template parameters shown as broken links
4687 Template with targets containing wikilinks
4691 {{[[{{echo|foo}}]]}}
4693 {{{{echo|[[foo}}]]}}
4695 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4696 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
4704 ''None'' of '''this''' should be
4706 but rather passed unmodified
4710 # hmm, fix this or just deprecate msgnw and document its behavior?
4716 {{msgnw:MSGNW test}}
4718 <p>''None'' of '''this''' should be
4720 but rather passed unmodified
4728 {{int:youhavenewmessages|lots of money|not!}}
4730 <p>You have lots of money (not!).
4737 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4741 <includeonly> and <noinclude> being included
4752 <onlyinclude>Foo</onlyinclude>bar
4756 <onlyinclude> being included
4768 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4772 <onlyinclude> and <includeonly> being included
4781 <includeonly> and <noinclude> on a page
4783 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4790 Un-closed <noinclude>
4797 <onlyinclude> on a page
4799 <onlyinclude>Foo</onlyinclude>bar
4806 Un-closed <onlyinclude>
4813 Template:Includeonly section
4816 ==Includeonly section==
4822 Bug 6563: Edit link generation for section shown by <includeonly>
4824 {{includeonly section}}
4826 <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>
4827 <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>
4831 # Uses same input as the contents of [[Template:Includeonly section]]
4833 Bug 6563: Section extraction for section shown by <includeonly>
4838 ==Includeonly section==
4846 Bug 6563: Edit link generation for section suppressed by <includeonly>
4849 ==Includeonly section==
4853 <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>
4858 Bug 6563: Section extraction for section suppressed by <includeonly>
4863 ==Includeonly section==
4871 Un-closed <includeonly>
4878 ### <includeonly> and <noinclude> in attributes
4881 0. includeonly around the entire attribute
4883 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4885 <p><span id="v2">bar</span>
4890 1. includeonly in html attr key
4892 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4894 <p><span id="foo">bar</span>
4899 2. includeonly in html attr value
4901 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4902 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4904 <p><span id="v1">bar</span>
4905 <span id="v1">bar</span>
4910 3. includeonly in part of an attr value
4912 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4914 <p><span style="color:red;">bar</span>
4919 ### Testing parsing of templates where a template arg
4920 ### has the same name as the template itself.
4930 Templates: Template Name/Arg clash: 1. Use of positional param
4939 Templates: Template Name/Arg clash: 2. Use of named param
4948 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4957 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4961 Templates: 1. Simple use
4970 Templates: 2. Inside a block tag
4972 <div>{{echo|Foo}}</div>
4979 Templates: P-wrapping: 1a. Templates on consecutive lines
4990 Templates: P-wrapping: 1b. Templates on consecutive lines
5004 Templates: P-wrapping: 1c. Templates on consecutive lines
5007 {{echo|bar}} <div>baz</div>
5016 Templates: Inline Text: 1. Multiple tmeplate uses
5018 {{echo|Foo}}bar{{echo|baz}}
5025 Templates: Inline Text: 2. Back-to-back template uses
5027 {{echo|Foo}}{{echo|bar}}
5034 Templates: Block Tags: 1. Multiple template uses
5036 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
5038 <div>Foo</div><div>bar</div><div>baz</div>
5043 Templates: Block Tags: 2. Back-to-back template uses
5045 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
5047 <div>Foo</div><div>bar</div>
5052 Templates: Links: 1. Simple example
5054 {{echo|[[Foo|bar]]}}
5056 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5061 Templates: Links: 2. Generation of link href
5063 [[{{echo|Foo}}|bar]]
5065 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5070 Templates: Links: 3. Generation of part of a link href
5072 [[Fo{{echo|o}}|bar]]
5074 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5079 Templates: Links: 4. Multiple templates generating link href
5081 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
5083 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
5088 Templates: Links: 5. Generation of link text
5090 [[Foo|{{echo|bar}}]]
5092 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5097 Templates: Links: 5. Nested templates (only outermost template should be marked)
5099 {{echo|[[{{echo|Foo}}|bar]]}}
5101 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
5106 Templates: HTML Tag: 1. Generation of HTML attr. key
5108 <div {{echo|style}}="color:red;">foo</div>
5110 <div style="color:red;">foo</div>
5115 Templates: HTML Tag: 2. Generation of HTML attr. value
5117 <div style={{echo|'color:red;'}}>foo</div>
5119 <div style="color:red;">foo</div>
5124 Templates: HTML Tag: 3. Generation of HTML attr key and value
5126 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
5128 <div style="color:red;">foo</div>
5133 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
5135 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
5137 <div title="This is a long title with just one piece templated">foo</div>
5142 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
5144 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
5146 <div title="This is a long title with just one piece templated">foo</div>
5151 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
5153 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
5155 <div title="This is a long title with just one piece templated">foo</div>
5160 Templates: HTML Tables: 1. Generating start of a HTML table
5162 {{echo|<table><tr><td>foo</td>}}</tr></table>
5164 <table><tr><td>foo</td></tr></table>
5169 Templates: HTML Tables: 2a. Generating middle of a HTML table
5171 <table><tr>{{echo|<td>foo</td>}}</tr></table>
5173 <table><tr><td>foo</td></tr></table>
5178 Templates: HTML Tables: 2b. Generating middle of a HTML table
5180 <table>{{echo|<tr><td>foo</td></tr>}}</table>
5182 <table><tr><td>foo</td></tr></table>
5187 Templates: HTML Tables: 3. Generating end of a HTML table
5189 <table><tr>{{echo|<td>foo</td></tr></table>}}
5191 <table><tr><td>foo</td></tr></table>
5196 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
5198 {{echo|<table>}}<tr><td>foo</td></tr></table>
5200 <table><tr><td>foo</td></tr></table>
5205 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
5207 <table>{{echo|<tr>}}<td>foo</td></tr></table>
5209 <table><tr><td>foo</td></tr></table>
5214 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
5216 <table><tr>{{echo|<td>}}foo</td></tr></table>
5218 <table><tr><td>foo</td></tr></table>
5223 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
5225 <table><tr><td>foo{{echo|</td>}}</tr></table>
5227 <table><tr><td>foo</td></tr></table>
5232 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
5234 <table><tr><td>foo</td>{{echo|</tr>}}</table>
5236 <table><tr><td>foo</td></tr></table>
5241 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
5243 <table><tr><td>foo</td></tr>{{echo|</table>}}
5245 <table><tr><td>foo</td></tr></table>
5250 Templates: Wiki Tables: 1. Fostering of entire template content
5258 <tr><td></td></tr></table>
5263 Templates: Wiki Tables: 2. Fostering of partial template content
5273 <tr><td></td></tr></table>
5278 Templates: Wiki Tables: 3. td-content via multiple templates
5281 {{echo|{{pipe}}a}}{{echo|b}}
5292 Templates: Lists: Multi-line list-items via templates
5294 *{{echo|a {{nonexistent|
5296 *{{echo|b {{nonexistent|
5299 <ul><li>a <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
5300 </li><li>b <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
5306 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
5308 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
5310 <p><i>ab</i>c<i>d</i>e
5315 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
5316 (PHP parser generates misnested html)
5320 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
5322 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
5326 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
5327 (PHP parser generates misnested html)
5331 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
5334 <div><i>b</i>c<i>d</i></div>
5339 Templates: Ugly nesting: 4. Divs opened/closed across templates
5341 a<div>b{{echo|c</div>d}}e
5348 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
5354 |{{echo|foo</table>}}
5358 <table data-parsoid="{"src":"{|\n|{{echo|foo</table>}}\n|bar\n|}"}" about="#mwt1" typeof="mw:Object/Template ">
5359 <tbody><tr><td>foo</td></tr></tbody></table><span about="#mwt1">
5360 bar</span><span about="#mwt1">
5365 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
5375 <td>1. {{echo|foo </table>}}</td>
5377 <td>2. {{echo|baz </table>}}</td>
5390 <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">
5391 <tbody><tr data-parsoid="{"stx":"html"}">
5392 <td data-parsoid="{"stx":"html"}">
5393 <table data-parsoid="{"stx":"html"}">
5394 <tbody><tr data-parsoid="{"stx":"html"}">
5395 <td data-parsoid="{"stx":"html"}">1. foo </td></tr></tbody></table></td>
5396 <td data-parsoid="{"stx":"html"}"> bar </td>
5397 <td data-parsoid="{"stx":"html"}">2. baz </td></tr></tbody></table><span about="#mwt1">
5398 </span><span about="#mwt1">
5400 abc</span><span about="#mwt1">
5401 </span><span about="#mwt1">
5402 </span><span about="#mwt1">
5403 </span><span about="#mwt1">
5404 </span><span about="#mwt1">
5406 xyz</span><span about="#mwt1">
5407 </span><span about="#mwt1">
5412 Parser Functions: 1. Simple example
5421 Parser Functions: 2. Nested use (only outermost should be marked up)
5430 ### Pre-save transform tests
5433 pre-save transform: subst:
5439 This is a test template
5443 pre-save transform: normal template
5453 pre-save transform: nonexistent template
5457 {{thistemplatedoesnotexist}}
5459 {{thistemplatedoesnotexist}}
5464 pre-save transform: subst magic variables
5473 # This is bug 89, which I fixed. -- wtm
5475 pre-save transform: subst: templates with parameters
5479 {{subst:paramtest|param="something else"}}
5481 This is a test template with parameter "something else"
5487 <nowiki>'''not wiki'''</nowiki>
5491 pre-save transform: nowiki in subst (bug 1188)
5495 {{subst:nowikitest}}
5497 <nowiki>'''not wiki'''</nowiki>
5502 Template:commenttest
5504 This template has <!-- a comment --> in it.
5508 pre-save transform: comment in subst (bug 1936)
5512 {{subst:commenttest}}
5514 This template has <!-- a comment --> in it.
5518 pre-save transform: unclosed tag
5522 <nowiki>'''not wiki'''
5524 <nowiki>'''not wiki'''
5528 pre-save transform: mixed tag case
5532 <NOwiki>'''not wiki'''</noWIKI>
5534 <NOwiki>'''not wiki'''</noWIKI>
5538 pre-save transform: unclosed comment in <nowiki>
5542 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5544 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
5550 <span onmouseover="alert('crap')">Oh no</span>
5554 (confirming safety of fix for subst bug 1936)
5556 {{Template:dangerous}}
5558 <p><span>Oh no</span>
5563 pre-save transform: comment containing gallery (bug 5024)
5567 <!-- <gallery>data</gallery> -->
5569 <!-- <gallery>data</gallery> -->
5573 pre-save transform: comment containing extension
5577 <!-- <tag>data</tag> -->
5579 <!-- <tag>data</tag> -->
5583 pre-save transform: comment containing nowiki
5587 <!-- <nowiki>data</nowiki> -->
5589 <!-- <nowiki>data</nowiki> -->
5593 pre-save transform: <noinclude> in subst (bug 3298)
5603 pre-save transform: <onlyinclude> in subst (bug 3298)
5615 {{<includeonly>subst:</includeonly>Includes}}
5619 Template:SafeSubstTest
5621 {{<includeonly>safesubst:</includeonly>Includes}}
5625 bug 22297: safesubst: works during PST
5629 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
5635 bug 22297: safesubst: works during normal parse
5644 subst: does not work during normal parse
5648 <p>{{subst:Includes}}
5653 pre-save transform: context links ("pipe trick")
5657 [[Article (context)|]]
5660 [[Bar:Article (context)|]]
5661 [[:Bar:Article (context)|]]
5663 [[|Article (context)]]
5667 [[Article (context)|Article]]
5668 [[Bar:Article|Article]]
5669 [[:Bar:Article|Article]]
5670 [[Bar:Article (context)|Article]]
5671 [[:Bar:Article (context)|Article]]
5673 [[Article (context)]]
5674 [[Bar:X (Y) Z|X (Y) Z]]
5675 [[:Bar:X (Y) Z|X (Y) Z]]
5679 pre-save transform: context links ("pipe trick") with interwiki prefix
5683 [[interwiki:Article|]]
5684 [[:interwiki:Article|]]
5685 [[interwiki:Bar:Article|]]
5686 [[:interwiki:Bar:Article|]]
5688 [[interwiki:Article|Article]]
5689 [[:interwiki:Article|Article]]
5690 [[interwiki:Bar:Article|Bar:Article]]
5691 [[:interwiki:Bar:Article|Bar:Article]]
5695 pre-save transform: context links ("pipe trick") with parens in title
5697 pst title=[[Somearticle (context)]]
5701 [[Article (context)|Article]]
5705 pre-save transform: context links ("pipe trick") with comma in title
5707 pst title=[[Someplace, Somewhere]]
5710 [[Otherplace, Elsewhere|]]
5711 [[Otherplace, Elsewhere, Anywhere|]]
5713 [[Otherplace, Somewhere|Otherplace]]
5714 [[Otherplace, Elsewhere|Otherplace]]
5715 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5719 pre-save transform: context links ("pipe trick") with parens and comma
5721 pst title=[[Someplace (IGNORED), Somewhere]]
5724 [[Otherplace (place), Elsewhere|]]
5726 [[Otherplace, Somewhere|Otherplace]]
5727 [[Otherplace (place), Elsewhere|Otherplace]]
5731 pre-save transform: context links ("pipe trick") with comma and parens
5733 pst title=[[Who, me? (context)]]
5736 [[Me, Myself, and I (1937 song)|]]
5738 [[Yes, you. (context)|Yes, you.]]
5739 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5743 pre-save transform: context links ("pipe trick") with namespace
5745 pst title=[[Ns:Somearticle]]
5749 [[Ns:Article|Article]]
5753 pre-save transform: context links ("pipe trick") with namespace and parens
5755 pst title=[[Ns:Somearticle (context)]]
5759 [[Ns:Article (context)|Article]]
5763 pre-save transform: context links ("pipe trick") with namespace and comma
5765 pst title=[[Ns:Somearticle, Context, Whatever]]
5769 [[Ns:Article, Context, Whatever|Article]]
5773 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5775 pst title=[[Ns:Somearticle, Context (context)]]
5779 [[Ns:Article (context)|Article]]
5783 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5785 pst title=[[Ns:Somearticle (IGNORED), Context]]
5789 [[Ns:Article, Context|Article]]
5793 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5797 [[Article(context)|]]
5798 [[Bar:Article(context)|]]
5799 [[:Bar:Article(context)|]]
5800 [[|Article(context)]]
5804 [[Article(context)|Article]]
5805 [[Bar:Article(context)|Article]]
5806 [[:Bar:Article(context)|Article]]
5807 [[Article(context)]]
5809 [[:Bar:X(Y)Z|X(Y)Z]]
5813 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5817 [[Article (context)|]]
5818 [[Bar:Article (context)|]]
5819 [[:Bar:Article (context)|]]
5820 [[|Article (context)]]
5824 [[Article (context)|Article]]
5825 [[Bar:Article (context)|Article]]
5826 [[:Bar:Article (context)|Article]]
5827 [[Article (context)]]
5828 [[Bar:X (Y) Z|X (Y) Z]]
5829 [[:Bar:X (Y) Z|X (Y) Z]]
5833 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5837 [[Article(context)|]]
5838 [[Bar:Article(context)|]]
5839 [[:Bar:Article(context)|]]
5840 [[|Article(context)]]
5844 [[Article(context)|Article]]
5845 [[Bar:Article(context)|Article]]
5846 [[:Bar:Article(context)|Article]]
5847 [[Article(context)]]
5849 [[:Bar:X(Y)Z|X(Y)Z]]
5853 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5857 [[Article (context), context|]]
5858 [[Article (context),context|]]
5859 [[Bar:Article (context), context|]]
5860 [[Bar:Article (context),context|]]
5861 [[:Bar:Article (context), context|]]
5862 [[:Bar:Article (context),context|]]
5864 [[Article (context), context|Article]]
5865 [[Article (context),context|Article]]
5866 [[Bar:Article (context), context|Article]]
5867 [[Bar:Article (context),context|Article]]
5868 [[:Bar:Article (context), context|Article]]
5869 [[:Bar:Article (context),context|Article]]
5873 pre-save transform: trim trailing empty lines
5877 Empty lines are trimmed
5883 Empty lines are trimmed
5887 pre-save transform: Signature expansion
5892 * <noinclude>~~~</noinclude>
5893 * <includeonly>~~~</includeonly>
5894 * <onlyinclude>~~~</onlyinclude>
5896 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5897 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5898 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5899 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5904 pre-save transform: Signature expansion in nowiki tags (bug 93)
5910 <nowiki>~~~~</nowiki>
5912 <includeonly><nowiki>~~~~</nowiki></includeonly>
5914 <noinclude><nowiki>~~~~</nowiki></noinclude>
5916 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5918 {{subst:Foo}} shall be converted to FOO
5920 As well as inside noinclude/onlyinclude
5921 <noinclude>{{subst:Foo}}</noinclude>
5922 <onlyinclude>{{subst:Foo}}</onlyinclude>
5924 But not inside includeonly
5925 <includeonly>{{subst:Foo}}</includeonly>
5929 <nowiki>~~~~</nowiki>
5931 <includeonly><nowiki>~~~~</nowiki></includeonly>
5933 <noinclude><nowiki>~~~~</nowiki></noinclude>
5935 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5937 FOO shall be converted to FOO
5939 As well as inside noinclude/onlyinclude
5940 <noinclude>FOO</noinclude>
5941 <onlyinclude>FOO</onlyinclude>
5943 But not inside includeonly
5944 <includeonly>{{subst:Foo}}</includeonly>
5948 ### Message transform tests
5951 message transform: magic variables
5961 message transform: should not transform wiki markup
5971 message transform: <noinclude> in transcluded template (bug 4926)
5981 message transform: <onlyinclude> in transcluded template (bug 4926)
5991 {{#special:}} page name, known
5995 {{#special:Recentchanges}}
5997 Special:RecentChanges
6001 {{#special:}} page name with subpage, known
6005 {{#special:Recentchanges/param}}
6007 Special:RecentChanges/param
6011 {{#special:}} page name, unknown
6015 {{#special:foobarnonexistent}}
6017 No such special page
6021 {{#speciale:}} page name, known
6025 {{#speciale:Recentchanges}}
6027 Special:RecentChanges
6031 {{#speciale:}} page name with subpage, known
6035 {{#speciale:Recentchanges/param}}
6037 Special:RecentChanges/param
6041 {{#speciale:}} page name, unknown
6045 {{#speciale:foobarnonexistent}}
6047 No_such_special_page
6056 [[Image:foobar.jpg]]
6058 <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>
6065 [[Image:foobar.jpg|right]]
6067 <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>
6072 Simple image (using File: namespace, now canonical)
6076 <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>
6083 [[Image:foobar.jpg|right|Caption text]]
6085 <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>
6090 Image with empty attribute
6092 [[Image:foobar.jpg|right||Caption text]]
6094 <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>
6099 Image with link tails
6101 123[[Image:foobar.jpg]]456
6102 123[[Image:foobar.jpg|right]]456
6103 123[[Image:foobar.jpg|thumb]]456
6105 <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
6107 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
6108 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
6113 Image with multiple captions -- only last one is accepted
6115 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
6117 <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>
6122 Image with width attribute at different positions
6124 [[Image:foobar.jpg|200px|right|Caption]]
6125 [[Image:foobar.jpg|right|200px|Caption]]
6126 [[Image:foobar.jpg|right|Caption|200px]]
6128 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
6129 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
6130 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
6135 Image with link parameter, wiki target
6137 [[Image:foobar.jpg|link=Target page]]
6139 <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>
6144 Image with link parameter, URL target
6146 [[Image:foobar.jpg|link=http://example.com/]]
6148 <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>
6153 Image with link parameter, wgExternalLinkTarget
6155 [[Image:foobar.jpg|link=http://example.com/]]
6157 wgExternalLinkTarget='foobar'
6159 <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>
6164 Image with link parameter, wgNoFollowLinks set to false
6166 [[Image:foobar.jpg|link=http://example.com/]]
6168 wgNoFollowLinks=false
6170 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6175 Image with link parameter, wgNoFollowDomainExceptions
6177 [[Image:foobar.jpg|link=http://example.com/]]
6179 wgNoFollowDomainExceptions='example.com'
6181 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
6186 Image with link parameter, wgExternalLinkTarget, unnamed parameter
6188 [[Image:foobar.jpg|link=http://example.com/|Title]]
6190 wgExternalLinkTarget='foobar'
6192 <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>
6197 Image with empty link parameter
6199 [[Image:foobar.jpg|link=]]
6201 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
6206 Image with link parameter (wiki target) and unnamed parameter
6208 [[Image:foobar.jpg|link=Target page|Title]]
6210 <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>
6215 Image with link parameter (URL target) and unnamed parameter
6217 [[Image:foobar.jpg|link=http://example.com/|Title]]
6219 <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>
6224 Thumbnail image with link parameter
6226 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
6228 <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>
6233 Image with frame and link
6235 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
6237 <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>
6242 Image with frame and link and explicit alt
6244 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
6246 <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>
6251 Image with wiki markup in implicit alt
6253 [[Image:Foobar.jpg|testing '''bold''' in alt]]
6255 <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>
6260 Image with wiki markup in explicit alt
6262 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
6264 <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>
6269 Link to image page- image page normally doesn't exists, hence edit link
6270 Add test with existing image page
6271 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
6275 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
6280 bug 18784 Link to non-existent image page with caption should use caption as link text
6282 [[:Image:test|caption]]
6284 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
6289 Frameless image caption with a free URL
6291 [[Image:foobar.jpg|http://example.com]]
6293 <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>
6298 Thumbnail image caption with a free URL
6300 [[Image:foobar.jpg|thumb|http://example.com]]
6302 <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>
6307 Thumbnail image caption with a free URL and explicit alt
6309 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
6311 <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>
6316 BUG 1887: A ISBN with a thumbnail
6318 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
6320 <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>
6325 BUG 1887: A RFC with a thumbnail
6327 [[Image:foobar.jpg|thumb|This is RFC 12354]]
6329 <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>
6334 BUG 1887: A mailto link with a thumbnail
6336 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
6338 <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>
6342 # Pending resolution to bug 368
6344 BUG 648: Frameless image caption with a link
6346 [[Image:foobar.jpg|text with a [[link]] in it]]
6348 <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>
6353 BUG 648: Frameless image caption with a link (suffix)
6355 [[Image:foobar.jpg|text with a [[link]]foo in it]]
6357 <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>
6362 BUG 648: Frameless image caption with an interwiki link
6364 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
6366 <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>
6371 BUG 648: Frameless image caption with a piped interwiki link
6373 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
6375 <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>
6380 Escape HTML special chars in image alt text
6382 [[Image:foobar.jpg|& < > "]]
6384 <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>
6389 BUG 499: Alt text should have Ӓ, not &1234;
6391 [[Image:foobar.jpg|♀]]
6393 <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>
6398 Broken image caption with link
6400 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
6402 <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.
6407 Image caption containing another image
6409 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
6411 <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>
6416 Image caption containing a newline
6418 [[Image:Foobar.jpg|This
6421 <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>
6427 Bug 3090: External links other than http: in image captions
6429 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
6431 <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>
6438 [[Image:foobar.jpg|a|class=b]]
6440 <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>
6447 #REDIRECT [[File:Barfoo.jpg]]
6453 [[Image:Barfoo.jpg]]
6455 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
6460 Missing image with uploads disabled
6464 [[Image:Foobaz.jpg]]
6466 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
6475 Subpage test/subpage
6483 subpage title=[[Subpage test]]
6487 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
6492 Subpage noslash link
6494 subpage title=[[Subpage test]]
6498 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
6507 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
6512 BUG 561: {{/Subpage}}
6514 subpage title=[[Page]]
6518 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
6526 Category:MediaWiki User's Guide
6534 [[:Category:MediaWiki User's Guide]]
6536 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
6545 [[Category:MediaWiki User's Guide]]
6547 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6551 PAGESINCATEGORY invalid title fatal (r33546 fix)
6553 {{PAGESINCATEGORY:<bogus>}}
6560 Category with different sort key
6564 [[Category:MediaWiki User's Guide|Foo]]
6566 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6570 Category with identical sort key
6574 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6576 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
6580 Category with empty sort key
6585 [[Category:MediaWiki User's Guide|]]
6587 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
6591 Category with empty sort key and parentheses
6596 [[Category:Foo (bar)|]]
6598 [[Category:Foo (bar)|Foo]]
6602 Category with link tail
6607 123[[Category:Foo]]456
6609 123[[Category:Foo]]456
6613 Category with template
6618 [[Category:{{echo|Foo}}]]
6620 [[Category:{{echo|Foo}}]]
6624 Category with template in sort key
6629 [[Category:Foo|{{echo|Bar}}]]
6631 [[Category:Foo|{{echo|Bar}}]]
6635 Category with template in sort key and title
6640 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6642 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
6646 Category / paragraph interactions
6648 Foo [[Category:Baz]] Bar
6650 Foo [[Category:Baz]]
6658 [[Category:Baz]] Bar
6671 {{echo|[[Category:Baz]]}}
6686 ### Inter-language links
6689 Inter-language links
6695 [[zh:食品]]
6697 es:Alimento fr:Nourriture zh:食品
6701 Duplicate interlanguage links (bug 24502)
6717 Basic section headings
6724 ===Smaller headline===
6727 <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>
6730 <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>
6733 <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>
6739 Section headings with TOC
6742 === Subheadline 1 ===
6743 ===== Skipping a level =====
6744 ====== Skipping a level ======
6748 ===Another headline===
6750 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6752 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6754 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6756 <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>
6758 <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>
6765 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6767 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6772 <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>
6773 <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>
6774 <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>
6775 <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>
6776 <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>
6779 <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>
6783 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6785 Handling of sections up to level 6 and beyond
6788 == Level 2 Heading==
6789 === Level 3 Heading===
6790 ==== Level 4 Heading====
6791 ===== Level 5 Heading=====
6792 ====== Level 6 Heading======
6793 ======= Level 7 Heading=======
6794 ======== Level 8 Heading========
6795 ========= Level 9 Heading=========
6796 ========== Level 10 Heading==========
6798 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6800 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6802 <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>
6804 <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>
6806 <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>
6808 <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>
6810 <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>
6811 <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>
6812 <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>
6813 <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>
6814 <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>
6827 <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>
6828 <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>
6829 <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>
6830 <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>
6831 <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>
6832 <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>
6833 <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>
6834 <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>
6835 <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>
6836 <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>
6841 TOC regression (bug 9764)
6845 ==== title 1.1.1 ====
6850 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6852 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6854 <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>
6856 <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>
6859 <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>
6862 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6864 <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>
6869 <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>
6870 <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>
6871 <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>
6872 <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>
6873 <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>
6874 <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>
6879 TOC with wgMaxTocLevel=3 (bug 6204)
6885 ==== title 1.1.1 ====
6890 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6892 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6894 <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>
6895 <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>
6898 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6900 <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>
6905 <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>
6906 <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>
6907 <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>
6908 <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>
6909 <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>
6910 <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>
6915 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6921 ====Section 1.1.1====
6922 ====Section 1.1.1.1====
6925 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6927 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6929 <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>
6932 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6935 <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>
6936 <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>
6937 <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>
6938 <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>
6939 <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>
6945 Resolving duplicate section names
6950 <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>
6951 <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>
6956 Resolving duplicate section names with differing case (bug 10721)
6961 <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>
6962 <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>
6974 Template with sections, __NOTOC__
6981 <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>
6982 <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>
6983 <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>
6984 <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>
6989 __NOEDITSECTION__ keyword
6995 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6996 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
7001 Link inside a section heading
7003 ==Section with a [[Main Page|link]] in it==
7005 <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>
7010 TOC regression (bug 12077)
7017 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7019 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
7021 <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>
7024 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
7027 <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>
7028 <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>
7029 <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>
7034 BUG 1219 URL next to image (good)
7036 http://example.com [[Image:foobar.jpg]]
7038 <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>
7043 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
7046 The line above must have a trailing space!
7049 But just in case it doesn't...
7051 <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>
7052 <p>The line above must have a trailing space!
7054 <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>
7055 <p>But just in case it doesn't...
7060 Header with special characters (bug 25462)
7062 The tooltips shall not show entities to the user (ie. be double escaped)
7079 <p>The tooltips shall not show entities to the user (ie. be double escaped)
7081 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7083 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
7084 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
7085 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
7086 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
7087 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
7090 <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>
7093 <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>
7096 <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>
7099 <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>
7102 <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>
7108 Headers with excess '=' characters
7109 (Are similar tests necessary beyond the 1st level?)
7113 =''italic'' heading==
7114 ==''italic'' heading=
7116 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7118 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
7119 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
7120 <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>
7121 <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>
7124 <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>
7125 <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>
7126 <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>
7127 <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>
7132 BUG 1219 URL next to image (broken)
7134 http://example.com[[Image:foobar.jpg]]
7136 <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>
7141 Bug 1186 news: in the middle of text
7143 http://en.wikinews.org/wiki/Wikinews:Workplace
7145 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
7151 Namespaced link must have a title
7160 Namespaced link must have a title (bad fragment version)
7162 [[Project:#fragment]]
7164 <p>[[Project:#fragment]]
7170 div with no attributes
7172 <div>HTML rocks</div>
7174 <div>HTML rocks</div>
7179 div with double-quoted attribute
7181 <div id="rock">HTML rocks</div>
7183 <div id="rock">HTML rocks</div>
7188 div with single-quoted attribute
7190 <div id='rock'>HTML rocks</div>
7192 <div id="rock">HTML rocks</div>
7197 div with unquoted attribute
7199 <div id=rock>HTML rocks</div>
7201 <div id="rock">HTML rocks</div>
7206 div with illegal double attributes
7208 <div id="a" id="b">HTML rocks</div>
7210 <div id="b">HTML rocks</div>
7214 # FIXME: produce empty string instead of "class" in the PHP parser, following
7217 div with empty attribute value, space before equals
7221 <div class =>HTML rocks</div>
7223 <div class="">HTML rocks</div>
7227 # This it very inconsistent in the PHP parser: it returns
7228 # class="class" if there is a space between the name and the equal sign (see
7229 # 'div with empty attribute value, space before equals'), but strips the
7230 # attribute completely if the space is missing. We hope that not much content
7231 # depends on this, so are implementing the behavior below in Parsoid for
7232 # consistencies' sake. Disabled for the PHP parser.
7233 # FIXME: fix this behavior in the PHP parser?
7235 div with empty attribute value, no space before equals
7239 <div class=>HTML rocks</div>
7241 <div class="">HTML rocks</div>
7246 HTML multiple attributes correction
7248 <p class="error" class="awesome">Awesome!</p>
7250 <p class="awesome">Awesome!</p>
7255 Table multiple attributes correction
7258 !+ class="error" class="awesome"| status
7263 <th class="awesome"> status
7271 <DIV ID="x">HTML ROCKS</DIV>
7273 <div id="x">HTML ROCKS</div>
7278 Non-ASCII pseudo-tags are rendered as text
7287 Pseudo-tag with URL 'name' renders as url link
7289 <http://example.com/>
7291 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
7296 text with amp in the middle of nowhere
7300 <p>Remember AT&T?
7305 text with character entity: eacute
7307 I always thought é was a cute letter.
7309 <p>I always thought é was a cute letter.
7314 text with undefined character entity: xacute
7316 I always thought &xacute; was a cute letter.
7318 <p>I always thought &xacute; was a cute letter.
7330 [[Media:Foobar.jpg]]
7332 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
7337 Media link with text
7339 [[Media:Foobar.jpg|A neat file to look at]]
7341 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
7345 # FIXME: this is still bad HTML tag nesting
7347 Media link with nasty text
7348 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
7350 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
7352 <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>
7357 Media link to nonexistent file (bug 1702)
7359 [[Media:No such.jpg]]
7361 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
7366 Image link to nonexistent file (bug 1850 - good)
7368 [[Image:No such.jpg]]
7370 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
7375 :Image link to nonexistent file (bug 1850 - bad)
7377 [[:Image:No such.jpg]]
7379 <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>
7386 Character reference normalization in link text (bug 1938)
7388 [[Main Page|this&that]]
7390 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
7397 Test for unicode normalization
7399 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
7403 (bug 19451) Links should refer to the normalized form.
7411 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7412 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7413 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7414 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7415 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
7420 Empty attribute crash test (bug 2067)
7422 <font color="">foo</font>
7424 <p><font color="">foo</font>
7429 Empty attribute crash test single-quotes (bug 2067)
7431 <font color=''>foo</font>
7433 <p><font color="">foo</font>
7438 Attribute test: equals, then nothing
7440 <font color=>foo</font>
7447 Attribute test: unquoted value
7449 <font color=x>foo</font>
7451 <p><font color="x">foo</font>
7456 Attribute test: unquoted but illegal value (hash)
7458 <font color=#x>foo</font>
7460 <p><font color="#x">foo</font>
7465 Attribute test: no value
7467 <font color>foo</font>
7469 <p><font color="color">foo</font>
7474 Bug 2095: link with three closing brackets
7478 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
7483 Bug 2095: link with pipe and three closing brackets
7487 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
7492 Bug 2095: link with pipe and three closing brackets, version 2
7494 [[Main Page|[http://example.com/]]]
7496 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
7506 Template:Dangerous attribute
7508 " onmouseover="alert(document.cookie)
7512 Template:Dangerous style attribute
7514 border-size: expression(alert(document.cookie))
7520 <div style="float: right; {{{1}}}">Magic div</div>
7524 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
7526 <div title="{{test}}"></div>
7528 <div title="This is a test template"></div>
7533 Bug 2304: HTML attribute safety (dangerous template; 2309)
7535 <div title="{{dangerous attribute}}"></div>
7537 <div title=""></div>
7542 Bug 2304: HTML attribute safety (dangerous style template; 2309)
7544 <div style="{{dangerous style attribute}}"></div>
7546 <div style="/* insecure input */"></div>
7551 Bug 2304: HTML attribute safety (safe parameter; 2309)
7553 {{div style|width: 200px}}
7555 <div style="float: right; width: 200px">Magic div</div>
7560 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
7562 {{div style|width: expression(alert(document.cookie))}}
7564 <div style="/* insecure input */">Magic div</div>
7569 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
7571 {{div style|"><script>alert(document.cookie)</script>}}
7573 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7578 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
7580 {{div style|" ><script>alert(document.cookie)</script>}}
7582 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
7587 Bug 2304: HTML attribute safety (link)
7589 <div title="[[Main Page]]"></div>
7591 <div title="[[Main Page]]"></div>
7596 Bug 2304: HTML attribute safety (italics)
7598 <div title="''foobar''"></div>
7600 <div title="''foobar''"></div>
7605 Bug 2304: HTML attribute safety (bold)
7607 <div title="'''foobar'''"></div>
7609 <div title="'''foobar'''"></div>
7615 Bug 2304: HTML attribute safety (ISBN)
7617 <div title="ISBN 1234567890"></div>
7619 <div title="ISBN 1234567890"></div>
7624 Bug 2304: HTML attribute safety (RFC)
7626 <div title="RFC 1234"></div>
7628 <div title="RFC 1234"></div>
7633 Bug 2304: HTML attribute safety (PMID)
7635 <div title="PMID 1234567890"></div>
7637 <div title="PMID 1234567890"></div>
7642 Bug 2304: HTML attribute safety (web link)
7644 <div title="http://example.com/"></div>
7646 <div title="http://example.com/"></div>
7651 Bug 2304: HTML attribute safety (named web link)
7653 <div title="[http://example.com/ link]"></div>
7655 <div title="[http://example.com/ link]"></div>
7660 Bug 3244: HTML attribute safety (extension; safe)
7662 <div style="<nowiki>background:blue</nowiki>"></div>
7664 <div style="background:blue"></div>
7669 Bug 3244: HTML attribute safety (extension; unsafe)
7671 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
7673 <div style="/* insecure input */"></div>
7677 # More MSIE fun discovered by Tom Gilder
7680 MSIE CSS safety test: spurious slash
7682 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
7684 <div style="/* insecure input */">evil</div>
7689 MSIE CSS safety test: hex code
7691 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
7693 <div style="/* insecure input */">evil</div>
7698 MSIE CSS safety test: comment in url
7700 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
7702 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
7707 MSIE CSS safety test: comment in expression
7709 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
7711 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
7717 Table attribute legitimate extension
7720 !+ style="<nowiki>color:blue</nowiki>"| status
7725 <th style="color:blue"> status
7731 Table attribute safety
7734 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
7739 <th style="/* insecure input */"> status
7745 CSS line continuation 1
7747 <div style="background-image: u\ rl(test.jpg);"></div>
7749 <div style="/* insecure input */"></div>
7754 CSS line continuation 2
7756 <div style="background-image: u\ rl(test.jpg); "></div>
7758 <div style="/* insecure input */"></div>
7769 Expansion of multi-line templates in attribute values (bug 6255)
7771 <div style="background: {{identity|#00FF00}}">-</div>
7773 <div style="background: #00FF00">-</div>
7779 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7781 <div style="background:
7784 <div style="background: #00FF00">-</div>
7789 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7791 <div style="background: #00FF00">-</div>
7793 <div style="background: #00FF00">-</div>
7798 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7801 Parser hook: empty input
7814 Parser hook: empty input using terminated empty elements
7827 Parser hook: empty input using terminated empty elements (space before)
7840 Parser hook: basic input
7854 Parser hook: case insensitive
7868 Parser hook: case insensitive, redux
7881 Parser hook: nested tags
7885 <tag><tag></tag></tag>
7896 Parser hook: basic arguments
7898 <tag width=200 height = "100" depth = '50' square></tag>
7906 'square' => 'square',
7913 Parser hook: argument containing a forward slash (bug 5344)
7915 <tag filename='/tmp/bla'></tag>
7920 'filename' => '/tmp/bla',
7927 Parser hook: empty input using terminated empty elements (bug 2374)
7940 # </tag> should be output literally since there is no matching tag that begins it
7942 Parser hook: basic arguments using terminated empty elements (bug 2374)
7944 <tag width=200 height = "100" depth = '50' square/>
7954 'square' => 'square',
7963 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7967 Parser hook: static parser hook not inside a comment
7969 <statictag>hello, world</statictag>
7970 <statictag action=flush/>
7978 Parser hook: static parser hook inside a comment
7980 <!-- <statictag>hello, world</statictag> -->
7981 <statictag action=flush/>
7987 # Nested template calls; this case was broken by Parser.php rev 1.506,
7991 Template:One-parameter
7993 (My parameter is: {{{1}}})
7997 Template:Map-one-parameter
8003 Nested template calls
8005 {{Map-one-parameter|One-parameter|param}}
8007 <p>(My parameter is: param)
8016 Sanitizer: Closing of open tags
8018 <s></s><table></table>
8020 <s></s><table></table>
8025 Sanitizer: Closing of open but not closed tags
8034 Sanitizer: Closing of closed but not open tags
8043 Sanitizer: Closing of closed but not open table tags
8045 Table not started</td></tr></table>
8047 <p>Table not started</td></tr></table>
8052 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
8054 <span id="æ: v">byte</span>[[#æ: v|backlink]]
8056 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
8061 Sanitizer: Validating the contents of the id attribute (bug 4515)
8067 Something, but definitely not <br id="9" />...
8071 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
8075 <br id="foo" /><br id="foo" />
8077 Something need to be done. foo-2 ?
8081 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
8084 <meta itemprop="hello" content="world">
8085 <meta http-equiv="refresh" content="5">
8086 <meta itemprop="hello" http-equiv="refresh" content="5">
8087 <link itemprop="hello" href="{{SERVER}}">
8088 <link rel="stylesheet" href="{{SERVER}}">
8089 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
8092 <div itemscope="itemscope">
8093 <p> <meta itemprop="hello" content="world" />
8094 <meta http-equiv="refresh" content="5">
8095 <meta itemprop="hello" content="5" />
8097 <link itemprop="hello" href="http://Britney-Spears" />
8098 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>">
8099 <link itemprop="hello" href="http://Britney-Spears" />
8105 Language converter: output gets cut off unexpectedly (bug 5757)
8109 this bit is safe: }-
8111 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
8113 then we get cut off here: }-
8115 all additional text is vanished
8117 <p>this bit is safe: }-
8118 </p><p>but if we add a conversion instance: xxx
8119 </p><p>then we get cut off here: }-
8120 </p><p>all additional text is vanished
8125 Self closed html pairs (bug 5487)
8128 <center><font id="bug" />Centered text</center>
8129 <div><font id="bug2" />In div text</div>
8131 <center><font id="bug" />Centered text</center>
8132 <div><font id="bug2" />In div text</div>
8141 Punctuation: nbsp before exclamation
8145 <p>C'est grave !
8150 Punctuation: CSS !important (bug 11874)
8152 <div style="width:50% !important">important</div>
8154 <div style="width:50% !important">important</div>
8159 Punctuation: CSS ! important (bug 11874; with space after)
8161 <div style="width:50% ! important">important</div>
8163 <div style="width:50% ! important">important</div>
8169 HTML bullet list, closed tags (bug 5497)
8184 HTML bullet list, unclosed tags (bug 5497)
8201 HTML ordered list, closed tags (bug 5497)
8216 HTML ordered list, unclosed tags (bug 5497)
8233 HTML nested bullet list, closed tags (bug 5497)
8258 HTML nested bullet list, open tags (bug 5497)
8283 HTML nested ordered list, closed tags (bug 5497)
8308 HTML nested ordered list, open tags (bug 5497)
8333 HTML ordered list item with parameters oddity
8335 <ol><li id="fragment">One</li></ol>
8337 <ol><li id="fragment">One</li></ol>
8342 bug 5918: autonumbering
8344 [http://first/] [http://second] [ftp://ftp]
8348 [mailto:enclosed@mail.tld With target]
8350 [mailto:enclosed@mail.tld]
8352 mailto:inline@mail.tld
8354 <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>
8355 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
8356 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
8357 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
8358 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
8364 # Security and HTML correctness
8365 # From Nick Jenkins' fuzz testing
8369 Fuzz testing: Parser13
8384 Fuzz testing: Parser14
8389 <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>
8390 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
8392 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
8399 Fuzz testing: Parser14-table
8404 <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>
8405 <table style="__TOC__">
8411 # Known to produce bogus xml (extra </td>)
8413 Fuzz testing: Parser16
8433 Fuzz testing: Parser21
8436 ! irc://{{ftp://a" onmouseover="alert('hello world');"
8441 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
8451 Fuzz testing: Parser22
8453 http://===r:::https://b
8457 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
8465 # Known to produce bad XML for now
8467 Fuzz testing: Parser24
8474 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
8475 <br style="onmouseover='alert(document.cookie);' " />
8477 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8482 <u class="|">}}}} >
8483 <br style="onmouseover='alert(document.cookie);'" />
8485 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
8494 # Note: the current result listed for this is not what the original one was,
8495 # but the original bug was JavaScript injection, which is fixed in any case.
8496 # It's not clear that the original result listed was any more correct than the
8497 # current one. Original result:
8500 # <li class="||">
8501 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8503 Fuzz testing: Parser25 (bug 6055)
8509 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
8511 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
8516 Fuzz testing: URL adjacent extension (with space, clean)
8519 http://example.com <nowiki>junk</nowiki>
8521 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
8526 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
8529 http://example.com<nowiki>junk</nowiki>
8531 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
8536 Fuzz testing: URL adjacent extension (no space, dirty; pre)
8539 http://example.com<pre>junk</pre>
8541 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
8546 Fuzz testing: image with bogus manual thumbnail
8548 [[Image:foobar.jpg|thumbnail= ]]
8550 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
8555 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
8557 <pre dir=" "></pre>
8559 <pre dir=" "></pre>
8564 Parsing optional HTML elements (Bug 6171)
8569 <td> Some tabular data</td>
8570 <td> More tabular data ...
8571 <td> And yet som tabular data</td>
8577 <td> Some tabular data</td>
8578 <td> More tabular data ...
8579 </td><td> And yet som tabular data</td>
8586 Correct handling of <td>, <tr> (Bug 6171)
8591 <td> Some tabular data</td>
8592 <td> More tabular data ...</td>
8593 <td> And yet som tabular data</td>
8599 <td> Some tabular data</td>
8600 <td> More tabular data ...</td>
8601 <td> And yet som tabular data</td>
8609 Parsing crashing regression (fr:JavaScript)
8613 <p></body></x>
8618 Inline wiki vs wiki block nesting
8624 <p><b>Bold paragraph</b>
8625 </p><p>New wiki paragraph
8630 Inline HTML vs wiki block nesting
8638 <p><b>Bold paragraph</b>
8639 </p><p>New wiki paragraph
8643 # Original result was this:
8644 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
8646 # While that might be marginally more intuitive, maybe, the six-apostrophe
8647 # construct is clearly pathological and the result stated here (which is what
8648 # the parser actually does) is about as reasonable as anything.
8650 Mixing markup for italics and bold
8653 '''bold''''''bold''bolditalics'''''
8655 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
8663 Article for special page transclusion test
8667 Special page transclusion
8670 {{Special:Prefixindex/Xyzzyx}}
8672 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8677 Special page transclusion twice (bug 5021)
8680 {{Special:Prefixindex/Xyzzyx}}
8681 {{Special:Prefixindex/Xyzzyx}}
8683 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8684 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
8689 Transclusion of default MediaWiki message
8691 {{MediaWiki:Mainpage}}
8698 Transclusion of nonexistent MediaWiki message
8700 {{MediaWiki:Mainpagexxx}}
8702 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
8707 Transclusion of MediaWiki message with underscore
8709 {{MediaWiki:history_short}}
8716 Transclusion of MediaWiki message with space
8718 {{MediaWiki:history short}}
8725 Invalid header with following text
8735 Section extraction test (section 0)
8755 Section extraction test (section 1)
8777 Section extraction test (section 2)
8798 Section extraction test (section 3)
8818 Section extraction test (section 4)
8842 Section extraction test (section 5)
8862 Section extraction test (section 6)
8883 Section extraction test (section 7)
8903 Section extraction test (section 8)
8923 Section extraction test (section 9)
8944 Section extraction test (section 10)
8964 Section extraction test (nonexistent section 11)
8983 Section extraction test with bogus heading (section 1)
8988 ==bogus== not a legal section
8992 ==bogus== not a legal section
8996 Section extraction test with bogus heading (section 2)
9001 ==bogus== not a legal section
9008 Section extraction test with comment after heading (section 1)
9020 Section extraction test with comment after heading (section 2)
9032 Section extraction test with bogus <nowiki> heading (section 1)
9037 ==bogus== <nowiki>not a legal section</nowiki>
9041 ==bogus== <nowiki>not a legal section</nowiki>
9045 Section extraction test with bogus <nowiki> heading (section 2)
9050 ==bogus== <nowiki>not a legal section</nowiki>
9057 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
9058 # instead of respecting commented sections
9060 Section extraction prefixed by comment (section 1)
9071 Section extraction prefixed by comment (section 2)
9082 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
9083 # instead of respecting HTML-style headings
9085 Section extraction, mixed wiki and html (section 1)
9101 Section extraction, mixed wiki and html (section 2)
9117 # Formerly testing for bug 3342
9119 Section extraction, heading surrounded by <noinclude>
9123 <noinclude>==unmarked==</noinclude>
9129 # Test behaviour of bug 19910
9131 Sectiion with all-equals
9136 The line above must have a trailing space
9139 But just in case it doesn't...
9143 But just in case it doesn't...
9147 Section replacement test (section 0)
9178 Section replacement test (section 1)
9207 Section replacement test (section 2)
9237 Section replacement test (section 3)
9268 Section replacement test (section 4)
9295 Section replacement test (section 5)
9326 Section replacement test (section 6)
9356 Section replacement test (section 7)
9387 Section replacement test (section 8)
9418 Section replacement test (section 9)
9447 Section replacement test (section 10)
9477 Section replacement test with initial whitespace (bug 13728)
9481 Preformatted initial line
9485 Preformatted initial line
9492 Section extraction, heading followed by pre with 20 spaces (bug 6398)
9504 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
9517 Section extraction, <pre> around bogus header (bug 10309)
9534 Section replacement, <pre> around bogus header (bug 10309)
9536 noxml replace=2,"xxx"
9557 Handling of 
 in URLs
9561 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
9568 5 quotes, code coverage +1 line
9575 Special:Search page linking.
9579 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
9594 * {{SUBJECTPAGENAME}}
9595 * {{SUBJECTPAGENAMEE}}
9602 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
9604 <ul><li> Parser test
9605 </li><li> Parser test
9606 </li><li> Parser test
9607 </li><li> Parser_test
9608 </li><li> Parser test
9609 </li><li> Parser_test
9610 </li><li> Talk:Parser test
9611 </li><li> Talk:Parser_test
9612 </li><li> Parser test
9613 </li><li> Parser_test
9620 </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>
9624 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
9634 image4 |300px| centre
9635 image5.svg| http://///////
9640 <ul class="gallery">
9641 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9642 <div style="height: 150px;">Image1.png</div>
9643 <div class="gallerytext">
9646 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9647 <div style="height: 150px;">Image2.gif</div>
9648 <div class="gallerytext">
9653 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9654 <div style="height: 150px;">Image3</div>
9655 <div class="gallerytext">
9658 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9659 <div style="height: 150px;">Image4</div>
9660 <div class="gallerytext">
9665 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9666 <div style="height: 150px;">Image5.svg</div>
9667 <div class="gallerytext">
9668 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
9672 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9673 <div style="height: 150px;">* image6</div>
9674 <div class="gallerytext">
9682 Gallery (with options)
9684 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
9685 File:Nonexistant.jpg|caption
9686 File:Nonexistant.jpg
9687 image:foobar.jpg|some '''caption''' [[Main Page]]
9689 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
9692 <ul class="gallery" style="max-width: 226px;_width: 226px;">
9693 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
9694 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9695 <div style="height: 70px;">Nonexistant.jpg</div>
9696 <div class="gallerytext">
9701 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9702 <div style="height: 70px;">Nonexistant.jpg</div>
9703 <div class="gallerytext">
9706 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9707 <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>
9708 <div class="gallerytext">
9709 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9713 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9714 <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>
9715 <div class="gallerytext">
9718 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
9719 <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>
9720 <div class="gallerytext">
9730 Gallery with wikitext inside caption
9733 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
9734 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
9737 <ul class="gallery">
9738 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9739 <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>
9740 <div class="gallerytext">
9741 <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>
9745 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9746 <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>
9747 <div class="gallerytext">
9748 <p>This is a test template
9757 gallery (with showfilename option)
9759 <gallery showfilename>
9760 File:Nonexistant.jpg|caption
9761 File:Nonexistant.jpg
9762 image:foobar.jpg|some '''caption''' [[Main Page]]
9766 <ul class="gallery">
9767 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9768 <div style="height: 150px;">Nonexistant.jpg</div>
9769 <div class="gallerytext">
9770 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9775 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9776 <div style="height: 150px;">Nonexistant.jpg</div>
9777 <div class="gallerytext">
9778 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
9782 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9783 <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>
9784 <div class="gallerytext">
9785 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9786 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9790 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9791 <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>
9792 <div class="gallerytext">
9793 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9802 Gallery (with namespace-less filenames)
9805 File:Nonexistant.jpg
9811 <ul class="gallery">
9812 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9813 <div style="height: 150px;">Nonexistant.jpg</div>
9814 <div class="gallerytext">
9817 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9818 <div style="height: 150px;">Nonexistant.jpg</div>
9819 <div class="gallerytext">
9822 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9823 <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>
9824 <div class="gallerytext">
9827 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9828 <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>
9829 <div class="gallerytext">
9837 HTML Hex character encoding (spells the word "JavaScript")
9839 JavaScript
9841 <p>JavaScript
9846 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9850 <p>&#xsee;&#XSEE;
9855 HTML Hex character encoding mixed case
9864 __FORCETOC__ override
9876 ISBN 978-0-1234-56 789
9878 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9883 ISBN followed by 5 spaces
9894 ISBN ISBN 1234567890
9896 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9901 Bug 22905: <abbr> followed by ISBN followed by </a>
9903 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9905 <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>
9914 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9919 Double RFC with a wiki link
9923 <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>
9932 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9937 Centre-aligned image
9939 [[Image:foobar.jpg|centre]]
9941 <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>
9948 [[Image:foobar.jpg|none]]
9950 <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>
9955 Width + Height sized image (using px) (height is ignored)
9957 [[Image:foobar.jpg|640x480px]]
9959 <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>
9964 Width-sized image (using px, no following whitespace)
9966 [[Image:foobar.jpg|640px]]
9968 <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>
9973 Width-sized image (using px, with following whitespace - test regression from r39467)
9975 [[Image:foobar.jpg|640px ]]
9977 <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>
9982 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9984 [[Image:foobar.jpg| 640px]]
9986 <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>
9991 Another italics / bold test
9999 # Note the results may be incorrect, as parserTest output included this:
10000 # XML error: Mismatched tag at byte 6120:
10001 # ...<dd> </dt></dl> </dd...
10009 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
10020 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
10022 Images with the "|" character in the comment
10024 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
10026 <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>
10031 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
10033 <html><script>alert(1);</script></html>
10035 <p><html><script>alert(1);</script></html>
10040 HTML with raw HTML ($wgRawHtml==true)
10044 <html><script>alert(1);</script></html>
10046 <p><script>alert(1);</script>
10051 Parents of subpages, one level up
10053 subpage title=[[Subpage test/L1/L2/L3]]
10057 <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>
10063 Parents of subpages, one level up, not named
10065 subpage title=[[Subpage test/L1/L2/L3]]
10069 <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>
10076 Parents of subpages, two levels up
10078 subpage title=[[Subpage test/L1/L2/L3]]
10084 <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
10085 </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>
10090 Parents of subpages, two levels up, without trailing slash or name.
10092 subpage title=[[Subpage test/L1/L2/L3]]
10101 Parents of subpages, two levels up, with lots of extra trailing slashes.
10103 subpage title=[[Subpage test/L1/L2/L3]]
10107 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
10112 Definition list code coverage
10118 <dl><dt> title  </dt><dd> def
10119 </dd><dt> title </dt><dd> def
10120 </dd><dt>title</dt><dd> def
10126 Don't fall for the self-closing div
10128 <div>hello world</div/>
10130 <div>hello world</div>
10139 <p>[[:Template:Msg]]
10148 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
10152 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
10154 Always escape literal '>' in output, not just after '<'
10168 <p>This is a test template
10169 This is a test template
10181 Inclusion of !userCanEdit() content
10185 <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>
10191 Out-of-order TOC heading levels
10200 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10202 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
10204 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
10205 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
10208 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
10210 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
10211 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
10216 <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>
10217 <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>
10218 <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>
10219 <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>
10220 <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>
10221 <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>
10227 ISBN with a dummy number
10237 ISBN with space-delimited number
10241 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
10247 ISBN with multiple spaces, no number
10266 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
10267 </p><p>ISBN 12345678901
10273 ISBN with trailing year (bug 8110)
10275 ISBN 1-234-56789-0 - 2006
10277 ISBN 1 234 56789 0 - 2006
10279 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
10280 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
10288 {{anchorencode:foo bar©#%n}}
10290 <p>foo_bar.C2.A9.23.25n
10295 anchorencode trims spaces
10297 {{anchorencode: __pretty__please__}}
10304 anchorencode deals with links
10306 {{anchorencode: [[hello|world]] [[hi]]}}
10313 anchorencode deals with templates
10315 {{anchorencode: {{Foo}} }}
10322 anchorencode encodes like the TOC generator: (bug 18431)
10324 === _ +:.3A%3A&&]] ===
10325 {{anchorencode: _ +:.3A%3A&&]] }}
10328 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
10329 <p>.2B:.3A.253A.26.26.5D.5D
10333 # Expected output in the following test is not necessarily expected (there
10334 # should probably be <p> tags inside the <blockquote> in the output) -- it's
10335 # only testing for well-formedness.
10337 Bug 6200: blockquotes and paragraph formatting
10357 Bug 8293: Use of center tag ruins paragraph formatting
10379 ### Language variants related tests
10382 Self-link in language variants
10384 title=[[Dunav]] language=sr
10386 Both [[Dunav]] and [[Дунав]] are names for this river.
10388 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
10394 Link to pages in language variants
10398 Main Page can be written as [[Маин Паге]]
10400 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
10406 Multiple links to pages in language variants
10410 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
10412 <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>.
10418 Simple template in language variants
10424 <p>This is a test template
10430 Template with explicit namespace in language variants
10436 <p>This is a test template
10442 Basic test for template parameter in language variants
10446 {{парамтест|param=foo}}
10448 <p>This is a test template with parameter foo
10454 Simple category in language variants
10458 [[Category:МедиаWики Усер'с Гуиде]]
10460 <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>
10465 Stripping -{}- tags (language variants)
10469 Latin proverb: -{Ne nuntium necare}-
10471 <p>Latin proverb: Ne nuntium necare
10477 Prevent conversion with -{}- tags (language variants)
10479 language=sr variant=sr-ec
10481 Latinski: -{Ne nuntium necare}-
10483 <p>Латински: Ne nuntium necare
10489 Prevent conversion of text with -{}- tags (language variants)
10491 language=sr variant=sr-ec
10493 Latinski: -{Ne nuntium necare}-
10495 <p>Латински: Ne nuntium necare
10501 Prevent conversion of links with -{}- tags (language variants)
10503 language=sr variant=sr-ec
10507 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
10513 -{}- tags within headlines (within html for parserConvert())
10515 language=sr variant=sr-ec
10519 <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>
10525 Explicit definition of language variant alternatives
10527 language=zh variant=zh-tw
10529 -{zh:China;zh-tw:Taiwan}-, not China
10531 <p>Taiwan, not China
10537 Explicit session-wise language variant mapping (A flag and - flag)
10539 language=zh variant=zh-tw
10541 Taiwan is not China.
10542 But -{A|zh:China;zh-tw:Taiwan}- is China,
10543 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
10544 and -{China}- is China.
10546 <p>Taiwan is not China.
10547 But Taiwan is Taiwan,
10548 (This should be stripped!)
10549 and China is China.
10554 Explicit session-wise language variant mapping (H flag for hide)
10556 language=zh variant=zh-tw
10558 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
10561 <p>(This should be stripped!)
10567 Adding explicit conversion rule for title (T flag)
10569 language=zh variant=zh-tw showtitle
10571 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10574 <p>Should be stripped!
10579 Testing that changing the language variant here in the tests actually works
10581 language=zh variant=zh showtitle
10583 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10586 <p>Should be stripped!
10591 Bug 24072: more test on conversion rule for title
10593 language=zh variant=zh-tw showtitle
10595 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
10596 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
10599 <p>This should be stripped!
10600 This won't take interferes with the title rule.
10605 Raw output of variant escape tags (R flag)
10607 language=zh variant=zh-tw
10609 Raw: -{R|zh:China;zh-tw:Taiwan}-
10611 <p>Raw: zh:China;zh-tw:Taiwan
10616 Nested using of manual convert syntax
10618 language=zh variant=zh-hk
10620 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
10622 <p>Nested: Hello Hong Kong!
10627 Proper conversion of text in external links
10629 language=sr variant=sr-ec
10631 http://www.google.com
10632 gopher://www.google.com
10633 [http://www.google.com http://www.google.com]
10634 [gopher://www.google.com gopher://www.google.com]
10635 [https://www.google.com irc://www.google.com]
10636 [ftp://www.google.com www.google.com/ftp://dir]
10637 [//www.google.com www.google.com]
10639 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
10640 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
10641 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
10642 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
10643 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
10644 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
10645 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
10650 Do not convert roman numbers to language variants
10652 language=sr variant=sr-ec
10656 <p>Фридрих IV је цар.
10661 Unclosed language converter markup "-{"
10672 Don't convert raw rule "-{R|=>}-" to "=>"
10689 Bug 529: Uncovered bullet
10699 # Plain MediaWiki does not remove empty lists, but tidy actually does.
10700 # Templates in Wikipedia rely on this behavior, as tidy has always been
10701 # enabled there. These tests are normally run *without* tidy, so specify the
10702 # full output here.
10703 # To test realistic parsing behavior, apply a tidy-like transformation to both
10704 # the expected output and your parser's output.
10706 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
10708 ******* Foo {{bullet}}
10710 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
10723 Bug 529: Uncovered table already at line-start
10746 Bug 529: Uncovered bullet in parser function result
10748 * Foo {{lc:{{bullet}} }}
10757 Bug 5678: Double-parsed template argument
10759 {{lc:{{{1}}}|hello}}
10766 Bug 5678: Double-parsed template invocation
10768 {{lc:{{paramtest {{!}} param = hello }} }}
10770 <p>{{paramtest | param = hello }}
10775 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
10778 title=[[Main Page]]
10780 {{PRVNÍVELKÉ:ěščř}}
10781 {{prvnívelké:ěščř}}
10801 Morwen/13: Unclosed link followed by heading
10808 <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>
10813 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
10820 <h1> <span class="mw-headline" id="heading">heading</span></h1>
10825 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
10832 <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>
10847 Paragraphs inside divs (no extra line breaks)
10859 Paragraphs inside divs (extra line break on open)
10874 Paragraphs inside divs (extra line break on close)
10889 Paragraphs inside divs (extra line break on open and close)
10906 Nesting tags, paragraphs on lines which begin with <div>
10910 <div></div><strong>A
10919 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10921 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10925 <blockquote>Line one
10927 Line two</blockquote>
10929 <blockquote>Line one
10930 Line two</blockquote>
10935 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10942 Line two</blockquote>
10947 Line two</blockquote>
10952 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10956 <blockquote>Line one
10961 <blockquote>Line one
10969 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10988 Paragraphs inside blockquotes/divs (no extra line breaks)
10990 <blockquote><div>Line one
10992 Line two</div></blockquote>
10994 <blockquote><div>Line one
10995 Line two</div></blockquote>
11000 Paragraphs inside blockquotes/divs (extra line break on open)
11005 Line two</div></blockquote>
11010 Line two</div></blockquote>
11015 Paragraphs inside blockquotes/divs (extra line break on close)
11017 <blockquote><div>Line one
11020 </div></blockquote>
11022 <blockquote><div>Line one
11025 </div></blockquote>
11030 Paragraphs inside blockquotes/divs (extra line break on open and close)
11036 </div></blockquote>
11042 </div></blockquote>
11047 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
11049 wgLinkHolderBatchSize=0
11055 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
11056 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
11057 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
11062 Free external link invading image caption
11064 [[Image:Foobar.jpg|thumb|http://x|hello]]
11066 <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>
11071 Bug 15196: localised external link numbers
11075 [http://en.wikipedia.org/]
11077 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
11082 Multibyte character in padleft
11084 {{padleft:-Hello|7|Æ}}
11091 Multibyte character in padright
11093 {{padright:Hello-|7|Æ}}
11102 wgUseDynamicDates=1
11106 <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>
11111 formatdate parser function
11113 {{#formatdate:2009-03-24}}
11115 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
11120 formatdate parser function, with default format
11122 {{#formatdate:2009-03-24|mdy}}
11124 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
11129 Linked date with autoformatting disabled
11131 wgUseDynamicDates=false
11135 <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>
11140 Spacing of numbers in formatted dates
11142 {{#formatdate:January 15}}
11144 <p><span class="mw-formatted-date" title="01-15">January 15</span>
11149 Spacing of numbers in formatted dates (linked)
11151 wgUseDynamicDates=true
11155 <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>
11160 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
11162 language=nl title=[[MediaWiki:Common.css]]
11164 {{#formatdate:2009-03-24|dmy}}
11166 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
11179 Edit comment with link
11183 I like the [[Main Page]] a lot
11185 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
11189 Edit comment with link and link text
11193 I like the [[Main Page|best pages]] a lot
11195 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11199 Edit comment with link and link text with suffix
11203 I like the [[Main Page|best page]]s a lot
11205 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
11209 Edit comment with section link (non-local, eg in history list)
11211 comment title=[[Main Page]]
11213 /* External links */ removed bogus entries
11215 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11219 Edit comment with section link and text before it (non-local, eg in history list)
11221 comment title=[[Main Page]]
11223 pre-comment text /* External links */ removed bogus entries
11225 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>
11229 Edit comment with section link (local, eg in diff view)
11231 comment local title=[[Main Page]]
11233 /* External links */ removed bogus entries
11235 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
11239 Edit comment with subpage link (bug 14080)
11243 title=[[Subpage test]]
11245 Poked at a [[/subpage]] here...
11247 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
11251 Edit comment with subpage link and link text (bug 14080)
11255 title=[[Subpage test]]
11257 Poked at a [[/subpage|neat little page]] here...
11259 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
11263 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
11266 title=[[Subpage test]]
11268 Poked at a [[/subpage]] here...
11270 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
11274 Edit comment with bare anchor link (local, as on diff)
11278 title=[[Main Page]]
11282 <a href="#section">#section</a>
11286 Edit comment with bare anchor link (non-local, as on history)
11289 title=[[Main Page]]
11293 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
11297 Anchor starting with underscore
11301 <p><a href="#_ref">One</a>
11306 Id starting with underscore
11308 <div id="_ref"></div>
11310 <div id="_ref"></div>
11315 Space normalisation on autocomment (bug 22784)
11318 title=[[Main Page]]
11320 /* __hello__world__ */
11322 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
11326 percent-encoding and + signs in comments (Bug 26410)
11330 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
11332 <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>
11336 Bad images - basic functionality
11345 Bad images - bug 16039: text after bad image disappears
11359 Verify that displaytitle works (bug #22501) no displaytitle
11363 wgAllowDisplayTitle=true
11364 wgRestrictDisplayTitle=false
11366 this is not the the title
11369 <p>this is not the the title
11374 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
11379 wgAllowDisplayTitle=true
11380 wgRestrictDisplayTitle=false
11382 this is not the the title
11383 {{DISPLAYTITLE:whatever}}
11386 <p>this is not the the title
11391 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
11396 wgAllowDisplayTitle=true
11397 wgRestrictDisplayTitle=true
11399 this is not the the title
11400 {{DISPLAYTITLE:whatever}}
11403 <p>this is not the the title
11408 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
11413 wgAllowDisplayTitle=true
11414 wgRestrictDisplayTitle=true
11416 this is not the the title
11417 {{DISPLAYTITLE:screen}}
11420 <p>this is not the the title
11425 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
11430 wgAllowDisplayTitle=false
11432 this is not the the title
11433 {{DISPLAYTITLE:screen}}
11436 <p>this is not the the title
11437 <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>
11442 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
11447 wgAllowDisplayTitle=false
11449 this is not the the title
11452 <p>this is not the the title
11457 preload: check <noinclude> and <includeonly>
11461 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
11467 preload: check <onlyinclude>
11471 Goodbye <onlyinclude>Hello world</onlyinclude>
11477 preload: can pass tags through if we want to
11481 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
11483 <includeonly>Hello world</includeonly>
11487 preload: check that it doesn't try to do tricks
11491 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11493 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
11497 Play a bit with r67090 and bug 3158
11501 <div style="width:50% !important"> </div>
11502 <div style="width:50% !important"> </div>
11503 <div style="width:50% !important"> </div>
11504 <div style="border : solid;"> </div>
11506 <div style="width:50% !important"> </div>
11507 <div style="width:50% !important"> </div>
11508 <div style="width:50% !important"> </div>
11509 <div style="border : solid;"> </div>
11514 HTML5 data attributes
11516 <span data-foo="bar">Baz</span>
11517 <p data-abc-def_hij="">Quuz</p>
11519 <p><span data-foo="bar">Baz</span>
11521 <p data-abc-def_hij="">Quuz</p>
11526 percent-encoding and + signs in internal links (Bug 26410)
11528 [[User:+%]] [[Page+title%]]
11529 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
11530 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
11531 [[%33%45]] [[%33%45+]]
11533 <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>
11534 <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>
11535 <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>
11536 <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>
11541 Special characters in embedded file links (bug 27679)
11543 [[File:Contains & ampersand.jpg]]
11544 [[File:Does not exist.jpg|Title with & ampersand]]
11546 <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>
11547 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
11553 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
11555 Text's been normalized?
11557 <p>Text's been normalized?
11562 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
11564 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
11566 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
11571 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
11573 [http://www.example.org/ ideograms]
11575 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
11580 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
11582 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
11584 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
11608 Bug 31098 Template which includes system messages which includes the template
11612 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11613 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
11618 Bug31490 Turkish: ucfirst 'blah'
11629 Bug31490 Turkish: ucfirst 'ix'
11640 Bug31490 Turkish: lcfirst 'BLAH'
11651 Bug31490 Turkish: ucfırst (with a dotless i)
11657 <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>
11662 Bug31490 ucfırst (with a dotless i) with English language
11668 <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>
11673 Bug 26375: TOC with italics
11675 title=[[Main Page]]
11678 == ''Lost'' episodes ==
11680 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11682 <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>
11685 <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>
11690 Bug 26375: TOC with bold
11692 title=[[Main Page]]
11695 == '''should be bold''' then normal text ==
11697 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11699 <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>
11702 <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>
11707 Bug 33845: Headings become cursive in TOC when they contain an image
11709 title=[[Main Page]]
11712 == Image [[Image:foobar.jpg]] ==
11714 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11716 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
11719 <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>
11724 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
11726 title=[[Main Page]]
11729 == <blockquote>Quote</blockquote> ==
11731 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11733 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
11736 <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>
11741 Unclosed tags in TOC
11743 title=[[Main Page]]
11747 <small>Hanc marginis exiguitas non caperet.</small>
11750 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11752 <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>
11755 <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>
11756 <p><small>Hanc marginis exiguitas non caperet.</small>
11762 Multiple tags in TOC
11765 == <i>Foo</i> <b>Bar</b> ==
11767 == <i>Foo</i> <blockquote>Bar</blockquote> ==
11769 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11771 <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>
11772 <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>
11775 <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>
11776 <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>
11781 Tags with parameters in TOC
11784 == <sup class="in-h2">Hello</sup> ==
11786 == <sup class="a > b">Evilbye</sup> ==
11788 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11790 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
11791 <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>
11794 <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>
11795 <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>
11800 span tags with directionality in TOC
11803 == <span dir="ltr">C++</span> ==
11805 == <span dir="rtl">זבנג!</span> ==
11807 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
11809 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
11811 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
11813 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
11815 <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>
11816 <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>
11817 <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>
11818 <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>
11819 <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>
11822 <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>
11823 <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>
11824 <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>
11825 <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>
11826 <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>
11833 == {{int:headline_sample}} ==
11837 Bug 32057: Title needed when expanding <h> nodes.
11839 title=[[Main Page]]
11843 <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>
11848 Strip marker in urlencode
11850 {{urlencode:x<nowiki/>y}}
11851 {{urlencode:x<nowiki/>y|wiki}}
11852 {{urlencode:x<nowiki/>y|path}}
11879 Strip marker in formatNum
11881 {{formatnum:1<nowiki/>2}}
11882 {{formatnum:1<nowiki/>2|R}}
11890 Strip marker in grammar
11894 {{grammar:elative|foo<nowiki/>bar}}
11901 Strip marker in padleft
11903 {{padleft:|2|x<nowiki/>y}}
11910 Strip marker in padright
11912 {{padright:|2|x<nowiki/>y}}
11919 Strip marker in anchorencode
11921 {{anchorencode:x<nowiki/>y}}
11928 nowiki inside link inside heading (bug 18295)
11930 ==[[foo|x<nowiki>y</nowiki>z]]==
11932 <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>
11937 new support for bdi element (bug 31817)
11939 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11941 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11946 Ignore pipe between table row attributes
11950 |- id=foo | style='color: red'
11958 <tr id="foo" style="color: red">
11965 Gallery override link with WikiLink (bug 34852)
11968 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11971 <ul class="gallery">
11972 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11973 <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>
11974 <div class="gallerytext">
11984 Gallery override link with absolute external link (bug 34852)
11987 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11990 <ul class="gallery">
11991 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11992 <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>
11993 <div class="gallerytext">
12003 Gallery override link with malicious javascript (bug 34852)
12006 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
12009 <ul class="gallery">
12010 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12011 <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>
12012 <div class="gallerytext">
12022 Language parser function
12031 Padleft and padright as substr
12033 {{padleft:|3|abcde}}
12034 {{padright:|3|abcde}}
12042 Bug 34939 - Case insensitive link parsing ([HttP://])
12044 [HttP://MediaWiki.Org/]
12046 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
12051 Bug 34939 - Case insensitive link parsing ([HttP:// title])
12053 [HttP://MediaWiki.Org/ MediaWiki]
12055 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
12060 Bug 34939 - Case insensitive link parsing (HttP://)
12062 HttP://MediaWiki.Org/
12064 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
12069 ### Parsoids-specific tests
12070 ### Parsoid-PHP parser incompatibilities
12073 1. SOL-sensitive wikitext tokens as template-args
12087 #### The following section of tests are primarily to test
12088 #### wikitext escaping capabilities of Parsoid.
12089 #### A lot of the tests are disabled for the PHP parser either
12090 #### because of minor newline diffs or other reasons.
12091 #### As Parsoid serializer can handle newlines and other HTML
12092 #### more robustly, some of these tests might get reenabled
12093 #### for the PHP parser.
12095 #### --------------- Headings ---------------
12097 #### 1. Nested inside html <h1>=foo=</h1>
12098 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
12099 #### 3. Nested inside html with wikitext split by html tags
12100 #### 4. No escape needed
12101 #### 5. Empty headings <h1></h1>
12102 #### 6. Heading chars in SOL context
12103 #### ----------------------------------------
12105 Headings: 0. Unnested
12107 <nowiki>=foo=</nowiki>
12109 <nowiki>=foo</nowiki>''a''=
12112 </p><p>=foo<i>a</i>=
12117 Headings: 1. Nested inside html
12121 =<nowiki>=foo=</nowiki>=
12122 ==<nowiki>=foo=</nowiki>==
12123 ===<nowiki>=foo=</nowiki>===
12124 ====<nowiki>=foo=</nowiki>====
12125 =====<nowiki>=foo=</nowiki>=====
12126 ======<nowiki>=foo=</nowiki>======
12137 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
12142 <nowiki>*bar</nowiki>
12146 <nowiki>=bar=</nowiki>
12154 Headings: 3. Nested inside html with wikitext split by html tags
12158 =<nowiki>=</nowiki>'''bold'''foo==
12160 <h1>=<b>bold</b>foo=</h1>
12164 Headings: 4. No escaping needed (testing just h1 and h2)
12179 <h1><i>=</i>foo=</h1>
12184 Headings: 5. Empty headings
12188 =<nowiki></nowiki>=
12189 ==<nowiki></nowiki>==
12190 ===<nowiki></nowiki>===
12191 ====<nowiki></nowiki>====
12192 =====<nowiki></nowiki>=====
12193 ======<nowiki></nowiki>======
12204 Headings: 6. Heading chars in SOL context
12208 <!--cmt--><nowiki>=h1=</nowiki>
12214 #### --------------- Lists ---------------
12215 #### 0. Outside nests (*foo, etc.)
12216 #### 1. Nested inside html <ul><li>*foo</li></ul>
12217 #### 2. Inside definition lists
12218 #### 3. Only bullets at start should be escaped
12219 #### 4. No escapes needed
12220 #### 5. No unnecessary escapes
12221 #### 6. Escape bullets in SOL position
12222 #### 7. Escape bullets in a multi-line context
12223 #### ----------------------------------------
12226 Lists: 0. Outside nests
12228 <nowiki>*foo</nowiki>
12230 <nowiki>#foo</nowiki>
12238 Lists: 1. Nested inside html
12240 *<nowiki>*foo</nowiki>
12242 *<nowiki>#foo</nowiki>
12244 *<nowiki>:foo</nowiki>
12246 *<nowiki>;foo</nowiki>
12248 #<nowiki>*foo</nowiki>
12250 #<nowiki>#foo</nowiki>
12252 #<nowiki>:foo</nowiki>
12254 #<nowiki>;foo</nowiki>
12276 Lists: 2. Inside definition lists
12278 ;<nowiki>;foo</nowiki>
12280 ;<nowiki>:foo</nowiki>
12282 ;<nowiki>:foo</nowiki>
12285 :<nowiki>:foo</nowiki>
12300 Lists: 3. Only bullets at start of text should be escaped
12302 *<nowiki>*foo*bar</nowiki>
12304 *<nowiki>*foo</nowiki>''it''*bar
12308 <ul><li>*foo<i>it</i>*bar
12314 Lists: 4. No escapes needed
12326 <ul><li><i>foo</i>*bar
12328 <ul><li><a href="Foo" rel="mw:WikiLink">Foo</a>: bar
12333 Lists: 5. No unnecessary escapes
12335 * bar <span><nowiki>[[foo]]</nowiki></span>
12337 *=bar <span><nowiki>[[foo]]</nowiki></span>
12339 *[[bar <span><nowiki>[[foo]]</nowiki></span>
12341 *<nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12343 *=bar <span>foo]]</span>=
12345 <ul><li> bar <span>[[foo]]</span>
12347 <ul><li>=bar <span>[[foo]]</span>
12349 <ul><li>[[bar <span>[[foo]]</span>
12351 <ul><li>]]bar <span>[[foo]]</span>
12353 <ul><li>=bar <span>foo]]</span>=
12359 Lists: 6. Escape bullets in SOL position
12363 <!--cmt--><nowiki>*foo</nowiki>
12370 Lists: 7. Escape bullets in a multi-line context
12380 #### --------------- HRs ---------------
12381 #### 1. Single line
12382 #### -----------------------------------
12385 HRs: 1. Single line
12390 <nowiki>----</nowiki>
12392 <nowiki>=foo=</nowiki>
12394 <nowiki>*foo</nowiki>
12401 #### --------------- Tables ---------------
12402 #### 1a. Simple example
12403 #### 1b. No escaping needed (!foo)
12404 #### 1c. No escaping needed (|foo)
12405 #### 1d. No escaping needed (|}foo)
12407 #### 2a. Nested in td (<td>foo|bar</td>)
12408 #### 2b. Nested in td (<td>foo||bar</td>)
12409 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
12411 #### 3a. Nested in th (<th>foo!bar</th>)
12412 #### 3b. Nested in th (<th>foo!!bar</th>)
12413 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
12417 #### 4c. No escaping needed
12418 #### --------------------------------------
12421 Tables: 1a. Simple example
12432 Tables: 1b. No escaping needed
12441 Tables: 1c. No escaping needed
12450 Tables: 1d. No escaping needed
12459 Tables: 2a. Nested in td
12464 |<nowiki>foo|bar</nowiki>
12474 Tables: 2b. Nested in td
12479 |<nowiki>foo||bar</nowiki>
12480 |''it''<nowiki>foo||bar</nowiki>
12485 </td><td><i>it</i>foo||bar
12491 Tables: 2c. Nested in td -- no escaping needed
12506 Tables: 3a. Nested in th
12521 Tables: 3b. Nested in th
12526 !<nowiki>foo!!bar</nowiki>
12536 Tables: 3c. Nested in th -- no escaping needed
12551 Tables: 4a. Escape -
12559 |<nowiki>-bar</nowiki>
12563 <tr><th>-bar</th></tr>
12564 <tr><td>-bar</td></tr>
12569 Tables: 4b. Escape +
12577 |<nowiki>+bar</nowiki>
12581 <tr><th>+bar</th></tr>
12582 <tr><td>+bar</td></tr>
12587 Tables: 4c. No escaping needed
12601 <tr><td>foo-bar</td><td>foo+bar</td></tr>
12602 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
12606 #### --------------- Links ---------------
12607 #### 1. Quote marks in link text
12608 #### 2. Wikilinks: Escapes needed
12609 #### 3. Wikilinks: No escapes needed
12610 #### 4. Extlinks: Escapes needed
12611 #### 5. Extlinks: No escapes needed
12612 #### --------------------------------------
12614 Links 1. Quote marks in link text
12618 [[Foo|<nowiki>Foo''boo''</nowiki>]]
12620 <a rel="mw:WikiLink" href="Foo" data-parsoid="{"tsr":[0,7],"contentPos":[5,5],"src":"[[Foo]]","bsp":[0,7],"stx":"simple"}">Foo''boo''</a>
12624 Links 2. WikiLinks: Escapes needed
12628 [[Foo|<nowiki>[Foobar]</nowiki>]]
12629 [[Foo|<nowiki>Foobar]</nowiki>]]
12630 [[Foo|<nowiki>x [Foobar] x</nowiki>]]
12631 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
12632 [[Foo|<nowiki>[[Bar]]</nowiki>]]
12633 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
12634 [[Foo|<nowiki>|Bar</nowiki>]]
12636 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
12637 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
12638 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
12639 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
12640 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
12641 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
12642 <a href="Foo" rel="mw:WikiLink">|Bar</a>
12646 Links 3. WikiLinks: No escapes needed
12653 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
12654 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
12658 Links 4. ExtLinks: Escapes needed
12662 [http://google.com <nowiki>[google]</nowiki>]
12663 [http://google.com <nowiki>google]</nowiki>]
12665 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
12666 <a href="http://google.com" rel="mw:ExtLink">google]</a>
12670 Links 5. ExtLinks: No escapes needed
12674 [http://google.com [google]
12676 <a href="http://google.com" rel="mw:ExtLink">[google</a>
12679 #### --------------- Quotes ---------------
12680 #### 1. Quotes inside <b> and <i>
12681 #### 2. Link fragments separated by <i> and <b> tags
12682 #### 3. Link fragments inside <i> and <b>
12683 #### --------------------------------------
12685 1. Quotes inside <b> and <i>
12687 ''<nowiki>'foo'</nowiki>''
12688 ''<nowiki>''foo''</nowiki>''
12689 ''<nowiki>'''foo'''</nowiki>''
12690 '''<nowiki>'foo'</nowiki>'''
12691 '''<nowiki>''foo''</nowiki>'''
12692 '''<nowiki>'''foo'''</nowiki>'''
12693 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
12701 <b>foo'<i>bar'</i>baz</b>
12706 2. Link fragments separated by <i> and <b> tags
12708 [[''foo''<nowiki>hello]]</nowiki>
12710 [['''foo'''<nowiki>hello]]</nowiki>
12712 <p>[[<i>foo</i>hello]]
12713 </p><p>[[<b>foo</b>hello]]
12718 2. Link fragments inside <i> and <b>
12719 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
12720 this is one of the shortcomings of this format)
12722 ''[[foo''<nowiki>]]</nowiki>
12724 '''[[foo'''<nowiki>]]</nowiki>
12727 </p><p><b>[[foo</b>]]
12731 #### --------------- Paragraphs ---------------
12732 #### 1. No unnecessary escapes
12733 #### --------------------------------------
12736 1. No unnecessary escapes
12738 bar <span><nowiki>[[foo]]</nowiki></span>
12740 =bar <span><nowiki>[[foo]]</nowiki></span>
12742 [[bar <span><nowiki>[[foo]]</nowiki></span>
12744 <nowiki>]]bar </nowiki><span><nowiki>[[foo]]</nowiki></span>
12746 <nowiki>=bar </nowiki><span>foo]]</span>=
12748 <p>bar <span>[[foo]]</span>
12749 </p><p>=bar <span>[[foo]]</span>
12750 </p><p>[[bar <span>[[foo]]</span>
12751 </p><p>]]bar <span>[[foo]]</span>
12752 </p><p>=bar <span>foo]]</span>=
12756 #### --------------- PRE ------------------
12757 #### 1. Leading space in SOL context should be escaped
12758 #### --------------------------------------
12760 1. Leading space in SOL context should be escaped
12764 <nowiki> foo</nowiki>
12765 <!--cmt--><nowiki> foo</nowiki>
12772 #### --------------- HTML tags ---------------
12775 #### 3. multi-line html tag
12776 #### --------------------------------------
12782 <a href="http://google.com">google</a>
12784 <a href="http://google.com">google</a>
12790 <nowiki><div>foo</div>
12791 <div style="color:red">foo</div></nowiki>
12793 <p><div>foo</div>
12794 <div style="color:red">foo</div>
12799 3. multi-line html tag
12811 #### --------------- Others ---------------
12815 <nowiki>foo</nowiki>
12817 <p><nowiki>foo</nowiki>
12822 Tag-like HTML structures are passed through as text
12844 </p><p>1<d e>f
12849 # This fails in the PHP parser (see bug 40670,
12850 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
12852 Tag names followed by punctuation should not be recognized as tags
12858 <p><s.ome> text
12868 Try for 100% code coverage