img: Pass the align parameter through to the generated img tag.

master
Joey Hess 2009-07-11 00:33:19 -04:00
parent 0c6a47e9e4
commit b1b7a2100f
3 changed files with 5 additions and 3 deletions

View File

@ -123,6 +123,7 @@ sub preprocess (@) {
'" height="'.$im->Get("height").'"'.
(exists $params{alt} ? ' alt="'.$params{alt}.'"' : '').
(exists $params{title} ? ' title="'.$params{title}.'"' : '').
(exists $params{align} ? ' align="'.$params{align}.'"' : '').
(exists $params{class} ? ' class="'.$params{class}.'"' : '').
(exists $params{id} ? ' id="'.$params{id}.'"' : '').
' />';

1
debian/changelog vendored
View File

@ -1,6 +1,7 @@
ikiwiki (3.1416) UNRELEASED; urgency=low
* svn: Fix rcs_rename to properly scope call to dirname.
* img: Pass the align parameter through to the generated img tag.
-- Joey Hess <joeyh@debian.org> Wed, 08 Jul 2009 13:10:38 -0400

View File

@ -18,9 +18,9 @@ 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`
parameter, the caption will be displayed centered beneath the image.
You can also pass `alt`, `title`, `class`, `align` and `id` parameters.
These are passed through unchanged to the html img tag. If you include a
`caption` parameter, the caption will be displayed centered beneath the image.
The `link` parameter is used to control whether the scaled down image links
to the full size version. By default it does; set "link=somepage" to link