On 8/18/06, Simetrical <Simetrical+wikitech(a)gmail.com> wrote:
True (album names, ugh). Note the following in
Parser.php:
# Don't allow internal links to pages containing
# PROTO: where PROTO is a valid URL protocol; these
# should be external links.
if (preg_match('/^(\b(?:' . wfUrlProtocols() .
'))/', $m[1])) {
$s .= $prefix . '[[' . $line ;
continue;
}
Any reason that we explicitly ban pages from having titles that look like URLs?
Hmm, can't vouch for that, but I just tried this at another wiki, and
the result was quite strange.
I created a link to [[
http://test.com]].
I clicked the redlink and saved some text.
At that point, the page was apparently renamed http:/test.com (note
the missing slash), and I was told that that page was empty.
Returning to the original page, my redlink is now blue, and definitely
points to
http://test.com
However, clicking on it takes me to http:/test.com, which doesn't exist.
Oh, now here's fun. I repeated the experiment with [[ mailto:foo]].
This time, the link behaved as expected, and I was able to save text
to the page "mailto:foo".
I return to the original page, and click the blue link. Guess what
happens? My mail editor opens...
Strangely, neither {{http://test.com}} nor {{mailto:foo}} works, but
that could be a namespace issue, where it's treating http: and mailto:
as the namespace, and for some reason deciding to tack template: on
the front, or something.
Anyway, anyone believe me yet that these magic words are a bad idea? :)
Steve