Template:Troop/doc
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
name | name | Makes fields using their default values look for the data using name's value rather than BASEPAGENAME or PAGENAME | String | optional |
title | title | The title displayed at the top of the infobox
| String | optional |
image | image | The troop's image displayed at the top of the infobox | File | suggested |
melee_damage | melee_damage | The troop's base melee damage
| Number | optional |
ranged_damage | ranged_damage | The troop's base ranged damage
| Number | optional |
range | range | The troop's base range
| Number | optional |
defense | defense | The troop's base defense
| Number | optional |
life | life | The troop's base life
| Number | optional |
speed | speed | The troop's base speed
| Number | optional |
carry_load | carry_load | The troop's base carry load
| Number | optional |
power | power | The troop's power
| Number | optional |
training_time | training_time | The troop's base training time
| Number | optional |
upkeep | upkeep | The troop's base upkeep
| Number | optional |
Example
{{Troop|speed = 20}}
{{Troop|name = porter|speed = a lot}}