ImageLink

PURPOSE

This macro is used to set a link as WikiName for an attached image. Optional the size of the image could be adjusted.

Download & Release Notes

Download

Release Version

Moin Version

Release Notes

ImageLink-1.2.3-3.py

1.2.3

ImageLink-1.2.3-2.py

1.2.3

ImageLink-1.2.3.py

1.2.3

CALLING SEQUENCE

[[ImageLink(attachment,WikiName,[width,[height]])]]

INPUTS

attachment:image name of attachment
WikiName: the page to set the link to

OPTIONAL INPUTS

width: width of the embedded image
height: height of the embedded image

EXAMPLE

[[ImageLink(plot.gif,FrontPage,20,20)]]
[[ImageLink(plot.gif,FrontPage)]]

PROCEDURE

This routine requires attachment enabled. If the attachment isn't downloaded at all the attachment line is shown.

It must be in "MoinMoin/macro"

MODIFICATION HISTORY

@copyright: 2004 by Reimar Bauer (R.Bauer@fz-juelich.de) @license: GNU GPL, see COPYING for details.

MarcinZalewski: 2004-09-18
Some things that were causing problems on my wiki are changed (wikiutil.link_tag and macro.formatter.pagelink implemented)

MarcinZalewski: 2004-09-20
Added title attribute to the created link. One could generalize that to add arbitrary attributes.

One could also add class attributes to <a> and/or <img> elements. I do not see the need for such modifications. If however this is to be done in the future one would need to add 'html_class' key to the kw dictionary with a corresponding value to add class to <img> element. To add class to <a> element one needs to add 'css_class' key with a corresponding value to the dictionary passed to pagelink call.

Discussion

MoinMoin: MacroMarket/ImageLink12 (last edited 2008-01-31 08:24:15 by ReimarBauer)