Summary: Add "title" attribute to internal links.
Created: 2010-02-22 20:53
Status: Closed - added in 2.2.35
This is a split from PITS:00657 (Add title attributes to external links). Some of the comments suggested title attributes to internal links, intermap links, links to attachments and inline images.
Currently (version 2.2.14) PmWiki can show tooltip titles with the following format:
The only link title format, from the discussed in PITS:00657, and currently not yet implemented, is for titles in internal links. This entry is a discussion about how to best implement this feature.
Note: Links without a link text have their "tooltip title" printed in the page:
While this could be fixed in the core, there is a PmWiki convention that in
Note: Free external links don't work the same way:
Comments welcome, especially on how should an external link title be specified. --Petko February 22, 2010, at 09:00 PM
I support a consistent syntax, and a change to the convention, ie
simon October 17, 2010, at 03:30 PM
I don't understand why there is no support for tool tips on internal links. As far as I can see, the text between double quotes is already being captured, thus you can set this working out of the box:
$LinkPageSelfFmt = "<a class='selflink' href='\$LinkUrl' title='\$LinkAlt'>\$LinkText</a>"; $LinkPageExistsFmt = "<a class='wikilink' href='\$LinkUrl' title='\$LinkAlt'>\$LinkText</a>";
All links can now have tooltip titles. Previously, only images and external links could have tooltip titles, now this feature is enabled for internal links. To set a tooltip title, add it in quotes after the link address:
[[Main.HomePage"This is a tooltip title"]] [[Main.HomePage"This is a tooltip title"|Home]] [[http://www.pmwiki.org"Home of PmWiki"]] Attach:image.jpg"Tooltip title of the image"
Introduced in version 2.2.35 (2011-11-11)