Template:Hover title/doc

From Citywars Savage
< Template:Hover title
Revision as of 02:11, 6 December 2019 by Cws 01studio (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: Wikipedia:Wikidata). --> {{high-use|...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted

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.