title:mymacro
tags:$:/tags/Macro
text:
\define family(person) <$link to={{!!$person$}}>{{!!$person$}}</$link>then whenever you want a link to appear, write e.g <<family father>> If you like TW, then please <http://tiddlywiki.com/#HelpingTiddlyWiki>... <:-) On Friday, September 15, 2017 at 11:12:16 PM UTC+2, Jim wrote: > > Hello. I have just starting to play around with TW and am working on > entering historical family information. I am entering people using a > one-person-per tiddler scheme as that seemed like a logical choice. Each > person tiddler has fields which link to their family members - mother, > father, and siblings so far. > > My 1st simple question is about referencing fields. Can this line be > simplified, or written in a more idiomatic way? > > Son of <$link to={{!!father}} > {{!!father}} </$link> & <$link > to={{!!mother}} > {{!!mother}} </$link> > > The "father" field contains something like: > First Middle Surname > > > > I have a bit of confusion about in which circumstances to use each of the > various braces and brackets used in macros, widgets, filters, etc. I find > it all non-intuitive and I am constantly referring to the reference > documentation, which interrupts my train of thought frequently. Hopefully > it'll make sense soon. > > > Thanks. > > > -- 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/6b5b1a59-3b40-48c5-99d5-2ca351f2a014%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

