Template:Kingdom/doc: Difference between revisions

From DominionStrategy Wiki
Jump to navigation Jump to search
No edit summary
Flynd (talk | contribs)
Update for Ally and Prophecy.
 
(19 intermediate revisions by 5 users not shown)
Line 2: Line 2:


==Usage==
==Usage==
<pre>{{Kingdom|''card1''|''card2''|''card3''|...|''card10''|imgwidth =  
<pre>{{Kingdom|''card1''|''card2''|''card3''|...|''card10''
| mini  =  
| appr_army =
| colony =  
| bane      =
| bane  =
| ferryman  =
| dboon1    =
| dboon2    =
| dboon3    =
 
| event1    =
| event2    =
| landmark1 =
| landmark2 =
| project1  =
| project2  =
| way1      =
| way2      =
 
| ally      =
| prophecy  =
 
| colony    =
| shelters  =
 
| imgwidth =  
| cost      =
| set      =
| noadd    =
 
| title    =
| id        =
}}</pre>
}}</pre>
<!-- "show" (for auto-expanding the table) isn't working. as of this edit, there is no input for it in the main Template: Kingdom
| show      =
-->


==Parameters==
==Parameters==
===Required===
===Required===
: <code>card<sub>n</sub></code> - The name of the n<sup>th</sup> Card
; card<sub>n</sub> : The name of the n<sup>th</sup> Card


===Optional===
===Optional===
: <code>imgwidth</code> - The width of card images in pixels
; title : Title (name) of the Kingdom
: <code>mini</code> - If not whitespace, no card image is shown
; id : This must be different for each Kingdom on the page so they don't collapse/expand together. Defaults to <code>title</code> (or 1 if <code>title</code> is not provided)
----
<!-- show isn't working. as of this edit, there is no input for it in the main Template: Kingdom
; 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 160 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====
: <code>colony</code> - Non-whitespace indicates {{Card|Colony}} game
; appr_army : If {{Prophecy|Approaching Army}} is present, specify the additional [[Attack]] pile.
: <code>bane</code> - If {{Card|Young Witch}} is present, specify the bane card
; bane : If {{Card|Young Witch}} is present, specify the bane pile.
Note that [[Potion]] is automatically added and doesn't need to specified in parameters
; ferryman : If {{Card|Ferryman}} is present, specify the pile to gain from when gaining Ferrymen.
; dboon1, 2, 3 : Specify which 3 [[Boons]] should be set aside for {{Card|Druid}}.


==Examples==
Note that card for {{way|Way of the Mouse}} is currently not supported.
<pre>{{Kingdom||}}</pre>
{{Kingdom
|card1 = Island
|cost1 = 2


|card2 = Secret Chamber
; events, landmarks, projects, ways : Specify which ones are in the kingdom, keeping in mind the designer's recommendation of a maximum of two total.
|cost2 = 2
; ally : Specify which [[Ally]] to use when the kingdom has [[Liason]] cards.
; prophecy : Specify which [[Prophecy]] to use when the kingdom has [[Omen]] cards.


|card3 = Shanty Town
; colony : Non-whitespace indicates {{Card|Colony}} game
|cost3 = 3
; shelters : Non-whitespace indicates [[Shelters]] game


|card4 = Baron
Note that {{Card|Potion}}, [[Ruins]], [[Boons]], and [[Hexes]] are automatically added and don't need to be specified in parameters.
|cost4 = 4


|card5 = Bridge
==Examples==
|cost5 = 4
<pre>{{Kingdom|Underling|Druid|Fool|Sacred Grove|Tracker|Caravan Guard|Guide|Haunted Woods|Hireling|Mountain Shrine|
|appr_army = Highwayman
|dboon1 = The Field's Gift
|dboon2 = The Sea's Gift
|dboon3 = The Sky's Gift
|event1 = Pilgrimage
|way1 = Way of the Ox
|ally = Architects' Guild
|prophecy = Approaching Army
|imgwidth = 160
|title = Lost in the Woods}}</pre>
{{Kingdom|Underling|Druid|Fool|Sacred Grove|Tracker|Caravan Guard|Guide|Haunted Woods|Hireling|Mountain Shrine|
|appr_army = Highwayman
|dboon1 = The Field's Gift
|dboon2 = The Sea's Gift
|dboon3 = The Sky's Gift
|event1 = Pilgrimage
|way1 = Way of the Ox
|ally = Architects' Guild
|prophecy = Approaching Army
|imgwidth = 160
|title = Lost in the Woods
}}


|card6 = Ironworks
|cost6 = 4


|card7 = Moneylender
===Using the imgwidth parameter===
|cost7 = 4
<pre>{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Overlord|Island|Young Witch|Cultist|Possession|Peddler|
|bane = Chapel
|event1 = Wedding
|landmark1 = Basilica
|colony = 1
|shelters = 1
|imgwidth = 160
}}</pre>
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Overlord|Island|Young Witch|Cultist|Possession|Peddler|
|bane = Chapel
|event1 = Wedding
|landmark1 = Basilica
|colony = 1
|shelters = 1
|imgwidth = 160
|id = 1
}}


|card8 = Remake
===Using noadd===
|cost8 = 4
<pre>{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Overlord|Island|Moneylender|Young Witch|Possession|Peddler|
|bane = Chapel
|event1 = Wedding
|landmark1 = Basilica
|colony = 1
|shelters = 1
|imgwidth = 160
|noadd = 1
}}</pre>
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Overlord|Island|Moneylender|Young Witch|Possession|Peddler|
|id = 2
|bane = Chapel
|event1 = Wedding
|landmark1 = Basilica
|colony = 1
|shelters = 1
|imgwidth = 160
|noadd = 1
}}


