Template:Cost
From DominionStrategy Wiki
(Difference between revisions)
Line 1: | Line 1: | ||
− | {{#ifeq:{{{1|}}}|P||{{Coin|{{#switch:{{#expr:{{{1|0}}}1}}|0=0star|8=8star|{{#iferror:{{#expr:{{{1|0}}}}}|{{#ifeq:{{padleft:|2|{{{1|}}}}}|{{{1|}}}|{{padleft:|1|{{{1|}}}}}|{{padleft:|2|{{{1|}}}}}}}|{{{1|0}}}}}}}}}}}{{#iferror:{{#expr: {{{1|}}}.0}}|{{P}}|}}<noinclude> | + | {{#ifeq:{{{1|}}}|P||{{Coin|{{#switch:{{#expr:{{{1|0}}}1}}|0=0star|8=8star|?=?|X|x=x|{{#iferror:{{#expr:{{{1|0}}}}}|{{#ifeq:{{padleft:|2|{{{1|}}}}}|{{{1|}}}|{{padleft:|1|{{{1|}}}}}|{{padleft:|2|{{{1|}}}}}}}|{{{1|0}}}}}}}}}}}{{#iferror:{{#expr: {{{1|}}}.0}}|{{P}}|}}<noinclude> |
{{doc}} | {{doc}} | ||
</noinclude> | </noinclude> |
Revision as of 04:39, 8 November 2012
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}} →