Content deleted Content added
No edit summary |
Changed: – → – for home & road records to prevent line breaks |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 18:
local highlight = "#CCFFCC"
local splitcolor = "#CCCCCC"
local divleadermark = " *"
local function get_division(division)
Line 44:
local function winpct(w, l)
local pct = '–'
if (w + l) > 0 then
end
return
end
Line 66 ⟶ 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 124 ⟶ 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 144 ⟶ 145:
local clrw = tonumber(args[cloffset + 5])
local clrl = tonumber(args[cloffset + 6])
-- start the table
local root = mw.html.create('table')
Line 207:
-- played
row:tag('td'):wikitext(hw + hl + rw + rl)
if
root:tag('tr'):css('background
end
pos = pos + 1
|