Module:Stats

From Halopedia, the Halo wiki

Documentation for this module may be created at ModuleDoc:Stats

local p = {}

function p.getStat( frame )
	local statlist = mw.loadData( 'Module:Stats/' .. tostring( frame.args[1] ) )
	if statlist[ tostring( frame.args[2] ) ] == nil then
		return '-'
	else
		return statlist[ 'foo' ]
	end
end

return p