Template:Kingdom
From DominionStrategy Wiki
(Difference between revisions)
(Added expansions and whitespace stripping) |
(Change param name) |
||
Line 1: | Line 1: | ||
<table class="wikitable" style="font-variant:small-caps"> | <table class="wikitable" style="font-variant:small-caps"> | ||
<tr> | <tr> | ||
− | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{1|}}}}}}}}}}} [[{{strip|{{{1|}}}}}]]{{#if:{{{ | + | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{1|}}}}}}}}}}} [[{{strip|{{{1|}}}}}]]{{#if:{{{set|}}}|<sub style="float:right; margin-left:10px">[[{{Card2set|{{strip|{{{1|}}}}}}}|{{padleft:|1|{{Card2set|{{strip|{{{1|}}}}}}}}}]]</sub>}}</th> |
− | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{2|}}}}}}}}}}} [[{{strip|{{{2|}}}}}]]{{#if:{{{ | + | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{2|}}}}}}}}}}} [[{{strip|{{{2|}}}}}]]{{#if:{{{set|}}}|<sub style="float:right; margin-left:10px">[[{{Card2set|{{strip|{{{2|}}}}}}}|{{padleft:|1|{{Card2set|{{strip|{{{2|}}}}}}}}}]]</sub>}}</th> |
− | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{3|}}}}}}}}}}} [[{{strip|{{{3|}}}}}]]{{#if:{{{ | + | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{3|}}}}}}}}}}} [[{{strip|{{{3|}}}}}]]{{#if:{{{set|}}}|<sub style="float:right; margin-left:10px">[[{{Card2set|{{strip|{{{3|}}}}}}}|{{padleft:|1|{{Card2set|{{strip|{{{3|}}}}}}}}}]]</sub>}}</th> |
− | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{4|}}}}}}}}}}} [[{{strip|{{{4|}}}}}]]{{#if:{{{ | + | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{4|}}}}}}}}}}} [[{{strip|{{{4|}}}}}]]{{#if:{{{set|}}}|<sub style="float:right; margin-left:10px">[[{{Card2set|{{strip|{{{4|}}}}}}}|{{padleft:|1|{{Card2set|{{strip|{{{4|}}}}}}}}}]]</sub>}}</th> |
− | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{5|}}}}}}}}}}} [[{{strip|{{{5|}}}}}]]{{#if:{{{ | + | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{5|}}}}}}}}}}} [[{{strip|{{{5|}}}}}]]{{#if:{{{set|}}}|<sub style="float:right; margin-left:10px">[[{{Card2set|{{strip|{{{5|}}}}}}}|{{padleft:|1|{{Card2set|{{strip|{{{5|}}}}}}}}}]]</sub>}}</th> |
</tr>{{#if:{{{mini|}}}||<tr> | </tr>{{#if:{{{mini|}}}||<tr> | ||
<td>[[File:{{strip|{{{1|}}}}}.jpg|{{{imgwidth|200}}}px]]</td> | <td>[[File:{{strip|{{{1|}}}}}.jpg|{{{imgwidth|200}}}px]]</td> | ||
Line 19: | Line 19: | ||
<td>[[File:{{strip|{{{10|}}}}}.jpg|{{{imgwidth|200}}}px]]</td> | <td>[[File:{{strip|{{{10|}}}}}.jpg|{{{imgwidth|200}}}px]]</td> | ||
</tr>}}<tr> | </tr>}}<tr> | ||
− | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{6|}}}}}}}}}}} [[{{strip|{{{6|}}}}}]]{{#if:{{{ | + | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{6|}}}}}}}}}}} [[{{strip|{{{6|}}}}}]]{{#if:{{{set|}}}|<sub style="float:right; margin-left:10px">[[{{Card2set|{{strip|{{{6|}}}}}}}|{{padleft:|1|{{Card2set|{{strip|{{{6|}}}}}}}}}]]</sub>}}</th> |
− | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{7|}}}}}}}}}}} [[{{strip|{{{7|}}}}}]]{{#if:{{{ | + | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{7|}}}}}}}}}}} [[{{strip|{{{7|}}}}}]]{{#if:{{{set|}}}|<sub style="float:right; margin-left:10px">[[{{Card2set|{{strip|{{{7|}}}}}}}|{{padleft:|1|{{Card2set|{{strip|{{{7|}}}}}}}}}]]</sub>}}</th> |
− | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{8|}}}}}}}}}}} [[{{strip|{{{8|}}}}}]]{{#if:{{{ | + | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{8|}}}}}}}}}}} [[{{strip|{{{8|}}}}}]]{{#if:{{{set|}}}|<sub style="float:right; margin-left:10px">[[{{Card2set|{{strip|{{{8|}}}}}}}|{{padleft:|1|{{Card2set|{{strip|{{{8|}}}}}}}}}]]</sub>}}</th> |
− | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{9|}}}}}}}}}}} [[{{strip|{{{9|}}}}}]]{{#if:{{{ | + | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{9|}}}}}}}}}}} [[{{strip|{{{9|}}}}}]]{{#if:{{{set|}}}|<sub style="float:right; margin-left:10px">[[{{Card2set|{{strip|{{{9|}}}}}}}|{{padleft:|1|{{Card2set|{{strip|{{{9|}}}}}}}}}]]</sub>}}</th> |
− | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{10|}}}}}}}}}}} [[{{strip|{{{10|}}}}}]]{{#if:{{{ | + | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{strip|{{{10|}}}}}}}}}}} [[{{strip|{{{10|}}}}}]]{{#if:{{{set|}}}|<sub style="float:right; margin-left:10px">[[{{Card2set|{{strip|{{{10|}}}}}}}|{{padleft:|1|{{Card2set|{{strip|{{{10|}}}}}}}}}]]</sub>}}</th> |
</tr> | </tr> | ||
{{Kingdom/ifadd|{{strip|{{{1|}}}}}|{{strip|{{{2|}}}}}|{{strip|{{{3|}}}}}|{{strip|{{{4|}}}}}|{{strip|{{{5|}}}}}|{{strip|{{{6|}}}}}|{{strip|{{{7|}}}}}|{{strip|{{{8|}}}}}|{{strip|{{{9|}}}}}|{{strip|{{{10|}}}}}|bane={{{bane|}}}|colony={{{colony|}}}|noadd={{{noadd|}}}|true = <tr> | {{Kingdom/ifadd|{{strip|{{{1|}}}}}|{{strip|{{{2|}}}}}|{{strip|{{{3|}}}}}|{{strip|{{{4|}}}}}|{{strip|{{{5|}}}}}|{{strip|{{{6|}}}}}|{{strip|{{{7|}}}}}|{{strip|{{{8|}}}}}|{{strip|{{{9|}}}}}|{{strip|{{{10|}}}}}|bane={{{bane|}}}|colony={{{colony|}}}|noadd={{{noadd|}}}|true = <tr> | ||
<td colspan="5"> '''Additional cards'''</td> | <td colspan="5"> '''Additional cards'''</td> | ||
</tr><tr> | </tr><tr> | ||
− | {{#if:{{{bane|}}}|<th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{{bane}}}}}}}}} [[{{{bane}}}]] (Bane){{#if:{{{ | + | {{#if:{{{bane|}}}|<th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|{{Card2cost|{{{bane}}}}}}}}} [[{{{bane}}}]] (Bane){{#if:{{{set|}}}|<sub style="float:right; margin-left:10px">[[{{Card2set|{{{bane|}}}}}|{{padleft:|1|{{Card2set|{{{bane|}}}}}}}]]</sub>}}</th>}} |
− | {{Kingdom/potion|{{strip|{{{1|}}}}}|{{strip|{{{2|}}}}}|{{strip|{{{3|}}}}}|{{strip|{{{4|}}}}}|{{strip|{{{5|}}}}}|{{strip|{{{6|}}}}}|{{strip|{{{7|}}}}}|{{strip|{{{8|}}}}}|{{strip|{{{9|}}}}}|{{strip|{{{10|}}}}}|true=<th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|4}}}} [[Potion]]{{#if:{{{ | + | {{Kingdom/potion|{{strip|{{{1|}}}}}|{{strip|{{{2|}}}}}|{{strip|{{{3|}}}}}|{{strip|{{{4|}}}}}|{{strip|{{{5|}}}}}|{{strip|{{{6|}}}}}|{{strip|{{{7|}}}}}|{{strip|{{{8|}}}}}|{{strip|{{{9|}}}}}|{{strip|{{{10|}}}}}|true=<th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|4}}}} [[Potion]]{{#if:{{{set|}}}|<sub style="float:right; margin-left:10px">[[Alchemy|A]]</sub>}}</th>}} |
− | {{#if:{{{colony|}}}|<th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|9}}}} [[Platinum]]{{#if:{{{ | + | {{#if:{{{colony|}}}|<th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|9}}}} [[Platinum]]{{#if:{{{set|}}}|<sub style="float:right; margin-left:10px">[[Prosperity|P]]</sub>}}</th> |
− | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|11}}}} [[Colony]]{{#if:{{{ | + | <th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|11}}}} [[Colony]]{{#if:{{{set|}}}|<sub style="float:right; margin-left:10px">[[Prosperity|P]]</sub>}}</th>}} |
− | {{Kingdom/looter|{{strip|{{{1|}}}}}|{{strip|{{{2|}}}}}|{{strip|{{{3|}}}}}|{{strip|{{{4|}}}}}|{{strip|{{{5|}}}}}|{{strip|{{{6|}}}}}|{{strip|{{{7|}}}}}|{{strip|{{{8|}}}}}|{{strip|{{{9|}}}}}|{{strip|{{{10|}}}}}|true=<th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|0}}}} [[Ruins]]{{#if:{{{ | + | {{Kingdom/looter|{{strip|{{{1|}}}}}|{{strip|{{{2|}}}}}|{{strip|{{{3|}}}}}|{{strip|{{{4|}}}}}|{{strip|{{{5|}}}}}|{{strip|{{{6|}}}}}|{{strip|{{{7|}}}}}|{{strip|{{{8|}}}}}|{{strip|{{{9|}}}}}|{{strip|{{{10|}}}}}|true=<th>{{#if:{{{cost|}}}{{{mini|}}}|{{Cost|0}}}} [[Ruins]]{{#if:{{{set|}}}|<sub style="float:right; margin-left:10px">[[Dark Ages|D]]</sub>}}</th>}} |
{{#ifeq:{{Kingdom/colspan|{{strip|{{{1|}}}}}|{{strip|{{{2|}}}}}|{{strip|{{{3|}}}}}|{{strip|{{{4|}}}}}|{{strip|{{{5|}}}}}|{{strip|{{{6|}}}}}|{{strip|{{{7|}}}}}|{{strip|{{{8|}}}}}|{{strip|{{{9|}}}}}|{{strip|{{{10|}}}}}|bane={{{bane|}}}|colony={{{colony|}}}}}|0||<td rowspan="{{#if:{{{mini|}}}|1|2}}" colspan="{{Kingdom/colspan|{{strip|{{{1|}}}}}|{{strip|{{{2|}}}}}|{{strip|{{{3|}}}}}|{{strip|{{{4|}}}}}|{{strip|{{{5|}}}}}|{{strip|{{{6|}}}}}|{{strip|{{{7|}}}}}|{{strip|{{{8|}}}}}|{{strip|{{{9|}}}}}|{{strip|{{{10|}}}}}|bane={{{bane|}}}|colony={{{colony|}}}}}"> </td>}} | {{#ifeq:{{Kingdom/colspan|{{strip|{{{1|}}}}}|{{strip|{{{2|}}}}}|{{strip|{{{3|}}}}}|{{strip|{{{4|}}}}}|{{strip|{{{5|}}}}}|{{strip|{{{6|}}}}}|{{strip|{{{7|}}}}}|{{strip|{{{8|}}}}}|{{strip|{{{9|}}}}}|{{strip|{{{10|}}}}}|bane={{{bane|}}}|colony={{{colony|}}}}}|0||<td rowspan="{{#if:{{{mini|}}}|1|2}}" colspan="{{Kingdom/colspan|{{strip|{{{1|}}}}}|{{strip|{{{2|}}}}}|{{strip|{{{3|}}}}}|{{strip|{{{4|}}}}}|{{strip|{{{5|}}}}}|{{strip|{{{6|}}}}}|{{strip|{{{7|}}}}}|{{strip|{{{8|}}}}}|{{strip|{{{9|}}}}}|{{strip|{{{10|}}}}}|bane={{{bane|}}}|colony={{{colony|}}}}}"> </td>}} | ||
</tr>{{#if:{{{mini|}}}||<tr> | </tr>{{#if:{{{mini|}}}||<tr> |
Revision as of 08:08, 11 November 2012
[[]] | [[]] | [[]] | [[]] | [[]] |
---|---|---|---|---|
200px | 200px | 200px | 200px | 200px |
200px | 200px | 200px | 200px | 200px |
[[]] | [[]] | [[]] | [[]] | [[]] |
Template documentation [edit]
This template creates a table showing a kingdom of 10 cards.
Contents |
Usage
{{Kingdom|''card1''|''card2''|''card3''|...|''card10'' | title = | id = | colony = | bane = | shelters = | event1 = | event2 = | project1 = | project2 = <!-- Delete the artifacts you don't need... | artifact1 = Flag <!-- goes with Flag Bearer --> | artifact2 = Horn <!-- goes with Border Guard --> | artifact3 = Key <!-- goes with Treasurer --> | artifact4 = Lantern <!-- goes with Border Guard --> | artifact5 = Treasure Chest <!-- goes with Swashbuckler --> ...then delete both parts of this comment. --> | landmark1 = | landmark2 = | way1 = | way2 = | dboon1 = | dboon2 = | dboon3 = | 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 don't collapse/expand together. Defaults to
title
(or 1 iftitle
is not provided)
- 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
- shelters
- Non-whitespace indicates Shelters game
Note that Potion, Ruins, Boons, Hexes, and Artifacts [hopefully soon] are automatically added and don't need to be specified in parameters.
- events, projects, landmarks, ways
- Specify which ones are in the kingdom, keeping in mind the designer's recommendation of a maximum of two total.
- dboon1, 2, 3
- Specify which 3 Boons should be set aside for Druid.
Examples
{{Kingdom|Blessed Village|Druid|Fool|Sacred Grove|Tracker|Caravan Guard|Guide|Haunted Woods|Hireling|Ranger |dboon1 = The Sky's Gift |dboon2 = The Field's Gift |dboon3 = The Sea's Gift |event1 = Pilgrimage |imgwidth = 150 |title = Lost in the Woods}}
Lost in the Woods [images] | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Blessed Village | Druid | Fool | Sacred Grove | Tracker | |||||||||||||
Caravan Guard | Guide | Haunted Woods | Hireling | Ranger | |||||||||||||
Landscapes and Additional Cards | |||||||||||||||||
Boons | Pilgrimage | ||||||||||||||||
Boons for Druid | |||||||||||||||||
The Sky's Gift | The Field's Gift | The Sea's Gift | |||||||||||||||
Using the imgwidth parameter
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler| |imgwidth = 150 |colony = 1 |bane = Chapel |shelters = 1 }}
Secret Chamber | Shanty Town | Baron | Bridge | Ironworks | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Island | Young Witch | Cultist | Possession | Peddler | |||||||||||||
Landscapes and Additional Cards | |||||||||||||||||
Bane pile: Chapel |
Potion | Platinum | Colony | Ruins | Shelters | ||||||||||||
Using noadd
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler| |colony = 1 |bane = Chapel |shelters = 1 |imgwidth = 125 |noadd = 1 }}
Secret Chamber | Shanty Town | Baron | Bridge | Ironworks | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Island | Moneylender | Young Witch | Possession | Peddler |
Using cost
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler| |colony = 1 |bane = Chapel |shelters = 1 |cost = 1 }}
Secret Chamber | Shanty Town | Baron | Bridge | Ironworks | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Island | Young Witch | Cultist | Possession | Peddler | |||||||||||||
Landscapes and Additional Cards | |||||||||||||||||
Bane pile: Chapel |
Potion | Platinum | Colony | Ruins | Shelters | ||||||||||||
Using set
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Young Witch|Cultist|Possession|Peddler| |colony = 1 |bane = Chapel |shelters = 1 |set = 1 }}
Secret Chamber | Shanty Town | Baron | Bridge | Ironworks | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Island | Young Witch | Cultist | Possession | Peddler | |||||||||||||
Landscapes and Additional Cards | |||||||||||||||||
Bane pile: Chapel |
Potion | Platinum | Colony | Ruins | Shelters | ||||||||||||