Template:Tooltip: Difference between revisions

Jump to navigation Jump to search
794 bytes added ,  21:47, 24 April 2020
Added includeonly-tags. Added documentation.
(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>
1,133

edits

Navigation menu