Jump to content

Module:Sports table/WL OTL tiebreak/sandbox

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Frietjes (talk | contribs) at 21:35, 25 October 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Style for football tables
local pp = {}

local pmod = require('Module:Sports table/WDL OT')
function pp.header(t,Args,p_sub,pos_label,group_col,VTE_text,full_table,results_header_txt)
	Args['show_draw'] = Args['show_draw'] or 'no'
	Args['showOTwin'] = Args['showOTwin'] or 'no'
	Args['OTloss_after_loss'] = Args['OTloss_after_loss'] or 'yes'
	Args['show_tiebr'] = Args['show_tiebr'] or 'yes'
	return pmod.header(t,Args,p_sub,pos_label,group_col,VTE_text,full_table,results_header_txt)
end
 
function pp.row(frame,t,Args,p_sub,notes_exist,hth_id_list,full_table,rand_val,team_list,team_code_ii,ii_start,ii_end,ii_fw,bg_col,N_teams,ii,ii_show)
	Args['show_draw'] = Args['show_draw'] or 'no'
	Args['showOTwin'] = Args['showOTwin'] or 'no'
	Args['OTloss_after_loss'] = Args['OTloss_after_loss'] or 'yes'
	Args['show_tiebr'] = Args['show_tiebr'] or 'yes'
	Args['winpoints'] = Args['winpoints'] or 2
	return pmod.row(frame,t,Args,p_sub,notes_exist,hth_id_list,full_table,rand_val,team_list,team_code_ii,ii_start,ii_end,ii_fw,bg_col,N_teams,ii,ii_show)
end
 
function pp.status(Args)
	local psub = require('Module:Sports table/sub')
	Args['status_pos'] = Args['status_pos'] or 'before'
	return psub.status(Args, {E='Eliminated from playoff contention', P='Clinched Presidents' Trophy',
		X='Clinched playoff spot', Y='Clinched division', Z='Clinched conference'})
end

return pp