Template talk:Tooltip

Test
This is a tooltip which does not wrap correctly?

In FireFox 1,5 the tooltip is just short. In IE6 the tooltip is long.


 * Well in Safari it wraps beautifully: only to go away before you have time to finish reading it! —Ian Spackman 19:58, 21 May 2007 (UTC)


 * Seems to work in ie6 for me just fine. My buddy is a mediawiki admin and he would love this thing. Is this supported in all versions? ClintonKu (talk) 21:15, 24 May 2009 (UTC)

Category link
editprotected
 * This protected page has been detected in [[:Category:Wikipedia formatting templates]], but that category has been redirected to [[:Category:Wikipedia formatting and function templates]]. Please update the category link. --RussBot (talk) 13:19, 27 August 2008 (UTC)
 * ✅ Done Harryboyles 17:15, 27 August 2008 (UTC)

Merge with {&#123;abbr}}
This template does the same as abbr, but without using the HTML tag &lt;abbr&gt; or the class. — Dispenser 14:35, 10 October 2009 (UTC)

Why not make this more like a navigation popup?
Why not make this more like a navigation popup? Then we could put links in it too. Lemmiwinks2 (talk) 03:41, 14 October 2009 (UTC)
 * See Tools/Navigation popups. This feature must be installed by the user, and requires that their browser has JavaScript support enabled. – Wbm1058 (talk) 13:36, 12 June 2015 (UTC)

Redirects for deletion.
I have started a redirects for deletion discussion. If someone could replace the page with, that would be appreciated. E to the Pi times i ( talk  |  contribs ) 04:08, 31 March 2018 (UTC)
 * Yes check.svg Done Galobtter (pingó mió) 12:24, 31 March 2018 (UTC)

Template-protected edit request on 1 January 2021
Update TfD template, as I re-listed the discussion to 1 January. –Piranha249 21:40, 1 January 2021 (UTC)
 * Red information icon with gradient background.svg Not done: I've undone the relist; it's already been relisted twice. Primefac (talk) 21:44, 1 January 2021 (UTC)

Template-protected edit request on 27 January 2021
This template was approved for a merger with Template:Hover title earlier this month, but nothing has come of the effort since then. –Piranha249 (Discuss with me) 18:17, 27 January 2021 (UTC)
 * This isn't an edit request. Template mergers sometimes take time. Please be patient. Primefac (talk) 18:27, 27 January 2021 (UTC)

Why does our documentation flout the rules?
I'm puzzled that the documentation contains a warning which is viewed as serious enough that it deserves all bold:

Then goes on to give a usage example which is a formula not an abbreviation, and that example uses rather than.

I recognize that this classic formula includes some abbreviations, but I don't think combining abbreviations into a formula makes it an abbreviation. I'm not fully grasping why creates an accessibility problem while  does not, but unless I'm missing something, if we strongly urge editors to use tooltips for things other than abbreviations shouldn't we use tooltip in the documentation? Am I missing something?-- S Philbrick (Talk)  21:45, 12 May 2021 (UTC)
 * I'm not sure what's going on here, but I've highlighted quoted text to make it clear what you are talking about. Feel free to wrap the said warning into a notice template to make it more readable. On the other side, I think it's legit to avoid using tooltips. It certainly would cause readability issues on different devices.  AXO NOV  (talk) ⚑ 18:55, 13 May 2021 (UTC)
 * , I get that pop-ups might create problems related to accessibility (and I don't know this for certain, it just sounds plausible), but I'm struggling to understand why a popup created by tooltips is problematic but a pop up created by abbr is not a problem. (thanks for the highlighting to clarify what I am talking about.) S Philbrick  (Talk)  20:05, 13 May 2021 (UTC)
 * I agree that it sounds plausable. Probably underlaying html tags and scripts cause issues with accessibility on devices not fully supporting html/js/css but I'm confused too here tbh. Cheers. AXO NOV  (talk) ⚑ 20:11, 13 May 2021 (UTC)

Dotted not working in new vector
The css class explain used by this template is not supported in new vector and hence tooltips are never dotted in that skin. This can be solved by moving the doting to template styles as I've done at Template:Tooltip/sandbox. I would like to have someone more experienced have a look at it before implementing though. Thanks to for helping out at discord full credits for anything clever I say to them. --Trialpears (talk) 16:47, 7 August 2021 (UTC)


 * Looks fine. Izno (talk) 17:34, 8 August 2021 (UTC)
 * Now implemented. --Trialpears (talk) 12:41, 9 August 2021 (UTC)

Discussion at Wikipedia:Village pump (technical) § Italics in a tooltip
You are invited to join the discussion at Wikipedia:Village pump (technical) § Italics in a tooltip. &#123;{u&#124; Sdkb  }&#125;  talk 22:02, 17 October 2021 (UTC)

Template-protected edit request on 9 July 2023
Update this template to the current sandbox version. The added line  will cause the tooltip text to be read aloud as "Tooltip {parameter as written}". A version of this was tried before, but it caused an unspecified error when used outside of the testcases page. This version is slightly less complex and a minor error has been since corrected in the live template. When testing this template on Firefox, Chrome, Edge, IE, NVDA, and Windows 10, I don't notice any issues in or out of the sandbox. An example of the sandbox version: Feel free to ask any questions or for any specific testing Rjjiii (talk) 21:37, 9 July 2023 (UTC)


 * .  P.I. Ellsworth &thinsp;, ed.  put'er there 17:09, 11 July 2023 (UTC)


 * .  P.I. Ellsworth &thinsp;, ed.  put'er there 17:59, 11 July 2023 (UTC)

Template-protected edit request on 11 July 2023
Revert previous update. In most situations this works fine, but sometimes when used within a link it will either display the Template:sronly text inline, suppress the link, or suppress the tooltip. This may the same issues that noted as it works fine in the sandbox and in many mainspace contexts. Rjjiii (talk) 17:46, 11 July 2023 (UTC)


 * More context for future editors. This is a bug in sronly unrelated to tooltips. When placed within a link, it can cause issues. The most common is that the intended hidden text is printed inline. I'm not sure what causes the stylesheet conflict, but it shouldn't be used in links or templates that are linked until fixed. Rjjiii (talk) 17:56, 11 July 2023 (UTC)


 * .  P.I. Ellsworth &thinsp;, ed.  put'er there 18:00, 11 July 2023 (UTC)

Dotted line working in preview mode, but not in saved article mode
It's really weird:. I have tried purging the page and using a different browser but the problem remains. Any ideas? Betty Logan (talk) 11:45, 14 August 2023 (UTC)


 * Template:efn will work better in that situation. Using a tooltip will make the content unavailable to most readers including everyone on mobile, and not accessible for users using a screen reader or keyboard navigation. Regards, Rjjiii (talk) 16:14, 14 August 2023 (UTC)
 * Better yet, rewrite the sentence to avoid using film jargon. Something like: "Since Fox, to save costs, had long ago destroyed the negatives of the outtakes and portions of scenes that were cut during editing of the film, traditional outtakes could not be included." – Jonesey95 (talk) 01:59, 15 August 2023 (UTC)
 * How dare you say something commonsensical!  — SMcCandlish ☏ ¢ 😼  04:54, 15 August 2023 (UTC)
 * Surely there's a notice board for such things? Rjjiii (talk) 05:49, 15 August 2023 (UTC)
 * I appreciate the suggestions, but a problem bypassed is not a problem solved. There would still appear to be a glitch in the template. Betty Logan (talk) 08:20, 15 August 2023 (UTC)
 * It appears to be because the first use of the template in the article (in the infobox) is inside a link, where TemplateStyles doesn't work. In any case this template should never be used in the main namespace (MOS:NOTOOLTIPS). (The infobox use is a double whammy as it also violates MOS:SMALLTEXT.) Nardog (talk) 08:53, 15 August 2023 (UTC)
 * Thanks! I've removed the first hover box and now we've now got a dotted line. I will sort out the second one with a footnote when I get a chance. Very strange that the first instance was disrupting the second instance, but at least you have satisfied my curiosity. Betty Logan (talk) 09:24, 15 August 2023 (UTC)

TemplateData
This template shares TemplateData with abbr via the documentation. I think only the first bit (This template defines an abbreviation or acronym, by creating a tooltip that is displayed on mouse-over.) needs to be changed. Should this be made more general so that the TemplateData applies to both abbr and tooltip, or should tooltip use its own TemplateData with a separate explanation? Rjjiii (talk) 06:39, 14 January 2024 (UTC)
 * The description "Meaning" for 2 also does not seem valid for Tooltip. I think this template should have its own TemplateData, which can probably be transcluded using an #if statement that checks the page name. – Jonesey95 (talk) 07:18, 14 January 2024 (UTC)
 * Oh, good catch. I've added separate descriptions for tooltip's TemplateData. I also made the descriptions shorter, so they would not be cut off in the VisualEditor's template search box, Rjjiii  (talk) 16:47, 15 January 2024 (UTC)