Hi Mat > On 7 Aug 2018, at 12:26, Mat <[email protected]> wrote: > > > Your code does work but what on earth is this?????? > > That is just totally new to me. What is it called? Are there any docs on it? > Actually, what does it do? I wouldn't blink if it said
The feature was new in 5.1.16: https://tiddlywiki.com/#Macro%20Definitions%20in%20WikiText > Parameters as Variables > > The parameters to a wikitext macro are also available as special variables > named as the parameter name wrapped in double underscores. For example, the > example above could also be expressed as: > > \define sayhi(name:"Bugs Bunny") Hi, I'm <$text text=<<__name__>>/>. > Accessing parameters as variables only works in macros that are wikified and > not, for example, when a macro is used as an attribute value. The advantage > of the technique is that it avoids the parameter value being substituted into > the macro as a literal string, which in turn can help avoid issues with > parameters that contain quotes. > Best wishes Jeremy -- 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 post to this group, send email to [email protected]. 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/478F742D-8341-4A8B-9D43-02521665DE59%40gmail.com. For more options, visit https://groups.google.com/d/optout.

