Documentation for this module may be created at Module:Size/doc
local p = {}
function p.weight ( frame )
local args = frame.args
local size = tonumber(args.size) or 1
local weight = tostring((3 + size)^3) .. ' lb.'
return weight
end
function p.carryingCapacity ( frame )
local args = frame.args
local size = tonumber(args.size) or 1
local str = tonumber(args.str) or 0
if size < 5 then
local carryingCapacity = tostring((60 + (20 * str))) .. ' lb.'
else
local carryingCapacity = tostring((60 + (20 * (str + (size - 5)))) ^ 2) .. ' lb.'
end
return carryingCapacity
end
return p