Modulo:Progetti interessati: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m margin |
aggiornamento aspetto grafico riquadro monitoraggio |
||
Riga 342:
return table.concat(links, ' ')
end▼
local self = {}▼
self.livello = livello▼
self.args = args▼
end▼
local text = self.livello and cfg.monitoraggio.text or cfg.monitoraggio.text_nc▼
tableNode▼
:tag('tr')▼
:tag('td')▼
:css('width', '52px')▼
:css('text-align', 'center')▼
:wikitext(self.livello and cfg.monitoraggio.icon or cfg.monitoraggio.icon_nc)▼
:wikitext(mw.getCurrentFrame():preprocess(text))▼
return tostring(tableNode)▼
end
Line 397 ⟶ 360:
function MonitoraggioTable:getHTML()
local tableStyle = {
margin = '
width = '80%',
border = '1px solid #a7d7f9',
['background-color'] = cfg.bgcolor
}
local tableNode = mw.html.create('table')
Line 435 ⟶ 397:
self.args.note:match('^[#*]') and '\n' or '',
self.args.note))
▲ end
-- data
▲ :tag('tr')
▲ :tag('td')
:attr('colspan', '3')
:wikitext('Monitoraggio effettuato nel ' .. self:getTextData())
end
Line 441 ⟶ 414:
function MonitoraggioTable:getNodeLivello()
if self.livello:sub(1, 1) == '0' then
icon, text = cfg.monitoraggio.icon_pc, cfg.monitoraggio.text_pc
text = string.format('%s<br />Ha ottenuto una valutazione di livello %s <small>(%s)</small>.',
text, self:getWlinkLivello(), self:getTextData())
end
else
▲ end
return mw.html.create('tr')
:tag('td')
:css('
:css('
:done()
:tag('td')
▲ :css('width', '80px')
▲ :wikitext('')
:done()
end
Line 461 ⟶ 440:
local codeStyle = {
['font-weight'] = 'bold',
['padding-left'] = '.4em',
['padding-right'] = '.4em',
border = '1px solid lightsteelblue',
background =
color = 'blue'
}
cfg.livello[self.livello].cat, cfg.livello[self.livello].label)▼
local codeNode = mw.html.create('code')
▲ text = string.format('[[:Categoria:Voci monitorate - %s|%s]]',
▲ cfg.livello[self.livello].cat, cfg.livello[self.livello].label)
▲ end
▲ codeNode:css(codeStyle)
▲ else
codeNode:wikitext(text)
end
Line 491 ⟶ 459:
local cat = string.format('Categoria:Voci monitorate - %s', self.args.data)
if titleExists(cat) then
ret =
end
end
return ret or "
end
function MonitoraggioTable:getNodeGrade(param)
return
:css('background-color', 'white')
:css('border', 'thin solid #D8D8D8')
Line 551 ⟶ 519:
(table.concat(getCategories(livello, args, projects)) .. table.concat(errcat)) or ''
return ProjectsTable:new(projects):getHTML() ..
categories
else
|