Template:Vehicle: Difference between revisions

Template page
No edit summary
 
(101 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="5" style="width: 25em; font-size: 90%; text-align: left; float: right; clear: right; margin: 0 0 1em 1em; {{#if:{{{bg_color|}}}|color:#{{PaletteText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{Palette|{{{bg_color|}}}}}|{{Palette|Stone}}}};"
{| class="infobox" cellspacing="5" style="width: 25em; font-size: 90%; text-align: left; float: right; clear: right; margin: 0 0 1em 1em; {{#if:{{{bg_color|}}}|color:#{{PaletteText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{Palette|{{{bg_color|}}}}}|{{Palette|Shadow}}}};"
! colspan="2" style="text-align: center; font-size: 160%; padding-top: 14px; padding-bottom: 14px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" " | {{{name|{{PAGENAME}}}}}
! colspan="2" style="text-align: center; font-size: 160%; padding-top: 14px; padding-bottom: 14px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" " | {{{name|{{PAGENAME}}}}}
|-
! colspan="2" style="font-size: 160%; text-align: center; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" | {{#if:{{{type|}}}|{{{type}}}|Vehicle}}
|-
|-
{{#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|}}}''}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{type|}}}|
{{#if:{{{type|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Vehicle type
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Vehicle type
{{!}} {{{type|}}}
{{!}} {{{type|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{role|}}}|
{{#if:{{{role|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Role
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Role
{{!}} {{{role|}}}
{{!}} {{{role|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{series|}}}|
{{#if:{{{series|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Ship series
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Ship series
{{!}} {{{series|}}}
{{!}} {{{series|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{manufacturer|}}}|
{{#if:{{{manufacturer|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Manufacturer
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Manufacturer
{{!}} {{{manufacturer|}}}
{{!}} {{{manufacturer|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{productionstatus|}}}|
{{#if:{{{productionstatus|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Status
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Status
{{!}} {{{productionstatus|}}}
{{!}} {{{productionstatus|}}}
{{!}}-
{{!}}-
}}
}}
{{#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|Stone}}}};" {{!}} 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|Stone}}}};" {{!}} 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|Stone}}}};" {{!}} 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 (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 (kt)
{{!}} {{{mass (kilotons)}}}{{#ifexpr: {{{mass (kilotons)|0}}} > 0 | kt | }}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{mass|}}}|
{{#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|Stone}}}};" {{!}} 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 (t)
{{!}} {{{mass|}}}
{{!}} {{{mass (tons)}}}{{#ifexpr: {{{mass (tons)|0}}} > 0 | t | }}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{gridsize|}}}|
{{#if:{{{gridsize|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Grid size
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Grid size
{{!}} {{{gridsize|}}}
{{!}} {{{gridsize|}}}
{{!}}-
{{!}}-
}}
}}
{{#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|Stone}}}};" {{!}} 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 | }}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{crew|}}}|
{{#if:{{{crew|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} 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|Stone}}}};" {{!}} 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|}}}
{{!}}-
{{!}}-
}}
}}
{{#if:{{{designer|}}}|
{{#if:{{{designer|}}}|
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Designer
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Shadow}}}};" {{!}} Designer
{{!}} {{{designer|}}}
{{!}} {{{designer|}}}
{{!}}-
{{!}}-
}}
}}
! style="padding-left: 5px; padding-right: 5px; {{#if:{{{bg_color|}}}|color:#{{PaletteDarkText|{{{bg_color|}}}}}|}}; background-color:#{{#if:{{{bg_color|}}}|{{PaletteDark|{{{bg_color|}}}}}|{{PaletteDark|Stone}}}};" {{!}} Color Preview
{{!}}<p style="color:#{{{hexcolor|}}}; background-color:#ffffff; text-align: center"> '''Light''' Mode </p>
<p style="color:#{{{hexcolor|}}}; background-color:#191b21; text-align: center"> '''Dark''' Mode </p>
{{!}}-
|}
|}


<noinclude>
<noinclude>
== 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.


[[Category:Infobox Templates]]
[[Category:Infobox Templates]]
</noinclude>
<templatedata>
{
"params": {
"bg_color": {
"type": "string"
},
"name": {
"type": "string",
"required": true,
"label": "Name",
"description": "The name of the ship/vehicle",
"example": "Graculus"
},
"type": {
"label": "Type",
"description": "The type of ship/vehicle it is",
"example": "Industrial ship",
"type": "string",
"suggested": true
},
"image": {
"type": "wiki-file-name",
"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": {
"label": "Role",
"description": "The role of the ship/vehicle",
"example": "Survey, mining support",
"type": "string",
"suggested": true
},
"series": {
"label": "Ship/vehicle series",
"description": "The ship/vehicle series that this ship/vehicle belongs to",
"example": "Apis series",
"type": "string"
},
"manufacturer": {
"label": "Manufacturer",
"description": "The manufacturer who made the ship/vehicle",
"example": "Enax Industries",
"type": "content",
"suggested": true
},
"productionstatus": {
"label": "Status",
"description": "The status of the ship/vehicle or its production status",
"example": "In production/retired/destroyed",
"type": "string"
},
"length": {
"label": "Length (m)",
"description": "The length of the ship/vehicle in meters",
"type": "number",
"suggested": true
},
"beam": {
"aliases": [
"width"
],
"label": "Beam (m)",
"description": "The width of the ship/vehicle in meters",
"type": "number",
"suggested": true
},
"height": {
"label": "Height (m)",
"description": "The height of the ship/vehicle in meters",
"type": "number",
"suggested": true
},
"gridsize": {
"label": "Grid size",
"description": "The grid size of the ship/vehicle",
"example": "Large grid/Small grid",
"type": "string",
"suggested": true
},
"maxspeed": {
"label": "Maximum speed (m/s)",
"description": "The maximum speed of the ship/vehicle in meters/second",
"type": "number"
},
"crew": {
"label": "Crew",
"description": "The number of crew members the ship/vehicle can support",
"type": "number",
"suggested": true
},
"jumpequipped": {
"label": "Jump equipped?",
"description": "Is the ship/vehicle equipped with a jump drive?",
"type": "string"
},
"armaments": {
"label": "Armament",
"description": "The weapons installed on the ship/vehicle",
"type": "string",
"suggested": true
},
"designer": {
"label": "Designer",
"description": "The person who designed/built the ship/vehicle",
"example": "Ghosthands",
"type": "wiki-user-name",
"suggested": true
},
"mass (tons)": {
"label": "Mass (t)",
"description": "The raw mass of the ship in metric tons",
"type": "number"
},
"mass (kilotons)": {
"label": "Mass (kt)",
"description": "The raw mass of the ship in thousands of metric tons",
"type": "number"
}
},
"paramOrder": [
"bg_color",
"name",
"image",
"caption",
"type",
"role",
"series",
"manufacturer",
"productionstatus",
"length",
"beam",
"height",
"mass (kilotons)",
"mass (tons)",
"gridsize",
"maxspeed",
"crew",
"jumpequipped",
"armaments",
"designer"
],
"description": "Creates infoboxes for vehicles",
"format": "block"
}
</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