Modul:Protection banner: Unterschied zwischen den Versionen
undo, as a lot of code would need to be changed for template demos to look respectable on unprotected pages
(use isDemo instead of args.category and use an isSmall variable while we're at it) |
(undo, as a lot of code would need to be changed for template demos to look respectable on unprotected pages) |
||
Zeile 812: | Zeile 812: | ||
local ret = {} | local ret = {} | ||
-- Render the banner | -- Render the banner | ||
if protectionObj:isProtected() | if protectionObj:isProtected() then | ||
ret[#ret + 1] = tostring( | ret[#ret + 1] = tostring( | ||
( | (yesno(args.small) and Padlock or Banner) | ||
:new(protectionObj, blurbObj, cfg) | :new(protectionObj, blurbObj, cfg) | ||
) | ) | ||
Zeile 824: | Zeile 822: | ||
-- Render the categories | -- Render the categories | ||
if | if yesno(args.category) ~= false then | ||
ret[#ret + 1] = protectionObj:makeCategoryLinks() | ret[#ret + 1] = protectionObj:makeCategoryLinks() | ||
end | end |