|
Cookbook /
Link titlesSummary: Add "title" attributes to all links
Version:2006-03-25
Prerequisites:
Status: Last tested in March-April 2006
Maintainer: Petko
Questions answered by this recipeHow to add "title" attributes to all links? Note that you can already have link titles for external links, which may be all you need! [[http://www.wikipedia.org/"The free encyclopedia"|Wikipedia]] will print Wikipedia and a tooltip "The free encyclopedia".
To enable this, you may need to set in your If you wish to have link titles even for internal links, read on. DescriptionLink titles are displayed in a small tooltip when the mouse cursor passes over a link. It can be used to provide additional information and/or URL and is a usability recommended feature (*). To use this script, download itΔ, place it into the cookbook/ folder and add the line include_once('cookbook/linktitles.php');
to a local customization file (local/config.php). Then you can add a link title by placing it in parentheses after the link text:
If you don't have a text in parentheses, the title will be the external URL or the local target page:
To remove a link title, append "()" to the link text, i.e. To keep a parenthesed words in the link text, append "()" or "(some title text)" to the link text, i.e. Notes
Release Notes
CommentsSee Also
Contributors
User notes?: If you use, used or reviewed this recipe, you can add your name. The following format is recognized:
* (+) Optional positive comment. Name, date * (-) Optional negative comment. Name, date These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |