Template:Kingdom/doc: Difference between revisions

From DominionStrategy Wiki
Jump to navigation Jump to search
Created page with "This template creates a table showing a kingdom. ==Usage== <pre>{{Kingdom | imgwidth = | card1 = | cost1 = | card2 = | cost2 = ... | card10 = | cost10 = }}<..."
 
No edit summary
Line 1: Line 1:
This template creates a table showing a kingdom.
This template creates a table showing a kingdom of 10 cards.


==Usage==
==Usage==
<pre>{{Kingdom
<pre>{{Kingdom|''card1''|''card2''|''card3''|...|''card10''|imgwidth =
| imgwidth =
| mini   =  
 
| colony =
| card1   =
| bane   =
| cost1    =
 
| card2    =
| cost2    =
...
| card10   =
| cost10   =
}}</pre>
}}</pre>


Line 18: Line 11:
===Required===
===Required===
: <code>card<sub>n</sub></code> - The name of the n<sup>th</sup> Card
: <code>card<sub>n</sub></code> - The name of the n<sup>th</sup> Card
: <code>cost<sub>n</sub></code> - The cost of the n<sup>th</sup> Card


===Optional===
===Optional===
: <code>imgwidth</code> - The width of image in pixels
: <code>imgwidth</code> - The width of card images in pixels
: <code>mini</code> - If not whitespace, no card image is shown
 
====Additional cards====
: <code>colony</code> - Non-whitespace indicates {{Card|Colony}} game
: <code>bane</code> - If {{Card|Young Witch}} is present, specify the bane card
Note that [[Potion]] is automatically added and doesn't need to specified in parameters


==Examples==
==Examples==
<pre>{{Kingdom
<pre>{{Kingdom||}}</pre>
|card1 = Island
|cost1 = 2
 
|card2 = Secret Chamber
|cost2 = 2
 
|card3 = Shanty Town
|cost3 = 3
 
|card4 = Baron
|cost4 = 4
 
|card5 = Bridge
|cost5 = 4
 
|card6 = Ironworks
|cost6 = 4
 
|card7 = Moneylender
|cost7 = 4
 
|card8 = Remake
|cost8 = 4
 
|card9 = Possession
|cost9 = 6
 
|card10 = Peddler
|cost10 = 8*
}}</pre>
{{Kingdom
{{Kingdom
|card1 = Island
|card1 = Island
Line 88: Line 56:


===Using imgwidth parameter===
===Using imgwidth parameter===
<pre>{{Kingdom
<pre>{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler|imgwidth=125
|imgwidth = 125
|colony = 1
 
|bane = Chapel
|card1 = Island
|cost1 = 2
 
|card2 = Secret Chamber
|cost2 = 2
 
|card3 = Shanty Town
|cost3 = 3
 
|card4 = Baron
|cost4 = 4
 
|card5 = Bridge
|cost5 = 4
 
|card6 = Ironworks
|cost6 = 4
 
|card7 = Moneylender
|cost7 = 4
 
|card8 = Remake
|cost8 = 4
 
|card9 = Possession
|cost9 = 6P
 
|card10 = Peddler
|cost10 = 8*
}}</pre>
}}</pre>
{{Kingdom
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler|imgwidth=125
|imgwidth = 125
|colony = 1
 
|bane = Chapel
|card1 = Island
|cost1 = 2
 
|card2 = Secret Chamber
|cost2 = 2
 
|card3 = Shanty Town
|cost3 = 3
 
|card4 = Baron
|cost4 = 4
 
|card5 = Bridge
|cost5 = 4
 
|card6 = Ironworks
|cost6 = 4
 
|card7 = Moneylender
|cost7 = 4
 
|card8 = Remake
|cost8 = 4
 
|card9 = Possession
|cost9 = 6P
 
|card10 = Peddler
|cost10 = 8*
}}
}}

Revision as of 05:12, 8 November 2012

This template creates a table showing a kingdom of 10 cards.

Usage

{{Kingdom|''card1''|''card2''|''card3''|...|''card10''|imgwidth = 
| mini   = 
| colony = 
| bane   =
}}

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

Additional cards

colony - Non-whitespace indicates Colony game
bane - If Young Witch is present, specify the bane card

Note that Potion is automatically added and doesn't need to specified in parameters

Examples

{{Kingdom||}}
[images]
[[]] [[]] [[]] [[]] [[]]
[[File:{{{1}}}.jpg|200px]] [[File:{{{2}}}.jpg|200px]] [[File:{{{3}}}.jpg|200px]] [[File:{{{4}}}.jpg|200px]] [[File:{{{5}}}.jpg|200px]]
[[File:{{{6}}}.jpg|200px]] [[File:{{{7}}}.jpg|200px]] [[File:{{{8}}}.jpg|200px]] [[File:{{{9}}}.jpg|200px]] [[File:{{{10}}}.jpg|200px]]
[[]] [[]] [[]] [[]] [[]]

Using imgwidth parameter

{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler|imgwidth=125
|colony = 1
|bane = Chapel
}}
[images]
Secret Chamber Shanty Town Baron Bridge Ironworks
Island Moneylender Young Witch Possession Peddler
Landscapes and Additional Cards
Bane pile:
Chapel
Potion Platinum Colony