No edit summary |
No edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
|bodyclass = mw-collapsible floatright |
|bodyclass = mw-collapsible floatright |
||
|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}| |
|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|400px]]|[[File:Item {{{name|}}}.png|400px]]}} |
||
|imagerowclass1 = infobox-image |
|imagerowclass1 = infobox-image |
||
Line 33: | Line 33: | ||
|rowclass4 = data-slot infobox-data infobox-col2 |
|rowclass4 = data-slot infobox-data infobox-col2 |
||
|label5 = |
|label5 = Buy price |
||
|data5 = {{#if: {{{ |
|data5 = {{#if: {{{buyprice|}}} | {{Item Stat Value|icon=UI_Icon_Money.png|type=money|value={{formatnum: {{{buyprice}}}}}}} }} |
||
|rowclass5 = data- |
|rowclass5 = data-buyprice infobox-data infobox-col2 |
||
|label6 = |
|label6 = Sell price |
||
|data6 = {{#if: {{{ |
|data6 = {{#if: {{{sellprice|}}} | {{Item Stat Value|icon=UI_Icon_Money.png|type=money|value={{formatnum: {{{sellprice}}}}}}} }} |
||
|rowclass6 = data- |
|rowclass6 = data-sellprice infobox-data infobox-col2 |
||
|label7 = |
|label7 = Max stack |
||
|data7 = {{#if: {{{ |
|data7 = {{#if: {{{maxstack|}}} | {{formatnum: {{{maxstack}}} }} }} |
||
|rowclass7 = data- |
|rowclass7 = data-maxstack infobox-data infobox-col2 |
||
|label8 = |
|label8 = Description |
||
|data8 = {{#if: {{{ |
|data8 = {{#if: {{{description|}}} | {{{description}}} }} |
||
|rowclass8 = data- |
|rowclass8 = data-description infobox-data infobox-col2 |
||
|label9 = |
|label9 = Requirements |
||
|data9 = {{#if: {{{ |
|data9 = {{#if: {{{userequirements|}}} | {{{userequirements}}} }} |
||
|rowclass9 = data- |
|rowclass9 = data-userequirements infobox-data infobox-col2 |
||
|label10 = |
|label10 = Effect |
||
|data10 = {{#if: {{{ |
|data10 = {{#if: {{{useeffect|}}} | {{{useeffect}}} }} |
||
|rowclass10 = data- |
|rowclass10 = data-useeffect infobox-data infobox-col2 |
||
|label11 = |
|label11 = Used for |
||
|data11 = {{#if: {{{ |
|data11 = {{#if: {{{usedfor|}}} | {{{usedfor}}} }} |
||
|rowclass11 = data- |
|rowclass11 = data-usedfor infobox-data infobox-col2 |
||
|label12 = Calibre |
|||
|data12 = {{#if: {{{calibre|}}} | {{{calibre}}} }} |
|||
|rowclass12 = data-calibre infobox-data infobox-col2 |
|||
|header20 = {{#if: {{{weapontype|}}}{{{damage|}}}{{{reloadspeed|}}}{{{zoom|}}}{{{range|}}}{{{ammo|}}}{{{magazinecapacity|}}} | Weapon stats }} |
|header20 = {{#if: {{{weapontype|}}}{{{damage|}}}{{{reloadspeed|}}}{{{zoom|}}}{{{range|}}}{{{ammo|}}}{{{magazinecapacity|}}} | Weapon stats }} |
||
Line 73: | Line 77: | ||
|label23 = DPS |
|label23 = DPS |
||
|data23 = {{# |
|data23 = {{#ifeq:{{#var:damagetotal}} | 0 || {{Rarity Stat Damage|stat={{#var:damagetotal}}*{{{attackspeed}}}}} }} |
||
|rowclass23 = data-dps infobox-data infobox-col2 |
|rowclass23 = data-dps infobox-data infobox-col2 |
||
Line 108: | Line 112: | ||
|rowclass31 = data-range infobox-data infobox-col2 |
|rowclass31 = data-range infobox-data infobox-col2 |
||
|label32 = |
|label32 = Crit chance |
||
|data32 = {{#if: {{{ |
|data32 = {{#if: {{{critchance|}}} | {{{critchance}}}% }} |
||
|rowclass32 = data- |
|rowclass32 = data-critchance infobox-data infobox-col2 |
||
|label33 = Block chance |
|||
|data33 = {{#if: {{{blockchance|}}} | {{Item Stat Value|icon=UI_Icon_Block.png|type=blockchance|value={{{blockchance}}}% }} }} |
|||
|rowclass33 = data-blockchance infobox-data infobox-col2 |
|||
|label34 = Ammo |
|||
|data34 = {{#if: {{{ammo|}}} | {{{ammo}}} }} |
|||
|rowclass34 = data-ammo infobox-data infobox-col2 |
|||
| |
|label35 = Magazine capacity |
||
| |
|data35 = {{#if: {{{magazinecapacity|}}} | {{{magazinecapacity}}} rounds }} |
||
| |
|rowclass35 = data-magazinecapacity infobox-data infobox-col2 |
||
|header40 = {{#if: {{{defense|}}} | Equipment stats }} |
|header40 = {{#if: {{{defense|}}} | Equipment stats }} |
||
Line 149: | Line 161: | ||
{{clear}}<!-- |
{{clear}}<!-- |
||
-->{{#ifeq:{{{type|}}}|Tool|{{navplate tools}}|}}<!-- |
-->{{#ifeq:{{{type|}}}|Tool|{{navplate tools}}|}}<!-- |
||
-->{{#ifeq:{{{type|}}}|Consumable|{{navplate consumables}}|}}<!-- |
|||
-->{{#if:{{{weapontype|}}}|{{navplate weapons}}|}}<!-- |
-->{{#if:{{{weapontype|}}}|{{navplate weapons}}|}}<!-- |
||
-->{{#ifeq:{{{type|}}}|Equipment|{{navplate equipment}}|}}<!-- |
|||
-->{{#ifeq:{{{slot|}}}|Head|[[Category:Head Equipment]]|}}<!-- |
|||
-->{{#ifeq:{{{slot|}}}|Chest|[[Category:Chest Equipment]]|}}<!-- |
|||
-->{{#ifeq:{{{slot|}}}|Pants|[[Category:Pants Equipment]]|}}<!-- |
|||
-->{{#ifeq:{{{slot|}}}|Shoulders|[[Category:Shoulders Equipment]]|}}<!-- |
|||
-->{{#ifeq:{{{slot|}}}|Wrists|[[Category:Wrists Equipment]]|}}<!-- |
|||
-->{{#ifeq:{{{slot|}}}|Gloves|[[Category:Gloves Equipment]]|}}<!-- |
|||
-->{{#ifeq:{{{slot|}}}|Boots|[[Category:Boots Equipment]]|}}<!-- |
|||
-->{{#if:{{{range|}}}|{{#ifexpr: {{{range|}}} > 0 | [[Category:Ranged Weapons]] | [[Category:Melee Weapons]] }}|}}<!-- |
-->{{#if:{{{range|}}}|{{#ifexpr: {{{range|}}} > 0 | [[Category:Ranged Weapons]] | [[Category:Melee Weapons]] }}|}}<!-- |
||
-->{{#if:{{{weapontype|}}}|[[Category:Weapons]][[Category:{{{weapontype}}}]]|}}<!-- |
-->{{#if:{{{weapontype|}}}|[[Category:Weapons]][[Category:{{{weapontype}}}]]|}}<!-- |
||
-->{{#ifeq:{{{type|}}}|Tool|[[Category:Tools]]|}}<!-- |
-->{{#ifeq:{{{type|}}}|Tool|[[Category:Tools]]|}}<!-- |
||
-->{{#ifeq:{{{type|}}}|Consumable|[[Category:Consumables]]|}}<!-- |
|||
-->{{#if:{{{usedfor|}}}|{{#if:{{#pos:{{{usedfor}}}|Mechanics}}|[[Category:Mechanics Tools]]|}}|}}<!-- |
-->{{#if:{{{usedfor|}}}|{{#if:{{#pos:{{{usedfor}}}|Mechanics}}|[[Category:Mechanics Tools]]|}}|}}<!-- |
||
-->{{#if:{{{usedfor|}}}|{{#if:{{#pos:{{{usedfor}}}|Electronics}}|[[Category:Electronics Tools]]|}}|}}<!-- |
-->{{#if:{{{usedfor|}}}|{{#if:{{#pos:{{{usedfor}}}|Electronics}}|[[Category:Electronics Tools]]|}}|}}<!-- |
Latest revision as of 19:22, 28 May 2022
{{Infobox item}} is an infobox template for use in articles on items.
TemplateData
An infobox template for use in articles on items
Parameter | Description | Type | Status | |
---|---|---|---|---|
Image | image | File name of the image of the item
| File | suggested |
Name | name | Name of the item
| String | required |
Type | type | Type of the item (Weapon, Commodity)
| String | required |
Buy price | buyprice | Base buying price
| Number | optional |
Sell price | sellprice | Base selling price
| Number | optional |
Max stack | maxstack | Maximum stack size | Number | optional |
Slot | slot | Equipment slot | String | optional |
Description | description | In-game description (from tooltip)
| String | optional |
Requirements | userequirements | Requirements to use item
| String | optional |
Effect | useeffect | Use effect
| String | optional |
Used for | usedfor | Use case for a tool
| String | optional |
Caliber | caliber | Caliber of ammo
| String | optional |
Weapon type | weapontype | Type of a weapon (Revolver)
| String | optional |
Damage | damage | Physical damage of a weapon (poor quality)
| Number | optional |
Projectile damage | damageprojectile | Damage of firearms (poor quality) | Number | optional |
Piercing damage | damageignorearmor | Damage ignoring armor (poor quality) | Number | optional |
Poison damage | damagepoison | (poor quality) | Number | optional |
Fire damage | damagefire | (poor quality) | Number | optional |
Speed | attackspeed | Attack speed of a weapon
| Number | optional |
Zoom | zoom | Zoom of a weapon ("2" means "2x")
| Number | optional |
Range | range | Range of a weapons, in meters
| Number | optional |
Crit chance | critchance | Chance of a critical hit
| Number | optional |
Block chance | blockchance | Block chance of the item, in percent
| Number | optional |
Ammo | ammo | Ammo type of a weapon
| String | optional |
Magazine capacity | magazinecapacity | Magazine capacity of a weapon
| Unknown | optional |
Defense | defense | Defense value of equipment (poor quality)
| Number | optional |
Projectile defense | defenseprojectile | Defense against projectiles (poor quality) | Number | optional |
Poison defense | defensepoison | Defense against poison (poor quality) | Number | optional |
Fire defense | defensefire | Defense against fire (poor quality) | Number | optional |
Radiation defense | defenseradiation | Defense against radiation (poor quality) | Number | optional |
Article description | articledescription | In-game description (shows in article) | Unknown | optional |
Article content | articlecontent | Content for the article outside of the infobox | Unknown | optional |