Open main menu

Changes

m
{{Documentation subpage}}
<!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). -->
{{high-use| 6522 }}

===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===
<pre>
{{H:title
|spantitle
|label
|link=yes/no (defaults to "no")
|dotted=yes/no (defaults to "yes")
}}
</pre>

===Examples===
* <nowiki>{{H:title|Hello|example}}</nowiki> produces {{H:title|Hello|example}}.
* <nowiki>{{H:title|Hello|example|link=yes}}</nowiki> produces {{H:title|Hello|example|link=yes}}.
* <nowiki>{{H:title|Hello|example|dotted=no}}</nowiki> produces {{H:title|Hello|example|dotted=no}}.
* <nowiki>{{H:title|Hello|example|link=yes|dotted=no}}</nowiki> produces {{H:title|Hello|example|link=yes|dotted=no}}.

===Accessibility issue===
This template uses a hover attribute, which is discouraged by [[Wikipedia:Manual of Style (accessibility)#Text]].

For marking abbreviations specifically, please use {{tl|abbr}} instead, because it is accessible to [[screen reader]] users.

<includeonly>{{Sandbox other||
<!-- Categories go below this line, please; interwikis go to Wikidata, thank you! -->
[[Category:Typing-aid templates]]

}}</includeonly>
Anonymous user