aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/img.mdwn
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-09-09 15:20:06 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-09-09 15:20:06 -0400
commit5d53fab853def09bcc2c7455cabdbc9a002746e2 (patch)
tree3583b9d1985721501fd7018fe72c7b4652acbbd8 /doc/plugins/img.mdwn
parent7a680431edd837809cd62666ead08944ddc5658c (diff)
downloadikiwiki-5d53fab853def09bcc2c7455cabdbc9a002746e2.tar
ikiwiki-5d53fab853def09bcc2c7455cabdbc9a002746e2.tar.gz
img: Support sizes like 200x. Closes: #475149
Diffstat (limited to 'doc/plugins/img.mdwn')
-rw-r--r--doc/plugins/img.mdwn4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/plugins/img.mdwn b/doc/plugins/img.mdwn
index 898609a29..6da80b7e7 100644
--- a/doc/plugins/img.mdwn
+++ b/doc/plugins/img.mdwn
@@ -21,7 +21,9 @@ the file pointed to by a [[ikiwiki/WikiLink]].
The `size` parameter is optional, defaulting to full size. Note that the
original image's aspect ratio is always preserved, even if this means
-making the image smaller than the specified size.
+making the image smaller than the specified size. You can also specify only
+the width or the height, and the other value will be calculated based on
+it: "200x", "x200".
You can also pass `alt`, `title`, `class` and `id` parameters. These are
passed through unchanged to the html img tag. If you include a `caption`