[pmwiki-users] images as links with caption

Tegan Dowling tmdowling at gmail.com
Wed Aug 15 06:47:42 CDT 2007


On 8/15/07, jdd <jdd at dodin.org> wrote:
> Hello :-)
> I can use images as links
>
> http://claire.dodin.net/data/?n=Main.VideoDemo
>
> but I don't find the syntax to have a caption under the image (right
> now I add a texte with the same link after the image, it works but
> it's not so cute :-)

Hi!  You almost have it, already. Change

%width=100px%[[Main.VideoDemo-3|Attach:extube.jpg"love"]]
[[Main.VideoDemo-3|'''Extube''']]

to

%width=100px%[[Main.VideoDemo-3|Attach:extube.jpg"love"]] |
[[Main.VideoDemo-3|'''Extube''']]%%

OR to

%width=100px text-align=center%[[Main.VideoDemo-3|Attach:extube.jpg"love"]]
| [[Main.VideoDemo-3|'''Extube''']]%%


All that changes is
1) adding a pipe (the "|" symbol) between the image-link and the
caption-text-link and
2) adding a closing pair of %% at the end (and even this may not
really be necessary), and
3) optionally, adding "text-align=center" in front, along with the width.

See if that works -- the site is looking good!

Tegan



More information about the pmwiki-users mailing list