Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox item: Difference between revisions

Template page
Content added Content deleted
No edit summary
No edit summary
 
(96 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:Placeholderv2.png|400px]]}}
|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|400px]]|[[File:Item {{{name|}}}.png|400px]]}}
|imagerowclass1 = infobox-image
|imagerowclass1 = infobox-image


Line 15: Line 29:
|rowclass3 = data-type infobox-data infobox-col2
|rowclass3 = data-type infobox-data infobox-col2


|label4 = Price
|label4 = Slot
|data4 = {{#if: {{{price|}}} | {{{price}}} }}
|data4 = {{#if: {{{slot|}}} | {{{slot}}} }}
|rowclass4 = data-price infobox-data infobox-col2
|rowclass4 = data-slot infobox-data infobox-col2

|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
|header5 = Firearm stats
|data44 = {{#if: {{{defensefire|}}} | {{Item Stat Value|icon=UI_Icon_Damage_Fire.png|type=damagefire|value={{Rarity Stat Defense|stat={{{defensefire}}}}}}} }}
|rowclass5 = infobox-header
|rowclass44 = data-defensefire infobox-data infobox-col2


|label45 = Radiation defense
|label6 = Weapon type
|data45 = {{#if: {{{defenseradiation|}}} | {{Item Stat Value|icon=UI_Icon_Damage_Radiation.png|type=defenseradiation|value={{Rarity Stat Defense|stat={{{defenseradiation}}}}}}} }}
|data6 = {{#if: {{{weapontype|}}} | {{{weapontype}}} }}
|rowclass6 = data-weapon-type infobox-data infobox-col2
|rowclass45 = data-defenseradiation infobox-data infobox-col2


|header100 = <span></span>
|header100 = <span></span>
|rowclass100 = infobox-button-bar
|rowclass100 = infobox-button-bar


}}
}}</includeonly>
{{#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>
<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


Template documentation[view][edit][history][purge]
This documentation is transcluded from Template:Infobox item/doc. Changes can be proposed in the talk page.

{{Infobox item}} is an infobox template for use in articles on items.

TemplateData

An infobox template for use in articles on items

Template parameters[Edit template data]

This template has custom formatting.

ParameterDescriptionTypeStatus
Imageimage

File name of the image of the item

Example
image.jpg
Filesuggested
Namename

Name of the item

Example
S&W Model 10
Stringrequired
Typetype

Type of the item (Weapon, Commodity)

Example
Weapon
Stringrequired
Buy pricebuyprice

Base buying price

Example
100
Numberoptional
Sell pricesellprice

Base selling price

Example
100
Numberoptional
Max stackmaxstack

Maximum stack size

Numberoptional
Slotslot

Equipment slot

Stringoptional
Descriptiondescription

In-game description (from tooltip)

Example
Looks like an old arcade joystick.
Stringoptional
Requirementsuserequirements

Requirements to use item

Example
Your Lumbering skill must be higher or equal than Beginner 5.
Stringoptional
Effectuseeffect

Use effect

Example
You gain Whetstone effect for 10m.
Stringoptional
Used forusedfor

Use case for a tool

Example
Mining
Stringoptional
Calibercaliber

Caliber of ammo

Example
18.5 mm
Stringoptional
Weapon typeweapontype

Type of a weapon (Revolver)

Example
Revolver
Stringoptional
Damagedamage

Physical damage of a weapon (poor quality)

Example
36
Numberoptional
Projectile damagedamageprojectile

Damage of firearms (poor quality)

Numberoptional
Piercing damagedamageignorearmor

Damage ignoring armor (poor quality)

Numberoptional
Poison damagedamagepoison

(poor quality)

Numberoptional
Fire damagedamagefire

(poor quality)

Numberoptional
Speedattackspeed

Attack speed of a weapon

Example
1.50
Numberoptional
Zoomzoom

Zoom of a weapon ("2" means "2x")

Example
2
Numberoptional
Rangerange

Range of a weapons, in meters

Example
150
Numberoptional
Crit chancecritchance

Chance of a critical hit

Example
20
Numberoptional
Block chanceblockchance

Block chance of the item, in percent

Example
40
Numberoptional
Ammoammo

Ammo type of a weapon

Example
.38 Special
Stringoptional
Magazine capacitymagazinecapacity

Magazine capacity of a weapon

Example
6
Unknownoptional
Defensedefense

Defense value of equipment (poor quality)

Example
6
Numberoptional
Projectile defensedefenseprojectile

Defense against projectiles (poor quality)

Numberoptional
Poison defensedefensepoison

Defense against poison (poor quality)

Numberoptional
Fire defensedefensefire

Defense against fire (poor quality)

Numberoptional
Radiation defensedefenseradiation

Defense against radiation (poor quality)

Numberoptional
Article descriptionarticledescription

In-game description (shows in article)

Unknownoptional
Article contentarticlecontent

Content for the article outside of the infobox

Unknownoptional


Cookies help us deliver our services. By using our services, you agree to our use of cookies.