Last modified: 2009-01-19 00:24:10 UTC
The transclusion of variables like {{PAGENAME}} fails in imagemap. Try to save or preview this code: <imagemap> Image:Commons-logo.svg|24px|Commons # Fiktives Rechteck der Größe 0, der nachfolgende default bedeckt dann das ganze Icon rect 0 0 0 0 [[commons:{{PAGENAME}}]] default [[commons:{{PAGENAME}}]] desc none </imagemap> You will get an empty screen. Really empty, zero byte...
There are similar problems with parameters if the imagemap is included in a template. <imagemap> Image:{{{1|smiley.jpg}}} rect 0 0 50 50 [[Frog]] </imagemap> The above fails because the contents of the parameter are ignored (regardless of whether it is set or not). The same thing happens if the link, size, or other values are defined by parameters. This effectively prevents <imagemap> from being used to replace older 'clickable image' methods like 'Template:Click'... since it can't accept parameters or magic words it has to be individually coded for each image/size/destination combo. For instance, 'Template:Portal' on en-wikip can't be recoded to use imagemap with the existing parameters... and writing up separate imagemap statements for every portal/page with a portal link is not feasible. Hence, the current logic that 'imagemap' was meant to replace will continue being used.
*** This bug has been marked as a duplicate of 2257 ***
I'm having the same problem, and I can't find an answer on the page for bug 2257... I'm confused. And on the version of the MediaWiki software I'm using, I can't use tempalte:click, either.
While bug 2257 may be the root cause of this problem, this seems like a very legitimate bug in its own right. It certainly hasn't been "resolved" by any means, as the solution listed on 2257 is merely an ugly "hack", nor does it really address the real issues expressed by this bug report. I'm not going to let myself get stomped by the dev team by reverting a re-opened but report to closed again, but this doesn't work, nor is it an exact duplicate of but 2257.