Module:Sports table/Wrestling: Difference between revisions

Content deleted Content added
ranking style
option to hide tp col
Line 23:
local show_win = yesno(Args['show_win'] or 'yes')
local show_loss = yesno(Args['show_loss'] or 'yes')
local show_tp = yesno(Args['show_tp'] or 'yes')
local show_round = yesno(Args['show_round'] or 'no')
Line 53 ⟶ 54:
end
tt = p_sub.colhead(tt,28,'<abbr title="Classification points">CP</abbr>') -- Classification points col
if show_tp then
tt = p_sub.colhead(tt,28,'<abbr title="Technical points">TP</abbr>') -- Technical points col
end
if full_table then
tt.count = tt.count+1
Line 92 ⟶ 95:
local show_win = yesno(Args['show_win'] or 'yes')
local show_loss = yesno(Args['show_loss'] or 'yes')
local show_tp = yesno(Args['show_tp'] or 'yes')
local show_round = yesno(Args['show_round'] or 'no')
local digits = Args['digitpad']
Line 156 ⟶ 160:
table.insert(t,'| style="'..ii_fw..cp_fw..bg_col..'" | '..num_align(cp,digits)..cp_string..'\n')
end
if tp<0show_tp then
if tp<0 then
table.insert(t,'| style="'..ii_fw..bg_col..'" | &minus;'..num_align(-tp,digits)..'\n')
else
table.insert(t,'| style="'..ii_fw..bg_col..'" | '..num_align(tp,digits)..'\n')
end
end
return {t=t, notes_exist=notes_exist, hth_id_list=hth_id_list}