[pmwiki-users] Tooltips

Petko Yotov 5ko at 5ko.fr
Thu Jul 10 02:51:13 PDT 2025


In 2.5.0, it should be possible to use this markup to set the link 
tooltip to the page title:

   [[Page name"+"|link text]]

It should also be possible to set a default tooltip if not defined in 
the link markup with something like this:

   $LinkPageTooltip = '+'; // page title -or-
   $LinkPageTooltip = '{$Title}'; // page title
   $LinkPageTooltip = '{$Description}'; // (:description:) PageVar

Using properties that are stored in individual per-page disk files like 
title, description, or a page text variable, requires to open the 
individual files. This is the same with [[Link|+]].

On pages with many links like Site.AllRecentChanges, there may be a 
noticeable delay loading the page.

Petko

On 26/06/2025 06:13, Petko Yotov wrote:
> 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
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users



More information about the pmwiki-users mailing list