[pmwiki-users] Tooltips

Petko Yotov 5ko at 5ko.fr
Wed Jun 25 21:13:23 PDT 2025


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



More information about the pmwiki-users mailing list