Module:Navbox: Difference between revisions
Content added Content deleted
Enwikipedia>Jackmcbarn (various fixes from sandbox) |
Enwikipedia>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 |
||