This macro is bundled with all the XWiki products by default.
Macro developed by the XWiki Development Team.
This macro cannot currently be downloaded separately.

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

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: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 document

Result

gamesigns.jpg

gamesigns.jpg
This is a really nice picture.

Street Corner

radeox_powered_small.png This image comes from Main.Supporters document

Version 5.1 last modified by VincentMassol on 19/06/2008 at 22:05

Comments 0

No comments for this document

Attachments 1

Image
gamesigns.jpg 1.2
PostedBy: melvng on 09/12/2007 (83kb )

Creator: melvng on 2007/02/05 22:12
This wiki is licensed under a Creative Commons license
1.4.1.10194