Module:Protected edit request/active: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
search for css sandboxes with the /sandbox in the penultimate position
m Protected "Module:Protected edit request/active": High-risk template or module: 300 transclusions (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite))
 
(9 intermediate revisions by 6 users not shown)
Line 1:
require('Module:No globalsstrict')
 
local yesno, makeMessageBox -- passed in from Module:Protected edit request
Line 337:
if title.namespace == 10 or title.namespace == 828 then -- Only add the transclusion count link for templates and modules.
local tclink = mw.uri.new{
host = 'toolstemplatecount.wmflabstoolforge.org',
path = '/templatecount/index.php',
query = {
lang = 'en',
Line 446:
responseTemplate = blurb.makeTemplateLink('ESp')
elseif boxProtectionLevel == 'interfaceadmin' then
userText = '[[Wikipedia:User access levels#Interface administrators|interface-admin administrator]]'
responseTemplate = blurb.makeTemplateLink('EIp')
else
Line 574:
extendedconfirmed = 'Wikipedia extended-confirmed-protected edit requests',
templateeditor = 'Wikipedia template-protected edit requests',
sysop = 'Wikipedia fully- protected edit requests',
interfaceadmin = 'Wikipedia interface-protected edit requests'
}
Line 585:
 
function box:export()
iflocal nottitle = self.titles.currentTitle.isTalkPage and not self.demo then
if not title.isTalkPage and not self.demo and not yesno(self.args.skiptalk) then
return '<span class="error">Error: Protected edit requests can only be made on the talk page.</span>[[Category:Non-talk pages with an edit request template]]'
end