Modulo:Sports table/WDL OT/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m fix |
fix |
||
Riga 17:
end
-- Custom header options
local
local
local
local
local
local
local
local
local away_goals_head_text = Args['away_goals_header'] or '<abbr title="Goal subiti">GS</abbr>'
local bonus_head_text = Args['bonus_header'] or '<abbr title="Bonus">B</abbr>'
local tiebr_head_text = Args['tiebr_header'] or '<abbr title="Tiebreak">TBR</abbr>'
local rw_head_text = Args['rw_header'] or '<abbr title="Round vinti">RV</abbr>'
local loss_first = Args['loss_before_draw'] or Args['loss_before_tie'] or false
-- What to rank the teams by
local ranking_style = Args['ranking_style'] or 'pts'
local show_points, show_perc, show_ppg = false, false, false
ranking_style = string.lower(ranking_style)
if ranking_style=='w' or ranking_style=='win' or ranking_style=='wins' or ranking_style=='none' then
elseif ranking_style=='perc' or ranking_style=='percentage' or ranking_style=='%' then
▲ elseif ranking_style=='perc' or ranking_style=='percentage' or ranking_style=='%' then -- NOTE: This is for points %, unlike Module:Sports table/WDL which caculates win %
show_perc = true
elseif ranking_style=='ppg' or ranking_style=='points per game' or ranking_style=='ptspergame' then
show_ppg = true
else
show_points = true
end
|