Modul:Sports table/Badminton team: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
NFarras (bicara | kontrib)
Tidak ada ringkasan suntingan
k uji coba
Baris 8:
-- Create table header
-- Pre stuff
local team_width = Args['teamwidth'] or '210165'
local sort_text = ''
local sort_table_val = Args['sortable_table'] or 'no'
Baris 15:
-- Custom header options
local draw_head_text = Args['draw_header'] or '<abbr title="UndianDrawn">UD</abbr>'
local group_head_text = Args['group_header'] or '<abbr title="GrupGroup">GrupGrp</abbr>'
local team_head_text = Args['team_header'] or 'TimTeam'
local loss_first = Args['loss_before_draw'] or false
-- What to rank the teams by
Baris 27:
elseif ranking_style=='perc' or ranking_style=='percentage' or ranking_style=='%' then
-- Based on percentage
show_perc = truestrue
else
-- Based on points
Baris 41:
if for_against_style=='m' or for_against_style=='match' or for_against_style=='matches' then
fa_letter = 'M'
fa_word_sing = 'MainMatch'
fa_word_plur = 'MainMatches'
elseif for_against_style=='none' then
hide_for_against = true
else
fa_letter = 'M'
fa_word_sing = 'MainMatch'
fa_word_plur = 'MainMatches'
end
Baris 101:
if point_for_against_style=='p' or point_for_against_style=='match' or point_for_against_style=='points' then
pfa_letter = 'P'
pfa_word_sing = 'PoinPoint'
pfa_word_plur = 'PoinPoints'
elseif point_for_against_style=='none' then
hide_point_for_against = true
else
pfa_letter = 'P'
pfa_word_sing = 'PoinPoint'
pfa_word_plur = 'PoinPoints'
end
-- Whether to use goal ratio (goal average) instead
Baris 133:
end
tt = p_sub.colhead(tt,team_width,team_head_text..VTE_text) -- Team col
tt = p_sub.colhead(tt,20,'<abbr title="Played">MainPld</abbr>') -- Matches played col
if full_table then
tt = p_sub.colhead(tt,20,'<abbr title="MenangWon">MW</abbr>') -- Win col
if loss_first then
tt = p_sub.colhead(tt,20,'<abbr title="KalahLost">KL</abbr>') -- Loss col
else
tt = p_sub.colhead(tt,20,'<abbr title="KalahLost">KL</abbr>') -- Loss col
end
if not hide_for_against then
Baris 170:
tt = p_sub.colhead(tt,20,'<abbr title="'..pfa_word_sing..' percentage">%</abbr>') -- Percentage col
else
tt = p_sub.colhead(tt,20,'<abbr title="Selisih '..pfa_word_sing..' difference">'..pfa_letter..'D</abbr>') -- Difference col
end
end
Baris 177:
end
if show_points then
tt = p_sub.colhead(tt,20,'<abbr title="PoinPoints">PoinPts</abbr>') -- Points col
elseif show_perc then
tt = p_sub.colhead(tt,36,'<abbr title="PersentaseWin kemenanganpercentage">%MPCT</abbr>') -- Win percentage col
end
if full_table then
Baris 401:
-- ------------------------------------------------------------
local status_code, status_called = {}
status_code = { A='LolosAdvance keto babaka selanjutnyafurther round', C='PemenangChampion', D='TerdiskualifikasiDisqualified',
E='TereliminasiEliminated', G='TamuGuest', H='Tuan rumahHost', O='Pemenang babak Play-off winner', P='DipromosikanPromoted', Q='TerkualifikasiQualified keto fasethe yangphase disebutkanindicated',
R='DiturunkanRelegated', T='TerkualifikasiQualified, tetapibut belumnot lolosyet keto fasethe yangparticular disebutkanphase indicated',
X='?', Y='?', Z='?'}
status_called = { A=false, C=false, D=false, E=false, G=false, H=false, O=false, P=false,