Module:Item/doc: Difference between revisions
>OmegaK2 No edit summary |
>OmegaK2 No edit summary |
||
Line 50: | Line 50: | ||
<includeonly>[[Category:Cargo modules]]</includeonly> | <includeonly>[[Category:Cargo modules]] | ||
[[de:Modul:Item2]]</includeonly> |
Revision as of 20:36, 19 January 2019

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:
{{Item}}
{{Base item}}
{{Item list}}
{{Item class}}
{{Simple item list}}
{{Item list/skill gems by gem tag}}
Module:Item table
All templates defined in Module:Item table:
{{Item table}}
{{Query base items}}
{{Query unique items}}
{{Item unique versions}}
{{Area item drops}}
{{Item table/skill gems}}
{{Map item drops}}
{{Prophecy description}}
Module:Item link
All templates defined in Module:Item link:
Module:Item acquisition
{{Item acquisition}}
Tests
52 tests failed.
Name | Expected | Actual | |
---|---|---|---|
![]() |
test_f_mods_local_stat_addition_and_quality | Lua error -- Module:Item/sandbox:3013: Modifier(s) could not be found in the database: LifeGainPerTargetImplicit2Claw13 | |
![]() |
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 | |
![]() |
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 | |
![]() |
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" | |
![]() |
test_f_mods_sell_prices | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Imperial Claw" | |
![]() |
test_f_mods_stats_addition | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Imperial Claw" | |
![]() |
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", } | |
![]() |
test_ic_normal_body_armour | Lua error -- Module:Item/sandbox:3013: Modifier(s) could not be found in the database: MovementVelocityPenaltyLightArmourImplicit | |
![]() |
test_ic_normal_claw | Lua error -- Module:Item/sandbox:3013: Modifier(s) could not be found in the database: LifeAndManaOnHitSeparatedImplicitMarakethClaw3 | |
![]() |
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", } | |
![]() |
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. | |
![]() |
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", } | |
![]() |
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", } | |
![]() |
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", } | |
![]() |
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", } | |
![]() |
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", } | |
![]() |
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", } | |
![]() |
test_ic_normal_shield | Lua error -- Module:Item/sandbox:3013: Modifier(s) could not be found in the database: MovementVelocityPenaltyHeavyShieldImplicit, IncreasedLifeImplicitShield1 | |
![]() |
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", } | |
![]() |
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", } | |
![]() |
test_ic_normal_utility_flask | Lua error -- Module:Item/sandbox:3013: Modifier(s) could not be found in the database: CharmImplicitUseOnSlow1 | |
![]() |
test_ic_unique_amulet | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "page = Coral Amulet" | |
![]() |
test_ic_unique_belt | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Chain Belt" | |
![]() |
test_ic_unique_body_armour | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Crusader Chainmail" | |
![]() |
test_ic_unique_boots | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Goathide Boots" | |
![]() |
test_ic_unique_bow | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Assassin Bow" | |
![]() |
test_ic_unique_claw | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Gut Ripper" | |
![]() |
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. | |
![]() |
test_ic_unique_fishing_rod | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Fishing Rod" | |
![]() |
test_ic_unique_gloves | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Sorcerer Gloves" | |
![]() |
test_ic_unique_helmet | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Ezomyte Burgonet" | |
![]() |
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. | |
![]() |
test_ic_unique_jewel | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Cobalt Jewel" | |
![]() |
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" | |
![]() |
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 | |
![]() |
test_ic_unique_map | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "metadata_id = Metadata/Items/Maps/MapAtlasOvergrownShrine" | |
![]() |
test_ic_unique_one_hand_axe | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Cleaver" | |
![]() |
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" | |
![]() |
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" | |
![]() |
test_ic_unique_piece | Lua error -- Module:Cargo:877: Missing results for "areas.id" field with values:
MapWorldsHarbingerMid MapAtlasHarbingerHigh MapWorldsHarbingerHigh MapAtlasHarbingerMid | |
![]() |
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" | |
![]() |
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 | |
![]() |
test_ic_unique_sceptre | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Void Sceptre" | |
![]() |
test_ic_unique_shield | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Champion Kite Shield" | |
![]() |
test_ic_unique_staff | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Imperial Staff" | |
![]() |
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. | |
![]() |
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" | |
![]() |
test_ic_unique_two_hand_mace | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Meatgrinder" | |
![]() |
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" | |
![]() |
test_ic_unique_utility_flask | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Amethyst Flask" | |
![]() |
test_ic_unique_wand | Lua error -- Module:Item/sandbox:2780: No results found for item using search term "item_name_exact = Goat's Horn" | |
![]() |
test_release_version_unknown_succeeds | Lua error -- Module:Util:201: "?" is not a recognized version number |