Template:Kingdom/doc: Difference between revisions

From DominionStrategy Wiki
Jump to navigation Jump to search
M knox (talk | contribs)
No edit summary
Flynd (talk | contribs)
Update for Ally and Prophecy.
 
(10 intermediate revisions by 4 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      =
| bane      =
| ferryman  =
| dboon1   =
| dboon2    =
| dboon3    =


| colony  =
| event1    =
| bane    =
| event2    =
| shelters =
| landmark1 =
| landmark2 =
| project1  =
| project2  =
| way1      =
| way2      =


| show    =
| ally      =
| imgwidth =  
| prophecy  =
| cost     =
 
| set     =
| colony    =
| noadd   =
| 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==
Line 23: Line 45:
===Optional===
===Optional===
; title : Title (name) of the Kingdom
; 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)
; 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 : Non-whitespace will cause the table to be expanded by default
<!-- show isn't working. as of this edit, there is no input for it in the main Template: Kingdom
; imgwidth : The width of card images in pixels. Note that imgwidth smaller than 150 is not recommended as it tends to look bad.
; 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
; 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 32: 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 {{Card|Shelters}} game
 
Note that [[Potion]] and [[Ruins]] are automatically added and doesn't need to be specified in parameters
Note that {{Card|Potion}}, [[Ruins]], [[Boons]], and [[Hexes]] are automatically added and don'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|Underling|Druid|Fool|Sacred Grove|Tracker|Caravan Guard|Guide|Haunted Woods|Hireling|Mountain Shrine|
{{Kingdom|Chapel|Masquerade|Mining Village|Contraband|Mountebank|Saboteur|Treasury|Vault|Adventurer|King's Court|id = 0}}
|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
}}




===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