Template:Cost

From Heroes of Might and Magic: Olden Era Official Wiki
Revision as of 05:42, 15 July 2026 by Aurelain (talk | contribs)


Renders the value and currency icon of a cost in resources, supporting various combinations.

Usage

1. One:

Input: {{Cost|gold=100|lang=en}}

Output: 100Gold


2. All:

Input: {{Cost|gold=100|wood=10|ore=10|gems=10|crystals=10|mercury=10|dust=10|graal=10|lang=en}}

Output: 100Gold10Wood10Ore10Gems10Crystals10Mercury10Alchemical Dust10Grail


3. Japanese:

Input: {{Cost|gold=100|wood=10|ore=10|gems=10|crystals=10|mercury=10|dust=10|graal=10|lang=ja}}

Output: 100ゴールド10木材10鉱石10宝石10クリスタル10水銀10錬金術の塵10聖杯


4. No cost

Input: {{Cost}}

Output: —