Module:Navbox: Difference between revisions

removed .navbox-spacing-temp mask, no longer used by site CSS
m (1 revision imported: infobox television)
(removed .navbox-spacing-temp mask, no longer used by site CSS)
Line 9:
 
local args
local tableRowAdded = false
local border
local listnums = {}
Line 78 ⟶ 77:
end
return item
end
 
local function addTableRow(tbl)
-- If any other rows have already been added, then we add a 2px gutter row.
if tableRowAdded then
tbl
:tag('tr')
:css('height', '2px')
:tag('td')
:attr('colspan',2)
end
 
tableRowAdded = true
 
return tbl:tag('tr')
end
 
Line 101 ⟶ 85:
args.name,
mini = 1,
fontstyle = (args.basestyle or '') .. ';' .. (args.titlestyle or '') .. ';background:none transparent;border:none;-moz-box-shadow:none;-webkit-box-shadow:none;box-shadow:none;'
})
end
Line 113 ⟶ 97:
if not args.title then return end
 
local titleRow = addTableRow(tbl:tag('tr')
 
if args.titlegroup then
Line 171 ⟶ 155:
if not args.above then return end
 
tbl:tag('tr')
addTableRow(tbl)
:tag('td')
:addClass('navbox-abovebelow')
Line 185 ⟶ 169:
if not args.below then return end
 
tbl:tag('tdtr')
addTableRow(tbl)
:tag('td')
:addClass('navbox-abovebelow')
Line 200 ⟶ 184:
--
local function renderListRow(tbl, index, listnum)
local row = addTableRow(tbl:tag('tr')
 
if index == 1 and args.imageleft then
Line 207 ⟶ 191:
:addClass('navbox-image')
:addClass(args.imageclass)
:css('width', '0%1px') -- Minimize width
:css('padding', '0px 2px 0px 0px')
:cssText(args.imageleftstyle)
:attr('rowspan', 2 * #listnums - 1)
:tag('div')
:wikitext(processItem(args.imageleft))
Line 223 ⟶ 207:
:addClass(args.groupclass)
:cssText(args.basestyle)
:css('width', args.groupwidth or '1%') -- If groupwidth not specified, minimize width
 
if args.groupwidth then
groupCell:css('width', args.groupwidth)
end
 
groupCell
Line 279 ⟶ 260:
:addClass('navbox-image')
:addClass(args.imageclass)
:css('width', '0%1px') -- Minimize width
:css('padding', '0px 0px 0px 2px')
:cssText(args.imagestyle)
:attr('rowspan', 2 * #listnums - 1)
:tag('div')
:wikitext(processItem(args.image))
Anonymous user