Modulo:TeamBracket: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Fix posizionamento finalina (vedi discussione)
aggiorno
Riga 21:
local RD1seedmap = {}
local tcats = ''
local yes_replies = { 'yes', 'y', 's', 'si', 'sì'}
local no_replies = { 'n', 'no', 'none'}
 
local function isnotblank(s)
Line 67 ⟶ 65:
end
return 0
end
 
local function unboldParenthetical(s)
if s then
s = mw.ustring.gsub(s, '(%(%[%[[^%[%]]*%]%]%))', '<span style="font-weight:normal">%1</span>')
end
return s
end
 
Line 356 ⟶ 361:
if isblank(teamArg) then
teamArg = '&nbsp;'
elseif boldwinner ~= '' then
teamArg = unboldParenthetical(teamArg)
end
 
Line 394 ⟶ 401:
or nil
end
if (score1 == nil or score1 == '') and (score2 == nil or score2 == '') then
if hideomittedscores > 0 and s >= hideomittedscores then
teamcolspan = teamcolspan + 1
Line 773 ⟶ 780:
seedCell = widthRow:tag('td'):css('width', getWidth('seed', '28px'))
end
local teamCell = widthRow:tag('td'):css('width', getWidth('team', '170px190px'))
local scoreCells = {}
local legsr = legs[r]
Line 780 ⟶ 787:
end
for s = 1, legsr do
local score_width = '28px'
scoreCells[s] = widthRow:tag('td'):css('width', getWidth('score', '28px'))
if aggregate and aggregate ~= '' and s > 1 and s == legsr then
score_width = getWidth('agg', getWidth('score', score_width))
else
score_width = getWidth('score', score_width)
end
scoreCells[s] = widthRow:tag('td'):css('width', getWidth('score', '28px')score_width)
end
titleRow:tag('td')