Template:Hint: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 5: Line 5:
* It uses a skin customized for Olden Era
* It uses a skin customized for Olden Era


== Use ==
== Usage ==
For texts:
For texts:
<pre><nowiki>{{hint | Hello | World}}</nowiki></pre>
<pre><nowiki>{{hint | Hello | World}}</nowiki></pre>
{{hint | Hello | World}}
For icons, pass a third parameter to disable the subtle border
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}}


== Example==
{{hint | Hello | World}}
{{hint | [[File:Icon_Resource_Wood.png]] | Wood | 0}}


[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Revision as of 15:31, 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

For texts:

{{hint | Hello | World}}

Hello World

For icons, pass a third parameter to disable the subtle border

{{hint | [[File:Icon_Resource_Wood.png]] | Wood | 0}}

Wood