Difference between revisions of "Template:MTW Unit"

From Totalwar.org
Jump to: navigation, search
(set width to 300px)
(fixed category)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox bordered vevent" style="float: {{{align|right}}}; font-size: 90%; text-align: left; width:300px" cellpadding="3"  
+
{| class="infobox bordered vevent" cellpadding="3" style="float: {{{align|right}}}; border: 1px solid grey; font-size: 90%; text-align: left; width:300px; background-color:#E7E2CF"  
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" class="summary" | ''{{{name|<noinclude>Unit name</noinclude>}}}''
+
! colspan="2" style="font-size:150%; text-align: center; background-color: #D7C499; border-bottom:1px solid grey;" class="summary" | ''{{{name|<noinclude>Unit name</noinclude>}}}''
 
|-  
 
|-  
! style="background-color: #D7CEAF;" | Unit Type:
+
! width=100px; style="background-color: #D7CEAF;" | Unit Type:
 
| {{{type|<noinclude>Spears, Missile, Swordsmen, Axemen, etc</noinclude>}}}
 
| {{{type|<noinclude>Spears, Missile, Swordsmen, Axemen, etc</noinclude>}}}
 
|-
 
|-
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" | Combat Stats
+
! colspan="2" style="font-size:120%; text-align: center; background-color: #D7C499; border-bottom:1px solid grey; border-top:1px solid grey;" | Combat Stats
 
|-
 
|-
 
! style="background-color: #D7CEAF;" | Charge:
 
! style="background-color: #D7CEAF;" | Charge:
Line 36: Line 36:
 
{{!}} {{{dismount}}} }}
 
{{!}} {{{dismount}}} }}
 
|-
 
|-
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" | Unit Costs
+
! colspan="2" style="font-size:120%; text-align: center; background-color: #D7C499; border-bottom:1px solid grey; border-top:1px solid grey;" | Unit Costs
 
|-
 
|-
 
! style="background-color: #D7CEAF;" | Recruitment:
 
! style="background-color: #D7CEAF;" | Recruitment:
 
| {{{recruit|<noinclude>recruitment cost here</noinclude>}}}
 
| {{{recruit|<noinclude>recruitment cost here</noinclude>}}}
 +
|-
 +
{{#if:{{{discount|}}}|
 +
{{!}}style="background-color: #D7CEAF;" {{!}} '''Faction Discount:'''
 +
{{!}} {{{discount}}} }}
 
|-
 
|-
 
! style="background-color: #D7CEAF;" | Upkeep:
 
! style="background-color: #D7CEAF;" | Upkeep:
 
| {{{upkeep|<noinclude>upkeep cost here</noinclude>}}}
 
| {{{upkeep|<noinclude>upkeep cost here</noinclude>}}}
 
|-
 
|-
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" | Unit Restrictions
+
! colspan="2" style="font-size:120%; text-align: center; background-color: #D7C499; border-bottom:1px solid grey; border-top:1px solid grey;" | Unit Restrictions
 
|-
 
|-
 
{{#if:{{{eras|}}}|
 
{{#if:{{{eras|}}}|
Line 61: Line 65:
 
| {{{buildings|<noinclude>building prerequisites here</noinclude>}}}
 
| {{{buildings|<noinclude>building prerequisites here</noinclude>}}}
 
|-
 
|-
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #F4E9DF;" style="background-color: #D7CEAF;" | Unit Card:
+
! style="background-color: #D7CEAF; border-top:1px solid grey;" | Unit Card:
{{{card|<noinclude>insert pic</noinclude>}}}
+
| style="background-color: #D7CEAF; border-top:1px solid grey; text-align:center;" | {{{card|<noinclude>insert pic</noinclude>}}}
 
|-
 
|-
 
|}<noinclude><br>
 
|}<noinclude><br>
Line 81: Line 85:
 
|dismount=  
 
|dismount=  
 
|recruit=  
 
|recruit=  
 +
|discount=
 
|upkeep=  
 
|upkeep=  
|eras=  
+
|eras=
 
|factions=  
 
|factions=  
 
|provinces=  
 
|provinces=  
Line 102: Line 107:
 
Factions should be either specific factions, or culture type: Catholic, Orthodox, Muslim.
 
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.
+
[[Category:Template]]</noinclude>
 
 
[[Category:Templates]]</noinclude>
 

Latest revision as of 19:21, 22 March 2011

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= 
|discount= 
|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.