Шаблон:Tooltip: различия между версиями
мНет описания правки |
мНет описания правки Метка: ручная отмена |
||
| Строка 1: | Строка 1: | ||
<includeonly>< | <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> | ||
</ | |||
== 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: | ||
| Строка 23: | Строка 18: | ||
|- | |- | ||
!1 | !1 | ||
|Text to be displayed | |Text to be displayed | ||
|- | |- | ||
!2 | !2 | ||
|Content of the tooltip-box | |Content of the tooltip-box | ||
|} | |} | ||
| Строка 34: | Строка 26: | ||
== Examples == | == Examples == | ||
=== Normal === | === Normal === | ||
<pre>{{Tooltip|hover me | <pre>{{Tooltip|hover me|Tool Tip Time!}}</pre> | ||
{{Tooltip|hover me | {{Tooltip|hover me|Tool Tip Time!}} | ||
=== Recursive === | |||
<pre>{{Tooltip | |||
|This... | |||
|{{Tooltip|is...|ONION!}} | |||
}}</pre> | |||
{{Tooltip | |||
|This... | |||
|{{Tooltip|is...|ONION!}} | |||
}} | |||
[[Category:Templates]][[Category:Maintenance templates]][[Category:Misc Styling Templates]] | [[Category:Templates]][[Category:Maintenance templates]][[Category:Misc Styling Templates]] | ||
</noinclude> | </noinclude> | ||
Текущая версия от 09:25, 13 июля 2026
About
Adds a tooltip to a link. Used all around the wiki in all kinds of recipes:
Key-functionality of the RecursiveChem-Templates like:
- Template:RecursiveChem/QuadrupleSec
- Template:RecursiveChem/BoiledRice
- Template:RecursiveChem/Pyroxadone
- ...
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!