Bob,
The Triple braces is documented but not very well. I will locate it if I
can, but basically it can contain any filter who result is used where it is
defined.
When being used for maths and single values is very useful.
{{{ filter }}}
however another form is also possible; for example in a macro apply a
template for each item.
{{{ $(varnam)$ ||$:/core/templates/plain-text-tiddler}}}
Regards
Tony
On Sunday, 13 September 2020 12:43:14 UTC+10, Bob Jansen wrote:
>
> Thanks Eric. By the way, where do all those brackets come from in the
> inline filter and where is all that documented when to use which and how
> many ?
>
> Bobj
>
> Dr. Bob Jansen
> 122 Cameron St, Rockdale NSW 2216, Australia
> Ph: +61 414 297 448
> Skype: bobjtls
>
>
> On 13 Sep 2020, at 12:12, Eric Shulman <[email protected] <javascript:>>
> wrote:
>
> On Saturday, September 12, 2020 at 6:12:12 PM UTC-7, Bob Jansen wrote:
>>
>> <$button>
>> <$wikify name="theuniqueid" text={{$:/TLS/uniqueid}}>
>> <$action-createtiddler $basetitle="$:/TLS/new-id" $overwrite="yes" />
>> <$action-setfield $tiddler="$:/TLS/new-id" text={{$:/TLS/uniqueid}}
>> uniqueid=<<theuniqueid>> />
>> </$wikify>
>> Add
>> </$button>
>>
>
> This can also be done without using $wikify, by using an "inline filter",
> like this:
> <$button> Add
> <$vars id={{{ [{$:/TLS/idcode}addsuffix{$:/TLS/incremental}] }}}>
> <$action-createtiddler $basetitle="$:/TLS/new-id" $overwrite="yes" />
> <$action-setfield $tiddler="$:/TLS/new-id" text=<<id>> uniqueid=<<id>> />
> </$vars>
> </$button>
>
> -e
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/8OIdMGfIV-A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected] <javascript:>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/f856baf6-18a7-41e0-a1d6-da474f7e1cd3o%40googlegroups.com
>
> <https://groups.google.com/d/msgid/tiddlywiki/f856baf6-18a7-41e0-a1d6-da474f7e1cd3o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
--
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/bbbd27ff-b446-46b0-971e-05dc58d09fe6o%40googlegroups.com.