Template:Infobox item/doc: Difference between revisions

Template page
Content added Content deleted
No edit summary
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation}}
{{Documentation}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
{{t|Infobox weapon}} is an infobox template for use in articles on weapons.
{{t|Infobox item}} is an infobox template for use in articles on items.

== Usage ==
<pre><nowiki>
{{Infobox personal equipment
|image = <!-- File name of the image of the item -->
|name = <!-- Name of the item -->
|type = <!-- Please use one of these: Weapon, Utility -->
|classification = <!-- Classification of the item (Assault rifle, SMG, Grenade) -->
|manufacturer = <!-- Manufacturer code of the item -->
|size = <!-- Size of the item -->
|baseprice = <!-- Base price of the item (without separators and unit) -->
|occupancy = <!-- SCU occupied by the item (please include the unit) -->
|mass = <!-- Mass of the item without any attachments in kg (without the separator and unit) -->
|productionstate = <!-- Production state of the item, if implemented please include the patch name -->
|damagetype = <!-- Damage type of the item -->
|effectiverange = <!-- Effective range of the item (please include unit) -->
|firerate = <!-- Fire rate of the item (please include unit) -->
|firemode = <!-- Fire mode of the item-->
|caliber = <!-- Caliber of the weapon -->
|muzzlevelocity = <!-- Bullet speed of the weapon (please include unit) -->
|magazine = <!-- Name of the magazine attached to the item in default loadout -->
|optics = <!-- Name of the optics attachment attached to the item in default loadout -->
|opticssize = <!-- Size of the optics hardpoint -->
|barrel = <!-- Name of the barrel attachment attached to the item in default loadout -->
|barrelsize = <!-- Size of the optics hardpoint -->
|underbarrel = <!-- Name of the underbarrel attachment attached to the item in default loadout -->
|underbarrelsize = <!-- Size of the optics hardpoint -->
|utility= <!-- Name of the module attachment attached to the item in default loadout -->
|utilitysize = <!-- Size of the module hardpoint -->
}}
</nowiki></pre>


== TemplateData ==
== TemplateData ==
Line 41: Line 10:
"label": "Image",
"label": "Image",
"description": "File name of the image of the item",
"description": "File name of the image of the item",
"example": "Apar ML Shot 002 11Dec19-Min.jpg",
"example": "image.jpg",
"type": "wiki-file-name",
"type": "wiki-file-name",
"suggested": true
"suggested": true
Line 50: Line 19:
"type": "string",
"type": "string",
"required": true,
"required": true,
"example": "Animus Missile Launcher"
"example": "S&W Model 10"
},
},
"type": {
"type": {
"label": "Type",
"label": "Type",
"description": "Type of the item (Weapon, Utility item)",
"description": "Type of the item (Weapon, Commodity)",
"example": "Weapon",
"example": "Weapon",
"type": "string",
"type": "string",
Line 60: Line 29:
"suggested": true
"suggested": true
},
},
"classification": {
"damage": {
"label": "Classification",
"label": "Damage",
"description": "Classification of the item (Assault rifle, Grenade)",
"description": "Physical damage of a weapon (poor quality)",
"example": "Missile launcher",
"example": "36",
"type": "string",
"type": "number"
"suggested": true
},
},
"manufacturer": {
"zoom": {
"label": "Manufacturer",
"label": "Zoom",
"description": "Manufacturer code of the item",
"description": "Zoom of a weapon (\"2\" means \"2x\")",
"example": "APAR",
"example": "2",
"type": "string",
"type": "number"
},
"suggested": true
"range": {
"label": "Range",
"description": "Range of a weapons, in meters",
"example": "150",
"type": "number"
},
"ammo": {
"label": "Ammo",
"description": "Ammo type of a weapon",
"example": ".38 Special",
"type": "string"
},
"weapontype": {
"label": "Weapon type",
"description": "Type of a weapon (Revolver)",
"example": "Revolver",
"type": "string"
},
"magazinecapacity": {
"label": "Magazine capacity",
"description": "Magazine capacity of a weapon",
"example": "6"
},
"attackspeed": {
"label": "Speed",
"description": "Attack speed of a weapon",
"example": "1.50",
"type": "number"
},
"maxstack": {
"label": "Max stack",
"description": "Maximum stack size",
"type": "number"
},
"slot": {
"label": "Slot",
"description": "Equipment slot",
"type": "string"
},
"description": {
"label": "Description",
"description": "In-game description (from tooltip)",
"example": "Looks like an old arcade joystick.",
"type": "string"
},
"userequirements": {
"label": "Requirements",
"description": "Requirements to use item",
"example": "Your Lumbering skill must be higher or equal than Beginner 5.",
"type": "string"
},
"useeffect": {
"label": "Effect",
"description": "Use effect",
"example": "You gain Whetstone effect for 10m.",
"type": "string"
},
"usedfor": {
"label": "Used for",
"description": "Use case for a tool",
"example": "Mining",
"type": "string"
},
"defense": {
"label": "Defense",
"description": "Defense value of equipment (poor quality)",
"example": "6",
"type": "number"
},
"caliber": {
"label": "Caliber",
"description": "Caliber of ammo",
"example": "18.5 mm",
"type": "string"
},
"damageignorearmor": {
"label": "Piercing damage",
"description": "Damage ignoring armor (poor quality)",
"type": "number"
},
"damagepoison": {
"label": "Poison damage",
"type": "number",
"description": "(poor quality)"
},
"damagefire": {
"label": "Fire damage",
"type": "number",
"description": "(poor quality)"
},
"damageprojectile": {
"label": "Projectile damage",
"description": "Damage of firearms (poor quality)",
"type": "number"
},
"defenseprojectile": {
"label": "Projectile defense",
"description": "Defense against projectiles (poor quality)",
"type": "number"
},
"defensepoison": {
"label": "Poison defense",
"description": "Defense against poison (poor quality)",
"type": "number"
},
"defensefire": {
"label": "Fire defense",
"description": "Defense against fire (poor quality)",
"type": "number"
},
"defenseradiation": {
"label": "Radiation defense",
"description": "Defense against radiation (poor quality)",
"type": "number"
},
"articledescription": {
"label": "Article description",
"description": "In-game description (shows in article)"
},
"articlecontent": {
"label": "Article content",
"description": "Content for the article outside of the infobox"
},
"blockchance": {
"label": "Block chance",
"description": "Block chance of the item, in percent",
"example": "40",
"type": "number"
},
"buyprice": {
"label": "Buy price",
"description": "Base buying price",
"example": "100",
"type": "number"
},
"sellprice": {
"label": "Sell price",
"description": "Base selling price",
"example": "100",
"type": "number"
},
},
"size": {},
"critchance": {
"baseprice": {},
"label": "Crit chance",
"description": "Chance of a critical hit",
"occupancy": {},
"productionstate": {},
"example": "20",
"damagetype": {},
"type": "number"
}
"effectiverange": {},
"firerate": {},
"magazine": {},
"optics": {},
"opticssize": {},
"barrel": {},
"barrelsize": {},
"underbarrelsize": {},
"underbarrel": {},
"caliber": {},
"muzzlevelocity": {},
"firemode": {},
"mass": {},
"utility": {},
"utilitysize": {}
},
},
"description": "An infobox template for use in articles on the individual personal equipment pages such as personal weapon and gadgets",
"description": "An infobox template for use in articles on items",
"format": "{{_\n| _______________________________ = _\n}}\n"
"format": "{{_\n| _______________________________ = _\n}}\n",
"paramOrder": [
"image",
"name",
"type",
"buyprice",
"sellprice",
"maxstack",
"slot",
"description",
"userequirements",
"useeffect",
"usedfor",
"caliber",
"weapontype",
"damage",
"damageprojectile",
"damageignorearmor",
"damagepoison",
"damagefire",
"attackspeed",
"zoom",
"range",
"critchance",
"blockchance",
"ammo",
"magazinecapacity",
"defense",
"defenseprojectile",
"defensepoison",
"defensefire",
"defenseradiation",
"articledescription",
"articlecontent"
]
}
}
</templatedata>
</templatedata>


<includeonly>
<includeonly>
<!-- Template catergories go here -->
<!-- Template categories go here -->
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</includeonly>
</includeonly>

Latest revision as of 16:41, 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

Template parameters

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.