Template:Item/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>OmegaK2
(→‎Base: added release_version and pypoe info)
>OmegaK2
(Reduced the number of header levels, added mod info)
Line 19: Line 19:
* skill gems
* skill gems


==Parameters==
==Base parameters==
 
===Base===


{| class="wikitable sortable"
{| class="wikitable sortable"
Line 160: Line 158:
The release date property is automatically added when the version is specified - it holds the date of when the version was released.  
The release date property is automatically added when the version is specified - it holds the date of when the version was released.  
|}
|}
==Setting mods==
Mods can be set on any item type.
Generally there are two ways of doing this:
# setting the mod id
# setting the mod text
The order of the mods does matter - it's how the mod's stats will appear on the item.
Mod id and mod text can mixed up.
All mods will be added to [[Property:Has mod ids]], regardless of where they come from.
Replace the <code><nowiki><i></nowiki></code> with the order of the mod starting at 1.
===Mod parameters===
{| class="wikitable sortable"
! Parameter
! Value
! Required
! PyPoE<br>Export
! Property
! Description
|-
| implicit<i>
| str
| {{no}}
| {{yes}}
| [[Property:Has implicit mod ids|Has implicit mod ids]]
| Id of the implicit mod at index i
|-
| implicit<i>_text
| str
| {{no}}
| {{yes}}
| {{n/a}}
| Text of the implicit mod at index i
|-
| explicit<i>
| str
| {{no}}
| {{yes}}
| [[Property:Has explicit mod ids|Has explicit mod ids]]
| Id of the explicit mod at index i
|-
| explicit<i>_text
| str
| {{no}}
| {{yes}}
| {{n/a}}
| Text of the explicit mod at index i
|}
===Notes about mod id===
The mod id must correspond to an existing mod id. please note the mod id may be different from the page itself, look on the particular mod page for the id itself (also see [[Template:Mod]])
The template will calculate adjustments to the base values of the item based on the mods. Make sure that any values on the item itself are set to the **base value** (before applying the stats) and not the final values.
If a base item is supplied for the item, any implicit mods will be copied over. Explicit mods will not be copied.
===Notes about mod text===
Generally using mod text should be avoided, since it doesn't handle any automated updating of the values. The case where it should be used if there is no appropriate mod on the wiki yet (for example, for upcoming unique items!)


=== Class groups ===
==Parameters available to groups of item classes==


Parameters that apply to various groups of item classes.
Parameters that apply to various groups of item classes.


==== Flasks ====
=== Flasks ===


'''Eligible item classes''':
'''Eligible item classes''':
Line 193: Line 258:
|}
|}


==== Weapons ====
=== Weapons ===


'''Eligible item classes''':
'''Eligible item classes''':
Line 231: Line 296:
|}
|}


==== Armour ====
=== Armour ===


'''Eligible item classes''':
'''Eligible item classes''':
Line 259: Line 324:
|}
|}


==== Gems ====
=== Gems ===


'''Eligible item classes''':
'''Eligible item classes''':
Line 312: Line 377:
|}
|}


==== Stackables ====
=== Stackables ===


'''Eligible item classes''':
'''Eligible item classes''':
Line 330: Line 395:
|}
|}


=== Item class ===
==Parameters specific to a single item class==


Parameters specific to item classes
Parameters specific to item classes

Revision as of 19:58, 20 August 2016

This subpage provides documentation for Template:Item.

Lua logo

This template uses the following modules:

This template is under development should only be used for skill gems at this point. Please refer to Module:Item for the time being

Semantic Mediawiki version of the item template.

Overview

This template should be used for all items on the wiki and it will take of setting semantic properties, creating an infobox as well as setting categories.

It is meant for usage on permanent pages, do not use it on user pages.

Currently the template is safe to use for the following item types:

  • jewellery
  • armours
  • weapons
  • skill gems

Base parameters

Parameter Value Required PyPoE
Export
Property Description
class str
Has item class A valid item class
rarity str
Has rarity rarity of the item, one of:
  • Normal
  • Magic
  • Rare
  • Unique
name str
Has name Name of the item
name_list str
Has names

Has lowercase names

List of aliases for this item; this should be used carefully and only for legacy versions of the item (i.e. Caustic Arrow vs Poison Arrow).

The current item name is always added to this list automatically

size_x int
Has inventory width x-size in inventory units, i.e. the width
size_y int
Has inventory height y-size in inventory units, i.e. the height
drop_enabled bool
*
Is drop enabled Whether the item is drop enabled; this defaults to true.

Specify false for legacy items that do not drop anymore.

