## Please edit system and help pages ONLY in the moinmaster wiki! For more
## information, please see MoinMaster:MoinPagesEditorGroup.
##master-page:Unknown-Page
##master-date:Unknown-Date
#acl MoinPagesEditorGroup:read,write,delete,revert All:read
#format wiki
#language en

<<Navigation(siblings)>>
<<BR>><<BR>>
<<TableOfContents>>

== 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. 

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

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

=== Keyword Parameters ===
{{{
width: rendered image width (optional)
height: rendered image height (optional)
alt: alt text
}}}

=== 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)>>
}}} 

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

<<ImageLink(http://static.moinmo.in/logos/moindude.png,FrontPage,width=200,alt=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}}]]
}}}

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