The ImagePlugin embeds images in pages with flexible layout and display options. See Plugins for a complete list of available plugins.
[{Image src='/images/sample-mountains.jpg' caption='Mountain Vista' width='300'}] renders as:
| Parameter | Description | Example |
|---|---|---|
src | Image source: absolute path, URL, filename, or media://filename for media library items | src='/images/sample-mountains.jpg' |
| Parameter | Description | Example | Default |
|---|---|---|---|
caption | Image caption (also used as alt if alt not provided) | caption='Mountain Vista' | None |
alt | Alt text for accessibility | alt='Snow-capped peaks' | Uses caption, or "Uploaded image" |
width | Image width | width='300' or width='50%' | Original size |
height | Image height | height='200' | Original size |
align | Horizontal alignment | align='left', align='right', align='center' | None |
display | Display mode (see below) | display='block', display='float', display='inline', display='full' | float |
border | Border width in pixels | border='2' | None |
style | Custom inline CSS | style='border-radius: 10px;' | None |
class | Custom CSS class | class='thumbnail' | wiki-image |
title | Tooltip text | title='Click to enlarge' | None |
link | URL to link the image to | link='https://example.com' | None |
The display parameter controls how the image interacts with surrounding text.
display='float' (Default)Allows text to wrap around the image. Best used with align='left' or align='right'.
[{Image src='/images/sample-forest.jpg' align='left' display='float' caption='Forest Trail' width='280'}] renders as:
The image floats to the specified side and text flows around it — good for inline illustrations in articles.
display='block'Image in its own block, no text wrapping. Text stays above and below.
[{Image src='/images/sample-ocean.jpg' align='center' display='block' caption='Ocean Horizon' width='400'}] renders as:
display='inline'Image flows inline with text like a word in a sentence — useful for icons.
[Inline image: <span data-jspwiki-placeholder="c8e0243a-36"></span> appears here in the text.] renders as:
Inline image:
appears here in the text.
display='full'Full-width image spanning the entire container width. align is ignored.
[{Image src='/images/sample-mountains.jpg' display='full' caption='Full-width mountain banner'}] renders as:
| Align | Description | Best Used With |
|---|---|---|
left | Aligns image to the left | display='float' or display='block' |
right | Aligns image to the right | display='float' or display='block' |
center | Centers the image | display='block' |
[{Image src='/images/sample-sunset.jpg' width='350' border='2' style='border-radius: 10px;' caption='Golden Sunset'}] renders as:
[{Image src='/images/sample-forest.jpg' width='300' caption='Click to learn more' link='https://example.com'}] renders as:
[{Image src='/images/sample-ocean.jpg' align='right' display='float' width='260' caption='Ocean Horizon'}] renders as:
src accepts three forms:
| Form | Example | Behaviour |
|---|---|---|
| Absolute path | src='/images/sample-mountains.jpg' | Used as-is |
| Filename | src='photo.jpg' | Resolved via Attachments — page-local first, then global |
media:// URI | src='media://IMG_1234.jpg' | Resolved via the Media library by filename — no upload needed |
When you upload an image through the Attachments system, use its filename directly — the system resolves it automatically:
[{Image src='photo.jpg' caption='Uploaded image'}]
If the Media feature is enabled, reference library photos without uploading them:
[{Image src='media://IMG_1234.jpg' caption='Family Trip' align='center'}]
alt, the plugin uses caption automaticallyalt=''src path is correct and the file existsmedia:// paths, confirm the filename matches exactlydisplay='float' explicitly (it is the default but stating it makes intent clear)align='left' or align='right'Use width='300' for a fixed pixel size, or width='50%' for relative sizing. Use display='full' for full container width.
For uploading files, see Attachments. To embed files (PDFs, documents, and images), see Using AttachPlugin. To browse and embed photos from the media library, see Media.