Changes

Jump to navigation Jump to search

Module:Protection banner

49 bytes removed, 00:52, 22 July 2014
undo, as a lot of code would need to be changed for template demos to look respectable on unprotected pages
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(
(isSmall yesno(args.small) and Padlock or Banner)
:new(protectionObj, blurbObj, cfg)
)
-- Render the categories
if not isDemo yesno(args.category) ~= false then
ret[#ret + 1] = protectionObj:makeCategoryLinks()
end
Anonymous user

Navigation menu