Module:Sanctions: Difference between revisions

Content deleted Content added
m Changed protection level for "Module:Sanctions": Highly visible template - upping to TE since it's actively in use and the editor working on it now has TE perms ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
further info update, editnotice update
Line 142:
enforcementProcedures
:tag('li')
:wikitext("Violations of any restrictions (excluding 1RR violations) and other conduct issues should be reported to the [[Wikipedia:Administrators' noticeboard/Incidents|administrators' incidents noticeboard]]. Violations of the 1RR restriction should be reported to the [[WP:ANEW|administrators' edit warring noticeboard]].")
:done()
:tag('li')
:wikitext("Editors who violate any listed restrictions may be blocked by any uninvolved administrator, even on a first offense.")
:done()
else
enforcementProcedures
:tag('li')
:wikitext("Problems should be reported to the [[Wikipedia:Administrators' noticeboard/Incidents|administrators' incidents noticeboard]].")
:done()
end
Line 151 ⟶ 156:
enforcementProcedures
:tag('li')
:wikitext((hasRevertRestrictions and "Other conduct issues" or "Conduct issues") .. " should be reported to the [[Wikipedia:Administrators' noticeboard/Incidents|administrators' incidents noticeboard]]. An editor must be [[Wikipedia:Arbitration_Committee/Discretionary_sanctions#Awareness|aware]] before they can be sanctioned.")
:allDone()
furtherInfo:node(enforcementProcedures)
Line 226 ⟶ 231:
 
-- Builds an edit notice
local function buildEditNotice(frame, topicData, args)
local restrictions = topicData.restrictions
local enHeader = mw.html.create('')
local nRestriction = restrictions['1rr'] and 1 or 0
enHeader
local cRestrictions = {}
:wikitext("Editors to this page:")
 
local ri = 1
if restrictions['500/30'] then
while true do
enHeader:newline()
if args['restriction'..ri] then
:wikitext("* must be signed into an account and have at least 500 edits and 30 days' tenure")
table.insert(cRestrictions, args['restriction'..ri])
ri = ri + 1
nRestriction = nRestriction + 1
else
break
end
end
 
if restrictions['1rr']nRestriction == 0 then
return frame:preprocess(syntaxHelp())
enHeader:newline()
elseif nRestriction == 1 then
:wikitext("* are restricted to making no more than one [[Help:Reverting|revert]] per twenty-four (24) hours (subject to exceptions below)")
enHeader
:wikitext("Editors to this page ")
 
if restrictions['500/301rr'] then
enHeader
:wikitext("are restricted to making no more than one [[Help:Reverting|revert]] per twenty-four (24) hours (subject to exceptions below)")
else
enHeader
:wikitext(args['restriction1'])
end
else
enHeader
:wikitext("Editors to this page:")
if restrictions['1rr'] then
enHeader
enHeader :newline()
:wikitext("* are restricted to making no more than one [[Help:Reverting|revert]] per twenty-four (24) hours (subject to exceptions below)")
end
 
for _,v in ipairs(cRestrictions) do
enHeader
enHeader :newline()
:wikitext("* " .. v)
end
end
 
Line 334 ⟶ 370:
end
 
return buildEditNotice(frame, topic, args)
end