Difference between revisions of "Template:Infobox:Land vehicle"

From Cantr II Wiki
Jump to: navigation, search
Line 1: Line 1:
{| class="infobox bordered" cellpadding="4" style="float:right;"
+
<includeonly>{{Infobox:VehicleBase
|-
+
| title    = Vehicle {{if|test={{{land|}}}|then=land|else=water}}
|
+
| section1 = Capacity
{| class="infobox" style="background-color:#C0FFC0; float:right; width:25em; font-size: 95%; margin-left: inherit;" valign="top" cellpadding="1" border="1" cellspacing="0"
+
| widths1  = 105
! style="background-color: #00D000;" colspan="2" | Construction
+
| item0s1  = Passengers
|-
+
| info0s1  = {{if|test={{{passengers|}}}|then={{{passengers}}}|else={{Inc2}}}}
| '''Time''' || {{{time}}} days
+
| item1s1  = Total Capacity
|- class="hiddenStructure{{{resources}}}"
+
| info1s1  = {{if|test={{{weight|}}}|then={{{weight|0}}} grams|else={{Inc3}}}}
| '''Materials''' || {{{resources}}}
+
| item2s1  = Real Capacity
|- class="hiddenStructure{{{objects}}}"
+
| info2s1  = {{if|test={{{realcapacity|}}}|then={{{realcapacity|0}}} grams|else={{Inc3}}}}
| '''Objects''' || {{{objects}}}
+
| item3s1  = {{if|test={{{cabins|}}}|then=Cabins and holds|else=}}
|- class="hiddenStructure{{{engine}}}"
+
| info3s1  = {{{cabins}}}
| '''Engine''' || {{{engine}}}
+
| item4s1  = {{if|test={{{masts|}}}|then=Masts and Sails|else=}}
|-
+
| info4s1  = {{{masts}}}
| '''Tools''' || {{{tools}}}
+
| section2 = Movement
 
+
| widths2  = 105
|-
+
| item0s2  = Travels on
! style="background-color: #00D000;" colspan="2" | Capacity
+
| info0s2  = {{if|test={{{surfaces|}}}|then={{{surfaces}}}|else={{Inc2}}}}
 
+
| item1s2  = Base speed
|-
+
| info1s2  = {{if|test={{{speed|}}}|then={{{speed}}}|else={{Inc3}}}}
| '''Passengers''' || {{{passengers}}}
+
| item2s2  = {{if|test={{{engine|}}}|then=Engine|else=}}
|-
+
| info2s2  = {{if|test={{{engine|}}}|then={{{engine}}}|else=}}
| '''Base capacity''' || {{{weight}}} grams
+
| item3s2  = Weight effect
|-
+
| info3s2  = {{if|test={{{weight effect|}}}|then={{{weight effect}}}|else={{Inc3}}}}
| '''[[Practical max capacity]]''' || {{{single}}} grams
+
| section3 = {{if|test={{if|test={{{docksto|}}}|then=yes|else={{if|test={{{dockstoby|}}}|then=yes|else=}}}}|then=Docks to|else=}}
 
+
| widths3  = 105
|-
+
| item0s3  = Docks to
! style="background-color: #00D000;" colspan="2" | [[Vehicle speed|Movement]]
+
| info0s3  = {{if|test={{{docksto|}}}|then={{{docksto}}}|else=''nothing''}}
 
+
| item1s3  = Docked to by
|-
+
| info1s3  = {{if|test={{{dockedtoby|}}}|then={{{dockedtoby}}}|else=''nothing''}}
| '''Travels on''' || {{{surfaces}}} or better
+
}}<!-- Vehicle Categories -->{{if|test={{{land|}}}|then={{if|test={{{sortingname|}}}|then=[[Category:Land Vehicles|{{{sortingname}}}]]|else=[[Category:Land Vehicles]]}}|else={{if|test={{{sortingname|}}}|then=[[Category:Water Vehicles|{{{sortingname}}}]]|else=[[Category:Water Vehicles]]}}}}</includeonly><!-- Template Categories --><noinclude>{{Doc}}[[Category:Templates|{{PAGENAME}}]]</noinclude>
|-
 
| '''Base speed''' || {{{speed}}}
 
|-
 
| '''Weight effect''' || {{{weight effect}}}
 
|}
 
|}
 
<includeonly>[[Category:Vehicles]]</includeonly>
 
<includeonly>[[Category:Land Vehicles]]</includeonly>
 

Revision as of 17:56, 17 November 2010

Template documentation[ view ] [ discuss ] [edit]

{{Infobox:Land vehicle}} allows to detail in a single table, all of the listed information about a vehicle. This template is the same as Template:Infobox:Ship.

The article is automatically added to the corresponding subcategory of Vehicles and Water Vehicles or Land Vehicles depending on the values entered.

Usage

Copy the text below and paste it to the top of the page you are editing. Complete the fields with the information you want to display. Unused fields may be deleted or left incomplete.

{{Infobox:Land vehicle
| title         = 
| passengers    = 
| weight        = 
| realcapacity  = 
| cabins        = 
| masts         = 
| surfaces      = 
| speed         = 
| engine        = 
| maxspeed  = 
| weight effect = 
| docksto       = 
| dockedtoby    = 
}}

Parameters