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

R.Bauer rb.proj at gmail.com
Wed Apr 16 06:39:19 EDT 2008


Hi

I do use in 1.6

{{attachment:image.png|text|align=right}}

http://moinmo.in/MacroMarket has lots of examples how to write a macro

e.g.
http://moinmo.in/MacroMarket/HelloWorld-1.6

cheers
Reimar


Preben Randhol schrieb:
> 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
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone





More information about the Moin-user mailing list