Template:Tooltip

From Oxygen Not Included Wiki
Jump to navigation Jump to search
Template-info.svg Documentation Edit this documentation at Template:Tooltip/doc.

Syntax

This Template can be used with named arguments like

{{Tooltip|text=displayed text|hover=stuff that appears on hover}}

or

{{Tooltip|hover=stuff that appears on hover|text=displayed text}}

or positional arguments, where the first argument has to be the displayed text

{{Tooltip|displayed text|stuff that appears on hover}}


Example

wikitext result
{{Tooltip|text=This hides some text|hover=Hidden text}} This hides some text
Hidden text
{{Tooltip|text=This hides an image and has a [[Duplicants|Link]]|hover= [[File:Duplicants preview.png]]}} This hides an image and has a Link
Duplicants preview.png
{{Tooltip | This hides an image, has a [[Duplicants|Link]], and the background is not formatted | [[File:Duplicants preview.png]] | nostyle }} This hides an image, has a Link, and the background is not formatted
Duplicants preview.png
{{Tooltip| Hiding another Template | {{Card|Oxygen Diffuser|width=120}} }} Hiding another Template
Oxygen Diffuser.pngOxygen Diffuser
{{Tooltip| Hiding a table | 
{{(!}} class{{=}}wikitable
{{!}} colspan{{=}}3 {{!}} Header
{{!-}}
{{!}}A1{{!!}}B1{{!!}}C1
{{!-}}
{{!}}A2{{!!}}B2
{{!}} rowspan{{=}}2 {{!}} C2
{{!-}}
{{!}}A3{{!!}}B3
{{!-}}
{{!}} colspan{{=}}2 {{!}}B3{{!!}}C3
{{!)}}
| nostyle
}}
Hiding a table
Header
A1 B1 C1
A2 B2 C2
A3 B3
B3 C3