Template:Sandbox/Aurelain/Hint: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><templatestyles src="Template:Sandbox/Aurelain/Hint/styles.css" /><span class="wiki-hint {{#if:{{{3|}}}|wiki-hint-no-border}}">{{{1}}}<span class="wiki-hint-floating">{{{2}}}</span></span></includeonly><noinclude>
<includeonly><!--
--><templatestyles src="Template:Sandbox/Aurelain/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 13:
== Usage ==
== Usage ==
1. For texts:
1. For texts:
<pre><nowiki>{{Sandbox/Aurelain/Hint | Hello | World}}</nowiki></pre>
<code><nowiki>{{Sandbox/Aurelain/Hint | Hello | World}}</nowiki></code>
Result: {{Sandbox/Aurelain/Hint | Hello | World}}
Result: {{Sandbox/Aurelain/Hint | Hello | World}}
----
----
Line 14: Line 20:
Result: {{Sandbox/Aurelain/Hint | [[File:Icon_Resource_Wood.png]] | Wood | 0}}
Result: {{Sandbox/Aurelain/Hint | [[File:Icon_Resource_Wood.png]] | Wood | 0}}


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

Revision as of 09:26, 23 June 2026