Module:Sandbox/B2project/WLT: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 75:
tt = p_sub.colhead(tt,32,'<abbr title="Lost">L</abbr>') -- Loss col
if do_ties then
tt = p.subp_sub.colhead(tt,32,'<abbr title="Ties">T</abbr>') -- Ties
end
tt = p_sub.colhead(tt,32,OTloss_head_text)
Line 109:
local loss_points = tonumber(Args['losspoints']) or 0
local OTloss_points = tonumber(Args['OTlosspoints']) or 1
local ties_points = tonumber(Args['tiepoints']) or 1
-- Get some input
Line 121 ⟶ 122:
local hth_local = Args['hth_'..team_code_ii] or nil
-- Then calculate some values
local matches = wins + losses + OTlosses + ties
local points = win_points*wins + loss_points*losses + OTloss_points*OTlosses + s_pts + ties_points*ties
-- Comparison of for against
Line 170 ⟶ 171:
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..losses..'\n') -- Lost
if do_ties then
table.insert(t,'| style="'..ii_fw..bgcolbg_col..'" |'..ties..'\n') -- Ties
end
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..OTlosses..'\n') -- Lost in OT