Module:Critter

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

local p = {}
local data = mw.loadData("Module:Data/Critters")

function p.createInfobox(frame)
	local critter = data[frame.args.name]
	local str = { 
		location = frame.args.location,
		rarity = critter.rarity,
		description = critter.description
	}
	
	return frame:expandTemplate{title = 'Critter infobox', args = str}
end

return p