S S,
I am not necessarily disagreeing with your suggestion however please
consider this solution for captions and titles, noting that there is a link
to the tiddler weather or not the caption is used
<$link to={{!!title}} tooltip="Click to open, View"><$view field="caption"
format=text><$view field="title" format=text></$view></$view></$link>
but if you only want the result as text you can use a (side effect?) feature of
the view widget
that displays its content if no value is returned
<$view field="caption" format=text>
<$view field="title" format=text></$view>
</$view>
Which on consideration is a very nice method by which to display something,
such as the ability to create a field
if the field does not exist.
Regards
Tony
On Wednesday, February 6, 2019 at 3:53:53 PM UTC+11, S. S. wrote:
>
> Could I please have some opinions on - if adding a *wikified* format to
> the $view widget so that:
>
> <$view field="caption" format="wikified"/>
>
> Would give the exact same result as:
>
> {{!!caption}}
>
> Then if this could result in a feasible solution for Github issues:
>
> #3624 <https://github.com/Jermolene/TiddlyWiki5/issues/3624> Table of
> Contents toc-caption macro awkward behaviour
> #3753 <https://github.com/Jermolene/TiddlyWiki5/issues/3753> list-links &
> list-links-draggable : issue with empty caption.
>
> My idea is to propose the below solution as a fix for the issue of an
> empty *caption* field returning an *empty* result instead of the *title*:
>
> <$view field="caption" format="wikified"><$view field="title"/></$view>
>
> I do not have the capability to write the changes for a pull request
> myself, thus if this solution is found interesting, someone may implement
> it!
>
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/f908a1d6-e425-4ab5-bb5c-278b33df7391%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.