Module:High-use: Difference between revisions

m
1 revision imported
m (Changed protection settings for "Module:High-use": High-risk template or module ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
m (1 revision imported)
 
(4 intermediate revisions by 3 users not shown)
Line 18:
if count == nil then
if frame.args[1] == "risk" then
return_value =return "a very large number of"
else
return_value =return "many"
end
else
Line 55:
-- Actions if there is a large (greater than or equal to 100,000) transclusion count
function p.risk(frame)
local return_value = ""
if frame.args[1] == "risk" then
return_value =return "risk"
else
local count = _fetch(frame)
if count and count >= 100000 then return_value = "risk" end
return "risk"
end
end
return return_value""
end
 
Line 147 ⟶ 148:
local nocat = frame:getParent().args['nocat'] or frame.args['nocat']
local categorise = (nocat == '' or not yesno(nocat))
if categorise and not mw.title.getCurrentTitle().isRedirect then
epilogue = frame:preprocess('{{Sandbox other||{{#switch:{{#invoke:Effective protection level|{{#switch:{{NAMESPACE}}|File=upload|#default=edit}}|{{FULLPAGENAME}}}}|sysop|templateeditor|interfaceadmin=|#default=[[Category:Pages used in system messages needing protection]]}}}}')
end
Bureaucrats, rtl-contributors, Administrators
1,619

edits