</p>
!! end
+# NOTE: it is assumed that [[Category:MediaWiki User's Guide]] exists. It may be necessary to
+# create it, because there are no categories in a default MediaWiki installation. Ideally the
+# parser tester could create a category for testing purposes; this may be necessary for
+# templates anyway.
!! test
Link to category
!! input
!! input
Piped link to URL: [[http://www.example.org|an example URL]]
!! result
-<p>Piped link to URL: <a href="/index.php?title=http://www.example.org&action=edit" class="new">an example URL</a>
+<p>Piped link to URL: <a href="/index.php?title=Http://www.example.org&action=edit" class="new" title="Http://www.example.org">an example URL</a>
</p>
!! end
!! input
[[Main Page|http://url/]]
!! result
-<p><a href="/wiki/Main_Page" title="Main Page">http://url</a>
+<p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
</p>
!! end
</p>
!! end
+###
+### Magic links
+###
+!! test
+Magic links: internal link to RFC
+!! input
+[[RFC 123]]
+!! result
+<p><a href="/index.php?title=RFC_123&action=edit" class="new" title="RFC 123">RFC 123</a>
+</p>
+!! end
+
+!! test
+Magic links: ISBN
+!! input
+ISBN 0-306-40615-2
+!! result
+<p><a href="/index.php?title=Special:Booksources&isbn=0306406152" class="internal">ISBN 0-306-40615-2</a>
+</p>
+!! end
+
###
### Nonexistant template
###
</p>
!! end
+TODO:
+subpages
+templates
+and much more
+