Module:MultiTabs

From EarthMC
Revision as of 21:39, 23 October 2023 by upgradewastaken (talk | contribs)
Jump to navigation Jump to search
local p = {} --p stands for package

function GetTableLng(tbl)
  local getN = 0
  for n in pairs(tbl) do 
    getN = getN + 1 
  end
  return getN
end

function p.create( frame )
    local int = GetTableLng(frame.args)
    local width = 100/int
    return width
end


return p