Module:Sandbox: Difference between revisions
Jump to navigation
Jump to search
>OmegaK2 No edit summary |
>OmegaK2 No edit summary |
||
Line 2: | Line 2: | ||
local getArgs = require('Module:Arguments').getArgs | local getArgs = require('Module:Arguments').getArgs | ||
local data = { ["_table"] = " | local data = { ["_table"] = "items", ["alternate_art_inventory_icons"] = "", ["cannot_be_traded_or_modified"] = "0", ["class"] = "One Hand Swords", ["drop_enabled"] = "1", ["drop_level"] = 64, ["explicit_mods"] = "", ["frame_type"] = "normal", ["implicit_mods"] = "IncreasedAccuracySwordImplicit8", ["implicit_stat_text"] = "+460 to [[Accuracy Rating]]", ["inventory_icon"] = "File:Vaal Blade inventory icon.png", ["is_corrupted"] = "0", ["is_relic"] = "0", ["metadata_id"] = "Metadata/Items/Weapons/OneHandWeapons/OneHandSwords/OneHandSword20", ["mods"] = "IncreasedAccuracySwordImplicit8", ["name"] = "Vaal Blade", ["name_list"] = "Vaal Blade", ["quality"] = 0, ["rarity"] = "Normal", ["required_dexterity"] = 113, ["required_dexterity_html"] = "<em class=\"tc -value\">113</em>", ["required_dexterity_range_average"] = 113, ["required_dexterity_range_colour"] = "value", ["required_dexterity_range_maximum"] = 113, ["required_dexterity_range_minimum"] = 113, ["required_dexterity_range_text"] = "113", ["required_intelligence"] = 0, ["required_intelligence_html"] = "<em class=\"tc -value\">0</em>", ["required_intelligence_range_average"] = 0, ["required_intelligence_range_colour"] = "value", ["required_intelligence_range_maximum"] = 0, ["required_intelligence_range_minimum"] = 0, ["required_intelligence_range_text"] = "0", ["required_level"] = 64, ["required_level_final"] = 64, ["required_level_html"] = "<em class=\"tc -value\">64</em>", ["required_level_range_average"] = 64, ["required_level_range_colour"] = "value", ["required_level_range_maximum"] = 64, ["required_level_range_minimum"] = 64, ["required_level_range_text"] = "64", ["required_strength"] = 113, ["required_strength_html"] = "<em class=\"tc -value\">113</em>", ["required_strength_range_average"] = 113, ["required_strength_range_colour"] = "value", ["required_strength_range_maximum"] = 113, ["required_strength_range_minimum"] = 113, ["required_strength_range_text"] = "113", ["size_x"] = 2, ["size_y"] = 3, ["stat_text"] = "+460 to [[Accuracy Rating]]", ["tags"] = "sword,one_hand_weapon,onehand,weapon,default", } | ||
local p = {} | local p = {} |
Revision as of 00:21, 24 December 2017
This page is not an actual Scribunto module. It exists to provide editors a place to create experimental modules.
Naming your modules
To keep things tidy, please use the following format to name your experimental modules:
Module:Sandbox/Your username/Module name
Cleaning up unused modules
Experimental modules may be deleted by admins upon request or after a long period of inactivity.
List of modules in this area
For a list of the experimental modules under Module:Sandbox, see Special:PrefixIndex/Module:Sandbox/.
The above documentation is transcluded from Module:Sandbox/doc.
Editors can experiment in this module's sandbox and testcases pages.
Subpages of this module.
Editors can experiment in this module's sandbox and testcases pages.
Subpages of this module.
local m_util = require('Module:Util')
local getArgs = require('Module:Arguments').getArgs
local data = { ["_table"] = "items", ["alternate_art_inventory_icons"] = "", ["cannot_be_traded_or_modified"] = "0", ["class"] = "One Hand Swords", ["drop_enabled"] = "1", ["drop_level"] = 64, ["explicit_mods"] = "", ["frame_type"] = "normal", ["implicit_mods"] = "IncreasedAccuracySwordImplicit8", ["implicit_stat_text"] = "+460 to [[Accuracy Rating]]", ["inventory_icon"] = "File:Vaal Blade inventory icon.png", ["is_corrupted"] = "0", ["is_relic"] = "0", ["metadata_id"] = "Metadata/Items/Weapons/OneHandWeapons/OneHandSwords/OneHandSword20", ["mods"] = "IncreasedAccuracySwordImplicit8", ["name"] = "Vaal Blade", ["name_list"] = "Vaal Blade", ["quality"] = 0, ["rarity"] = "Normal", ["required_dexterity"] = 113, ["required_dexterity_html"] = "<em class=\"tc -value\">113</em>", ["required_dexterity_range_average"] = 113, ["required_dexterity_range_colour"] = "value", ["required_dexterity_range_maximum"] = 113, ["required_dexterity_range_minimum"] = 113, ["required_dexterity_range_text"] = "113", ["required_intelligence"] = 0, ["required_intelligence_html"] = "<em class=\"tc -value\">0</em>", ["required_intelligence_range_average"] = 0, ["required_intelligence_range_colour"] = "value", ["required_intelligence_range_maximum"] = 0, ["required_intelligence_range_minimum"] = 0, ["required_intelligence_range_text"] = "0", ["required_level"] = 64, ["required_level_final"] = 64, ["required_level_html"] = "<em class=\"tc -value\">64</em>", ["required_level_range_average"] = 64, ["required_level_range_colour"] = "value", ["required_level_range_maximum"] = 64, ["required_level_range_minimum"] = 64, ["required_level_range_text"] = "64", ["required_strength"] = 113, ["required_strength_html"] = "<em class=\"tc -value\">113</em>", ["required_strength_range_average"] = 113, ["required_strength_range_colour"] = "value", ["required_strength_range_maximum"] = 113, ["required_strength_range_minimum"] = 113, ["required_strength_range_text"] = "113", ["size_x"] = 2, ["size_y"] = 3, ["stat_text"] = "+460 to [[Accuracy Rating]]", ["tags"] = "sword,one_hand_weapon,onehand,weapon,default", }
local p = {}
function p.test(frame)
local tpl_args = getArgs(frame, {
parentFirst = true
})
frame = m_util.misc.get_frame(frame)
m_util.cargo.store(frame, data)
end
return p