PS As Posted elsewhere this is the method I use for default parameters
I often use a variation of this when making my own macros to allow it to use current tiddler or another if provided. Basically it provides a default of the current tiddler *However you could use this for any input parameter.* \define mymacro(tiddlername) <$set name=selected-tiddler value="$tiddlername$" emptyValue=<< currentTiddler>> > Action: <<selected-tiddler>> </$set> \end <<mymacro>> <<mymacro "another tiddler">> This also illustrates another design principal, I almost always write my macros to operate on the current tiddler such that if placed in wikitext a list without a variable set the macros operate on the changing current tiddler, or it can be given a specific tiddler. If I use a variable in the list it uses the currentTiddler and the list will not change the currentTiddler value Regards Tony On Monday, April 1, 2019 at 9:40:08 PM UTC+11, TonyM wrote: > > S s > > Also in my request to format variables in the view widget, Jeremy points > out plans to introduce a format operator into filters. This will allow > variables passed into a filter to return a value in the set widget filter > or triple curly braces method after further transformation. > > This is clearly indicating the further development of filters such that we > can do more with variables including maths. > > Regards > Tony > > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c6f43787-8c2c-4158-8efd-c0e0368976d3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.