Template:Tooltip: Difference between revisions

From Shiptest Wiki
Jump to navigationJump to search
(Fucking did it, its the styling overhaul times... maybe, will use as test just in case)
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><div class='tooltip' style="display:inline;">{{{1}}}<div class='tooltiptext' style='top:20px; background: #{{{3|FFFFFF}}}; z-index:200; left:5px; box-shadow: 0 0 .3em #999;'>{{{2}}}</div></div><noinclude>[[Category:Templates]][[Category:Maintenance templates]][[Category:Misc Styling Templates]]</noinclude>
<includeonly><div class='tooltip' style="display:inline;">{{{1}}}<div class='tooltiptext' style='top:20px; background: #{{{3|FFFFFF}}}; z-index:200; left:5px; box-shadow: 0 0 .3em #999;'>{{{2}}}</div></div></includeonly><noinclude>
</includeonly><noinclude>
== About ==
== About ==
Adds a tooltip to a link. Used all around the wiki in all kinds of recipes:
Adds a tooltip to a link. Used all around the wiki in all kinds of recipes:
* [[Guide to drinks]]
* [[Guide to Food and Drinks]]
* [[Guide to food]]
* [[Guide to Chemistry]]
* [[Guide_to_chemistry]]
* ...
* ...


Line 41: Line 39:
}}
}}


[[Category:Templates]]
[[Category:Templates]][[Category:Maintenance templates]][[Category:Misc Styling Templates]]
</noinclude>
</noinclude>

Latest revision as of 21:26, 24 June 2023

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 me
Tool Tip Time!

Recursive

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