Template:Cost
From DominionStrategy Wiki
(Difference between revisions)
(empty coins can now be enlarged) |
|||
Line 1: | Line 1: | ||
− | {{#if:{{{1|}}}|{{#ifeq:{{{1|}}}|P||{{Coin|{{#switch:{{{1|}}}|0*=0star|2*=2star|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|}}}||{{Coin||{{{2|}}}}}}}}}{{#if:{{{3|}}}|{{Debt|{{{3|}}}|{{{2|}}}}}}}{{#if:{{{1|}}}|{{#switch:{{{1|0}}}|?|X|x=|{{#iferror:{{#expr: {{{1|}}}.0}}|{{P|{{{2|}}}}}|}}}}}}<noinclude> | + | {{#if:{{{1|}}}|{{#ifeq:{{{1|}}}|P||{{Coin|{{#switch:{{{1|}}}|0*=0star|2*=2star|3*=3star|4*=4star|5*=5star|6*=6star|7*=7star|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|}}}||{{Coin||{{{2|}}}}}}}}}{{#if:{{{3|}}}|{{Debt|{{{3|}}}|{{{2|}}}}}}}{{#if:{{{1|}}}|{{#switch:{{{1|0}}}|?|X|x=|{{#iferror:{{#expr: {{{1|}}}.0}}|{{P|{{{2|}}}}}|}}}}}}<noinclude> |
{{doc}} | {{doc}} | ||
</noinclude> | </noinclude> |
Latest revision as of 14:27, 2 March 2020
Template documentation [edit]
This template allows translating text cost into graphical cost
[edit] 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}} →