Module:Data

From Wings of Linen
Revision as of 06:00, 11 July 2017 by ReducedAircraftFactory (talk | contribs) (1 revision imported: Template:Infobox aircraft begin)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

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)