Template:Card2cost

From DominionStrategy Wiki
Revision as of 10:39, 10 June 2024 by FCSplayz (talk | contribs) (Changed the Card2cost Template so it no longer returns a string and instead returns an instance of Cost directly as strings such as "8/8 Debt" already didn't work with the Cost Template. But setting the new 2nd parameter to Text will return a string.)
Jump to navigation Jump to search


This template converts a card name to its cost in its graphical or text equivalent.

Usage

{{Card2cost|name|mode}}

Parameters

Required

name - The name of the card. Note that it must be capitalized.

Optional

mode - The output mode for the cost of the card.
Graphics - Output the cost of the card using graphics (default).
Text - Output the cost of the card in text.

Examples

  • {{Card2cost|Woodcutter|Text}} →

3

  • {{Card2cost|Spoils}} →

$0*

  • {{Card2cost|Transmute|Text}} →

P

  • {{Card2cost|Possession}} →

$6P