More actions
Alistair3149 (talk | contribs) add production state Tag: 2017 source edit |
Alistair3149 (talk | contribs) Exclude armor set in API Tag: 2017 source edit |
||
(23 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 |
||
Line 5: | Line 8: | ||
--><includeonly>{{Infobox |
--><includeonly>{{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 11: | 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 |
||
Line 47: | Line 50: | ||
|label21 = Inventory |
|label21 = Inventory |
||
|data21 = {{#if:{{{inventory|}}}|{{formatnum:{{{inventory}}}}} |
|data21 = {{#if:{{{inventory|}}}|{{formatnum:{{{inventory}}}}} µSCU}} |
||
|rowclass21 = data-inventory infobox-data infobox-col3 |
|rowclass21 = data-inventory infobox-data infobox-col3 |
||
|label22 = |
|label22 = Backpack |
||
|data22 = {{#if:{{{backpack|}}}{{{backpacksize|}}}|{{#if:{{{backpack|}}}|{{{backpack}}}|Empty}}{{#if:{{{backpacksize|}}}|{{nbsp}}(S{{{backpacksize}}})}}}} |
|||
|data22 = {{{weapon|}}} |
|||
|rowclass22 = data- |
|rowclass22 = data-backpack infobox-data infobox-col3 |
||
|label23 = |
|label23 = Weapon |
||
|data23 = {{{ |
|data23 = {{{weapon|}}} |
||
|rowclass23 = data- |
|rowclass23 = data-weapon infobox-data infobox-col3 |
||
|label24 = |
|label24 = Utility item |
||
|data24 = {{{ |
|data24 = {{{utilityitem|}}} |
||
|rowclass24 = data- |
|rowclass24 = data-utilityitem infobox-data infobox-col3 |
||
|label25 = |
|label25 = Consumable |
||
|data25 = {{{ |
|data25 = {{{consumable|}}} |
||
|rowclass25 = data- |
|rowclass25 = data-consumable infobox-data infobox-col3 |
||
| |
|label27 = Magazine |
||
| |
|data27 = {{{magazine|}}} |
||
| |
|rowclass27 = data-magazine infobox-data infobox-col3 |
||
| |
|label28 = Grenade |
||
| |
|data28 = {{{grenade|}}} |
||
| |
|rowclass28 = data-grenade infobox-data infobox-col3 |
||
|header40 = {{#if:{{{mintemp|}}}{{{maxtemp|}}}{{{pressurized|}}}|Environment protection}} |
|header40 = {{#if:{{{mintemp|}}}{{{maxtemp|}}}{{{pressurized|}}}|Environment protection}} |
||
Line 89: | Line 92: | ||
|label52 = Physical |
|label52 = Physical |
||
|data52 = {{#if:{{{physicalresistance|}}}|{{#expr: (1 - {{{physicalresistance}}}) * 100}}%}} |
|data52 = {{#if:{{{physicalresistance|}}}|{{Moreless|{{#expr: (1 - {{{physicalresistance}}}) * 100}}|unit=%}}}} |
||
|rowclass52 = data-physicalresistance infobox-data infobox-col3 |
|rowclass52 = data-physicalresistance infobox-data infobox-col3 |
||
|label53 = Energy |
|label53 = Energy |
||
|data53 = {{#if:{{{energyresistance|}}}|{{#expr: (1 - {{{energyresistance}}}) * 100}}%}} |
|data53 = {{#if:{{{energyresistance|}}}|{{Moreless|{{#expr: (1 - {{{energyresistance}}}) * 100}}|unit=%}}}} |
||
|rowclass53 = data-energyresistance infobox-data infobox-col3 |
|rowclass53 = data-energyresistance infobox-data infobox-col3 |
||
|label54 = Distortion |
|label54 = Distortion |
||
|data54 = {{#if:{{{distortionresistance|}}}|{{#expr: (1 - {{{distortionresistance}}}) * 100}}%}} |
|data54 = {{#if:{{{distortionresistance|}}}|{{Moreless|{{#expr: (1 - {{{distortionresistance}}}) * 100}}|unit=%}}}} |
||
|rowclass54 = data-distortionresistance infobox-data infobox-col3 |
|rowclass54 = data-distortionresistance infobox-data infobox-col3 |
||
|label55 = Thermal |
|label55 = Thermal |
||
|data55 = {{#if:{{{thermalresistance|}}}|{{#expr: (1 - {{{thermalresistance}}}) * 100}}%}} |
|data55 = {{#if:{{{thermalresistance|}}}|{{Moreless|{{#expr: (1 - {{{thermalresistance}}}) * 100}}|unit=%}}}} |
||
|rowclass55 = data-thermalresistance infobox-data infobox-col3 |
|rowclass55 = data-thermalresistance infobox-data infobox-col3 |
||
|label56 = Biochemical |
|label56 = Biochemical |
||
|data56 = {{#if:{{{biochemicalresistance|}}}|{{#expr: (1 - {{{biochemicalresistance}}}) * 100}}%}} |
|data56 = {{#if:{{{biochemicalresistance|}}}|{{Moreless|{{#expr: (1 - {{{biochemicalresistance}}}) * 100}}|unit=%}}}} |
||
|rowclass56 = data-biochemicalresistance infobox-data infobox-col3 |
|rowclass56 = data-biochemicalresistance infobox-data infobox-col3 |
||
|label57 = Stun |
|label57 = Stun |
||
|data57 = {{#if:{{{stunresistance|}}}|{{#expr: (1 - {{{stunresistance}}}) * 100}}%}} |
|data57 = {{#if:{{{stunresistance|}}}|{{Moreless|{{#expr: (1 - {{{stunresistance}}}) * 100}}|unit=%}}}} |
||
|rowclass57 = data-stunresistance infobox-data infobox-col3 |
|rowclass57 = data-stunresistance infobox-data infobox-col3 |
||
Line 135: | Line 138: | ||
-->[[Category:{{Infobox category wearable|{{{type}}}}}]]<!-- |
-->[[Category:{{Infobox category wearable|{{{type}}}}}]]<!-- |
||
-->|[[Category:Unknown type apparel]]}}<!-- |
-->|[[Category:Unknown type apparel]]}}<!-- |
||
-->{{#if:{{{classification|}}}|[[Category:{{pluralize|{{{classification}}}}}]]}}<!-- |
|||
-->{{#if:{{{mainset|}}}|[[Category:{{{mainset}}} set]]}}<!-- |
-->{{#if:{{{mainset|}}}|[[Category:{{{mainset}}} set]]}}<!-- |
||
-->{{#if:{{{manufacturer|}}}|[[Category:{{MFUNAME|{{{manufacturer}}}}}]]|[[Category:Unknown manufacturer]]}}</includeonly><!-- |
-->{{#if:{{{manufacturer|}}}|[[Category:{{MFUNAME|{{{manufacturer}}}}}]]|[[Category:Unknown manufacturer]]}}</includeonly><!-- |
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 |