Module:Protection banner: Difference between revisions
Jump to navigation
Jump to search
use Protection:isProtected instead of checking using getLevel
>Mr. Stradivarius (add an image link parameter, and get the link data from the banner config) |
>Mr. Stradivarius (use Protection:isProtected instead of checking using getLevel) |
||
Line 1,019: | Line 1,019: | ||
-- Render the banner | -- Render the banner | ||
if protectionObj: | if protectionObj:isProtected() then | ||
-- Get the banner object | -- Get the banner object | ||
local isPadlock = yesno(args.small) | local isPadlock = yesno(args.small) |