That makes sense and yes it isn't how emptyMessage works, as the variable 
is only set by the ListWidget when the filter has a result.

 I had assumed from your code that you wanted {{!!title}} in the 
emptyMessage to mean you wanted the title of the currentTiddler as set 
outside the list widget.

I think constructing the title in a variable as you have done is the right 
way to approach this for readable code.

On Tuesday, April 20, 2021 at 12:09:18 PM UTC+2 Mat wrote:

> >{{!!title}} in emptyMessage will correspond to the title of the the 
> currentTiddler variable outside the ListWidget. 
> >Perhaps explain what it is you expect when using {{!!title}} in 
> emptyMessage.
>
> Thanks for following up! Exactly, {{!!title}} would get the title outside 
> the listwidget. What I want is for e.g the url "https://mywiki#mytiddler"; 
> to output [[mytiddler]] if it exists as tiddler, otherwise <a 
> href="...">mytiddler</a> . The macrocall will (typically) appear in plugin 
> readme tiddlers.
>
> Does this make sense or do I misunderstand something? Thank you.
>
> <:-)
>
>
> On Tuesday, April 20, 2021 at 11:41:00 AM UTC+2 Saq Imtiaz wrote:
>
>> Hi Mat, are you sure about that? 
>>
>> @Saq  - thanks, I actually tried that, but the problem is that 
>>> emptyMessage doesn't know what {{!!title}} is, so to say. (It would be 
>>> desirable that it did!)
>>>
>>>  
>> {{!!title}} in emptyMessage will correspond to the title of the the 
>> currentTiddler variable outside the ListWidget. 
>>
>> Perhaps explain what it is you expect when using {{!!title}} in 
>> emptyMessage.
>>
>>  
>>
>>
>>

-- 
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/3a33d76f-a9c9-4de2-a44c-cabe14436511n%40googlegroups.com.

Reply via email to