Module:Data

Revision as of 20:57, 13 March 2014 by imported>Jackmcbarn (create helper module to get values from a data module)
(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 p = {}

function p.main(frame)
	local data
	for k, v in ipairs(frame.args) do
		if k == 1 then
			data = mw.loadData('Module:' .. v)
		else
			data = data[v]
		end
	end
	return data
end

return p