Module:NBA team standings: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 31:
if conference then
conference = conference:sub(1,1):upper() .. conference:sub(2,-1) -- ucfirst
return '[[' .. conference .. 'ern Conference (NBA)|' .. conference .. 'ern ConverenceConference]]'
else
return nil
Line 65:
local division = args['division']:lower()
-- division leader record
local dloffset = 8*(tonumber(args[division .. 'leader']) or 1) - 1)
local dlhw = tonumber(args[8*dloffset + 3])
local dlhl = tonumber(args[8*dloffset + 4])
local dlrw = tonumber(args[8*dloffset + 5])
local dlrl = tonumber(args[8*dloffset + 6])
-- start the table
local root = mw.html.create('table')
Line 139:
-- conference leader
local cloffset = 0
local clhw = tonumber(args[8*cloffset + 3])
local clhl = tonumber(args[8*cloffset + 4])
local clrw = tonumber(args[8*cloffset + 5])
local clrl = tonumber(args[8*cloffset + 6])
-- start the table
local root = mw.html.create('table')