Difference between revisions of "Template:Hover title"

From blackwiki
Jump to navigation Jump to search
test>Redrose64
test>Nardog
(type=disabled - it has broken Nepali language etc.)
Line 1: Line 1:
{{Tfm/dated|page=Hover title|otherpage=H:swl|link=Wikipedia:Templates for discussion/Log/2019 January 17#Template:Hover title|type=inline|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}{{#ifeq:{{{link}}}|yes
+
{{Tfm/dated|page=Hover title|otherpage=H:swl|link=Wikipedia:Templates for discussion/Log/2019 January 17#Template:Hover title|type=disabled|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}{{#ifeq:{{{link}}}|yes
 
  |[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no|
 
  |[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no|
 
   |style="border-bottom:1px dotted"
 
   |style="border-bottom:1px dotted"

Revision as of 20:21, 26 January 2019

Template:Tfm/dated{{{2}}}

Template documentation[view] [edit] [history] [purge]

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

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.