Ad placeholder

User:Sky/GoldIcon: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><onlyinclude>{{#ifexpr:{{{1}}} > 5|true|false}}</onlyinclude></includeonly><noinclude>
<includeonly><onlyinclude>{{#ifexpr:{{{1}}} = 1|{{Icon|Gold Pile Single Icon.png}}}}{{
{{User:Sky/GoldIcon|1}}
#ifexpr:{{{1}}} > 1 and {{{1}}} < 100|{{Icon|Gold Pile Small Icon.png}}}}{{
{{User:Sky/GoldIcon|5}}
#ifexpr:100 <= {{{1}}} and {{{1}}} < 500|{{Icon|Gold Pile Medium Icon.png}}}}{{
#ifexpr:{{{1}}} >= 500|{{Icon|Gold Pile Large Icon.png}}}}</onlyinclude></includeonly><noinclude>
This template takes a single parameter, the amount of gold, and produces the right gold icon for that quantity.
 
TODO: Use an actual icon rather than the faded tooltip version.
 
Usage: <code><nowiki>{{GoldIcon|quantity_of_gold}}</nowiki></code>
 
Examples: <pre>
{{GoldIcon|1}}
{{GoldIcon|2}}
{{GoldIcon|100}}
{{GoldIcon|500}}
</pre>
 
One gold: {{User:Sky/GoldIcon|1}}
 
2 gold: {{User:Sky/GoldIcon|2}}
 
100 gold: {{User:Sky/GoldIcon|100}}
 
500 gold: {{User:Sky/GoldIcon|500}}
 
</noinclude>
</noinclude>

Navigation menu