Module:Used in system
From Neodyland Wiki
More actions
This documentation is transcluded from Module:Used in system/doc.
function p.num(frame, count)
end
function p.image(frame)
if frame.args['system'] and frame.args['system'] ~= '' then
return "[[File:OOjs UI icon notice-warning.svg|40px|alt=Warning|link=]]"
elseif (frame.args[1] == "risk" or (_fetch(frame) and _fetch(frame) >= 100000)) then
return "[[File:OOjs UI icon alert-warning.svg|40px|alt=Warning|link=]]"
end
return "[[File:OOjs UI icon alert-yellow.svg|40px|alt=Warning|link=]]"
end
function p.epilogue(frame)
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
return 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
return ''
end