Template:Hover title/doc
Jump to navigation
Jump to search
![]() | This is a documentation subpage for Template:Hover title. It contains usage information, categories and other content that is not part of the original template page. |
![]() | This template is used on approximately 6,500 pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
Purpose[edit source]
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[edit source]
{{H:title |spantitle |label |link=yes/no (defaults to "no") |dotted=yes/no (defaults to "yes") }}
Examples[edit source]
- {{H:title|Hello|example}} produces example.
- {{H:title|Hello|example|link=yes}} produces example.
- {{H:title|Hello|example|dotted=no}} produces example.
- {{H:title|Hello|example|link=yes|dotted=no}} produces example.
Accessibility issue[edit source]
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.
External links[edit source]
- Template:Hover title/doc at Wikipedia, the free Terran encyclopedia that anyone can edit.