Template:Kingdom/doc: Difference between revisions

From DominionStrategy Wiki
Jump to navigation Jump to search
Xanderox (talk | contribs)
m dropped the "show" line since it's not currently available
Flynd (talk | contribs)
Update for Ally and Prophecy.
 
(5 intermediate revisions by 3 users not shown)
Line 3: Line 3:
==Usage==
==Usage==
<pre>{{Kingdom|''card1''|''card2''|''card3''|...|''card10''
<pre>{{Kingdom|''card1''|''card2''|''card3''|...|''card10''
| title    =
| appr_army =
| id        =
 
| colony    =
| bane      =
| bane      =
| shelters =
| ferryman =
| dboon1    =
| dboon2    =
| dboon3    =


| event1    =
| event1    =
| event2    =
| event2    =
| landmark1 =
| landmark2 =
| project1  =
| project1  =
| project2  =
| project2  =
| landmark1 =
| landmark2 =
| way1      =
| way1      =
| way2      =
| way2      =
| dboon1    =
 
| dboon2    =
| ally      =
| dboon3   =
| prophecy  =
<!-- show isn't working. as of this edit, there is no input for it in the main Template: Kingdom
 
| show      = -->
| colony   =
| shelters  =
 
| imgwidth  =  
| imgwidth  =  
| cost      =
| cost      =
| set      =
| set      =
| noadd    =
| 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==
Line 39: Line 49:
<!-- show isn't working. as of this edit, there is no input for it in the main Template: Kingdom
<!-- 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 -->
; 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.
; 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
; 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
; set : Non-whitespace will cause the sets icons of card to show up
Line 45: Line 55:


====Additional cards====
====Additional cards====
; appr_army : If {{Prophecy|Approaching Army}} is present, specify the additional [[Attack]] pile.
; bane : If {{Card|Young Witch}} is present, specify the bane pile.
; 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}}.
Note that card for {{way|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 {{Card|Colony}} game
; colony : Non-whitespace indicates {{Card|Colony}} game
; bane : If {{Card|Young Witch}} is present, specify the bane card
; shelters : Non-whitespace indicates [[Shelters]] game
; shelters : Non-whitespace indicates [[Shelters]] game
Note that {{Card|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.
Note that {{Card|Potion}}, [[Ruins]], [[Boons]], and [[Hexes]] are automatically added and don't need to be specified in parameters.
; dboon1, 2, 3 : Specify which 3 Boons should be set aside for [[Druid]].


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




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


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


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


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