Module:Banner shell and Module:Banner shell/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
simplify |
|||
Line 1: | Line 1: | ||
require('strict') |
require('strict') |
||
local p = {} |
local p = {} |
||
local sandbox |
local sandbox = '/sandbox' -- BE SURE TO COMMENT OUT this definition when deploying to live |
||
local yesno = require('Module:Yesno') |
local yesno = require('Module:Yesno') |
||
Line 93: | Line 93: | ||
end |
end |
||
local blp = args.blp and args.blp:lower() |
local blp = args.blp and args.blp:lower() |
||
if yesno(blp) or blp=='activepol' |
if yesno(blp) or blp=='activepol' then |
||
table.insert(out, frame:expandTemplate{ |
table.insert(out, frame:expandTemplate{ |
||
title = cfg.blp_template.blp, |
title = cfg.blp_template.blp, |
||
Line 184: | Line 184: | ||
end |
end |
||
elseif not yesno(args.vital) and class~='' then -- if no projects and not vital and assessed then add class super category |
elseif not yesno(args.vital) and class~='' then -- if no projects and not vital and assessed then add class super category |
||
⚫ | |||
if class == 'NA' then |
|||
addCategory('NA-Class pages') |
|||
else |
|||
⚫ | |||
end |
|||
end |
end |
||
local header = mw.html.create('tr') |
local header = mw.html.create('tr') |