Image Macro

Adds an image to the page. The image must be added as an attachment of the page.

Usage

{image:<image>|width=<width>|height=<height>|align=<align>|halign=<halign>|document=<document>|alt=<alt>|link=|fromIncludingDoc=}

Parameters definition

NameOptionalAllowed valuesDefault valuesDescription
imagerequiredany image attachment name or an absolute URL to the image Name of the image attachment file. An absolute URL, starting with http://, may also be used.
widthyespixels or %100%Image width
heightyespixels or %100%Image height
alignyestop, bottom, middle, left, right Alignment of image
halignyesfloatleft, floatright, left, center, right Alignment of image (using style sheet)
document (*)yesdocument name within the wikicurrent documentDocument that contains the image attachment
altyestext Short image description
linkyesEmpty
(just end with =)
 Turns the image into a download link for the image
fromIncludingDoc (*)yesEmpty
(just end with =)
 Fetch the image from the parent document that included the current document. This is useful for templates, for example.

(*) Use either document or fromIncludingDoc. Parameter fromIncludingDoc is ignored if both are specified.

Example

{image:watershed.gif|width=50%}
{image:watershed.gif|height=256|width=128|halign=floatleft} This is a really nice picture.
{image:watershed.gif|height=10%|width=10%|alt=Street Corner|link=}
{image:watershed.gif|height=10%|width=10%|alt=Street Corner|link=}

Result

watershed.gif

watershed.gif
This is a really nice picture.

Street Corner


Creator: Administrator on 2007/12/27 21:15
Copyright © 2008 The Regents of the University of California. All Rights Reserved.
1.8-rc-2.17297