Template:Kingdom/doc
From DominionStrategy Wiki
(Difference between revisions)
(→Examples) |
|||
Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
<pre>{{Kingdom|''card1''|''card2''|''card3''|...|''card10'' | <pre>{{Kingdom|''card1''|''card2''|''card3''|...|''card10'' | ||
− | | | + | | title = |
− | | | + | | id = |
− | | colony | + | | colony = |
− | | bane | + | | bane = |
− | | | + | | show = |
− | | cost | + | | imgwidth = |
− | | set | + | | cost = |
+ | | set = | ||
+ | | noadd = | ||
}}</pre> | }}</pre> | ||
Line 19: | Line 21: | ||
===Optional=== | ===Optional=== | ||
− | ; | + | ; title : Title (name) of the Kingdom |
− | ; | + | ; id : This must be different for each Kingdom on the page so they does not collapse/expand together. Defaults to <code>title</code> (or 1 if <code>title</code> is not provided) |
+ | ---- | ||
+ | ; show : Non-whitespace will cause the table to be expanded by default | ||
+ | ; imgwidth : The width of card images in pixels. Note that imgwidth smaller than 150 is not recommended as it tends to look bad. | ||
+ | ; cost : Non-whitespace will cause the costs of card to show up | ||
+ | ; set : Non-whitespace will cause the sets icons of card to show up | ||
+ | ; noadd : Non-whitespace will hide the additional cards completely | ||
====Additional cards==== | ====Additional cards==== | ||
; colony : Non-whitespace indicates {{Card|Colony}} game | ; colony : Non-whitespace indicates {{Card|Colony}} game | ||
; bane : If {{Card|Young Witch}} is present, specify the bane card | ; bane : If {{Card|Young Witch}} is present, specify the bane card | ||
− | Note that [[Potion]] and [[Ruins]] are automatically added and doesn't need to specified in parameters | + | Note that [[Potion]] and [[Ruins]] are automatically added and doesn't need to be specified in parameters |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
==Examples== | ==Examples== | ||
<pre>{{Kingdom|Chapel|Masquerade|Mining Village|Contraband|Mountebank|Saboteur|Treasury|Vault|Adventurer|King's Court}}</pre> | <pre>{{Kingdom|Chapel|Masquerade|Mining Village|Contraband|Mountebank|Saboteur|Treasury|Vault|Adventurer|King's Court}}</pre> | ||
− | {{Kingdom|Chapel|Masquerade|Mining Village|Contraband|Mountebank|Saboteur|Treasury|Vault|Adventurer|King's Court}} | + | {{Kingdom|Chapel|Masquerade|Mining Village|Contraband|Mountebank|Saboteur|Treasury|Vault|Adventurer|King's Court|id = 0}} |
===Using the imgwidth parameter=== | ===Using the imgwidth parameter=== | ||
<pre>{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler | <pre>{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler | ||
− | |imgwidth= | + | |imgwidth = 150 |
|colony = 1 | |colony = 1 | ||
|bane = Chapel | |bane = Chapel | ||
}}</pre> | }}</pre> | ||
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler | {{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler | ||
− | | | + | |id = 1 |
|colony = 1 | |colony = 1 | ||
|bane = Chapel | |bane = Chapel | ||
+ | |imgwidth = 150 | ||
}} | }} | ||
− | + | ===Using noadd=== | |
− | ===Using | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<pre>{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler | <pre>{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler | ||
− | |||
− | |||
|colony = 1 | |colony = 1 | ||
|bane = Chapel | |bane = Chapel | ||
+ | |imgwidth = 125 | ||
+ | |noadd = 1 | ||
}}</pre> | }}</pre> | ||
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler | {{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler | ||
− | | | + | |id = 2 |
− | + | ||
|colony = 1 | |colony = 1 | ||
|bane = Chapel | |bane = Chapel | ||
− | |||
− | |||
− | |||
− | |||
− | |||
|imgwidth = 125 | |imgwidth = 125 | ||
− | |||
|noadd = 1 | |noadd = 1 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
Line 93: | Line 75: | ||
}}</pre> | }}</pre> | ||
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler | {{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler | ||
+ | |id = 3 | ||
|colony = 1 | |colony = 1 | ||
|bane = Chapel | |bane = Chapel | ||
Line 105: | Line 88: | ||
}}</pre> | }}</pre> | ||
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler | {{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler | ||
+ | |id = 4 | ||
|colony = 1 | |colony = 1 | ||
|bane = Chapel | |bane = Chapel | ||
|set = 1 | |set = 1 | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 22:21, 15 November 2012
This template creates a table showing a kingdom of 10 cards.
Contents |
Usage
{{Kingdom|''card1''|''card2''|''card3''|...|''card10'' | title = | id = | colony = | bane = | show = | imgwidth = | cost = | set = | noadd = }}
Parameters
Required
- cardn
- The name of the nth Card
Optional
- title
- Title (name) of the Kingdom
- id
- This must be different for each Kingdom on the page so they does not collapse/expand together. Defaults to
title
(or 1 iftitle
is not provided)
- show
- Non-whitespace will cause the table to be expanded by default
- imgwidth
- The width of card images in pixels. Note that imgwidth smaller than 150 is not recommended as it tends to look bad.
- cost
- Non-whitespace will cause the costs of card to show up
- set
- Non-whitespace will cause the sets icons of card to show up
- noadd
- Non-whitespace will hide the additional cards completely
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 be specified in parameters
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 = 150 |colony = 1 |bane = Chapel }}
Secret Chamber | Shanty Town | Baron | Bridge | Ironworks | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[[File:Peddler
.jpg|150px]] | ||||||||||||||
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 noadd
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler |colony = 1 |bane = Chapel |imgwidth = 125 |noadd = 1 }}
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 | ||||||||||