Template:GoldIcon

From Baldur's Gate 3 Wiki
Revision as of 15:21, 31 August 2023 by Sky (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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}}

Examples:
{{GoldIcon|1}}
{{GoldIcon|2}}
{{GoldIcon|100|14}}
{{GoldIcon|500|20}}

One gold: Gold Pile Single Icon.png

2 gold: Gold Pile Small Icon.png

100 gold with icon height of 14: Gold Pile Medium Icon.png

500 gold with icon height of 20: Gold Pile Large Icon.png