Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
improve readability a bit
we don't want any fallbacks if args.QUALITY_CRITERIA=='custom' because for example military history project does not use NA class, so all logic must be done by its custom mask
Line 353:
end
end
if class=='FM' and not class_works('FM') and not args.QUALITY_CRITERIA=='custom' then
new_class = 'File' -- fall back to File-class if FM-class doesn't work
end
if not class_works(new_class) and not args.QUALITY_CRITERIA=='custom' then
new_class = 'NA' -- use NA for non-article pages if class doesn't work
end