Module:Data: Difference between revisions

From RabastorWiki
Jump to navigation Jump to search
m (1 revision)
 
(No difference)

Latest revision as of 13:07, 18 June 2015

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)