Module:Infobox item

From ARK Wiki
Jump to navigation Jump to search
Template-info.png Documentation

local p = {}

local Arguments = require('Dev:Arguments')
local Arkitexure = require('Module:Arkitexure')


function p.renderArmorSection(f)
    local args = Arguments.getArgs(f, {
        trim = true,
        removeBlanks = true,
    })

    return Arkitexure.createModule()
        :unit '[[Armor]]'
            :rowItemType(args.type or 'Armor', args.category or 'Armor'):done()
            :rowKV('Armor rating', args.armorrating):done()
            :rowKV('Cold protection', args.coldprotection):done()
            :rowKV('Heat protection', args.heatprotection):done()
        :done()
end


return p