Template:Icon

From DominionStrategy Wiki
(Difference between revisions)
Jump to: navigation, search
Line 166: Line 166:
 
|Avanto              |Governor            |Stash              |Prince              |Summon              |Captain
 
|Avanto              |Governor            |Stash              |Prince              |Summon              |Captain
 
= Promo
 
= Promo
 +
 +
|Base Cards
 +
= Base Cards
 
}} 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 18:01, 3 May 2021

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