Template:Tooltip: Difference between revisions

From Yogstation-13
Jump to navigation Jump to search
(Created page with "<span class='tooltip'>{{{1}}}<span class='tooltiptext'>{{{2}}}</span></span>")
 
(Added includeonly-tags. Added documentation.)
 
Line 1: Line 1:
<span class='tooltip'>{{{1}}}<span class='tooltiptext'>{{{2}}}</span></span>
<includeonly><span class='tooltip'>{{{1}}}<span class='tooltiptext'>{{{2}}}</span></span></includeonly><noinclude>
== About ==
Adds a tooltip to a link. Used all around the wiki in all kinds of recipes:
* [[Guide to drinks]]
* [[Guide to food]]
* [[Guide_to_chemistry]]
* ...
 
Key-functionality of the RecursiveChem-Templates like:
* [[Template:RecursiveChem/QuadrupleSec]]
* [[Template:RecursiveChem/BoiledRice]]
* [[Template:RecursiveChem/Pyroxadone]]
* ...
 
== Parameter-Usage ==
{| class="wikitable"
!Parameter
!Description
|-
!1
|Text to be displayed
|-
!2
|Content of the tooltip-box
|}
 
== Examples ==
=== Normal ===
<pre>{{Tooltip|hover me|Tool Tip Time!}}</pre>
{{Tooltip|hover me|Tool Tip Time!}}
 
=== Recursive ===
<pre>{{Tooltip
|This...
|{{Tooltip|is...|ONION!}}
}}</pre>
{{Tooltip
|This...
|{{Tooltip|is...|ONION!}}
}}
 
[[Category:Templates]]
</noinclude>

Latest revision as of 21:47, 24 April 2020

About

Adds a tooltip to a link. Used all around the wiki in all kinds of recipes:

Key-functionality of the RecursiveChem-Templates like:

Parameter-Usage

Parameter Description
1 Text to be displayed
2 Content of the tooltip-box

Examples

Normal

{{Tooltip|hover me|Tool Tip Time!}}

hover meTool Tip Time!

Recursive

{{Tooltip
|This...
|{{Tooltip|is...|ONION!}}
}}

This... is...ONION!