[pmwiki-users] RFC: Link titles

John Rankin john.rankin at affinity.co.nz
Sat Oct 29 22:42:26 CDT 2011

> Hello. I'd like to read your thoughts about an implementation of "tooltip
> titles" of internal links.
> I would like to enable this syntax:
>    [[WikiPage"Tooltip title"]] displays WikiPage
>    [[WikiPage"Tooltip title"|link text]] displays link text
>    [[WikiPage"Tooltip title"|+]] displays the title of the page
>    [[WikiPage"Tooltip title"|#]] a number/reference
I support this proposal and have used it previously as a local
customisation. However, please test

[[WikiPage"Tooltip title (on mouse-over)"]]

and its variants. I had to patch pmwiki.php to extract the tooltip text
before bracketed text is removed. Otherwise, the above example produces
"Tooltip title" as the link title. The following variant continues to
display WikiPage:

[[WikiPage(Name)"Tooltip title (on mouse-over)"]]

I prefer this option because it is consistent with existing syntax for
other kinds of link.

John Rankin

More information about the pmwiki-users mailing list