[pmwiki-users] Add title attribute to link?

Jean DEMARTINI jean.d.demartini at wanadoo.fr
Fri Mar 17 10:58:08 CST 2006


Patrick R. Michaud a écrit :
> On Fri, Mar 17, 2006 at 08:58:49PM +1300, Allister Jenks wrote:
>   
>>    Next question:
>>
>>    In the same way that one can specify Attach:image.jpg"Tooltip" to add a
>>    'title' attribute to the <img>, is there a way I can add a title attribute
>>    to a link?
>>     
>
> This question comes up frequently enough that I wonder if it should
> be a core feature.
>
> I can see three likely ways of doing this (other suggestions are
> welcomed):
>
>     [[ http://www.example.com"Example.com title" | link text ]]
>
>     %title="Example.com title"% [[ http://www.example.com | link text]]
>
>     [[ http://www.example.com | link text | Example.com title ]]
>
> Ideas, anyone?
>
> Pm
>   
The 1st form seems handy for me because the usage of 2 pipes will be 
fastly confusing: is the 1st pipe for the target or for the title ?

JDem





More information about the pmwiki-users mailing list