[FrontPage] [TitleIndex] [WordIndex



1. ImageLink

This macro is used to make a link that displays an image (can be given as either attachment or URL) and links to either an URL or a wiki page or another attachment. Optionally the image could be mapped to a different width and height. If no target is given the link will point to the image itself.

1.1. Syntax

<<ImageLink(image,target[,width=width[,height=height]][,alt=alttag])>>

1.2. Parameters

image: image attachment file name or the URL of an image
target: link target wiki page or URL (optional) or attachment: or inline: 

1.3. Keyword Parameters

width: rendered image width (optional)
height: rendered image height (optional)
alt: alt text

1.4. Example

<<ImageLink(München.png,München,height=100)>>
<<ImageLink(Images/München.png,München,height=100)>>
<<ImageLink(http://webcam.portalmuc.de/images/webcam/webcam_marienplatz.jpg,München Marienplatz)>>
<<ImageLink(plot.png,width=200)>>
<<ImageLink(plot.png,height=200)>>
<<ImageLink(plot.png)>>
<<ImageLink(http://webcam.portalmuc.de/images/webcam/webcam_marienplatz.jpg,http://www.muenchen.de,width=150)>>
<<ImageLink(münchen.png,http://www.muenchen.de,width=50)>>
<<ImageLink(http://webcam.portalmuc.de/images/webcam/webcam_marienplatz.jpg)>>
<<ImageLink(example.png,alt=whateveryouwant(üöä))>>
<<ImageLink(small.png,attachment:big.png)>>
<<ImageLink(exmaple.png,inline:example.py)>>

1.5. Display

<<ImageLink(http://static.moinmo.in/logos/moindude.png,FrontPage,width=200,alt=Welcome)>>

Welcome

(!) Since moin 1.6 you can also use standard link/transclusion markup for this:

[[FrontPage|{{http://static.moinmo.in/logos/moindude.png|Welcome|width=200}}]]

Welcome


2013-09-28 10:34