Template:Cost
From DominionStrategy Wiki
(Difference between revisions)
Werothegreat (Talk | contribs) |
|||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{# | + | {{#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> |
Revision as of 14:27, 2 March 2020
Template documentation [edit]
This template allows translating text cost into graphical cost.
Usage
- {{Cost}} →
- {{Cost|3}} →
- {{Cost|0*}} →
- {{Cost|?}} →
- {{Cost|x}} →
- {{Cost||||P}} →
- {{Cost|6|||P}} →
- {{Cost|||8}} →
- {{Cost|6||8}} →
- {{Cost|-|||P}} →
- {{Cost|6||8|P}} →
- {{Cost||m|-|P}} →
- {{Cost|5|l}} →
- {{Cost||l||P}} →
- {{Cost||l|8}} →
- {{Cost|-|l|-}} →
- {{Cost|6|l|8|P}} →
- {{Cost|5|xl}} →
- {{Cost|-|xl|-|P}} →
Obsolete Syntax
As of June 10th 2024 5:00pm UTC, the old "P" syntax where P is found within the first parameter has been made obsolete in lieu of the new parameterized syntax where the P is separated into a new fourth parameter.
As such, any instances of the "P" syntax are now broken and thus need to be replaced with the new parameterized syntax.
- {{Cost|6P}} → {{Cost|6|||P}}
- {{Cost|6P||8}} → {{Cost|6||8|P}}
- {{Cost|P|l}} → {{Cost||l||P}}
- {{Cost|6P|l|8}} → {{Cost|6|l|8|P}}