Module:Protection banner: Difference between revisions
allow category suppression with category=no
(check against edit/move, rather than for create, and simplify logic) |
(allow category suppression with category=no) |
||
Line 1,041: | Line 1,041: | ||
-- Render the categories | -- Render the categories | ||
if yesno(args.category) ~= false then | |||
local objects = { | local objects = { | ||
ProtectionCategory:new(configObj, protectionObj, titleObj), | ProtectionCategory:new(configObj, protectionObj, titleObj), |