Content deleted Content added
this is Module:Navbox using tabs for indentation; clean whitespace |
minor tweaks |
||
Line 12:
local border
local listnums = {}
end▼
local function addNewline(s)
Line 258 ⟶ 254:
local function needsHorizontalLists()
if border == 'child' or border == 'subgroup' or args.tracking == 'no' then
return false return false▼
end▼
end
local listClasses = {
['plainlist'] = true, ['hlist'] = true, ['hlist hnum'] = true,
['hlist hwrap'] = true, ['hlist vcard'] = true, ['vcard hlist'] = true,
['hlist vevent'] = true,
}
return not (listClasses[args.listclass] or listClasses[args.bodyclass])
end
local function hasBackgroundColors()
for _, key in ipairs({'titlestyle', 'groupstyle', 'basestyle'}) do
if tostring(args[key]):find('background', 1, true) then
▲ end
▲ end
end
Line 353 ⟶ 352:
table.sort(listnums)
border = mw.text.trim(args.border or args[1] or '')
-- render the main body of the navbox
|