Modulo:Navbox/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m se ne occupa la classe navbox |
integro nel CSS |
||
Riga 89:
local self = {}
local thNode
setmetatable(self, { __index = Navbox })
Line 108 ⟶ 102:
:tag('th')
:attr('colspan', self.args.image and '3' or '2')
:cssText(self.args.titlestyle)
if self.args.navbar ~= 'plain' then
self:_addTnavbar(thNode)
end
-- eventuale riga per l'above
if self.args.above then
Line 158 ⟶ 149:
-- @param {table} node
function Navbox:_addTnavbar(node)
local tnavbar = mw.getCurrentFrame():expandTemplate {
title = 'Tnavbar',
Line 172 ⟶ 156:
}
}
node:tag('div'):
end
Line 187 ⟶ 164:
-- @param {string} argStyle
function Navbox:_addAboveOrBelow(arg, argStyle)
self.tableNode
:tag('tr')
:tag('td')
:attr('colspan', self.args.image and '3' or '2')
:
:cssText(argStyle)
:wikitext(arg)
|