Jump to content

Module:Title blacklist: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Created page with '--helper module for title blacklist local p = {} p.main = function(frame) local args = require('Module:Arguments').getArgs(frame) 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 users" else return "template editors, [[WP:SYSOP|administrators...'
(No difference)

Revision as of 14:58, 9 November 2023

--helper module for title blacklist

local p = {}
p.main = function(frame)
	local args = require('Module:Arguments').getArgs(frame)
	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
	end
end

return p