Template:Hint: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
== Usage == | == Usage == | ||
For texts: | 1. For texts: | ||
<pre><nowiki>{{hint | Hello | World}}</nowiki></pre> | <pre><nowiki>{{hint | Hello | World}}</nowiki></pre> | ||
{{hint | Hello | World}} | Result: {{hint | Hello | World}} | ||
---- | |||
For icons, pass a third parameter to disable the subtle border | 2. For icons, pass a third parameter to disable the subtle border: | ||
<pre><nowiki>{{hint | [[File:Icon_Resource_Wood.png]] | Wood | 0}}</nowiki></pre> | <pre><nowiki>{{hint | [[File:Icon_Resource_Wood.png]] | Wood | 0}}</nowiki></pre> | ||
{{hint | [[File:Icon_Resource_Wood.png]] | Wood | 0}} | Result: {{hint | [[File:Icon_Resource_Wood.png]] | Wood | 0}} | ||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> | ||
Revision as of 15:33, 25 May 2026
A minor tooltip for short descriptions. As opposed to the "title" attribute, it has the following advantages:
- It's instant upon hover (has no delay)
- It uses a skin customized for Olden Era
Usage
1. For texts:
{{hint | Hello | World}}
Result: Hello World
2. For icons, pass a third parameter to disable the subtle border:
{{hint | [[File:Icon_Resource_Wood.png]] | Wood | 0}}