drop_level int
Has drop level At which level the item starts dropping at (may differ from required_level)
required_level int
Has level requirement Which level is required to use the item (may differ from drop_level)
required_dexterity int
Has base dexterity requirement The dexterity requirement of the item if any
required_intelligence int
Has base intelligence requirement The intelligence requirement of the item if any
required_strength int
Has base strength requirement The strength requirement of the item if any
flavour_text str
Has flavour text Flavour text if any (i.e. for unique items, vaal fragments, divination cards, etc)
help_text str
Has help text Help text if any

For some item classes such as gems a default string is inserted if this value is missing.

tags list[str]
Has tags List of internal tags
metadata_id str
Has metadata id Internal metadata id of the item
release_version str
Has release version

Has release date

The version number of when this item was released. The version must a be a valid version number and there must be a version page or the template will return an error.

The release date property is automatically added when the version is specified - it holds the date of when the version was released.

Setting mods

Mods can be set on any item type.

Generally there are two ways of doing this:

  1. setting the mod id
  2. setting the mod text

The order of the mods does matter - it's how the mod's stats will appear on the item.

Mod id and mod text can mixed up.

All mods will be added to Property:Has mod ids, regardless of where they come from.

Replace the <i> with the order of the mod starting at 1.

Mod parameters

Parameter Value Required PyPoE
Export
Property Description
implicit str
Has implicit mod ids Id of the implicit mod at index i
implicit_text str
N/A Text of the implicit mod at index i
explicit str
Has explicit mod ids Id of the explicit mod at index i
explicit_text str
N/A Text of the explicit mod at index i

Notes about mod id

The mod id must correspond to an existing mod id. please note the mod id may be different from the page itself, look on the particular mod page for the id itself (also see Template:Mod)

The template will calculate adjustments to the base values of the item based on the mods. Make sure that any values on the item itself are set to the **base value** (before applying the stats) and not the final values.

If a base item is supplied for the item, any implicit mods will be copied over. Explicit mods will not be copied.

Notes about mod text

Generally using mod text should be avoided, since it doesn't handle any automated updating of the values. The case where it should be used if there is no appropriate mod on the wiki yet (for example, for upcoming unique items!)

Parameters available to groups of item classes

Parameters that apply to various groups of item classes.

Flasks

Eligible item classes:

Life Flasks, Mana Flasks, Hybrid Flasks, Utility Flasks, Critical Utility Flasks

Parameter Value Required Description
flask_duration int
How long the flask lasts
charges_max int
Maximum number of charges the flask holds
charges_per_use int
Charges consumed when the flask is used

Weapons

Eligible item classes:

'Claws', 'Daggers', 'Wands', 'One Hand Swords', 'Thrusting One Hand Swords', 'One Hand Axes', 'One Hand Maces', 'Bows', 'Staves', 'Two Hand Swords', 'Two Hand Axes', 'Two Hand Maces', 'Sceptres'

Parameter Value Required Description
critical_strike_chance int
Base critical strike chance of the weapon
attack_speed int
Base attack speed of the weapon
damage_min int
Minimum base physical damage of the weapon
damage_max int
Maximum base physical damage of the weapon
range int
Range in game units of the weapon

Armour

Eligible item classes:

'Gloves', 'Boots', 'Body Armours', 'Helmets', 'Shields'

Parameter Value Required Description
armour int
Armour of the armour
energy_shield int
Energy Shield of the armour
evasion int
Evasion Rating of the armour

Gems

Eligible item classes:

'Active Skill Gems', 'Support Skill Gems'

They also inherit all parameters from the Skill template.

Parameter Value Required Property Description
gem_tags list[str]
Has gem tags

Has gem tags difference

List of gem tags.

The gem tags will be matched against a list of verified tags. Any tags that are not present on the gem will be added to Property:Has gem tags difference.

dexterity_percent int
Has dexterity percentage Dexterity portion of the gem stat distribution.

For pure gems, this is usually 100 for the primary attribute and 0 for the other attribute. For hybrid gems, this is usually 60 for the primary attribute, 40 for the secondary attribute, and 0 for the remaining attribute.

strength_percent int
Has strength percentage Strength portion of the gem stat distribution.
intelligence_percent int
Has intelligence percentage Intelligence portion of the gem stat distribution.

With all arguments supplied, these properties will also be set:

Property Description
Has primary attribute Will be set to the primary attribute (highest percentage)

Stackables

Eligible item classes:

'Currency', 'Stackable Currency', 'Hideout Doodads', 'Microtransactions', 'Divination Card'

Parameter Value Required Description
stack_size int
Maximum stack size of the item

Parameters specific to a single item class

Parameters specific to item classes

Class Parameter Value Required Description
Life Flasks

Hybrid Flasks

flask_life int
How much Life the flask recovers
Mana Flasks

Hybrid Flasks

flask_mana int
How much Mana the flask recovers
Shields block int
The base chance to block on shields
Amulets is_talisman bool
Whether the amulet is a talisman (defaults to no)

See also