Jump to content

Module:Title blacklist: Difference between revisions

From Wikipedia, the free encyclopedia
No edit summary
m Protected "Module:Title blacklist": High-risk template or module ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))
 
(No difference)

Latest revision as of 22:18, 15 January 2024

--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 args['autoconfirmed'] or "autoconfirmed"
		else
			return args['templateeditor'] or "templateeditor"
		end
	else return '' end
end

return p