diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-07-11 00:33:19 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-07-11 00:33:19 -0400 |
commit | b1b7a2100f6b32ef6bf75e9992e10ed7d28f8525 (patch) | |
tree | b733199f734d1fee97eb07346d81e2760178c545 | |
parent | 0c6a47e9e4c6a5508868b730bed0ac2d0c358ae4 (diff) | |
download | ikiwiki-b1b7a2100f6b32ef6bf75e9992e10ed7d28f8525.tar ikiwiki-b1b7a2100f6b32ef6bf75e9992e10ed7d28f8525.tar.gz |
img: Pass the align parameter through to the generated img tag.
-rw-r--r-- | IkiWiki/Plugin/img.pm | 1 | ||||
-rw-r--r-- | debian/changelog | 1 | ||||
-rw-r--r-- | doc/ikiwiki/directive/img.mdwn | 6 |
3 files changed, 5 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm index a186abdfc..78e378917 100644 --- a/IkiWiki/Plugin/img.pm +++ b/IkiWiki/Plugin/img.pm @@ -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}.'"' : ''). ' />'; diff --git a/debian/changelog b/debian/changelog index e83e570d3..5001031df 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 diff --git a/doc/ikiwiki/directive/img.mdwn b/doc/ikiwiki/directive/img.mdwn index 1d1f29bea..66efd008e 100644 --- a/doc/ikiwiki/directive/img.mdwn +++ b/doc/ikiwiki/directive/img.mdwn @@ -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 |