Munurin millum rættingarnar hjá "Module:Sports table"

Content deleted Content added
dagføring til linju 75
dagføring 75-149
 
Linja 117:
team_list[N_teams] = Args['team'..N_teams] -- i^th entry is team X
team_list[Args['team'..N_teams]] = N_teams -- team X entry is position i
end
 
-- Optional totals
local total_row_name = 'SPORTS_TABLE_TOTAL'
if yesno(Args['show_totals'] or 'no') then
N_teams = N_teams+1
Args['team' .. N_teams] = total_row_name
Args['name_' .. total_row_name] = 'Total'
Args['result' .. N_teams] = total_row_name
Args['col_' .. total_row_name] = '#eee'
team_list[N_teams] = Args['team' .. N_teams]
team_list[Args['team'..N_teams]] = N_teams
end
Line 127 ⟶ 139:
-- Show match_table or not
local match_table = yesno(Args['show_matches'] or 'no') and true or false
local p_matches = match_table and require('Module:Sports results')
(style_def == 'Chess' and require('Module:Sports results/'..style_def) or require('Module:Sports results'))
-- Custom position column label or note