Module:Attribute

-- local string = require('Module:String') local attributeData = mw.loadData('Module:Attribute/Data')

local UNKNOWN = '&f???'

local p = {}

function p.getAttributeShardsTemplate local ret = { id = 'Attribute Shard ({o})' } for k, v in pairs(attributeData) do		for level = 1, 10 do			local desc if v.desc and v.variables then local formatVariables = {} for _, variable in ipairs(v.variables) do					table.insert(formatVariables, variable[level]) end desc = v.desc:format(unpack(formatVariables)) end table.insert(ret, { ('%s %s'):format(k, string._toRoman(level)), desc or UNKNOWN }) end end return ret end

return p