On Mon, 24 Jan 2005 19:33:23 +0100, Giovanni <gputignano(a)tiscali.it> wrote:
How can I create an image that link to an extrernal
site?
You can't.
Well, you can do the odd interwiki-redirect hack:
1) add an interwiki alias for the site you want to link to (see
http://meta.wikimedia.org/wiki/Help:Setting_up_interwiki_linking)
2) edit the image's description page to read "#redirect
[[<site>:<page>]]", where <site> is the interwiki prefix you
created,
and <page> is the page within that site.
This not only makes the image description (which would otherwise
include things like licensing or authorship information) inacessible,
but is something of a security/vandalism flaw (consider "#redirect
[[Google:goatse]]", or even an interwiki prefix pointing to the google
cache of a page...). If I get round to it, I intend to submit a patch
that limits interwiki-redirects to those prefixes labelled as "local"
in the database.
The other alternative is to play with my unfinished (and untested on
newer versions) patch for adding a target to the image syntax. See
http://bugzilla.wikimedia.org/show_bug.cgi?id=539 for the patch, and
the considerations that it doesn't yet address; looking back, I see I
never got external links working, but this shouldn't be too hard to
address.
--
Rowan Collins BSc
[IMSoP]