Mohammad, I will try and reproduce this today and look into it because I am also following the lead to use macro definitions as templates for text fields. This would allow creating complex wiki text containing values passed to it via variables.
\define tt() Welcome $(username)$<br> <h3>Your Outstanding tasks are</h3> ... \end Your observation could affect this code pattern. Regards Tony On Friday, April 3, 2020 at 12:15:24 AM UTC+11, Mohammad wrote: > > Tony, > I need to call macro like $(xx)$ i.e. transcluded variable! > But when I use \import pragma inside a macro, it like I define one macro > inside another macro not OUTSIDE it and so I cannot use $(xx)$ > > --Mohammad > > On Thursday, April 2, 2020 at 3:50:48 PM UTC+4:30, TonyM wrote: >> >> Mohammad >> >> I think what Eric's example says is importing a macro defines it in the >> tiddler its imported to but you need to call it '<<macro>>` to get it to >> access parameters or variables like $(var)$ but when you import it you can >> import one that calls another. >> >> Otherwise there something subtle in the words you use to summarise Eric's >> work that sounds slightly incorrect. >> >> 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/830c05d3-9284-4cae-8b4f-03a3c99b5a1a%40googlegroups.com.

