Content deleted Content added
No edit summary |
Changed: – → – for home & road records to prevent line breaks |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 17:
local highlight = "#CCFFCC"
local
local divleadermark = " *"
local function get_division(division)
Line 43 ⟶ 44:
local function winpct(w, l)
local pct = '–'
if (w + l) > 0 then
end
return
end
Line 65 ⟶ 67:
local division = args['division']:lower()
-- division leader record
local dloffset = 8*((tonumber(args[division .. 'leader']) or 1) - 1)
local dlhw = tonumber(args[dloffset + 3])
local dlhl = tonumber(args[dloffset + 4])
Line 123 ⟶ 125:
row:tag('td'):wikitext(gbformat(hw, hl, rw, rl, dlhw, dlhl, dlrw, dlrl))
-- home record
row:tag('td'):wikitext(hw .. '
-- road record
row:tag('td'):wikitext(rw .. '
-- div record
row:tag('td'):wikitext(divrecord)
Line 192 ⟶ 194:
row = root:tag('tr'):css('background-color', rowcolor)
-- position
row:tag('th'):wikitext(pos
-- team name
row:tag('td'):css('text-align', 'left'):wikitext(team)
Line 205 ⟶ 207:
-- played
row:tag('td'):wikitext(hw + hl + rw + rl)
if args['split' .. pos] then
root:tag('tr'):css('background-color', splitcolor):tag('td'):attr('colspan', 7)
end
pos = pos + 1
end
|