Module:Title blacklist: Difference between revisions

From Nova Online Wiki
Jump to navigationJump to search
(Created page with "--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")
 
m (Protected "Module:Title blacklist" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(No difference)

Latest revision as of 11:03, 26 September 2024

Documentation for this module may be created at Module:Title blacklist/doc

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