Command & Conquer Wiki

Welcome to the Command & Conquer Wiki! Log in and join the community.

READ MORE

Command & Conquer Wiki
Command & Conquer Wiki

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:

  1. Copy the blank unitbox (below) into the page
  2. 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:
    1. Building
    2. Unit
    3. Structure
  3. Remove the old template code from the page
  4. 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.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Slidesslides

no description

Unknownoptional
Captioncaption

no description

Unknownoptional
Supportpowersupportpower

no description

Unknownoptional
Structurestructure

no description

Unknownoptional
Internalnameinternalname

no description

Unknownoptional
Factionfaction

no description

Unknownoptional
Baseunitbaseunit

no description

Unknownoptional
Rolerole

no description

Unknownoptional
Usegunsuseguns

no description

Unknownoptional
Usearmorusearmor

no description

Unknownoptional
Tiertier

no description

Unknownoptional
Techlvltechlvl

no description

Unknownoptional
Hphp

no description

Unknownoptional
Shieldshield

no description

Unknownoptional
Energyenergy

no description

Unknownoptional
Timedlifetimedlife

no description

Unknownoptional
Armortypearmortype

no description

Unknownoptional
Transtrans

no description

Unknownoptional
Amphibiousamphibious

no description

Unknownoptional
Costcost

no description

Unknownoptional
Timetime

no description

Unknownoptional
Producedproduced

no description

Unknownoptional
Reqreq

no description

Unknownoptional
Hotkeyhotkey

no description

Unknownoptional
Squadsizesquadsize

no description

Unknownoptional
Groundattackgroundattack

no description

Unknownoptional
Airattackairattack

no description

Unknownoptional
Cooldowncooldown

no description

Unknownoptional
Airspeedairspeed

no description

Unknownoptional
Landspeedlandspeed

no description

Unknownoptional
Seaspeedseaspeed

no description

Unknownoptional
Rangerange

no description

Unknownoptional
Sightsight

no description

Unknownoptional
Ammunitionammunition

no description

Unknownoptional
Parentparent

no description

Unknownoptional
Addonsaddons

no description

Unknownoptional
Evolvestoevolvesto

no description

Unknownoptional
Produceproduce

no description

Unknownoptional
Allowsallows

no description

Unknownoptional
Researchresearch

no description

Unknownoptional
Abilityability

no description

Unknownoptional
Upgradesupgrades

no description

Unknownoptional
Powerpower

no description

Unknownoptional
Eliteabilityeliteability

no description

Unknownoptional
Notesnotes

no description

Unknownoptional
Functionfunction

no description

Unknownoptional
Cameoscameos

no description

Unknownoptional
Namename

no description

Unknownoptional
Imageimage

no description

Unknownoptional
Imgdescimgdesc

no description

Unknownoptional