Template:Hover title: Difference between revisions
Appearance
| [checked revision] | [pending revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) Created page with "{{#ifeq:{{{link}}}|yes |[[{{{2}}}|<span title="{{{1}}}" class="rt-commentedText" {{#ifeq:{{{dotted|yes}}}|no| |style="border-bottom:1px dotted" }}>{{{2}}}</span>]] |<span..." |
Caleb Cooper (talk | contribs) m 1 revision imported |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>{{Being deleted|2020 December 19|Template:Hover_title_and_Template:Tooltip|merge=Template:Tooltip}}</noinclude>{{#ifeq:{{yesno-no|{{{link}}}}}|yes |
|||
{{#ifeq:{{{link}}}|yes |
|||
|[[{{{2}}}|<span title="{{{1}}}" class="rt-commentedText" {{#ifeq:{{{dotted |
|[[{{{2}}}|<span title="{{{1}}}" class="rt-commentedText" {{#ifeq:{{yesno-yes|{{{dotted}}}}}|no| |
||
|style="border-bottom:1px dotted" |
|style="border-bottom:1px dotted" |
||
}}>{{{2}}}</span>]] |
}}>{{{2}}}</span>]] |
||
|<span title="{{{1}}}" class="rt-commentedText" {{#ifeq:{{{dotted |
|<span title="{{{1}}}" class="rt-commentedText" {{#ifeq:{{yesno-yes|{{{dotted}}}}}|no| |
||
|style="border-bottom:1px dotted" |
|style="border-bottom:1px dotted" |
||
}}>{{{2}}}</span> |
}}>{{{2}}}</span> |
||
Latest revision as of 06:54, 21 April 2022
Template:Being deleted{{{2}}}
| 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.