On Saturday, March 13, 2021 at 1:17:46 PM UTC-6 [email protected] wrote:
> Ah, so *single* curly braces, thanks!
>
> I'm not sure I'll ever completely understand when to use which variation.
> :)
>
It's probably simpler than you think, there's just currently nowhere that
summarizes it in an understandable form:
- [[square brackets]] for links / to refer to the name of a tiddler
- <<angle brackets>> to get the value of variables or macros
- {{curly braces}} to get the value of fields or tiddlers
Inside a filter expression, you use just *one* of each. Anywhere else, you
use two.
Macros add slight additional wrinkles to the <<angle bracket syntax>>:
- Inside macros, <<__angle brackets with underscores__>> and $dollar
signs$ both refer to a macro parameter, but the dollar signs use text
substitution (understanding when to use text substitution and when not to
is the only hard part).
- Inside macros, <<angle brackets>> and $(parenthesized dollar signs)$
both refer to a variable, but the dollar signs use text substitution.
And last, {{{ triple curly braces }}} select one or more tiddlers using a
filter, then transclude them – so you can think of it as the “super” or
“extra powerful” version of normal double-brace transclusion, since it has
one extra brace.
--
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/ce3b826a-fbd1-40a8-8a93-bded640ce24an%40googlegroups.com.