The wiki is currently a work in progress. If you'd like to help out, please check the Community Portal and our getting started guide. Also, check out our sister project on poewiki.net.

Template:Tooltip: Difference between revisions

From Path of Exile 2 Wiki
Jump to navigation Jump to search
m (4 revisions imported)
(Replaced with simple browser tooltip using title attribute. Use Template:Tooltip2 for hoverbox that can handle HTML content.)
Line 1: Line 1:
<span class="hoverbox c-tooltip"><span class="hoverbox__activator c-tooltip__activator">{{{1}}} {{#switch: {{{icon}}}
<span class="tooltip {{{class|}}}" {{#if:{{{id|}}}|id="{{{id}}}"}} title="{{#tag:nowiki|{{{2|}}}}}">{{{1|}}}</span><noinclude>
  |help = [[File:Help.svg|14px|link=|class=hoverbox__icon]]
{{Documentation}}
}}</span><span class="hoverbox__display c-tooltip__display">{{{2}}}</span></span><noinclude>
{{documentation}}
</noinclude>
</noinclude>

Revision as of 17:46, 20 March 2025

Template documentation[view] [edit] [history] [purge]


This template creates a tooltip for the given element.

Usage

This template may be used to offer readers supplemental information about an element in the form of a tooltip.

{{Tooltip|content element|tooltip text}}

Be aware that display of the tooltip is entirely dependent on the browser. Desktop browsers typically display the tooltip text when the user hovers their mouse over the element. Whereas mobile browsers do not usually provide any way to show the tooltip text.

Example

{{Tooltip|Undocumented|Discovered through player testing or datamining}}Undocumented

See also

This template was adapted from Template:Tooltip on Wikipedia.
Adaptation is noted for reference and attribution only. This template may differ from the original in function or in usage.