User:Sky/GoldIcon: Difference between revisions
< User:Sky
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#ifexpr:{{{1}}} > | <includeonly><onlyinclude>{{#ifexpr:{{{1}}} = 1|{{Icon|Gold Pile Single Icon.png|{{{2|40}}} }}}}{{ | ||
{{User:Sky/GoldIcon|1}} | #ifexpr:{{{1}}} > 1 and {{{1}}} < 100|{{Icon|Gold Pile Small Icon.png|{{{2|40}}} }}}}{{ | ||
{{User:Sky/GoldIcon| | #ifexpr:100 <= {{{1}}} and {{{1}}} < 500|{{Icon|Gold Pile Medium Icon.png|{{{2|40}}} }}}}{{ | ||
</ | #ifexpr:{{{1}}} >= 500|{{Icon|Gold Pile Large Icon.png|{{{2|40}}} }}}}</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|optional_icon_height}}</nowiki></code> | |||
Examples: <pre> | |||
{{GoldIcon|1}} | |||
{{GoldIcon|2}} | |||
{{GoldIcon|100|14}} | |||
{{GoldIcon|500|20}} | |||
</pre> | |||
One gold: {{User:Sky/GoldIcon|1}} | |||
2 gold: {{User:Sky/GoldIcon|2}} | |||
100 gold: {{User:Sky/GoldIcon|100|14}} | |||
500 gold: {{User:Sky/GoldIcon|500|20}} | |||
</noinclude> |
Latest revision as of 14:20, 31 August 2023
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: {{GoldIcon|quantity_of_gold|optional_icon_height}}
{{GoldIcon|1}} {{GoldIcon|2}} {{GoldIcon|100|14}} {{GoldIcon|500|20}}
One gold:
2 gold:
100 gold:
500 gold: