upload
– Insert an image or download link¶
- [upload]¶
The [upload]
memo command inserts the specified upload file into
the memo text, either as an image or as a download link.
It is defined by the uploads plugin.
The minimal form specifies just the primary key of the upload file:
[upload 123]
It will use a default image format and the upload file’s Description as the “caption” (the text that appears when the user hovers with their mouse over the image).
You can specify your own caption by adding it between the primary key and the closing square bracket (“]”):
[upload 123 My caption]
You can specify a format by putting it before the caption, separated with a pipe character (“|”):
[upload 123 wide|My caption]
Available format names are:
thumb
(default) : height 10em and float righttiny
: height 5em and float rightwide
: width 100%solo
: width 90%duo
: width 45%trio
: width 30%
The formats thumb
and tiny
can have an additional option left
, which
must come between format name and caption, separated with a second pipe
character (“|”):
[upload 123 left|thumb|My caption]
If you want to specify a format but no caption, then you must still specify a pipe character:
[upload 123 wide|]