Gaming
 

Template:UnitBox

From Command and Conquer Wiki

This infobox displays gameplay information for both units and structures.

Contents

[edit] Usage

Copy and paste the code into the article and fill in the fields.

[edit] 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 one. Please check the defunct template's code to see which value goes where.
    E.g. the following means you should copy whatever value is currently assigned to "function" in the old template and assign it to "role" in the UnitBox template.
    |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

[edit] Code

{{UnitBox
|name         = 
|image        = 
|imgsize      = 
|imgdesc      = 
|faction      = 
|baseunit     = 
|role         = 
|useguns      = 
|usearmor     = 
|tier         = 
|hp           = 
|shield       = 
|energy       = 
|timedlife    = 
|armortype    = 
|trans        = 
|amphibious   = 
|cost         = 
|time         = 
|produced     = 
|req          = 
|hotkey       = 
|squadsize    = 
|groundattack = 
|airattack    = 
|cooldown     = 
|airspeed     = 
|landspeed    = 
|seaspeed     = 
|range        = 
|sight        = 
|parent       = 
|addons       = 
|evolvesto    = 
|upgrades     = 
|power        = 
|produce      = 
|allows       = 
|research     = 
|ability      = 
|structure    = 
|notes        = 
}}

[edit] Optional Fields

The following are some notes on optional fields.

  • imgsize
    • Manually sets the width of image, otherwise image uses its default size of 300px.
    • Requires units to be set. 200px is a valid entry. 200 is not.
  • 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