Template:Icon

From DominionStrategy Wiki
(Difference between revisions)
Jump to: navigation, search
Line 133: Line 133:
  
 
|Black Market        |Church              |Dismantle          |Envoy              |Walled Village      |Sauna               
 
|Black Market        |Church              |Dismantle          |Envoy              |Walled Village      |Sauna               
|Avanto              |Governor            |Stash              |Prince              |Summon = Promo
+
|Avanto              |Governor            |Stash              |Prince              |Summon             |Captain = Promo
 
}} icon.png{{#if:{{{2|}}}|{{!}}{{{2}}}}}|link={{#if:{{Card2set|{{{1|}}}}}|{{Card2set|{{{1|}}}}}|{{{1|}}}}}]]<noinclude>
 
}} icon.png{{#if:{{{2|}}}|{{!}}{{{2}}}}}|link={{#if:{{Card2set|{{{1|}}}}}|{{Card2set|{{{1|}}}}}|{{{1|}}}}}]]<noinclude>
 
{{doc}}</noinclude>
 
{{doc}}</noinclude>

Revision as of 10:36, 15 June 2019

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