More actions
Alistair3149 (talk | contribs) No edit summary Tag: 2017 source edit |
Alistair3149 (talk | contribs) Exclude armor set in API Tag: 2017 source edit |
||
(40 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- |
<!-- |
||
EXPERIMENT: Set API data |
|||
-->{{#ifeq:{{{type}}}|Armor set||{{#invoke:Item|loadApiData}}}}<!-- |
|||
Infobox |
Infobox |
||
--><includeonly> |
--><includeonly>{{Infobox |
||
{{Infobox |
|||
|bodyclass = mw-collapsible floatright |
|bodyclass = mw-collapsible floatright |
||
|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}| |
|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|400px]]|[[File:Placeholderv2.png|400px]]}} |
||
|imagerowclass1 = infobox-image |
|imagerowclass1 = infobox-image |
||
Line 12: | Line 14: | ||
|rowclass2 = infobox-title |
|rowclass2 = infobox-title |
||
|label3 = |
|label3 = Manufacturer |
||
|data3 = {{#if:{{{ |
|data3 = {{#if:{{{manufacturer|}}}|{{Infobox data MFU|{{{manufacturer|}}}}}}} |
||
|rowclass3 = data- |
|rowclass3 = data-manufacturer infobox-subtitle infobox-data infobox-col1 |
||
|label4 = |
|label4 = Type |
||
|data4 = {{#if:{{{type|}}}|[[:Category:{{Infobox category wearable|{{{type}}}}}|{{{type}}}]]}} |
|||
|data4 = {{{classification|}}} |
|||
|rowclass4 = data- |
|rowclass4 = data-type infobox-data infobox-col2 |
||
|label5 = |
|label5 = Classification |
||
|data5 = {{#if:{{{ |
|data5 = {{#if:{{{classification|}}}|[[:Category:{{pluralize|{{{classification}}}}}|{{{classification}}}]]}} |
||
|rowclass5 = data- |
|rowclass5 = data-classification infobox-data infobox-col2 |
||
|label6 = Main set |
|label6 = Main set |
||
|data6 = {{#if:{{{mainset|}}}|[[ |
|data6 = {{#if:{{{mainset|}}}|[[{{{mainset}}}]]}} |
||
|rowclass6 = data-mainset infobox-data infobox-col2 |
|rowclass6 = data-mainset infobox-data infobox-col2 |
||
|label7 = Sex |
|label7 = Sex |
||
|data7 = {{{sex|}}} |
|data7 = {{#if:{{{sex|}}}|{{{sex}}}|Unisex}} |
||
|rowclass7 = data-sex infobox-data infobox-col2 |
|rowclass7 = data-sex infobox-data infobox-col2 |
||
Line 40: | Line 42: | ||
|rowclass9 = data-occupancy infobox-data infobox-col2 |
|rowclass9 = data-occupancy infobox-data infobox-col2 |
||
|label10 = Production state |
|||
⚫ | |||
|data10 = {{{productionstate|}}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
|label12 = Weapon |
|||
⚫ | |||
⚫ | |||
| |
|rowclass21 = data-inventory infobox-data infobox-col3 |
||
|label22 = Backpack |
|||
⚫ | |||
|data22 = {{#if:{{{backpack|}}}{{{backpacksize|}}}|{{#if:{{{backpack|}}}|{{{backpack}}}|Empty}}{{#if:{{{backpacksize|}}}|{{nbsp}}(S{{{backpacksize}}})}}}} |
|||
|data13 = {{{utilityitem|}}} |
|||
| |
|rowclass22 = data-backpack infobox-data infobox-col3 |
||
| |
|label23 = Weapon |
||
| |
|data23 = {{{weapon|}}} |
||
| |
|rowclass23 = data-weapon infobox-data infobox-col3 |
||
⚫ | |||
|label15 = OxyPen |
|||
| |
|data24 = {{{utilityitem|}}} |
||
| |
|rowclass24 = data-utilityitem infobox-data infobox-col3 |
||
|label25 = Consumable |
|||
|label16 = Magazine |
|||
| |
|data25 = {{{consumable|}}} |
||
| |
|rowclass25 = data-consumable infobox-data infobox-col3 |
||
| |
|label27 = Magazine |
||
| |
|data27 = {{{magazine|}}} |
||
| |
|rowclass27 = data-magazine infobox-data infobox-col3 |
||
|label28 = Grenade |
|||
⚫ | |||
⚫ | |||
⚫ | |||
|rowclass28 = data-grenade infobox-data infobox-col3 |
|||
⚫ | |||
⚫ | |||
| |
|label41 = Temperature |
||
| |
|data41 = {{#if:{{{mintemp|}}}{{{maxtemp|}}}|{{{mintemp|?}}} / {{{maxtemp|?}}} °C}} |
||
| |
|rowclass41 = data-temperature infobox-data infobox-col2 |
||
| |
|label42 = Pressurized |
||
| |
|data42 = {{{pressurized|}}} |
||
| |
|rowclass42 = data-pressurized infobox-data infobox-col2 |
||
| |
|header50 = {{#if:{{{physicalresistance|}}}{{{energyresistance|}}}{{{distortionresistance|}}} {{{thermalresistance|}}}{{{biochemicalresistance|}}}{{{stunresistance|}}}|Damage resistance}} |
||
| |
|rowclass50 = infobox-header |
||
| |
|label52 = Physical |
||
| |
|data52 = {{#if:{{{physicalresistance|}}}|{{Moreless|{{#expr: (1 - {{{physicalresistance}}}) * 100}}|unit=%}}}} |
||
| |
|rowclass52 = data-physicalresistance infobox-data infobox-col3 |
||
| |
|label53 = Energy |
||
| |
|data53 = {{#if:{{{energyresistance|}}}|{{Moreless|{{#expr: (1 - {{{energyresistance}}}) * 100}}|unit=%}}}} |
||
| |
|rowclass53 = data-energyresistance infobox-data infobox-col3 |
||
| |
|label54 = Distortion |
||
| |
|data54 = {{#if:{{{distortionresistance|}}}|{{Moreless|{{#expr: (1 - {{{distortionresistance}}}) * 100}}|unit=%}}}} |
||
| |
|rowclass54 = data-distortionresistance infobox-data infobox-col3 |
||
| |
|label55 = Thermal |
||
| |
|data55 = {{#if:{{{thermalresistance|}}}|{{Moreless|{{#expr: (1 - {{{thermalresistance}}}) * 100}}|unit=%}}}} |
||
| |
|rowclass55 = data-thermalresistance infobox-data infobox-col3 |
||
| |
|label56 = Biochemical |
||
| |
|data56 = {{#if:{{{biochemicalresistance|}}}|{{Moreless|{{#expr: (1 - {{{biochemicalresistance}}}) * 100}}|unit=%}}}} |
||
| |
|rowclass56 = data-biochemicalresistance infobox-data infobox-col3 |
||
| |
|label57 = Stun |
||
| |
|data57 = {{#if:{{{stunresistance|}}}|{{Moreless|{{#expr: (1 - {{{stunresistance}}}) * 100}}|unit=%}}}} |
||
| |
|rowclass57 = data-stunresistance infobox-data infobox-col3 |
||
|header100 = <span></span> |
|header100 = <span></span> |
||
|rowclass100 = infobox-button-bar |
|rowclass100 = infobox-button-bar |
||
}}<!-- |
}}</includeonly><!-- |
||
Short description |
Short description |
||
-->{{Short description|{{type|Apparel}}{{nbsp}}{{#if:{{{manufacturer|}}}|manufactured by {{MFUNAME|{{{manufacturer}}}}}}}<!-- |
--><includeonly>{{Short description|{{{type|Apparel}}}{{nbsp}}{{#if:{{{manufacturer|}}}|manufactured by {{MFUNAME|{{{manufacturer}}}}}}}}}</includeonly><!-- |
||
Categorization |
Categorization |
||
-->{{#if:{{{type|}}}| |
--><includeonly>{{#if:{{{type|}}}|<!-- |
||
-->{{# |
-->{{#ifeq:{{{type}}}|Armor set|[[Category:Personal armor]]}}<!-- |
||
-->{{#if:{{#switch: {{{type}}} |
|||
| Hat |
|||
| Shirt |
|||
| Jacket |
|||
| Gloves |
|||
| Pants |
|||
| Footwear = yes |
|||
}}|[[Category:Clothing]]}}<!-- |
|||
-->[[Category:{{Infobox category wearable|{{{type}}}}}]]<!-- |
|||
-->|[[Category:Unknown type apparel]]}}<!-- |
|||
-->{{#if:{{{classification|}}}|[[Category:{{pluralize|{{{classification}}}}}]]}}<!-- |
|||
-->{{#if:{{{mainset|}}}|[[Category:{{{mainset}}} set]]}}<!-- |
|||
-->{{#if:{{{manufacturer|}}}|[[Category:{{MFUNAME|{{{manufacturer}}}}}]]|[[Category:Unknown manufacturer]]}}</includeonly><!-- |
|||
SEO |
SEO |
||
-->{{#vardefine:infoboxseo|1}}{{#seo: |
--><includeonly>{{#vardefine:infoboxseo|1}}{{#seo: |
||
|title = {{{name}}} - Star Citizen Wiki |
|title = {{{name}}} - Star Citizen Wiki |
||
|site_name = Star Citizen Wiki |
|site_name = Star Citizen Wiki |
Latest revision as of 20:33, 12 March 2024
{{Infobox wearable}} is an infobox template for use in articles on the individual wearable pages such as clothings and armors.
Usage
{{Infobox wearable |name = <!-- Name of the wearable --> |image = <!-- File name of the image of the wearable --> |type = <!-- Please use one of these: Armor set / Helmet / Torso armor / Arms armor / Legs armor / Undersuit / Hat / Shirt / Jacket / Gloves / Pants / Footwear / Eyewear --> |classification = <!-- Classification of the wearable (Medium armor, T-shirt, etc.) --> |manufacturer = <!-- Manufacturer code of the wearable --> |mainset = <!-- Name of the main set that the wearable belongs to (skip this on an wearable set page) --> |sex = <!-- Supported sex for the wearable (Unisex/Male/Female) --> |baseprice = <!-- Base price of the wearable (without separators and unit) --> |occupancy = <!-- SCU occupied by the wearable (please include the unit) --> |productionstate = <!-- Development status of the item --> |inventory = <!-- Size of inventory of the wearable in SP (without separators and unit) --> |weapon = <!-- Max size weapon slots (separated by comma, group together for same size) --> |utilityitem = <!-- Max size utility item slots (separated by comma, group together for same size) --> |consumable = <!-- Number of consumable slots --> |magazine = <!-- Number of magazine slots --> |grenade = <!-- Number of grenade slots --> |backpack = <!-- Name of the backpack attached --> |backpacksize = <!-- Max size backpack slot --> |mintemp = <!-- Minimum temperature rating (without unit) --> |maxtemp = <!-- Maximum temperature rating (without unit) --> |pressurized = <!-- Whether this wearable is pressurized (Yes/No) --> |physicalresistance = <!-- Physical damage modifier of the wearable --> |energyresistance = <!-- Energy damage modifier of the wearable --> |distortionresistance = <!-- Distortion damage modifier of the wearable --> |thermalresistance = <!-- Thermal damage modifier of the wearable --> |biochemicalresistance = <!-- Biochemical damage modifier of the wearable --> |stunresistance = <!-- Stun damage modifier of the wearable --> }}
TemplateData
An infobox template for use in articles on the individual wearable pages such as clothings and armors.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | Name of the wearable
| String | required |
Image | image | File name of the image of the wearable
| File | suggested |
Type | type | Type of the wearable (Helmet, Torso armor, Arm armor, Leg armor, Undersuit, Hat, Shirt, Jacket, Gloves, Pants, Footwear)
| String | required |
Classification | classification | Classification of the wearable (Medium armor, T-shirt, etc.)
| String | suggested |
Manufacturer | manufacturer | Manufacturer code of the wearable
| String | suggested |
Main set | mainset | Name of the main set that the wearable belongs to (skip this on an wearable set page)
| Page name | suggested |
Sex | sex | Supported sex for the wearable (Unisex/Male/Female)
| String | suggested |
Base price | baseprice | Base price of the wearable (without separators and unit)
| Number | suggested |
Occupancy | occupancy | SCU occupied by the wearable (please include the unit)
| String | optional |
Production state | productionstate | Development status of the item | Unknown | suggested |
Inventory | inventory | Size of inventory of the wearable in SP (without separators and unit)
| Number | optional |
Weapon slot | weapon | Max size weapon slots (separated by comma, group together for same size)
| String | optional |
Utility item slot | utilityitem | Max size utility item slots (separated by comma, group together for same size)
| String | optional |
Consumable slot | consumable | Number of consumable slots
| Number | suggested |
MedPen slot | medpen | Number of MedPen slots
| Number | deprecated |
OxyPen slot | oxypen | Number of OxyPen slots
| Number | deprecated |
Magazine slot | magazine | Number of magazine slots
| Number | optional |
Grenade slot | grenade | Number of grenade slots
| Number | optional |
Backpack | backpack | Name of the backpack attached
| String | optional |
Size of backpack slot | backpacksize | Max size backpack slot (number only)
| Number | optional |
Minimum temperature | mintemp | Minimum temperature rating (without unit)
| Number | optional |
Maximum temperature | maxtemp | Maximum temperature rating (without unit)
| Number | optional |
Pressurized | pressurized | Whether this wearable is pressurized (Yes/No)
| String | optional |
Physical resistance | physicalresistance | Physical damage modifier of the wearable
| Number | optional |
Energy resistance | energyresistance | Energy damage modifier of the wearable
| Number | optional |
Distortion resistance | distortionresistance | Distortion damage modifier of the wearable
| Number | optional |
Thermal resistance | thermalresistance | Thermal damage modifier of the wearable
| Number | optional |
Biochemical resistance | biochemicalresistance | Biochemical damage modifier of the wearable
| Number | optional |
Stun resistance | stunresistance | Stun damage modifier of the wearable
| Number | optional |