Template:Vehicle: Difference between revisions

Template page
No edit summary
 
(96 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|-
|-
{{#if: {{{image|}}}|
{{#if: {{{image|}}}|
{{!}} align="center" colspan="2" {{!}} [[{{#setmainimage:{{{image}}}}}|{{{imagewidth|350}}}px]] {{#if:{{{caption|}}}|<br /><small>''{{{caption|}}}''}}
{{!}} align="center" colspan="2" {{!}} {{#setmainimage:{{{image}}}}} {{#if:{{{caption|}}}|<br /><small>''{{{caption|}}}''}}
{{!}}-
{{!}}-
|
|
{{!}} align="center" colspan="2" {{!}} [[{{#setmainimage:File:this space intentionally left blank.gif}}|350px]] {{#if:{{{caption|}}}|<br /><small>''{{{caption|}}}''}}
{{!}} align="center" colspan="2" {{!}} [[{{#setmainimage:File:this space intentionally left blank.gif}}|348px]] {{#if:{{{caption|}}}|<br /><small>''{{{caption|}}}''}}
{{!}}-
{{!}}-
}}
}}
Line 36: Line 36:
{{#if:{{{length|}}}|
{{#if:{{{length|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Length
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Length
{{!}} {{{length|}}}
{{!}} {{{length|}}}{{#ifexpr: {{{length|0}}} > 0 | m | }}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{beam|}}}|
{{#if:{{{beam|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Beam
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Beam
{{!}} {{{beam|}}}
{{!}} {{{beam|}}}{{#ifexpr: {{{beam|0}}} > 0 | m | }}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{height|}}}|
{{#if:{{{height|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Height
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Height
{{!}} {{{height|}}}
{{!}} {{{height|}}}{{#ifexpr: {{{height|0}}} > 0 | m | }}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{mass|}}}|
{{#if:{{{mass (kilotons)|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Mass
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Mass (kt)
{{!}} {{{mass|}}}
{{!}} {{{mass (kilotons)}}}{{#ifexpr: {{{mass (kilotons)|0}}} > 0 | kt | }}
{{!}}-
}}
{{#if:{{{mass (tons)|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Mass (t)
{{!}} {{{mass (tons)}}}{{#ifexpr: {{{mass (tons)|0}}} > 0 | t | }}
{{!}}-
{{!}}-
}}
}}
Line 61: Line 66:
{{#if:{{{maxspeed|}}}|
{{#if:{{{maxspeed|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Maximum speed
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Maximum speed
{{!}} {{{maxspeed|}}}
{{!}} {{{maxspeed|}}}{{#ifexpr: {{{maxspeed|0}}} > 0 | m/s | }}
{{!}}-
{{!}}-
}}
}}
Line 67: Line 72:
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Crew
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Crew
{{!}} {{{crew|}}}
{{!}} {{{crew|}}}
{{!}}-
}}
{{#if:{{{jumpequipped|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Jump Equipped
{{!}} {{{jumpequipped|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{armaments|}}}|
{{#if:{{{armaments|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Armaments
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Armament
{{!}} {{{armaments|}}}
{{!}} {{{armaments|}}}
{{!}}-
{{!}}-
Line 84: Line 94:


== Usage ==
== Usage ==
<div style="width: 40%;"><pre>
{{Vehicle
| bg_color            =
| name                =
| image              =
| caption            =
| type                =
| role                =
| series              =
| manufacturer        =
| status              =
| length              =
| beam                =
| height              =
| mass                =
| gridsize            =
| maxspeed            =
| crew                =
| 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 116: Line 101:
"params": {
"params": {
"bg_color": {
"bg_color": {
"type": "string",
"type": "string"
"suggested": true
},
},
"name": {
"name": {
Line 133: Line 117:
"suggested": true
"suggested": true
},
},
"image": {},
"image": {
"imagewidth": {},
"type": "wiki-file-name",
"caption": {},
"label": "Image",
"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|348px]]",
"suggested": true
},
"caption": {
"type": "string",
"label": "Caption ",
"description": "A caption for the image",
"example": "Caption for Image 1"
},
"role": {
"role": {
"label": "Role",
"label": "Role",
Line 153: Line 147:
"description": "The manufacturer who made the ship/vehicle",
"description": "The manufacturer who made the ship/vehicle",
"example": "Enax Industries",
"example": "Enax Industries",
"type": "string"
"type": "content",
"suggested": true
},
},
"productionstatus": {
"productionstatus": {
Line 164: Line 159:
"label": "Length (m)",
"label": "Length (m)",
"description": "The length of the ship/vehicle in meters",
"description": "The length of the ship/vehicle in meters",
"type": "number"
"type": "number",
"suggested": true
},
},
"beam": {
"beam": {
"aliases": [
"aliases": [
"Width"
"width"
],
],
"label": "Beam (m)",
"label": "Beam (m)",
"description": "The width of the ship/vehicle in meters",
"description": "The width of the ship/vehicle in meters",
"type": "number"
"type": "number",
"suggested": true
},
},
"height": {
"height": {
"label": "Height (m)",
"label": "Height (m)",
"description": "The height of the ship/vehicle in meters",
"description": "The height of the ship/vehicle in meters",
"type": "number"
"type": "number",
"suggested": true
},
},
"gridsize": {
"gridsize": {
Line 194: Line 192:
"label": "Crew",
"label": "Crew",
"description": "The number of crew members the ship/vehicle can support",
"description": "The number of crew members the ship/vehicle can support",
"type": "number"
"type": "number",
"suggested": true
},
"jumpequipped": {
"label": "Jump equipped?",
"description": "Is the ship/vehicle equipped with a jump drive?",
"type": "string"
},
},
"armaments": {
"armaments": {
"label": "Armaments",
"label": "Armament",
"description": "The weapons installed on the ship/vehicle",
"description": "The weapons installed on the ship/vehicle",
"type": "string"
"type": "string",
"suggested": true
},
},
"designer": {
"designer": {
Line 205: Line 210:
"description": "The person who designed/built the ship/vehicle",
"description": "The person who designed/built the ship/vehicle",
"example": "Ghosthands",
"example": "Ghosthands",
"type": "string",
"type": "wiki-user-name",
"suggested": true
"suggested": true
},
},
Line 213: Line 218:
"type": "number"
"type": "number"
},
},
"mass (kilos)": {
"mass (kilotons)": {
"label": "Mass (kg)",
"label": "Mass (kt)",
"description": "The raw mass of the ship in kilograms",
"description": "The raw mass of the ship in thousands of metric tons",
"type": "number"
"type": "number"
}
}
Line 223: Line 228:
"name",
"name",
"image",
"image",
"imagewidth",
"caption",
"caption",
"type",
"type",
Line 233: Line 237:
"beam",
"beam",
"height",
"height",
"mass (kilos)",
"mass (kilotons)",
"mass (tons)",
"mass (tons)",
"gridsize",
"gridsize",
"maxspeed",
"maxspeed",
"crew",
"crew",
"jumpequipped",
"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