yes Mark, it did help - thanks.

I also defined a tooltip stylesheet so that I can style it as I like with:


<$wikify name="answer"  text=<<getanswer>> >
   <a  title=<<question>> class="tooltip"> <span 
title="">//<<answer>>//</span></a>


As a side effect, however, my original tiddler (now converted into data 
type) has lost its previous formatting. 

Is there a way to avoid this, e.g. with a smarter transclusion, so that I 
can keep the original format??

Paolo


On Saturday, July 8, 2017 at 9:11:55 PM UTC+2, Mark S. wrote:
>
> I didn't use any stylesheet stuff with this, though I imagine there are 
> ways to approach it that would. I created the "tip" with *span 
> title="stuff"*
>
> If you create a data tiddler (be sure to mark it's type at the bottom of 
> the tiddler) with this data and call it, for example, Quiz1 :
>
> tiddler: the smallest semantic unit
> field:  a semantic unit smaller than a tiddler
>
> And then set up these macros (perhaps globally):
>
> \define getanswer() {{$(tiddler)$##$(question)$}}
> \define makequiz(quiz) 
> <$vars tiddler="$quiz$">
> <$list filter="[[$quiz$]] +[indexes[]]" variable="question">
>
> <$wikify name="answer"  text=<<getanswer>> >
>     ''Term'': <span title=<<answer>>>//<<question>>//</span>
>    
> </$wikify>
> </$list>
> </$vars>
> \end
>
>
>
> Then you can create a list of terms based on Quiz1 by invoking like this:
>
>
> <<makequiz "Quiz1">>
>
> When you hover over a term, it's definition will pop up.
>
> HTH
> Mark
>
>
>
>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1c496236-8cfb-491f-a34e-6c2a8294d4ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to