Anonymous user
Module:Navbox: Difference between revisions
don't need a special function for the list1 row, and fix for border=none
(fix title centering) |
(don't need a special function for the list1 row, and fix for border=none) |
||
Line 168:
-- List rows
--
function
local row = addTableRow(tbl)
if listnum == 1 and args.imageleft then
row
.tag('td')
Line 187 ⟶ 185:
end
if args.group1 then▼
local groupCell = row.tag('th')▼
.attr('scope', 'row')▼
.addClass('navbox-group')▼
.addClass(args.groupclass)▼
.cssText(args.basestyle)▼
end▼
.cssText(args.groupstyle)▼
.css('text-align', 'left')▼
.tag('div')▼
.newline()▼
.css('width', '0%')▼
if args['group' .. listnum] then
local groupCell = row.tag('th')
Line 312 ⟶ 242:
.newline()
.wikitext(args['list' .. listnum])
▲ row
▲ .tag('div')
▲ .newline()
end
Line 346 ⟶ 290:
renderTitleRow(tbl)
renderAboveRow(tbl)
for i, listnum in ipairs(listnums) do
end
renderBelowRow(tbl)
Line 394 ⟶ 332:
.css('padding', '2px')
.node(tbl)
else -- border == 'none'
end
|