Want to upload that nice, pretty, awesome photo you took? Just add the following line to a page:

[[Image(image_name.jpg)]]

Then click preview or save the page and click on the link that is generated.

There are various parameters you can use with this image "macro". You can make the image a thumbnail, send it to the left or to the right (they cannot be centered), give it a caption, or remove its border. The possible parameters are:

[[Image(image_name.jpg, thumbnail, noborder, left/right, "Caption including ["Wiki" links]")]]

Plain Image

[[Image(image.jpg)]] will display the image you upload.

Thumbnail and Sizing

To create a default sized thumbnail add the thumbnail option [[Image(image.jpg, thumbnail)]]

To create a specific sized thumbnail add the size in pixels as an option representing the longer orientation of the image [[Image(image.jpg, 279, thumbnail)]]

Captions

A caption and default-size thumbnail: [[Image(image.jpg, thumbnail, "Strings")]]

Strings

Alignment on Page

A caption, thumbnail, aligned right: [[Image(image.jpg, right, thumbnail, "Strings")]]

Strings

A caption, thumbnail, non-default size, aligned left: [[Image(image.jpg, left, 320, thumbnail, "Strings")]]

Strings

Multiple Image and separators

You can have a series of images or thumbnails just by doing the image macro over and over. Here's two in a row:

Strings Strings

However, in some cases this ends up looking strange. In particular, if you're adding a bunch of images as thumbnails sometimes you don't want the text or the next image to 'float' over to the right or left side. Just use == ==, which is the empty heading, to force the thumbnails to "reset." Normal headings have this same effect, but it may be difficult or undesirable to come up with a name for your heading ;)

Removing the border

You can remove the border of an image by adding the noborder option. For instance, [[Image(image.jpg, thumbnail, noborder)]]:

Notes

You can currently place a single image on a page once. In this example we used different filenames to allow us to put the same image on the page over and over. You usually won't need to put the same image on a page more than once.

Comments


2009-05-14 22:54:58   Ah very helpful, this is what I needed —JohnNash