Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Tooltip: Difference between revisions

Template page
No edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude><div class='tooltip' style="display:inline;">{{{1}}}<div class='tooltiptext' style="z-index:200; top:15px; left:10px; padding: 3px; display:inline;">{{{2}}}</div></div></onlyinclude>
<span class='tooltip'>{{{1}}}<span class='tooltiptext' style="z-index:200; top:18px; left:10px; padding: 3px; display:inline;">{{{2}}}</span></span><noinclude>
<!-- Taken from https://paradisestation.org/wiki -->
<!-- Taken from https://tgstation13.org/wiki -->


== Usage ==
== Usage ==
Line 6: Line 6:


<pre>
<pre>
{{Tooltip|bread|Yes this is bread [[File:Baguette.png]]}}
{{Tooltip|Bread|Microwave 1 Dough}}
</pre>
</pre>


Which will render like:  
Which will render like:  


{{Tooltip|bread|Yes this is bread [[File:Baguette.png]]}}
{{Tooltip|Bread|Microwave 1 Dough}}


[[Category:Templates]]
[[Category:Templates]]
</noinclude>

Latest revision as of 09:51, 25 December 2023

{{{1}}}{{{2}}}

Usage

This allows to show a tooltip when user mouse hovers the text:

{{Tooltip|Bread|Microwave 1 Dough}}

Which will render like:

BreadMicrowave 1 Dough