Last modified: 2014-09-23 19:37:39 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 8657 - Superimpose another image as click destination
Superimpose another image as click destination
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
ImageMap (Other open bugs)
unspecified
All All
: Normal enhancement with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-16 13:53 UTC by Raimond Spekking
Modified: 2014-09-23 19:37 UTC (History)
2 users (show)

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


Attachments
proposed patch (15.20 KB, patch)
2009-03-10 23:28 UTC, René Kijewski
Details
minor errors, extended link syntax (15.91 KB, patch)
2009-03-11 22:44 UTC, René Kijewski
Details
Moved (now) redundant code into a static method; links no more have to be well formed (18.75 KB, patch)
2009-03-19 03:07 UTC, René Kijewski
Details

Description Raimond Spekking 2007-01-16 13:53:03 UTC
For maps it would be a great improvement if the imagemap extension can
superimpose another, smaller, image as link destination.

Example for a map with a red dot as superimposed image, followed by the link
destination:

<imagemap>
Image:ExampleMap.JPG|500px|Test map
circ 52 34 5 [[Image:Reddot.svg|5px]] [[Link destination]]
desc none
</imagemap>
Comment 1 Brion Vibber 2007-01-16 21:00:58 UTC
Not sure how best to accomplish this... CSS positioning? Server-side
composition? SVG?
Comment 2 Siebrand Mazeland 2008-08-17 22:13:21 UTC
Assigned to extension developer
Comment 3 René Kijewski 2009-03-10 23:28:58 UTC
Created attachment 5910 [details]
proposed patch

This patch implements the new "shape" `image`, and allows relative and negative positions.
With it you could use a line like
> image 50% 50% none [[File:Test.png|20px|link=test page|Some description]]
where "image" means to add a superimposing image. "50% 50%" is the base position. "none" is the alignment of the superimposing image (hereby centered). Available are the same positions as for "desc". So top-left means the base position is the upper left position of the superimposing image. bottom-right would be the lower right corner and so on.
The relative positions work for real shapes as well:
> rect 10% 10% -10% -10% [[Test]]
would add a rectangle with a margin of 10% in height and width.

There are some new messages I don't have written yet.
Comment 4 René Kijewski 2009-03-11 22:44:05 UTC
Created attachment 5917 [details]
minor errors, extended link syntax

I made <imagemap> understand lines like
> circle 1 2 3 //Test//
so {{#tag:imagemap}} could be used for location maps. Normal link don't work, because <imagemap> gets the parsed links and not the plain text.
Comment 5 René Kijewski 2009-03-19 03:07:15 UTC
Created attachment 5941 [details]
Moved (now) redundant code into a static method; links no more have to be well formed
Comment 6 p858snake 2011-04-30 00:10:05 UTC
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
Comment 7 Sumana Harihareswara 2011-11-14 16:47:11 UTC
René Kijewski, thank you for your patch, and my apologies that it's taken so long for us to respond to you.  I'm adding the "need-review" keyword to mark this bug as containing a patch that needs review.  Thanks again.  If you want to
talk about your patch and get it reviewed faster, please feel free to visit
#mediawiki in freenode IRC -- http://webchat.freenode.net/?channels=#mediawiki
Comment 8 Sumana Harihareswara 2012-05-23 19:51:02 UTC
René Kijewski, again, my regrets at the delay in response to your patch.

You will get your patch reviewed faster if you get Developer access

https://www.mediawiki.org/wiki/Developer_access

and submit your change directly into our source control system:

https://www.mediawiki.org/wiki/Git/Workflow

Thanks!
Comment 9 Sumana Harihareswara 2012-06-11 18:56:40 UTC
Dan, is this worth an update & a push into Gerrit?

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


Navigation
Links