Difference between revisions of "Template:MTW Building"

From Totalwar.org
Jump to: navigation, search
(fixed usage template)
(changed optional fields, more detail in notes)
Line 1: Line 1:
 
{| class="infobox bordered vevent" style="float: {{{align|right}}};  font-size: 90%; text-align: left;" cellpadding="3"  
 
{| class="infobox bordered vevent" style="float: {{{align|right}}};  font-size: 90%; text-align: left;" cellpadding="3"  
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" class="summary" | ''{{{title|{{PAGENAME}}}}}''
+
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" class="summary" | ''{{{name|<noinclude>Building Name</noinclude>}}}''
{{{image|}}}
 
|-
 
|-
 
! style="background-color: #D7CEAF;" | Building Name:
 
| {{{name|<noinclude>Building name</noinclude>}}}
 
 
|-
 
|-
 
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" | Construction Stats
 
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" | Construction Stats
 
|-
 
|-
! style="background-color: #D7CEAF;" | Cost:
+
! style="background-color: #D7CEAF;" | Building Cost:
 
| {{{cost|<noinclude>cost here</noinclude>}}}
 
| {{{cost|<noinclude>cost here</noinclude>}}}
 
|-
 
|-
! style="background-color: #D7CEAF;" | Turns:
+
! style="background-color: #D7CEAF;" | Turns to Build:
 
| {{{turns|<noinclude>number of turns here</noinclude>}}}
 
| {{{turns|<noinclude>number of turns here</noinclude>}}}
 
|-
 
|-
 
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" | Build Tree Placement
 
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" | Build Tree Placement
 
|-
 
|-
! style="background-color: #D7CEAF;" | Factions:
+
{{#if:{{{factions|}}}|
| {{{factions|<noinclude>factions that build this</noinclude>}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Factions:'''
 +
{{!}} {{{factions}}} }}
 
|-
 
|-
! style="background-color: #D7CEAF;" | Single:
+
{{#if:{{{requires|}}}|
| {{{singleton|<noinclude>one per empire?</noinclude>}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Prerequisites:'''
 +
{{!}} {{{requires}}} }}
 
|-
 
|-
! style="background-color: #D7CEAF;" | Requires:
+
{{#if:{{{allows|}}}|
| {{{requires|<noinclude>buildings/events/resources required</noinclude>}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Allows:'''
 +
{{!}} {{{allows}}} }}
 
|-
 
|-
! style="background-color: #D7CEAF;" | Allows:
+
{{#if:{{{units|}}}|
| {{{allows|<noinclude>buildings allowed</noinclude>}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Units:'''
 +
{{!}} {{{units}}} }}
 
|-
 
|-
! style="background-color: #D7CEAF;" | Units:
+
{{#if:{{{office|}}}|
| {{{units|<noinclude>units allowed</noinclude>}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Office Bestowed:'''
 +
{{!}} {{{office}}} }}
 
|-
 
|-
! style="background-color: #D7CEAF;" | Offices:
+
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" | Province Bonus Stats
| {{{offices|<noinclude>offices given</noinclude>}}}
+
|-
 +
{{#if:{{{happy|}}}|
 +
{{!}}style="background-color: #D7CEAF;" {{!}} '''Happiness Bonus:'''
 +
{{!}} {{{happy}}} }}
 +
|-
 +
{{#if:{{{income|}}}|
 +
{{!}}style="background-color: #D7CEAF;" {{!}} '''Income Bonus:'''
 +
{{!}} {{{income}}} }}
 
|-
 
|-
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" | Province Bonus Stats
+
{{#if:{{{convert|}}}|
 +
{{!}}style="background-color: #D7CEAF;" {{!}} '''Religous Conversion:'''
 +
{{!}} {{{convert}}} }}
 
|-
 
|-
! style="background-color: #D7CEAF;" | Happiness:
+
{{#if:{{{upgrade|}}}|
| {{{happiness|<noinclude>happiness level percentage</noinclude>}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Troop Upgrade:'''
 +
{{!}} {{{upgrade}}} }}
 
|-
 
|-
! style="background-color: #D7CEAF;" | Conversion:
+
{{#if:{{{notes|}}}|
| {{{conversion|<noinclude>religious conversion percentage</noinclude>}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Notes:'''
 +
{{!}} {{{notes}}} }}
 
|-
 
|-
 
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #F4E9DF;" style="background-color: #D7CEAF;" | Building Card:
 
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #F4E9DF;" style="background-color: #D7CEAF;" | Building Card:
Line 55: Line 66:
 
|turns=  
 
|turns=  
 
|factions=  
 
|factions=  
|singleton=
 
 
|requires=  
 
|requires=  
 
|allows=  
 
|allows=  
 
|units=  
 
|units=  
|offices=  
+
|office=  
|happiness=  
+
|happy=  
|conversion=  
+
|income=
 +
|convert=
 +
|upgrade=
 +
|notes=  
 
|card= }}</pre></code>'''
 
|card= }}</pre></code>'''
  
Most fields are optional (name, cost, turns are necessary). Since most are optional, will need to document here instead of using noinclude tags
+
Most fields are optional (name, cost, turns are necessary).
  
 
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
+
Requires should be prerequisite buildings, mineral resources, and/or events.
 +
 
 +
Allows should be buildings that require this one.
 +
 
 +
Units should be units, ships, or agents that require this building.
 +
 
 +
Office should be any titles that the building conveys on the empire.
 +
 
 +
Happy should be the percent bonus to provincial happiness the building gives.
 +
 
 +
Income should be either a percentage or fixed florin number the building gives.
 +
 
 +
Convert should be the conversion percentages the building performs.
 +
 
 +
Upgrade should be unit bonuses for troops recruited or retrained in the province.  Valour (master level), weapons/armour/morale/discipline.
 +
 
 +
Notes should include basic facts like 1 per kingdom, that sort of thing.
  
Income (farming/trade) bonuses?  How to show multiple buildings are required for a single unit? Affects of building on Vices/Virtues?
+
The description should have building specific info: Income (farming/trade) bonuses?  Affects of building lines on Vices/Virtues.  Mercenary effects.  Number of troops held in castles
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 19:04, 17 April 2008

Building Name
Construction Stats
Building Cost: cost here
Turns to Build: number of turns here
Build Tree Placement
Province Bonus Stats
Building Card:

insert pic



to use this template use:

{{MTW_Building
|name=
|cost= 
|turns= 
|factions= 
|requires= 
|allows= 
|units= 
|office= 
|happy= 
|income= 
|convert= 
|upgrade= 
|notes= 
|card= }}

Most fields are optional (name, cost, turns are necessary).

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

Requires should be prerequisite buildings, mineral resources, and/or events.

Allows should be buildings that require this one.

Units should be units, ships, or agents that require this building.

Office should be any titles that the building conveys on the empire.

Happy should be the percent bonus to provincial happiness the building gives.

Income should be either a percentage or fixed florin number the building gives.

Convert should be the conversion percentages the building performs.

Upgrade should be unit bonuses for troops recruited or retrained in the province. Valour (master level), weapons/armour/morale/discipline.

Notes should include basic facts like 1 per kingdom, that sort of thing.

The description should have building specific info: Income (farming/trade) bonuses? Affects of building lines on Vices/Virtues. Mercenary effects. Number of troops held in castles