Difference between revisions of "Template:MTW Unit"

From Totalwar.org
Jump to: navigation, search
(Initial revision)
 
(fixed category)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="infobox bordered vevent" style="float: {{{align|right}}}; font-size: 90%; text-align: left;" 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%; text-align: center; background-color: #D6B68C;" class="summary" | ''{{{title|{{PAGENAME}}}}}''
+
! colspan="2" style="font-size:150%; text-align: center; background-color: #D7C499; border-bottom:1px solid grey;" class="summary" | ''{{{name|<noinclude>Unit name</noinclude>}}}''
{{{image|}}}
 
 
|-  
 
|-  
|-
+
! width=100px; style="background-color: #D7CEAF;" | Unit Type:
! style="background-color: #FFEECC;" | Unit Name:
 
| {{{name|<noinclude>Unit name</noinclude>}}}
 
|-
 
! style="background-color: #FFEECC;" | Type:
 
 
| {{{type|<noinclude>Spears, Missile, Swordsmen, Axemen, etc</noinclude>}}}
 
| {{{type|<noinclude>Spears, Missile, Swordsmen, Axemen, etc</noinclude>}}}
 
|-
 
|-
! colspan="2" style="font-size:110%; text-align: center; background-color: #D6B68C;" | 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: #FFEECC;" | Charge:
+
! style="background-color: #D7CEAF;" | Charge:
 
| {{{charge|<noinclude>charge value here</noinclude>}}}
 
| {{{charge|<noinclude>charge value here</noinclude>}}}
 
|-
 
|-
! style="background-color: #FFEECC;" | Attack:
+
! style="background-color: #D7CEAF;" | Attack:
 
| {{{attack|<noinclude>attack value here</noinclude>}}}
 
| {{{attack|<noinclude>attack value here</noinclude>}}}
 
|-
 
|-
! style="background-color: #FFEECC;" | Defence:
+
! style="background-color: #D7CEAF;" | Defence:
 
| {{{defence|<noinclude>defence value here</noinclude>}}}
 
| {{{defence|<noinclude>defence value here</noinclude>}}}
 
|-
 
|-
! style="background-color: #FFEECC;" | Armour:
+
! style="background-color: #D7CEAF;" | Armour:
 
| {{{armour|<noinclude>armour value here</noinclude>}}}
 
| {{{armour|<noinclude>armour value here</noinclude>}}}
 
|-
 
|-
! style="background-color: #FFEECC;" | Shield:
+
! style="background-color: #D7CEAF;" | Shield:
 
| {{{shield|<noinclude>shield type here</noinclude>}}}
 
| {{{shield|<noinclude>shield type here</noinclude>}}}
 
|-
 
|-
! style="background-color: #FFEECC;" | Speed:
+
! style="background-color: #D7CEAF;" | Speed:
 
| {{{speed|<noinclude>walk, run, charge values here</noinclude>}}}
 
| {{{speed|<noinclude>walk, run, charge values here</noinclude>}}}
 
|-
 
|-
! style="background-color: #FFEECC;" | Morale:
+
! style="background-color: #D7CEAF;" | Morale:
 
| {{{morale|<noinclude>morale value here</noinclude>}}}
 
| {{{morale|<noinclude>morale value here</noinclude>}}}
 
|-
 
