Template:Cost
From DominionStrategy Wiki
(Difference between revisions)
Werothegreat (Talk | contribs) |
Werothegreat (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | {{#ifeq:{{{1|}}}|P| | + | {{#ifeq:{{{1|}}}|P||{{Coin|{{#switch:{{{1|}}}|0*=0star|3*=3star|4*=4star|5*=5star|6*=6star|8*=8star|2+=2plus|3+=3plus|4+=4plus|?=?|X|x=x|{{#iferror:{{#expr:{{{1|}}}}}|{{#ifeq:{{padleft:|2|{{{1|}}}}}|{{{1|}}}|{{padleft:|1|{{{1|}}}}}|{{padleft:|2|{{{1|}}}}}}}|{{{1|}}}}}}}|{{{2|}}}}}}}{{#if:{{{3|}}}|{{Debt|{{{3|}}}}}}}{{#switch:{{{1|0}}}|?|X|x=|{{#iferror:{{#expr: {{{1|}}}.0}}|{{P|{{{2|}}}}}|}}}}<noinclude> |
{{doc}} | {{doc}} | ||
</noinclude> | </noinclude> |
Revision as of 23:59, 9 May 2016
Template documentation [edit]
This template allows translating text cost into graphical cost
Usage
- {{Cost}} →
- {{Cost|3}} →
- {{Cost|0*}} →
- {{Cost|?}} →
- {{Cost|x}} →
- {{Cost|P}} →
- {{Cost|6P}} →
- {{Cost|||8}} →
- {{Cost|6||8}} →
- {{Cost|6P||8}} →
- {{Cost|5|l}} →
- {{Cost|P|l}} →
- {{Cost||l|8}} →
- {{Cost|6P|l|8}} →
- {{Cost|5|xl}} →