Template:Hover title: Difference between revisions
Jump to navigation
Jump to search
m (1 revision imported) |
en>Primefac (Updating TFD template: discussion was relisted (XFDcloser)) |
||
Line 1: | Line 1: | ||
{{#ifeq:{{{link}}}|yes | {{#ifeq:{{yesno-no|{{{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> | ||
}}<noinclude> | }}<noinclude> | ||
{{Tfm/dated|page=Hover title|otherpage=Tooltip|link=Wikipedia:Templates for discussion/Log/2020 December 19#Template:Hover title and Template:Tooltip|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}} | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 01:11, 19 December 2020
{{{2}}}
This template is being considered for merging with Template:Tooltip. Please discuss this matter at this template's entry at templates for discussion to help reach a consensus.
Maintenance use only: 1. Edit the TfD log to create the discussion entry. 2. Please consider notifying the author(s) by placing {{subst:Tfmnotice|Hover title|Tooltip}} ~~~~ on their talk page(s). |
This template is used on approximately 6,500 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.
Transclusion count updated automatically (see documentation). |
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
{{H:title |spantitle |label |link=yes/no (defaults to "no") |dotted=yes/no (defaults to "yes") }}
Examples
- {{H:title|Hello|example}} produces example.
- {{H:title|Hello|example|link=yes}} produces example.
- {{H:title|Hello|example|dotted=no}} produces example.
- {{H:title|Hello|example|link=yes|dotted=no}} produces example.
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.