Module:Sports series: Difference between revisions

Content deleted Content added
improvements to logic
improvements
Line 166:
elseif args.flag and (args.flag == 'n' or args.flag == 'no' or args.flag == '0' or args.flag == 'false' or args.flag == 'null' or args.flag == 'none' or args.flag == 'noflag') then
noFlagIcons = true -- Hide flag icons for club matches
if matchType == 'NT' then
flagTemplate = 'fb' -- Set flagTemplate to "fb" for NT matches, as disabling flags is not allowed
end
else
flagTemplate = (matchType == 'NT' and not args.flag) and 'fb' or args.flag or 'fbaicon' -- DefautDefault to {{fb}} for NT matches and {{fbaicon}} for club matches
end