Template:Cost: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| Line 32: | Line 32: | ||
3. Japanese: | 3. Japanese: | ||
{{Color|yellow|Input:}} <code><nowiki>{{Cost|gold=100|lang= | {{Color|yellow|Input:}} <code><nowiki>{{Cost|gold=100|wood=10|ore=10|gems=10|crystals=10|mercury=10|dust=10|graal=10|lang=fr}}</nowiki></code> | ||
{{Color|lime|Output:}} {{Cost|gold=100|lang= | {{Color|lime|Output:}} {{Cost|gold=100|wood=10|ore=10|gems=10|crystals=10|mercury=10|dust=10|graal=10|lang=fr}} | ||
---- | ---- | ||
Revision as of 17:04, 14 July 2026
Renders the value and currency icon of a cost in resources, supporting various combinations.
Usage
1. One:
Input: {{Cost|gold=100|lang=en}}
Output: 100
Gold
2. All:
Input: {{Cost|gold=100|wood=10|ore=10|gems=10|crystals=10|mercury=10|dust=10|graal=10|lang=en}}
Output: 100
Gold 10
Wood 10
Ore 10
Gems 10
Crystals 10
Mercury 10
Alchemical Dust 10
Grail
3. Japanese:
Input: {{Cost|gold=100|wood=10|ore=10|gems=10|crystals=10|mercury=10|dust=10|graal=10|lang=fr}}
Output: 100
Or 10
Bois 10
Minerai 10
Gemmes 10
Cristaux 10
Mercure 10
Poussière alchimique 10
Graal
4. No cost
Input: {{Cost}}
Output: —


