Modul:Sports table/Badminton team: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan |
k uji coba |
||
Baris 8:
-- Create table header
-- Pre stuff
local team_width = Args['teamwidth'] or '
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="
local group_head_text = Args['group_header'] or '<abbr title="
local team_head_text = Args['team_header'] or '
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 =
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 = '
fa_word_plur = '
elseif for_against_style=='none' then
hide_for_against = true
else
fa_letter = 'M'
fa_word_sing = '
fa_word_plur = '
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 = '
pfa_word_plur = '
elseif point_for_against_style=='none' then
hide_point_for_against = true
else
pfa_letter = 'P'
pfa_word_sing = '
pfa_word_plur = '
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">
if full_table then
tt = p_sub.colhead(tt,20,'<abbr title="
if loss_first then
tt = p_sub.colhead(tt,20,'<abbr title="
else
tt = p_sub.colhead(tt,20,'<abbr title="
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="
end
end
Baris 177:
end
if show_points then
tt = p_sub.colhead(tt,20,'<abbr title="
elseif show_perc then
tt = p_sub.colhead(tt,36,'<abbr title="
end
if full_table then
Baris 401:
-- ------------------------------------------------------------
local status_code, status_called = {}
status_code = { A='
E='
R='
X='?', Y='?', Z='?'}
status_called = { A=false, C=false, D=false, E=false, G=false, H=false, O=false, P=false,
|