1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # showtitle make the first line the title
25 # comment run through Linker::formatComment() instead of main parser
26 # local format section links in edit comment text as local links
28 # For testing purposes, temporary articles can created:
29 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
30 # where '/' denotes a newline.
32 # This is the standard article assumed to exist.
57 MediaWiki:bad image list
59 * [[File:Bad.jpg]] except [[Nasty page]]
75 Template:echo_with_span
81 Template:echo_with_div
105 This is a simple paragraph.
107 <p>This is a simple paragraph.
112 Paragraphs with extra newline spacing
150 * plain''italic''plain
151 * plain''italic''plain''italic''plain
152 * plain'''bold'''plain
153 * plain'''bold'''plain'''bold'''plain
154 * plain''italic''plain'''bold'''plain
155 * plain'''bold'''plain''italic''plain
156 * plain''italic'''bold-italic'''italic''plain
157 * plain'''bold''bold-italic''bold'''plain
158 * plain'''''bold-italic'''italic''plain
159 * plain'''''bold-italic''bold'''plain
160 * plain''italic'''bold-italic'''''plain
161 * plain'''bold''bold-italic'''''plain
162 * plain l'''italic''plain
163 * plain l''''bold''' plain
166 </li><li> plain<i>italic</i>plain
167 </li><li> plain<i>italic</i>plain<i>italic</i>plain
168 </li><li> plain<b>bold</b>plain
169 </li><li> plain<b>bold</b>plain<b>bold</b>plain
170 </li><li> plain<i>italic</i>plain<b>bold</b>plain
171 </li><li> plain<b>bold</b>plain<i>italic</i>plain
172 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
173 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
174 </li><li> plain<i><b>bold-italic</b>italic</i>plain
175 </li><li> plain<b><i>bold-italic</i>bold</b>plain
176 </li><li> plain<i>italic<b>bold-italic</b></i>plain
177 </li><li> plain<b>bold<i>bold-italic</i></b>plain
178 </li><li> plain l'<i>italic</i>plain
179 </li><li> plain l'<b>bold</b> plain
185 ### 2-quote opening sequence tests
188 Italics and bold: 2-quote opening sequence: (2,2)
198 Italics and bold: 2-quote opening sequence: (2,3)
208 Italics and bold: 2-quote opening sequence: (2,4)
218 Italics and bold: 2-quote opening sequence: (2,5)
228 ### 3-quote opening sequence tests
232 Italics and bold: 3-quote opening sequence: (3,2)
242 Italics and bold: 3-quote opening sequence: (3,3)
252 Italics and bold: 3-quote opening sequence: (3,4)
262 Italics and bold: 3-quote opening sequence: (3,5)
272 ### 4-quote opening sequence tests
276 Italics and bold: 4-quote opening sequence: (4,2)
286 Italics and bold: 4-quote opening sequence: (4,3)
296 Italics and bold: 4-quote opening sequence: (4,4)
306 Italics and bold: 4-quote opening sequence: (4,5)
316 ### 5-quote opening sequence tests
320 Italics and bold: 5-quote opening sequence: (5,2)
330 Italics and bold: 5-quote opening sequence: (5,3)
340 Italics and bold: 5-quote opening sequence: (5,4)
344 <p><i><b>foo'</b></i>
350 Italics and bold: 5-quote opening sequence: (5,5)
359 ### multiple quote sequences in a line
362 Italics and bold: multiple quote sequences: (2,4,2)
366 <p><i>foo'<b>bar</b></i>
372 Italics and bold: multiple quote sequences: (2,4,3)
376 <p><i>foo'<b>bar</b></i>
382 Italics and bold: multiple quote sequences: (2,4,4)
386 <p><i>foo'<b>bar'</b></i>
392 Italics and bold: multiple quote sequences: (3,4,2)
402 Italics and bold: multiple quote sequences: (3,4,3)
411 ### other quote tests
414 Italics and bold: other quote tests: (2,3,5)
416 ''this is about '''foo's family'''''
418 <p><i>this is about <b>foo's family</b></i>
424 Italics and bold: other quote tests: (2,(3,3),2)
426 ''this is about '''foo's''' family''
428 <p><i>this is about <b>foo's</b> family</i>
434 Italics and bold: other quote tests: (3,2,3,2)
436 '''this is about ''foo'''s family''
438 <p><b>this is about <i>foo</i></b><i>s family</i>
444 Italics and bold: other quote tests: (3,2,3,3)
446 '''this is about ''foo'''s family'''
448 <p>'<i>this is about </i>foo<b>s family</b>
455 Italics and bold: other quote tests: (3,(2,2),3)
457 '''this is about ''foo's'' family'''
459 <p><b>this is about <i>foo's</i> family</b>
464 ### <nowiki> test cases
468 <nowiki> unordered list
470 <nowiki>* This is not an unordered list item.</nowiki>
472 <p>* This is not an unordered list item.
479 <nowiki>Lorem ipsum dolor
500 :There is not nowiki.
501 :There is <nowiki>nowiki</nowiki>.
503 #There is not nowiki.
504 #There is <nowiki>nowiki</nowiki>.
506 *There is not nowiki.
507 *There is <nowiki>nowiki</nowiki>.
509 <dl><dd>There is not nowiki.
510 </dd><dd>There is nowiki.
512 <ol><li>There is not nowiki.
513 </li><li>There is nowiki.
515 <ul><li>There is not nowiki.
516 </li><li>There is nowiki.
528 <!-- comment 1 --> asdf
530 <!-- comment 1 --> asdf
533 <!-- comment 1 --> asdf
534 <!-- comment 2 -->xyz
536 <!-- comment 1 --> asdf
537 <!-- comment 2 --> xyz
593 asdf<!-- comment 1 -->jkl
603 <!-- foo --> b <!-- bar -->
617 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
623 Comment semantics and delimiters
625 <!-- --><!----><!-----><!------>
631 Comment semantics and delimiters, redux
633 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
634 -- foo -- funky huh? ... -->
640 Comment semantics and delimiters: directors cut
642 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
643 everything starting with < followed by !-- until the first -- and > we see,
644 that wouldn't be valid XML however, since in XML -- has to terminate a comment
652 Comment semantics: nesting
654 <!--<!-- no, we're not going to do anything fancy here -->-->
661 Comment semantics: unclosed comment at end
663 <!--This comment will run out to the end of the document
669 Comment in template title
678 Comment on its own line post-expand
690 Comment on its own line post-expand with non-significant whitespace
702 ### paragraph wraping tests
716 Block tag on one line
728 Block tag on both lines
740 Multiple lines without block tags
758 ### Preformatted text
767 And a [[Main Page|link]]
773 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
778 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
795 Regression with preformatted in <center>
808 # Expected output in the following test is not really expected (there should be
809 # <pre> in the output) -- it's only testing for well-formedness.
811 Bug 6200: Preformatted in <blockquote>
824 <pre> with attributes (bug 3202)
826 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
828 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
833 <pre> with width attribute (bug 3202)
835 <pre width="8">Narrow screen goodies</pre>
837 <pre width="8">Narrow screen goodies</pre>
842 <pre> with forbidden attribute (bug 3202)
844 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
846 <pre width="8">Narrow screen goodies</pre>
851 <pre> with forbidden attribute values (bug 3202)
853 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
855 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
860 <nowiki> inside <pre> (bug 13238)
868 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
876 <pre><nowiki>Foo</nowiki></pre>
881 <nowiki> and <pre> preference (first one wins)
912 Templates: Pre: 1a. Templates that break a line should suppress <pre>
920 Templates: Pre: 1b. Templates that break a line should suppress <pre>
930 Templates: Pre: 1c: Wrapping should be based on expanded content
942 Templates: Pre: 1d: Wrapping should be based on expanded content
963 Templates: Pre: 1e. Wrapping should be based on expanded content
970 {{echo|<!--cmt--> foo}}
972 <!--cmt-->{{echo| foo}}
974 {{echo|{{echo| }}bar}}
990 ### Parsoid-centric tests for testing RT edge cases
991 ### around comments and white-space inside pre blocks
1008 1b. Pre and Comments
1021 1c. Pre and Comments
1034 ### Definition lists
1041 <dl><dt> name </dt><dd> Definition
1047 Definition list for indentation only
1051 <dl><dd> Indented text
1057 Definition list with no space
1061 <dl><dt>name</dt><dd>Definition
1067 Definition list with URL link
1069 ; http://example.com/ : definition
1071 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1077 Definition list with bracketed URL link
1079 ;[http://www.example.com/ Example]:Something about it
1081 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1087 Definition list with wikilink containing colon
1089 ; [[Help:FAQ]]: The least-read page on Wikipedia
1091 <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
1096 # At Brion's and JeLuF's insistence... :)
1098 Definition list with news link containing colon
1100 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1102 <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!
1108 Malformed definition list with colon
1110 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1112 <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
1118 Definition lists: colon in external link text
1120 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1122 <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
1128 Definition lists: colon in HTML attribute
1130 ;<b style="display: inline">bold</b>
1132 <dl><dt><b style="display: inline">bold</b>
1139 Definition lists: self-closed tag
1141 ;one<br/>two : two-line fun
1143 <dl><dt>one<br />two </dt><dd> two-line fun
1149 Bug 11748: Literal closing tags
1155 <dd>test test test test test</dd>
1157 <dd>test test test test test</dd>
1162 <dd>test test test test test</dd>
1164 <dd>test test test test test</dd>
1169 Definition and unordered list using wiki syntax nested in unordered list using html tags.
1172 ; term : description
1178 <dl><dt> term </dt><dd> description
1188 Definition list with empty definition and following paragraph
1193 <dl><dt> term</dt><dd>
1200 Definition Lists: No nesting: Multiple dd's
1214 Definition Lists: Indentation: Regular
1230 Definition Lists: Indentation: Missing 1st level
1244 Definition Lists: Indentation: Multi-level indent
1248 <dl><dd><dl><dd><dl><dd>i3
1255 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
1256 ## as an empty dt item. It also ignores all but the last ";" when followed
1257 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
1258 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
1261 ## Ex: ";;t2 ::d2" is transformed into:
1273 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
1274 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
1285 ## All Parsoid only definition list tests have this difference.
1287 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
1288 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
1291 Definition Lists: Nesting: Multi-level (Parsoid only)
1321 Definition Lists: Nesting: Test 2 (Parsoid only)
1341 Definition Lists: Nesting: Test 3 (Parsoid only)
1369 Definition Lists: Nesting: Test 4
1374 <dl><dd><dl><dd><dl><dt>t3
1384 Definition Lists: Mixed Lists: Test 1
1390 <dl><dd><dl><dt><ul><li> foo
1402 Definition Lists: Mixed Lists: Test 2
1416 Definition Lists: Mixed Lists: Test 3
1421 <ul><li><dl><dd><dl><dd><dl><dd> d1
1432 Definition Lists: Mixed Lists: Test 4
1437 <ul><li><dl><dt>d1 </dt><dd>d2
1438 </dd><dt>d3 </dt><dd>d4
1446 Definition Lists: Mixed Lists: Test 5
1461 Definition Lists: Mixed Lists: Test 6
1466 <ol><li><ul><li><dl><dd>d1
1478 Definition Lists: Mixed Lists: Test 7
1492 Definition Lists: Mixed Lists: Test 8
1508 Definition Lists: Mixed Lists: Test 9
1512 <ul><li><dl><dt>foo </dt><dd>bar
1520 Definition Lists: Mixed Lists: Test 10
1524 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
1533 Definition Lists: Mixed Lists: Test 11
1538 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
1543 <dl><dt>boo </dt><dd>baz
1554 Definition Lists: Weird Ones: Test 1
1556 *#;*::;; foo : bar (who uses this?)
1558 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
1574 External links: non-bracketed
1576 Non-bracketed: http://example.com
1578 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1583 External links: numbered
1585 Numbered: [http://example.com]
1586 Numbered: [http://example.net]
1587 Numbered: [http://example.com]
1589 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
1590 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
1591 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
1596 External links: specified text
1598 Specified text: [http://example.com link]
1600 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
1605 External links: trail
1607 Linktrails should not work for external links: [http://example.com link]s
1609 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
1614 External links: dollar sign in URL
1616 http://example.com/1$2345
1618 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
1623 External links: dollar sign in URL (named)
1625 [http://example.com/1$2345]
1627 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
1632 External links: open square bracket forbidden in URL (bug 4377)
1634 http://example.com/1[2345
1636 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
1641 External links: open square bracket forbidden in URL (named) (bug 4377)
1643 [http://example.com/1[2345]
1645 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
1650 External links: nowiki in URL link text (bug 6230)
1652 [http://example.com/ <nowiki>''example site''</nowiki>]
1654 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
1659 External links: newline forbidden in text (bug 6230 regression check)
1661 [http://example.com/ first
1664 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
1670 External links: Pipe char between url and text
1672 [http://example.com | link]
1674 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
1679 External links: protocol-relative URL in brackets
1681 [//example.com/ Test]
1683 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
1688 External links: protocol-relative URL in brackets without text
1692 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
1697 External links: protocol-relative URL in free text is left alone
1701 <p>//example.com/Foo
1706 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
1708 foo//example.com/Foo
1710 <p>foo//example.com/Foo
1717 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1719 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1724 External image from https
1726 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
1728 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
1733 Link to non-http image, no img tag
1735 Link to non-http image, no img tag: ftp://example.com/test.jpg
1737 <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>
1742 External links: terminating separator
1744 Terminating separator: http://example.com/thing,
1746 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
1751 External links: intervening separator
1753 Intervening separator: http://example.com/1,2,3
1755 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
1760 External links: old bug with URL in query
1762 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
1764 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
1769 External links: old URL-in-URL bug, mixed protocols
1771 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
1773 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
1778 External links: URL in text
1780 URL in text: [http://example.com http://example.com]
1782 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
1787 External links: Clickable images
1789 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
1791 <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>
1796 External links: raw ampersand
1798 Old & use: http://x&y
1800 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1805 External links: encoded ampersand
1807 Old & use: http://x&y
1809 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
1814 External links: encoded equals (bug 6102)
1816 http://example.com/?foo=bar
1818 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
1823 External links: [raw ampersand]
1825 Old & use: [http://x&y]
1827 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1832 External links: [encoded ampersand]
1834 Old & use: [http://x&y]
1836 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
1841 External links: [encoded equals] (bug 6102)
1843 [http://example.com/?foo=bar]
1845 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
1850 External links: [IDN ignored character reference in hostname; strip it right off]
1852 [http://e‌xample.com/]
1854 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
1858 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
1859 # Where an external link could easily circumvent the sanitization of the text of
1860 # a link like this (where an IDN-ignore character is in the URL somewhere), this
1861 # test demands a higher standard. That's a bit strange.
1865 # http://example.com -> [http://example.com|http://example.com]
1866 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
1868 # The first example is sanitized, but the second is not. Any security benefits
1869 # from this production are trivial to circumvent. Either remove this test and
1870 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
1871 # the test accordingly.
1876 External links: IDN ignored character reference in hostname; strip it right off
1878 http://e‌xample.com/
1880 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
1885 External links: www.jpeg.org (bug 554)
1889 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
1894 External links: URL within URL (original bug 2)
1896 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
1898 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
1903 BUG 361: URL inside bracketed URL
1905 [http://www.example.com/foo http://www.example.com/bar]
1907 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
1912 BUG 361: URL within URL, not bracketed
1914 http://www.example.com/foo?=http://www.example.com/bar
1916 <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>
1921 BUG 289: ">"-token in URL-tail
1923 http://www.example.com/<hello>
1925 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
1930 BUG 289: literal ">"-token in URL-tail
1932 http://www.example.com/<b>html</b>
1934 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
1939 BUG 289: ">"-token in bracketed URL
1941 [http://www.example.com/<hello> stuff]
1943 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
1948 BUG 289: literal ">"-token in bracketed URL
1950 [http://www.example.com/<b>html</b> stuff]
1952 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
1957 BUG 289: literal double quote at end of URL
1959 http://www.example.com/"hello"
1961 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
1966 BUG 289: literal double quote in bracketed URL
1968 [http://www.example.com/"hello" stuff]
1970 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
1975 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
1977 [http://www.example.com test]
1979 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
1984 External links: wiki links within external link (Bug 3695)
1986 [http://example.com [[wikilink]] embedded in ext link]
1988 <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>
1993 BUG 787: Links with one slash after the url protocol are invalid
1997 [http:/example.com title]
1999 <p>http:/example.com
2000 </p><p>[http:/example.com title]
2005 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
2007 ''[http://example.com text'']
2008 [http://example.com '''text]'''
2009 ''Something [http://example.com in italic'']
2010 ''Something [http://example.com mixed''''', even bold]'''
2011 '''''Now [http://example.com both''''']
2013 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
2014 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
2015 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
2016 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
2017 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
2023 Bug 4781: %26 in URL
2025 http://www.example.com/?title=AT%26T
2027 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
2031 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
2032 # % is actually legal in HTML5. Any change in output would need testing though.
2034 Bug 4781, 5267: %25 in URL
2036 http://www.example.com/?title=100%25_Bran
2038 <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>
2043 Bug 4781, 5267: %28, %29 in URL
2045 http://www.example.com/?title=Ben-Hur_%281959_film%29
2047 <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>
2053 Bug 4781: %26 in autonumber URL
2055 [http://www.example.com/?title=AT%26T]
2057 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
2062 Bug 4781, 5267: %26 in autonumber URL
2064 [http://www.example.com/?title=100%25_Bran]
2066 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
2071 Bug 4781, 5267: %28, %29 in autonumber URL
2073 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
2075 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
2081 Bug 4781: %26 in bracketed URL
2083 [http://www.example.com/?title=AT%26T link]
2085 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
2090 Bug 4781, 5267: %26 in bracketed URL
2092 [http://www.example.com/?title=100%25_Bran link]
2094 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
2099 Bug 4781, 5267: %28, %29 in bracketed URL
2101 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
2103 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
2108 External link containing double-single-quotes in text '' (bug 4598 sanity check)
2110 Some [http://example.com/ pretty ''italics'' and stuff]!
2112 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
2117 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
2119 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
2121 <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>
2126 External link containing double-single-quotes with no space separating the url from text in italics
2128 [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]].]
2130 <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>
2135 URL-encoding in URL functions (single parameter)
2137 {{localurl:Some page|amp=&}}
2139 <p>/index.php?title=Some_page&amp=&
2144 URL-encoding in URL functions (multiple parameters)
2146 {{localurl:Some page|q=?&=&}}
2148 <p>/index.php?title=Some_page&q=?&amp=&
2155 http://example.com/index.php?foozoid%5B%5D=bar
2157 http://example.com/index.php?foozoid[]=bar
2159 <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>
2160 </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>
2165 IPv6 urls (bug 21261)
2169 http://[2404:130:0:1000::187:2]/index.php
2171 <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>
2182 Normal text. '''Bold text.''' Normal text. ''Italic text.''
2184 Normal text. '''''Bold italic text.''''' Normal text.
2186 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
2187 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
2193 Unclosed and unmatched quotes
2195 '''''Bold italic text '''with bold deactivated''' in between.'''''
2197 '''''Bold italic text ''with italic deactivated'' in between.'''''
2201 ..spanning two paragraphs (should not work).'''
2203 '''Bold tag left open
2205 ''Italic tag left open
2209 <!-- Unmatching number of opening, closing tags: -->
2210 '''This year''''s election ''should'' beat '''last year''''s.
2212 ''Tom'''s car is bigger than ''Susan'''s.
2214 Plain ''italic'''s plain
2216 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
2217 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
2218 </p><p><b>Bold text..</b>
2219 </p><p>..spanning two paragraphs (should not work).
2220 </p><p><b>Bold tag left open</b>
2221 </p><p><i>Italic tag left open</i>
2223 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
2224 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
2225 </p><p>Plain <i>italic'</i>s plain
2232 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
2235 # This should not produce <table></table> as <table><tr><td></td></tr></table>
2236 # is the bare minimun required by the spec, see:
2237 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
2239 A table with no data.
2245 # A table with nothing but a caption is invalid XHTML, we might want to render
2246 # this as <p>caption</p>
2248 A table with nothing but a caption
2256 </caption><tr><td></td></tr></table>
2282 Multiplication table
2284 {| border="1" cellpadding="2"
2285 |+Multiplication table
2287 ! × !! 1 !! 2 !! 3
2305 <table border="1" cellpadding="2">
2306 <caption>Multiplication table
2357 |rowspan=2| Cell 2, row 1 (and 2)
2368 <td rowspan="2"> Cell 2, row 1 (and 2)
2386 {| bgcolor=#ABCDEF border=2
2391 |the original table again
2399 <table bgcolor="#ABCDEF" border="2">
2407 <td>the original table again
2413 Invalid attributes in table cell (bug 1830)
2428 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
2431 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
2435 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
2436 <td>]" onmouseover="alert(document.cookie)">test
2445 Indented table markup mixed with indented pre content (proposed in bug 6200)
2450 Text that should be rendered preformatted
2458 <pre>Text that should be rendered preformatted
2471 Plain link, capitalized
2475 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
2480 Plain link, uncapitalized
2484 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
2491 [[Main Page|The Main Page]]
2493 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
2502 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
2507 Broken link with fragment
2509 [[Zigzagzogzagzig#zug]]
2511 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
2516 Special page link with fragment
2518 [[Special:Version#anchor]]
2520 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
2525 Nonexistent special page link with fragment
2527 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
2529 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
2536 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
2538 <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>
2545 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
2547 <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>!!!
2552 Link with 3 brackets
2561 Piped link with 3 brackets
2563 [[[main page|the main page]]]
2565 <p>[[[main page|the main page]]]
2570 Link with multiple pipes
2572 [[Main Page|The|Main|Page]]
2574 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
2581 [[Talk:Parser testing]], [[Meta:Disclaimers]]
2583 <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>
2588 Piped link to namespace
2590 [[Meta:Disclaimers|The disclaimers]]
2592 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
2599 [[Usually caused by a typo (oops}]]
2601 <p>[[Usually caused by a typo (oops}]]
2606 Link containing % (not as a hex sequence)
2610 <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>
2615 Link containing % as a single hex sequence interpreted to char
2619 <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>
2624 Link containing % as a double hex sequence interpreted to hex sequence
2628 <p>[[7%2525 Solution]]
2633 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
2634 Example for such a section: == < ==
2636 [[%23%3c]][[%23%3e]]
2638 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
2643 Link containing "<#" and ">#" as a hex sequences
2645 [[%3c%23]][[%3e%23]]
2647 <p>[[%3c%23]][[%3e%23]]
2652 Link containing double-single-quotes '' (bug 4598)
2654 [[Lista d''e paise d''o munno]]
2656 <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>
2661 Link containing double-single-quotes '' in text (bug 4598 sanity check)
2663 Some [[Link|pretty ''italics'' and stuff]]!
2665 <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>!
2670 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
2672 ''Some [[Link|pretty ''italics'' and stuff]]!
2674 <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>
2679 Link with double quotes in title part (literal) and alternate part (interpreted)
2681 [[File:Denys Savchenko ''Pentecoste''.jpg]]
2685 [[''Pentecoste''|Pentecoste]]
2687 [[''Pentecoste''|''Pentecoste'']]
2689 <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>
2690 </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>
2691 </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>
2692 </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>
2697 Broken image links with HTML captions (bug 39700)
2699 [[File:Nonexistent|<script></script>]]
2700 [[File:Nonexistent|100px|<script></script>]]
2701 [[File:Nonexistent|<]]
2702 [[File:Nonexistent|a<i>b</i>c]]
2704 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2705 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
2706 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
2707 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
2714 [[http://www.example.com]]
2716 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
2721 Plain link to URL with link text
2723 [[http://www.example.com Link text]]
2725 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
2730 Plain link to protocol-relative URL
2732 [[//www.example.com]]
2734 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
2739 Plain link to protocol-relative URL with link text
2741 [[//www.example.com Link text]]
2743 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
2748 # I'm fairly sure the expected result here is wrong.
2749 # We want these to be URL links, not pseudo-pages with URLs for titles....
2750 # However the current output is also pretty screwy.
2753 # I'm changing it to match the current output--it arguably makes more
2754 # sense in the light of the test above. Old expected result was:
2755 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
2757 # But I think this test is bordering on "garbage in, garbage out" anyway.
2762 Piped link to URL: [[http://www.example.com|an example URL]]
2764 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
2769 BUG 2: [[page|http://url/]] should link to page, not http://url/
2771 [[Main Page|http://url/]]
2773 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
2778 BUG 337: Escaped self-links should be bold
2782 [[Bug462]] [[Bug462]]
2784 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
2789 Self-link to section should not be bold
2793 [[Main Page#section]]
2795 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
2806 Self-link to numeric title
2812 <p><strong class="selflink">0</strong>
2817 Link to numeric-equivalent title
2823 <p><a href="/wiki/00" title="00">00</a>
2828 <nowiki> inside a link
2830 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
2832 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
2837 Non-breaking spaces in title
2839 [[ Main Page ]]
2841 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
2846 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
2852 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
2857 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
2863 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
2868 Internal link with en linktrail: no apostrophes (bug 27473)
2874 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
2879 Internal link with ca linktrail with apostrophes (bug 27473)
2885 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
2890 Internal link with kaa linktrail with apostrophes (bug 27473)
2896 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
2901 ### Interwiki links (see maintenance/interwiki.sql)
2905 Inline interwiki link
2907 [[MeatBall:SoftSecurity]]
2909 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
2914 Inline interwiki link with empty title (bug 2372)
2918 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
2923 Interwiki link encoding conversion (bug 1636)
2925 *[[Wikipedia:ro:Olteniţa]]
2926 *[[Wikipedia:ro:Olteniţa]]
2928 <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>
2929 </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>
2935 Interwiki link with fragment (bug 2130)
2937 [[MeatBall:SoftSecurity#foo]]
2939 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
2954 Double interlanguage link
2965 Interlanguage link, with prefix links
2977 Double interlanguage link, with prefix links (bug 8897)
2990 Parsoid-specific test: Wikilinks with should RT properly
2996 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
3014 Incorrecly removing closing slashes from correctly formed XHTML
3016 <br style="clear:both;" />
3018 <p><br style="clear:both;" />
3023 Failing to transform badly formed HTML into correct XHTML
3025 <br style="clear: left;">
3026 <br style="clear: right;">
3027 <br style="clear: both;">
3029 <p><br style="clear: left;" />
3030 <br style="clear: right;" />
3031 <br style="clear: both;" />
3036 Handling html with a div self-closing tag
3045 <p><div title />
3049 <p><div title=bar />
3050 <div title=bar/>
3052 <div title="bar/"></div>
3058 Handling html with a br self-closing tag
3067 <p><br title="title" />
3068 <br title="title" />
3077 Horizontal ruler (should it add that extra space?)
3091 Horizontal ruler -- 4+ dashes render hr
3100 Horizontal ruler -- eats additional dashes on the same line
3109 Horizontal ruler -- does not collaps dashes on consecutive lines
3120 Horizontal ruler -- <4 dashes render as plain text
3129 ### Block-level elements
3152 <ol><li>Numbered list
3169 ***#Number on level 4
3171 **#Number on level 3
3172 **#Number on level 3
3176 #** Level 3, but ordered
3179 <ol><li> with numbers
3181 <ul><li> and bullets
3183 <ol><li> and numbers
3185 </li><li>bullets again
3186 <ul><li>bullet level 2
3187 <ul><li>bullet level 3
3188 <ol><li>Number on level 4
3191 </li><li>bullet level 2
3192 <ol><li>Number on level 3
3193 </li><li>Number on level 3
3196 <ol><li>number level 2
3199 <ul><li><ul><li> Level 3
3203 <ol><li><ul><li><ul><li> Level 3, but ordered
3237 Nested lists 3 (first element empty)
3250 Nested lists 4 (first element empty)
3263 Nested lists 5 (both elements empty)
3276 Nested lists 6 (both elements empty)
3289 Nested lists 7 (skip initial nesting levels)
3293 <ul><li><ul><li><ul><li> foo
3301 Nested lists 8 (multiple nesting transitions)
3309 <ul><li><ul><li> bar
3320 List items are not parsed correctly following a <pre> block (bug 785)
3326 <ul><li> <pre>foo</pre>
3327 </li><li> <pre>bar</pre>
3334 List items from template
3345 * notSOL{{inner list}}
3364 List interrupted by empty line or heading
3374 <ul><li><ul><li> bar
3377 <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>
3378 <ul><li> Another list item
3389 Magic Word: {{CURRENTDAY}}
3398 Magic Word: {{CURRENTDAY2}}
3407 Magic Word: {{CURRENTDAYNAME}}
3416 Magic Word: {{CURRENTDOW}}
3425 Magic Word: {{CURRENTMONTH}}
3434 Magic Word: {{CURRENTMONTHABBREV}}
3436 {{CURRENTMONTHABBREV}}
3443 Magic Word: {{CURRENTMONTHNAME}}
3445 {{CURRENTMONTHNAME}}
3452 Magic Word: {{CURRENTMONTHNAMEGEN}}
3454 {{CURRENTMONTHNAMEGEN}}
3461 Magic Word: {{CURRENTTIME}}
3470 Magic Word: {{CURRENTWEEK}} (@bug 4594)
3479 Magic Word: {{CURRENTYEAR}}
3488 Magic Word: {{FULLPAGENAME}}
3490 title=[[User:Ævar Arnfjörð Bjarmason]]
3494 <p>User:Ævar Arnfjörð Bjarmason
3499 Magic Word: {{FULLPAGENAMEE}}
3501 title=[[User:Ævar Arnfjörð Bjarmason]]
3505 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3510 Magic Word: {{NAMESPACE}}
3512 title=[[User:Ævar Arnfjörð Bjarmason]]
3521 Magic Word: {{NAMESPACEE}}
3523 title=[[User:Ævar Arnfjörð Bjarmason]]
3532 Magic Word: {{NAMESPACENUMBER}}
3534 title=[[User:Ævar Arnfjörð Bjarmason]]
3543 Magic Word: {{NUMBEROFFILES}}
3552 Magic Word: {{PAGENAME}}
3554 title=[[User:Ævar Arnfjörð Bjarmason]]
3558 <p>Ævar Arnfjörð Bjarmason
3563 Magic Word: {{PAGENAME}} with metacharacters
3565 title=[['foo & bar = baz']]
3569 <p><i>'foo & bar = baz'</i>
3574 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
3576 title=[[*RFC 1234 http://example.com/]]
3580 <p>*RFC 1234 http://example.com/
3585 Magic Word: {{PAGENAMEE}}
3587 title=[[User:Ævar Arnfjörð Bjarmason]]
3591 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
3596 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
3598 title=[[*RFC 1234 http://example.com/]]
3602 <p>*RFC_1234_http://example.com/
3607 Magic Word: {{REVISIONID}}
3616 Magic Word: {{SCRIPTPATH}}
3625 Magic Word: {{SERVER}}
3629 <p><a rel="nofollow" class="external free" href="http://Britney-Spears">http://Britney-Spears</a>
3634 Magic Word: {{SERVERNAME}}
3643 Magic Word: {{SITENAME}}
3652 Namespace 1 {{ns:1}}
3661 Namespace 1 {{ns:01}}
3670 Namespace 0 {{ns:0}} (bug 4783)
3678 Namespace 0 {{ns:00}} (bug 4783)
3686 Namespace -1 {{ns:-1}}
3695 Namespace User {{ns:User}}
3704 Namespace User talk {{ns:User_talk}}
3713 Namespace User talk {{ns:uSeR tAlK}}
3722 Namespace File {{ns:File}}
3731 Namespace File {{ns:Image}}
3740 Namespace (lang=de) Benutzer {{ns:User}}
3751 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
3757 <p>Benutzer Diskussion
3765 {{urlencode:hi world?!}}
3766 {{urlencode:hi world?!|WIKI}}
3767 {{urlencode:hi world?!|PATH}}
3768 {{urlencode:hi world?!|QUERY}}
3781 Magic links: internal link to RFC (bug 479)
3785 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
3790 Magic links: RFC (bug 479)
3794 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc822">RFC 822</a>
3799 Magic links: ISBN (bug 1937)
3803 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
3808 Magic links: PMID incorrectly converts space to underscore
3812 <p><a class="external mw-magiclink-pmid" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
3821 Nonexistent template
3823 {{thistemplatedoesnotexist}}
3825 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
3832 This is a test template
3840 <p>This is a test template
3845 Template with explicit namespace
3849 <p>This is a test template
3857 This is a test template with parameter {{{param}}}
3863 {{paramtest|param=foo}}
3865 <p>This is a test template with parameter foo
3870 Template:paramtestnum
3876 Template unnamed parameter
3878 {{paramtestnum|Main Page|the main page}}
3880 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
3885 Template:templatesimple
3891 Template:templateredirect
3893 #redirect [[Template:templatesimple]]
3897 Template:templateasargtestnum
3903 Template:templateasargtest
3905 {{template{{{templ}}}}}
3909 Template:templateasargtest2
3915 Template with template name as unnamed argument
3917 {{templateasargtestnum|templatesimple}}
3924 Template with template name as argument
3926 {{templateasargtest|templ=simple}}
3933 Template with template name as argument (2)
3935 {{templateasargtest2|templ=templatesimple}}
3942 Template:templateasargtestdefault
3944 {{{{{templ|templatesimple}}}}}
3954 Template with default value
3956 {{templateasargtestdefault}}
3963 Template with default value (value set)
3965 {{templateasargtestdefault|templ=templa}}
3974 {{templateredirect}}
3981 Template with argument in separate line
3983 {{ templateasargtest |
3991 Template with complex template as argument
3994 param ={{ templateasargtest |
3997 <p>This is a test template with parameter (test)
4002 Template with thumb image (with link in description)
4005 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
4007 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>
4012 Template:complextemplate
4014 {{{1}}} {{paramtest|
4015 param ={{{param}}}}}
4019 Template with complex arguments
4022 param ={{ templateasargtest |
4023 templ = simple }}|[[Template:complextemplate|link]]}}
4025 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
4030 BUG 553: link with two variables in a piped link
4033 |[[{{{1}}}|{{{2}}}]]
4038 <td>[[{{{1}}}|{{{2}}}]]
4044 Magic variable as template parameter
4046 {{paramtest|param={{SITENAME}}}}
4048 <p>This is a test template with parameter MediaWiki
4055 [[{{{param}}}|link]]
4059 Template parameter as link source
4061 {{linktest|param=Main Page}}
4063 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
4068 Template-generated attribute string (k='v')
4070 <span {{attr_str|id|v1}}>bar</span>
4072 <p><span id="v1">bar</span>
4079 including another template, {{paramtest|param={{{arg}}}}}
4083 Template passing argument to another template
4085 {{paramtest2|arg='hmm'}}
4087 <p>including another template, This is a test template with parameter 'hmm'
4098 Template as link source
4102 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4120 Template infinite loop
4124 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
4129 Template from main namespace
4148 BUG 529: Template with table, not included at beginning of line
4167 BUG 523: Template shouldn't eat newline (or add an extra one before table)
4187 BUG 41: Template parameters shown as broken links
4199 ''None'' of '''this''' should be
4201 but rather passed unmodified
4205 # hmm, fix this or just deprecate msgnw and document its behavior?
4211 {{msgnw:MSGNW test}}
4213 <p>''None'' of '''this''' should be
4215 but rather passed unmodified
4223 {{int:youhavenewmessages|lots of money|not!}}
4225 <p>You have lots of money (not!).
4232 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4236 <includeonly> and <noinclude> being included
4247 <onlyinclude>Foo</onlyinclude>bar
4251 <onlyinclude> being included
4263 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
4267 <onlyinclude> and <includeonly> being included
4276 <includeonly> and <noinclude> on a page
4278 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
4285 <onlyinclude> on a page
4287 <onlyinclude>Foo</onlyinclude>bar
4294 Template:Includeonly section
4297 ==Includeonly section==
4303 Bug 6563: Edit link generation for section shown by <includeonly>
4305 {{includeonly section}}
4307 <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>
4308 <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>
4312 # Uses same input as the contents of [[Template:Includeonly section]]
4314 Bug 6563: Section extraction for section shown by <includeonly>
4319 ==Includeonly section==
4327 Bug 6563: Edit link generation for section suppressed by <includeonly>
4330 ==Includeonly section==
4334 <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>
4339 Bug 6563: Section extraction for section suppressed by <includeonly>
4344 ==Includeonly section==
4352 ### <includeonly> and <noinclude> in attributes
4355 0. includeonly around the entire attribute
4357 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
4359 <p><span id="v2">bar</span>
4364 1. includeonly in html attr key
4366 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
4368 <p><span id="foo">bar</span>
4373 2. includeonly in html attr value
4375 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
4376 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
4378 <p><span id="v1">bar</span>
4379 <span id="v1">bar</span>
4384 3. includeonly in part of an attr value
4386 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
4388 <p><span style="color:red;">bar</span>
4393 ### Testing parsing of templates where a template arg
4394 ### has the same name as the template itself.
4404 Templates: Template Name/Arg clash: 1. Use of positional param
4413 Templates: Template Name/Arg clash: 2. Use of named param
4422 Templates: Template Name/Arg clash: 3. Use of named param with empty input
4431 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
4435 Templates: 1. Simple use
4444 Templates: 2. Inside a block tag
4446 <div>{{echo|Foo}}</div>
4453 Templates: P-wrapping: 1a. Templates on consecutive lines
4464 Templates: P-wrapping: 1b. Templates on consecutive lines
4478 Templates: P-wrapping: 1c. Templates on consecutive lines
4481 {{echo|bar}} <div>baz</div>
4490 Templates: Inline Text: 1. Multiple tmeplate uses
4492 {{echo|Foo}}bar{{echo|baz}}
4499 Templates: Inline Text: 2. Back-to-back template uses
4501 {{echo|Foo}}{{echo|bar}}
4508 Templates: Block Tags: 1. Multiple template uses
4510 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
4512 <div>Foo</div><div>bar</div><div>baz</div>
4517 Templates: Block Tags: 2. Back-to-back template uses
4519 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
4521 <div>Foo</div><div>bar</div>
4526 Templates: Links: 1. Simple example
4528 {{echo|[[Foo|bar]]}}
4530 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4535 Templates: Links: 2. Generation of link href
4537 [[{{echo|Foo}}|bar]]
4539 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4544 Templates: Links: 3. Generation of part of a link href
4546 [[Fo{{echo|o}}|bar]]
4548 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4553 Templates: Links: 4. Multiple templates generating link href
4555 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
4557 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
4562 Templates: Links: 5. Generation of link text
4564 [[Foo|{{echo|bar}}]]
4566 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4571 Templates: Links: 5. Nested templates (only outermost template should be marked)
4573 {{echo|[[{{echo|Foo}}|bar]]}}
4575 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
4580 Templates: HTML Tag: 1. Generation of HTML attr. key
4582 <div {{echo|style}}="color:red;">foo</div>
4584 <div style="color:red;">foo</div>
4589 Templates: HTML Tag: 2. Generation of HTML attr. value
4591 <div style={{echo|'color:red;'}}>foo</div>
4593 <div style="color:red;">foo</div>
4598 Templates: HTML Tag: 3. Generation of HTML attr key and value
4600 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
4602 <div style="color:red;">foo</div>
4607 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
4609 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
4611 <div title="This is a long title with just one piece templated">foo</div>
4616 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
4618 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
4620 <div title="This is a long title with just one piece templated">foo</div>
4625 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
4627 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
4629 <div title="This is a long title with just one piece templated">foo</div>
4634 Templates: Tables: 1. Generating start of a HTML table
4636 {{echo|<table><tr><td>foo</td>}}</tr></table>
4638 <table><tr><td>foo</td></tr></table>
4643 Templates: Tables: 2a. Generating middle of a HTML table
4645 <table><tr>{{echo|<td>foo</td>}}</tr></table>
4647 <table><tr><td>foo</td></tr></table>
4652 Templates: Tables: 2b. Generating middle of a HTML table
4654 <table>{{echo|<tr><td>foo</td></tr>}}</table>
4656 <table><tr><td>foo</td></tr></table>
4661 Templates: Tables: 3. Generating end of a HTML table
4663 <table><tr>{{echo|<td>foo</td></tr></table>}}
4665 <table><tr><td>foo</td></tr></table>
4670 Templates: Tables: 4a. Generating a single tag of a HTML table
4672 {{echo|<table>}}<tr><td>foo</td></tr></table>
4674 <table><tr><td>foo</td></tr></table>
4679 Templates: Tables: 4b. Generating a single tag of a HTML table
4681 <table>{{echo|<tr>}}<td>foo</td></tr></table>
4683 <table><tr><td>foo</td></tr></table>
4688 Templates: Tables: 4c. Generating a single tag of a HTML table
4690 <table><tr>{{echo|<td>}}foo</td></tr></table>
4692 <table><tr><td>foo</td></tr></table>
4697 Templates: Tables: 4d. Generating a single tag of a HTML table
4699 <table><tr><td>foo{{echo|</td>}}</tr></table>
4701 <table><tr><td>foo</td></tr></table>
4706 Templates: Tables: 4e. Generating a single tag of a HTML table
4708 <table><tr><td>foo</td>{{echo|</tr>}}</table>
4710 <table><tr><td>foo</td></tr></table>
4715 Templates: Tables: 4f. Generating a single tag of a HTML table
4717 <table><tr><td>foo</td></tr>{{echo|</table>}}
4719 <table><tr><td>foo</td></tr></table>
4724 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
4726 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
4728 <p><i>ab</i>c<i>d</i>e
4733 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
4734 (PHP parser generates misnested html)
4738 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
4740 <p><span><i>a</i></span><i><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
4744 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
4745 (PHP parser generates misnested html)
4749 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
4752 <div><i>b</i>c<i>d</i></div>
4757 Templates: Ugly nesting: 4. Divs opened/closed across templates
4759 a<div>b{{echo|c</div>d}}e
4766 Parser Functions: 1. Simple example
4775 Parser Functions: 2. Nested use (only outermost should be marked up)
4784 ### Pre-save transform tests
4787 pre-save transform: subst:
4793 This is a test template
4797 pre-save transform: normal template
4807 pre-save transform: nonexistent template
4811 {{thistemplatedoesnotexist}}
4813 {{thistemplatedoesnotexist}}
4818 pre-save transform: subst magic variables
4827 # This is bug 89, which I fixed. -- wtm
4829 pre-save transform: subst: templates with parameters
4833 {{subst:paramtest|param="something else"}}
4835 This is a test template with parameter "something else"
4841 <nowiki>'''not wiki'''</nowiki>
4845 pre-save transform: nowiki in subst (bug 1188)
4849 {{subst:nowikitest}}
4851 <nowiki>'''not wiki'''</nowiki>
4856 Template:commenttest
4858 This template has <!-- a comment --> in it.
4862 pre-save transform: comment in subst (bug 1936)
4866 {{subst:commenttest}}
4868 This template has <!-- a comment --> in it.
4872 pre-save transform: unclosed tag
4876 <nowiki>'''not wiki'''
4878 <nowiki>'''not wiki'''
4882 pre-save transform: mixed tag case
4886 <NOwiki>'''not wiki'''</noWIKI>
4888 <NOwiki>'''not wiki'''</noWIKI>
4892 pre-save transform: unclosed comment in <nowiki>
4896 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4898 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
4904 <span onmouseover="alert('crap')">Oh no</span>
4908 (confirming safety of fix for subst bug 1936)
4910 {{Template:dangerous}}
4912 <p><span>Oh no</span>
4917 pre-save transform: comment containing gallery (bug 5024)
4921 <!-- <gallery>data</gallery> -->
4923 <!-- <gallery>data</gallery> -->
4927 pre-save transform: comment containing extension
4931 <!-- <tag>data</tag> -->
4933 <!-- <tag>data</tag> -->
4937 pre-save transform: comment containing nowiki
4941 <!-- <nowiki>data</nowiki> -->
4943 <!-- <nowiki>data</nowiki> -->
4947 pre-save transform: <noinclude> in subst (bug 3298)
4957 pre-save transform: <onlyinclude> in subst (bug 3298)
4969 {{<includeonly>subst:</includeonly>Includes}}
4973 Template:SafeSubstTest
4975 {{<includeonly>safesubst:</includeonly>Includes}}
4979 bug 22297: safesubst: works during PST
4983 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
4989 bug 22297: safesubst: works during normal parse
4998 subst: does not work during normal parse
5002 <p>{{subst:Includes}}
5007 pre-save transform: context links ("pipe trick")
5011 [[Article (context)|]]
5014 [[Bar:Article (context)|]]
5015 [[:Bar:Article (context)|]]
5017 [[|Article (context)]]
5021 [[Article (context)|Article]]
5022 [[Bar:Article|Article]]
5023 [[:Bar:Article|Article]]
5024 [[Bar:Article (context)|Article]]
5025 [[:Bar:Article (context)|Article]]
5027 [[Article (context)]]
5028 [[Bar:X (Y) Z|X (Y) Z]]
5029 [[:Bar:X (Y) Z|X (Y) Z]]
5033 pre-save transform: context links ("pipe trick") with interwiki prefix
5037 [[interwiki:Article|]]
5038 [[:interwiki:Article|]]
5039 [[interwiki:Bar:Article|]]
5040 [[:interwiki:Bar:Article|]]
5042 [[interwiki:Article|Article]]
5043 [[:interwiki:Article|Article]]
5044 [[interwiki:Bar:Article|Bar:Article]]
5045 [[:interwiki:Bar:Article|Bar:Article]]
5049 pre-save transform: context links ("pipe trick") with parens in title
5051 pst title=[[Somearticle (context)]]
5055 [[Article (context)|Article]]
5059 pre-save transform: context links ("pipe trick") with comma in title
5061 pst title=[[Someplace, Somewhere]]
5064 [[Otherplace, Elsewhere|]]
5065 [[Otherplace, Elsewhere, Anywhere|]]
5067 [[Otherplace, Somewhere|Otherplace]]
5068 [[Otherplace, Elsewhere|Otherplace]]
5069 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
5073 pre-save transform: context links ("pipe trick") with parens and comma
5075 pst title=[[Someplace (IGNORED), Somewhere]]
5078 [[Otherplace (place), Elsewhere|]]
5080 [[Otherplace, Somewhere|Otherplace]]
5081 [[Otherplace (place), Elsewhere|Otherplace]]
5085 pre-save transform: context links ("pipe trick") with comma and parens
5087 pst title=[[Who, me? (context)]]
5090 [[Me, Myself, and I (1937 song)|]]
5092 [[Yes, you. (context)|Yes, you.]]
5093 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
5097 pre-save transform: context links ("pipe trick") with namespace
5099 pst title=[[Ns:Somearticle]]
5103 [[Ns:Article|Article]]
5107 pre-save transform: context links ("pipe trick") with namespace and parens
5109 pst title=[[Ns:Somearticle (context)]]
5113 [[Ns:Article (context)|Article]]
5117 pre-save transform: context links ("pipe trick") with namespace and comma
5119 pst title=[[Ns:Somearticle, Context, Whatever]]
5123 [[Ns:Article, Context, Whatever|Article]]
5127 pre-save transform: context links ("pipe trick") with namespace, comma and parens
5129 pst title=[[Ns:Somearticle, Context (context)]]
5133 [[Ns:Article (context)|Article]]
5137 pre-save transform: context links ("pipe trick") with namespace, parens and comma
5139 pst title=[[Ns:Somearticle (IGNORED), Context]]
5143 [[Ns:Article, Context|Article]]
5147 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
5151 [[Article(context)|]]
5152 [[Bar:Article(context)|]]
5153 [[:Bar:Article(context)|]]
5154 [[|Article(context)]]
5158 [[Article(context)|Article]]
5159 [[Bar:Article(context)|Article]]
5160 [[:Bar:Article(context)|Article]]
5161 [[Article(context)]]
5163 [[:Bar:X(Y)Z|X(Y)Z]]
5167 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
5171 [[Article (context)|]]
5172 [[Bar:Article (context)|]]
5173 [[:Bar:Article (context)|]]
5174 [[|Article (context)]]
5178 [[Article (context)|Article]]
5179 [[Bar:Article (context)|Article]]
5180 [[:Bar:Article (context)|Article]]
5181 [[Article (context)]]
5182 [[Bar:X (Y) Z|X (Y) Z]]
5183 [[:Bar:X (Y) Z|X (Y) Z]]
5187 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
5191 [[Article(context)|]]
5192 [[Bar:Article(context)|]]
5193 [[:Bar:Article(context)|]]
5194 [[|Article(context)]]
5198 [[Article(context)|Article]]
5199 [[Bar:Article(context)|Article]]
5200 [[:Bar:Article(context)|Article]]
5201 [[Article(context)]]
5203 [[:Bar:X(Y)Z|X(Y)Z]]
5207 pre-save transform: context links ("pipe trick") with commas (bug 21660)
5211 [[Article (context), context|]]
5212 [[Article (context),context|]]
5213 [[Bar:Article (context), context|]]
5214 [[Bar:Article (context),context|]]
5215 [[:Bar:Article (context), context|]]
5216 [[:Bar:Article (context),context|]]
5218 [[Article (context), context|Article]]
5219 [[Article (context),context|Article]]
5220 [[Bar:Article (context), context|Article]]
5221 [[Bar:Article (context),context|Article]]
5222 [[:Bar:Article (context), context|Article]]
5223 [[:Bar:Article (context),context|Article]]
5227 pre-save transform: trim trailing empty lines
5231 Empty lines are trimmed
5237 Empty lines are trimmed
5241 pre-save transform: Signature expansion
5246 * <noinclude>~~~</noinclude>
5247 * <includeonly>~~~</includeonly>
5248 * <onlyinclude>~~~</onlyinclude>
5250 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
5251 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
5252 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
5253 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
5258 pre-save transform: Signature expansion in nowiki tags (bug 93)
5264 <nowiki>~~~~</nowiki>
5266 <includeonly><nowiki>~~~~</nowiki></includeonly>
5268 <noinclude><nowiki>~~~~</nowiki></noinclude>
5270 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5272 {{subst:Foo}} shall be converted to FOO
5274 As well as inside noinclude/onlyinclude
5275 <noinclude>{{subst:Foo}}</noinclude>
5276 <onlyinclude>{{subst:Foo}}</onlyinclude>
5278 But not inside includeonly
5279 <includeonly>{{subst:Foo}}</includeonly>
5283 <nowiki>~~~~</nowiki>
5285 <includeonly><nowiki>~~~~</nowiki></includeonly>
5287 <noinclude><nowiki>~~~~</nowiki></noinclude>
5289 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
5291 FOO shall be converted to FOO
5293 As well as inside noinclude/onlyinclude
5294 <noinclude>FOO</noinclude>
5295 <onlyinclude>FOO</onlyinclude>
5297 But not inside includeonly
5298 <includeonly>{{subst:Foo}}</includeonly>
5302 ### Message transform tests
5305 message transform: magic variables
5315 message transform: should not transform wiki markup
5325 message transform: <noinclude> in transcluded template (bug 4926)
5335 message transform: <onlyinclude> in transcluded template (bug 4926)
5345 {{#special:}} page name, known
5349 {{#special:Recentchanges}}
5351 Special:RecentChanges
5355 {{#special:}} page name with subpage, known
5359 {{#special:Recentchanges/param}}
5361 Special:RecentChanges/param
5365 {{#special:}} page name, unknown
5369 {{#special:foobarnonexistent}}
5371 No such special page
5375 {{#speciale:}} page name, known
5379 {{#speciale:Recentchanges}}
5381 Special:RecentChanges
5385 {{#speciale:}} page name with subpage, known
5389 {{#speciale:Recentchanges/param}}
5391 Special:RecentChanges/param
5395 {{#speciale:}} page name, unknown
5399 {{#speciale:foobarnonexistent}}
5401 No_such_special_page
5410 [[Image:foobar.jpg]]
5412 <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>
5419 [[Image:foobar.jpg|right]]
5421 <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>
5426 Simple image (using File: namespace, now canonical)
5430 <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>
5437 [[Image:foobar.jpg|right|Caption text]]
5439 <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>
5444 Image with empty attribute
5446 [[Image:foobar.jpg|right||Caption text]]
5448 <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>
5453 Image with link parameter, wiki target
5455 [[Image:foobar.jpg|link=Target page]]
5457 <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>
5462 Image with link parameter, URL target
5464 [[Image:foobar.jpg|link=http://example.com/]]
5466 <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>
5471 Image with link parameter, wgExternalLinkTarget
5473 [[Image:foobar.jpg|link=http://example.com/]]
5475 wgExternalLinkTarget='foobar'
5477 <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>
5482 Image with link parameter, wgNoFollowLinks set to false
5484 [[Image:foobar.jpg|link=http://example.com/]]
5486 wgNoFollowLinks=false
5488 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5493 Image with link parameter, wgNoFollowDomainExceptions
5495 [[Image:foobar.jpg|link=http://example.com/]]
5497 wgNoFollowDomainExceptions='example.com'
5499 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
5504 Image with link parameter, wgExternalLinkTarget, unnamed parameter
5506 [[Image:foobar.jpg|link=http://example.com/|Title]]
5508 wgExternalLinkTarget='foobar'
5510 <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>
5515 Image with empty link parameter
5517 [[Image:foobar.jpg|link=]]
5519 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
5524 Image with link parameter (wiki target) and unnamed parameter
5526 [[Image:foobar.jpg|link=Target page|Title]]
5528 <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>
5533 Image with link parameter (URL target) and unnamed parameter
5535 [[Image:foobar.jpg|link=http://example.com/|Title]]
5537 <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>
5542 Thumbnail image with link parameter
5544 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
5546 <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>
5551 Image with frame and link
5553 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
5555 <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>
5560 Image with frame and link and explicit alt
5562 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
5564 <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>
5569 Image with wiki markup in implicit alt
5571 [[Image:Foobar.jpg|testing '''bold''' in alt]]
5573 <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>
5578 Image with wiki markup in explicit alt
5580 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
5582 <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>
5587 Link to image page- image page normally doesn't exists, hence edit link
5588 Add test with existing image page
5589 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
5593 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
5598 bug 18784 Link to non-existent image page with caption should use caption as link text
5600 [[:Image:test|caption]]
5602 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
5607 Frameless image caption with a free URL
5609 [[Image:foobar.jpg|http://example.com]]
5611 <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>
5616 Thumbnail image caption with a free URL
5618 [[Image:foobar.jpg|thumb|http://example.com]]
5620 <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>
5625 Thumbnail image caption with a free URL and explicit alt
5627 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
5629 <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>
5634 BUG 1887: A ISBN with a thumbnail
5636 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
5638 <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>
5643 BUG 1887: A RFC with a thumbnail
5645 [[Image:foobar.jpg|thumb|This is RFC 12354]]
5647 <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>
5652 BUG 1887: A mailto link with a thumbnail
5654 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
5656 <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>
5660 # Pending resolution to bug 368
5662 BUG 648: Frameless image caption with a link
5664 [[Image:foobar.jpg|text with a [[link]] in it]]
5666 <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>
5671 BUG 648: Frameless image caption with a link (suffix)
5673 [[Image:foobar.jpg|text with a [[link]]foo in it]]
5675 <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>
5680 BUG 648: Frameless image caption with an interwiki link
5682 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
5684 <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>
5689 BUG 648: Frameless image caption with a piped interwiki link
5691 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
5693 <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>
5698 Escape HTML special chars in image alt text
5700 [[Image:foobar.jpg|& < > "]]
5702 <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>
5707 BUG 499: Alt text should have Ӓ, not &1234;
5709 [[Image:foobar.jpg|♀]]
5711 <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>
5716 Broken image caption with link
5718 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
5720 <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.
5725 Image caption containing another image
5727 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
5729 <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>
5734 Image caption containing a newline
5736 [[Image:Foobar.jpg|This
5739 <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>
5745 Bug 3090: External links other than http: in image captions
5747 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
5749 <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>
5756 [[Image:foobar.jpg|a|class=b]]
5758 <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>
5765 #REDIRECT [[File:Barfoo.jpg]]
5771 [[Image:Barfoo.jpg]]
5773 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
5778 Missing image with uploads disabled
5782 [[Image:Foobaz.jpg]]
5784 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
5793 Subpage test/subpage
5801 subpage title=[[Subpage test]]
5805 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
5810 Subpage noslash link
5812 subpage title=[[Subpage test]]
5816 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
5825 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
5830 BUG 561: {{/Subpage}}
5832 subpage title=[[Page]]
5836 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
5844 Category:MediaWiki User's Guide
5852 [[:Category:MediaWiki User's Guide]]
5854 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
5863 [[Category:MediaWiki User's Guide]]
5865 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5869 PAGESINCATEGORY invalid title fatal (r33546 fix)
5871 {{PAGESINCATEGORY:<bogus>}}
5878 Category with different sort key
5882 [[Category:MediaWiki User's Guide|Foo]]
5884 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5888 Category with identical sort key
5892 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5894 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
5898 Category with empty sort key
5903 [[Category:MediaWiki User's Guide|]]
5905 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
5909 Category with empty sort key and parentheses
5914 [[Category:Foo (bar)|]]
5916 [[Category:Foo (bar)|Foo]]
5920 Category with template
5925 [[Category:{{echo|Foo}}]]
5927 [[Category:{{echo|Foo}}]]
5931 Category with template in sort key
5936 [[Category:Foo|{{echo|Bar}}]]
5938 [[Category:Foo|{{echo|Bar}}]]
5942 Category with template in sort key and title
5947 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
5949 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
5953 ### Inter-language links
5956 Inter-language links
5962 [[zh:食品]]
5964 es:Alimento fr:Nourriture zh:食品
5968 Duplicate interlanguage links (bug 24502)
5984 Basic section headings
5991 ===Smaller headline===
5994 <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>
5997 <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>
6000 <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>
6006 Section headings with TOC
6009 === Subheadline 1 ===
6010 ===== Skipping a level =====
6011 ====== Skipping a level ======
6015 ===Another headline===
6017 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6019 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
6021 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
6023 <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>
6025 <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>
6032 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
6034 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
6039 <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>
6040 <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>
6041 <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>
6042 <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>
6043 <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>
6046 <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>
6050 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
6052 Handling of sections up to level 6 and beyond
6055 == Level 2 Heading==
6056 === Level 3 Heading===
6057 ==== Level 4 Heading====
6058 ===== Level 5 Heading=====
6059 ====== Level 6 Heading======
6060 ======= Level 7 Heading=======
6061 ======== Level 8 Heading========
6062 ========= Level 9 Heading=========
6063 ========== Level 10 Heading==========
6065 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6067 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
6069 <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>
6071 <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>
6073 <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>
6075 <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>
6077 <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>
6078 <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>
6079 <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>
6080 <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>
6081 <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>
6094 <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>
6095 <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>
6096 <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>
6097 <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>
6098 <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>
6099 <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>
6100 <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>
6101 <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>
6102 <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>
6103 <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>
6108 TOC regression (bug 9764)
6112 ==== title 1.1.1 ====
6117 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6119 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6121 <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>
6123 <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>
6126 <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>
6129 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6131 <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>
6136 <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>
6137 <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>
6138 <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>
6139 <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>
6140 <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>
6141 <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>
6146 TOC with wgMaxTocLevel=3 (bug 6204)
6152 ==== title 1.1.1 ====
6157 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6159 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6161 <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>
6162 <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>
6165 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
6167 <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>
6172 <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>
6173 <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>
6174 <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>
6175 <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>
6176 <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>
6177 <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>
6182 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
6188 ====Section 1.1.1====
6189 ====Section 1.1.1.1====
6192 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6194 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
6196 <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>
6199 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
6202 <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>
6203 <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>
6204 <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>
6205 <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>
6206 <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>
6212 Resolving duplicate section names
6217 <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>
6218 <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>
6223 Resolving duplicate section names with differing case (bug 10721)
6228 <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>
6229 <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>
6241 Template with sections, __NOTOC__
6248 <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>
6249 <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>
6250 <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>
6251 <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>
6256 __NOEDITSECTION__ keyword
6262 <h2> <span class="mw-headline" id="Section_1">Section 1</span></h2>
6263 <h2> <span class="mw-headline" id="Section_2">Section 2</span></h2>
6268 Link inside a section heading
6270 ==Section with a [[Main Page|link]] in it==
6272 <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>
6277 TOC regression (bug 12077)
6284 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6286 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
6288 <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>
6291 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
6294 <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>
6295 <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>
6296 <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>
6301 BUG 1219 URL next to image (good)
6303 http://example.com [[Image:foobar.jpg]]
6305 <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>
6310 Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
6313 The line above must have a trailing space!
6316 But just in case it doesn't...
6318 <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>
6319 <p>The line above must have a trailing space!
6321 <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>
6322 <p>But just in case it doesn't...
6327 Header with special characters (bug 25462)
6329 The tooltips shall not show entities to the user (ie. be double escaped)
6346 <p>The tooltips shall not show entities to the user (ie. be double escaped)
6348 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6350 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
6351 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
6352 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
6353 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
6354 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
6357 <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>
6360 <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>
6363 <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>
6366 <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>
6369 <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>
6375 Headers with excess '=' characters
6376 (Are similar tests necessary beyond the 1st level?)
6380 =''italic'' heading==
6381 ==''italic'' heading=
6383 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
6385 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
6386 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
6387 <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>
6388 <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>
6391 <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>
6392 <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>
6393 <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>
6394 <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>
6399 BUG 1219 URL next to image (broken)
6401 http://example.com[[Image:foobar.jpg]]
6403 <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>
6408 Bug 1186 news: in the middle of text
6410 http://en.wikinews.org/wiki/Wikinews:Workplace
6412 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
6418 Namespaced link must have a title
6427 Namespaced link must have a title (bad fragment version)
6429 [[Project:#fragment]]
6431 <p>[[Project:#fragment]]
6437 div with no attributes
6439 <div>HTML rocks</div>
6441 <div>HTML rocks</div>
6446 div with double-quoted attribute
6448 <div id="rock">HTML rocks</div>
6450 <div id="rock">HTML rocks</div>
6455 div with single-quoted attribute
6457 <div id='rock'>HTML rocks</div>
6459 <div id="rock">HTML rocks</div>
6464 div with unquoted attribute
6466 <div id=rock>HTML rocks</div>
6468 <div id="rock">HTML rocks</div>
6473 div with illegal double attributes
6475 <div id="a" id="b">HTML rocks</div>
6477 <div id="b">HTML rocks</div>
6482 HTML multiple attributes correction
6484 <p class="error" class="awesome">Awesome!</p>
6486 <p class="awesome">Awesome!</p>
6491 Table multiple attributes correction
6494 !+ class="error" class="awesome"| status
6499 <th class="awesome"> status
6507 <DIV ID="x">HTML ROCKS</DIV>
6509 <div id="x">HTML ROCKS</div>
6515 text with amp in the middle of nowhere
6519 <p>Remember AT&T?
6524 text with character entity: eacute
6526 I always thought é was a cute letter.
6528 <p>I always thought é was a cute letter.
6533 text with undefined character entity: xacute
6535 I always thought &xacute; was a cute letter.
6537 <p>I always thought &xacute; was a cute letter.
6549 [[Media:Foobar.jpg]]
6551 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
6556 Media link with text
6558 [[Media:Foobar.jpg|A neat file to look at]]
6560 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
6564 # FIXME: this is still bad HTML tag nesting
6566 Media link with nasty text
6567 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
6569 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
6571 <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>
6576 Media link to nonexistent file (bug 1702)
6578 [[Media:No such.jpg]]
6580 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
6585 Image link to nonexistent file (bug 1850 - good)
6587 [[Image:No such.jpg]]
6589 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
6594 :Image link to nonexistent file (bug 1850 - bad)
6596 [[:Image:No such.jpg]]
6598 <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>
6605 Character reference normalization in link text (bug 1938)
6607 [[Main Page|this&that]]
6609 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
6616 Test for unicode normalization
6618 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
6622 (bug 19451) Links should refer to the normalized form.
6630 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6631 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6632 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6633 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6634 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
6639 Empty attribute crash test (bug 2067)
6641 <font color="">foo</font>
6643 <p><font color="">foo</font>
6648 Empty attribute crash test single-quotes (bug 2067)
6650 <font color=''>foo</font>
6652 <p><font color="">foo</font>
6657 Attribute test: equals, then nothing
6659 <font color=>foo</font>
6666 Attribute test: unquoted value
6668 <font color=x>foo</font>
6670 <p><font color="x">foo</font>
6675 Attribute test: unquoted but illegal value (hash)
6677 <font color=#x>foo</font>
6679 <p><font color="#x">foo</font>
6684 Attribute test: no value
6686 <font color>foo</font>
6688 <p><font color="color">foo</font>
6693 Bug 2095: link with three closing brackets
6697 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
6702 Bug 2095: link with pipe and three closing brackets
6706 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
6711 Bug 2095: link with pipe and three closing brackets, version 2
6713 [[Main Page|[http://example.com/]]]
6715 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
6725 Template:Dangerous attribute
6727 " onmouseover="alert(document.cookie)
6731 Template:Dangerous style attribute
6733 border-size: expression(alert(document.cookie))
6739 <div style="float: right; {{{1}}}">Magic div</div>
6743 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
6745 <div title="{{test}}"></div>
6747 <div title="This is a test template"></div>
6752 Bug 2304: HTML attribute safety (dangerous template; 2309)
6754 <div title="{{dangerous attribute}}"></div>
6756 <div title=""></div>
6761 Bug 2304: HTML attribute safety (dangerous style template; 2309)
6763 <div style="{{dangerous style attribute}}"></div>
6765 <div style="/* insecure input */"></div>
6770 Bug 2304: HTML attribute safety (safe parameter; 2309)
6772 {{div style|width: 200px}}
6774 <div style="float: right; width: 200px">Magic div</div>
6779 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
6781 {{div style|width: expression(alert(document.cookie))}}
6783 <div style="/* insecure input */">Magic div</div>
6788 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
6790 {{div style|"><script>alert(document.cookie)</script>}}
6792 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6797 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
6799 {{div style|" ><script>alert(document.cookie)</script>}}
6801 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
6806 Bug 2304: HTML attribute safety (link)
6808 <div title="[[Main Page]]"></div>
6810 <div title="[[Main Page]]"></div>
6815 Bug 2304: HTML attribute safety (italics)
6817 <div title="''foobar''"></div>
6819 <div title="''foobar''"></div>
6824 Bug 2304: HTML attribute safety (bold)
6826 <div title="'''foobar'''"></div>
6828 <div title="'''foobar'''"></div>
6834 Bug 2304: HTML attribute safety (ISBN)
6836 <div title="ISBN 1234567890"></div>
6838 <div title="ISBN 1234567890"></div>
6843 Bug 2304: HTML attribute safety (RFC)
6845 <div title="RFC 1234"></div>
6847 <div title="RFC 1234"></div>
6852 Bug 2304: HTML attribute safety (PMID)
6854 <div title="PMID 1234567890"></div>
6856 <div title="PMID 1234567890"></div>
6861 Bug 2304: HTML attribute safety (web link)
6863 <div title="http://example.com/"></div>
6865 <div title="http://example.com/"></div>
6870 Bug 2304: HTML attribute safety (named web link)
6872 <div title="[http://example.com/ link]"></div>
6874 <div title="[http://example.com/ link]"></div>
6879 Bug 3244: HTML attribute safety (extension; safe)
6881 <div style="<nowiki>background:blue</nowiki>"></div>
6883 <div style="background:blue"></div>
6888 Bug 3244: HTML attribute safety (extension; unsafe)
6890 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
6892 <div style="/* insecure input */"></div>
6896 # More MSIE fun discovered by Tom Gilder
6899 MSIE CSS safety test: spurious slash
6901 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
6903 <div style="/* insecure input */">evil</div>
6908 MSIE CSS safety test: hex code
6910 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
6912 <div style="/* insecure input */">evil</div>
6917 MSIE CSS safety test: comment in url
6919 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
6921 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
6926 MSIE CSS safety test: comment in expression
6928 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
6930 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
6936 Table attribute legitimate extension
6939 !+ style="<nowiki>color:blue</nowiki>"| status
6944 <th style="color:blue"> status
6950 Table attribute safety
6953 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
6958 <th style="/* insecure input */"> status
6964 CSS line continuation 1
6966 <div style="background-image: u\ rl(test.jpg);"></div>
6968 <div style="/* insecure input */"></div>
6973 CSS line continuation 2
6975 <div style="background-image: u\ rl(test.jpg); "></div>
6977 <div style="/* insecure input */"></div>
6988 Expansion of multi-line templates in attribute values (bug 6255)
6990 <div style="background: {{identity|#00FF00}}">-</div>
6992 <div style="background: #00FF00">-</div>
6998 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
7000 <div style="background:
7003 <div style="background: #00FF00">-</div>
7008 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
7010 <div style="background: #00FF00">-</div>
7012 <div style="background: #00FF00">-</div>
7017 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
7020 Parser hook: empty input
7033 Parser hook: empty input using terminated empty elements
7046 Parser hook: empty input using terminated empty elements (space before)
7059 Parser hook: basic input
7073 Parser hook: case insensitive
7087 Parser hook: case insensitive, redux
7100 Parser hook: nested tags
7104 <tag><tag></tag></tag>
7115 Parser hook: basic arguments
7117 <tag width=200 height = "100" depth = '50' square></tag>
7136 Parser hook: argument containing a forward slash (bug 5344)
7138 <tag filename='/tmp/bla'></tag>
7144 string(8) "/tmp/bla"
7151 Parser hook: empty input using terminated empty elements (bug 2374)
7165 # </tag> should be output literally since there is no matching tag that begins it
7167 Parser hook: basic arguments using terminated empty elements (bug 2374)
7169 <tag width=200 height = "100" depth = '50' square/>
7192 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
7196 Parser hook: static parser hook not inside a comment
7198 <statictag>hello, world</statictag>
7199 <statictag action=flush/>
7207 Parser hook: static parser hook inside a comment
7209 <!-- <statictag>hello, world</statictag> -->
7210 <statictag action=flush/>
7216 # Nested template calls; this case was broken by Parser.php rev 1.506,
7220 Template:One-parameter
7222 (My parameter is: {{{1}}})
7226 Template:Map-one-parameter
7232 Nested template calls
7234 {{Map-one-parameter|One-parameter|param}}
7236 <p>(My parameter is: param)
7245 Sanitizer: Closing of open tags
7247 <s></s><table></table>
7249 <s></s><table></table>
7254 Sanitizer: Closing of open but not closed tags
7263 Sanitizer: Closing of closed but not open tags
7272 Sanitizer: Closing of closed but not open table tags
7274 Table not started</td></tr></table>
7276 <p>Table not started</td></tr></table>
7281 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
7283 <span id="æ: v">byte</span>[[#æ: v|backlink]]
7285 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
7290 Sanitizer: Validating the contents of the id attribute (bug 4515)
7296 Something, but definitely not <br id="9" />...
7300 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
7304 <br id="foo" /><br id="foo" />
7306 Something need to be done. foo-2 ?
7310 Language converter: output gets cut off unexpectedly (bug 5757)
7314 this bit is safe: }-
7316 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
7318 then we get cut off here: }-
7320 all additional text is vanished
7322 <p>this bit is safe: }-
7323 </p><p>but if we add a conversion instance: xxx
7324 </p><p>then we get cut off here: }-
7325 </p><p>all additional text is vanished
7330 Self closed html pairs (bug 5487)
7333 <center><font id="bug" />Centered text</center>
7334 <div><font id="bug2" />In div text</div>
7336 <center><font id="bug" />Centered text</center>
7337 <div><font id="bug2" />In div text</div>
7346 Punctuation: nbsp before exclamation
7350 <p>C'est grave !
7355 Punctuation: CSS !important (bug 11874)
7357 <div style="width:50% !important">important</div>
7359 <div style="width:50% !important">important</div>
7364 Punctuation: CSS ! important (bug 11874; with space after)
7366 <div style="width:50% ! important">important</div>
7368 <div style="width:50% ! important">important</div>
7374 HTML bullet list, closed tags (bug 5497)
7389 HTML bullet list, unclosed tags (bug 5497)
7406 HTML ordered list, closed tags (bug 5497)
7421 HTML ordered list, unclosed tags (bug 5497)
7438 HTML nested bullet list, closed tags (bug 5497)
7463 HTML nested bullet list, open tags (bug 5497)
7488 HTML nested ordered list, closed tags (bug 5497)
7513 HTML nested ordered list, open tags (bug 5497)
7538 HTML ordered list item with parameters oddity
7540 <ol><li id="fragment">One</li></ol>
7542 <ol><li id="fragment">One</li></ol>
7547 bug 5918: autonumbering
7549 [http://first/] [http://second] [ftp://ftp]
7553 [mailto:enclosed@mail.tld With target]
7555 [mailto:enclosed@mail.tld]
7557 mailto:inline@mail.tld
7559 <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>
7560 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
7561 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
7562 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
7563 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
7569 # Security and HTML correctness
7570 # From Nick Jenkins' fuzz testing
7574 Fuzz testing: Parser13
7589 Fuzz testing: Parser14
7594 <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>
7595 http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
7597 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
7604 Fuzz testing: Parser14-table
7609 <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>
7610 <table style="__TOC__">
7616 # Known to produce bogus xml (extra </td>)
7618 Fuzz testing: Parser16
7638 Fuzz testing: Parser21
7641 ! irc://{{ftp://a" onmouseover="alert('hello world');"
7646 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
7656 Fuzz testing: Parser22
7658 http://===r:::https://b
7662 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
7670 # Known to produce bad XML for now
7672 Fuzz testing: Parser24
7679 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
7680 <br style="onmouseover='alert(document.cookie);' " />
7682 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7687 <u class="|">}}}} >
7688 <br style="onmouseover='alert(document.cookie);'" />
7690 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
7699 # Note: the current result listed for this is not what the original one was,
7700 # but the original bug was JavaScript injection, which is fixed in any case.
7701 # It's not clear that the original result listed was any more correct than the
7702 # current one. Original result:
7705 # <li class="||">
7706 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7708 Fuzz testing: Parser25 (bug 6055)
7714 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
7716 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
7721 Fuzz testing: URL adjacent extension (with space, clean)
7724 http://example.com <nowiki>junk</nowiki>
7726 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
7731 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
7734 http://example.com<nowiki>junk</nowiki>
7736 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
7741 Fuzz testing: URL adjacent extension (no space, dirty; pre)
7744 http://example.com<pre>junk</pre>
7746 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
7751 Fuzz testing: image with bogus manual thumbnail
7753 [[Image:foobar.jpg|thumbnail= ]]
7755 <div class="thumb tright"><div class="thumbinner" style="width:1943px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
7760 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
7762 <pre dir=" "></pre>
7764 <pre dir=" "></pre>
7769 Parsing optional HTML elements (Bug 6171)
7774 <td> Some tabular data</td>
7775 <td> More tabular data ...
7776 <td> And yet som tabular data</td>
7782 <td> Some tabular data</td>
7783 <td> More tabular data ...
7784 </td><td> And yet som tabular data</td>
7791 Correct handling of <td>, <tr> (Bug 6171)
7796 <td> Some tabular data</td>
7797 <td> More tabular data ...</td>
7798 <td> And yet som tabular data</td>
7804 <td> Some tabular data</td>
7805 <td> More tabular data ...</td>
7806 <td> And yet som tabular data</td>
7814 Parsing crashing regression (fr:JavaScript)
7818 <p></body></x>
7823 Inline wiki vs wiki block nesting
7829 <p><b>Bold paragraph</b>
7830 </p><p>New wiki paragraph
7835 Inline HTML vs wiki block nesting
7843 <p><b>Bold paragraph</b>
7844 </p><p>New wiki paragraph
7848 # Original result was this:
7849 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
7851 # While that might be marginally more intuitive, maybe, the six-apostrophe
7852 # construct is clearly pathological and the result stated here (which is what
7853 # the parser actually does) is about as reasonable as anything.
7855 Mixing markup for italics and bold
7858 '''bold''''''bold''bolditalics'''''
7860 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
7868 Article for special page transclusion test
7872 Special page transclusion
7875 {{Special:Prefixindex/Xyzzyx}}
7877 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7882 Special page transclusion twice (bug 5021)
7885 {{Special:Prefixindex/Xyzzyx}}
7886 {{Special:Prefixindex/Xyzzyx}}
7888 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7889 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
7894 Transclusion of default MediaWiki message
7896 {{MediaWiki:Mainpage}}
7903 Transclusion of nonexistent MediaWiki message
7905 {{MediaWiki:Mainpagexxx}}
7907 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
7912 Transclusion of MediaWiki message with underscore
7914 {{MediaWiki:history_short}}
7921 Transclusion of MediaWiki message with space
7923 {{MediaWiki:history short}}
7930 Invalid header with following text
7940 Section extraction test (section 0)
7960 Section extraction test (section 1)
7982 Section extraction test (section 2)
8003 Section extraction test (section 3)
8023 Section extraction test (section 4)
8047 Section extraction test (section 5)
8067 Section extraction test (section 6)
8088 Section extraction test (section 7)
8108 Section extraction test (section 8)
8128 Section extraction test (section 9)
8149 Section extraction test (section 10)
8169 Section extraction test (nonexistent section 11)
8188 Section extraction test with bogus heading (section 1)
8193 ==bogus== not a legal section
8197 ==bogus== not a legal section
8201 Section extraction test with bogus heading (section 2)
8206 ==bogus== not a legal section
8213 Section extraction test with comment after heading (section 1)
8225 Section extraction test with comment after heading (section 2)
8237 Section extraction test with bogus <nowiki> heading (section 1)
8242 ==bogus== <nowiki>not a legal section</nowiki>
8246 ==bogus== <nowiki>not a legal section</nowiki>
8250 Section extraction test with bogus <nowiki> heading (section 2)
8255 ==bogus== <nowiki>not a legal section</nowiki>
8262 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
8263 # instead of respecting commented sections
8265 Section extraction prefixed by comment (section 1)
8276 Section extraction prefixed by comment (section 2)
8287 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
8288 # instead of respecting HTML-style headings
8290 Section extraction, mixed wiki and html (section 1)
8306 Section extraction, mixed wiki and html (section 2)
8322 # Formerly testing for bug 3342
8324 Section extraction, heading surrounded by <noinclude>
8328 <noinclude>==unmarked==</noinclude>
8334 # Test behaviour of bug 19910
8336 Sectiion with all-equals
8341 The line above must have a trailing space
8344 But just in case it doesn't...
8348 But just in case it doesn't...
8352 Section replacement test (section 0)
8383 Section replacement test (section 1)
8412 Section replacement test (section 2)
8442 Section replacement test (section 3)
8473 Section replacement test (section 4)
8500 Section replacement test (section 5)
8531 Section replacement test (section 6)
8561 Section replacement test (section 7)
8592 Section replacement test (section 8)
8623 Section replacement test (section 9)
8652 Section replacement test (section 10)
8682 Section replacement test with initial whitespace (bug 13728)
8686 Preformatted initial line
8690 Preformatted initial line
8697 Section extraction, heading followed by pre with 20 spaces (bug 6398)
8709 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
8722 Section extraction, <pre> around bogus header (bug 10309)
8739 Section replacement, <pre> around bogus header (bug 10309)
8741 noxml replace=2,"xxx"
8762 Handling of 
 in URLs
8766 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
8773 5 quotes, code coverage +1 line
8780 Special:Search page linking.
8784 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
8799 * {{SUBJECTPAGENAME}}
8800 * {{SUBJECTPAGENAMEE}}
8807 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
8809 <ul><li> Parser test
8810 </li><li> Parser test
8811 </li><li> Parser test
8812 </li><li> Parser_test
8813 </li><li> Parser test
8814 </li><li> Parser_test
8815 </li><li> Talk:Parser test
8816 </li><li> Talk:Parser_test
8817 </li><li> Parser test
8818 </li><li> Parser_test
8825 </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>
8829 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
8839 image4 |300px| centre
8840 image5.svg| http://///////
8845 <ul class="gallery">
8846 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8847 <div style="height: 150px;">Image1.png</div>
8848 <div class="gallerytext">
8851 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8852 <div style="height: 150px;">Image2.gif</div>
8853 <div class="gallerytext">
8858 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8859 <div style="height: 150px;">Image3</div>
8860 <div class="gallerytext">
8863 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8864 <div style="height: 150px;">Image4</div>
8865 <div class="gallerytext">
8870 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8871 <div style="height: 150px;">Image5.svg</div>
8872 <div class="gallerytext">
8873 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
8877 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8878 <div style="height: 150px;">* image6</div>
8879 <div class="gallerytext">
8887 Gallery (with options)
8889 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
8890 File:Nonexistant.jpg|caption
8891 File:Nonexistant.jpg
8892 image:foobar.jpg|some '''caption''' [[Main Page]]
8894 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
8897 <ul class="gallery" style="max-width: 226px;_width: 226px;">
8898 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
8899 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8900 <div style="height: 70px;">Nonexistant.jpg</div>
8901 <div class="gallerytext">
8906 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8907 <div style="height: 70px;">Nonexistant.jpg</div>
8908 <div class="gallerytext">
8911 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8912 <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>
8913 <div class="gallerytext">
8914 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8918 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8919 <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>
8920 <div class="gallerytext">
8923 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
8924 <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>
8925 <div class="gallerytext">
8935 Gallery with wikitext inside caption
8938 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
8939 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
8942 <ul class="gallery">
8943 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8944 <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>
8945 <div class="gallerytext">
8946 <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>
8950 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8951 <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>
8952 <div class="gallerytext">
8953 <p>This is a test template
8962 gallery (with showfilename option)
8964 <gallery showfilename>
8965 File:Nonexistant.jpg|caption
8966 File:Nonexistant.jpg
8967 image:foobar.jpg|some '''caption''' [[Main Page]]
8971 <ul class="gallery">
8972 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8973 <div style="height: 150px;">Nonexistant.jpg</div>
8974 <div class="gallerytext">
8975 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8980 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8981 <div style="height: 150px;">Nonexistant.jpg</div>
8982 <div class="gallerytext">
8983 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
8987 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8988 <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>
8989 <div class="gallerytext">
8990 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
8991 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
8995 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
8996 <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>
8997 <div class="gallerytext">
8998 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
9007 Gallery (with namespace-less filenames)
9010 File:Nonexistant.jpg
9016 <ul class="gallery">
9017 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9018 <div style="height: 150px;">Nonexistant.jpg</div>
9019 <div class="gallerytext">
9022 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9023 <div style="height: 150px;">Nonexistant.jpg</div>
9024 <div class="gallerytext">
9027 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9028 <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>
9029 <div class="gallerytext">
9032 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
9033 <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>
9034 <div class="gallerytext">
9042 HTML Hex character encoding (spells the word "JavaScript")
9044 JavaScript
9046 <p>JavaScript
9051 HTML Hex character encoding bogus encoding (bug 26437 regression check)
9055 <p>&#xsee;&#XSEE;
9060 HTML Hex character encoding mixed case
9069 __FORCETOC__ override
9081 ISBN 978-0-1234-56 789
9083 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
9088 ISBN followed by 5 spaces
9099 ISBN ISBN 1234567890
9101 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9106 Bug 22905: <abbr> followed by ISBN followed by </a>
9108 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
9110 <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>
9119 <p>RFC <a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
9124 Double RFC with a wiki link
9128 <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>
9137 <p><a class="external mw-magiclink-rfc" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
9142 Centre-aligned image
9144 [[Image:foobar.jpg|centre]]
9146 <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>
9153 [[Image:foobar.jpg|none]]
9155 <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>
9160 Width + Height sized image (using px) (height is ignored)
9162 [[Image:foobar.jpg|640x480px]]
9164 <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>
9169 Width-sized image (using px, no following whitespace)
9171 [[Image:foobar.jpg|640px]]
9173 <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>
9178 Width-sized image (using px, with following whitespace - test regression from r39467)
9180 [[Image:foobar.jpg|640px ]]
9182 <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>
9187 Width-sized image (using px, with preceding whitespace - test regression from r39467)
9189 [[Image:foobar.jpg| 640px]]
9191 <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>
9196 Another italics / bold test
9204 # Note the results may be incorrect, as parserTest output included this:
9205 # XML error: Mismatched tag at byte 6120:
9206 # ...<dd> </dt></dl> </dd...
9214 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
9225 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
9227 Images with the "|" character in the comment
9229 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
9231 <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>
9236 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
9238 <html><script>alert(1);</script></html>
9240 <p><html><script>alert(1);</script></html>
9245 HTML with raw HTML ($wgRawHtml==true)
9249 <html><script>alert(1);</script></html>
9251 <p><script>alert(1);</script>
9256 Parents of subpages, one level up
9258 subpage title=[[Subpage test/L1/L2/L3]]
9262 <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>
9268 Parents of subpages, one level up, not named
9270 subpage title=[[Subpage test/L1/L2/L3]]
9274 <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>
9281 Parents of subpages, two levels up
9283 subpage title=[[Subpage test/L1/L2/L3]]
9289 <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
9290 </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>
9295 Parents of subpages, two levels up, without trailing slash or name.
9297 subpage title=[[Subpage test/L1/L2/L3]]
9306 Parents of subpages, two levels up, with lots of extra trailing slashes.
9308 subpage title=[[Subpage test/L1/L2/L3]]
9312 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
9317 Definition list code coverage
9323 <dl><dt> title  </dt><dd> def
9324 </dd><dt> title </dt><dd> def
9325 </dd><dt>title</dt><dd> def
9331 Don't fall for the self-closing div
9333 <div>hello world</div/>
9335 <div>hello world</div>
9344 <p>[[:Template:Msg]]
9353 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
9357 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
9359 Always escape literal '>' in output, not just after '<'
9373 <p>This is a test template
9374 This is a test template
9386 Inclusion of !userCanEdit() content
9390 <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>
9396 Out-of-order TOC heading levels
9405 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
9407 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
9409 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
9410 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
9413 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
9415 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
9416 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
9421 <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>
9422 <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>
9423 <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>
9424 <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>
9425 <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>
9426 <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>
9432 ISBN with a dummy number
9442 ISBN with space-delimited number
9446 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
9452 ISBN with multiple spaces, no number
9471 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
9472 </p><p>ISBN 12345678901
9478 ISBN with trailing year (bug 8110)
9480 ISBN 1-234-56789-0 - 2006
9482 ISBN 1 234 56789 0 - 2006
9484 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
9485 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
9493 {{anchorencode:foo bar©#%n}}
9495 <p>foo_bar.C2.A9.23.25n
9500 anchorencode trims spaces
9502 {{anchorencode: __pretty__please__}}
9509 anchorencode deals with links
9511 {{anchorencode: [[hello|world]] [[hi]]}}
9518 anchorencode deals with templates
9520 {{anchorencode: {{Foo}} }}
9527 anchorencode encodes like the TOC generator: (bug 18431)
9529 === _ +:.3A%3A&&]] ===
9530 {{anchorencode: _ +:.3A%3A&&]] }}
9533 <h3> <span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D"> _ +:.3A%3A&&]] </span></h3>
9534 <p>.2B:.3A.253A.26.26.5D.5D
9538 # Expected output in the following test is not necessarily expected (there
9539 # should probably be <p> tags inside the <blockquote> in the output) -- it's
9540 # only testing for well-formedness.
9542 Bug 6200: blockquotes and paragraph formatting
9562 Bug 8293: Use of center tag ruins paragraph formatting
9584 ### Language variants related tests
9587 Self-link in language variants
9589 title=[[Dunav]] language=sr
9591 Both [[Dunav]] and [[Дунав]] are names for this river.
9593 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
9599 Link to pages in language variants
9603 Main Page can be written as [[Маин Паге]]
9605 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
9611 Multiple links to pages in language variants
9615 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
9617 <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>.
9623 Simple template in language variants
9629 <p>This is a test template
9635 Template with explicit namespace in language variants
9641 <p>This is a test template
9647 Basic test for template parameter in language variants
9651 {{парамтест|param=foo}}
9653 <p>This is a test template with parameter foo
9659 Simple category in language variants
9663 [[Category:МедиаWики Усер'с Гуиде]]
9665 <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>
9670 Stripping -{}- tags (language variants)
9674 Latin proverb: -{Ne nuntium necare}-
9676 <p>Latin proverb: Ne nuntium necare
9682 Prevent conversion with -{}- tags (language variants)
9684 language=sr variant=sr-ec
9686 Latinski: -{Ne nuntium necare}-
9688 <p>Латински: Ne nuntium necare
9694 Prevent conversion of text with -{}- tags (language variants)
9696 language=sr variant=sr-ec
9698 Latinski: -{Ne nuntium necare}-
9700 <p>Латински: Ne nuntium necare
9706 Prevent conversion of links with -{}- tags (language variants)
9708 language=sr variant=sr-ec
9712 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9718 -{}- tags within headlines (within html for parserConvert())
9720 language=sr variant=sr-ec
9724 <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>
9730 Explicit definition of language variant alternatives
9732 language=zh variant=zh-tw
9734 -{zh:China;zh-tw:Taiwan}-, not China
9736 <p>Taiwan, not China
9742 Explicit session-wise language variant mapping (A flag and - flag)
9744 language=zh variant=zh-tw
9746 Taiwan is not China.
9747 But -{A|zh:China;zh-tw:Taiwan}- is China,
9748 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
9749 and -{China}- is China.
9751 <p>Taiwan is not China.
9752 But Taiwan is Taiwan,
9753 (This should be stripped!)
9759 Explicit session-wise language variant mapping (H flag for hide)
9761 language=zh variant=zh-tw
9763 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
9766 <p>(This should be stripped!)
9772 Adding explicit conversion rule for title (T flag)
9774 language=zh variant=zh-tw showtitle
9776 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9779 <p>Should be stripped!
9784 Testing that changing the language variant here in the tests actually works
9786 language=zh variant=zh showtitle
9788 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9791 <p>Should be stripped!
9796 Bug 24072: more test on conversion rule for title
9798 language=zh variant=zh-tw showtitle
9800 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
9801 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
9804 <p>This should be stripped!
9805 This won't take interferes with the title rule.
9810 Raw output of variant escape tags (R flag)
9812 language=zh variant=zh-tw
9814 Raw: -{R|zh:China;zh-tw:Taiwan}-
9816 <p>Raw: zh:China;zh-tw:Taiwan
9821 Nested using of manual convert syntax
9823 language=zh variant=zh-hk
9825 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
9827 <p>Nested: Hello Hong Kong!
9832 Do not convert roman numbers to language variants
9834 language=sr variant=sr-ec
9838 <p>Фридрих IV је цар.
9843 Unclosed language converter markup "-{"
9854 Don't convert raw rule "-{R|=>}-" to "=>"
9871 Bug 529: Uncovered bullet
9882 Bug 529: Uncovered table already at line-start
9905 Bug 529: Uncovered bullet in parser function result
9907 * Foo {{lc:{{bullet}} }}
9916 Bug 5678: Double-parsed template argument
9918 {{lc:{{{1}}}|hello}}
9925 Bug 5678: Double-parsed template invocation
9927 {{lc:{{paramtest {{!}} param = hello }} }}
9929 <p>{{paramtest | param = hello }}
9934 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
9960 Morwen/13: Unclosed link followed by heading
9967 <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>
9972 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
9979 <h1> <span class="mw-headline" id="heading">heading</span></h1>
9984 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
9991 <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>
10006 Paragraphs inside divs (no extra line breaks)
10018 Paragraphs inside divs (extra line break on open)
10033 Paragraphs inside divs (extra line break on close)
10048 Paragraphs inside divs (extra line break on open and close)
10065 Nesting tags, paragraphs on lines which begin with <div>
10069 <div></div><strong>A
10078 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
10080 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
10084 <blockquote>Line one
10086 Line two</blockquote>
10088 <blockquote>Line one
10089 Line two</blockquote>
10094 Bug 6200: paragraphs inside blockquotes (extra line break on open)
10101 Line two</blockquote>
10106 Line two</blockquote>
10111 Bug 6200: paragraphs inside blockquotes (extra line break on close)
10115 <blockquote>Line one
10120 <blockquote>Line one
10128 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
10147 Paragraphs inside blockquotes/divs (no extra line breaks)
10149 <blockquote><div>Line one
10151 Line two</div></blockquote>
10153 <blockquote><div>Line one
10154 Line two</div></blockquote>
10159 Paragraphs inside blockquotes/divs (extra line break on open)
10164 Line two</div></blockquote>
10169 Line two</div></blockquote>
10174 Paragraphs inside blockquotes/divs (extra line break on close)
10176 <blockquote><div>Line one
10179 </div></blockquote>
10181 <blockquote><div>Line one
10184 </div></blockquote>
10189 Paragraphs inside blockquotes/divs (extra line break on open and close)
10195 </div></blockquote>
10201 </div></blockquote>
10206 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
10208 wgLinkHolderBatchSize=0
10214 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
10215 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
10216 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
10221 Free external link invading image caption
10223 [[Image:Foobar.jpg|thumb|http://x|hello]]
10225 <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>
10230 Bug 15196: localised external link numbers
10234 [http://en.wikipedia.org/]
10236 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
10241 Multibyte character in padleft
10243 {{padleft:-Hello|7|Æ}}
10250 Multibyte character in padright
10252 {{padright:Hello-|7|Æ}}
10261 wgUseDynamicDates=1
10265 <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>
10270 formatdate parser function
10272 {{#formatdate:2009-03-24}}
10274 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
10279 formatdate parser function, with default format
10281 {{#formatdate:2009-03-24|mdy}}
10283 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
10288 Linked date with autoformatting disabled
10290 wgUseDynamicDates=false
10294 <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>
10299 Spacing of numbers in formatted dates
10301 {{#formatdate:January 15}}
10303 <p><span class="mw-formatted-date" title="01-15">January 15</span>
10308 Spacing of numbers in formatted dates (linked)
10310 wgUseDynamicDates=true
10314 <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>
10319 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
10321 language=nl title=[[MediaWiki:Common.css]]
10323 {{#formatdate:2009-03-24|dmy}}
10325 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
10338 Edit comment with link
10342 I like the [[Main Page]] a lot
10344 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
10348 Edit comment with link and link text
10352 I like the [[Main Page|best pages]] a lot
10354 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10358 Edit comment with link and link text with suffix
10362 I like the [[Main Page|best page]]s a lot
10364 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
10368 Edit comment with section link (non-local, eg in history list)
10370 comment title=[[Main Page]]
10372 /* External links */ removed bogus entries
10374 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10378 Edit comment with section link and text before it (non-local, eg in history list)
10380 comment title=[[Main Page]]
10382 pre-comment text /* External links */ removed bogus entries
10384 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>
10388 Edit comment with section link (local, eg in diff view)
10390 comment local title=[[Main Page]]
10392 /* External links */ removed bogus entries
10394 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
10398 Edit comment with subpage link (bug 14080)
10402 title=[[Subpage test]]
10404 Poked at a [[/subpage]] here...
10406 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
10410 Edit comment with subpage link and link text (bug 14080)
10414 title=[[Subpage test]]
10416 Poked at a [[/subpage|neat little page]] here...
10418 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
10422 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
10425 title=[[Subpage test]]
10427 Poked at a [[/subpage]] here...
10429 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
10433 Edit comment with bare anchor link (local, as on diff)
10437 title=[[Main Page]]
10441 <a href="#section">#section</a>
10445 Edit comment with bare anchor link (non-local, as on history)
10448 title=[[Main Page]]
10452 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
10456 Anchor starting with underscore
10460 <p><a href="#_ref">One</a>
10465 Id starting with underscore
10467 <div id="_ref"></div>
10469 <div id="_ref"></div>
10474 Space normalisation on autocomment (bug 22784)
10477 title=[[Main Page]]
10479 /* __hello__world__ */
10481 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
10485 percent-encoding and + signs in comments (Bug 26410)
10489 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
10491 <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>
10495 Bad images - basic functionality
10504 Bad images - bug 16039: text after bad image disappears
10518 Verify that displaytitle works (bug #22501) no displaytitle
10522 wgAllowDisplayTitle=true
10523 wgRestrictDisplayTitle=false
10525 this is not the the title
10528 <p>this is not the the title
10533 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
10538 wgAllowDisplayTitle=true
10539 wgRestrictDisplayTitle=false
10541 this is not the the title
10542 {{DISPLAYTITLE:whatever}}
10545 <p>this is not the the title
10550 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
10555 wgAllowDisplayTitle=true
10556 wgRestrictDisplayTitle=true
10558 this is not the the title
10559 {{DISPLAYTITLE:whatever}}
10562 <p>this is not the the title
10567 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
10572 wgAllowDisplayTitle=true
10573 wgRestrictDisplayTitle=true
10575 this is not the the title
10576 {{DISPLAYTITLE:screen}}
10579 <p>this is not the the title
10584 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
10589 wgAllowDisplayTitle=false
10591 this is not the the title
10592 {{DISPLAYTITLE:screen}}
10595 <p>this is not the the title
10596 <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>
10601 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
10606 wgAllowDisplayTitle=false
10608 this is not the the title
10611 <p>this is not the the title
10616 preload: check <noinclude> and <includeonly>
10620 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
10626 preload: check <onlyinclude>
10630 Goodbye <onlyinclude>Hello world</onlyinclude>
10636 preload: can pass tags through if we want to
10640 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
10642 <includeonly>Hello world</includeonly>
10646 preload: check that it doesn't try to do tricks
10650 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10652 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
10656 Play a bit with r67090 and bug 3158
10660 <div style="width:50% !important"> </div>
10661 <div style="width:50% !important"> </div>
10662 <div style="width:50% !important"> </div>
10663 <div style="border : solid;"> </div>
10665 <div style="width:50% !important"> </div>
10666 <div style="width:50% !important"> </div>
10667 <div style="width:50% !important"> </div>
10668 <div style="border : solid;"> </div>
10673 HTML5 data attributes
10675 <span data-foo="bar">Baz</span>
10676 <p data-abc-def_hij="">Quuz</p>
10678 <p><span data-foo="bar">Baz</span>
10680 <p data-abc-def_hij="">Quuz</p>
10685 percent-encoding and + signs in internal links (Bug 26410)
10687 [[User:+%]] [[Page+title%]]
10688 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
10689 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
10690 [[%33%45]] [[%33%45+]]
10692 <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>
10693 <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>
10694 <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>
10695 <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>
10700 Special characters in embedded file links (bug 27679)
10702 [[File:Contains & ampersand.jpg]]
10703 [[File:Does not exist.jpg|Title with & ampersand]]
10705 <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>
10706 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
10712 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
10714 Text's been normalized?
10716 <p>Text's been normalized?
10721 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
10723 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
10725 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
10730 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
10732 [http://www.example.org/ ideograms]
10734 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
10739 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
10741 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
10743 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
10767 Bug 31098 Template which includes system messages which includes the template
10771 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10772 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
10777 Deprecated presentational attributes are converted to css
10780 | valign=top align=left width=100 height=25% | Asdf
10782 <ul type="disc"></ul>
10786 <td style="text-align: left; height: 25%; vertical-align: top; width: 100px;"> Asdf
10788 <ul style="list-style-type: disc;"></ul>
10793 Bug31490 Turkish: ucfirst 'blah'
10804 Bug31490 Turkish: ucfirst 'ix'
10815 Bug31490 Turkish: lcfirst 'BLAH'
10826 Bug31490 Turkish: ucfırst (with a dotless i)
10832 <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>
10837 Bug31490 ucfırst (with a dotless i) with English language
10843 <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>
10848 Bug 26375: TOC with italics
10850 title=[[Main Page]]
10853 == ''Lost'' episodes ==
10855 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10857 <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>
10860 <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>
10865 Bug 26375: TOC with bold
10867 title=[[Main Page]]
10870 == '''should be bold''' then normal text ==
10872 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10874 <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>
10877 <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>
10882 Bug 33845: Headings become cursive in TOC when they contain an image
10884 title=[[Main Page]]
10887 == Image [[Image:foobar.jpg]] ==
10889 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10891 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
10894 <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>
10899 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
10901 title=[[Main Page]]
10904 == <blockquote>Quote</blockquote> ==
10906 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10908 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
10911 <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>
10916 Unclosed tags in TOC
10918 title=[[Main Page]]
10922 <small>Hanc marginis exiguitas non caperet.</small>
10925 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10927 <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>
10930 <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>
10931 <p><small>Hanc marginis exiguitas non caperet.</small>
10937 Multiple tags in TOC
10940 == <i>Foo</i> <b>Bar</b> ==
10942 == <i>Foo</i> <blockquote>Bar</blockquote> ==
10944 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10946 <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>
10947 <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>
10950 <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>
10951 <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>
10956 Tags with parameters in TOC
10959 == <sup class="in-h2">Hello</sup> ==
10961 == <sup class="a > b">Evilbye</sup> ==
10963 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10965 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
10966 <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>
10969 <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>
10970 <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>
10975 span tags with directionality in TOC
10978 == <span dir="ltr">C++</span> ==
10980 == <span dir="rtl">זבנג!</span> ==
10982 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
10984 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
10986 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
10988 <table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div>
10990 <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>
10991 <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>
10992 <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>
10993 <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>
10994 <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>
10997 <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>
10998 <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>
10999 <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>
11000 <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>
11001 <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>
11008 == {{int:headline_sample}} ==
11012 Bug 32057: Title needed when expanding <h> nodes.
11014 title=[[Main Page]]
11018 <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>
11023 Strip marker in urlencode
11025 {{urlencode:x<nowiki/>y}}
11026 {{urlencode:x<nowiki/>y|wiki}}
11027 {{urlencode:x<nowiki/>y|path}}
11054 Strip marker in formatNum
11056 {{formatnum:1<nowiki/>2}}
11057 {{formatnum:1<nowiki/>2|R}}
11065 Strip marker in grammar
11069 {{grammar:elative|foo<nowiki/>bar}}
11076 Strip marker in padleft
11078 {{padleft:|2|x<nowiki/>y}}
11085 Strip marker in padright
11087 {{padright:|2|x<nowiki/>y}}
11094 Strip marker in anchorencode
11096 {{anchorencode:x<nowiki/>y}}
11103 nowiki inside link inside heading (bug 18295)
11105 ==[[foo|x<nowiki>y</nowiki>z]]==
11107 <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>
11112 new support for bdi element (bug 31817)
11114 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11116 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
11121 Ignore pipe between table row attributes
11125 |- id=foo | style='color: red'
11133 <tr id="foo" style="color: red">
11140 Gallery override link with WikiLink (bug 34852)
11143 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
11146 <ul class="gallery">
11147 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11148 <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>
11149 <div class="gallerytext">
11159 Gallery override link with absolute external link (bug 34852)
11162 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
11165 <ul class="gallery">
11166 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11167 <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>
11168 <div class="gallerytext">
11178 Gallery override link with malicious javascript (bug 34852)
11181 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
11184 <ul class="gallery">
11185 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11186 <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>
11187 <div class="gallerytext">
11197 Language parser function
11206 Padleft and padright as substr
11208 {{padleft:|3|abcde}}
11209 {{padright:|3|abcde}}
11217 Bug 34939 - Case insensitive link parsing ([HttP://])
11219 [HttP://MediaWiki.Org/]
11221 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
11226 Bug 34939 - Case insensitive link parsing ([HttP:// title])
11228 [HttP://MediaWiki.Org/ MediaWiki]
11230 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
11235 Bug 34939 - Case insensitive link parsing (HttP://)
11237 HttP://MediaWiki.Org/
11239 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
11244 ### Parsoids-specific tests
11245 ### Parsoid-PHP parser incompatibilities
11248 1. SOL-sensitive wikitext tokens as template-args
11267 Try for 100% code coverage