((editprotected))
Dear administrator, please add the following interwiki link:
[[ia:Patrono:H:title]]
Thank you in advance, --Julian 19:49, 4 November 2007 (UTC)
((editprotected))
Right now this template doesn't seem to work for wiki-links. I added some code to have an optional 'link=yes' parameter, this will turn the text of the second parameter into a wikilink and will display the title when hovering over the link.
Example of how a link with a hover text, using this template, displays right now: if it work's you'll see this text, and another example of how it might work with the link paramater added: Example.
this is the suggested code:
((#ifeq:(({link))}|yes|[[(({2))}|<span title="(({1))}" ((#ifeq:(({dotted|yes))}|no||style="border-bottom:1px dotted"))>(({2))}</span>]]|<span title="(({1))}" ((#ifeq:(({dotted|yes))}|no||style="border-bottom:1px dotted"))>(({2))}</span>))<noinclude>((pp-template))[[ia:Patrono:H:title]][[sl:Predloga:H:title]]</noinclude>
Freestyle 10:32, 28 February 2008 (UTC)
((editprotected))
Could somebody please make a documentation page for this template? I made it work here, but have no idea how and why.
Dear admin, please create the documentation page even if you youself don't plan to write the documentation. Others may use it. Debresser (talk) 12:08, 4 June 2009 (UTC)
((editprotected))
As can be seen in this example:
the |link=
parameter currently doesn't work, and probably never has worked. I don't know why that parameter is there, but if it's important please fix it (as I've done in the sandbox), and if it isn't important please remove it. Eubulides (talk) 19:49, 18 January 2010 (UTC)
I still wish you could just double-pipe a link.
For example:
[[Limited slip differential#Factory_names | GM's Positraction | A drive train component that limits the difference in the rotational speed of the rear wheels, providing better traction.]] was a factory option for the 1968-1980 model years.
Would result in:
(Though, I couldn't actually use the ((H:title)) template in this example, since I needed to pipe the link display name. Probably not a common enough occurrence to require any changes, however.)
--Pi3832 (talk) 06:26, 14 June 2010 (UTC)
((H:title/sandbox|A drive train component that limits the difference in the rotational speed of the rear wheels, providing better traction.|GM's Positraction |link=Limited slip differential#Factory names))
|link=no
wasn't working! (It linked to no.) But I have now fixed this.I've been digging around, and have found some other options in addition to modifying ((H:title)).
[[User:pi3832|<abbr title="Mike">Me</abbr>]] = Me
((H:title/sandbox|Mike|Me|link=User:pi3832)) = MikeTooltip Me
[[User:pi3832|<span title="Mike">Me</span>]] = Me
[[User:pi3832|((H:title|Mike|Me))]] = Mike
I kind of like the funky pointer you get with the <abbr> tag.
--Pi3832 (talk) 06:36, 16 June 2010 (UTC)
This needs some modern CSS and HTML5 research. Using <abbr>
(including the ((Abbr))
wrapper) for non-abbreviations is bad code; it's against the HTML specs, and a breakage of semantic markup. But we do want tooltips to be accessible. I'm sure that in the intervening years this sort of thing has been examined elsewhere. I would suspect that title="..."
is the right approach. — SMcCandlish ☏ ¢ 😼 08:28, 2 June 2018 (UTC)
@Graham87: Do you have any post-2011 input on this? — SMcCandlish ☏ ¢ 😼 08:41, 2 June 2018 (UTC)
<span title="Tooltip text">Main text</span>
We no need a link (({link))}. We just need hovered. 42.60.139.23 (talk) , view this source to know. 13:30, 16 May 2013 (UTC)
I propose reversing parameters |1=
and |2=
to match the order of ((Abbr))
, and use a bot or something to clean it up in the deployed cases. The main use this template is ever likely to see is conversion of misuse of ((abbr))
to provide tooltips of things that are not abbreviations. (That template should only be used for abbreviations, including acronyms and initialisms, because its underling HTML tag, <abbr>
, is strictly defined only for that use in the HTML specs (both W3C and WHATWG versions).
((H:title))
(aside from template parameter compatibility concerns) is presently using a totally counter-intuitive parameter order, putting the markup/afterthought in front of the main content. We just don't really do this with templates, because it's confusing and no one's likely to remember "Oh, yeah, the order in this one is backwards", so it's going to lead to needless errors, even when people aren't converting from another template.
— SMcCandlish ☏ ¢ 😼 08:13, 2 June 2018 (UTC)
Also, and maybe more seriously, the redirect ((Tooltip))
needs to be usurped from ((Abbr))
and redirected here, because it is the proximal cause of the vast majority of abuses of that template for markup of non-abbreviations. But this can't happen unless one template or the other has its parameters reversed. ((H:title))
is the obvious one to do this with, because it's only used on 6,500 pages rather than 391,000. — SMcCandlish ☏ ¢ 😼 08:23, 2 June 2018 (UTC)
The result of the move request was: Moved to Template:Hover title. (non-admin closure) –Ammarpad (talk) 01:35, 10 June 2018 (UTC)
Template:H:title → ? – "Foo:Bar" is not how we name templates. This one will break if we ever have a namespace shortcut "H:", e.g. for "Help:". The current name is just aberrant and confusing. "Htitle" is the simplest solution, though a less opaque name could also be chosen, like ((Hover title))
or something. See thread immediately above this one, on cleanup that has to be done before the ((Tooltip))
redirect could be usurped for this purpose or redirected to this template (one of the two badly needs to happen). — SMcCandlish ☏ ¢ 😼 08:23, 2 June 2018 (UTC)
((H:swl))
can simply be merged to what is presently ((H:title))
, because their output is no longer different, whatever the original intent was. — SMcCandlish ☏ ¢ 😼 02:33, 5 June 2018 (UTC)