Module:Navbox: Difference between revisions

129 bytes added ,  10 years ago
change hasBackgroundColors to check titlestyle/groupstyle/basestyle contains the word background
m>Jackmcbarn
(various fixes from sandbox)
m>WOSlinker
(change hasBackgroundColors to check titlestyle/groupstyle/basestyle contains the word background)
Line 271: Line 271:


local function hasBackgroundColors()
local function hasBackgroundColors()
     return args.titlestyle or args.groupstyle
     return mw.ustring.match(args.titlestyle or '','background') or mw.ustring.match(args.groupstyle or '','background') or mw.ustring.match(args.basestyle or '','background')
end
end


Anonymous user