Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | 30-Apr-2025 | - | ||||
COPYING | H A D | 20-Jul-2008 | 17.6 KiB | 341 | 281 | |
README | H A D | 04-Nov-2015 | 2.3 KiB | 52 | 40 | |
all.css | H A D | 17-Apr-2013 | 244 | 20 | 16 | |
plugin.info.txt | H A D | 04-Nov-2015 | 201 | 9 | 7 | |
syntax.php | H A D | 04-Nov-2015 | 11.7 KiB | 359 | 323 |
README
1 ====== Image Map Plugin ====== 2 3 An image map is a graphical object where portions of the image act 4 as links. With this plugin, you can not only create an image map, 5 but also an alternate representation that can be used by non-visual 6 browsers. 7 8 ===== Syntax ===== 9 10 {{map>imagemap.png|Alternate Text}} 11 Type normal wiki markup here. Links will be automatically 12 detected and used in the image map. 13 * [[wikipage|Description @ 10,12,40,30]] 14 * [[wp>image_map|An interwiki link @ 110,50,40]] 15 * [[http://w3.org/|{{w3c-logo.png|Even image links work @10,115,80,95,150,115,80,135}}]] 16 * {{w3c-logo.png|Direct link to a media file @155,90,244,142}} 17 {{<map}} 18 19 This example will display the image ''media_link''. (if the browser is 20 capable of it.) There will be three links in the image: 21 * A link to the wiki page ''wikipage'' in a rectangle. 22 * An interwiki link in a circle. 23 * An external link in a polygon. The link is defined with an image, 24 so the alternate text of the image is used for the map. 25 * A link to a media file. 26 27 For a link to be used in the map, it must define the shape as part of the 28 link text. This is done with the ''@'' character followed by a list of 29 coordinates. The number of coordinates determines the shape of the link. 30 ^ # ^ shape ^ coordinates | 31 | 3 | circle | center-x,center-y,radius | 32 | 4 | rectangle | left,top,right,bottom | 33 | 6+ | polygon | x1,y1,x2,y2,x3,y3... | 34 35 If the label does not contain a suitable shape description, then that link 36 will be ignored for the map. The coordinates will be removed from the link 37 tag, in both the image map and the alternate markup. 38 39 The wiki markup inside the map block will be generated by not displayed in 40 most browsers. If using an image map is not desirable, however, the browser 41 can hide the image and display the alternate markup. The plugin is already 42 configured for the ''braille'', ''aural'', and ''tty'' CSS media types. 43 44 ===== Installation ===== 45 46 * {{http://whoopdedo.org/doku-plugins/imagemap.zip|Image Map Plugin}} 47 48 Download using the plugin manager, or manually and unzip in your ''plugins'' 49 folder. After installing, you must refresh the style cache. Go to the 50 configuration editor and press "save" so DokuWiki will rebuild the CSS. 51 52