I have created a new Imagemap extension:
http://www.mediawiki.org/wiki/Extension:ImageMap_%28Alternate%29
This implementation combines the two existing versions: * Shannon McNaught's http://meta.wikimedia.org/wiki/ImageMap_Extension, which uses image map information supplied in a text file. * Tim Starling's http://www.mediawiki.org/wiki/Extension:ImageMap, which includes image map information inline between the <imagemap> tags.
The new implementation is a "drop-in" replacement for either of the two previous implementations. There is a settings file that allows a wiki admin to enable either or both of the input formats.
My implementation further extends the prior extensions in the following ways:
* Compared to McNaught's * works with both single wikis and Wiki Families that use a common or pool resource wiki for images and files. * parses the input file and screens out any HTML that is not specific to image maps. This reduces the risk of someone slipping malicious HTML into the wiki via a file upload.
* Compared to Starling's * In addition to wiki page links, this version allows URL links to external web sites. * The area definitions can consist of a single default line without any dummy shape lines. This allows the entire image to be associated with a single link. * The order of the parameters in not important - poly shapes do not have to come first. * The parameters are not case sensitive. Poly, POLY, poly, PoLy etc are all equivalent.
In addition, I have provided a conversion utility that allows one to take any HTML file containing image map definitions and output the text that is compatible with the inline image map definitions.
This utility can be used to migrate file-based image map extension files to the inline format. It can also take the output of an HTML image map generator utility and convert it to inline format. This provides an alternative to the single online image map generator that outputs inline format statements.
Mike