Recent changes Random page
GAMING
more wikis
 
Gaming
Entertainment
Hobbies
Sports
Biggest wikis
see all...
See more...

Help:ImageMap

From Wikia Help

Jump to: navigation, search
This extension is enabled by default on Wikia.

Contents

With the ImageMap feature, you can insert an image map into a Wikia page, which allows different parts of an image to link to different pages. This allows you to use images to enhance your site's navigation.

If you already know how to insert images, then you should be able to use this feature to insert an image while linking polygonal, rectangular or circular regions of that image to different pages. The software outputs HTML <map> and <area> tags so that web browsers that understand image maps can use these maps.

How do I create an image map?

The following markup creates the example on this page:

<imagemap>
Image:ImageMap.png|400px|thumb|right|This may look like an ordinary thumbnail ... but try clicking the help logo, the sidebar, or the edit link.

poly 225 172 253 156 327 158 341 172 326 188 246 187 [[Help:Editing|Editing help]]
rect 6 53 272 128 [[Help:Logo]]
circle 107 260 107 [[Help:Sidebar|Sidebar help]]

desc bottom-left
</imagemap>
Editing helpHelp:LogoSidebar help
This may look like an ordinary thumbnail ... but try clicking the help logo, the sidebar, or the edit link.

Inside the <imagemap> ... </imagemap> tags, the first line is the usual code for adding an image, without the square brackets. Lines that start with "#" are ignored, so you can use them as comments.

The lines starting with "poly" or "rect" or "circle" allow you to create links. The coordinates are for the original full size image, not the resized 400px image in this example. To measures coordinates, open the full size image in a program that displays them, such as KDE's KolourPaint.

Important note: Any "poly" lines must come before any "rect" or "circle" lines, or the imagemap will not work correctly.


See also

Rate this article:
Share this article: