From 5d53fab853def09bcc2c7455cabdbc9a002746e2 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 9 Sep 2008 15:20:06 -0400 Subject: img: Support sizes like 200x. Closes: #475149 --- doc/plugins/img.mdwn | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc/plugins') 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` -- cgit v1.2.3