Autopatrolled users, Bureaucrats, Comment administrators, Confirmed users, Rollbackers, Administrators
1,277
edits
(Testing different version of module; will immediately revert if this does not produce the intended result) |
|||
Line 9:
local args
local tableRowAdded = false
local border
local listnums = {}
Line 56 ⟶ 57:
end
local function
if
else
return
end
local function addTableRow(tbl)
-- If any other rows have already been added, then we add a 2px gutter row.
if tableRowAdded then
tbl
end▼
:attr('colspan',2)
end
tableRowAdded = true
▲ return '\n' .. item ..'\n'
▲ end
return
end
Line 85 ⟶ 86:
args.name,
mini = 1,
fontstyle = (args.basestyle or '') .. ';' .. (args.titlestyle or '') .. ';background:none transparent;border
})
end
Line 97 ⟶ 98:
if not args.title then return end
local titleRow =
if args.titlegroup then
Line 138 ⟶ 139:
:css('font-size', '114%')
:css('margin', '0 4em')
:wikitext(
end
Line 155 ⟶ 156:
if not args.above then return end
addTableRow(tbl)
▲ tbl:tag('tr')
:tag('td')
:addClass('navbox-abovebelow')
Line 163 ⟶ 164:
:attr('colspan', getAboveBelowColspan())
:tag('div')
:wikitext(
end
Line 169 ⟶ 170:
if not args.below then return end
addTableRow(tbl)
:tag('td')
:addClass('navbox-abovebelow')
Line 177 ⟶ 178:
:attr('colspan', getAboveBelowColspan())
:tag('div')
:wikitext(
end
Line 184 ⟶ 185:
--
local function renderListRow(tbl, index, listnum)
local row =
if index == 1 and args.imageleft then
Line 191 ⟶ 192:
:addClass('navbox-image')
:addClass(args.imageclass)
:css('width', '
:css('padding', '0px 2px 0px 0px')
:cssText(args.imageleftstyle)
:attr('rowspan', 2 * #listnums - 1)
:tag('div')
:wikitext(
end
Line 207 ⟶ 208:
:addClass(args.groupclass)
:cssText(args.basestyle)
if args.groupwidth then
groupCell:css('width', args.groupwidth)
▲ end
groupCell
Line 253 ⟶ 257:
:tag('div')
:css('padding', (index == 1 and args.list1padding) or args.listpadding or '0em 0.25em')
:wikitext(
if index == 1 and args.image then
Line 260 ⟶ 264:
:addClass('navbox-image')
:addClass(args.imageclass)
:css('width', '
:css('padding', '0px 0px 0px 2px')
:cssText(args.imagestyle)
:attr('rowspan', 2 * #listnums - 1)
:tag('div')
:wikitext(
end
end
Line 321 ⟶ 325:
if subpage == 'doc' or subpage == 'sandbox' or subpage == 'testcases' then return end
for
builder:wikitext('[[Category:' .. cat .. ']]')
end
Line 367 ⟶ 371:
args = navboxArgs
for k,
local listnum = ('' .. k):match('^list(%d+)$')
end
table.sort(listnums)
|