Difference between revisions of "Module:Sports table/WLHA"

From blackwiki
Jump to navigation Jump to search
blackwiki>Frietjes
(wrapper)
 
blackwiki>Frietjes
Line 2: Line 2:
 
local pp = {}
 
local pp = {}
  
local wdlha = require('Module:Sports table/WDLHA')
+
local pmod = require('Module:Sports table/WDLHA')
 
function pp.header(t,Args,p_sub,pos_label,group_col,VTE_text,full_table,results_header_txt)
 
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['show_draw'] = Args['show_draw'] or 'no'
return wdlha.header(t,Args,p_sub,pos_label,group_col,VTE_text,full_table,results_header_txt)
+
return pmod.header(t,Args,p_sub,pos_label,group_col,VTE_text,full_table,results_header_txt)
 
end
 
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)
 
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['show_draw'] = Args['show_draw'] or 'no'
return wdlha.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)
+
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
 
end
  
 
function pp.status(Args)
 
function pp.status(Args)
 
Args['show_draw'] = Args['show_draw'] or 'no'
 
Args['show_draw'] = Args['show_draw'] or 'no'
return wdlha.status(Args)
+
return pmod.status(Args)
 
end
 
end
  
 
return pp
 
return pp

Revision as of 15:42, 28 September 2018

Documentation for this module may be created at Module:Sports table/WLHA/doc

-- Style for sports with HW, HL, AW, AL tables
local pp = {}

local pmod = require('Module:Sports table/WDLHA')
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'
	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'
	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['show_draw'] = Args['show_draw'] or 'no'
	return pmod.status(Args)
end

return pp