[pmwiki-users] Tooltips

Martin Cuno martin.cuno at posteo.de
Thu Jun 26 01:17:31 PDT 2025


Sorry! I was too tired when I asked my question. It didn't even occur to me that I could create the tooltip with a {$:PTV}.

It's useful, however, to note that you obviously need an "absolute" PTV:

Make a link to [[Sandbox.Testseite0002"{$:Title}"|here]]. DOES NOT WORK

Make a link to [[Sandbox.Testseite0002"{Sandbox.Testseite0002$:Title}"|here]]. WORKS! Even in more complicated structures like PageLists.

Thanks! Martin


===== Ursprüngliche Nachricht =====
Von: Petko Yotov <5ko at 5ko.fr>
Am: 26.06.2025, 06:13:23 Uhr
Betreff: Re: [pmwiki-users] Tooltips

MediaWiki (Wikipedia) automatically has the title of the remote page as
a tooltip balloon, no need to add markup, even if the text of the link
is the same.

We could add a configuration variable to enable this, if the link has no
defined "tooltip title in quotes".

Or possibly have a default tooltip title configurable with page
variables, say:

$LinkPageDefaultTooltip = '{$Groupspaced} / {$Title} [{$:Status}]';

This could even include page properties like {$Description} or
{$LastModifiedBy}, but the tooltip can only be plain text, and special
characters <>'" need to be escaped once. If this includes a page text
variable like {$:Summary} that contains a link, its markup would appear
intact in the tooltip.

Petko

On 25/06/2025 10:47, Martin Cuno wrote:
>Hello Petko and everyone,
>
>I don't remember if I asked this before a while ago:
>
>Is there a way to get the title of a link target into the tooltip
>using the normal syntax (without a recipe)?
>
>I mean the following:
>[[Group.Page|+]] creates the title of the target as the link label.
>
>[[Group.Page"blabla"|Text]] creates the "blabla" as the tooltip.
>
>Now I'd like both in combination:
>
>[[Group.Page"+"|Text]] would show the title of the target page as a
>tooltip.
>
>Is this already possible? If not, could it be added?
>
>(I'm using "LinkCssTooltip", but it fails on a complex page.)
>
>Thank you very much!
>
>Martin




===== Ursprüngliche Nachricht Ende =====



-- 
Diese E-Mail wurde von Avast-Antivirussoftware auf Viren geprüft.
www.avast.com



More information about the pmwiki-users mailing list