Template:Item table/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>Illviljan
>Illviljan
Line 63: Line 63:


{| class="wikitable sortable"
{| class="wikitable sortable"
! Parameter  
! Parameter
! Description
! Description
! {{abbr|Local|This means this option will only consider 'local' increases}}
! {{abbr|Local|This means this option will only consider 'local' increases}}
|-
|-
| base_item
| base_item
| Shows the base item (i.e. of an unique item)
| Shows the base item (i.e. of an unique item).
| {{no}}
| {{no}}
|-
|-
| class
| class
| Show the [[item class]]
| Show the [[item class]].
| {{no}}
| {{no}}
|-
|-
Line 84: Line 84:
|-
|-
| essence
| essence
| Shows the essence tier
| Shows the essence tier.
| {{no}}
| {{no}}
|-
|-
| drop_level
| drop_level
| Shows the drop level of the item
| Shows the drop level of the item.
| {{no}}
| {{no}}
|-
|-
| stack_size
| stack_size
| Show the maximum stack size (not in currency tab)
| Show the maximum stack size (not in currency tab).
| {{no}}
| {{no}}
|-
|-
| stack_size_currency_tab
| stack_size_currency_tab
| Show the maximum stack size in the currency tab
| Show the maximum stack size in the currency tab.
| {{no}}
| {{no}}
|-  
|-
| level
| level
| the level requirement of the item
| the level requirement of the item.
| {{yes}}
| {{yes}}
|-
|-
| str
| str
| the [[strength]] requirement of the item
| the [[strength]] requirement of the item.
| {{yes}}
| {{yes}}
|-  
|-
| int
| int
| the [[intelligence]] requirement of the item
| the [[intelligence]] requirement of the item.
| {{yes}}
| {{yes}}
|-  
|-
| dex
| dex
| the [[dexterity]] requirement of the item
| the [[dexterity]] requirement of the item.
| {{yes}}
| {{yes}}
|-
|-
| ar
| ar
| Shows how much [[armour]] the item provides
| Shows how much [[armour]] the item provides.
| {{yes}}
| {{yes}}
|-
|-
| ev
| ev
| Shows how much [[evasion]] the item provides
| Shows how much [[evasion]] the item provides.
| {{yes}}
| {{yes}}
|-
|-
| es
| es
| Shows how much [[energy shield]] the item provides
| Shows how much [[energy shield]] the item provides.
| {{yes}}
| {{yes}}
|-
|-
| block
| block
| Shows how much [[block]] the item provides
| Shows how much [[block]] the item provides.
| {{yes}}
| {{yes}}
|-
|-
Line 142: Line 142:
| Shows the local critical strike chance of a weapon.
| Shows the local critical strike chance of a weapon.
| {{yes}}
| {{yes}}
|-  
|-
| flask_life
| flask_life
| Shows how much [[life]] the flask recovers per use
| Shows how much [[life]] the flask recovers per use.
| {{yes}}
| {{yes}}
|-  
|-
| flask_mana
| flask_mana
| Shows how much [[mana]] the flask recovers per use
| Shows how much [[mana]] the flask recovers per use.
| {{yes}}
| {{yes}}
|-  
|-
| flask
| flask
| Shows various generic flask properties:
| Shows various generic flask properties:
Line 159: Line 159:
|-
|-
| buff
| buff
| Shows the effect of the buffs granted by the item (generally applicable to [[Utility Flasks]])
| Shows the effect of the buffs granted by the item (generally applicable to [[Utility Flasks]]).
| {{no}}
| {{no}}
|-
|-
| physical_dps
| physical_dps
| Shows [[physical damage]] per second
| Shows [[physical damage]] per second.
| {{yes}}
| {{yes}}
|-
|-
| fire_dps
| fire_dps
| Shows [[fire damage]] per second
| Shows [[fire damage]] per second.
| {{yes}}
| {{yes}}
|-
|-
| cold_dps
| cold_dps
| Shows [[cold damage]] per second
| Shows [[cold damage]] per second.
| {{yes}}
| {{yes}}
|-
|-
| lightning_dps
| lightning_dps
| Shows [[lightning damage]] per second
| Shows [[lightning damage]] per second.
| {{yes}}
| {{yes}}
|-
|-
| chaos_dps
| chaos_dps
| Shows [[chaos damage]] per second
| Shows [[chaos damage]] per second.
| {{yes}}
| {{yes}}
|-
|-
| elemental_dps
| elemental_dps
| Shows the combined elemental damage per second (i.e. [[fire damage]], [[cold damage]] and [[lightning damage]])  
| Shows the combined elemental damage per second (i.e. [[fire damage]], [[cold damage]] and [[lightning damage]]).
| {{yes}}
| {{yes}}
|-
|-
| poison_dps
| poison_dps
| Shows the combined damage that can apply to [[poison]] (i.e. [[physical damage]] and [[chaos damage]])
| Shows the combined damage that can apply to [[poison]] (i.e. [[physical damage]] and [[chaos damage]]).
| {{yes}}
| {{yes}}
|-
|-
| dps
| dps
| Shows the total combined damage per second (i.e. [[physical damage]], [[fire damage]], [[cold damage]], [[lightning damage]] and [[chaos damage]])  
| Shows the total combined damage per second (i.e. [[physical damage]], [[fire damage]], [[cold damage]], [[lightning damage]] and [[chaos damage]]).
| {{yes}}
| {{yes}}
|-
|-
| stat
| stat
| the complete stat text of the item (both implicit and explicit [[stat]]s derived from [[mod]]s) in a single column
| the complete stat text of the item (both implicit and explicit [[stat]]s derived from [[mod]]s) in a single column.
| {{no}}
| {{no}}
|-
|-
| item_limit
| item_limit
| Shows the item limit of an item
| Shows the item limit of an item.
| {{no}}
| {{no}}
|-
|-
| jewel_radius
| jewel_radius
| Show the radius of a jewel
| Show the radius of a jewel.
| {{yes}}
| {{yes}}
|-
|-
| map_tier
| map_tier
| Show the map tier
| Show the map tier.
| {{yes}}
| {{yes}}
|-
|-
| map_level
| map_level
| Show the map level
| Show the map level.
| {{yes}}
| {{yes}}
|-
|-
| map_guild_character
| map_guild_character
| Show the character a map produces for a guild tag
| Show the character a map produces for a guild tag.
| {{no}}
| {{no}}
|-
|-
| atlas_tier
| atlas_tier
| Show the atlas tier based on the region upgrade level
| Show the atlas tier based on the region upgrade level.
| {{no}}
| {{no}}
|-
|-
| atlas_level
| atlas_level
| Show the atlas level based on the region upgrade level
| Show the atlas level based on the region upgrade level.
| {{no}}
| {{no}}
|-
|-
| master_level_requirement
| master_level_requirement
| Shows the required level of the forsaken master in order to purchase the doodad  
| Shows the required level of the forsaken master in order to purchase the doodad.
| {{no}}
| {{no}}
|-
|-
| master
| master
| Shows the forsaken master name where the doodad can be purchased at
| Shows the forsaken master name where the doodad can be purchased at.
| {{no}}
| {{no}}
|-
|-
| master_favour_cost
| master_favour_cost
| Shows the how much favour the doodad costs when purchased at a forsaken master
| Shows the how much favour the doodad costs when purchased at a forsaken master.
| {{no}}
| {{no}}
|-
|-
| variations
| variations
| Shows the number of possible variations of the doodad  
| Shows the number of possible variations of the doodad.
| {{no}}
| {{no}}
|-
|-
| description
| description
| Shows the {{c|mod|description text}} of the item
| Shows the {{c|mod|description text}} of the item.
| {{no}}
| {{no}}
|-
|-
| flavour_text
| flavour_text
| Shows the {{c|flavour|flavour text}} of the item  
| Shows the {{c|flavour|flavour text}} of the item.
| {{no}}
| {{no}}
|-
|-
| help_text
| help_text
| Shows the {{c|help|help_text}} of the item  
| Shows the {{c|help|help_text}} of the item.
| {{no}}
| {{no}}
|-
|-
| objective
| objective
| Shows the objective section from a [[prophecy]] page crated with {{tlx|Prophecy description}}  
| Shows the objective section from a [[prophecy]] page crated with {{tlx|Prophecy description}}.
| {{no}}
| {{no}}
|-
|-
| reward
| reward
| Shows the reward section from a [[prophecy]] page crated with {{tlx|Prophecy description}}  
| Shows the reward section from a [[prophecy]] page crated with {{tlx|Prophecy description}}.
| {{no}}
| {{no}}
|-
|-
| seal_cost
| seal_cost
| Shows the {{c|currency|seal cost}} of a [[prophecy]]  
| Shows the {{c|currency|seal cost}} of a [[prophecy]].
| {{no}}
| {{no}}
|-
|-
| prediction_text
| prediction_text
| Shows the {{c|value|prediction text}} of a [[prophecy]]  
| Shows the {{c|value|prediction text}} of a [[prophecy]].
| {{no}}
| {{no}}
|-
|-
| buff_icon
| buff_icon
| Shows the buff icon associated with the item's buff
| Shows the buff icon associated with the item's buff.
| {{no}}
| {{no}}
|-
|-
Line 283: Line 283:
|-
|-
| drop_enabled
| drop_enabled
| Shows whether the item is considered drop_enabled and can be normally obtained
| Shows whether the item is considered drop_enabled and can be normally obtained.
| {{no}}
| {{no}}
|-
|-
| drop_leagues
| drop_leagues
| Shows which leagues the item can be obtained in
| Shows which leagues the item can be obtained in.
| {{no}}
| {{no}}
|-
|-
| drop_areas
| drop_areas
| Shows which areas the item can be obtained in
| Shows which areas the item can be obtained in.
| {{no}}
| {{no}}
|-
|-
| drop_monsters
| drop_monsters
| Shows which monsters the item can be obtained in
| Shows which monsters the item can be obtained from.
| {{no}}
| {{no}}
|-
|-
| drop_text
| drop_text
| Shows drop restriction information that doesn't fit into other categories
| Shows drop restriction information that doesn't fit into other categories.
| {{no}}
| {{no}}
|-
|-
Line 348: Line 348:


{| class="wikitable sortable"
{| class="wikitable sortable"
! Parameter  
! Parameter
! Description
! Description
! Parameters activated
! Parameters activated
Line 367: Line 367:
| version
| version
| Enables all options relevant to versions.
| Enables all options relevant to versions.
|  
|
* release_version
* release_version
* removal_version
* removal_version
Line 373: Line 373:
| drop
| drop
| Show information related on how an item is obtained.
| Show information related on how an item is obtained.
|  
|
* drop_level
* drop_level
* drop_enabled
* drop_enabled
Line 390: Line 390:
| quest
| quest
| Enables all options relevant to quests.
| Enables all options relevant to quests.
|  
|
* quest_name
* quest_name
* quest_act
* quest_act
Line 396: Line 396:
| price
| price
| Enables all options relevant to prices.
| Enables all options relevant to prices.
|  
|
* purchase_cost
* purchase_cost
* sell_price
* sell_price
Line 402: Line 402:
| boss
| boss
| Enables all options relevant to bosses.
| Enables all options relevant to bosses.
|  
|
* boss_name
* boss_name
* boss_number
* boss_number

Revision as of 16:54, 15 March 2020

This subpage provides documentation for Template:Item table.

Lua logo

This template uses the following modules:

Overview

This template creates an advanced list for modifiers based on performing an cargo query.

Specialized Templates

There are also specialized sub templates for the following item types available:

Query Templates

There are also several query templates based on this template in order to reduce query duplication:

Parameters

Main Parameters

Parameter Value Description Required
default str If specified, the value of this will be returned of there are no results for the specified query.
large bool Whether to show large inventory icons

Default: No

no_html bool Don't show HTML infoboxes on hover.

Advisable to enable this on very large lists, as it makes the resulting table much smaller. In particular if the page hits the wiki limits for size.

q_<param> N/A It is possible to add any parameters of the cargo query (field names) by prefixing them with q_.

Specifying at least q_where and q_limit is highly recommended. q_limit is restricted to a maximum of 300.

Additional tables can be specified using q_tables.

Display control parameters

All these parameters are binary, so as long you specify something like icon=1 it will show up. If something is not available on the item you're fetching it will show up as "N/A"

Parameter Description Local
base_item Shows the base item (i.e. of an unique item).
class Show the item class.
rarity Show the rarity of the item.
rarity_id Show the rarity id of the item which is not dependent on the game language.
essence Shows the essence tier.
drop_level Shows the drop level of the item.
stack_size Show the maximum stack size (not in currency tab).
stack_size_currency_tab Show the maximum stack size in the currency tab.
level the level requirement of the item.
str the strength requirement of the item.
int the intelligence requirement of the item.
dex the dexterity requirement of the item.
ar Shows how much armour the item provides.
ev Shows how much evasion the item provides.
es Shows how much energy shield the item provides.
block Shows how much block the item provides.
damage Shows the damage values of a weapon. This includes any added elemental or chaos damage in the appropriate colour(s).
aps Shows the attacks per second value of a weapon.
crit Shows the local critical strike chance of a weapon.
flask_life Shows how much life the flask recovers per use.
flask_mana Shows how much mana the flask recovers per use.
flask Shows various generic flask properties:
  • Duration of the flask
  • How many flask charges are consumed per single use
  • Maximum number of flask charges held
buff Shows the effect of the buffs granted by the item (generally applicable to Utility Flasks).
physical_dps Shows physical damage per second.
fire_dps Shows fire damage per second.
cold_dps Shows cold damage per second.
lightning_dps Shows lightning damage per second.
chaos_dps Shows chaos damage per second.
elemental_dps Shows the combined elemental damage per second (i.e. fire damage, cold damage and lightning damage).
poison_dps Shows the combined damage that can apply to poison (i.e. physical damage and chaos damage).
dps Shows the total combined damage per second (i.e. physical damage, fire damage, cold damage, lightning damage and chaos damage).
stat the complete stat text of the item (both implicit and explicit stats derived from mods) in a single column.
item_limit Shows the item limit of an item.
jewel_radius Show the radius of a jewel.
map_tier Show the map tier.
map_level Show the map level.
map_guild_character Show the character a map produces for a guild tag.
atlas_tier Show the atlas tier based on the region upgrade level.
atlas_level Show the atlas level based on the region upgrade level.
master_level_requirement Shows the required level of the forsaken master in order to purchase the doodad.
master Shows the forsaken master name where the doodad can be purchased at.
master_favour_cost Shows the how much favour the doodad costs when purchased at a forsaken master.
variations Shows the number of possible variations of the doodad.
description Shows the description text of the item.
flavour_text Shows the flavour text of the item.
help_text Shows the help_text of the item.
objective Shows the objective section from a prophecy page crated with {{Prophecy description}}.
reward Shows the reward section from a prophecy page crated with {{Prophecy description}}.
seal_cost Shows the seal cost of a prophecy.
prediction_text Shows the prediction text of a prophecy.
buff_icon Shows the buff icon associated with the item's buff.
release_version Shows which version the item was released.
removal_version Shows which version the item was removed.
drop_enabled Shows whether the item is considered drop_enabled and can be normally obtained.
drop_leagues Shows which leagues the item can be obtained in.
drop_areas Shows which areas the item can be obtained in.
drop_monsters Shows which monsters the item can be obtained from.
drop_text Shows drop restriction information that doesn't fit into other categories.
quest_name Shows quest names that the item can be obtained from.
quest_act Shows which act the quest can be found in.
purchase_cost Shows the cost of buying from an NPC vendor.
sell_price Shows the currencies received when selling the item to an NPC vendor.
sextant Shows the maps that are within the sextant radius.
boss_name Shows the bosses of the map.
boss_number Shows the number of bosses in the map.
legacy Shows legacy stats where the data is queried from {{Legacy variant table row}}.
granted_skills Shows skills granted by the item.
alternate_art Shows the alternate arts the item may have.

Multi-option parameters

These parameters will active multiple options at once. They should be used for "default" lists, as additional variables may be added over time:

Parameter Description Parameters activated
weapon Show weapon information.
  • damage
  • aps
  • crit
prophecy Show prophecy information.
  • prediction_text
  • seal_cost
version Enables all options relevant to versions.
  • release_version
  • removal_version
drop Show information related on how an item is obtained.
  • drop_level
  • drop_enabled
  • drop_leagues
  • drop_areas
  • drop_text
doodad Enables all options relevant to hideout doodads.
  • master_level_requirement
  • master
  • master_favour_cost
  • variation_count
quest Enables all options relevant to quests.
  • quest_name
  • quest_act
price Enables all options relevant to prices.
  • purchase_cost
  • sell_price
boss Enables all options relevant to bosses.
  • boss_name
  • boss_number

Stat parameters

It is possible to directly query any stats on the item. The stats are an aggregate from all modifiers on the item (this means it will include implicit values).

Queried stats are sorted into columns, and a column can hold any arbitrary number of stats (but at least one) and there can be any number of columns.

The columns will be sorted by the average value of the stat. If multiple stats are specified for a single column, this is the average of all individual stat averages.

The following prefixes are used:

  • Columns: stat_column<i>_
  • Stat: stat<j>_

<i> and <j> need to be replaced with the number starting at 1.

Parameter Value Description Required
stat_column<i>_header str Header to use in table for the stat.

If left empty, the id of stat will be used

stat_column<i>_format str Lua string.format specifier. Note that the number of formatter must match the number of stats for the specific column or an error will be raised.

If left empty, all result will simply be shown in a comma-separated list.

stat_column<i>_stat_format str Acceptable values:
  • separate - separate entries using comma separation for the specified format
  • add - add up all the acceptable stats into a single value; uses 0 if not available
stat_column<i>_order int Ordering priority for showing this column.

Defaults to a very high value.

stat_column<i>_stat<j>_id str Identifier of the stat.

If you are not sure what this is, consider checking the sub objects created on items - it will be stored in Property:Has stat id

Examples

Show item limit

{{Item table
|q_where=items._pageName="Self-Flagellation"
|large=1
|stat=1
|item_limit=1
}}

Yields:

ItemStats
Self-FlagellationSelf-Flagellation
Viridian Jewel
Limited to: 1(10-20)% increased Damage per Curse on you
An additional Curse can be applied to you
CorruptedBeg for forgiveness.Place into an allocated Jewel Socket on the Passive Skill Tree. Right click to remove from the Socket.
(10-20)% increased Damage per Curse on you
An additional Curse can be applied to youCorrupted

Show possible "Maximum Life" rolls on unique items with at least +100 life

{{Item table
|q_tables=item_stats
|q_join=items._pageID=item_stats._pageID
|q_where=items.rarity_id="unique" AND item_stats.id="base_maximum_life" AND item_stats.min > 100
|large=1
|level=1
|stat=1
|stat_column1_header=Life
|stat_column1_format=+%s to maximum Life
|stat_column1_stat1_id=base_maximum_life
}}

Yields:

ItemRequired levelStatsLife
Gruthkul's PeltGruthkul's Pelt
Wyrmscale Doublet
Armour: (840-1180)
Evasion: (840-1180)
Movement Speed: -3%
Requires Level 38, 57 Str, 57 Dex100% increased Global Physical Damage
+(240-300) to maximum Life
(300-400)% increased Armour and Evasion
Regenerate 10% of Life per second
15% increased Character Size
Spell Skills deal no Damage
Your Spells are disabled
Simple is the life of the bear.
38100% increased Global Physical Damage
+(240-300) to maximum Life
(300-400)% increased Armour and Evasion
Regenerate 10% of Life per second
15% increased Character Size
Spell Skills deal no Damage
Your Spells are disabled
+(240-300) to maximum Life
Kaom's HeartKaom's Heart
Glorious Plate
Armour: (776-892)Requires Level 68, 191 StrHas no Sockets
(20-40)% increased Fire Damage
+500 to maximum Life
The warrior who
fears will fall.
68Has no Sockets
(20-40)% increased Fire Damage
+500 to maximum Life
+500 to maximum Life
Kaom's RootsKaom's Roots
Titan Greaves
Armour: (241-278)Requires Level 68, 120 StrHas no Sockets
Cannot be Knocked Back
+(150-200) to maximum Life
Action Speed cannot be modified to below Base Value
Unwavering Stance
Don't flinch. It's a waste of good hitting time.
68Has no Sockets
Cannot be Knocked Back
+(150-200) to maximum Life
Action Speed cannot be modified to below Base Value
Unwavering Stance
+(150-200) to maximum Life
Lioneye's RemorseLioneye's Remorse
Pinnacle Tower Shield
Chance to Block: 30%
Armour: (1307-1718)
Movement Speed: -3%
Requires Level 70, 159 Str+(20-30) to maximum Life(180-220)% increased Armour
20% increased Stun and Block Recovery
+(160-180) to maximum Life
5% reduced Movement Speed
-25 Physical Damage taken from Projectile Attacks
+5% Chance to Block
Marceus' unblemished shield is a testament
to his arrogance... and his fate.
70+(20-30) to maximum Life(180-220)% increased Armour
20% increased Stun and Block Recovery
+(160-180) to maximum Life
5% reduced Movement Speed
-25 Physical Damage taken from Projectile Attacks
+5% Chance to Block
+(20-30) to maximum Life
Replica LoreweaveReplica Loreweave
Elegant Ringmail
Armour: (377-433)
Energy Shield: (242-305)
Movement Speed: -5%
Requires Level 64, 90 Str, 105 IntHas 6 Sockets
+(8-24) to all Attributes
Adds (4-10) to (14-36) Physical Damage to Attacks
(120-160)% increased Global Critical Strike Chance
+(150-200) to maximum Energy Shield
+(120-160) to maximum Life
+(120-160) to maximum Mana
(6-30)% increased Rarity of Items found
(15-50)% increased Elemental Damage
Your Maximum Resistances are (70-72)%
"Better... stronger... more vital... and then... failure. Always, failure.
What key fundamental secret are we missing?"
64Has 6 Sockets
+(8-24) to all Attributes
Adds (4-10) to (14-36) Physical Damage to Attacks
(120-160)% increased Global Critical Strike Chance
+(150-200) to maximum Energy Shield
+(120-160) to maximum Life
+(120-160) to maximum Mana
(6-30)% increased Rarity of Items found
(15-50)% increased Elemental Damage
Your Maximum Resistances are (70-72)%
+(120-160) to maximum Life
The Bringer of RainThe Bringer of Rain
Nightmare Bascinet
Armour: (486-748)
Evasion: (699-1072)
Requires Level 67, 62 Str, 85 DexSocketed Gems are Supported by Level 30 Melee Physical Damage
Socketed Gems are Supported by Level 30 Faster Attacks
Socketed Gems are supported by Level 30 Blind
6% Chance to Block Attack Damage
Adds 20 to 30 Physical Damage to Attacks
(200-300)% increased Armour and Evasion
+(200-300) to maximum Life
20% chance to gain an Endurance Charge when you Block
Can't use Chest armour
Extra gore
"What lies beneath your feet?!"
"Sacred ground, watered with tears of blood!"
67Socketed Gems are Supported by Level 30 Melee Physical Damage
Socketed Gems are Supported by Level 30 Faster Attacks
Socketed Gems are supported by Level 30 Blind
6% Chance to Block Attack Damage
Adds 20 to 30 Physical Damage to Attacks
(200-300)% increased Armour and Evasion
+(200-300) to maximum Life
20% chance to gain an Endurance Charge when you Block
Can't use Chest armour
Extra gore
+(200-300) to maximum Life
The Rat CageThe Rat Cage
Sharkskin Tunic
Evasion: (1118-1414)
Movement Speed: -3%
Requires Level 56, 152 Dex(100-120)% increased Evasion Rating
+(200-300) to maximum Life
15% increased Movement Speed
100% of Fire Damage from Hits taken as Physical Damage
The truth lies inside every man, if you dig around.
Many a confession was found in the bowels of Axiom.
56(100-120)% increased Evasion Rating
+(200-300) to maximum Life
15% increased Movement Speed
100% of Fire Damage from Hits taken as Physical Damage
+(200-300) to maximum Life