Hello everybody 
apparently that was incomprehensible what I wrote. I'll try again.
So I'm trying to recreate the structure of the registration of a vehicle. 
So that the whole thing doesn't get too broad, I've thought of the 
following. 
1. The name of the field remains as it is in the approval. 
2. The meaning of the field name is given in a tooltip. 
so far the macro looks like this 

\ define beztool (description tooltipname)
<td valign = top align = left>
<$ button class = "button" tooltip = {{!! $ tooltipname $ _tooltip}}> $ 
description $ </ $ button> 
</td> 
\end 

So the following call is necessary so far. 

<< beztool "A" "a" >> 
<< beztool "P.2 / P.4" "p.2-p.4" >>

But I want to simplify the call. The writing for $ tooltipname $ should be 
omitted. The call should linger in the future

<< beztool "A" >> 
<< beztool "P.2 / P.4" >> 

In order for it to work like this, I would also replace the "/" character 
with another character that is allowed in the naming of fields. 
For this it is necessary that the variable $ designation $ is transferred 
to a new variable and then transferred in lower case. 

Is there a way to do this? 
Thank you

Gerald Weis schrieb am Freitag, 13. November 2020 um 10:13:53 UTC+1:

>  Hello friends The code below to create a tooltip label works. But the 
> tooltips sometimes get longer so that the macro call becomes confusing. I 
> want to change that. 
>
> \ define beztool (name tooltip)
> <td align = left valign = top>
> <$ button tooltip = $ tooltip $> $ label $ </ $ button> 
> </td> 
> \end 
>
> I have the following idea. Since I have a table in which there should be a 
> lot of tooltips, this should be done with fields. The designations in the 
> buttons are by necessity capital letters. now i would like the content of 
> the box DescriptionIn lower case _ tooltip is read out and displayed as a 
> tooltip. becomes. I've already tried the following. 
>
> \ define beztool (name) 
> <$ vars = "fieldname" value = lowercase [$ label $] _ tooltip> 
> <td align = left valign = top> 
> <$ button tooltip = $ fieldname $> $ description $ </ $ button> 
> </td> 
> \end 
>
> unfortunately that doesn't work. Can someone help me there?
>
> thanks
> Gerald
>

-- 
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/d6ea58a8-0683-4901-8ec3-3fc7b7f6d564n%40googlegroups.com.

Reply via email to