No edit summary |
No edit summary |
||
(103 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
--><includeonly>{{Infobox |
--><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 |
|bodyclass = mw-collapsible floatright |
||
|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|400px]]|[[File: |
|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|400px]]|[[File:Item {{{name|}}}.png|400px]]}} |
||
|imagerowclass1 = infobox-image |
|imagerowclass1 = infobox-image |
||
Line 11: | Line 25: | ||
|rowclass2 = infobox-title |
|rowclass2 = infobox-title |
||
|label3 = |
|label3 = Type |
||
|data3 = {{#if:{{{ |
|data3 = {{#if: {{{type|}}} | {{{type}}} }} |
||
|rowclass3 = data- |
|rowclass3 = data-type infobox-data infobox-col2 |
||
|label4 = |
|label4 = Slot |
||
|data4 = {{#if:{{{ |
|data4 = {{#if: {{{slot|}}} | {{{slot}}} }} |
||
|rowclass4 = data- |
|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 = 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 |
|||
|label10 = Production state |
|||
|data12 = {{#if: {{{calibre|}}} | {{{calibre}}} }} |
|||
|data10 = {{{productionstate|}}} |
|||
| |
|rowclass12 = data-calibre infobox-data infobox-col2 |
||
|header20 = {{#if:{{{ |
|header20 = {{#if: {{{weapontype|}}}{{{damage|}}}{{{reloadspeed|}}}{{{zoom|}}}{{{range|}}}{{{ammo|}}}{{{magazinecapacity|}}} | Weapon stats }} |
||
|rowclass20 = infobox-header |
|rowclass20 = infobox-header |
||
|label21 = |
|label21 = Weapon type |
||
|data21 = {{{ |
|data21 = {{#if: {{{weapontype|}}} | {{{weapontype}}} }} |
||
|rowclass21 = data- |
|rowclass21 = data-weapontype infobox-data infobox-col2 |
||
|label22 = |
|label22 = Attack speed |
||
|data22 = {{#if: {{{attackspeed|}}} | {{Item Stat Value|icon=UI_Icon_Speed.png|type=speed|value={{#tip-text:{{{attackspeed}}}|Attacks per second}}}} }} |
|||
|data22 = {{{effectiverange|}}} |
|||
|rowclass22 = data- |
|rowclass22 = data-attackspeed infobox-data infobox-col2 |
||
|label23 = |
|label23 = DPS |
||
|data23 = {{#ifeq:{{#var:damagetotal}} | 0 || {{Rarity Stat Damage|stat={{#var:damagetotal}}*{{{attackspeed}}}}} }} |
|||
|data23 = {{{firerate|}}} |
|||
|rowclass23 = data- |
|rowclass23 = data-dps infobox-data infobox-col2 |
||
|label24 = |
|label24 = Total damage |
||
|data24 = {{#ifeq: {{#var:hasmultipledamage}} | 1 | {{Rarity Stat Damage|stat={{#var:damagetotal}}}} }} |
|||
|data24 = {{{firemode|}}} |
|||
|rowclass24 = data- |
|rowclass24 = data-damagetotal infobox-data infobox-col2 |
||
|label25 = |
|label25 = Damage |
||
|data25 = {{#if: {{{damage|}}} | {{Item Stat Value|icon=UI_Icon_Damage.png|type=damage|value={{Rarity Stat Damage|stat={{{damage}}}}}}} }} |
|||
|data25 = {{{caliber|}}} |
|||
|rowclass25 = data- |
|rowclass25 = data-damage infobox-data infobox-col2 |
||
|label26 = |
|label26 = Projectile damage |
||
|data26 = {{#if: {{{damageprojectile|}}} | {{Item Stat Value|icon=UI_Icon_Damage_Projectile.png|type=damageprojectile|value={{Rarity Stat Damage|stat={{{damageprojectile}}}}}}} }} |
|||
|data26 = {{{muzzlevelocity|}}} |
|||
|rowclass26 = data- |
|rowclass26 = data-damageprojectile infobox-data infobox-col2 |
||
|label27 = Piercing damage |
|||
|header60 = {{#if:{{{magazine|}}}{{{optics|}}}{{{opticssize|}}}{{{barrel|}}}{{{barrelsize|}}}{{{underbarrel|}}}{{{underbarrelsize|}}}|Attachments}} |
|||
|data27 = {{#if: {{{damageignorearmor|}}} | {{Item Stat Value|icon=UI_Icon_Damage_Ignore_Armor.png|type=damageignorearmor|value={{Rarity Stat Damage|stat={{{damageignorearmor}}}}}}} }} |
|||
|rowclass60 = infobox-header |
|||
|rowclass27 = data-damageignorearmor infobox-data infobox-col2 |
|||
|label28 = Poison damage |
|||
|label61 = Magazine |
|||
|data28 = {{#if: {{{damagepoison|}}} | {{Item Stat Value|icon=UI_Icon_Damage_Poison.png|type=damagepoison|value={{Rarity Stat Damage|stat={{{damagepoison}}}}}}} }} |
|||
|data61 = {{{magazine|}}} |
|||
| |
|rowclass28 = data-damagepoison infobox-data infobox-col2 |
||
|label29 = Fire Damage |
|||
|label62 = Optics |
|||
|data29 = {{#if: {{{damagefire|}}} | {{Item Stat Value|icon=UI_Icon_Damage_Fire.png|type=damagefire|value={{Rarity Stat Damage|stat={{{damagefire}}}}}}} }} |
|||
|data62 = {{#if:{{{optics|}}}{{{opticssize|}}}|{{#if:{{{optics|}}}|{{{optics}}}|Empty}}{{#if:{{{opticssize|}}}|{{nbsp}}(S{{{opticssize}}} max)}}}} |
|||
| |
|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}} }} |
|||
|data63 = {{#if:{{{barrel|}}}{{{barrelsize|}}}|{{#if:{{{barrel|}}}|{{{barrel}}}|Empty}}{{#if:{{{barrelsize|}}}|{{nbsp}}(S{{{barrelsize}}})}}}} |
|||
| |
|rowclass30 = data-zoom infobox-data infobox-col2 |
||
|label31 = Range |
|||
|label64 = Underbarrel |
|||
| |
|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 |
|||
|label65 = Utility |
|||
|data32 = {{#if: {{{critchance|}}} | {{{critchance}}}% }} |
|||
|data65 = {{#if:{{{utility|}}}{{{utilitysize|}}}|{{#if:{{{utility|}}}|{{{utility}}}|Empty}}{{#if:{{{utilitysize|}}}|{{nbsp}}(S{{{utilitysize}}} max)}}}} |
|||
| |
|rowclass32 = data-critchance infobox-data infobox-col2 |
||
|label33 = Block chance |
|||
|header100 = <span></span> |
|||
|data33 = {{#if: {{{blockchance|}}} | {{Item Stat Value|icon=UI_Icon_Block.png|type=blockchance|value={{{blockchance}}}% }} }} |
|||
|rowclass100 = infobox-button-bar |
|||
|rowclass33 = data-blockchance infobox-data infobox-col2 |
|||
|label34 = Ammo |
|||
}}</includeonly><!-- |
|||
|data34 = {{#if: {{{ammo|}}} | {{{ammo}}} }} |
|||
|rowclass34 = data-ammo infobox-data infobox-col2 |
|||
|label35 = Magazine capacity |
|||
Short description |
|||
|data35 = {{#if: {{{magazinecapacity|}}} | {{{magazinecapacity}}} rounds }} |
|||
|rowclass35 = data-magazinecapacity infobox-data infobox-col2 |
|||
|header40 = {{#if: {{{defense|}}} | Equipment stats }} |
|||
--><includeonly>{{Short description|{{#if:{{{classification|}}}|{{{classification}}}|{{{type|Personal equipment}}}}}{{#if:{{{manufacturer|}}}|{{nbsp}}manufactured by {{MFUNAME|{{{manufacturer}}}}}}}}}</includeonly><!-- |
|||
|rowclass40 = infobox-header |
|||
|label41 = Defense |
|||
Categorization |
|||
|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}}}}}}} }} |
|||
|rowclass45 = data-defenseradiation infobox-data infobox-col2 |
|||
|header100 = <span></span> |
|||
|rowclass100 = infobox-button-bar |
|||
}} |
|||
--><includeonly><!-- |
|||
{{#if:{{{articledescription|}}}|== In-game description == |
|||
-->{{#if:{{{type|}}}|[[Category:Personal {{pluralize|{{lc:{{{type}}}}}}}]]|[[Category:Unknown type personal equipments]]}}<!-- |
|||
<blockquote>{{{articledescription}}}</blockquote> |
|||
-->{{#if:{{{classification|}}}|[[Category:{{pluralize|{{{classification}}}}}]]}}<!-- |
|||
|}} |
|||
-->{{#if:{{{manufacturer|}}}|[[Category:{{DPLAndEscape|{{MFUNAME|{{{manufacturer}}}}}}}]]|[[Category:Unknown manufacturer]]}}<!-- |
|||
{{{articlecontent|}}} |
|||
--></includeonly><noinclude> |
|||
{{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}} |
{{/doc}} |
||
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --> |
|||
</noinclude> |
</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 |