Hi Mohammad > On 24 Nov 2018, at 14:13, Mohammad <[email protected]> wrote: > > I want to know if the below syntax and usages of <<__param__>> is valid in TW. > > \define mymac(param) > <$reveal type="nomatch" default="Empty" text=<<__param__>> > > <div class="card">$param$</div> > </$reveal> > </div> > \end > > > Actually my question is the valid syntax for using <<__param__>>. > > How about this? > > \define mymac(param) > <$reveal type="nomatch" default="Empty" text=<<__param__>> > > <div class="card"><<__param__>> </div> > </$reveal> > </div> > \end >
All your examples are valid. The key to understanding the double underscore syntax is to remember that it turns a parameter name into a variable name. Thus __param__ is valid anywhere that a variable name is valid. Best wishes Jeremy. > > Mohammad > > -- > 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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/tiddlywiki > <https://groups.google.com/group/tiddlywiki>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/fde75388-d764-4cfe-b5d4-8afe522e3679%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/fde75388-d764-4cfe-b5d4-8afe522e3679%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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/119729D8-AFCF-46F4-BA91-0126A8FF7B4F%40gmail.com. For more options, visit https://groups.google.com/d/optout.

