1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-12 11:10:27 +00:00

add tf.toc-getTooltip function

This commit is contained in:
pmario 2024-05-14 03:19:26 +02:00
parent e9d009a6a6
commit 9cace159ab

View File

@ -22,6 +22,8 @@ The very first toc macro is _not_ reused. So it can be used as a simple referenc
\procedure _hasCaptionField() [get<captionField>!is[blank]then<captionField>] \procedure _hasCaptionField() [get<captionField>!is[blank]then<captionField>]
\procedure _hasCaption() [has[caption]then[caption]] \procedure _hasCaption() [has[caption]then[caption]]
\function tf.toc-getTooltip() [<currentTiddler>get[toc-tooltip]!is[blank]] :else[<currentTiddler>]
<!-- Use this item template as a default --> <!-- Use this item template as a default -->
\procedure toc-defaultItemTemplate() \procedure toc-defaultItemTemplate()
<$let tv-wikilinks="no" <$let tv-wikilinks="no"
@ -29,7 +31,7 @@ The very first toc macro is _not_ reused. So it can be used as a simple referenc
> >
<span class="" <span class=""
data-fieldClass=`field-$(field)$` data-fieldClass=`field-$(field)$`
title={{{ [{!!toc-tooltip}!is[blank]] :else[<currentTiddler>] }}} title=<<tf.toc-getTooltip>>
> >
<$transclude $field=<<field>>/> <$transclude $field=<<field>>/>
</span> </span>