[Moin-user] How do one make a macro?

Preben Randhol randhol+moinmoin at pvv.org
Sat Apr 12 14:59:44 EDT 2008


Hi

Can somebody point me to documentation that explains how one make a
macro?

The reason for asking is that I want to make an easy to use image
aligner. With moinmoin 1.6 I have to do:

{{{#!html
<div style="float: right;">
}}}
{{attachment:front.png}}
{{{#!html
<br clear=both>
Caption text
</div>
<br clear=both>
}}}

just to right align an image and put a caption below it. It would be
much more nice if one could simply do something like:

<<Image attachment:front.png align=right caption="Caption text">>

Btw I don't get <<BR>> to work if one has used a {{{#!html before it.


Thanks in advance

Preben




More information about the Moin-user mailing list