Module:Sports table/College: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 25:
local loss_first = Args['loss_before_draw'] or false
-- What to rank the teams by
local ranking_style = Args['ranking_style'] or 'pctperc'
local show_points, show_perc = false
ranking_style = string.lower(ranking_style)
if ranking_style=='w' or ranking_style=='win' or ranking_style=='wins' then
-- Based on wins
elseif ranking_style=='ptsperc' or ranking_style=='pointspercentage' or ranking_style=='%' then
-- Based on percentage
show_perc = true
elseif ranking_style=='percpts' or ranking_style=='%pts' then
-- Based on percentage and points
show_perc = true
show_points = true
else
elseif ranking_style=='pts' or ranking_style=='points' then
-- Based on points
show_points = true
else
-- Based on percentage
show_perc = true
end
local show_bonus_points = yesno(Args['show_bonus_points'] or 'no')