Module:Item/doc

From Path of Exile 2 Wiki
Revision as of 09:01, 27 October 2018 by >OmegaK2
Jump to navigation Jump to search

This subpage provides documentation for Module:Item.

This module is used on a large number of pages.

To avoid major disruption and server load, do not make unnecessary edits to this module. Test changes to this module first using its /sandbox and /testcases subpages or your user space. All of the changes can then be applied to this module in a single edit.

Consider discussing changes on the talk page or on Discord before implementing them.

The item module provides functionality for various item-related templates.

Overview

This module is responsible for creating item boxes, various item lists, item links and other item-related tasks. In the process a lot of the input data is verified and also added as semantic property to pages; as such, any templates deriving from this module should not be used on user pages other then for temporary testing purposes.

This template is also backed by an export script in PyPoE which can be used to export item data from the game files which then can be used on the wiki. Use the export when possible,

Item templates

Module:Item2

All templates defined in Module:Item2:

Module:Item table

All templates defined in Module:Item table:

Module:Item link

All templates defined in Module:Item link:

Module:Item acquisition

Tests

N52 tests failed.

Name Expected Actual
N test_f_mods_local_stat_addition_and_quality Lua error -- Module:Item/sandbox:3013: Modifier(s) could not be found in the database: LifeGainPerTargetImplicit2Claw13
N test_f_mods_local_stat_addition_from_extra_stats Lua error -- Module:Item/sandbox:3013: Modifier(s) could not be found in the database: LifeGainPerTargetImplicit2Claw13
N test_f_mods_local_stat_addition_from_mods Lua error -- Module:Item/sandbox:3013: Modifier(s) could not be found in the database: LocalAddedPhysicalDamage5, LifeGainPerTargetImplicit2Claw13
N test_f_mods_sell_price_override Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Imperial Claw"
N test_f_mods_sell_prices Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Imperial Claw"
N test_f_mods_stats_addition Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Imperial Claw"
N test_ic_normal_active_skill_gem Lua error -- Module:Item/sandbox:3707: Missing data for table "inherent_skills", key "inherent_skills_text",

