Modulo:Sports table/WDL OT/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m fix
fix
Riga 17:
end
-- Custom header options
local played_head_textgroup_head_text = Args['pld_headergroup_header'] or '<abbr title="PlayedGruppo">PldGr</abbr>'
local group_head_textteam_head_text = Args['group_headerteam_header'] or '<abbr title="Group">Grp</abbr>Squadra'
local OTwin_head_textplayed_head_text = Args['OTwin_headerpld_header'] or '<abbr title="Won in overtimeGiocate">OTWG</abbr>'
local OTloss_head_textdraw_head_text = Args['OTloss_headerdraw_header'] or (yesno(Args['use_tie'] or 'no') and '<abbr title="LostParità">P</abbr>') inor overtime'<abbr title="Nulle">OTLN</abbr>'
local PKwin_head_textOTwin_head_text = Args['PKwin_headerOTwin_header'] or '<abbr title="WonVinta onai penalty kickssupplementari">PKWVS</abbr>'
local PKloss_head_textOTloss_head_text = Args['PKloss_headerOTloss_header'] or '<abbr title="LostPersa onai penalty kickssupplementari">PKLPS</abbr>'
local bonus_head_textPKwin_head_text = Args['bonus_headerPKwin_header'] or '<abbr title="BonusVinta pointsai rigori">BPVR</abbr>'
local tiebr_head_textPKloss_head_text = Args['tiebr_headerPKloss_header'] or '<abbr title="TiebreakerPersa ai rigori">TBRPR</abbr>'
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 -- NOTE: This is for points %, unlike Module:Sports table/WDL which caculates win %
-- Based on wins
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 %
-- Based on percentage
show_perc = true
elseif ranking_style=='ppg' or ranking_style=='points per game' or ranking_style=='ptspergame' then
show_ppg = true
else
-- Based on points
show_points = true
end