Info for all and thanks Thomas

As in https://tiddlywiki.com/#TranscludeWidget

*The TranscludeWidget <https://tiddlywiki.com/#TranscludeWidget> treats any 
contained content as a fallback if the target of the transclusion is not 
defined (ie a missing tiddler or a missing field).*

Explains why 
<$transclude field="caption"><$view field="title"/></$transclude>
works

Of note here is we are asking to transclude a field, not a whole tiddler, 
and this is a form of emptyValue

This actually is a great tip because it provides a form of selective 
display, a block of wiki text can be displayed, simpler to use than list or 
reveal, that operates on the existence of a value, not yes or no.

Regards
Tony



On Saturday, 5 January 2019 09:49:29 UTC+11, Thomas Elmiger wrote:
>
> Hi folks,
>
> ... the *caption* field is generally wikified (and so can include 
>>> formatting etc.) while the *title* is rendered as plain text.
>>
>>
> An even shorter solution for this:
>
> <$transclude field="caption"><$view field="title"/></$transclude>
>
> Thanks for the hints!
> Thomas
>
> <$list filter="[all[current]has[caption]]" 
>>       emptyMessage="""<$view field="title"/>""">
>>       <$transclude field="caption"/>
>> </$list>
>>
>>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8dab92e0-6b17-47ff-8019-8ba4e2b1c274%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to