Template:Tooltip: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Created template for tooltip (code already existed in CSS).)
 
(Make tooltip focusable)
Line 1: Line 1:
<includeonly><span aria-label="{{{2}}}" 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.



Revision as of 13:05, 30 December 2023

Template documentation

Creates a hoverable tooltip.

Examples

Wikitext
{{tooltip|Hover me!|♪ Never gonna give you up ♪}}
Result

Hover me!

Template data

This template creates text that can be hover to make a tooltip appear.

Template parameters

ParameterDescriptionTypeStatus
Text1

This text will be shown on the page with a visual indication it can be hovered.

Stringrequired
Hover text2

This text will be seen when hovering the zone.

Stringrequired