\define mac(tid)
[<$view tiddler=$tid$ field="caption">
<$view tiddler=$tid$ field="title"/>
</$view>]
\endNote <<mac t-2017>> and <<mac t-2018>> and <<mac t-2019>> and <<mac t-2016>> give different result.Note [c-2017] and [c-2018] and [ t-2019 ] and [ t-2016 ] give different result.
\define mac(tid)
[<$view tiddler=$tid$ field="caption"><$view tiddler=$tid$ field="title"/></$view>]
\end... the caption field is generally wikified (and so can include formatting etc.) while the title is rendered as plain text.
<$list filter="[all[current]has[caption]]"
emptyMessage="""<$view field="title"/>""">
<$transclude field="caption"/>
</$list><$list filter="[all[current]has[caption]get[caption]] ~[{!!title}]"></$list><$list filter="[all[current]has[caption]get[caption]] ~[{!!title}]" variable=name>
<$link to=<<currentTiddler>> tooltip="Custom tooltip"><<name>></$link>
</$list>\define caption-title()
<$list filter="[all[current]has[caption]get[caption]] ~[{!!title}]" variable=name>
<$link to=<<currentTiddler>> tooltip="Custom tooltip"><<name>></$link>
</$list>
\end
and use <<caption-title>> no paramters to always show first the caption, then the titlewith an active link.... the caption field is generally wikified (and so can include formatting etc.) while the title is rendered as plain text.
<$transclude field="caption"><$view field="title"/></$transclude>
<$view field="caption" format="plainwikified"><$view field="title" format="text" /></$view>
<$transclude field="caption"><$view field="title"/></$transclude>There are alots to do with TW scripting, but few people know, AND nobody knows all of them.
Mohammad
<$list filter="[all[current]has[caption]]"
emptyMessage="""<$view field="title"/>""">
<$transclude field="caption"/>
</$list>
<$transclude field="caption"><$view field="title"/></$transclude>
<$view field="caption" format="plainwikified"><$view field="title" format="text" /></$view>
<$link tooltip={{!!title}}><$transclude field="caption"><$view field="title"/></$transclude> </$link><$list filter="[all[current]has[caption]get[caption]] ~[{!!title}]" variable=name>
<$link to=<<currentTiddler>> tooltip="Custom tooltip"><<name>></$link>
</$list>to=<<currentTiddler>> to to=<<name>>? What does it mean when it is used is used inside a list widget with defined variable? It refer to hosting tiddler.