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
| Name | Optional | Allowed values | Default values | Description |
|---|---|---|---|---|
| image | required | any 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. | |
| width | yes | pixels or % | 100% | Image width |
| height | yes | pixels or % | 100% | Image height |
| align | yes | top, bottom, middle, left, right | Alignment of image | |
| halign | yes | floatleft, floatright, left, center, right | Alignment of image (using style sheet) | |
| document (*) | yes | document name within the wiki | current document | Document that contains the image attachment |
| alt | yes | text | Short image description | |
| link | yes | Empty (just end with =) | Turns the image into a download link for the image | |
| fromIncludingDoc (*) | yes | Empty (just end with =) | Fetch the image from the parent document that included the current document. This is useful for templates, for example. |
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

on 2008/04/09 10:52