Template_DoW Unit Infobox
From RelicWiki
This template is intended to ease the presentation of various information and statistics on all units in Dawn of War. Please use this template as the standard way of presenting information about a unit on that units wiki page.
It's use is relatively straightforward. Simply include the appropriate code in the page you are editing, and fill in the correct values to the right of each equals sign.
Note that for the various costs the Dawn of War Costs Template must be used. Please consult that template page or the examples on how to call this.
Contents |
Template Code included here
Edit this header if you want to change only the template code. Don't do this lightly, every unit and building page in this guide uses this code.
For Squads
Use the following code for regular squads.
{{DoW Unit Infobox | unit_type = SQUAD | unit_name = | unit_image = | unit_race = | unit_dow_version = | unit_icon = | unit_hotkey = | unit_build_costs = | unit_build_time = | unit_built_from = | unit_initial_members = | unit_max_members = | unit_requirements = | unit_limit = | unit_hitpoints = | unit_hitpoint_recovery_rate = | unit_morale = | unit_morale_recovery_rate = | unit_morale_regroup = | unit_armour_class = | unit_death_gift = | unit_mass = | unit_speed = | sight_radius = | detection_radius = | unit_reinforce_costs = | unit_reinforce_time = | unit_ranged_weapon = | unit_close_combat_weapon = }}
For Squad Leaders
Use the following code for squad leaders.
{{DoW Unit Infobox | unit_type = SQUAD_LEADER | unit_name = | unit_image = | unit_race = | unit_dow_version = | unit_icon = | unit_hotkey = | unit_build_costs = | unit_build_time = | unit_built_from = | unit_requirements = | unit_hitpoints = | unit_hitpoint_recovery_rate = | unit_morale = | unit_morale_recovery_rate = | unit_morale_regroup = | unit_morale_bonus = | unit_morale_recovery_bonus = | unit_armour_class = | unit_death_gift = | unit_mass = | unit_speed = | sight_radius = | detection_radius = | unit_ranged_weapon = | unit_close_combat_weapon = }}
For Commander Units
Use the following code for commander or other support units like commissars, builders, etc. Choose one of COMMANDER or SUPPORT for the Unit's type.
{{DoW Unit Infobox | unit_type = COMMANDER or SUPPORT | unit_name = | unit_image = | unit_race = | unit_dow_version = | unit_icon = | unit_hotkey = | unit_build_costs = | unit_build_time = | unit_built_from = | unit_initial_members = | unit_requirements = | unit_limit = | unit_hitpoints = | unit_hitpoint_recovery_rate = | unit_morale = | unit_morale_recovery_rate = | unit_morale_regroup = | unit_armour_class = | unit_death_gift = | unit_mass = | unit_speed = | sight_radius = | detection_radius = | unit_is_attachable = | unit_ranged_weapon = | unit_close_combat_weapon = }}
For Vehicles
Use the following code for vehicles.
{{DoW Unit Infobox | unit_type = VEHICLE | unit_name = | unit_image = | unit_race = | unit_dow_version = | unit_icon = | unit_hotkey = | unit_build_costs = | unit_build_time = | unit_built_from = | unit_initial_members = | unit_requirements = | unit_limit = | unit_hitpoints = | unit_hitpoint_recovery_rate = | unit_armour_class = | unit_mass = | unit_speed = | sight_radius = | detection_radius = | unit_ranged_weapon = | unit_close_combat_weapon = }}
For Buildings
Use the following code for buildings.
{{DoW Unit Infobox | unit_type = BUILDING | unit_name = | unit_image = | unit_race = | unit_dow_version = | unit_icon = | unit_hotkey = | unit_build_costs = | unit_build_time = | unit_built_from = | unit_requirements = | unit_limit = | unit_hitpoints = | unit_armour_class = | unit_resource_bonus = | unit_resource_gift = | control_radius = | sight_radius = | detection_radius = }}
In General
It is recommended to use one of the code snippets above for most units. However, if a more customized infobox is required, please be aware that the infobox is adaptable. Depending on what values are included, various information and sections will appear.
If you wish to take full advantage of all the feature of the infobox, simply use and edit the following code at your leisure. Please consult the examples below in order to familiarize yourself with all the potential usages of this infobox.
{{DoW Unit Infobox | unit_type = | unit_name = | unit_image = | unit_race = | unit_dow_version = | unit_icon = | unit_hotkey = | unit_build_costs = | unit_additional_build_costs = | unit_build_time = | unit_built_from = | unit_initial_members = | unit_max_members = | unit_requirements = | unit_limit = | unit_hitpoints = | unit_hitpoint_recovery_rate = | unit_morale = | unit_morale_recovery_rate = | unit_morale_regroup = | unit_morale_bonus = | unit_morale_recovery_bonus = | unit_armour_class = | unit_resource_bonus = | unit_resource_gift = | control_radius = | unit_death_gift = | unit_mass = | unit_speed = | sight_radius = | detection_radius = | unit_is_attachable = | unit_reinforce_costs = | unit_reinforce_time = | unit_ranged_weapon = | unit_close_combat_weapon = }}
Note also that the behaviour of this template will change depending on which variables are supplied. Consult the examples below for details on this.
Concrete examples follow.
Examples
Squad Examples
This is a basic example of how to create a unit infobox for squads
{{DoW Unit Infobox | unit_type = SQUAD | unit_name = Space Marine Squad | unit_image = [[Image:SMSpaceMarines.jpg]] | unit_race = [[Space Marines]] | unit_dow_version = [[Dark Crusade]] v1.2 | unit_icon = [[Image:Tactical_Marine.jpg]] | unit_hotkey = S | unit_build_costs = {{DoW costs|req=190|pow=0|icap=2}} | unit_build_time = 26.4 s | unit_built_from = [[Chapel-Barracks]] | unit_initial_members = 4 | unit_max_members = 8 | unit_requirements = Nothing | unit_limit = None | unit_hitpoints = 390 | unit_hitpoint_recovery_rate = 1 | unit_morale = 300 | unit_morale_recovery_rate = 10 | unit_morale_regroup = 50 | unit_death_penalty = 20 | unit_armour_class = Infantry Heavy Medium | unit_mass = 18 | unit_speed = 16 | sight_radius = 25 | unit_reinforce_costs = {{DoW costs|req=50|pow=0}} | unit_reinforce_time = 9 s | unit_ranged_weapon = [[Space_Marine_Squad#Bolter|Bolter]] | unit_close_combat_weapon = [[Space_Marine_Squad#Knife|Knife]] }} |
|
Here is another example involving a squad with different cost requirements
{{DoW Unit Infobox | unit_type = SQUAD | unit_name = Slugga Boy Squad | unit_hotkey = S | unit_image = [[Image:OrkSlugga.jpg]] | unit_race = [[Orks]] | unit_dow_version = [[Dark Crusade]] v1.2 | unit_icon = [[Image:slugga_boyz_icon.jpg]] | unit_build_costs = {{DoW costs|req=120|pow=0|ocap=4}} | unit_build_time = 18 s | unit_built_from = [[Settlement]] or [[Da Boyz Hut]] | unit_initial_members = 4 | unit_max_members = 15 | unit_requirements = Nothing | unit_limit = None | unit_hitpoints = 250 | unit_hitpoint_recovery_rate = 1 | unit_morale = 300 | unit_morale_recovery_rate = 7 | unit_morale_regroup = 150 | unit_death_penalty = 20 | unit_armour_class = Infantry High | unit_mass = 12 | unit_speed = 16 | sight_radius = 25 | unit_reinforce_costs = {{DoW costs|req=30|pow=0|ocap=1}} | unit_reinforce_time = 6 s | unit_ranged_weapon = [[Slugga Boy Squad#Slugga|Slugga]] | unit_close_combat_weapon = [[Slugga Boy Squad#Choppa|Choppa]] }} |
|
If the unit is a detector, fill in the detection_radius value with it's detection radius and the infobox will update its format automatically.
{{DoW Unit Infobox | unit_type = SQUAD | unit_name = Pathfinder Team | unit_image = [[Image:TauPathFinders.jpg]] | unit_race = [[Tau]] | unit_dow_version = [[Dark Crusade]] v1.2 | unit_icon = [[Image:tau_pathfinder_icon.jpg]] | unit_hotkey = P | unit_build_costs = {{DoW costs|req=150|pow=40|icap=2}} | unit_build_time = 24 s | unit_built_from = [[Tau Barracks]] | unit_initial_members = 2 | unit_max_members = 5 | unit_requirements = [[Path to Enlightenment]] | unit_limit = None | unit_hitpoints = 350 | unit_hitpoint_recovery_rate = 1 | unit_morale = 300 | unit_morale_recovery_rate = 10 | unit_morale_regroup = 150 | unit_death_penalty = 28 | unit_armour_class = Infantry Medium | unit_mass = 10 | unit_speed = 22 | sight_radius = 50 | detection_radius = 30 | unit_reinforce_costs = {{DoW costs|req=75|pow=20}} | unit_reinforce_time = 12 s | unit_ranged_weapon = [[Pathfinder Team#Pulse Carbine|Pulse Carbine]] | unit_close_combat_weapon = [[Pathfinder Team#Pulse Carbine (melee)|Pulse Carbine (melee)]] }} |
|
Squad Leader Examples
For squad leaders leaving out the unit_max_members, unit_limit and unit_reinforce_time variables in the call, will present a more appropriate infobox for the unit. Once these are omitted, other irrelevant items can be discarded as well.
Note also that unit_morale_bonus and unit_morale_recovery_bonus may be included as well if they are required.
{{DoW Unit Infobox | unit_type = SQUAD_LEADER | unit_name = Guardsmen Squad Sergeant | unit_image = [[Image:Guardsmen_squad_sergeant.jpg]] | unit_race = [[Imperial Guard]] | unit_dow_version = [[Dawn of War: Dark Crusade|Dark Crusade]] v1.2 | unit_icon = [[Image:Guardsmen_squad_sergeant_icon.jpg]] | unit_hotkey = L | unit_build_costs = {{DoW costs|req=55|pow=15}} | unit_build_time = 15 s | unit_built_from = [[Guardsmen Squad]] | unit_requirements = [[Tactica Control]] | unit_hitpoints = 200 | unit_hitpoint_recovery_rate = 0.5 | unit_death_penalty = 30 | unit_armour_class = Infantry Heavy Medium | unit_mass = 9 | unit_speed = 16 | sight_radius = 25 | unit_ranged_weapon = [[Guardsmen Squad Sergeant#Laspistol|Laspistol]] | unit_close_combat_weapon = [[Guardsmen Squad Sergeant#Power Sword|Power Sword]] }} |
|
Commander Examples
For infantry units who are not squads and/or cannot reinforce, such as commanders, leaving out the unit_max_mebers and unit_reinforce_time variables in the call, will present a more appropriate infobox for the unit. Once these are omitted, other irrelevant items can be discarded as well.
Note also that unit_is_attachable, unit_morale_bonus and unit_morale_recovery_bonus may be included as well if they are appropriate.
{{DoW Unit Infobox | unit_type = COMMANDER | unit_name = Farseer | unit_image = [[Image:Eldarfarseer.jpg]] | unit_race = [[Eldar]] | unit_dow_version = [[Dark Crusade]] v1.2 | unit_icon = [[Image:Farseer_icon.jpg]] | unit_hotkey = F | unit_build_costs = {{DoW costs|req=240|pow=80}} | unit_build_time = 57 s | unit_built_from = [[Aspect Portal]] | unit_initial_members = 1 | unit_requirements = [[Webway Assembly]] | unit_limit = 1 | unit_hitpoints = 1310 | unit_hitpoint_recovery_rate = 2 | unit_morale = 500 | unit_morale_recovery_rate = 14 | unit_morale_regroup = 150 | unit_morale_bonus = 200 | unit_morale_recovery_bonus = 2 | unit_death_penalty = 150 | unit_armour_class = Commander | unit_mass = 15 | unit_speed = 16 | sight_radius = 35 | unit_is_attachable = Yes | unit_ranged_weapon = [[Farseer#Shuriken Pistol|Shuriken Pistol]] | unit_close_combat_weapon = [[Farseer#Witchblade|Witchblade]] }} |
|
Vehicle Examples
Vehicles lack morale and often reinforcement, so these irrelevant items can be discarded to present a more appropriate infobox.
{{DoW Unit Infobox | unit_type = VEHICLE | unit_name = Dreadnought | unit_image = [[Image:SMDread.jpg]] | unit_race = [[Space Marines]] | unit_dow_version = [[Dark Crusade]] v1.2 | unit_icon = [[Image:SMDreadnought_icon.jpg]] | unit_hotkey = D | unit_build_costs = {{DoW costs|req=170|pow=305|vcap=3}} | unit_build_time = 30 s | unit_built_from = [[Machine Cult]], [[ Orbital Relay]] | unit_requirements = Nothing | unit_limit = None | unit_hitpoints = 4780 | unit_armour_class = Vehicle Medium | unit_mass = 50 | unit_speed = 18 | sight_radius = 30 | unit_ranged_weapon = [[Dreadnought#Flamer|Flamer]] | unit_close_combat_weapon = 2x [[Dreadnought#Dreadnought Close-combat Weapon|Dreadnought Close-combat Weapons]] }} |
|
Building Examples
For Buildings leaving out the unit_initial_members, unit_reinforce_time and unit_ranged_weapon variables in the call, will present a more appropriate infobox for the building. Once these are omitted, other irrelevant items can be discarded as well.
{{DoW Unit Infobox | unit_type = BUILDING | unit_name = Aspect Portal | unit_image = [[Image:eldaraspect.jpg]] | unit_race = [[Eldar]] | unit_dow_version = [[Dark Crusade]] v1.2 | unit_icon = [[Image:aspect_portal_icon.jpg|left]] | unit_hotkey = A | unit_build_costs = {{DoW costs|req=100|pow=0}} | unit_return_value = {{DoW costs|req=50|pow=0}} | unit_build_time = 36 s | unit_built_from = [[Bonesinger]] | unit_requirements = Nothing | unit_limit = None | unit_hitpoints = 2000 | unit_armour_class = Building Medium | sight_radius = 15 }} |
|
If it is required, inclusion of the unit_additional_build_costs variable will present any nonstandard additional costs that may be present when constructing the building. Please note a br tag has been used here to improve presentation and should probably be included in any real call of this type also.
If the building projects a control radius, such as HQs or Listening Posts, add the control_radius value.
Also, inclusion of the unit_ranged_weapon variable presents the weapons section in the infobox and can be used where appropriate, for buildings such as turrets, etc.
{{DoW Unit Infobox | unit_type = BUILDING | unit_name = Field Command | unit_image = [[Image:IGhq.jpg]] | unit_race = [[Imperial Guard]] | unit_dow_version = [[Dark Crusade]] v1.2 | unit_icon = [[Image:IGhq_icon.jpg]] | unit_hotkey = H | unit_build_costs = {{DoW costs|req=450|pow=0}} | unit_additional_build_costs = {{DoW costs|req=+250|pow=+150}} <br />per existing HQ | unit_return_value = {{DoW costs|req=45|pow=0}} | unit_additional_return_value = {{DoW costs|req= +25|pow= +15}}<br/> per existing HQ | unit_build_time = 150 s | unit_built_from = [[Techpriest Enginseer]] | unit_requirements = Nothing | unit_limit = 5 | unit_hitpoints = 6000 | unit_armour_class = Building High | unit_resource_bonus = {{DoW costs|req=+20}} | control_radius = 50 | sight_radius = 30 | unit_ranged_weapon = 4x [[Field Command#Lasguns Bunker|Lasguns]]<br> 4x [[Field Command#Plasma Guns Bunker|Plasma Guns]]<br> 4x [[Field Command#Heavy Bolters Bunker|Heavy Bolters]] | unit_close_combat_weapon = None }} |
|
Some buildings, such as power generators, Ork Waaagh! Banners, and Tau Vehicle Beacons provide bonuses to various resources. Using the unit_resource_bonus variable you can set a consistent resource bonus for the building. unit_resource_gift sets the resource gift granted by completing the building's construction (such as listening posts or power generators). Use the DoW costs template when setting these bonuses.
{{DoW Unit Infobox | unit_type = BUILDING | unit_name = Plasma Generator | unit_image = [[Image:IG_Generator.jpg]] | unit_race = [[Imperial Guard]] | unit_dow_version = [[Dark Crusade]] v1.2 | unit_icon = [[Image:IG_Generator_icon.jpg]] | unit_hotkey = P | unit_build_costs = {{DoW costs|req=165|pow=0}} | unit_return_value = {{DoW costs|req=16|pow=0}} | unit_build_time = 30 seconds | unit_built_from = [[Techpriest Enginseer]] | unit_requirements = [[Field Command]] | unit_limit = 6 per [[Field Command]] | unit_hitpoints = 1500 | unit_armour_class = Building Low | unit_resource_bonus = {{DoW costs|req=|pow=+10|icap=|vcap=|ocap=}} | unit_resource_gift = {{DoW costs|req=|pow=50|icap=|vcap=|ocap=}} | sight_radius = 15 | control_radius = 20 | unit_ranged_weapon = | unit_close_combat_weapon = }} |
|
Automatic Categories
Provided certain values are supplied and are spelt in a certain way, the infobox will automatically add the page it is called from to certain categories. These are as follows.
Unit Type
Unit Type Supplied | Category Page Added To |
SQUAD | Category_ DoW Squads |
SQUAD_LEADER | Category_ DoW Squad Leaders |
COMMANDER | Category_ DoW Commander Units |
VEHICLE | Category_ DoW Vehicles |
BUILDING | Category_ DoW Buildings |
SUPPORT | Category_ DoW Support Units |
Other or none | Category_ DoW Unit Type Unspecified |
Unit Race
Please note that for supplied race, the name must be in an internal wiki link form e.g.
[[Space Marines]]NOT
Space Marines
Unit Armour Class
Unit Armour Class Supplied | Category Page Added To |
Infantry Low | Category_ DoW Armour Class Infantry Low |
Infantry Medium | Category_ DoW Armour Class Infantry Medium |
Infantry High | Category_ DoW Armour Class Infantry High |
Infantry Heavy Medium | Category_ DoW Armour Class Infantry Heavy Medium |
Infantry Heavy High | Category_ DoW Armour Class Infantry Heavy High |
Commander | Category_ DoW Armour Class Commander |
Vehicle Low | Category_ DoW Armour Class Vehicle Low |
Vehicle Medium | Category_ DoW Armour Class Vehicle Medium |
Vehicle High | Category_ DoW Armour Class Vehicle High |
Vehicle Air | Category_ DoW Armour Class Vehicle Air |
Building Low | Category_ DoW Armour Class Building Low |
Building Medium | Category_ DoW Armour Class Building Medium |
Building High | Category_ DoW Armour Class Building High |
Daemon Medium | Category_ DoW Armour Class Daemon Medium |
Daemon High | Category_ DoW Armour Class Daemon High |
Other or None | Category_ DoW Armour Class Unspecified |
Detector Units
If detection_radius is supplied, the unit will be added to the DoW Detector Units category. There is no category for non-detectors.
detection_radius is Supplied | Category Page Added To |
Yes | Category_ DoW Detector Units |
No | No Category |
Unit Attachable Class
Note that if unit_is_attachable is not supplied, the unit will not be added to any category. The unit is only added to a category if the variable is supplied and is either "Yes" or "No".
Unit Is Attachable Supplied | Category Page Added To |
Yes | Category_ DoW Attachable Characters |
No | Category_ DoW Unattachable Characters |
Other | No Category |
Unit Updated
With the release of DC 1.2, it's important to make sure the wiki is brought up to date. Make sure that the version is [[Dark Crusade]] v1.2 or [[Dawn of War: Dark Crusade|Dark Crusade]] v1.2, including the brackets, to make sure it is registered properly. Never update a version number unless the entire page is updated - description, tactics, stats and all - to avoid having only partially updated pages be left incomplete.
unit_dow_version | Category Page Added To |
Dark Crusade v1.2 | Category_ DoW Updated |
Dark Crusade v1.2 | Category_ DoW Updated |
Other | Category_ DoW Old pages |