[tw5] Re: Filter to show caption field if it exists

2021-01-26 Thread Jon
Thanks for the alternatives, Tones.

Regards
Jon

On Tuesday, 26 January 2021 at 23:47:38 UTC TW Tones wrote:

> Jon,
>
> Mark refactrored you code as requested but a shorter for is if the 
> cauurrent tiddler is valid use this;
>
> {{{ [all[current]get[caption]] ~[] }}}
>
> Or for plain text
>
> <$text text={{{ [all[current]get[caption]] ~[] }}}/>
>
> Regards
> Tones
> On Wednesday, 27 January 2021 at 07:51:05 UTC+11 Jon wrote:
>
>> Perfect! Thanks a lot Mark.
>>
>> On Tuesday, 26 January 2021 at 17:23:26 UTC Mark S. wrote:
>>
>>> Try:
>>>
>>>
 <$list filter=[tag[triangle]]>
 

>>> <$list filter="[all[current]has[caption]get[caption]] 
 :else[]" variable=name >
  <$link><>  

>>> 
>>>
 
 <$transclude mode=block/>
   
 
 



-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/37a1edcb-3ce2-402e-b839-531358cbb526n%40googlegroups.com.


[tw5] Re: Filter to show caption field if it exists

2021-01-26 Thread TW Tones
Jon,

Mark refactrored you code as requested but a shorter for is if the 
cauurrent tiddler is valid use this;

{{{ [all[current]get[caption]] ~[] }}}

Or for plain text

<$text text={{{ [all[current]get[caption]] ~[] }}}/>

Regards
Tones
On Wednesday, 27 January 2021 at 07:51:05 UTC+11 Jon wrote:

> Perfect! Thanks a lot Mark.
>
> On Tuesday, 26 January 2021 at 17:23:26 UTC Mark S. wrote:
>
>> Try:
>>
>>
>>> <$list filter=[tag[triangle]]>
>>> 
>>>
>> <$list filter="[all[current]has[caption]get[caption]] 
>>> :else[]" variable=name >
>>>  <$link><>  
>>>
>> 
>>
>>> 
>>> <$transclude mode=block/>
>>>   
>>> 
>>> 
>>>
>>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9fcb2f15-4bb7-43d2-b935-c406d0ee120an%40googlegroups.com.


[tw5] Re: Filter to show caption field if it exists

2021-01-26 Thread Jon
Perfect! Thanks a lot Mark.

On Tuesday, 26 January 2021 at 17:23:26 UTC Mark S. wrote:

> Try:
>
>
>> <$list filter=[tag[triangle]]>
>> 
>>
> <$list filter="[all[current]has[caption]get[caption]] 
>> :else[]" variable=name >
>>  <$link><>  
>>
> 
>
>> 
>> <$transclude mode=block/>
>>   
>> 
>> 
>>
>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e19ea074-0a9b-4941-be00-2b21cb65bc56n%40googlegroups.com.


[tw5] Re: Filter to show caption field if it exists

2021-01-26 Thread 'Mark S.' via TiddlyWiki
Try:


> <$list filter=[tag[triangle]]>
> 
>
<$list filter="[all[current]has[caption]get[caption]] 
> :else[]" variable=name >
>  <$link><>  
>


> 
> <$transclude mode=block/>
>   
> 
> 
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/23b4515b-573a-4108-af04-aa141e988343n%40googlegroups.com.