Difference between revisions of "Template:Infobox:Building"

From Cantr II Wiki
Jump to: navigation, search
Line 1: Line 1:
{| class="infobox bordered" cellpadding="4" style="float:right;"
+
<includeonly>{{Infobox:BuildingBase
|-
+
| title    = Building
|
+
| section1 = Capacity
{| class="infobox" style="background-color:#E0E0FF; width:25em; font-size: 95%; margin-left: inherit;" valign="top" cellpadding="1" border="1" cellspacing="0"
+
| item0s1  = Time
! style="background-color: #A0A0FF;" colspan="2" | Construction
+
| info0s1  = time
|-
+
| item1s1  = Materials
| '''Time''' || {{{time}}} days
+
| info1s1  = resources
|-
+
| item2s1  = Tools
| '''Materials''' || {{{resources}}}
+
| info2s1  = tools
|-
+
| item3s1  = Only built inside
| '''Tools''' || {{{tools}}}
+
| info3s1  = {{if|test={{{centertype|}}}|then={{{centertype}}}|else={{Inc1}}}}
|- class="hiddenStructure{{{centertype}}}"
+
| item4s1  = People
| '''Only built inside''' || {{{centertype}}}
+
| info4s1  = {{if|test={{{people|}}}|then={{{people}}}|else={{Inc1}}}}
|-
+
| item5s1  = Total weight
! style="background-color: #A0A0FF;" colspan="2" | Capacity
+
| info5s1  = {{if|test={{{weight|}}}|then={{{weight|0}}} grams|else={{Inc3}}}}
|-
+
}}<!-- Object Categories -->[[Category:Buildings]]</includeonly><!-- Template categories --><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]]</noinclude>
| '''People''' || {{{people}}}
 
|-
 
| '''Total weight''' || {{{weight}}} grams
 
|}
 
|}
 
<includeonly>[[Category:Buildings]]</includeonly>
 

Revision as of 17:40, 11 December 2010

Template documentation[ view ] [ discuss ] [edit]

{{Infobox:Building}} allows all details about specifics for buildings to be placed within a table.

Usage

Copy the text below and fill in the values of the parameters. If a parameter is unknown ot not available, leave it empty or remove that line.

{{Infobox:Building
| people = 
| weight = 
}}

Parameters

  • people
    • The maximum number of people who will fit in the building.
    • Example: people = 5
  • weight
    • Capacity (in grams) that the building can contain, in total.
    • It is advisable to use a thousand separator for this parameter.
    • Good example: weight = 100.000
    • Bad example: weight = 100000