Module:Protection banner: Difference between revisions
Content deleted Content added
add a Protection:isTemporary method |
use isDemo instead of args.category and use an isSmall variable while we're at it |
||
Line 812:
local ret = {}
local isDemo = yesno(args.demo)
local isSmall = yesno(args.small)
-- Render the banner
if protectionObj:isProtected() or isDemo then
ret[#ret + 1] = tostring(
(
:new(protectionObj, blurbObj, cfg)
)
Line 822 ⟶ 824:
-- Render the categories
if
ret[#ret + 1] = protectionObj:makeCategoryLinks()
end
|