Difference between revisions of "Template:Infobox:Ship"

From Cantr II Wiki
Jump to: navigation, search
m
 
 
(45 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| class="infobox" style="background-color: #C0C0FF; float: right;"
+
<includeonly>{{Infobox:VehicleBase
|+ '''{{{name}}}'''
+
| title    = {{if|test={{{land|}}}|then=land|else=Water}} Vehicle
! style="background-color: #8080FF;" colspan="2" | Construction<br />
+
| section1 = Capacity
|- style="vertical-align: top;"
+
| widths1  = 105
| '''Days needed'''
+
| item0s1  = Passengers
| {{{time}}}
+
| info0s1  = {{if|test={{{passengers|}}}|then={{{passengers}}}|else={{Inc2}}}}
|- style="vertical-align: top;"
+
| item1s1  = Total Capacity
| '''Raw materials needed'''
+
| info1s1  = {{if|test={{{weight|}}}|then={{{weight|0}}} grams|else={{Inc3}}}}
| {{{resources}}}
+
| item2s1  = Real Capacity
|- class="hiddenStructure{{{objects}}}" style="vertical-align: top;"
+
| info2s1  = {{if|test={{{realcapacity|}}}|then={{{realcapacity|0}}} grams|else={{Inc3}}}}
| '''Objects needed'''
+
| item3s1  = {{if|test={{{cabins|}}}|then=Cabins and holds|else=}}
| {{{objects}}}
+
| info3s1  = {{{cabins}}}
|- style="vertical-align: top;"
+
| item4s1  = {{if|test={{{masts|}}}|then=Masts and Sails|else=}}
| '''Tools needed'''
+
| info4s1  = {{{masts}}}
| {{{tools}}}
+
| section2 = Movement
|- style="vertical-align: top;"
+
| widths2  = 105
| '''Location'''
+
| item0s2  = Travels on
| {{{location}}}
+
| info0s2  = {{if|test={{{surfaces|}}}|then={{{surfaces}}}|else={{Inc2}}}}
 
+
| item1s2  = Base speed
|- style="vertical-align: top;"
+
| info1s2  = {{if|test={{{speed|}}}|then={{{speed}}}|else={{Inc3}}}}
! style="background-color: #8080FF;" colspan="2" | Capacities
+
| item2s2  = {{if|test={{{engine|}}}|then=Engine|else=}}
 
+
| info2s2  = {{if|test={{{engine|}}}|then={{{engine}}}|else=}}
|- style="vertical-align: top;"
+
| item3s2  = Weight effect
| '''Passengers'''
+
| info3s2  = {{if|test={{{weight effect|}}}|then={{{weight effect}}}|else={{Inc3}}}}
| {{{passengers}}}
+
| section3 = {{if|test={{if|test={{{docksto|}}}|then=yes|else={{if|test={{{dockstoby|}}}|then=yes|else=}}}}|then=[[Docking|Docks]] to|else=}}
|- style="vertical-align: top;"
+
| widths3  = 105
| '''Total weight'''
+
| item0s3  = Docks to
| {{{weight}}}
+
| info0s3  = {{if|test={{{docksto|}}}|then={{{docksto}}}|else=''nothing''}}
 
+
| item1s3  = Docked to by
|- style="vertical-align: top;"
+
| info1s3  = {{if|test={{{dockedtoby|}}}|then={{{dockedtoby}}}|else=''nothing''}}
! style="background-color: #8080FF;" colspan="2" | Movement
+
}}<!-- 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>
 
 
|- style="vertical-align: top;"
 
| '''Surfaces traveled on'''
 
| {{{surfaces}}}
 
|- style="vertical-align: top;"
 
| '''Speed'''
 
| {{{speed}}}
 
|- style="vertical-align: top;"
 
| '''Docks to'''
 
| {{{docksto}}}
 
|- style="vertical-align: top;"
 
| '''Can be docked to by'''
 
| {{{dockedtoby}}}
 
|}
 

Latest revision as of 06:31, 13 October 2011

Template documentation[ view ] [ discuss ] [edit]

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

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:Ship
| title         = 
| passengers    = 
| weight        = 
| realcapacity  = 
| cabins        = 
| masts         = 
| surfaces      = 
| speed         = 
| engine        = 
| weight effect = 
| docksto       = 
| dockedtoby    = 
}}

Parameters