Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 23:05, 19 June 2023 by imported>Alistair3149 (Deprecate old vehicle module)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Template loop detected: Template:SC/Vehicle/doc
The above text is transcluded from Template:SC/Vehicle/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:SC/Vehicle/doc. (View all subpages of this page.)

This template handles data related to vehicles.

On the vehicle page

  • Saves template parameters and API data as SMW data
  • Set category from SMW data
  • Set short description from SMW data
  • Display infobox from SMW data

On other pages, it can be used to display the infobox of other vehicles.

Usage

The template should fill in data automatically from API even if there are no template parameters.

<syntaxhighlight lang="wikitext"> Template:Vehicle </syntaxhighlight>

Optional parameters: Template:Note <syntaxhighlight lang="wikitext"> Template:Vehicle </syntaxhighlight>

The following parameters are needed if there are no data in game or on ship matrix. <syntaxhighlight lang="wikitext"> Template:Vehicle </syntaxhighlight>

TemplateData

<templatedata> { "params": { "image": { "label": "Image", "description": "The file name of the image of the ship/vehicle", "example": "Defender0.jpg", "type": "string", "suggested": true }, "name": { "label": "Name", "description": "The name of the ship/vehicle. Make unique, do not share between pages", "example": "Defender", "type": "string", "required": true }, "manufacturer": { "label": "Manufacturer", "description": "The manufacturer code of the manufacturer who made the ship/vehicle", "example": "BANU", "type": "string" }, "size": { "label": "Size", "description": "The size of the ship/vehicle (Vehicle/Snub/Small/Medium/Large/Capital)", "example": "Small", "type": "string" }, "sizenum": { "label": "Numeric size", "description": "Numeric size of the vehicle", "example": "2", "type": "number" }, "mincrew": { "label": "Min crew", "description": "The minimum crew of the ship/vehicle", "example": "1", "type": "number" }, "maxcrew": { "label": "Max crew", "description": "The maximum crew of the ship/vehicle", "example": "2", "type": "number" }, "series": { "label": "Ship/vehicle series", "description": "The ship/vehicle series that this ship/vehicle belongs to", "example": "Avenger", "type": "string" }, "cargocapacity": { "label": "Cargo capacity", "description": "The cargo capacity of the ship in SCU", "example": "300", "type": "number" }, "productionstate": { "label": "Production state", "description": "The production state of the ship/vehicle from RSI website", "example": "In production", "type": "string" }, "productionstatedesc": { "label": "Production state description", "description": "Additional description that will explain the production state", "example": "Active for Alpha 3.7", "type": "string" }, "pledgeavailability": { "label": "Pledge availability", "description": "The pledge availability of the ship/vehicle ", "example": "Always available, Time-limited sales, Limited edition, Out of production, Pending.", "type": "string", "suggestedvalues": [ "Always available", "Time-limited sales", "Limited edition", "Out of production", "Pending" ] }, "pledgecost": { "label": "Pledge cost", "description": "The pledge cost in USD of the ship/vehicle on RSI website", "example": "185", "type": "number" }, "mass": { "label": "Mass", "description": "The null cargo mass of the ship (only needed if different from in-game or ship matrix data)", "example": "78406", "type": "number" }, "length": { "label": "Length", "description": "The length of the ship/vehicle", "example": "33.5", "type": "number" }, "width": { "label": "Width", "description": "The width of the ship/vehicle", "example": "13.2", "type": "number", "aliases": [ "beam" ] }, "height": { "label": "Height", "description": "The height of the ship/vehicle", "example": "4", "type": "number" }, "combatspeed": { "label": "Combat speed", "description": "The combat speed of the ship/vehicle, where the default speed limiter is (only needed if different from in-game or ship matrix data)", "example": "200", "type": "number" }, "maxspeed": { "label": "Maximum speed", "description": "The maximum speed of the ship/vehicle (only needed if different from in-game or ship matrix data)", "example": "1200", "type": "number" }, "rsistoreurl": { "label": "RSI store URL", "description": "The URL of the ship/vehicle on RSI store (note that it is not the package page)", "example": "https://robertsspaceindustries.com/pledge/ships/defender/Defender", "type": "url" }, "galactapediaurl": { "label": "Galactapedia URL", "description": "The URL of the ship/vehicle on Galactapedia", "example": "https://robertsspaceindustries.com/galactapedia/article/V3qgm9vdxm-defender", "type": "url" }, "releasedate": { "label": "Introduction", "description": "First release date of the vehicle in lore", "example": "2772", "type": "date" }, "retiredate": { "label": "Retired", "description": "Retirement date of the vehicle in lore", "example": "2912", "type": "date" }, "originalpledgecost": { "label": "Original pledge cost", "description": "The original pledge cost in USD of the vehicle when it first announced", "example": "90", "type": "number" }, "brochureurl": { "label": "Brochure URL", "description": "The URL of the vehicle brochure", "example": "https://robertsspaceindustries.com/media/q47zalzz81ml4r/source/Banu-Defender.pdf", "type": "url" }, "trailerurl": { "label": "Trailer URL", "description": "The URL of the vehicle trailer", "example": "https://www.youtube.com/watch?v=O6hXjxQ0_lk", "type": "url" }, "career": { "label": "Career", "description": "The career of the ship/vehicle", "example": "Combat, Transport, Exploration, Industrial, Support, Competition, Ground, Multi-role", "type": "string", "suggestedvalues": [ "Combat", "Transport", "Exploration", "Industrial", "Support", "Competition", "Ground", "Multi-role" ] }, "role": { "label": "Role", "description": "The role of the ship/vehicle", "example": "Mining / Refining", "type": "string" }, "warbondcost": { "label": "Warbond cost", "description": "The warbond cost in USD of the ship/vehicle on RSI website", "type": "number" }, "originalwarbondcost": { "label": "Original Warbond cost", "description": "The original pledge cost in USD of the vehicle when it first announced", "type": "number" }, "qandaurl1": { "label": "Q&A URL 1", "description": "The URL of the Q&A", "example": "https://robertsspaceindustries.com/comm-link/engineering/16872-Q-A-Aopoa-Santoky-i", "type": "url" }, "qandaurl2": { "label": "Q&A URL 2", "description": "The URL of the Q&A", "example": "https://robertsspaceindustries.com/comm-link/engineering/16872-Q-A-Aopoa-Santoky-i", "type": "url" }, "qandaurl3": { "label": "Q&A URL 3", "description": "The URL of the Q&A", "example": "https://robertsspaceindustries.com/comm-link/engineering/16872-Q-A-Aopoa-Santoky-i", "type": "url" }, "presentationurl1": { "aliases": [ "presentationurl" ], "label": "Presentation URL", "description": "The URL of the presentation page in Comm-Link", "example": "https://robertsspaceindustries.com/comm-link/transmission/15862-Banu-Defender", "type": "url", "autovalue": "" }, "presentationurl2": { "label": "Presentation URL 2", "description": "The URL of the presentation page in Comm-Link", "type": "url" }, "presentationurl3": { "label": "Presentation URL 3", "description": "The URL of the presentation page in Comm-Link", "type": "url" }, "conceptdate": { "label": "Announced date", "description": "Date when the vehicle was first announced", "example": "2021-11-12", "type": "date" }, "whitleysguideurl": { "label": "Whitley's Guide URL", "description": "The URL of the Whitley's Guide page in Comm-Link", "example": "https://robertsspaceindustries.com/comm-link/spectrum-dispatch/19081-Whitleys-Guide-Terrapin", "type": "url" }, "retractedlength": { "label": "Retracted length", "description": "Length of the vehicle in retracted state", "type": "number" }, "retractedheight": { "label": "Retracted height", "description": "Height of the vehicle in retracted state", "type": "number" }, "retractedwidth": { "label": "Retracted width", "description": "Width of the vehicle in retracted state", "type": "number" }, "uuid": { "label": "UUID", "description": "UUID of the Vehicle/Ship", "example": "97648869-5fa5-42da-b804-4d9314289539", "type": "string" }, "smwqueryname": { "label": "SMW query name", "description": "The page name to load data from", "type": "wiki-page-name" }, "queryimage": { "label": "Query image", "description": "The file name of the alternative image of the ship/vehicle used by other templates", "example": "Defender.jpg", "type": "wiki-file-name" } }, "description": "Handles data related to vehicles.", "paramOrder": [ "name", "image", "manufacturer", "career", "role", "size", "sizenum", "mincrew", "maxcrew", "series", "cargocapacity", "productionstate", "productionstatedesc", "pledgeavailability", "pledgecost", "originalpledgecost", "warbondcost", "originalwarbondcost", "length", "width", "height", "retractedlength", "retractedwidth", "retractedheight", "combatspeed", "maxspeed", "mass", "releasedate", "retiredate", "rsistoreurl", "galactapediaurl", "presentationurl1", "presentationurl2", "presentationurl3", "brochureurl", "trailerurl", "qandaurl1", "qandaurl2", "qandaurl3", "conceptdate", "whitleysguideurl", "uuid", "smwqueryname", "queryimage" ], "format": "block" } </templatedata>