m (Nohus moved page Template:Infobox personal equipment/doc to Template:Infobox weapon/doc without leaving a redirect) |
No edit summary |
||
(22 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 |
{{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": " |
"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": " |
"example": "S&W Model 10" |
||
}, |
}, |
||
"type": { |
"type": { |
||
"label": "Type", |
"label": "Type", |
||
"description": "Type of the item (Weapon, |
"description": "Type of the item (Weapon, Commodity)", |
||
"example": "Weapon", |
"example": "Weapon", |
||
"type": "string", |
"type": "string", |
||
Line 60: | Line 29: | ||
"suggested": true |
"suggested": true |
||
}, |
}, |
||
" |
"damage": { |
||
"label": " |
"label": "Damage", |
||
"description": " |
"description": "Physical damage of a weapon (poor quality)", |
||
"example": " |
"example": "36", |
||
"type": " |
"type": "number" |
||
"suggested": true |
|||
}, |
}, |
||
" |
"zoom": { |
||
"label": " |
"label": "Zoom", |
||
"description": " |
"description": "Zoom of a weapon (\"2\" means \"2x\")", |
||
"example": " |
"example": "2", |
||
"type": " |
"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" |
|||
}, |
}, |
||
" |
"critchance": { |
||
" |
"label": "Crit chance", |
||
"description": "Chance of a critical hit", |
|||
"occupancy": {}, |
|||
" |
"example": "20", |
||
" |
"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 |
"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 |
<!-- 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
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 |