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 9: Line 9:
if blacklistentry then
if blacklistentry then
if blacklistentry.params.autoconfirmed then
if blacklistentry.params.autoconfirmed then
return "[[WP:AUTOCONFIRMED|autoconfirmed users]]"
return "autoconfirmed"
else
else
return "templateeditor"
return "[[WP:TE|template editors]], [[WP:SYSOP|administrators]], and [[WP:PAGEMOVER|page movers]]"
end
end
else return '' end
else return '' end

Revision as of 15:31, 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 "autoconfirmed"
		else
			return "templateeditor"
		end
	else return '' end
end

return p