[pmwiki-users] RFC: Link titles
john.rankin at affinity.co.nz
Sun Oct 30 22:06:27 CDT 2011
On 31/10/11 11:41 AM, Rogutės Sparnuotos wrote:
> John Rankin (2011-10-31 09:30):
>>> I agree. [[Link|text|title]] is nicer in a vacuum, ...
>> How would you write the equivalent of [[Link"title"]]? I'm not sure
>> that [[Link|Link|title]] is "nicer". You couldn't write
>> [[Link||title]] -- try [[Link|]] to see why.
> For the arguments sake:
> 1. [[Link|]] works just fine: it creates<a href="...Link"></a>
> 2. [[Link||title]] would create<a href="...Link" title="title"></a>
Yes, that is exactly my point. The examples show why [[Link"title"]] is
a better markup than [[Link|Link|title]], in my view. Link text and
title text are independent data items, so we should not need to specify
one in order to specify the other. The markup Petko proposes is in that
sense better, as you can specify one, the other, or both. With the
alternative proposal, you can specify link text without title text, but
not vice versa.
Sorry I wasn't clear.
More information about the pmwiki-users