Module:Sandbox/B2project/NHL Standings: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 578:
if yesno(stack_footer_val) then footer_break = true end
local t_status = p_style.status(Args)
return table.concat(outputBuffer), table.concat(t_footer)
table.insert(outputBuffer, t_footer)
return table.concat(outputBuffer)--, table.concat(t_footer)
 
end -- function me.generateStandingsTable()
 
function pp.status(Args)
-- Declare status options
-- ------------------------------------------------------------
-- NOTE: If you add to status_code, also add to status_called and status_letters!!
-- Or functionality will be compromised
-- ------------------------------------------------------------
local status_code, status_called = {}
status_code = { E='Eliminated from playoff contention', P='Clinched Presidents Trophy',
X='Clinched playoff spot', Y='Clinched division', Z='Clinched conference'}
status_called = {E=false, P=false, X=false, Y=false, Z=false}
local status_letters = 'EPXYZ'
return {code=status_code, called=status_called, letters=status_letters}
end
 
 
function me.generateStandingsTable_fromTemplate(frame)