Template:Card2cost

From DominionStrategy Wiki
(Difference between revisions)
Jump to: navigation, search
(Added remaining missing cost cards)
(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.)
Line 2: Line 2:
 
|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
= 0
+
= {{#switch:{{{2|}}}|Text=0|{{Cost|0}}}}
  
 
|Bury |Hovel |Necropolis |Overgrown Estate |Poor House |Save |Shelters
 
|Bury |Hovel |Necropolis |Overgrown Estate |Poor House |Save |Shelters
= 1
+
= {{#switch:{{{2|}}}|Text=1|{{Cost|1}}}}
  
 
|Avoid |Bauble |Beggar |Black Cat |Border Guard |Cage |Candlestick Maker |Cellar |Chapel |Coin of the Realm |Courtyard |Crossroads |Deliver |Delve  
 
|Avoid |Bauble |Beggar |Black Cat |Border Guard |Cage |Candlestick Maker |Cellar |Chapel |Coin of the Realm |Courtyard |Crossroads |Deliver |Delve  
Line 12: Line 12:
 
|Pursue |Ratcatcher |Raze |Ride |Rush |Scouting Party |Search |Secret Chamber |Settlers |Shaman |Sleigh |Squire |Supplies |Sycophant |Tax |Toil
 
|Pursue |Ratcatcher |Raze |Ride |Rush |Scouting Party |Search |Secret Chamber |Settlers |Shaman |Sleigh |Squire |Supplies |Sycophant |Tax |Toil
 
|Town Crier |Tracker |Travelling Fair |Vagrant
 
|Town Crier |Tracker |Travelling Fair |Vagrant
= 2
+
= {{#switch:{{{2|}}}|Text=2|{{Cost|2}}}}
  
 
|Acting Troupe |Ambassador |Amulet |Anvil |Astrolabe |Banquet |Battle Plan |Black Market |Blacksmith |Bonfire |Camel Train |Caravan Guard |Cargo Ship  
 
|Acting Troupe |Ambassador |Amulet |Anvil |Astrolabe |Banquet |Battle Plan |Black Market |Blacksmith |Bonfire |Camel Train |Caravan Guard |Cargo Ship  
Line 22: Line 22:
 
|Storeroom |Stowaway |Student |Swindler |Taskmaster |Tent |Trade Route |Transport |Tunnel |Underling |Urchin |Vassal |Village |Warehouse |Watchtower
 
|Storeroom |Stowaway |Student |Swindler |Taskmaster |Tent |Trade Route |Transport |Tunnel |Underling |Urchin |Vassal |Village |Warehouse |Watchtower
 
|Wishing Well |Woodcutter |Workshop |Zombie Apprentice |Zombie Mason |Zombie Spy
 
|Wishing Well |Woodcutter |Workshop |Zombie Apprentice |Zombie Mason |Zombie Spy
= 3
+
= {{#switch:{{{2|}}}|Text=3|{{Cost|3}}}}
  
 
|Abundance |Acolyte |Advisor |Archer |Armory |Banish |Bard |Bargain |Baron |Bishop |Blessed Village |Blockade |Bounty_Hunter |Bridge |Broker |Bureaucrat  
 
|Abundance |Acolyte |Advisor |Archer |Armory |Banish |Bard |Bargain |Baron |Bishop |Blessed Village |Blockade |Bounty_Hunter |Bridge |Broker |Bureaucrat  
Line 35: Line 35:
 
|Spice Merchant |Spy |Swamp Shacks |Talisman |Taxman |Temple |Thief |Throne Room |Tiara |Tide Pools |Tools |Tournament |Town |Trader |Trail  
 
|Spice Merchant |Spy |Swamp Shacks |Talisman |Taxman |Temple |Thief |Throne Room |Tiara |Tide Pools |Tools |Tournament |Town |Trader |Trail  
 
|Transmogrify |Treasure Map |Villa |Village Green |Voyage |Walled Village |Wandering Minstrel |Weaver |Worker's Village |Young Witch
 
|Transmogrify |Treasure Map |Villa |Village Green |Voyage |Walled Village |Wandering Minstrel |Weaver |Worker's Village |Young Witch
= 4
+
= {{#switch:{{{2|}}}|Text=4|{{Cost|4}}}}
  
 
|Academy |Apprentice |Archive |Artificer |Avanto |Baker |Ball |Band of Misfits |Bandit |Bandit Camp |Barbarian |Barge |Bazaar |Berserker |Bridge Troll  
 
|Academy |Apprentice |Archive |Artificer |Avanto |Baker |Ball |Band of Misfits |Bandit |Bandit Camp |Barbarian |Barge |Bazaar |Berserker |Bridge Troll  
Line 51: Line 51:
 
|Swashbuckler |Tactician |Tormentor |Torturer |Trade |Trading Post |Tragic Hero |Treasure Trove |Treasurer |Treasury |Tribute |Trickster |Upgrade |Vampire  
 
|Swashbuckler |Tactician |Tormentor |Torturer |Trade |Trading Post |Tragic Hero |Treasure Trove |Treasurer |Treasury |Tribute |Trickster |Upgrade |Vampire  
 
|Vault |Venture |Villain |War Chest |Warlord |Wealthy Village |Werewolf |Wharf |Wheelwright |Wild Hunt |Windfall |Wine Merchant |Witch |Witch's Hut
 
|Vault |Venture |Villain |War Chest |Warlord |Wealthy Village |Werewolf |Wharf |Wheelwright |Wild Hunt |Windfall |Wine Merchant |Witch |Witch's Hut
= 5
+
= {{#switch:{{{2|}}}|Text=5|{{Cost|5}}}}
  
 
|Adventurer |Altar |Artisan |Barracks |Border Village |Captain |Conquest |Crop Rotation |Distant Shore |Fairgrounds |Farm |Farmland |Gold |Goons  
 
|Adventurer |Altar |Artisan |Barracks |Border Village |Captain |Conquest |Crop Rotation |Distant Shore |Fairgrounds |Farm |Farmland |Gold |Goons  
 
|Haunted Castle |Hireling |Hoard |Hunting Grounds |Innovation |Lich |Looting |Lost Arts |Marquis |Nobles |Raider |Sack of Loot |Sibyl |Stronghold  
 
|Haunted Castle |Hireling |Hoard |Hunting Grounds |Innovation |Lich |Looting |Lost Arts |Marquis |Nobles |Raider |Sack of Loot |Sibyl |Stronghold  
 
|Territory |Training
 
|Territory |Training
= 6
+
= {{#switch:{{{2|}}}|Text=6|{{Cost|6}}}}
  
 
|Bank |Canal |Expand |Forge |Inheritance |King's Cache |King's Court |Opulent Castle |Reap
 
|Bank |Canal |Expand |Forge |Inheritance |King's Cache |King's Court |Opulent Castle |Reap
= 7
+
= {{#switch:{{{2|}}}|Text=7|{{Cost|7}}}}
  
 
|Citadel |Enclave |Pathfinding |Prince |Province |Sprawling Castle
 
|Citadel |Enclave |Pathfinding |Prince |Province |Sprawling Castle
= 8
+
= {{#switch:{{{2|}}}|Text=8|{{Cost|8}}}}
  
 
|Grand Castle |Platinum
 
|Grand Castle |Platinum
= 9
+
= {{#switch:{{{2|}}}|Text=9|{{Cost|9}}}}
  
 
|Alliance |Invasion |King's Castle |Populate |Prosper
 
|Alliance |Invasion |King's Castle |Populate |Prosper
=10
+
= {{#switch:{{{2|}}}|Text=10|{{Cost|10}}}}
  
 
|Colony
 
|Colony
= 11  
+
= {{#switch:{{{2|}}}|Text=11|{{Cost|11}}}}
  
 
|Dominate
 
|Dominate
= 14
+
= {{#switch:{{{2|}}}|Text=12|{{Cost|12}}}}
  
 
|Transmute |Vineyard
 
|Transmute |Vineyard
= P
+
= {{#switch:{{{2|}}}|Text=P|{{Cost||||P}}}}
  
 
|Apothecary |Scrying Pool |University
 
|Apothecary |Scrying Pool |University
= 2P
+
= {{#switch:{{{2|}}}|Text=2P|{{Cost|2|||P}}}}
  
 
|Alchemist |Familiar |Philosopher's Stone
 
|Alchemist |Familiar |Philosopher's Stone
= 3P
+
= {{#switch:{{{2|}}}|Text=3P|{{Cost|3|||P}}}}
  
 
|Golem
 
|Golem
= 4P
+
= {{#switch:{{{2|}}}|Text=4P|{{Cost|4|||P}}}}
  
 
|Possession
 
|Possession
= 6P
+
= {{#switch:{{{2|}}}|Text=6P|{{Cost|6|||P}}}}
  
 
|Bag of Gold |Coronet |Courser |Demesne |Diadem |Followers |Housecarl |Huge Turnip |Madman |Mercenary |Princess |Renown |Spoils |Trusty Steed  
 
|Bag of Gold |Coronet |Courser |Demesne |Diadem |Followers |Housecarl |Huge Turnip |Madman |Mercenary |Princess |Renown |Spoils |Trusty Steed  
 
|Will-o'-Wisp |Wish
 
|Will-o'-Wisp |Wish
= 0*
+
= {{#switch:{{{2|}}}|Text=0*|{{Cost|0*}}}}
  
 
|Bat |Imp
 
|Bat |Imp
= 2*
+
= {{#switch:{{{2|}}}|Text=2*|{{Cost|2*}}}}
  
 
|Horse |Soldier |Treasure Hunter
 
|Horse |Soldier |Treasure Hunter
= 3*
+
= {{#switch:{{{2|}}}|Text=3*|{{Cost|3*}}}}
  
 
|Fugitive |Ghost |Warrior
 
|Fugitive |Ghost |Warrior
= 4*
+
= {{#switch:{{{2|}}}|Text=4*|{{Cost|4*}}}}
  
 
|Disciple |Fisherman |Hero
 
|Disciple |Fisherman |Hero
= 5*
+
= {{#switch:{{{2|}}}|Text=5*|{{Cost|5*}}}}
  
 
|Champion |Destrier |Grand Market |Teacher |Wayfarer
 
|Champion |Destrier |Grand Market |Teacher |Wayfarer
= 6*
+
= {{#switch:{{{2|}}}|Text=6*|{{Cost|6*}}}}
  
 
|Amphora |Animal Fair |Doubloons |Endless Chalice |Figurehead |Hammer |Insignia |Jewels |Loot |Orb |Prize Goat |Puzzle Box |Sextant |Shield  
 
|Amphora |Animal Fair |Doubloons |Endless Chalice |Figurehead |Hammer |Insignia |Jewels |Loot |Orb |Prize Goat |Puzzle Box |Sextant |Shield  
 
|Spell Scroll |Staff |Sword
 
|Spell Scroll |Staff |Sword
= 7*
+
= {{#switch:{{{2|}}}|Text=7*|{{Cost|7*}}}}
  
 
|Peddler
 
|Peddler
= 8*
+
= {{#switch:{{{2|}}}|Text=8*|{{Cost|8*}}}}
  
 
|Farrier |Stonemason
 
|Farrier |Stonemason
= 2+
+
= {{#switch:{{{2|}}}|Text=2+|{{Cost|2+}}}}
  
 
|Doctor |Infirmary |Masterpiece
 
|Doctor |Infirmary |Masterpiece
= 3+
+
= {{#switch:{{{2|}}}|Text=3+|{{Cost|3+}}}}
  
 
|Herald
 
|Herald
= 4+
+
= {{#switch:{{{2|}}}|Text=4+|{{Cost|4+}}}}
  
 
|Engineer
 
|Engineer
= 4 Debt
+
= {{#switch:{{{2|}}}|Text=4 Debt|{{Cost|||4}}}}
  
 
|Triumph
 
|Triumph
= 5 Debt
+
= {{#switch:{{{2|}}}|Text=5 Debt|{{Cost|||5}}}}
  
 
|Annex |City Quarter |Donate |Overlord |Royal Blacksmith
 
|Annex |City Quarter |Donate |Overlord |Royal Blacksmith
= 8 Debt
+
= {{#switch:{{{2|}}}|Text=8 Debt|{{Cost|||8}}}}
  
 
|Wedding
 
|Wedding
= 4/3 Debt
+
= {{#switch:{{{2|}}}|Text=4/3 Debt|{{Cost|4||3}}}}
  
 
|Fortune
 
|Fortune
= 8/8 Debt
+
= {{#switch:{{{2|}}}|Text=8/8 Debt|{{Cost|8||8}}}}
  
 
}}<noinclude>
 
}}<noinclude>
 
{{doc}}
 
{{doc}}
 
</noinclude>
 
</noinclude>

Revision as of 06:28, 10 June 2024

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

Contents

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
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Toolbox