Module:Protection banner: Difference between revisions

Content added Content deleted
Enwikipedia>Mr. Stradivarius
(add an image link parameter, and get the link data from the banner config)
Enwikipedia>Mr. Stradivarius
(use Protection:isProtected instead of checking using getLevel)
Line 1,019: Line 1,019:


-- Render the banner
-- Render the banner
if protectionObj:getLevel() ~= '*' then
if protectionObj:isProtected() then
-- Get the banner object
-- Get the banner object
local isPadlock = yesno(args.small)
local isPadlock = yesno(args.small)