Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
m update function
start warnings
Line 157:
dab = 'disambiguation page'
})
local rows, nested_ratings, task_forces, notes, categories, taskforce_categories, warnings = {}, {}, {}, {}, {}, {}, {}
local add_category = function(category, key)
if category and category~='none' then
Line 335:
else
add_category(cfg.category.no_quality_rating)
table.insert(warnings, 'Please add the quality rating to the WikiProject banner shell instead of this project banner. See [[WP:PIQA]] for details.')
end
elseif class=='' or class==article_class then -- local class matches article class or is blank
Line 350 ⟶ 351:
end
end
else
table.insert(warnings, 'Please add {{WikiProject banner shell}} to this page and add the quality rating to it instead of this project banner. See [[WP:PIQA]] for details.')
end
if not isarticle(class) then
Line 503 ⟶ 506:
end
if args[tf_prefix .. 'TEXT']~='none' then
local portal = args[tf_prefix..'PORTAL'] and frame:expandTemplate{
title='Portal',
args={args[tf_prefix .. 'PORTAL'], height='15', margin='0'}
} or ''
local text = ''
local tf_text = args[tf_prefix..'TEXT'] or args.TF_TEXT