[tw5] Hover over word to reveal transcluded content of another tiddler

Hi,

I’d like a simple way to hover over a word to reveal the transcluded content of another tiddler.

Tobias’ overlay macro almost does it but loses the formatting of the transcluded tiddler. For instance hovering over ‘Text’ will reveal the contents of ‘TiddlerA’ but bullets will be shown as asterisks.

<<overlay

“Text”
“{{TiddlerA}}”

Any ideas or alternative ways of doing it? (the answer might even be with the macro instructions)

Regards

Jon

1 Like

instead of using the shorthand transclusion {{TiddlerA}}
use the <$transclude> widget with the mode=block parameter, like this:

<<overlay
"Text"
"<$transclude tiddler='TiddlerA' mode=block/>"
>>

enjoy
-e

2 Likes

Brilliant, thanks Eric.

And I notice that the single quotes around the tiddler name are necessary for tiddler names with more than one word e.g. Tiddler A

Regards
Jon