Template:Tooltip: Difference between revisions
Jump to navigation
Jump to search
(Make tooltip focusable) |
HiddenDragon (talk | contribs) mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span aria-label="{{{2}}}" tabindex="0" class="bg3wiki-help-tooltip">{{{1}}}</span> | <includeonly><span aria-label="{{{2}}}" tabindex="0" class="bg3wiki-help-tooltip">{{{1}}}</span></includeonly><noinclude>{{documentation|content=Creates a hoverable tooltip. | ||
</includeonly><noinclude>{{documentation|content=Creates a hoverable tooltip. | |||
== Examples == | == Examples == | ||
{{Template demo | |||
< | | style = table | ||
{{tooltip|Hover me!|♪ Never gonna give you up ♪}} | | <nowiki>{{tooltip|Hover me!|♪ Never gonna give you up ♪}}</nowiki> | ||
</ | }} | ||
== Template data == | == Template data == | ||
<templatedata> | <templatedata> | ||
Line 31: | Line 26: | ||
"description": "This template creates text that can be hover to make a tooltip appear." | "description": "This template creates text that can be hover to make a tooltip appear." | ||
} | } | ||
</templatedata>}}</noinclude> | </templatedata> | ||
}} | |||
[[Category: Templates]] | |||
</noinclude> |
Latest revision as of 22:44, 19 January 2025
Template documentation
Creates a hoverable tooltip.
Examples
Markup | Renders as |
---|---|
{{tooltip|Hover me!|♪ Never gonna give you up ♪}} | Hover me! |
Template data
This template creates text that can be hover to make a tooltip appear.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Text | 1 | This text will be shown on the page with a visual indication it can be hovered. | String | required |
Hover text | 2 | This text will be seen when hovering the zone. | String | required |