Last modified: 2008-12-29 08:42:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18825, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16825 - Extension should accept variables as image and link names
Extension should accept variables as image and link names
Status: RESOLVED DUPLICATE of bug 2257
Product: MediaWiki extensions
Classification: Unclassified
ImageMap (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Tim Starling
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-29 08:38 UTC by Erik
Modified: 2008-12-29 08:42 UTC (History)
1 user (show)

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


Attachments

Description Erik 2008-12-29 08:38:58 UTC
Currently, images and links specified in the extension have to be static if we are using them in a template. If we wanted them to be variable depending on an incoming variable of a template, that should work too. For example, this works:
<imagemap>
Image:Foo.jpg|100px|picture of a foo
rect    0  0  50 50  [[{{{1|}}}]]
desc bottom-left
</imagemap>

But this, would not work (but should):
<imagemap>
{{{myImage}}} |100px|picture of a foo
rect    0  0  50 50  [[{{{MyLink}}}]]
desc bottom-left
</imagemap>
Comment 1 Raimond Spekking 2008-12-29 08:42:35 UTC
In general your bug is valid, but it's a dupe of bug 2257.

For a solution of your problem see the {{#tag:imagemap...}} syntax, i.e. in http://en.wikipedia.org/wiki/Template:Imagemap

*** This bug has been marked as a duplicate of bug 2257 ***

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


Navigation
Links