Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Used in system

From Neodyland Wiki
Revision as of 09:52, 30 July 2026 by commons>Addonian1123 (Created page with 'function p.num(frame, count) end function p.image(frame) if frame.args['system'] and frame.args['system'] ~= '' then return "40px|alt=Warning|link=" elseif (frame.args[1] == "risk" or (_fetch(frame) and _fetch(frame) >= 100000)) then return "40px|alt=Warning|link=" end return "[[File:OOjs UI icon alert-yellow.svg|40px|alt=War...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Module documentation[ create · purge ]
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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.