Modulo:TeamBracket: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
aggiorno
m meglio inherit di color base
 
(5 versioni intermedie di 3 utenti non mostrate)
Riga 104:
k = mw.ustring.gsub(k, '^' .. rdstr .. '(%-[a-z][a-z]*)4', '3rd%12')
elseif k:find('^Consol') then
k = mw.ustring.gsub(k, '^Consol', '3rd', 'RD-finalina')
tcats = tcats .. '[[Categoria:Errori nella compilazione di TeamBracket|3]]'
elseif k:find('^group[0-9]') then
Riga 209:
if sepwidth > 1 then topcell = true end
if seedorteam then
cell:css('border', '1px solid var(--border-color-base, #aaa)')
:css('border-top-width', topcell and '1px' or '0')
else
cell:css('border-color', 'var(--border-color-base, #aaa)')
:css('border-style', 'solid')
:css('border-top-width', topcell and '1px' or '0')
Riga 226:
:attr('colspan', tonumber(hideSeeds and '1' or '2') + legs[r] + pad)
:css('text-align', 'center')
:css('border', '1px solid var(--border-color-base, #aaa)')
:css('background-color', args['RD-shade'] or 'var(--background-color-neutral, #f2f2f2)')
:css('color', 'inherit')
:wikitext(text)
:newline()
Line 261 ⟶ 262:
local value = args[argname]
if isblank(value) then
return 'var(--background-color-neutral-subtle, #f9f9f9)'
end
return value
Line 327 ⟶ 328:
{['border-width'] = '0',
['border-style'] = 'solid',
['border-color'] = 'var(--color-base, black)'}, (not compact) and 2 or 1)
if left or round < maxround and not left then
cell:css(prop, w or '2px')
Line 351 ⟶ 352:
seedCell = row:tag('td')
:css('text-align', 'center')
:css('background-color', 'var(--background-color-neutral, #f2f2f2)')
:css('color', 'inherit')
:attr('rowspan', (not compact) and '2' or nil)
:wikitext(seedArg)
Line 370 ⟶ 372:
 
local teamCell = row:tag('td')
:css('background-color', 'var(--background-color-neutral-subtle, #f9f9f9)')
:css('padding', '0 2px')
:css('color', 'inherit')
:attr('rowspan', (not compact) and '2' or nil)
:attr('colspan', (tcs > 1) and tcs or nil)
Line 428 ⟶ 431:
:css('background-color', getShadeArg(round, team, s))
:css('font-weight', fw)
:css('color', 'inherit')
:attr('rowspan', (not compact) and '2' or nil)
:wikitext(score1)
Line 514 ⟶ 518:
addHeading(rows[offset-4], r + 1, getRoundName(r+1), legs[r] - legs[r+1])
local b = addBlank(offset-4, {
['border-color'] = 'var(--color-base, black)',
['border-style']= 'solid',
['border-width']= '0'}, 2)
Line 542 ⟶ 546:
{['border-width'] = '0',
['border-style'] = 'solid',
['border-color'] = 'var(--color-base, black)'},
height, 1)
else
Line 548 ⟶ 552:
{['border-width'] = '0',
['border-style'] = 'solid',
['border-color'] = 'var(--color-base, black)'},
height, tonumber(hideSeeds and '3' or '4') + legs[r] + pad)
end
Line 609 ⟶ 613:
if (round < maxround) then
addBlank(i, {
['border-color'] = 'var(--color-base, black)',
['border-style'] = 'solid',
['border-width'] = '0 ' .. w .. ' 0 0'})
Line 621 ⟶ 625:
if (round < maxround) then
addBlank(i+1, {
['border-color'] = 'var(--color-base, black)',
['border-style'] = 'solid',
['border-width'] = '0 ' .. w .. ' 0 0'})
Line 784 ⟶ 788:
local legsr = legs[r]
if compactFinal and r == (maxround-1) then
legsr = legs[r+1] > legs[r] and legs[r+1] or legs[r]
end
if showThird and r==maxround then
legsr = legs[r+1] > legs[r] and legs[r+1] or legs[r]
end
for s = 1, legsr do
local score_width = '28px30px'
if aggregate and aggregate ~= '' and s > 1 and s == legsr then
score_width = getWidth('agg', getWidth('score', score_width))