Template:Unit data
Parameter name | Variable name | Units field(s) | Value |
---|---|---|---|
name
|
name
|
name |
|
plural
|
plural
|
plural |
|
article
|
article
|
article |
|
portrait
|
portrait
|
portrait |
|
panel
|
panel
|
panel |
|
tooltip
|
tooltip
|
tooltip |
|
position
|
position
|
position |
|
health
|
health
|
health |
|
supply
|
supply
|
supply |
|
stamina
|
stamina
|
stamina |
|
exhaust
|
exhaust
|
exhaust |
|
ability_exhaust
|
ability_exhaust
|
ability_exhaust |
|
lifespan
|
lifespan
|
lifespan |
|
build_time
|
build_time
|
build_time prompt |
|
cost_gold
|
cost_gold
|
cost_gold |
|
cost_green
|
cost_green
|
type type_index cost_green |
|
cost_blue
|
cost_blue
|
type type_index cost_blue |
|
cost_red
|
cost_red
|
type type_index cost_red |
|
cost_energy
|
cost_energy
|
type type_index cost_energy |
|
cost_attack
|
cost_attack
|
cost_attack |
|
max_attack
|
max_attack
|
max_attack |
|
fragile
|
fragile
|
fragile |
|
blocker
|
blocker
|
blocker prompt |
|
sacrificable
|
sacrificable
|
sacrificable |
|
frontline
|
frontline
|
frontline |
|
spell
|
spell
|
spell prompt |
|
created_units
|
created_units_data
|
created_units |
|
consumed_units
|
consumed_units_data
|
consumed_units |
{{#set:Has content page={{#ask: Has data page::Template:Unit data|link=none}} }}This template defines the table "Unit_data_pages". View table.
This template is used to set up an unit data page.
Generally speaking, these will be set up as Data namespace pages by periodic automated imports of data extracted from the game client, so it isn't recommended that you set these up yourself. You may want to edit them to update outdated data from time to time, though. Note, though, if imports are consistently adding incorrect information to a data page, you should instead use the appropriate parameters on {{Unit infobox}} on the content page instead.
This template will set the given name
to the Unit_data_pages table, which this template also creates, so that content pages can automatically connect via a name lookup.
This template shows the data in a table like the one above automatically when used on pages in the Data namespace, but shows nothing when used elsewhere. This is because the data page is transcluded on its content page. The show_data
parameter is provided if you want to test data pages in your userspace, though. Setting that to yes
will cause it to display the table.
Usage:
{{Unit data |show_data=yes or no |name=The standard name of the unit |shortname=The short name of the unit |plural=The plural name of the unit |article=The article used before the name, generally "a" or "an" |portrait=Filename of the portrait image, without the "File:" namespace prefix |panel=Filename of the panel image, without the "File:" namespace prefix |tooltip=Tooltip content |position=The position the unit takes on the field |health=The amount of health the unit has |supply=The available supply of the unit for play |stamina=The stamina value of the unit if it is limited |exhaust=The exhaust time for the unit's start-of-turn effect |ability_exhaust=The exhaust time of the unit on ability use if there is any |lifespan=The lifespan in number of turns if it is limited |build_time=The number of turns before the unit comes into play |cost_gold=Amount of gold needed to bring unit into play |cost_green=Amount of green resource needed to bring unit into play |cost_blue=Amount of blue resource needed to bring unit into play |cost_red=Amount of red resource needed to bring unit into play |cost_energy=Amount of energy needed to bring unit into play |cost_attack=Amount of attack needed to bring unit into play |max_attack=Maximum attack value of the unit |fragile=yes if the unit is fragile, no otherwise |block=yes if the unit can block, no otherwise |sacrificable=yes if the unit sacrifices itself, no otherwise |frontline=yes if the unit can always be directly attacked, no otherwise |spell=yes if the unit is a spell, no if it is a unit |created_units=data page names of units this unit creates, separated by commas |consumed_units=data page names of units this unit consumes, separated by commas }}
The above documentation is transcluded from Template:Unit data/doc. (edit | history)