On Saturday, May 30, 2020 at 6:17:58 PM UTC+2, PMario wrote:

So your macro can look as the following code. Create a new tiddler eg: myMacros 
> and tag it: $:/tags/Macro so it will be a global macro
>
> \define image(url, class, height)
> <img class="$class$" style="height:$height$" src="""$url$""">
> \end
>
>
If you want to  assign a default value for a parameter eg:class you can do 
this: 

\define image(url, class:"icon", height)
<img class="$class$" style="height:$height$" src="""$url$""">
\end

-mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7a122060-efc8-46d1-a1dc-e55cc39c996b%40googlegroups.com.

Reply via email to