Module:Protection banner: Difference between revisions

allow category suppression with category=no
Enwikipedia>Jackmcbarn
(check against edit/move, rather than for create, and simplify logic)
Enwikipedia>Mr. Stradivarius
(allow category suppression with category=no)
Line 1,041:
-- Render the categories
if yesno(args.category) ~= false then
do
local objects = {
ProtectionCategory:new(configObj, protectionObj, titleObj),