Template:Card2cost: Difference between revisions

From DominionStrategy Wiki
Jump to navigation Jump to search
Added <noinclude> tags so it doesn't add the newline.
Removing the newline
Line 1: Line 1:
<noinclude><!-- Keep the #switch statements for parameter 2 in case another output mode can be thought of. -->
<!-- Keep the #switch statements for parameter 2 in case another output mode can be thought of. -->{{#switch:{{{1|}}}
</noinclude>{{#switch:{{{1|}}}
|Abandoned Mine |Advance |Alms |Borrow |Copper |Curse |Delay |Desperation |Haunted Mirror |Magic Lamp |Quest  
|Abandoned Mine |Advance |Alms |Borrow |Copper |Curse |Delay |Desperation |Haunted Mirror |Magic Lamp |Quest  
|Ruined Library |Ruined Market |Ruined Village |Ruins |Survivors
|Ruined Library |Ruined Market |Ruined Village |Ruins |Survivors

Revision as of 13:49, 10 June 2024

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