|-
! style="background-color: #FFEECC;" | Discipline:
+
{{#if:{{{notes|}}}|
| {{{discipline|}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Notes:'''
 +
{{!}} {{{notes}}} }}
 
|-
 
|-
! style="background-color: #FFEECC;" | AP Melee:
+
{{#if:{{{dismount|}}}|
| {{{apmelee|}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Dismounts to:'''
 +
{{!}} {{{dismount}}} }}
 
|-
 
|-
! colspan="2" style="font-size:110%; text-align: center; background-color: #D6B68C;" | Missile Stats
+
! 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: #FFEECC;" | Ammo:
+
! style="background-color: #D7CEAF;" | Recruitment:
| {{{ammo|<noinclude>ammunition count here</noinclude>}}}
+
| {{{recruit|<noinclude>recruitment cost here</noinclude>}}}
 
|-
 
|-
! style="background-color: #FFEECC;" | Range:
+
{{#if:{{{discount|}}}|
| {{{range|<noinclude>range of missile weapon here</noinclude>}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Faction Discount:'''
 +
{{!}} {{{discount}}} }}
 
|-
 
|-
! style="background-color: #FFEECC;" | AP Missile:
+
! style="background-color: #D7CEAF;" | Upkeep:
| {{{apmissile|}}}
 
|-
 
! colspan="2" style="font-size:110%; text-align: center; background-color: #D6B68C;" | Unit Costs
 
|-
 
! style="background-color: #FFEECC;" | Recruitment:
 
| {{{recruit|<noinclude>recruitment cost here</noinclude>}}}
 
|-
 
! style="background-color: #FFEECC;" | Upkeep:
 
 
| {{{upkeep|<noinclude>upkeep cost here</noinclude>}}}
 
| {{{upkeep|<noinclude>upkeep cost here</noinclude>}}}
 
|-
 
|-
! colspan="2" style="font-size:110%; text-align: center; background-color: #D6B68C;" | 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
 
|-
 
|-
! style="background-color: #FFEECC;" | Eras:
+
{{#if:{{{eras|}}}|
| {{{eras|}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Eras:'''
 +
{{!}} {{{eras}}} }}
 
|-
 
|-
! style="background-color: #FFEECC;" | Factions:
+
{{#if:{{{factions|}}}|
| {{{factions|}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Factions:'''
 +
{{!}} {{{factions}}} }}
 
|-
 
|-
! style="background-color: #FFEECC;" | Provinces:
+
{{#if:{{{provinces|}}}|
| {{{provinces|}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Provinces:'''
 +
{{!}} {{{provinces}}} }}
 
|-
 
|-
! style="background-color: #FFEECC;" | Buildings Needed:
+
! style="background-color: #D7CEAF;" | Buildings Needed:
 
| {{{buildings|<noinclude>building prerequisites here</noinclude>}}}
 
| {{{buildings|<noinclude>building prerequisites here</noinclude>}}}
 
|-
 
|-
! colspan="2" style="font-size:110%; text-align: center; background-color: #D6B68C;" | Other
+
! style="background-color: #D7CEAF; border-top:1px solid grey;" | Unit Card:
|-
+
| style="background-color: #D7CEAF; border-top:1px solid grey; text-align:center;" | {{{card|<noinclude>insert pic</noinclude>}}}
! style="background-color: #FFEECC;" | Dismounts To:
 
| {{{dismount|}}}
 
|-
 
! colspan="2" style="font-size:110%; text-align: center; background-color: #F4E9DF;" style="background-color: #FFEECC;" | Unit Card:
 
{{{card|<noinclude>insert pic</noinclude>}}}
 
 
|-
 
|-
 
|}<noinclude><br>
 
|}<noinclude><br>
  
  
to use this template use:
+
to use this template use: <br>
'''<nowiki>{{MTW_Unit|name= |type= |charge= |attack= |defence= |armour= |shield= |speed= |morale= |discipline= |apmelee= |ammo= |range= |apmissile= |recruit= |upkeep= |eras= |factions= |provinces= |buildings= |dismount= |card= }}</nowiki>'''
+
'''<code><pre>{{MTW_Unit  
 +
|name=  
 +
|type=  
 +
|charge=  
 +
|attack=  
 +
|defence=  
 +
|armour=  
 +
|shield=  
 +
|speed=  
 +
|morale=  
 +
|notes=  
 +
|dismount=  
 +
|recruit=  
 +
|discount=  
 +
|upkeep=  
 +
|eras=
 +
|factions=  
 +
|provinces=  
 +
|buildings=  
 +
|card= }}</pre></code>'''
  
Unit Type should be one of the following: Spearmen, Archers, Crossbowmen, Gunpowder, Swordsmen, Axemen, Pikemen, Polearms, Barbarians/Fanatics, Peasents/Militia, Knights, Heavy Cavalry, Missile Cavalry, Light Cavalry, Camels, Naptha, Javelin.
+
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.
 
Shield should be None, Small, Cavalry, Large, or Pavise.
Line 92: Line 99:
 
Speed values should be entered as walk,run,charge, like "speed=6,10,11".
 
Speed values should be entered as walk,run,charge, like "speed=6,10,11".
  
Discipline values should be any combination of Disciplined, Elite, Impetuous.
+
Notes should be used to show: AP melee attack, Disciplined/Elite/Impetuous, Hides Anywhere, province bonus
 
 
Shield, AP, and Discipline values are optional.
 
 
 
Missile stats are optional.
 
  
 
Eras, Factions, and Provinces are optional.
 
Eras, Factions, and Provinces are optional.
Line 104: 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.
  
Dismount is optional.  If used, this parameter should be a link to the unit type dismounting becomes.
+
[[Category:Template]]</noinclude>
 
 
TBD - need to make optional fields disappear if not given values, including missile stats section.  Maybe add lethality and other missile-related stats.
 
 
 
[[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.