Difference between revisions of "Template:MTW Building"

From Totalwar.org
Jump to: navigation, search
(added to "to-do" comments)
(fixed category)
 
(7 intermediate revisions by the same user 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:350px; background-color:#E7E2CF"
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" 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>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:120%; text-align: center; background-color: #D7C499; border-bottom:1px solid grey; border-top:1px solid grey;" | Construction Stats
 
|-
 
|-
! style="background-color: #D7CEAF;" | Cost:
+
! width=123px; 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:120%; text-align: center; background-color: #D7C499; border-bottom:1px solid grey; border-top:1px solid grey;" | 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:120%; text-align: center; background-color: #D7C499; border-bottom:1px solid grey; border-top:1px solid grey;" | Province Bonus Stats
| {{{offices|<noinclude>offices given</noinclude>}}}
 
 
|-
 
|-
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #996633;" | Province Bonus Stats
+
{{#if:{{{happy|}}}|
 +
{{!}}style="background-color: #D7CEAF;" {{!}} '''Happiness Bonus:'''
 +
{{!}} {{{happy}}} }}
 
|-
 
|-
! style="background-color: #D7CEAF;" | Happiness:
+
{{#if:{{{income|}}}|
| {{{happiness|<noinclude>happiness level percentage</noinclude>}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Income Bonus:'''
 +
{{!}} {{{income}}} }}
 
|-
 
|-
! style="background-color: #D7CEAF;" | Conversion:
+
{{#if:{{{convert|}}}|
| {{{conversion|<noinclude>religious conversion percentage</noinclude>}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Religious Conversion:'''
 +
{{!}} {{{convert}}} }}
 
|-
 
|-
! colspan="2" style="font-size:110%; color: #FFFFFF; text-align: center; background-color: #F4E9DF;" style="background-color: #D7CEAF;" | Building Card:
+
{{#if:{{{upgrade|}}}|
{{{card|<noinclude>insert pic</noinclude>}}}
+
{{!}}style="background-color: #D7CEAF;" {{!}} '''Troop Upgrade:'''
 +
{{!}} {{{upgrade}}} }}
 +
|-
 +
{{#if:{{{notes|}}}|
 +
{{!}}style="background-color: #D7CEAF;" {{!}} '''Notes:'''
 +
{{!}} {{{notes}}} }}
 +
|-
 +
! style="background-color: #D7CEAF; border-top:1px solid grey;" | Building Card:
 +
| style="background-color: #D7CEAF; border-top:1px solid grey; text-align:center;" | {{{card|<noinclude>insert pic</noinclude>}}}
 
|-
 
|-
 
|}<noinclude><br>
 
|}<noinclude><br>
Line 50: Line 61:
  
 
to use this template use: <br>
 
to use this template use: <br>
'''<code><pre>{{MTW_Unit
+
'''<code><pre>{{MTW_Building
 
|name=
 
|name=
 
|cost=  
 
|cost=  
 
|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:Template]]</noinclude>

Latest revision as of 02:11, 14 March 2011

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