This infobox displays gameplay information for both units and structures.
Usage
Copy and paste the code into the article and fill in the fields.
Replacing a Building, Unit or Structure Template
If you've been asked to change a Building, Unit or Structure template then:
- Copy the blank unitbox (below) into the page
- Copy the parameter values from the old template to the new UnitBox template code. Please check the defunct template's code to see which value is assigned to which parameter.
E.g. the following means you should copy whatever value is currently assigned to "function" parameter in the page that uses the old template and assign it to "role" parameter in the new UnitBox template code.|role = {{#if:{{{function|}}}|{{{function}}}}}
You can find the template code below, click the defunct template you've been asked to change: - Remove the old template code from the page
- Do not remove any blank or unused parameters from the UnitBox template code. This is to expedite any future expansion.
Code
{{UnitBox |name = |image = |slides = |imgsize = autosize |imgdesc = |internalname = |faction = |baseunit = |role = |eliteability = |useguns = |usearmor = |tier = |hp = |shield = |energy = |timedlife = |armortype = |trans = |amphibious = |techlvl = |cost = |time = |produced = |req = |hotkey = |squadsize = |groundattack = |airattack = |cooldown = |airspeed = |landspeed = |seaspeed = |range = |sight = |parent = |addons = |evolvesto = |upgrades = |power = |produce = |allows = |research = |ability = |structure = |supportpower = |notes = |margin = }}
Tiberium Alliances usage
{{UnitBox |name = |width = 270px |slides = |image = |imgsize = autosize |imgdesc = |faction = |role = |hp = |armortype = |cost = |req = |groundattack = |airattack = |airspeed = |landspeed = |ammunition = |range = |upgrades = |structure = |notes = }}
Optional Fields
The following are some notes on optional fields.
- image
- Set's an image. Default width it 300px. This parameter is ignored if slides is defined.
- slides
- Set's a slide show. Enter one or more pictures separated by newlines. Add a {{!}} to separate individual slide captions and link parameters. More info here. E.g.
Avatar.png {{!}} INSER CAPTION HERE {{!}} link=TEST LINK {{!}} linktext=TEST LINK TEXT
- imgdesc
- Set's the image's/slideshows caption. It DOES NOT set the caption for individual slides (see above).
- imgsize
- Manually sets the width of image, otherwise image uses its default size of 250px.
- Requires units to be set. 200px is a valid entry. 200 is not.
- Percentages are ok
- Horizontal sizes can be set with "200x100px" or "x100px"
- Enter any invalid size entry (e.g. "autosize") to make the image display in it's default size.
- useguns
- The unit's armament in lore.
- usearmor
- The unit's armor in lore.
- structure
- Set to any value to mark the unit as a structure,
- notes
- For any misc information
- margin
- To change the margins for custom layouts
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
slides | slides | no description | Unknown | optional |
caption | caption | no description | Unknown | optional |
supportpower | supportpower | no description | Unknown | optional |
structure | structure | no description | Unknown | optional |
internalname | internalname | no description | Unknown | optional |
faction | faction | no description | Unknown | optional |
baseunit | baseunit | no description | Unknown | optional |
role | role | no description | Unknown | optional |
useguns | useguns | no description | Unknown | optional |
usearmor | usearmor | no description | Unknown | optional |
tier | tier | no description | Unknown | optional |
techlvl | techlvl | no description | Unknown | optional |
hp | hp | no description | Unknown | optional |
shield | shield | no description | Unknown | optional |
energy | energy | no description | Unknown | optional |
timedlife | timedlife | no description | Unknown | optional |
armortype | armortype | no description | Unknown | optional |
trans | trans | no description | Unknown | optional |
amphibious | amphibious | no description | Unknown | optional |
cost | cost | no description | Unknown | optional |
time | time | no description | Unknown | optional |
produced | produced | no description | Unknown | optional |
req | req | no description | Unknown | optional |
hotkey | hotkey | no description | Unknown | optional |
squadsize | squadsize | no description | Unknown | optional |
groundattack | groundattack | no description | Unknown | optional |
airattack | airattack | no description | Unknown | optional |
cooldown | cooldown | no description | Unknown | optional |
airspeed | airspeed | no description | Unknown | optional |
landspeed | landspeed | no description | Unknown | optional |
seaspeed | seaspeed | no description | Unknown | optional |
range | range | no description | Unknown | optional |
sight | sight | no description | Unknown | optional |
ammunition | ammunition | no description | Unknown | optional |
parent | parent | no description | Unknown | optional |
addons | addons | no description | Unknown | optional |
evolvesto | evolvesto | no description | Unknown | optional |
produce | produce | no description | Unknown | optional |
allows | allows | no description | Unknown | optional |
research | research | no description | Unknown | optional |
ability | ability | no description | Unknown | optional |
upgrades | upgrades | no description | Unknown | optional |
power | power | no description | Unknown | optional |
eliteability | eliteability | no description | Unknown | optional |
notes | notes | no description | Unknown | optional |
function | function | no description | Unknown | optional |
cameos | cameos | no description | Unknown | optional |
name | name | no description | Unknown | optional |
image | image | no description | Unknown | optional |
imgdesc | imgdesc | no description | Unknown | optional |