Module:Protection banner: Difference between revisions

m
1 revision imported
(don't add protection categories or show padlock icons for user js/css pages; based on code contributed by User:ProcrastinatingReader)
m (1 revision imported)
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(8 intermediate revisions by 7 users not shown)
Line 3:
 
-- Initialise necessary modules.
require('Module:No globalsstrict')
local makeFileLink = require('Module:File link')._main
local effectiveProtectionLevel = require('Module:Effective protection level')._main
Line 652:
 
function Blurb:_makeVandalTemplateParameter()
return mw.getCurrentFrame():expandTemplate{
return require('Module:Vandal-m')._main{
title="vandal-m",
args={self._args.user or self._protectionObj.title.baseText}
}
end
Line 842 ⟶ 843:
-- protection from some other action, then don't bother displaying anything
-- for the other action (except categories).
if not yesno(args.catonly) and (protectionObj.action == 'edit' or
args.demolevel or
not getReachableNodes(
cfg.hierarchy,
protectionObj.level
)[effectiveProtectionLevel('edit', protectionObj.title)])
then
-- Initialise the blurb object