Template:Infobox Unit

From Wargroove Wiki
Jump to: navigation, search

Description[edit]

This template is used to provide a template that displays an infobox for units, including commanders.

Usage[edit]

This template can be used by entering the following onto a relevant page.

{{Infobox Unit
|name=
|type=
|faction=
|cost=
|move=
|move_type=
|range=
|sight=
|description=
|effective=
|vulnerable=
|capture=
|portrait=
|commanderdetail=
}}

Parameters[edit]

{{Infobox Unit
|name=
|type= name of unit's icon (e.g., Soldier, Archer, Giant, etc.)
|faction = The faction army the unit belongs to
|cost= Cost to recruit unit from building (Not entered for commander type units)
|move= number of regular tiles this unit can move
|move_type= Unit's movement type
|range= The tile range this unit can attack from
|sight= The distance, in tiles, the unit can see
|description= Unit description from in game info tab
|effective= Effective against unit types
|vulnerable= Vulnerable to unit types
|capture= Can this unit capture cities? (Optional)
|portrait= Commander portrait (Optional)
|commanderdetail= Commander description (Optional)
}}

Examples[edit]

{{Infobox Unit
|name=Swordsman
|type=Soldier
|cost=1200
|move=2
|move_type=ground
|range=2
|sight=5
|description=Basic infantry, useful for capturing structures. Critical hit when adjacent to its commander.
|effective=
|vulnerable=
|capture=yes
}}

Results in...

Unit Icon Soldier.png
Swordsman
Upload the battle sprite for this unit
Unit Type
Upload the map sprite for this unit
Soldier
Basic infantry, useful for capturing structures. Critical hit when adjacent to its commander.
Information
Cost: Gold Icon.png 1200
Movement: 2 2
Range: 2
Sight: 5
Effective:
Vulnerable:
Capture: yes
{{Infobox Unit
|name=Mercia
|type=Commander
|move=2
|move_type=ground
|range=2
|sight=4
|description=Basic infantry, useful for capturing structures. Critical hit when adjacent to its commander.
|effective=
|vulnerable=
|capture=yes
|portrait=Portrait_Mercia_Small.png
|commanderdetail=Basic infantry, useful for capturing structures. Critical hit when adjacent to its commander.
}}

Results in...

Unit Icon Commander.png
Mercia
Image Missing.png
Portrait Mercia Small.png
"Basic infantry, useful for capturing structures. Critical hit when adjacent to its commander."
Campaign Difficulty
Unit Details
Upload the battle sprite for this unit
Bio
Age: Ageless
Height: Heightless
Favorite Thing: Wiki Infoboxes
Least Favorite Thing: Missing bio info
Unit Type
Upload the map sprite for this unit
Commander
Basic infantry, useful for capturing structures. Critical hit when adjacent to its commander.
Information
Movement: 2 2
Range: 2
Sight: 4
Effective:
Vulnerable:
Capture: yes