[pmwiki-users] Tooltips
Petko Yotov
5ko at 5ko.fr
Thu Jun 26 09:46:08 PDT 2025
On 26/06/2025 10:17, Martin Cuno wrote:
> Make a link to
> [[Sandbox.Testseite0002"{Sandbox.Testseite0002$:Title}"|here]]. WORKS!
> Even in more complicated structures like PageLists.
The page title would be $Title not $:Title.
This may fail if the title contains quotes or special characters. And is
annoying to type. :-)
I'll use the configurable default tooltip so I'll add it as an option.
Petko
> ===== 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