Content deleted Content added
Sports2021 (talk | contribs) mNo edit summary |
Sports2021 (talk | contribs) making score width optional Tag: Reverted |
||
Line 9:
-- Pre stuff
local team_width = Args['teamwidth'] or '190'
local score_width = Args['scorewidth'] or '32'
local sort_text = yesno(Args['sortable_table'] or 'no') and ' sortable' or ''
local show_played = not yesno(Args['hide_played'] or 'no')
Line 105 ⟶ 106:
-- Actual headers
if pos_label ~= nil then
tt = p_sub.colhead(tt,
end
-- Add group header
Line 113 ⟶ 114:
tt = p_sub.colhead(tt,team_width,'Team'..VTE_text) -- Team col
if show_played then
tt = p_sub.colhead(tt,
end
if full_table then
tt = p_sub.colhead(tt,
if show_OTwin then tt = p_sub.colhead(tt,
if show_PKwin then tt = p_sub.colhead(tt,
if show_draw then
tt = p_sub.colhead(tt,
end
if show_OTloss and not OTloss_after then t = p_sub.colhead(tt,
if show_PKloss and not PKloss_after then t = p_sub.colhead(tt,
tt = p_sub.colhead(tt,
if show_OTloss and OTloss_after then t = p_sub.colhead(tt,
if show_PKloss and PKloss_after then t = p_sub.colhead(tt,
if show_tiebr then t = p_sub.colhead(tt,
if not hide_for_against then
tt = p_sub.colhead(tt,
tt = p_sub.colhead(tt,
if do_ratio or do_average then
local ratio_word = do_ratio and ' ratio' or ' average'
Line 138 ⟶ 139:
tt = p_sub.colhead(tt,28,'<abbr title="'..fa_word_sing..' percentage">%</abbr>') -- Percentage col
else
tt = p_sub.colhead(tt,
end
end
Line 146 ⟶ 147:
end
if show_points then
tt = p_sub.colhead(tt,
end
if show_perc then
|