On Wednesday, November 20, 2019 at 12:00:09 AM UTC-8, Littleagle Thoronaug
wrote:
>
> Maybe I didn't explained properly. Sorry for that.
> In the example you send me, I need the call to the macro receives the
> content of a field as parameter. Like this:
>
> <<removetag text {{myTiddler!!caption}}>>
>
To invoke a macro that uses the content of a field as a parameter value,
you can use the <$macrocall> *widget* syntax rather than the <<macroname>>
macro syntax.
For example, if you have a macro named "myMacro" that has two parameters,
param1 and param2, and you want to pass a field value as param2, you would
write:
<<$macrocall name="myMacro" param1="literal text" param2={{!!fieldname}} />
hope this helps,
-e
Eric Shulman
TiddlyTools: "Small Tools for Big Ideas!"
(tm) http://tiddlytools.github.io/ (TWClassic)
InsideTiddlyWiki: The Missing
Manuals http://insidetiddlywiki.tiddlyspot.com/ (TW5)
--
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/4920ad44-1577-4ccf-a3db-6afb9cac4093%40googlegroups.com.