Template:Troop/doc

From Survivors of Atlantis Wiki
Jump to navigation Jump to search

Template Description

Data located at Module:Troops/data

An infobox made to display information about troops. Uses the pagename to try to attempt to automatically get the troop's data without the user having to manually type those in.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
namename

Makes fields using their default values look for the data using name's value rather than BASEPAGENAME or PAGENAME

Stringoptional
titletitle

The title displayed at the top of the infobox

Default
the value of {{{name}}} or the pagename: {{PAGENAME}}
Stringoptional
imageimage

The troop's image displayed at the top of the infobox

Filesuggested
melee_damagemelee_damage

The troop's base melee damage

Default
Gets the data from the datable using the value of {{{name}}} or the BASEPAGENAME as troopname
Numberoptional
ranged_damageranged_damage

The troop's base ranged damage

Default
Gets the data from the datable using the value of {{{name}}} or the BASEPAGENAME as troopname
Numberoptional
rangerange

The troop's base range

Default
Gets the data from the datable using the value of {{{name}}} or the BASEPAGENAME as troopname
Numberoptional
defensedefense

The troop's base defense

Default
Gets the data from the datable using the value of {{{name}}} or the BASEPAGENAME as troopname
Numberoptional
lifelife

The troop's base life

Default
Gets the data from the datable using the value of {{{name}}} or the BASEPAGENAME as troopname
Numberoptional
speedspeed

The troop's base speed

Default
Gets the data from the datable using the value of {{{name}}} or the BASEPAGENAME as troopname
Numberoptional
carry_loadcarry_load

The troop's base carry load

Default
Gets the data from the datable using the value of {{{name}}} or the BASEPAGENAME as troopname
Numberoptional
powerpower

The troop's power

Default
Gets the data from the datable using the value of {{{name}}} or the BASEPAGENAME as troopname
Numberoptional
training_timetraining_time

The troop's base training time

Default
Gets the data from the datable using the value of {{{name}}} or the BASEPAGENAME as troopname
Numberoptional
upkeepupkeep

The troop's base upkeep

Default
Gets the data from the datable using the value of {{{name}}} or the BASEPAGENAME as troopname
Numberoptional

Example

{{Troop|speed = 20}}



{{Troop|name = porter|speed = a lot}}