Template:WC2UnitBox

From Wowpedia
Jump to: navigation, search

Usage

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

{{WC2UnitBox
|name=
|image=
|imagep=
|imageu=
|race=
|baseunit=
|faction=
|hp=
|armor=
|sight=
|speed=
|gold=
|lumber=
|oil=
|food=
|produced=
|buildtime=
|attack1=
|attack2=
|range=
|upgrade=
|mana=
|image2=
}}

Parameter Notes

  • name - Name of the unit
  • image - If only one image is available, use this to have it centered in the box.
  • imagep - If you want two images, side by side, use this code for the left one, and leave out the first image code.
  • imageu - If you want two images, side by side, use this code for the right one, and leave out the first image code.
  • race - Race, ex: Orc
  • baseunit - For Heroes, ex: Gul'dans baseunit is a Death Knight
  • faction - Faction of the unit
  • hp - Hit Points of the unit
  • armor - Armor of the unit
  • sight - Sight of the unit
  • speed - Speed of the unit
  • gold - Gold Cost of the unit
  • lumber - Lumber Cost of the unit
  • oil - Oil Cost of the unit
  • food - Food Required for the unit
  • produced - The building the unit is produced at, ex: Barracks
  • buildtime - Number of seconds it takes to train the unit
  • attack1 - Basic Damage
  • attack2 - Piercing Damage
  • range - Attack range of the unit
  • upgrade - If the unit upgrades into a different unit, ex: Knight into a Paladin
  • mana - If the unit has mana, numerical value
  • image2 - Image of the units abilities, ex: PaladinAbilities.gif

Example

  • Code
    {{WC2UnitBox
    |name=[[Elven Archer (Warcraft II)|Elven Archer]]
    |imagep=Aface.gif
    |imageu=ElfArcher.gif
    |race=[[High elf]]
    |baseunit=
    |faction=[[Alliance of Lordaeron|Alliance]]
    |hp=40
    |armor=2
    |sight=5
    |speed=10
    |gold=500
    |lumber=50
    |oil=
    |food=1
    |produced=[[Barracks (WC2 Human)|Barracks]]
    |buildtime=70
    |attack1=3-9
    |attack2=6
    |range=4
    |upgrade=[[Elven Ranger (Warcraft II)|Elven Ranger]]
    |mana=
    }}
  • Output
    Elven Archer
    Aface.gifElfArcher.gif
    Race High elf
    Faction Alliance
    Statistics
    Hit Points 40
    Armor 2
    Sight 5
    Speed 10
    Production
    Gold 500 Gold
    Lumber 50 Lumber
    Food 1 Food
    Produced at Barracks
    Build time 70 seconds
    Combat
    Basic Damage 3-9
    Piercing Damage 6
    Range 4
    Upgrades Into
    Upgrades Into Elven Ranger