How can I link an external URL to an internal image and a shown tooltip?

40 views
Skip to first unread message

heusmich

unread,
Nov 27, 2021, 6:32:59 PM11/27/21
to TiddlyWiki
Hi everyone,

I want to add an external URL link to an internal image and additionally show a tooltip when hovering with the mouse on the shown image. Is this somehow possible?
Until now I was able to add an external URL to an internal image, but I don´t know how to add the tooltip.
I used the following format:

 <a href="URL" target="_blank">[img[image.png]]</a>

I tried to add tooltip="name_of_tooltip" between URL and target but it´s not working.
If it´s not possible with this format, can anybody tell me a format or a way that I can use to get this working?

Best regards
heusmich

Eric Shulman

unread,
Nov 27, 2021, 8:53:06 PM11/27/21
to TiddlyWiki
The standard HTML syntax for adding a tooltip to a link uses the `title` attribute, like this:
```
<a href="URL" title="tooltip text" target="_blank">[img[image.png]]</a>
```
Alternatively, you can use the TW wikitext syntax for adding a tooltip to an internal image, like this:
```
<a href="URL" target="_blank">[img[tooltip text|image.png]]</a>
```
enjoy,
-e

heusmich

unread,
Nov 28, 2021, 1:35:05 PM11/28/21
to TiddlyWiki
OK, both things are working.
Thank you very much, have a nice evening!
:D

Best regards
heusmich
Reply all
Reply to author
Forward
0 new messages