Image Macro
Adds an image to the page. The image must be added as an attachment. The location/page of the image is configurable (by document and fromIncludingDoc). Can also make the image to link to the image file.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:gamesigns.jpg|height=128|width=128}
{image:gamesigns.jpg|height=256|width=128|halign=floatleft} This is a really nice picture.
{image:gamesigns.jpg|height=10%|width=10%|alt=Street Corner|link=}
{image:gamesigns.jpg|height=10%|width=10%|alt=Street Corner|link=}
{image:radeox_powered_small.png|document=Main.Supporters} This image comes from Main.Supporters documentResult

This image comes from Main.Supporters document
Version 5.1 last modified by VincentMassol on 19/06/2008 at 22:05
Comments: 0