Jump to content

Module:Sports table/Baseball

From Wikipedia, the free encyclopedia

-- Style for baseball tables
local pp = {}

local pmod = require('Module:Sports table/WDL')
function pp.header(t,Args,p_sub,pos_label,group_col,VTE_text,full_table,results_header_txt)
	Args['for_against_style'] = Args['for_against_style'] or 'none'
	Args['hide_played'] = Args['hide_played'] or 'yes'	
	Args['matches_text'] = Args['matches_text'] or 'game(s)'
	Args['ranking_style'] = Args['ranking_style'] or '%'
	Args['show_draw'] = Args['show_draw'] or 'no'
	Args['show_GB'] = Args['show_GB'] 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['for_against_style'] = Args['for_against_style'] or 'none'
	Args['hide_played'] = Args['hide_played'] or 'yes'
	Args['matches_text'] = Args['matches_text'] or 'game(s)'
	Args['ranking_style'] = Args['ranking_style'] or '%'
	Args['show_draw'] = Args['show_draw'] or 'no'
	Args['show_GB'] = Args['show_GB'] or 'yes'
	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)
	Args['for_against_style'] = Args['for_against_style'] or 'none'
	Args['hide_played'] = Args['hide_played'] or 'yes'
	Args['matches_text'] = Args['matches_text'] or 'game(s)'
	Args['ranking_style'] = Args['ranking_style'] or '%'
	Args['show_draw'] = Args['show_draw'] or 'no'
	Args['show_GB'] = Args['show_GB'] or 'yes'
	return pmod.status(Args)
end

return pp