User:FCSplayz/sandbox/4

From DominionStrategy Wiki
Revision as of 22:01, 5 June 2024 by FCSplayz (talk | contribs) (Testing)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

$

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|6P}} → $6P
  • {{Cost|||8}} → 8D
  • {{Cost|6||8}} → $68D
  • {{Cost|6P||8}} → $6P8D
  • {{Cost|5|l}} → $5
  • {{Cost|P|l}} → $P
  • {{Cost||l|8}} → 8D
  • {{Cost|6P|l|8}} → $6P8D
  • {{Cost|5|xl}} → $5

New Syntax

The old "P" syntax where P is found within the first parameter is being made obsolete in lieu of the new parameterized syntax where the P is separated into a new fourth parameter.
Henceforth, any instances of the "P" syntax found should be replaced with the respective 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}}


The syntactical changes also allow for new functionality with the ability to put "-" in the Coin and Debt parameters, allowing the empty Coin and Debt images to be displayed.

  • {{Cost|-|||P}} → $P
  • {{Cost|||-|P}} → DP
  • {{Cost|-||-}} → $D
  • {{Cost|-||-|P}} → $DP