Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
simp
allow opt-out projects to inherit rating if it is valid on their quality scale
Line 248:
args = raw_args
})
if class=='' then -- unassessed, see if there is an article assessment
local article_class = p.readarticleclass({ignore_subtemplates=true}, title.prefixedText)
article_class = article_class and class_mask({article_class}, title)
if article_class and article_class~='' then -- article class exists, check if it can be inherited
local normalised_class = mw.text.trim(frame:expandTemplate{
title = custom_mask.prefixedText,
args = {article_class}
})
class = normalised_class~='' and normalised_class or ''
end
end
end
else