Template:FCSplayz/sandbox/5/doc: Difference between revisions

From DominionStrategy Wiki
Jump to navigation Jump to search
Testing
 
Testing
Line 24: Line 24:
==Obsolete Syntax==
==Obsolete Syntax==
As of (Insert Date Here), 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.<br/>
As of (Insert Date Here), 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.<br/>
As such, any instances of the "P" syntax are now broken, so they should be replaced.
As such, any instances of the "P" syntax are now broken, so they need to be replaced with the new parameterized syntax.
* <tt><nowiki>{{Cost|6P}}</nowiki> →  <nowiki>{{Cost|6|||P}}</nowiki></tt>
* <tt><nowiki>{{Cost|6P}}</nowiki> →  <nowiki>{{Cost|6|||P}}</nowiki></tt>
* <tt><nowiki>{{Cost|6P||8}}</nowiki> →  <nowiki>{{Cost|6||8|P}}</nowiki></tt>
* <tt><nowiki>{{Cost|6P||8}}</nowiki> →  <nowiki>{{Cost|6||8|P}}</nowiki></tt>

Revision as of 22:36, 9 June 2024

This template allows translating text cost into graphical cost

Usage

  • {{Cost}} → $
  • {{Cost|3}} → $3
  • {{Cost|0*}} → $0*
  • {{Cost|?}} → $?
  • {{Cost|x}} → $x
  • {{Cost||||P}} → P
  • {{Cost|6|||P}} → $6P
  • {{Cost|||8}} → 8D
  • {{Cost|6||8}} → $68D
  • {{Cost|-|||P}} → $P
  • {{Cost|6||8|P}} → $68DP
  • {{Cost||m|-|P}} → DP
  • {{Cost|5|l}} → $5
  • {{Cost||l||P}} → P
  • {{Cost||l|8}} → 8D
  • {{Cost|-|l|-}} → $D
  • {{Cost|6|l|8|P}} → $68DP
  • {{Cost|5|xl}} → $5
  • {{Cost|-|xl|-|P}} → $DP

Obsolete Syntax

As of (Insert Date Here), 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, so they 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}}