Template:Infobox item: Difference between revisions

Template page
Content added Content deleted
No edit summary
No edit summary
 
(30 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}}}|400px]]|Item [[File:{{{name|}}}|400px]].png}}
|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 = Base price
|label5 = Buy price
|data5 = {{#if: {{{price|}}} | {{Item Stat Value|icon=UI_Icon_Money.png|type=money|value={{formatnum: {{{price}}}}}}} }}
|data5 = {{#if: {{{buyprice|}}} | {{Item Stat Value|icon=UI_Icon_Money.png|type=money|value={{formatnum: {{{buyprice}}}}}}} }}
|rowclass5 = data-price infobox-data infobox-col2
|rowclass5 = data-buyprice infobox-data infobox-col2


|label6 = Max stack
|label6 = Sell price
|data6 = {{#if: {{{maxstack|}}} | {{formatnum: {{{maxstack}}} }} }}
|data6 = {{#if: {{{sellprice|}}} | {{Item Stat Value|icon=UI_Icon_Money.png|type=money|value={{formatnum: {{{sellprice}}}}}}} }}
|rowclass6 = data-maxstack infobox-data infobox-col2
|rowclass6 = data-sellprice infobox-data infobox-col2


|label7 = Description
|label7 = Max stack
|data7 = {{#if: {{{description|}}} | {{{description}}} }}
|data7 = {{#if: {{{maxstack|}}} | {{formatnum: {{{maxstack}}} }} }}
|rowclass7 = data-description infobox-data infobox-col2
|rowclass7 = data-maxstack infobox-data infobox-col2


|label8 = Requirements
|label8 = Description
|data8 = {{#if: {{{userequirements|}}} | {{{userequirements}}} }}
|data8 = {{#if: {{{description|}}} | {{{description}}} }}
|rowclass8 = data-userequirements infobox-data infobox-col2
|rowclass8 = data-description infobox-data infobox-col2


|label9 = Effect
|label9 = Requirements
|data9 = {{#if: {{{useeffect|}}} | {{{useeffect}}} }}
|data9 = {{#if: {{{userequirements|}}} | {{{userequirements}}} }}
|rowclass9 = data-useeffect infobox-data infobox-col2
|rowclass9 = data-userequirements infobox-data infobox-col2


|label10 = Used for
|label10 = Effect
|data10 = {{#if: {{{usedfor|}}} | {{{usedfor}}} }}
|data10 = {{#if: {{{useeffect|}}} | {{{useeffect}}} }}
|rowclass10 = data-usedfor infobox-data infobox-col2
|rowclass10 = data-useeffect infobox-data infobox-col2


|label11 = Calibre
|label11 = Used for
|data11 = {{#if: {{{calibre|}}} | {{{calibre}}} }}
|data11 = {{#if: {{{usedfor|}}} | {{{usedfor}}} }}
|rowclass11 = data-calibre infobox-data infobox-col2
|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 = {{#if: {{{damage|}}}{{{attackspeed|}}} | {{Rarity Stat Damage|stat={{#var:damagetotal}}*{{{attackspeed}}}}} }}
|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 = Ammo
|label32 = Crit chance
|data32 = {{#if: {{{ammo|}}} | {{{ammo}}} }}
|data32 = {{#if: {{{critchance|}}} | {{{critchance}}}% }}
|rowclass32 = data-ammo infobox-data infobox-col2
|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


|label33 = Magazine capacity
|label35 = Magazine capacity
|data33 = {{#if: {{{magazinecapacity|}}} | {{{magazinecapacity}}} rounds }}
|data35 = {{#if: {{{magazinecapacity|}}} | {{{magazinecapacity}}} rounds }}
|rowclass33 = data-magazinecapacity infobox-data infobox-col2
|rowclass35 = data-magazinecapacity infobox-data infobox-col2


|header40 = {{#if: {{{defense|}}} | Equipment stats }}
|header40 = {{#if: {{{defense|}}} | Equipment stats }}
Line 143: Line 155:


}}
}}
{{#if:{{{articledescription|}}}|== In-game description ==
{{#if:{{{range|}}}|{{#ifexpr: {{{range|}}} > 0 | [[Category:Ranged Weapons]] | [[Category:Melee Weapons]] }}|}}
<blockquote>{{{articledescription}}}</blockquote>
{{#if:{{{weapontype|}}}|[[Category:{{{weapontype}}}]]|}}
|}}
{{#ifeq:{{{type|}}}|Tool|[[Category:Tools]]|}}
{{{articlecontent|}}}
{{#if:{{{usedfor|}}}|Mechanics|[[Category:Mechanics Tools]]|}}
{{clear}}<!--
</includeonly>
-->{{#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.