Template:Cost: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
-->{{#if:{{{gold|}}} |<span style="white-space:nowrap;"> {{{gold}}}{{Gold|{{{lang|en}}}}}</span>|}}<!-- | |||
-->{{#if:{{{gold|}}}| {{{gold}}}{{Gold|{{{lang|en}}}}}|}}<!-- | -->{{#if:{{{wood|}}} |<span style="white-space:nowrap;"> {{{wood}}}{{Wood|{{{lang|en}}}}}</span>|}}<!-- | ||
-->{{#if:{{{wood|}}}| {{{wood}}}{{Wood|{{{lang|en}}}}}|}}<!-- | -->{{#if:{{{ore|}}} |<span style="white-space:nowrap;"> {{{ore}}}{{Ore|{{{lang|en}}}}}</span>|}}<!-- | ||
-->{{#if:{{{ore|}}}| {{{ore}}}{{Ore|{{{lang|en}}}}}|}}<!-- | -->{{#if:{{{gems|}}} |<span style="white-space:nowrap;"> {{{gems}}}{{Gems|{{{lang|en}}}}}</span>|}}<!-- | ||
-->{{#if:{{{gems|}}}| {{{gems}}}{{Gems|{{{lang|en}}}}}|}}<!-- | -->{{#if:{{{crystals|}}} |<span style="white-space:nowrap;"> {{{crystals}}}{{Crystals|{{{lang|en}}}}}</span>|}}<!-- | ||
-->{{#if:{{{crystals|}}}| {{{crystals}}}{{Crystals|{{{lang|en}}}}}|}}<!-- | -->{{#if:{{{mercury|}}} |<span style="white-space:nowrap;"> {{{mercury}}}{{Mercury|{{{lang|en}}}}}</span>|}}<!-- | ||
-->{{#if:{{{mercury|}}}| {{{mercury}}}{{Mercury|{{{lang|en}}}}}|}}<!-- | -->{{#if:{{{dust|}}} |<span style="white-space:nowrap;"> {{{dust}}}{{Dust|{{{lang|en}}}}}</span>|}}<!-- | ||
-->{{#if:{{{dust|}}}| {{{dust}}}{{Dust|{{{lang|en}}}}}|}}<!-- | -->{{#if:{{{graal|}}} |<span style="white-space:nowrap;"> {{{graal}}}{{Graal|{{{lang|en}}}}}</span>|}}<!-- | ||
-->{{#if:{{{graal|}}}| {{{graal}}}{{Graal|{{{lang|en}}}}}|}}<!-- | |||
-->{{#if:{{{gold|}}}{{{wood|}}}{{{ore|}}}{{{gems|}}}{{{crystals|}}}{{{mercury|}}}{{{dust|}}}{{{graal|}}}||—}}<!-- | -->{{#if:{{{gold|}}}{{{wood|}}}{{{ore|}}}{{{gems|}}}{{{crystals|}}}{{{mercury|}}}{{{dust|}}}{{{graal|}}}||—}}<!-- | ||
################################################################################ | ################################################################################ | ||
--></includeonly><noinclude> | --></includeonly><noinclude> | ||
Revision as of 05:52, 15 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=ja}}
Output: 100
ゴールド 10
木材 10
鉱石 10
宝石 10
クリスタル 10
水銀 10
錬金術の塵 10
聖杯
4. No cost
Input: {{Cost}}
Output: —


