Template:Vehicle: Difference between revisions

Template page
(Undo revision 331 by Perp (talk))
Tag: Undo
 
(9 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|-
|-
{{#if: {{{image|}}}|
{{#if: {{{image|}}}|
{{!}} align="center" colspan="2" {{!}} [[{{#setmainimage:{{{image}}}}}|{{{imagewidth|348}}}px]] {{#if:{{{caption|}}}|<br /><small>''{{{caption|}}}''}}
{{!}} align="center" colspan="2" {{!}} {{#setmainimage:{{{image}}}}} {{#if:{{{caption|}}}|<br /><small>''{{{caption|}}}''}}
{{!}}-
{{!}}-
|
|
Line 94: Line 94:


== Usage ==
== Usage ==
<div style="width: 40%;"><pre>
{{Vehicle
| bg_color            =
| name                =
| image              =
| imagewidth          =
| caption            =
| type                =
| role                =
| series              =
| manufacturer        =
| status              =
| length              =
| beam                =
| height              =
| mass (kt)          =
| mass (t)            =
| gridsize            =
| maxspeed            =
| crew                =
| jumpequipped        =
| armaments          =
| designer            =
}}
</pre></div>
The only required parameter is the name. Any others which are unknown or inapplicable should be left blank. Fields marked with "Unknown" blank automatically.
The only required parameter is the name. Any others which are unknown or inapplicable should be left blank. Fields marked with "Unknown" blank automatically.


Line 148: Line 120:
"type": "wiki-file-name",
"type": "wiki-file-name",
"label": "Image",
"label": "Image",
"description": "An image of the ship/vehicle",
"description": "An image of the ship/vehicle. IMPORTANT -- Make sure to add the appropriate prefix ( [[File: ) and suffix ( |348px]] ) in the field, exactly as per the provided example.",
"example": "File:Image1.jpg",
"example": "[[File:Image1.jpg|348px]]",
"suggested": true
},
"imagewidth": {
"type": "string",
"label": "Image Width",
"description": "The width of the image",
"example": "348px",
"suggested": true
"suggested": true
},
},
Line 263: Line 228:
"name",
"name",
"image",
"image",
"imagewidth",
"caption",
"caption",
"type",
"type",
Line 281: Line 245:
"armaments",
"armaments",
"designer"
"designer"
]
],
"description": "Creates infoboxes for vehicles",
"format": "block"
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Latest revision as of 01:07, 13 March 2024

Vehicle


Usage

The only required parameter is the name. Any others which are unknown or inapplicable should be left blank. Fields marked with "Unknown" blank automatically.

Creates infoboxes for vehicles

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
bg_colorbg_color

no description

Stringoptional
Namename

The name of the ship/vehicle

Example
Graculus
Stringrequired
Imageimage

An image of the ship/vehicle. IMPORTANT -- Make sure to add the appropriate prefix ( [[File: ) and suffix ( |348px]] ) in the field, exactly as per the provided example.

Example
[[File:Image1.jpg|348px]]
Filesuggested
Caption caption

A caption for the image

Example
Caption for Image 1
Stringoptional
Typetype

The type of ship/vehicle it is

Example
Industrial ship
Stringsuggested
Rolerole

The role of the ship/vehicle

Example
Survey, mining support
Stringsuggested
Ship/vehicle seriesseries

The ship/vehicle series that this ship/vehicle belongs to

Example
Apis series
Stringoptional
Manufacturermanufacturer

The manufacturer who made the ship/vehicle

Example
Enax Industries
Contentsuggested
Statusproductionstatus

The status of the ship/vehicle or its production status

Example
In production/retired/destroyed
Stringoptional
Length (m)length

The length of the ship/vehicle in meters

Numbersuggested
Beam (m)beam width

The width of the ship/vehicle in meters

Numbersuggested
Height (m)height

The height of the ship/vehicle in meters

Numbersuggested
Mass (kt)mass (kilotons)

The raw mass of the ship in thousands of metric tons

Numberoptional
Mass (t)mass (tons)

The raw mass of the ship in metric tons

Numberoptional
Grid sizegridsize

The grid size of the ship/vehicle

Example
Large grid/Small grid
Stringsuggested
Maximum speed (m/s)maxspeed

The maximum speed of the ship/vehicle in meters/second

Numberoptional
Crewcrew

The number of crew members the ship/vehicle can support

Numbersuggested
Jump equipped?jumpequipped

Is the ship/vehicle equipped with a jump drive?

Stringoptional
Armamentarmaments

The weapons installed on the ship/vehicle

Stringsuggested
Designerdesigner

The person who designed/built the ship/vehicle

Example
Ghosthands
Usersuggested