Module:Data

From
Revision as of 00:25, 4 June 2020 by Tsukino.firethorn (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Documentation for this module may be created at Module:Data/doc

Script error: Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted

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)