Template:VehicleSimple: Difference between revisions

Template page
No edit summary
No edit summary
 
(4 intermediate revisions by the same user 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;
! colspan="2" style="text-align: center; font-size: 160%; padding-top: 14px; padding-bottom: 14px; " | {{{name|{{PAGENAME}}}}}
|-
! colspan="2" style="font-size: 160%; text-align: center; | {{#if:{{{type|}}}|{{{type}}}|Vehicle}}
|-
{{#if: {{{image|}}}|
{{!}} align="center" colspan="2" {{!}} [[{{#setmainimage:{{{image}}}}}|{{{imagewidth|350}}}px]] {{#if:{{{caption|}}}|<br /><small>''{{{caption|}}}''}}
{{!}}-
|
{{!}} align="center" colspan="2" {{!}} [[{{#setmainimage:File:This space intentionally left blank.gif}}|350px]] {{#if:{{{caption|}}}|<br /><small>''{{{caption|}}}''}}
{{!}}-
}}
{{#if:{{{rpgManualLink|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} RPG
{{!}} [[{{{rpgManualLink|}}}]]
{{!}}-
|
{{#if:{{{rpg|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} RPG
{{!}} [[{{{rpg|}}}]]
{{!}}-
}}
}}
{{#if:{{{type|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Type
{{!}} {{{type|}}}
{{!}}-
}}
{{#if:{{{nicknames|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Nicknames
{{!}} {{{nicknames|}}}
{{!}}-
}}
{{#if:{{{aliases|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Aliases
{{!}} {{{aliases|}}}
{{!}}-
}}
{{#if:{{{appearance|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Appearance
{{!}} {{{appearance|}}}
{{!}}-
}}
{{#if:{{{disablecomposition|}}}||
! colspan="2" style="font-size: 120%; text-align: center; {{!}} Composition
{{!}}-
}}
{{#if:{{{modifications|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Modifications
{{!}} {{{modifications|}}}
{{!}}-
}}
{{#if:{{{facilities|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Facilities
{{!}} {{{facilities|}}}
{{!}}-
}}
{{#if:{{{stations|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Stations
{{!}} {{{stations|}}}
{{!}}-
}}
{{#if:{{{weaponry|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Weaponry
{{!}} {{{weaponry|}}}
{{!}}-
}}
{{#if:{{{weakness|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Weaknesses
{{!}} {{{weakness|}}}
{{!}}-
}}
{{#if:{{{disableusage|}}}||
! colspan="2" style="font-size: 120%; text-align: center; {{!}} Usage
{{!}}-
}}
{{#if:{{{native|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Native To
{{!}} {{{native|}}}
{{!}}-
}}
{{#if:{{{nativeto|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Native To
{{!}} {{{nativeto|}}}
{{!}}-
}}
{{#if:{{{home|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Home
{{!}} {{{home|}}}
{{!}}-
}}
{{#if:{{{residesat|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Resides At
{{!}} {{{residesat|}}}
{{!}}-
}}
{{#if:{{{faction|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Faction
{{!}} {{{faction|}}}
{{!}}-
}}
{{#if:{{{guild|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Guild
{{!}} {{{guild|}}}
{{!}}-
}}
{{#if:{{{group|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Group
{{!}} {{{group|}}}
{{!}}-
}}
{{#if:{{{affiliation|}}}|
! style="padding-left: 5px; padding-right: 5px; {{!}} Affiliation
{{!}} {{{affiliation|}}}
{{!}}-
}}
|}
<noinclude>
== Usage ==
== Usage ==
The template should fill in data automatically from API even if there are no template parameters.
<div style="width: 40%;"><pre>
 
<syntaxhighlight lang="wikitext">
{{Vehicle}}
</syntaxhighlight>
 
Optional parameters:
{{Note|'''Note''': Like other infoboxes, you don't need to put units and separators in the infobox. It will be added automatically.}}
<syntaxhighlight lang="wikitext">
{{Vehicle
{{Vehicle
| image = <!-- Image name on wiki -->
| image = <!-- Image name on wiki -->
Line 20: Line 131:
| name = <!-- Name override of the vehicle if different from the page name -->
| name = <!-- Name override of the vehicle if different from the page name -->
}}
}}
</syntaxhighlight>
</pre></div>
 
IM JUST SPITBALLIN HEEEAH
The following parameters are needed if there are no data in game or on ship matrix.
<syntaxhighlight lang="wikitext">
{{Vehicle
| name = <!-- Vehicle name -->
| size = <!-- Size of the vehicle (e.g. small grid/large grid) -->
| role = <!-- Role of the ship -->
| cargocapacity = <!-- Cargo capacity in L -->
}}
</syntaxhighlight>


== TemplateData ==
== TemplateData ==
Line 166: Line 268:
}
}
</templatedata>
</templatedata>
<includeonly>
 
<!-- Template catergories go here -->
[[Category:Infobox Templates]]
[[Category:Infobox templates]]
</noinclude>
</includeonly>

Latest revision as of 22:26, 5 March 2024

VehicleSimple
Vehicle
Composition
Usage


Usage

{{Vehicle
| image = <!-- Image name on wiki -->
| manufacturer = <!-- Manufacturer name -->
| productionstate = <!-- In Production/Retired -->
| mincrew = <!-- Minimum crew of the vehicle -->
| maxcrew = <!-- Maximum crew of the vehicle -->
| length = <!-- Length of the vehicle -->
| height = <!-- Height of the vehicle -->
| width = <!-- Width of the vehicle -->
| name = <!-- Name override of the vehicle if different from the page name -->
}}

IM JUST SPITBALLIN HEEEAH

TemplateData

Handles data related to vehicles.

Template parameters[Edit template data]

This template has custom formatting.

ParameterDescriptionTypeStatus
Imageimage

The file name of the image of the ship/vehicle

Example
Graculus.jpg
Stringsuggested
Namename

The name of the ship/vehicle

Example
Graculus
Stringrequired
Manufacturermanufacturer

The manufacturer who made the ship/vehicle

Example
Enax Industries
Stringsuggested
Rolerole

The role of the ship/vehicle

Example
Prospector
Stringsuggested
Sizesize

The size of the ship/vehicle (Small grid/Large grid)

Example
Small
Stringsuggested
Min crewmincrew

The minimum crew of the ship/vehicle

Example
1
Numberrequired
Max crewmaxcrew

The maximum crew of the ship/vehicle

Example
2
Numberrequired
Ship/vehicle seriesseries

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

Example
Apis
Stringoptional
Cargo capacitycargocapacity

The cargo capacity of the ship in L (Liters)

Example
125
Numbersuggested
Production stateproductionstate

The production state of the ship/vehicle

Example
In Production/Retired
Stringoptional
Lengthlength

The length of the ship/vehicle in meters

Example
33.5
Numbersuggested
Widthwidth beam

The width of the ship/vehicle in meters

Example
13.2
Numbersuggested
Heightheight

The height of the ship/vehicle in meters

Example
4
Numbersuggested
Maximum speedmaxspeed

The maximum speed of the ship/vehicle in m/s (meters/second)

Example
170
Numberoptional
Massmass

The raw mass of the ship in kg (kilograms) or t (metric tons)

Example
700
Numberoptional
uuiduuid

no description

Unknownoptional
smwquerynamesmwqueryname

no description

Unknownoptional