Template:Hint: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
A minor tooltip for short descriptions
 
No edit summary
Line 1: Line 1:
<includeonly><templatestyles src="Template:Hint/styles.css" /><span class="wiki-hint">{{{1}}}<span class="wiki-hint-floating">{{{2}}}</span></span></includeonly><noinclude>
<includeonly><templatestyles src="Template:Hint/styles.css" /><span class="wiki-hint {{#if:{{{3|}}}|wiki-hint-no-border}}">{{{1}}}<span class="wiki-hint-floating">{{{2}}}</span></span></includeonly><noinclude>


A minor tooltip for short descriptions. As opposed to the "title" attribute, it has the following advantages:
A minor tooltip for short descriptions. As opposed to the "title" attribute, it has the following advantages:
Line 7: Line 7:
== Use ==
== Use ==


<pre><nowiki>{{hint|Hello|World}}.</nowiki></pre>
<pre><nowiki>
{{hint | Hello | World}}
{{hint | [[File:Icon_Resource_Wood.png]] | Wood | 0}}
</nowiki></pre>


== Example==
== Example==


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


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

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

Use

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

Example

Hello World Wood