Template:Cost
From DominionStrategy Wiki
(Difference between revisions)
(Undo revision 9094 by 188.143.232.12 (talk)) |
(Added "plus" costs) |
||
Line 1: | Line 1: | ||
− | {{#ifeq:{{{1|}}}|P||{{Coin|{{#switch:{{{1|}}}|0*=0star|8*=8star|?=?|X|x=x|{{#iferror:{{#expr:{{{1|}}}}}|{{#ifeq:{{padleft:|2|{{{1|}}}}}|{{{1|}}}|{{padleft:|1|{{{1|}}}}}|{{padleft:|2|{{{1|}}}}}}}|{{{1|}}}}}}}|{{{2|}}}}}}}{{#switch:{{{1|0}}}|?|X|x=|{{#iferror:{{#expr: {{{1|}}}.0}}|{{P|{{{2|}}}}}|}}}}<noinclude> | + | {{#ifeq:{{{1|}}}|P||{{Coin|{{#switch:{{{1|}}}|0*=0star|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|}}}}}}}{{#switch:{{{1|0}}}|?|X|x=|{{#iferror:{{#expr: {{{1|}}}.0}}|{{P|{{{2|}}}}}|}}}}<noinclude> |
{{doc}} | {{doc}} | ||
</noinclude> | </noinclude> |
Revision as of 15:55, 19 July 2013
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}} →