Template:Tooltip: Difference between revisions

From Shiptest Wiki
Jump to navigationJump to search
(Modifying tooltip format in order to test.)
(Styling changes)
Line 1: Line 1:
<includeonly><span class='tooltip'>{{{1}}}<div class='tooltiptext'>{{{2}}}</div></span></includeonly><noinclude>
<includeonly><div class='tooltip' style="display:inline;">{{{1}}}<div class='tooltiptext' style='top:20px; background: #F7F7FF; z-index:200; left:5px; box-shadow: 0 0 .3em #999;'>{{{2}}}</div></div></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:

Revision as of 05:15, 4 July 2022

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!