Extension talk:ImageMap
| previous talk on this page
|
Contents
| Thread title | Replies | Last modified |
|---|---|---|
| Need to distinguish "red" links from "blue" links (and add external, while you're at it) | 4 | 15:02, 23 April 2012 |
| Text Wrapping | 1 | 18:07, 22 April 2012 |
| External link in other windows | 1 | 17:17, 9 April 2012 |
| Imagemap Area highlight script | 2 | 21:19, 12 February 2012 |
Need to distinguish "red" links from "blue" links (and add external, while you're at it)
One deficiency with imagemap is that there is no way for the user (or a script) to know if the page of this link actually exists. It would be very useful to have this available. IMO, this can be accomplished with zero regressions by adding "external" or "new" classes to this area element (you already create a "$title" object, so it should be very easy to do by adding (around line #229)
if ($external) {
$attrib['class'] = 'external';
} elseif (! $title->exists()) {
$attribs['class'] = 'new';
}
or somesuch (totally untested, but very simple).
Please request such features on bugzilla:
is there a bugzilla topic for this extension? for all extensions? how are extensions managed via bugzilla?
peace.
There is a component ImageMap on bugzilla. Besides, the infobox at Extension:ImageMap has links to open bugs and feature requests related to this extension.
Here is an example of my code. I am using the latest of MW 1.18.1 and the imagemap extension. No matter what I do, use all internal links or external links, I get text wrapping around the graphic. If I put enough
in I can get the page to flow correctly. Is there something wrong with my code or does the graphic automatically become an inline graphic?
Thank you!
Margaret Lee
<imagemap> Image:Graphic.jpg|left|thumb|600px rect 241 7 332 68 [[Identify Legacy Inputs]] rect 320 98 440 158 [http://myserver.company.com/xxx Legacy Inputs] rect 493 94 604 139 [http://myserver.company.com/xxx Design Input Requirements] </imagemap>
Hello, Is it possible open the external link in other windows? target="blank" thank you
See Manual:$wgExternalLinkTarget. Cheers
You may want to look at the 100-line script here: w:he:Mediawiki:Imagemap-Highlight.js, which cause an imageMap that is packed inside an element (e.g. div) with the class imageMapHighlighter, to create a list of all the titles below the image, and the areas theselves become visible ("highlighted") when you float the mouse above the specific area, or above the appropriate list-item. to see a demonstration, look in w:he:Template:מפת תמונה/דוגמאות. (does work on all browsers except IE version 8 and below). peace