This might make life even easier by simplifying the parameters to the macro 
to just the text to display, and the field.

\define nt(text,field)
<$link to=<<currentTiddler>> class="no-click" 
tooltip="{{!!$field$}}"><sup>[[$text$|$field$]]</sup></$link>
\end

<<nt "4" "nt-4">>

On Tuesday, April 7, 2020 at 12:03:22 AM UTC+2, Julio Peña wrote:
>
> Hello there Saq,
>
> Worked as prescribed...it was the improvement I was looking for.
> Much appreciated. 
>
> Thanks for the pointer!
>
> Blessings,
> Julio
>
> On Monday, April 6, 2020 at 4:01:01 PM UTC-4, Saq Imtiaz wrote:
>>
>> I am not entirely sure I understand what improvement you are trying to 
>> make.
>>
>> If the macros are meant to use fields from the same tiddler they are 
>> called in, try this to make the macro more reusable:
>>
>> \define nt(text,field)
>> <$link to=<<currentTiddler>> class="no-click" 
>> tooltip="{{!!$field$}}"><sup>$text$</sup></$link>
>> \end
>>
>> and call it like <<nt "[[4|nt-4]]" "nt-4">>
>>
>>
>> On Monday, April 6, 2020 at 4:12:04 PM UTC+2, Julio Peña wrote:
>>>
>>> Hello all,
>>>
>>> I hope everyone is doing well and safe at home during these turbulent 
>>> times.
>>>
>>> I will need pointers on how to improve the little experimentation I'm 
>>> undertaking.
>>> I call it a "notetip". It's an implementation of the tooltip mechanism 
>>> for quick reference "glances". I know there are many fine reference 
>>> modules
>>> developed by the community...however I wanted something rather simple
>>> to continue the flow of writing.
>>>
>>> http://jpentw5.tiddlyspot.com/
>>>
>>> Please click on the " Featured Samples" tab and let me know how I can 
>>> improve upon
>>> this little tool.
>>>
>>> Thanking you all in advance,
>>> Julio
>>>
>>

-- 
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/e70a61ea-faff-4c9d-8567-12c26b83020f%40googlegroups.com.

Reply via email to