Thanks Scott. That is the sort of guidance i was after. On Wednesday, March 23, 2016 at 5:25:56 PM UTC+13, Scott Simmons (Secret-HQ) wrote: > > This may be a good place to start: > > http://tiddlywiki.com/#Macros > > In general, TW5 macros aren't "programmatic" so much as they're shortcuts. > For example, you could put this at the beginning of a tiddler: > > \define mymacro() > This here is my macro. > \end > > And then write this anywhere in the tiddler: > > <<mymacro>> > > To display the text: > > This here is my macro. > > By putting a macro in its own tiddler and tagging that tiddler > *$:/tags/Macro*, you can write a macro call to it anywhere in your > TiddlyWiki (not just in the tiddler where it's defined). > > — > > You can also pass variables into macros when you call them, but that's > about the most "programmatic" thing they do. > > For example: > > /define mysecondmacro(adjective feeling) > This is my $adjective$ macro, and it makes me feel $feeling$. > /end > > If you refer to this macro like so: > > <<mysecondmacro "other" "like a macro-making champion">> > > Or like so: > > <<mysecondmacro adjective:"other" feeling:"like a macro-making champion">> > > ... you'll see this text displayed: > > This is my other macro, and it makes me feel like a macro-making champion. > > — > > At least, that's the basic gist of it. ;) >
-- 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/7623d440-7c6e-4089-ac09-e0b1aa368346%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

