Open main menu

Changes

Module:Protection banner

49 bytes added, 23:48, 21 July 2014
use isDemo instead of args.category and use an isSmall variable while we're at it
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(
(yesno(args.small) isSmall and Padlock or Banner)
:new(protectionObj, blurbObj, cfg)
)
-- Render the categories
if yesno(args.category) ~= false not isDemo then
ret[#ret + 1] = protectionObj:makeCategoryLinks()
end
Anonymous user