Module:Minion/Templates

local string, table = require('Module:String'), require('Module:Table') local minionData = mw.loadData('Module:Minion/Data')

local function getMinionsTemplate local ret = {} table.each(table.keys(minionData), function(name)		local stats = minionData[name].stats		local description = minionData[name].description or 'No Description'		for _, v in ipairs(stats) do	   	table.push(ret, { name, string._toRoman(i), description, v.tba, v.storage, id = '{s} Minion {o}' })		end	end) return ret end

return getMinionsTemplate