Template:Infobox Unit/doc
Jump to navigation
Jump to 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...
Swordsman
| |
Unit Type | |
Soldier Basic infantry, useful for capturing structures. Critical hit when adjacent to its commander. | |
Information | |
Cost: | 1200 |
Movement: | 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...
Mercia
| |
"Basic infantry, useful for capturing structures. Critical hit when adjacent to its commander." | |
Unit Details | |
Bio | |
Age: | Ageless |
Height: | Heightless |
Favorite Thing: | Wiki Infoboxes |
Least Favorite Thing: | Missing bio info |
Unit Type | |
Commander Basic infantry, useful for capturing structures. Critical hit when adjacent to its commander. | |
Information | |
Movement: | 2 |
Range: | 2 |
Sight: | 4 |
Effective: | |
Vulnerable: | |
Capture: | yes |