Module:Data

From Minecraftia Wiki
Revision as of 16:21, 9 August 2017 by Chief Librarian (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

local mt = {}

function mt.__index(t, k) return function(frame) local data = mw.loadData(k) for _,v in ipairs(frame.args) do data = data[v] end return data end end

return setmetatable({}, mt)