Difference between revisions of "Template:Hover title"
Jump to navigation
Jump to search
(Moving text to documentation.) |
m (Changed protection level for "Template:Hover title": protection no longer required ([Edit=Allow only autoconfirmed users] (expires 20:18, 1 February 2023 (UTC)) [Move=Allow only autoconfirmed users] (expires 20:18, 1 February 2023 (UTC)))) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#ifeq:{{{link}}}|yes|[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom:1px dotted"}}>{{{2}}}</span>]]|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom:1px dotted"}}>{{{2}}}</span>}}</includeonly> | + | <includeonly>{{#ifeq:{{{link}}}|yes|[[{{{2}}}|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom:1px dotted"}}>{{{2}}}</span>]]|<span title="{{{1}}}" {{#ifeq:{{{dotted|yes}}}|no||style="border-bottom:1px dotted"}}>{{{2}}}</span>}}</includeonly><!-- Add categories and interwikis to the /doc subpage, not here! --><noinclude> |
− | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
− | <noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 19:18, 1 February 2023
Description[edit]
This template displays pop-up text when hovering over a block of text.
Syntax[edit]
This template takes two optional and two required parameters.
- Optional
- link=yes/no (default is no if omitted)
- dotted=yes/no (default is yes if omitted)
- Required
- hover text (shown in pop-pup)
- display text (displayed on page with optional dotted underline)
{{Hover title|link=yes/no|dotted=yes/no|hover text|display text}}
Usage[edit]
This template is used primarily on header text in tables and infoboxes to explain the displayed text without taking up more space.
Sample Output[edit]
Hover over this display text.
The above documentation is transcluded from Template:Hover title/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |