Template:Kingdom/doc
(→Examples) |
|||
Line 38: | Line 38: | ||
===Using the imgwidth parameter=== | ===Using the imgwidth parameter=== | ||
− | <pre>{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler|imgwidth=125 | + | <pre>{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler |
+ | |imgwidth=125 | ||
|colony = 1 | |colony = 1 | ||
|bane = Chapel | |bane = Chapel | ||
}}</pre> | }}</pre> | ||
− | {{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler|imgwidth=125 | + | {{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler |
+ | |imgwidth=125 | ||
|colony = 1 | |colony = 1 | ||
|bane = Chapel | |bane = Chapel | ||
Line 54: | Line 56: | ||
===Mini with additional cards=== | ===Mini with additional cards=== | ||
− | <pre>{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler|imgwidth=125 | + | <pre>{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler |
+ | |imgwidth=125 | ||
|mini = 1 | |mini = 1 | ||
|colony = 1 | |colony = 1 | ||
|bane = Chapel | |bane = Chapel | ||
}}</pre> | }}</pre> | ||
− | {{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler|imgwidth=125 | + | {{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler |
+ | |imgwidth=125 | ||
|mini = 1 | |mini = 1 | ||
|colony = 1 | |colony = 1 | ||
Line 88: | Line 92: | ||
|cost = 1 | |cost = 1 | ||
}}</pre> | }}</pre> | ||
− | {{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler|colony = 1 | + | {{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler |
+ | |colony = 1 | ||
|bane = Chapel | |bane = Chapel | ||
|cost = 1 | |cost = 1 | ||
Line 99: | Line 104: | ||
|set = 1 | |set = 1 | ||
}}</pre> | }}</pre> | ||
− | {{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler|colony = 1 | + | {{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler |
+ | |colony = 1 | ||
|bane = Chapel | |bane = Chapel | ||
|set = 1 | |set = 1 | ||
}} | }} | ||
+ | |||
+ | ===Overlapping icon=== | ||
+ | Note that if you use <code>set</code> and the <code>imgwidth</code> is too small, the card name and icon may overlap: | ||
+ | <pre>{{Kingdom|Secret Chamber|Shanty Town|Philosopher's Stone|Baron|Bridge|Ironworks|Island|Cultist|Possession|Peddler | ||
+ | |imgwidth = 125 | ||
+ | |set = 1 | ||
+ | }}</pre> | ||
+ | {{Kingdom|Secret Chamber|Shanty Town|Philosopher's Stone|Baron|Bridge|Ironworks|Island|Cultist|Possession|Peddler | ||
+ | |imgwidth = 125 | ||
+ | |set = 1 | ||
+ | }} | ||
+ | The only solutions are to set a larger <code>imgwidth</code> or not use <code>set</code>......<br /> | ||
+ | This problem is not present with <code>mini</code> kingdoms. |
Revision as of 20:39, 11 November 2012
This template creates a table showing a kingdom of 10 cards.
Contents |
Usage
{{Kingdom|''card1''|''card2''|''card3''|...|''card10'' |imgwidth = | mini = | colony = | bane = | noadd = | cost = | set = }}
Parameters
Required
- cardn
- The name of the nth Card
Optional
- imgwidth
- The width of card images in pixels
- mini
- If not whitespace, no card image is shown. Note that
mini
forcescost
.
Additional cards
- colony
- Non-whitespace indicates Colony game
- bane
- If Young Witch is present, specify the bane card
Note that Potion and Ruins are automatically added and doesn't need to specified in parameters
- noadd
- Non-whitespace will hide the Addtional cards completely
- cost
- Non-whitespace will cause the costs of card to show up
- set
- Non-whitespace will cause the initials of the sets of card to show up
Examples
{{Kingdom|Chapel|Masquerade|Mining Village|Contraband|Mountebank|Saboteur|Treasury|Vault|Adventurer|King's Court}}
Chapel | Masquerade | Mining Village | Contraband | Mountebank | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Saboteur | Treasury | Vault | Adventurer | King's Court |
Using the imgwidth parameter
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler |imgwidth=125 |colony = 1 |bane = Chapel }}
Secret Chamber | Shanty Town | Baron | Bridge | Ironworks | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[[File:Peddler
.jpg|125px]] | ||||||||||||||
Island | Young Witch | Cultist | Possession | [[Peddler
]] !!style="border-left-width:0px; width:20px; text-align:right; "| | ||||||||||
Landscapes and Additional Cards | ||||||||||||||
Bane pile: Chapel |
Potion | Platinum | Colony | Ruins | ||||||||||
Using the mini parameter
{{Kingdom|Chapel|Masquerade|Mining Village|Contraband|Mountebank|Saboteur|Treasury|Vault|Adventurer|King's Court|mini=1}}
Chapel | Masquerade | Mining Village | Contraband | Mountebank | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Saboteur | Treasury | Vault | Adventurer | King's Court |
Mini with additional cards
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler |imgwidth=125 |mini = 1 |colony = 1 |bane = Chapel }}
Secret Chamber | Shanty Town | Baron | Bridge | Ironworks | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[[File:Peddler
.jpg|125px]] | ||||||||||||||
Island | Moneylender | Young Witch | Possession | [[Peddler
]] !!style="border-left-width:0px; width:20px; text-align:right; "| | ||||||||||
Landscapes and Additional Cards | ||||||||||||||
Bane pile: Chapel |
Potion | Platinum | Colony | |||||||||||
Using noadd
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler |imgwidth = 125 |mini = 1 |noadd = 1 |colony = 1 |bane = Chapel }}
Secret Chamber | Shanty Town | Baron | Bridge | Ironworks | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[[File:Peddler
.jpg|125px]] | ||||||||||||||
Island | Moneylender | Young Witch | Possession | [[Peddler
]] !!style="border-left-width:0px; width:20px; text-align:right; "| |
Using cost
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler |colony = 1 |bane = Chapel |cost = 1 }}
Secret Chamber | Shanty Town | Baron | Bridge | Ironworks | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[[File:Peddler
.jpg|200px]] | ||||||||||||||
Island | Young Witch | Cultist | Possession | [[Peddler
]] !!style="border-left-width:0px; width:20px; text-align:right; "| | ||||||||||
Landscapes and Additional Cards | ||||||||||||||
Bane pile: Chapel |
Potion | Platinum | Colony | Ruins | ||||||||||
Using set
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler |colony = 1 |bane = Chapel |set = 1 }}
Secret Chamber | Shanty Town | Baron | Bridge | Ironworks | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[[File:Peddler
.jpg|200px]] | ||||||||||||||
Island | Young Witch | Cultist | Possession | [[Peddler
]] !!style="border-left-width:0px; width:20px; text-align:right; "| | ||||||||||
Landscapes and Additional Cards | ||||||||||||||
Bane pile: Chapel |
Potion | Platinum | Colony | Ruins | ||||||||||
Overlapping icon
Note that if you use set
and the imgwidth
is too small, the card name and icon may overlap:
{{Kingdom|Secret Chamber|Shanty Town|Philosopher's Stone|Baron|Bridge|Ironworks|Island|Cultist|Possession|Peddler |imgwidth = 125 |set = 1 }}
Secret Chamber | Shanty Town | Philosopher's Stone | Baron | Bridge | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[[File:Peddler
.jpg|125px]] | ||||||||||||||
Ironworks | Island | Cultist | Possession | [[Peddler
]] !!style="border-left-width:0px; width:20px; text-align:right; "| | ||||||||||
Landscapes and Additional Cards | ||||||||||||||
Potion | Ruins | |||||||||||||
The only solutions are to set a larger imgwidth
or not use set
......
This problem is not present with mini
kingdoms.