Module:Navbox: Difference between revisions

From Test Wiki
129 bytes added ,  15 June 2014
change hasBackgroundColors to check titlestyle/groupstyle/basestyle contains the word background
(various fixes from sandbox)
(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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.