Template:Hover title
This template is currently being merged with Template:Tooltip. This template is being merged with another template, according to the specific instructions at Wikipedia:Templates for discussion/Holding cell, after which it will be redirected or deleted. The decision to merge this template was made following [[Wikipedia:Templates for discussion/Log/Template:Date#Template:Hover_title_and_Template:Tooltip|this discussion initiated on Template:Date]] at Templates for discussion. Note: Please review this template's instructions at Wikipedia:Templates for discussion/Holding cell before proceeding with any type of merging. |
{{{2}}}
![]() | この記事は、クリエイティブ・コモンズ・表示・継承ライセンス3.0のもとで公表されたウィキペディアの項目Template:Hover titleを素材として二次利用しています。 Lua error in Module:Itemnumber at line 91: attempt to concatenate local 'qid' (a nil value). |
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, on systems where that is possible.
Note that such content is not visible to, for example, users on mobile devices (who comprise more than half of all Wikipedia readers).
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.