Modulo:Controllo Titleblacklist

Modulo che implementa il template {{Controllo Titleblacklist}}.


local p = {}

function p.main()
	local matched = mw.ext.TitleBlacklist.test(
		'create',
		mw.title.getCurrentTitle().fullText
	)

	if not matched then return end

	local warning = mw.html.create('div')
		:addClass('usermessage')
		:css('font-weight', 'bold')
		:wikitext('Attenzione: questa pagina è bloccata e sono necessari [[Speciale:ElencoPermessiGruppi|specifici permessi]] per crearla.')

	return tostring(warning)
end

return p