value: """" arg_def: table#1 { ["field"] = "inherent_skills_text", ["inherit"] = false, ["table"] = "inherent_skills", ["type"] = "Text", }

N test_ic_normal_body_armour Lua error -- Module:Item/sandbox:3013: Modifier(s) could not be found in the database: MovementVelocityPenaltyLightArmourImplicit
N test_ic_normal_claw Lua error -- Module:Item/sandbox:3013: Modifier(s) could not be found in the database: LifeAndManaOnHitSeparatedImplicitMarakethClaw3
N test_ic_normal_divi_card Lua error -- Module:Item/sandbox:3707: Missing data for table "inherent_skills", key "inherent_skills_ids",

value: "table#1 { }" arg_def: table#1 { ["field"] = "inherent_skills_ids", ["func"] = function#1, ["inherit"] = false, ["table"] = "inherent_skills", ["type"] = "List (,) of String", }

N test_ic_normal_harvest_seed Lua error -- Module:Item/core/sandbox:503: The item class id "HarvestSeed" is invalid. Using the correct item class id is required for the template to work correctly.
N test_ic_normal_jewel Lua error -- Module:Item/sandbox:3707: Missing data for table "inherent_skills", key "inherent_skills_ids",

value: "table#1 { }" arg_def: table#1 { ["field"] = "inherent_skills_ids", ["func"] = function#1, ["inherit"] = false, ["table"] = "inherent_skills", ["type"] = "List (,) of String", }

N test_ic_normal_life_flask Lua error -- Module:Item/sandbox:3707: Missing data for table "inherent_skills", key "inherent_skills_ids",

value: "table#1 { }" arg_def: table#1 { ["field"] = "inherent_skills_ids", ["func"] = function#1, ["inherit"] = false, ["table"] = "inherent_skills", ["type"] = "List (,) of String", }

N test_ic_normal_mana_flask Lua error -- Module:Item/sandbox:3707: Missing data for table "inherent_skills", key "inherent_skills_ids",

value: "table#1 { }" arg_def: table#1 { ["field"] = "inherent_skills_ids", ["func"] = function#1, ["inherit"] = false, ["table"] = "inherent_skills", ["type"] = "List (,) of String", }

N test_ic_normal_map Lua error -- Module:Item/sandbox:3707: Missing data for table "inherent_skills", key "inherent_skills_ids",

value: "table#1 { }" arg_def: table#1 { ["field"] = "inherent_skills_ids", ["func"] = function#1, ["inherit"] = false, ["table"] = "inherent_skills", ["type"] = "List (,) of String", }

N test_ic_normal_mtx Lua error -- Module:Item/sandbox:3707: Missing data for table "inherent_skills", key "inherent_skills_ids",

value: "table#1 { }" arg_def: table#1 { ["field"] = "inherent_skills_ids", ["func"] = function#1, ["inherit"] = false, ["table"] = "inherent_skills", ["type"] = "List (,) of String", }

N test_ic_normal_quest_item Lua error -- Module:Item/sandbox:3707: Missing data for table "inherent_skills", key "inherent_skills_ids",

value: "table#1 { }" arg_def: table#1 { ["field"] = "inherent_skills_ids", ["func"] = function#1, ["inherit"] = false, ["table"] = "inherent_skills", ["type"] = "List (,) of String", }

N test_ic_normal_shield Lua error -- Module:Item/sandbox:3013: Modifier(s) could not be found in the database: MovementVelocityPenaltyHeavyShieldImplicit, IncreasedLifeImplicitShield1
N test_ic_normal_stackable_currency Lua error -- Module:Item/sandbox:3707: Missing data for table "inherent_skills", key "inherent_skills_ids",

value: "table#1 { }" arg_def: table#1 { ["field"] = "inherent_skills_ids", ["func"] = function#1, ["inherit"] = false, ["table"] = "inherent_skills", ["type"] = "List (,) of String", }

N test_ic_normal_support_skill_gem Lua error -- Module:Item/sandbox:3707: Missing data for table "inherent_skills", key "inherent_skills_ids",

value: "table#1 { }" arg_def: table#1 { ["field"] = "inherent_skills_ids", ["func"] = function#1, ["inherit"] = false, ["table"] = "inherent_skills", ["type"] = "List (,) of String", }

N test_ic_normal_utility_flask Lua error -- Module:Item/sandbox:3013: Modifier(s) could not be found in the database: CharmImplicitUseOnSlow1
N test_ic_unique_amulet Lua error -- Module:Item/sandbox:2780: No results found for item using search term "page = Coral Amulet"
N test_ic_unique_belt Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Chain Belt"
N test_ic_unique_body_armour Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Crusader Chainmail"
N test_ic_unique_boots Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Goathide Boots"
N test_ic_unique_bow Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Assassin Bow"
N test_ic_unique_claw Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Gut Ripper"
N test_ic_unique_dagger Lua error -- Module:Item/core/sandbox:503: The item class id "Rune Dagger" is invalid. Using the correct item class id is required for the template to work correctly.
N test_ic_unique_fishing_rod Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Fishing Rod"
N test_ic_unique_gloves Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Sorcerer Gloves"
N test_ic_unique_helmet Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Ezomyte Burgonet"
N test_ic_unique_hybrid_flask Lua error -- Module:Item/core/sandbox:503: The item class id "HybridFlask" is invalid. Using the correct item class id is required for the template to work correctly.
N test_ic_unique_jewel Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Cobalt Jewel"
N test_ic_unique_life_flask Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Sanctified Life Flask"
N test_ic_unique_mana_flask Lua error -- Module:Item/sandbox:3013: Modifier(s) could not be found in the database: FlaskRemovePercentageOfEnergyShieldUniqueFlask2, FlaskTakeChaosDamagePercentageOfLifeUniqueFlask2, FlaskGainPowerChargeUniqueFlask2, FlaskGainFrenzyChargeUniqueFlask2, FlaskGainEnduranceChargeUniqueFlask2, LocalFlaskChargesUsedUniqueFlask2
N test_ic_unique_map Lua error -- Module:Item/sandbox:2780: No results found for item using search term "metadata_id = Metadata/Items/Maps/MapAtlasOvergrownShrine"
N test_ic_unique_one_hand_axe Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Cleaver"
N test_ic_unique_one_hand_mace Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Driftwood Club"
N test_ic_unique_one_hand_sword Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Midnight Blade"
N test_ic_unique_piece Lua error -- Module:Cargo:877: Missing results for "areas.id" field with values:

MapWorldsHarbingerMid MapAtlasHarbingerHigh MapWorldsHarbingerHigh MapAtlasHarbingerMid

N test_ic_unique_quiver Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Two-Point Arrow Quiver"
N test_ic_unique_ring Lua error -- Module:Item/sandbox:3013: Modifier(s) could not be found in the database: StrengthUnique__15, IncreasedEnergyShieldPercentUnique__4, MaximumLifeUnique__14
N test_ic_unique_sceptre Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Void Sceptre"
N test_ic_unique_shield Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Champion Kite Shield"
N test_ic_unique_staff Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Imperial Staff"
N test_ic_unique_thrusting_one_hand_sword Lua error -- Module:Item/core/sandbox:503: The item class id "Thrusting One Hand Sword" is invalid. Using the correct item class id is required for the template to work correctly.
N test_ic_unique_two_hand_axe Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Vaal Axe"
N test_ic_unique_two_hand_mace Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Meatgrinder"
N test_ic_unique_two_hand_sword Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Lion Sword"
N test_ic_unique_utility_flask Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Amethyst Flask"
N test_ic_unique_wand Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Goat's Horn"
N test_release_version_unknown_succeeds Lua error -- Module:Util:201: "?" is not a recognized version number