Difference between revisions of "Template:Tooltip"

From Idlescape Wiki
Jump to navigation Jump to search
m
m
 
Line 3: Line 3:
 
  |<span class="rt-commentedText tooltip {{#ifeq:{{yesno-yes|{{{dotted}}}}}|no||tooltip-dotted}} {{{class|}}}" {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} title="{{#tag:nowiki|{{#invoke:String|replace|{{{2|}}}|"|&quot;}}}}">{{{1|}}}</span>
 
  |<span class="rt-commentedText tooltip {{#ifeq:{{yesno-yes|{{{dotted}}}}}|no||tooltip-dotted}} {{{class|}}}" {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{style|}}}|style="{{{style}}}"}} title="{{#tag:nowiki|{{#invoke:String|replace|{{{2|}}}|"|&quot;}}}}">{{{1|}}}</span>
 
}}
 
}}
 +
<noinclude>{{/docs}}</noinclude>

Latest revision as of 10:57, 29 May 2024

Adds a tooltip to the text.

Readers on mobile devices typically do not have a mouse to hover with, and so generally cannot see tooltip contents. As of 2023, more English Wikipedia page views occur on mobile than on desktop browsers.

Consider using alternatives without the tooltip.

Example

BiS

Alternative

Best in slot (BiS)

Usage

{{Tooltip|The text|The tool tip}}

The text