|card9 = Possession
===Using cost===
|cost9 = 6
<pre>{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Overlord|Island|Young Witch|Cultist|Possession|Peddler|
 
|bane = Chapel
|card10 = Peddler
|event1 = Wedding
|cost10 = 8*
|landmark1 = Basilica
|colony = 1
|shelters = 1
|cost = 1
}}</pre>
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Overlord|Island|Young Witch|Cultist|Possession|Peddler|
|bane = Chapel
|event1 = Wedding
|landmark1 = Basilica
|colony = 1
|shelters = 1
|cost = 1
|id = 3
}}
}}


===Using imgwidth parameter===
===Using set===
<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|Overlord|Island|Young Witch|Cultist|Possession|Peddler|
|bane = Chapel
|event1 = Wedding
|landmark1 = Basilica
|colony = 1
|colony = 1
|shelters = 1
|set = 1
}}</pre>
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Overlord|Island|Young Witch|Cultist|Possession|Peddler|
|bane = Chapel
|bane = Chapel
}}</pre>
|event1 = Wedding
{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Ironworks|Island|Moneylender|Young Witch|Possession|Peddler|imgwidth=125
|landmark1 = Basilica
|colony = 1
|colony = 1
|bane = Chapel
|shelters = 1
|set = 1
|id = 4
}}
}}

Latest revision as of 15:42, 16 September 2024

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

Usage

{{Kingdom|''card1''|''card2''|''card3''|...|''card10''
| appr_army =
| bane      =
| ferryman  =
| dboon1    =
| dboon2    =
| dboon3    =

| event1    =
| event2    =
| landmark1 =
| landmark2 =
| project1  =
| project2  =
| way1      =
| way2      =

| ally      =
| prophecy  =

| colony    =
| shelters  =

| imgwidth  = 
| cost      =
| set       =
| noadd     =

| title     =
| id        =
}}

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 if title is not provided)

imgwidth
The width of card images in pixels. Note that imgwidth smaller than 160 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

appr_army
If Approaching Army is present, specify the additional Attack pile.
bane
If Young Witch is present, specify the bane pile.
ferryman
If Ferryman is present, specify the pile to gain from when gaining Ferrymen.
dboon1, 2, 3
Specify which 3 Boons should be set aside for Druid.

Note that card for Way of the Mouse is currently not supported.

events, landmarks, projects, ways
Specify which ones are in the kingdom, keeping in mind the designer's recommendation of a maximum of two total.
ally
Specify which Ally to use when the kingdom has Liason cards.
prophecy
Specify which Prophecy to use when the kingdom has Omen cards.
colony
Non-whitespace indicates Colony game
shelters
Non-whitespace indicates Shelters game

Note that Potion, Ruins, Boons, and Hexes are automatically added and don't need to be specified in parameters.

Examples

{{Kingdom|Underling|Druid|Fool|Sacred Grove|Tracker|Caravan Guard|Guide|Haunted Woods|Hireling|Mountain Shrine|
|appr_army = Highwayman
|dboon1 = The Field's Gift
|dboon2 = The Sea's Gift
|dboon3 = The Sky's Gift
|event1 = Pilgrimage
|way1 = Way of the Ox
|ally = Architects' Guild
|prophecy = Approaching Army
|imgwidth = 160
|title = Lost in the Woods}}
Lost in the Woods [images]
Underling Druid Fool Sacred Grove Tracker
Caravan Guard Guide Haunted Woods Hireling Mountain Shrine
Landscapes and Additional Cards
Pile for Approaching Army
Highwayman
Boons Pilgrimage Way of the Ox Approaching Army Architects' Guild
Boons for Druid
The Field's Gift The Sea's Gift The Sky's Gift


Using the imgwidth parameter

{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Overlord|Island|Young Witch|Cultist|Possession|Peddler|
|bane = Chapel
|event1 = Wedding
|landmark1 = Basilica
|colony = 1
|shelters = 1
|imgwidth = 160
}}
[images]
Secret Chamber Shanty Town Baron Bridge Overlord
Island Young Witch Cultist Possession Peddler
Landscapes and Additional Cards
Bane pile:
Chapel
Potion Platinum Colony Ruins Shelters Wedding Basilica

Using noadd

{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Overlord|Island|Moneylender|Young Witch|Possession|Peddler|
|bane = Chapel
|event1 = Wedding
|landmark1 = Basilica
|colony = 1
|shelters = 1
|imgwidth = 160
|noadd = 1
}}
[images]
Secret Chamber Shanty Town Baron Bridge Overlord
Island Moneylender Young Witch Possession Peddler

Using cost

{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Overlord|Island|Young Witch|Cultist|Possession|Peddler|
|bane = Chapel
|event1 = Wedding
|landmark1 = Basilica
|colony = 1
|shelters = 1
|cost = 1
}}
[images]
$2 Secret Chamber $3 Shanty Town $4 Baron $4 Bridge 8D Overlord
$4 Island $4 Young Witch $5 Cultist $6P Possession $8* Peddler
Landscapes and Additional Cards
$2 Bane pile:
Chapel
$4 Potion $9 Platinum $11 Colony $0 Ruins $1 Shelters $43D Wedding Basilica

Using set

{{Kingdom|Secret Chamber|Shanty Town|Baron|Bridge|Overlord|Island|Young Witch|Cultist|Possession|Peddler|
|bane = Chapel
|event1 = Wedding
|landmark1 = Basilica
|colony = 1
|shelters = 1
|set = 1
}}
[images]
Secret Chamber Shanty Town Baron Bridge Overlord
Island Young Witch Cultist Possession Peddler
Landscapes and Additional Cards
Bane pile:
Chapel
Potion Platinum Colony Ruins Shelters Wedding Basilica