Saq,
Could you give some idea of how/why* It is going to be used in a context
where other wikitext cannot be introduced. ?*
- Do you want it in a "filtered transclusion"? see below
Of course the following does what you want but the currentTiddler is not
available inside the list.
<$list filter="[tag[Widgets]sort[title]] +[get[caption]else{!!title}]">
</$list>
This also achieves the same?
In the template you have access to the current tiddler, in the same way as
my first response with an inline template?
<$list filter="[tag[Widgets]sort[title]]" template="caption-or-title">
</$list>
Where caption-or-title contains
{{{ [all[current]get[caption]else{!!title}] }}}<br>
*In a filtered transclusion you can use a template*
{{{ [tag[Widgets]sort[title]]||caption-or-title}}}
I am interested in the challenge.
Regards
Tones
On Tuesday, 15 June 2021 at 09:18:48 UTC+10 Saq Imtiaz wrote:
>
>> Is the demand for a single filter expression a needed constraint?
>>
>
> Yes. It is going to be used in a context where other wikitext cannot be
> introduced.
> It is possible with the filter expression I posted but I'm curious if I've
> missed a simpler solution.
>
--
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/7c1970c2-eac7-45ff-ad25-94e6008be5ecn%40googlegroups.com.