Difference between revisions of "Template:Hover title"
Jump to navigation
Jump to search
en>MSGJ (add class name per request of User:Þjarkur) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 23:15, 16 August 2020
{{{2}}}
This template is used on approximately 19,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated by Ahechtbot. |
Purpose
This template assigns an HTML title attribute to a given block of text. This causes a tooltip to be displayed when the user hovers over the text with their cursor.
Usage
{{Hover title |spantitle |label |link=yes/no (defaults to "no") |dotted=yes/no (defaults to "yes") }}
wikimarkup except linking may be used within label, but not within spantitle.
Examples
- {{Hover title|Hello|example}} produces example.
- {{Hover title|Hello|example|link=yes}} produces example.
- {{Hover title|Hello|example|dotted=no}} produces example.
- {{Hover title|Hello|example|link=yes|dotted=no}} produces example.
- {{Hover title|Hello|ex'''amp'''le}} produces example.
- [[example|{{Hover title|Hello|text}}]] produces text.
Accessibility issue
This template uses a hover attribute, which is discouraged by Wikipedia:Manual of Style (accessibility)#Text.
For marking abbreviations specifically, please use {{abbr}} instead, because it is accessible to screen reader users.
The above documentation is transcluded from Template:Hover title/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |