Hello,
I have a question about creating a macro.
I have to make a lot of buttons in my wiki and I have this code for a button for creating a new tiddler; (It works fine.)
`<div style="float:left;"><$button><$action-sendmessage $message="tm-new-tiddler" title=<<now format:"TITLE-TIDDLER-HERE">> tags="TAG-NAME-HERE" tags show="TAG-NAME-HERE" text="TEXT-HERE" comment="FIELD-COMMENT-HERE"/><span style="color:blue;">''BUTTON-NAME-HERE''</span></$button></div>`
How do I convert the above code into a macro?
This is my attempt, but I can't get it done:
`\define NEW-TIDDLER(now format:"XXX"
tags:"XXX" tags show:"XXX" text:"XXX" comment:"XXX")
<div style="float:left;"><$button><$action-sendmessage $message="tm-new-tiddler" title=<<$now format:$>> $tags$ $tags show$ $text$ $comment$/><span style="color:blue;">''BUTTON-NAME-HERE''</span></$button></div>
\end
<<NEW-TIDDLER
now format:"XXX"
tags:"XXX"
tags show:"XXX"
text:"XXX"
comment:"XXX"
">>`
Thank you,