Template:Hover title/doc: Difference between revisions
Appearance
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) Created page with "{{Documentation subpage}} {{Commons Import}} <!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]..." |
Caleb Cooper (talk | contribs) No edit summary |
||
| Line 3: | Line 3: | ||
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). --> |
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). --> |
||
{{high-use |
{{high-use}} |
||
===Purpose=== |
===Purpose=== |
||
Latest revision as of 09:11, 4 November 2020
| This page was automatically imported from Commons any changes will be overwritten, the source page is here () |
| This template is used on many 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. |
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).
For marking abbreviations specifically, please use {{abbr}} instead, because it is accessible to screen reader users.