Last modified: 2009-01-19 00:24:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8600 - Transclusion of variables like {{PAGENAME}} fails in imagemap
Transclusion of variables like {{PAGENAME}} fails in imagemap
Status: RESOLVED DUPLICATE of bug 2257
Product: MediaWiki extensions
Classification: Unclassified
ImageMap (Other open bugs)
unspecified
All All
: High normal with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
http://de.wikipedia.org/wiki/Benutzer...
:
Depends on: 2257
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-12 09:05 UTC by Raimond Spekking
Modified: 2009-01-19 00:24 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Raimond Spekking 2007-01-12 09:05:26 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...
Comment 1 Conrad Dunkerson 2007-01-20 14:44:23 UTC
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.
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-01-28 21:25:04 UTC

*** This bug has been marked as a duplicate of 2257 ***
Comment 3 a.h.m. 2008-12-28 10:28:47 UTC
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.
Comment 4 Robert Horning 2009-01-19 00:24:10 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links