Modulo:Navbox/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
ultimi ritocchi
rivedo CSS dei subnavbox
Riga 218:
trNode:tag('td')
:attr('colspan', self.args['group' .. id] and '1' or '2')
:addClass('navbox_list')
:addClass(not self.args['group' .. id] and 'navbox_center' or nil)
:addClass(altBackground)
Line 266 ⟶ 267:
-- Configura gli stili CSS della tabella.
function NavboxSubgroup:_setupTableNode()
local tableStyle = {
background = 'transparent',
['font-size'] = '100%',
padding = '0',
border = '0',
margin = '-3px',
width = '100%'
}
self.tableNode
:addClass('subnavbox nowraplinks')
:css(tableStyle)
:cssText(self.args.bodystyle)
Line 283 ⟶ 276:
function NavboxSubgroup:_addLists()
local listIds, altStyle
local thStyle = {
background = '#ddf',
padding = '0 10px',
}
-- crea una row per ogni listN
listIds = getIds(self.args)
Line 295 ⟶ 284:
if self.args['group' .. id] then
trNode:tag('th')
:cssaddClass(thStyle'navbox_group')
:cssText(self.args.groupstyle)
:wikitext(self.args['group' .. id])
Line 306 ⟶ 295:
trNode:tag('td')
:attr('colspan', self.args['group' .. id] and '1' or '2')
:addClass('navbox_list')
:cssaddClass('text-align',not self.args['group' .. id] and 'leftnavbox_center' or 'center'nil)
:cssText(self.args.liststyle)
:cssText(altStyle)