Jump to content

Module:Title blacklist

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Awesome Aasim (talk | contribs) at 14:58, 9 November 2023 (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...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

--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