Module:ItemNames

local VariablesLua = mw.ext.VariablesLua local getInfo = mw.loadData('Module:Iteminfo/loaddata') or {}

local p = { loadData = function(frame) local stats = frame.args[1] local data = getInfo[stats] local prefix = 'iteminfo:' .. stats .. ':'		for k,v in pairs(data) do			VariablesLua.vardefine( prefix..k, v ) end VariablesLua.vardefine( prefix..'__OK__', 'OK' ) end, -- for other modules extract = function(stats, arg) return getInfo[stats][arg] or nil end, }

return p