Difference between revisions of "Template:MTW Unit"

From Totalwar.org
Jump to: navigation, search
(removed missile stats, merged in conditional fields to "Notes")
(another attempt at conditionals)
Line 28: Line 28:
 
| {{{morale|<noinclude>morale value here</noinclude>}}}
 
| {{{morale|<noinclude>morale value here</noinclude>}}}
 
|-
 
|-
! style="background-color: #D7CEAF;" | Notes:
+
{{#if:{{{notes|}}}|
| {{{notes|}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} Notes:
 +
{{!}} {{{notes}}} }}
 +
|-
 +
{{#if:{{{dismount|}}}|
 +
{{!}}style="background-color: #D7CEAF;" {{!}} Dismounts to:
 +
{{!}} {{{dismount}}} }}
 
|-
 
|-
 
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" | Unit Costs
 
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" | Unit Costs
Line 41: Line 46:
 
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" | Unit Restrictions
 
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" | Unit Restrictions
 
|-
 
|-
! style="background-color: #D7CEAF;" | Eras:
+
{{#if:{{{eras|}}}|
| {{{eras|<noinclude>All</noinclude>}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} Eras:
 +
{{!}} {{{eras}}} }}
 
|-
 
|-
! style="background-color: #D7CEAF;" | Factions:
+
{{#if:{{{factions|}}}|
| {{{factions|<noinclude>All</noinclude>}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} Factions:
 +
{{!}} {{{factions}}} }}
 
|-
 
|-
! style="background-color: #D7CEAF;" | Provinces:
+
{{#if:{{{provinces|}}}|
| {{{provinces|<noinclude>All</noinclude>}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} Provinces:
 +
{{!}} {{{provinces}}} }}
 
|-
 
|-
 
! style="background-color: #D7CEAF;" | Buildings Needed:
 
! style="background-color: #D7CEAF;" | Buildings Needed:
Line 71: Line 79:
 
|morale=  
 
|morale=  
 
|notes=  
 
|notes=  
 +
|dismount=
 
|recruit=  
 
|recruit=  
 
|upkeep=  
 
|upkeep=  

Revision as of 02:01, 11 April 2008

Unit name
Unit Type: Spears, Missile, Swordsmen, Axemen, etc
Combat Stats
Charge: charge value here
Attack: attack value here
Defence: defence value here
Armour: armour value here
Shield: shield type here
Speed: walk, run, charge values here
Morale: morale value here
Unit Costs
Recruitment: recruitment cost here
Upkeep: upkeep cost here
Unit Restrictions
Buildings Needed: building prerequisites here
Unit Card:

insert pic



to use this template use:

{{MTW_Unit 
|name= 
|type= 
|charge= 
|attack= 
|defence= 
|armour= 
|shield= 
|speed= 
|morale= 
|notes= 
|dismount= 
|recruit= 
|upkeep= 
|eras= 
|factions= 
|provinces= 
|buildings= 
|card= }}

Unit Type should be one of the following: Spearmen, Swordsmen, Axemen, Pikemen, Polearms, Archers, Crossbowmen, Gunpowder, Javelins, Peasants/Militia, Knights, Heavy Cavalry, Missile Cavalry, Light Cavalry, Camels, Artillery.

Shield should be None, Small, Cavalry, Large, or Pavise.

Speed values should be entered as walk,run,charge, like "speed=6,10,11".

Notes should be used to show: AP melee attack, Disciplined/Elite/Impetuous, Hides Anywhere, province bonus

Eras, Factions, and Provinces are optional.

Eras should be either Viking, Early, High, Late.

Factions should be either specific factions, or culture type: Catholic, Orthodox, Muslim.

TBD - need to make optional fields disappear if not given values. Make sure unit descriptions for Cav include dismount links.