Jump to content

Module:Title blacklist: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
No edit summary
No edit summary
Line 13: Line 13:
return "[[WP:TE|template editors]], [[WP:SYSOP|administrators]], and [[WP:PAGEMOVER|page movers]]"
return "[[WP:TE|template editors]], [[WP:SYSOP|administrators]], and [[WP:PAGEMOVER|page movers]]"
end
end
end
else return '' end
end
end



Revision as of 15:26, 9 November 2023

--helper module for title blacklist

local p = {}
p.main = function(frame)
	local args = frame.args
	local action = args['action']
	local pagename = args['pagename']
	local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename)
	if blacklistentry then
		if blacklistentry.params.autoconfirmed then
			return "[[WP:AUTOCONFIRMED|autoconfirmed users]]"
		else
			return "[[WP:TE|template editors]], [[WP:SYSOP|administrators]], and [[WP:PAGEMOVER|page movers]]"
		end
	else return '' end
end

return p