Anonymous user
Module:Navbox: Difference between revisions
replacing gutter rows with CSS borders; uses temporary navbox-spacing-temp class to avoid cache issues
(update from Module:Navbox/sandbox per Template talk:Navbox#Merging nowrap navbox to implement nowrapitems=yes to nowrap listN + above + below text) |
(replacing gutter rows with CSS borders; uses temporary navbox-spacing-temp class to avoid cache issues) |
||
Line 9:
local args
local border
local listnums = {}
Line 78 ⟶ 77:
end
return item
:tag('tr')▼
:tag('td')▼
end
Line 113 ⟶ 97:
if not args.title then return end
local titleRow =
if args.titlegroup then
Line 171 ⟶ 155:
if not args.above then return end
:tag('td')
:addClass('navbox-abovebelow')
Line 185 ⟶ 169:
if not args.below then return end
:tag('td')
:addClass('navbox-abovebelow')
Line 200 ⟶ 184:
--
local function renderListRow(tbl, index, listnum)
local row =
if index == 1 and args.imageleft then
Line 207 ⟶ 191:
:addClass('navbox-image')
:addClass(args.imageclass)
:css('width', '
:css('padding', '0px 2px 0px 0px')
:cssText(args.imageleftstyle)
:attr('rowspan',
: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
groupCell
Line 279 ⟶ 260:
:addClass('navbox-image')
:addClass(args.imageclass)
:css('width', '
:css('padding', '0px 0px 0px 2px')
:cssText(args.imagestyle)
:attr('rowspan',
:tag('div')
:wikitext(processItem(args.image))
Line 362 ⟶ 343:
if border == 'subgroup' or border == 'none' then
tbl
:addClass('navbox-subgroup navbox-spacing-temp')
:cssText(args.bodystyle)
:cssText(args.style)
Line 424 ⟶ 405:
local nav = res:tag('div')
:attr('role', 'navigation')
:addClass('navbox navbox-spacing-temp')
:cssText(args.bodystyle)
:cssText(args.style)
|