Template:Unit infobox/layout

From Prismata Wiki
Jump to: navigation, search
Template-info.png Documentation

This template creates an infobox for a unit. This is a purely visual-only template that does not perform any categorization, nor does it set properties or have other side effects, so it may be used directly for fun on userpages or for purposes other than documenting units.

Note that {{Unit infobox}} uses this template to produce its visual results, but that template does categorize, set properties, and draw information from relevant data pages.

{{Unit infobox/layout
  |name=The standard name of the unit
  |shortname=The short 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
  |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
  |max_attack=Maximum attack value of the unit
  |fragile=yes if the unit is fragile, no otherwise
  |blocker=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=content page names of units this unit creates, separated by commas
  |consumed_units=content page names of units this unit consumes, separated by commas 
}}