More actions
No edit summary |
No edit summary |
||
(96 intermediate revisions by the same user not shown) | |||
Line 4:
--><includeonly>{{Infobox
{{#vardefine:damagetotal|{{#expr:{{{damage|0}}}+{{{damageprojectile|0}}}+{{{damageignorearmor|0}}}+{{{damagepoison|0}}}+{{{damagefire|0}}}}}}}
{{#vardefine:hasmultipledamage|
{{#expr:
(
{{#if:{{{damage|}}}|1|0}}+
{{#if:{{{damageprojectile|}}}|1|0}}+
{{#if:{{{damageignorearmor|}}}|1|0}}+
{{#if:{{{damagepoison|}}}|1|0}}+
{{#if:{{{damagefire|}}}|1|0}}
) > 1
}}
}}
|bodyclass = mw-collapsible floatright
|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|400px]]|[[File:
|imagerowclass1 = infobox-image
Line 15 ⟶ 29:
|rowclass3 = data-type infobox-data infobox-col2
|label4 =
|data4 = {{#if: {{{
|rowclass4 = data-
|label5 = Buy price
|data5 = {{#if: {{{buyprice|}}} | {{Item Stat Value|icon=UI_Icon_Money.png|type=money|value={{formatnum: {{{buyprice}}}}}}} }}
|rowclass5 = data-buyprice infobox-data infobox-col2
|label6 = Sell price
|data6 = {{#if: {{{sellprice|}}} | {{Item Stat Value|icon=UI_Icon_Money.png|type=money|value={{formatnum: {{{sellprice}}}}}}} }}
|rowclass6 = data-sellprice infobox-data infobox-col2
|label7 = Max stack
|data7 = {{#if: {{{maxstack|}}} | {{formatnum: {{{maxstack}}} }} }}
|rowclass7 = data-maxstack infobox-data infobox-col2
|label8 = Description
|data8 = {{#if: {{{description|}}} | {{{description}}} }}
|rowclass8 = data-description infobox-data infobox-col2
|label9 = Requirements
|data9 = {{#if: {{{userequirements|}}} | {{{userequirements}}} }}
|rowclass9 = data-userequirements infobox-data infobox-col2
|label10 = Effect
|data10 = {{#if: {{{useeffect|}}} | {{{useeffect}}} }}
|rowclass10 = data-useeffect infobox-data infobox-col2
|label11 = Used for
|data11 = {{#if: {{{usedfor|}}} | {{{usedfor}}} }}
|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 }}
|rowclass20 = infobox-header
|label21 = Weapon type
|data21 = {{#if: {{{weapontype|}}} | {{{weapontype}}} }}
|rowclass21 = data-weapontype infobox-data infobox-col2
|label22 = Attack speed
|data22 = {{#if: {{{attackspeed|}}} | {{Item Stat Value|icon=UI_Icon_Speed.png|type=speed|value={{#tip-text:{{{attackspeed}}}|Attacks per second}}}} }}
|rowclass22 = data-attackspeed infobox-data infobox-col2
|label23 = DPS
|data23 = {{#ifeq:{{#var:damagetotal}} | 0 || {{Rarity Stat Damage|stat={{#var:damagetotal}}*{{{attackspeed}}}}} }}
|rowclass23 = data-dps infobox-data infobox-col2
|label24 = Total damage
|data24 = {{#ifeq: {{#var:hasmultipledamage}} | 1 | {{Rarity Stat Damage|stat={{#var:damagetotal}}}} }}
|rowclass24 = data-damagetotal infobox-data infobox-col2
|label25 = Damage
|data25 = {{#if: {{{damage|}}} | {{Item Stat Value|icon=UI_Icon_Damage.png|type=damage|value={{Rarity Stat Damage|stat={{{damage}}}}}}} }}
|rowclass25 = data-damage infobox-data infobox-col2
|label26 = Projectile damage
|data26 = {{#if: {{{damageprojectile|}}} | {{Item Stat Value|icon=UI_Icon_Damage_Projectile.png|type=damageprojectile|value={{Rarity Stat Damage|stat={{{damageprojectile}}}}}}} }}
|rowclass26 = data-damageprojectile infobox-data infobox-col2
|label27 = Piercing damage
|data27 = {{#if: {{{damageignorearmor|}}} | {{Item Stat Value|icon=UI_Icon_Damage_Ignore_Armor.png|type=damageignorearmor|value={{Rarity Stat Damage|stat={{{damageignorearmor}}}}}}} }}
|rowclass27 = data-damageignorearmor infobox-data infobox-col2
|label28 = Poison damage
|data28 = {{#if: {{{damagepoison|}}} | {{Item Stat Value|icon=UI_Icon_Damage_Poison.png|type=damagepoison|value={{Rarity Stat Damage|stat={{{damagepoison}}}}}}} }}
|rowclass28 = data-damagepoison infobox-data infobox-col2
|label29 = Fire Damage
|data29 = {{#if: {{{damagefire|}}} | {{Item Stat Value|icon=UI_Icon_Damage_Fire.png|type=damagefire|value={{Rarity Stat Damage|stat={{{damagefire}}}}}}} }}
|rowclass29 = data-damagefire infobox-data infobox-col2
|label30 = Zoom
|data30 = {{#if: {{{zoom|}}} | {{Item Stat Value|icon=UI_Icon_Zoom.png|type=zoom|value={{{zoom}}}x}} }}
|rowclass30 = data-zoom infobox-data infobox-col2
|label31 = Range
|data31 = {{#if: {{{range|}}} | {{Item Stat Value|icon=UI_Icon_Range.png|type=range|value={{#ifeq: {{{range}}} | 0 | Melee | {{{range}}} meters }}}} }}
|rowclass31 = data-range infobox-data infobox-col2
|label32 = Crit chance
|data32 = {{#if: {{{critchance|}}} | {{{critchance}}}% }}
|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 }}
|rowclass40 = infobox-header
|label41 = Defense
|data41 = {{#if: {{{defense|}}} | {{Item Stat Value|icon=UI_Icon_Damage.png|type=damage|value={{Rarity Stat Defense|stat={{{defense}}}}}}} }}
|rowclass41 = data-defense infobox-data infobox-col2
|label42 = Projectile defense
|data42 = {{#if: {{{defenseprojectile|}}} | {{Item Stat Value|icon=UI_Icon_Damage_Projectile.png|type=damageprojectile|value={{Rarity Stat Defense|stat={{{defenseprojectile}}}}}}} }}
|rowclass42 = data-defenseprojectile infobox-data infobox-col2
|label43 = Poison defense
|data43 = {{#if: {{{defensepoison|}}} | {{Item Stat Value|icon=UI_Icon_Damage_Poison.png|type=damagepoison|value={{Rarity Stat Defense|stat={{{defensepoison}}}}}}} }}
|rowclass43 = data-defensepoison infobox-data infobox-col2
|label44 = Fire defense
|data44 = {{#if: {{{defensefire|}}} | {{Item Stat Value|icon=UI_Icon_Damage_Fire.png|type=damagefire|value={{Rarity Stat Defense|stat={{{defensefire}}}}}}} }}
|rowclass44 = data-defensefire infobox-data infobox-col2
|label45 = Radiation defense
|data45 = {{#if: {{{defenseradiation|}}} | {{Item Stat Value|icon=UI_Icon_Damage_Radiation.png|type=defenseradiation|value={{Rarity Stat Defense|stat={{{defenseradiation}}}}}}} }}
|
|header100 = <span></span>
|rowclass100 = infobox-button-bar
}}
{{#if:{{{articledescription|}}}|== In-game description ==
<blockquote>{{{articledescription}}}</blockquote>
|}}
{{{articlecontent|}}}
{{clear}}<!--
-->{{#ifeq:{{{type|}}}|Tool|{{navplate tools}}|}}<!--
-->{{#ifeq:{{{type|}}}|Consumable|{{navplate consumables}}|}}<!--
-->{{#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:{{{weapontype|}}}|[[Category:Weapons]][[Category:{{{weapontype}}}]]|}}<!--
-->{{#ifeq:{{{type|}}}|Tool|[[Category:Tools]]|}}<!--
-->{{#ifeq:{{{type|}}}|Consumable|[[Category:Consumables]]|}}<!--
-->{{#if:{{{usedfor|}}}|{{#if:{{#pos:{{{usedfor}}}|Mechanics}}|[[Category:Mechanics Tools]]|}}|}}<!--
-->{{#if:{{{usedfor|}}}|{{#if:{{#pos:{{{usedfor}}}|Electronics}}|[[Category:Electronics Tools]]|}}|}}<!--
-->{{#if:{{{usedfor|}}}|{{#if:{{#pos:{{{usedfor}}}|Lockpicking}}|[[Category:Lockpicking Tools]]|}}|}}<!--
-->{{#if:{{{usedfor|}}}|{{#if:{{#pos:{{{usedfor}}}|Lumbering}}|[[Category:Lumbering Tools]]|}}|}}<!--
-->{{#if:{{{usedfor|}}}|{{#if:{{#pos:{{{usedfor}}}|Mining}}|[[Category:Mining Tools]]|}}|}}<!--
-->{{#if:{{{usedfor|}}}|{{#if:{{#pos:{{{usedfor}}}|Digging}}|[[Category:Digging Tools]]|}}|}}<!--
-->{{#if:{{{usedfor|}}}|{{#if:{{#pos:{{{usedfor}}}|Agriculture}}|[[Category:Agriculture Tools]]|}}|}}<!--
-->{{#if:{{{usedfor|}}}|{{#if:{{#pos:{{{usedfor}}}|Skinning}}|[[Category:Skinning Tools]]|}}|}}<!--
-->{{#if:{{{usedfor|}}}|{{#if:{{#pos:{{{usedfor}}}|Wrecking}}|[[Category:Wrecking Tools]]|}}|}}<!--
-->{{#if:{{{usedfor|}}}|{{#if:{{#pos:{{{usedfor}}}|Fishing}}|[[Category:Fishing Tools]]|}}|}}<!--
--></includeonly>
<noinclude>
{{/doc}}
</noinclude>
|
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 |