Extension talk:ImageMap

From MediaWiki.org
Jump to: navigation, search
Start a new discussion

Contents

Thread titleRepliesLast modified
Need to distinguish "red" links from "blue" links (and add external, while you're at it)415:02, 23 April 2012
Text Wrapping118:07, 22 April 2012
External link in other windows117:17, 9 April 2012
Imagemap Area highlight script221: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).

קיפודנחש 06:54, 11 January 2012 (UTC)13:25, 21 January 2012

Please request such features on bugzilla:

Ciencia Al Poder (talk)18:12, 22 April 2012

is there a bugzilla topic for this extension? for all extensions? how are extensions managed via bugzilla?

peace.

קיפודנחש (talk)13:16, 23 April 2012

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.

Helder13:26, 23 April 2012
 
 
 

Text Wrapping

Edited by another user.
Last edit: 20:50, 29 March 2012

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>
144.15.255.22720:48, 29 March 2012

Note that you are using "left|thumb" on the image parameters. Try to remove them, or change "left" for "center" or "none" to see if that helps.

Ciencia Al Poder (talk)18:07, 22 April 2012
 

External link in other windows

Hello, Is it possible open the external link in other windows? target="blank" thank you

82.230.185.22710:07, 9 April 2012

Imagemap Area highlight script

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

- קיפודנח1 06:54January 2012 (UTC)13:27, 21 January 2012

Wow! that's a very useful script! Thanks for sharing ;)

Ciencia Al Poder17:03, 12 February 2012

if you use it on any other wiki (wikimedia wiki or other), i will appreciate it if you'll let me know. peace.

קיפודנחש21:16, 12 February 2012
 
 
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox