Hilfe:ImageMap
Die Erweiterung ImageMap ermöglicht das Anlegen von verlinkbaren Image Map im Wiki.
Syntax Beispiel
<imagemap> Image:Foo.jpg|200px|picture of a foo poly 131 45 213 41 210 110 127 109 [[Display]] poly 104 126 105 171 269 162 267 124 [[Keyboard]] rect 15 95 94 176 [[Foo type A]] # A comment, this line is ignored circle 57 57 20 [[Foo type B]] desc bottom-left </imagemap>
Erzeugt die folgende Ausgabe:
Auf diese Weise können Bilder mit Hinweistexten und Links zu Artikeln versehen werden.
Beschreibung der Syntax
Der Inhalt eines <imagemap> Tags besteht aus leeren Zeilen, Kommentaren (beginnen mit einem #) und logischen Zeilen. Die erste logische Zeile spezifiziert wie das Bild dargestellt werden soll. Dies erfolgt im selben Format wie bei einem normalen MediaWiki Image Link jedoch ohne die einschließenden Klammern [[ und ]].
Die folgenden Zeilen beinhalten Tokens die durch Leerzeichen getrennt werden. Die Funktion jeder Zeile wird festgelegt durch den ersten Token in der Zeile. Alle Koordinatenangaben beziehen sich auf das Bild in seiner maximalen Größe und nicht auf die sichtbare Größe des Bildes!
- desc
- Specifies the location of the image description link. May be either top-right, bottom-right, bottom-left, top-left or none. This puts a blue "i" icon in the specified corner, linking to the image description page. The default is bottom-right. To hide the description link, set it to none. Possible values: top-right, bottom-right, bottom-left, top-left, none
- rect
- A rectangle. The parameters are the coordinates of the top-left and bottom-right corners, followed by a title to link to in square brackets.
- circle
- A circle. The first two parameters are the coordinates of the center, the third is the radius. The coordinates are followed by a link in square brackets.
- poly
- A polygon. The coordinates of the vertices are given, followed by a link in square brackets.
Polygons must be defined before any other form!
- default
- This gives the default link, where no other regions are specified.
All coordinates are specified relative to the source image. The image can be scaled using thumbnail syntax, in which case the image map coordinates will be automatically scaled as well.
All links are given in either the form [[Page title]] or [[Page title|description]]. In the latter case, the part after the pipe "|" becomes the title attribute of the link -- in most browsers, it will pop up as a tooltip when the user hovers over it. If no explicit link description is given, the page title will be used.
Areas which overlap give precedence to the first link listed.