Template:GoldIcon: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly><onlyinclude>{{#ifexpr:{{{1}}} = 1|{{Icon|Gold Pile Single Icon.png|{{{2|40}}} }}}}{{ #ifexpr:{{{1}}} > 1 and {{{1}}} < 100|{{Icon|Gold Pile Small Icon.png|{{{2|40}}} }}}}{{ #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 gol...") |
Llamageddon (talk | contribs) (Updated links for moved images (thought you would want the higher res for large piles).) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#ifexpr:{{{1}}} = 1|{{Icon|Gold Pile Single | <includeonly><onlyinclude>{{#ifexpr:{{{1}}} = 1|{{Icon|Gold Pile Single Item Image.png|{{{2|40}}} }}}}{{ | ||
#ifexpr:{{{1}}} > 1 and {{{1}}} < 100|{{Icon|Gold Pile Small | #ifexpr:{{{1}}} > 1 and {{{1}}} < 100|{{Icon|Gold Pile Small Item Image.png|{{{2|40}}} }}}}{{ | ||
#ifexpr:100 <= {{{1}}} and {{{1}}} < 500|{{Icon|Gold Pile Medium | #ifexpr:100 <= {{{1}}} and {{{1}}} < 500|{{Icon|Gold Pile Medium Item Image.png|{{{2|40}}} }}}}{{ | ||
#ifexpr:{{{1}}} >= 500|{{Icon|Gold Pile Large | #ifexpr:{{{1}}} >= 500|{{Icon|Gold Pile Large Item Image.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. | This template takes a single parameter, the amount of gold, and produces the right gold icon for that quantity. | ||
Line 13: | Line 13: | ||
{{GoldIcon|2}} | {{GoldIcon|2}} | ||
{{GoldIcon|100|14}} | {{GoldIcon|100|14}} | ||
{{GoldIcon|500| | {{GoldIcon|500|80}} | ||
</pre> | </pre> | ||
Line 22: | Line 22: | ||
100 gold with icon height of 14: {{GoldIcon|100|14}} | 100 gold with icon height of 14: {{GoldIcon|100|14}} | ||
500 gold with icon height of | 500 gold with icon height of 80: {{GoldIcon|500|80}} | ||
</noinclude> | </noinclude> |
Latest revision as of 07:59, 2 September 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|80}}
One gold:
2 gold:
100 gold with icon height of 14:
500 gold with icon height of 80: