#266 closed enhancement (worksforme)
Use 'title' attribute in links
Reported by: | daniel | Owned by: | daniel |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
We should make use of the title attribute for links, providing useful information and hints in the popup text.
Attachments (0)
Change History (11)
comment:1 by , 21 years ago
Milestone: | → 0.8 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 20 years ago
Milestone: | 0.8 → 0.9 |
---|
comment:3 by , 20 years ago
So now we have titles/tooltips for all kinds of TracLinks, what other kind of titles should we support? I think we should either clarify the scope of this request, or close it.
comment:4 by , 20 years ago
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
seem a duplicate of #664
comment:5 by , 19 years ago
Milestone: | 0.9 |
---|
comment:6 by , 13 years ago
I don't think this is a duplicate.
For me it refers to any links, not only tickets.
In this regard, this feature seems to be already available for the wiki markup "wiki:".
Compare the link "WikiCreole" on the 2 following pages: http://trac.edgewall.org/wiki/TracLinks and http://trac.edgewall.org/wiki/WikiCreole.
In the first case, the corresponding html title attribute is set, in the second, it is not.
So the mechanism already exists. I could not figure out which one though :-(
(looking at Trac-0.12.3/trac/wiki/formatter.py)
So could you please first tell me what is it? (something like [wiki:MyWikiPage?MyParameter="my title"]
?)
Then, if not implemented, extend this mechanism to any types of links, especially external links.
Cheers, Mathieu
comment:7 by , 13 years ago
The first one is an InterTrac link, [trac:WikiCreole]
, that's why the title attribute is set here. The second one is an ordinary URL.
comment:8 by , 13 years ago
Resolution: | duplicate → worksforme |
---|
The [[span()]]
macro could be used to achieve this, like we did on the WikiStart page:
[[span(TracProject,title=Learn more about the project)]], '''[[span(HowToContribute,title=Practical tips for providing useful contributions)]]''', [[span(TracTeam,title=It's their fault - well not really)]], [[span(TracDev,title=Dive into the internals of Trac)]]
which renders as:
TracProject, HowToContribute, TracTeam, TracDev
The title attribute is for the surrounding <span> rather than for the <a> itself, but the result is the same for the user.
comment:9 by , 13 years ago
Thx Christian.
It also works with external links :-)
[[span(http://trac.edgewall.org,title=Learn more about the Trac project)]]
However I don't manage to display the link as a descriptive title like in
[http://www.edgewall.com Edgewall Software]
Could you please tell me how to proceed?
Cheers,
Mathieu
comment:10 by , 13 years ago
Well, the same way:
[[span([http://www.edgewall.com Edgewall Software],title=What a nice (virtual) place!)]]
Note however that the Wiki parser is not smart enough to cope with [[ ... ]]
embeddings, so the above wouldn't work with the WikiCreole link [[http://www.edgewall.com|Edgewall Software]]
.
See also: #664