Hover over word to reveal transcluded content of another tiddler

58 views
Skip to first unread message

Jon

unread,
Dec 19, 2021, 3:37:03 AM12/19/21
to TiddlyWiki
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


Eric Shulman

unread,
Dec 19, 2021, 4:50:45 AM12/19/21
to TiddlyWiki
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

Jon

unread,
Dec 19, 2021, 5:54:48 AM12/19/21
to TiddlyWiki
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

Reply all
Reply to author
Forward
0 new messages