Module:Navbox/sandbox: Difference between revisions

Content deleted Content added
correct implementation for needsHorizontalLists
you know what, let's not worry about that one
Line 316:
 
local function hasBackgroundColors()
-- TODO: this list does not match the hasBorders list
-- (it has titlestyle). why?
for _, key in ipairs({cfg.arg.titlestyle, cfg.arg.groupstyle,
cfg.arg.basestyle, cfg.arg.abovestyle, cfg.arg.belowstyle}) do
Line 328 ⟶ 326:
 
local function hasBorders()
for _, key in ipairs({cfg.arg.titlestylegroupstyle, cfg.arg.groupstylebasestyle,
cfg.arg.basestyle, cfg.arg.abovestyle, cfg.arg.belowstyle}) do
if tostring(args[key]):find('border', 1, true) then
return true