Module:Data

-- Helper module to get values from data module -- Reads data value key1.key2, e.g.{["key1"]={["key2"]="baba"}} from Module:ModuleName/data. -- Syntax: ->baba

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)