Changes
Jump to navigation
Jump to search
local tableRowAdded = false
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')
addTableRowtbl:tag(tbl'tr')
addTableRowtbl:tag(tbl'tr')
if args.groupwidth then groupCell :css('width', args.groupwidthor '1%') end-- If groupwidth not specified, minimize width
replacing gutter rows with CSS borders; uses temporary navbox-spacing-temp class to avoid cache issues
local args
local border
local listnums = {}
end
return item
end
if not args.title then return end
local titleRow = addTableRowtbl:tag(tbl'tr')
if args.titlegroup then
if not args.above then return end
:tag('td')
:addClass('navbox-abovebelow')
if not args.below then return end
:tag('td')
:addClass('navbox-abovebelow')
--
local function renderListRow(tbl, index, listnum)
local row = addTableRowtbl:tag(tbl'tr')
if index == 1 and args.imageleft then
: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))
:addClass(args.groupclass)
:cssText(args.basestyle)
groupCell
: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))
if border == 'subgroup' or border == 'none' then
tbl
:addClass('navbox-subgroupnavbox-spacing-temp')
:cssText(args.bodystyle)
:cssText(args.style)
local nav = res:tag('div')
:attr('role', 'navigation')
:addClass('navboxnavbox-spacing-temp')
:cssText(args.bodystyle)
:cssText(args.style)