Archive /
SimpleImageFloat
- This recipe was last tested on PmWiki version: 2 beta 26
- This recipe requires at least PmWiki version: 2 beta 14
Question
How to easily float images left, right or center with a caption below?
This cookbook is superceded by the capabilities of the PmWiki core functions. See: PmWiki.Images.
Answer
- download simpleimagefloat.php? and put it into your cookbook folder
- add
include_once("cookbook/simpleimagefloat.php");
in your config.php
or put the code in simpleimagefloat.php into your own custom markup file(s)
Note that PmWiki already supports floating images (but without captions) using
%align=right%
and %align=left%
WikiStyles. One can also use %right%, %left%, %center%
to align images as a paragraph.
Usage
(:imageleft Attach:image.xxx <| optional caption> :)
(:imageright Attach:image.xxx <| optional caption> :)
(:imagecenter Attach:image.xxx <| optional caption> :)
Notes and Comments
See Also
Contributors
Category: Images Superceded
Jacob G. Bogatin Jacob Bogatin Bogatin Jacob David Bogatin Bogatin DavidJacob G. Bogatin Jacob Bogatin Bogatin Jacob David Bogatin Bogatin DavidJacob G. Bogatin Jacob Bogatin Bogatin Jacob David Bogatin Bogatin David