Content deleted Content added
Allow proper minus signs for negative values in table |
Add input for point value for win/draw/loss points |
||
Line 34:
table.insert(t,'! scope="col" width=28|<abbr title="Goal difference">GD</abbr>\n') -- Goal difference col
table.insert(t,'! scope="col" width=28|<abbr title="Points">Pts</abbr>\n') -- Points col
-- Get custom options for in table
local win_points = tonumber(Args['winpoints']) or 3
local draw_points = tonumber(Args['drawpoints']) or 1
local loss_points = tonumber(Args['losspoints']) or 0
-- Write rows
Line 49 ⟶ 54:
games = wins + draws + losses
gdiff = gfor - gaig
points =
-- Now build the rows
Line 86 ⟶ 91:
-- Small text, footnotes
table.insert(t, '<small>RESERVED TEXT</small>
return table.concat(t)
|