Template:Cost: Difference between revisions
Jump to navigation
Jump to search
Switching Template:Cost to the third and final version of the new parameterized syntax, removing both the warnings and backwards-compatibility with the "P" syntax. |
Changed it so that putting only the first parameter and setting it to P now causes a broken file link to appear to help indicate something is wrong with one's syntax. |
||
Line 1: | Line 1: | ||
{{#if:{{{1|}}}|{{#ifeq:{{{1|}}}{{{4|}}}|P||{{Coin|{{#ifeq:{{{1|}}}|-||{{{1|}}}}}|{{{2|}}}}}}}|{{#if:{{#switch:{{{4|}}}|P=P|{{{3|}}}}}||{{Coin||{{{2|}}}}}}}}}{{#if:{{{3|}}}|{{Debt|{{#ifeq:{{{3|}}}|-||{{{3|}}}}}|{{{2|}}}}}}}{{#ifeq:{{{4|}}}|P|{{P|{{{2|}}}}}}}<noinclude> | {{#if:{{{1|}}}|{{#ifeq:{{#if:{{{4|}}}|{{{1|}}}|}}{{{4|}}}|P||{{Coin|{{#ifeq:{{{1|}}}|-||{{{1|}}}}}|{{{2|}}}}}}}|{{#if:{{#switch:{{{4|}}}|P=P|{{{3|}}}}}||{{Coin||{{{2|}}}}}}}}}{{#if:{{{3|}}}|{{Debt|{{#ifeq:{{{3|}}}|-||{{{3|}}}}}|{{{2|}}}}}}}{{#ifeq:{{{4|}}}|P|{{P|{{{2|}}}}}}}<noinclude> | ||
{{doc}} | {{doc}} | ||
</noinclude> | </noinclude> |
Latest revision as of 04:30, 11 June 2024
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}}