Template:Gold icon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
HiddenDragon (talk | contribs) mNo edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly | <includeonly>{{#ifexpr:{{{1}}} = 1|{{Icon|Gold Pile Single Item Image.png|{{{2|25}}} }}}}{{ | ||
#ifexpr:{{{1}}} > 1 and {{{1}}} < 100|{{Icon|Gold Pile Small Item | #ifexpr:{{{1}}} > 1 and {{{1}}} < 100|{{Icon|Gold Pile Small Item Image.png|{{{2|25}}} }}}}{{ | ||
#ifexpr:100 <= {{{1}}} and {{{1}}} < 500|{{Icon|Gold Pile Medium Item | #ifexpr:100 <= {{{1}}} and {{{1}}} < 500|{{Icon|Gold Pile Medium Item Image.png|{{{2|25}}} }}}}{{ | ||
#ifexpr:{{{1}}} >= 500|{{Icon|Gold Pile Large Item | #ifexpr:{{{1}}} >= 500|{{Icon|Gold Pile Large Item Image.png|{{{2|25}}} }}}}</includeonly><noinclude>{{Documentation|content= | ||
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. | ||
== Usage == | |||
<code><nowiki>{{Gold icon|quantity_of_gold|optional_icon_height}}</nowiki></code> | |||
== Examples == | |||
{{Template demo | |||
| style = table | |||
{{GoldIcon| | | caption 1 = 1 piece | ||
| <nowiki>{{GoldIcon|1}}</nowiki> | |||
{{GoldIcon|100 | | caption 2 = 2 - 99 pieces | ||
| <nowiki>{{GoldIcon|2}}</nowiki> | |||
< | | caption 3 = 100 - 499 pieces | ||
| <nowiki>{{GoldIcon|100}}</nowiki> | |||
| caption 4 = 500+ pieces | |||
| <nowiki>{{GoldIcon|500}}</nowiki> | |||
| caption 5 = 100 gold with 40px height | |||
| <nowiki>{{GoldIcon|100|40}}</nowiki> | |||
100 gold with | | caption 6 = 500 gold with 64px height | ||
| <nowiki>{{GoldIcon|500|64}}</nowiki> | |||
500 gold with | }} | ||
}} | |||
[[Category:Templates]] | |||
</noinclude> | </noinclude> |
Latest revision as of 11:52, 19 January 2025
Template documentation
This template takes a single parameter, the amount of gold, and produces the right gold icon for that quantity.
Usage
{{Gold icon|quantity_of_gold|optional_icon_height}}
Examples
Example | Markup | Renders as |
---|---|---|
1 piece | {{GoldIcon|1}} | ![]() |
2 - 99 pieces | {{GoldIcon|2}} | ![]() |
100 - 499 pieces | {{GoldIcon|100}} | ![]() |
500+ pieces | {{GoldIcon|500}} | ![]() |
100 gold with 40px height | {{GoldIcon|100|40}} | ![]() |
500 gold with 64px height | {{GoldIcon|500|64}} | ![]() |