Template:Icon

From DominionStrategy Wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
[[{{#switch:{{{1|}}}
+
[[File:{{#switch:{{{1|}}}
 
|Cellar              |Chapel              |Moat                |Chancellor          |Village
 
|Cellar              |Chapel              |Moat                |Chancellor          |Village
 
|Woodcutter          |Workshop            |Bureaucrat          |Feast              |Gardens
 
|Woodcutter          |Workshop            |Bureaucrat          |Feast              |Gardens

Revision as of 08:57, 11 November 2012

Icon.png

This template converts a card name to its set/expansion icon.

Contents

Usage

{{Icon|name|size}}

Parameters

Required

name 
The name of the card (or expansion). Note that it must be properly capitalized.

Optional

size 
numberpx - the size of the icon; if omitted, the icon will be displayed in its full size.

Examples

  • {{Icon|Gold|24px}} → Dominion icon.png
  • {{Icon|Spoils|18px}} → Dark Ages icon.png
  • {{Icon|Jack of All Trades|22px}} → Hinterlands icon.png
  • {{Icon|Prosperity|20px}} → Prosperity icon.png
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Toolbox