Difference between revisions of "Template:Infobox fictional vehicle/sandbox"
imported>Gonnym |
imported>Gonnym |
||
| Line 15: | Line 15: | ||
| data1 = {{#if: {{{first|}}} | {{{first|}}} | {{#invoke:Formatted appearance|getFormattedAppearance|major_work={{{first_major|}}} |minor_work={{{first_minor|}}} |issue={{{first_issue|}}} |date={{{first_date|}}} }} }} | | data1 = {{#if: {{{first|}}} | {{{first|}}} | {{#invoke:Formatted appearance|getFormattedAppearance|major_work={{{first_major|}}} |minor_work={{{first_minor|}}} |issue={{{first_issue|}}} |date={{{first_date|}}} }} }} | ||
| − | | label2 = | + | | label2 = Last appearance |
| − | | data2 = {{{ | + | | data2 = {{#if: {{{last|}}} | {{{last|}}} | {{#invoke:Formatted appearance|getFormattedAppearance|major_work={{{last_major|}}} |minor_work={{{last_minor|}}} |issue={{{last_issue|}}} |date={{{last_date|}}} }} }} |
| − | | label3 = | + | | label3 = Created by |
| − | | data3 = {{ | + | | data3 = {{{creator|}}} |
| − | | label4 = | + | | label4 = Based on |
| − | | data4 = {{{ | + | | data4 = {{{based_on|}}} |
| − | + | | header10 = {{#if: {{{affiliation|}}} {{{launched|}}} {{{decommissioned|}}} {{{fighters|}}} {{{aux_vehicle|}}} | Information }} | |
| − | |||
| − | |||
| − | | header10 = {{#if: {{{affiliation|}}} {{{launched|}}} {{{decommissioned|}}} {{{fighters|}}} {{{ | ||
| label11 = Affiliation | | label11 = Affiliation | ||
| Line 44: | Line 41: | ||
| data15 = {{{fighters|}}} | | data15 = {{{fighters|}}} | ||
| − | | label16 = Auxiliary | + | | label16 = Auxiliary vehicles |
| − | | data16 = {{{ | + | | data16 = {{{aux_vehicle|}}} |
| header20 = {{#if: {{{class|}}} {{{registry|}}} {{{armaments|}}} {{{defence|}}} {{{defense|}}} {{{maxspeed|}}} {{{propulsion|}}} {{{chassis|}}} {{{power|}}} {{{mass|}}} {{{length|}}} {{{width|}}} {{{height|}}} {{{population_volume|}}} | General characteristics }} | | header20 = {{#if: {{{class|}}} {{{registry|}}} {{{armaments|}}} {{{defence|}}} {{{defense|}}} {{{maxspeed|}}} {{{propulsion|}}} {{{chassis|}}} {{{power|}}} {{{mass|}}} {{{length|}}} {{{width|}}} {{{height|}}} {{{population_volume|}}} | General characteristics }} | ||
| − | | label21 | + | | label21 = Class |
| − | | data21 | + | | data21 = {{{class|}}} |
| label22 = Registry | | label22 = Registry | ||
| Line 68: | Line 65: | ||
| label27 = Chassis | | label27 = Chassis | ||
| − | | data27 | + | | data27 = {{{chassis|}}} |
| label28 = Power | | label28 = Power | ||
| Line 90: | Line 87: | ||
}}<!-- Start tracking | }}<!-- Start tracking | ||
| − | -->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using infobox fictional vehicle with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox fictional vehicle]] with unknown parameter "_VALUE_"| affiliation | alt | armaments | | + | -->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using infobox fictional vehicle with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox fictional vehicle]] with unknown parameter "_VALUE_"| affiliation | alt | armaments | aux_vehicle | based_on | captain | caption | chassis | class | creator | color | decommissioned | defence | defense | fighters | first | first_date | first_issue | first_major | first_minor | franchise | height | image | image_size | image_upright | last | last_date | last_issue | last_major | last_minor | launched | length | mass | max_speed | multiple | name | population_volume | power | propulsion | registry | width }}<noinclude> |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 14:26, 3 February 2019
| Script error: No such module "If empty". | |
|---|---|
| Defences | Script error: No such module "If empty". |
| This is the template sandbox page for Template:Infobox fictional vehicle (diff). |
| This template uses Lua: |
Infobox fictional vehicle is used to create an infobox for a fictional vehicle of any type - including automobiles, ships, spaceships and space stations.
Usage
The blank form immediately below shows the most commonly used fields, and complete instructions are listed further down the page.
| Script error: No such module "If empty". | |
|---|---|
| {{{series}}} vehicle | |
| [[File:{{{image}}}|frameless|alt={{{alt}}}|upright=1|{{{alt}}}]] {{{caption}}} | |
| First appearance |
|
| Last appearance |
|
| Created by | {{{creator}}} |
| Based on | {{{based_on}}} |
| Information | |
| Affiliation | {{{affiliation}}} |
| Launched | {{{launched}}} |
| Decommissioned | {{{decommissioned}}} |
| Captain | {{{captain}}} |
| Combat vehicles | {{{fighters}}} |
| Auxiliary vehicles | {{{aux_vehicle}}} |
| General characteristics | |
| Class | Script error: No such module "If empty". |
| Registry | {{{registry}}} |
| Armaments | {{{armaments}}} |
| Defenses | Script error: No such module "If empty". |
| Maximum speed | {{{max_speed}}} |
| Propulsion | {{{propulsion}}} |
| Chassis | {{{chassis}}} |
| Power | {{{power}}} |
| Mass | {{{mass}}} |
| Length | {{{length}}} |
| Width | {{{width}}} |
| Height | {{{height}}} |
| Population volume | {{{population_volume}}} |
{{Infobox fictional vehicle
| name =
| other_names =
| series = <!-- or |franchise=; use without the italic on the outside -->
| image =
| alt =
| caption =
| first_major = <!-- per [[MOS:MAJORWORK]] - major works include TV series, films, books, albums and games -->
| first_minor = <!-- or |first_issue=; Per [[MOS:MINORWORK]] - minor works include TV episodes, chapters, songs and game missions -->
| first_date =
| last_major =
| last_minor = <!-- or |last_issue= -->
| last_date =
| creator =
| based_on = <!-- if not an original creation, use {{based on|vehicle|author}} -->
| affiliation =
| launched =
| decommissioned =
| captain =
| fighters =
| aux_vehicle =
| class =
| registry =
| armaments =
| defense = <!-- or |defence= -->
| max_speed =
| propulsion =
| chassis =
| power =
| mass =
| length =
| width =
| height =
| population_volume =
}}
Parameters
All parameters are optional. Separate multiple entries using {{Plainlist}}.
| Parameter | Notes |
|---|---|
| color | Background color for header bars (default = #DEDEE2). The text color is automatically computed. Must meet AAA compliance standards outlines on WP:COLOR. |
| name | Vehicle name to display in top header (default = PAGENAME). |
| series | Name of the series in which vehicle appears. |
| franchise | Name of the fictional world or story in which vehicle appears. Does not italicize title. |
| multiple | Set to yes if the infobox describes more than one vehicle. |
| image | Image of the vehicle. "File:" and wikilinking is not required. i.e. use |image=Example.png.
|
| image_upright | The image size defaults to frameless (220px). The size should not be set to a value that would result in an image width greater than 270px. See help below for guidance on determining the value to be used. |
| alt | Alt text for image per WP:MOSALT. |
| caption | A caption explaining the image. |
| first_major | The title of the major work the fictional element first appeared in. Major works include TV series, films, books, albums and games. |
| first_minor | The title of the minor work the fictional element first appeared in. Minor works include TV episodes, chapters, songs and game missions. |
| first_issue | The number of the comic book issue the fictional element first appeared in. |
| first_date | The date of the publication/release of the minor work where the fictional element first appeared in. |
| last_major | The title of the major work the fictional element last appeared in. Major works include TV series, films, books, albums and games. |
| last_minor | The title of the minor work the fictional element last appeared in. Minor works include TV episodes, chapters, songs and game missions. |
| last_issue | The number of the comic book issue the fictional element last appeared in. |
| last_date | The date of the publication/release of the minor work where the fictional element last appeared in. |
| first | First appearance of the vehicle. |
| last | Last appearance of the vehicle. |
| creator | Name of the individuals who are credited with the creation of the vehicle. |
| based_on | Name of the original vehicle the fictional vehicle is based on. Use to add the title of original vehicle and the names of the original creators. |
| affiliation | The groups or teams the vehicle belongs to. |
| launched | The date the vehicle went operational. |
| decommissioned | The date the vehicle was decommissioned. |
| captain | The captain of the vehicle; Used primarily for ships and spaceships. |
| fighters | The ship or station's combat vehicles. |
| aux_vehicle | The vehicle's auxiliary vehicles. |
| class | The vehicle's class type. |
| registry | The vehicle's register number. |
| armaments | The vehicle's weapons. |
| defense | The vehicle's defenses. |
| max_speed | The vehicle's max speed. |
| propulsion | |
| chassis | The material that the vehicle is made from. |
| power | The type of power the vehicle runs on. |
| mass | The vehicle's mass. |
| length | The vehicle's length. |
| width | The vehicle's width. |
| height | The vehicle's height. |
| population_volume | The number of personnel that are present on-board the vehicle. |
TemplateData
TemplateData
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
See the monthly parameter usage report for this template.
TemplateData for Infobox fictional vehicle Creates an infobox for a fictional vehicle of any type - including automobiles, ships, spaceships and space stations.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Tracking categories
- Category:Pages using infobox fictional vehicle with unknown parameters (0)
- Category:Articles using infoboxes for fictional elements with invalid color combination (8)
| The above documentation is transcluded from Template:Infobox fictional vehicle/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |