Modul:Sports table/Badminton team: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
k revert Tag: Pembatalan |
Tag: Pengembalian |
||
(4 revisi perantara oleh 2 pengguna tidak ditampilkan) | |||
Baris 27:
elseif ranking_style=='perc' or ranking_style=='percentage' or ranking_style=='%' then
-- Based on percentage
show_perc =
else
-- Based on points
Baris 40:
for_against_style = string.lower(for_against_style)
if for_against_style=='m' or for_against_style=='match' or for_against_style=='matches' then
fa_letter = '
fa_word_sing = '
fa_word_plur = '
elseif for_against_style=='none' then
hide_for_against = true
else
fa_letter = '
fa_word_sing = '
fa_word_plur = '
end
Baris 71:
if game_for_against_style=='g' or game_for_against_style=='game' or game_for_against_style=='games' then
gfa_letter = 'G'
gfa_word_sing = '
gfa_word_plur = '
elseif game_for_against_style=='none' then
hide_game_for_against = true
else
gfa_letter = 'G'
gfa_word_sing = '
gfa_word_plur = '
end
Baris 100:
for_against_style = string.lower(for_against_style)
if point_for_against_style=='p' or point_for_against_style=='match' or point_for_against_style=='points' then
pfa_letter = '
pfa_word_sing = '
pfa_word_plur = '
elseif point_for_against_style=='none' then
hide_point_for_against = true
else
pfa_letter = '
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,
if full_table then
tt = p_sub.colhead(tt,
if loss_first then
tt = p_sub.colhead(tt,
else
tt = p_sub.colhead(tt,
end
if not hide_for_against then
tt = p_sub.colhead(tt,
tt = p_sub.colhead(tt,
if do_ratio then
tt = p_sub.colhead(tt,
elseif do_percentage then
tt = p_sub.colhead(tt,
else
tt = p_sub.colhead(tt,
end
if not hide_game_for_against then
tt = p_sub.colhead(tt,
tt = p_sub.colhead(tt,
if do_ratio then
tt = p_sub.colhead(tt,
elseif do_percentage then
tt = p_sub.colhead(tt,
else
tt = p_sub.colhead(tt,
end
if not hide_point_for_against then
tt = p_sub.colhead(tt,
tt = p_sub.colhead(tt,
if do_ratio then
tt = p_sub.colhead(tt,
elseif do_percentage then
tt = p_sub.colhead(tt,
else
tt = p_sub.colhead(tt,
end
end
Baris 177:
end
if show_points then
tt = p_sub.colhead(tt,
elseif show_perc then
tt = p_sub.colhead(tt,36,'<abbr title="Persentase
end
if full_table then
Baris 372:
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..maig..'\n') -- MA
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..mcomp..'\n') -- Match comparison
if Args['game_for_against_style'] ~= 'none' then
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..gfor..'\n') -- GF▼
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..
end
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..paig..'\n') -- PA▼
if Args['point_for_against_style'] ~= 'none' then
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..pcomp..'\n') -- Point comparison▼
▲ table.insert(t,'| style="'..ii_fw..bg_col..'" |'..paig..'\n') -- PA
▲ table.insert(t,'| style="'..ii_fw..bg_col..'" |'..pcomp..'\n') -- Point comparison
end
end
|