打开/关闭菜单
打开/关闭个人菜单
未登录
如果您进行任何编辑,您的IP地址会公开展示。

Template:Vehicle/doc

模板页面
< Template:Vehicle
LeonRay留言 | 贡献2024年5月8日 (三) 11:42的版本 (创建页面,内容为“{{Documentation}} 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"> {{Vehicle}…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
Template:Vehicle invokes function main in Module:Vehicle using Lua.

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.

{{Vehicle}}

Optional parameters:

Note: Like other infoboxes, you don't need to put units and separators in the infobox. It will be added automatically.
{{Vehicle
| image = <!-- Image name on wiki -->
| manufacturer = <!-- Manufacturer code -->
| productionstate = <!-- In Concept/In Production/Flight Ready -->
| productionstatedesc = <!-- [[Star Citizen Alpha X.X.X|Alpha X.X.X]] -->
| mincrew = <!-- Minimum crew of the vehicle -->
| maxcrew = <!-- Maximum crew of the vehicle -->
| pledgecost = <!-- Current pledge store price -->
| originalpledgecost = <!-- Initial pledge store price -->
| warbondcost = <!-- Current warbond pledge store price -->
| originalwarbondcost = <!-- Initial warbond pledge store price -->
| pledgeavailability = <!-- Always available/Time-limited sales/Quantity-limited sales/Promotion-only -->
| length = <!-- Length of the vehicle -->
| retractedlength = <!-- Length of the vehicle in retracted state -->
| height = <!-- Height of the vehicle -->
| retractedheight = <!-- Height of the vehicle in retracted state -->
| width = <!-- Width of the vehicle -->
| retractedwidth = <!-- Width of the vehicle in retracted state -->
| releasedate = <!-- Lore release date of the vehicle -->
| retiredate = <!-- Lore retirement date of the vehicle -->
| developedfrom = <!-- Wikilink of the predecessor of the vehicle -->
| developedinto = <!-- Wikilink of the successor of the vehicle -->
| conceptdate = <!-- Date when the vehicle was first announced -->
| saledate = <!-- Date when the vehicle was first sold -->
| rsistoreurl = <!-- URL of pledge store page -->
| brochureurl = <!-- URL of vehicle brochure page -->
| trailerurl = <!-- URL of trailer page on YouTube -->
| presentationurl1 = <!-- URL of the comm-link presentation page -->
| qandaurl1 = <!-- URL of Q&A page -->
| galactapediaurl = <!-- URL of Galactapedia page -->
| whitleysguideurl = <!-- URL of Whitley's Guide page -->
| name = <!-- Name override of the vehicle if different from the page name -->
| smwqueryname = <!-- SMW query override -->
| uuid = <!-- UUID of the vehicle -->
}}

The following parameters are needed if there are no data in game or on ship matrix.

{{Vehicle
| name = <!-- Vehicle name -->
| size = <!-- Size of the vehicle (e.g. vehicle/small/medium/large/capital) -->
| role = <!-- Role in game description or RSI website -->
| cargocapacity = <!-- Cargo capacity in SCU -->
}}

TemplateData

Handles data related to vehicles.

模板参数

此模板有自定义格式。

参数描述类型状态
Imageimage

The file name of the image of the ship/vehicle

示例值
Defender0.jpg
字符串推荐
Namename

The name of the ship/vehicle

示例值
Defender
字符串必需
Manufacturermanufacturer

The manufacturer code of the manufacturer who made the ship/vehicle

示例值
BANU
字符串推荐
Rolerole

The role of the ship/vehicle

示例值
Light fighter
字符串推荐
Sizesize

The size of the ship/vehicle (Vehicle/Snub/Small/Medium/Large/Capital)

示例值
Small
字符串推荐
Numeric sizesizenum

Numeric size of the vehicle

示例值
2
数字推荐
Min crewmincrew

The minimum crew of the ship/vehicle

示例值
1
数字必需
Max crewmaxcrew

The maximum crew of the ship/vehicle

示例值
2
数字必需
Ship/vehicle seriesseries

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

示例值
Avenger
字符串可选
Cargo capacitycargocapacity

The cargo capacity of the ship in SCU

示例值
300
数字推荐
Production stateproductionstate

The production state of the ship/vehicle from RSI website

示例值
In production
字符串可选
Production state descriptionproductionstatedesc

Additional description that will explain the production state

示例值
Active for [[Star Citizen Alpha 3.7.0|Alpha 3.7]]
字符串可选
Pledge avaliabilitypledgeavailability

The pledge availability of the ship/vehicle

示例值
Time-limited sales
字符串可选
Pledge costpledgecost

The pledge cost in USD of the ship/vehicle on RSI website

示例值
185
数字可选
Original pledge costoriginalpledgecost

The original pledge cost in USD of the vehicle when it first announced

示例值
90
数字可选
Warbond costwarbondcost

The warbond cost in USD of the ship/vehicle on RSI website

数字可选
Original Warbond costoriginalwarbondcost

The original pledge cost in USD of the vehicle when it first announced

数字可选
Lengthlength

The length of the ship/vehicle

示例值
33.5
数字推荐
Widthwidthbeam

The width of the ship/vehicle

示例值
13.2
数字推荐
Heightheight

The height of the ship/vehicle

示例值
4
数字推荐
Combat speedcombatspeed

The combat speed of the ship/vehicle, where the default speed limiter is (only needed if different from in-game or ship matrix data)

示例值
200
数字可选
Maximum speedmaxspeed

The maximum speed of the ship/vehicle (only needed if different from in-game or ship matrix data)

示例值
1200
数字可选
Massmass

The null cargo mass of the ship (only needed if different from in-game or ship matrix data)

示例值
78406
数字可选
Introductionreleasedate

First release date of the vehicle in lore

示例值
2772
日期可选
Retiredretiredate

Retirement date of the vehicle in lore

示例值
2912
日期可选
RSI store URLrsistoreurl

The URL of the ship/vehicle on RSI store (note that it is not the package page)

示例值
https://robertsspaceindustries.com/pledge/ships/defender/Defender
URL推荐
Galactapedia URLgalactapediaurl

The URL of the ship/vehicle on Galactapedia

示例值
https://robertsspaceindustries.com/galactapedia/article/V3qgm9vdxm-defender
URL可选
Presentation URLpresentationurl1presentationurl

The URL of the presentation page in Comm-Link

示例值
https://robertsspaceindustries.com/comm-link/transmission/15862-Banu-Defender
自动值
URL推荐
Brochure URLbrochureurl

The URL of the vehicle brochure

示例值
https://robertsspaceindustries.com/media/q47zalzz81ml4r/source/Banu-Defender.pdf
URL可选
Trailer URLtrailerurl

The URL of the vehicle trailer

示例值
https://www.youtube.com/watch?v=O6hXjxQ0_lk
URL可选
Q&A URL 1qandaurl1

The URL of the Q&A

示例值
https://robertsspaceindustries.com/comm-link/engineering/16872-Q-A-Aopoa-Santoky-i
URL可选
Q&A URL 2qandaurl2

The URL of the Q&A

示例值
https://robertsspaceindustries.com/comm-link/engineering/16872-Q-A-Aopoa-Santoky-i
URL可选
Q&A URL 3qandaurl3

The URL of the Q&A

示例值
https://robertsspaceindustries.com/comm-link/engineering/16872-Q-A-Aopoa-Santoky-i
URL可选
Presentation URL 2presentationurl2

The URL of the presentation page in Comm-Link

URL可选
Presentation URL 3presentationurl3

The URL of the presentation page in Comm-Link

URL可选
Announced dateconceptdate

Date when the vehicle was first announced

示例值
2021-11-12
日期可选
Concept sale datesaledate

Date when the vehicle was first sold

示例值
2021-06-05
日期可选
Whitley's Guide URLwhitleysguideurl

The URL of the Whitley's Guide page in Comm-Link

示例值
https://robertsspaceindustries.com/comm-link/spectrum-dispatch/19081-Whitleys-Guide-Terrapin
URL推荐
Retracted lengthretractedlength

Length of the vehicle in retracted state

数字可选
Retracted heightretractedheight

Height of the vehicle in retracted state

数字可选
Retracted widthretractedwidth

Width of the vehicle in retracted state

数字可选
uuiduuid

无描述

未知可选
smwquerynamesmwqueryname

无描述

未知可选
我们提供服务需要使用Cookie。您使用我们的服务,即表示您同意我们使用Cookie。