Module:Protection banner and Module:Protection banner/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
Replace Module:Vandal-m per TfD; getting this over-two-year-old merge proposal finally completed |
adjust |
||
Line 13: | Line 13: | ||
-- Set constants. |
-- Set constants. |
||
local CONFIG_MODULE = 'Module:Protection banner/config' |
local CONFIG_MODULE = 'Module:Protection banner/config/sandbox' -- SWITCH THIS BACK TO THE MAIN CONFIG PAGE BEFORE GOING LIVE! |
||
-------------------------------------------------------------------------------- |
-------------------------------------------------------------------------------- |
||
Line 652: | Line 652: | ||
function Blurb:_makeVandalTemplateParameter() |
function Blurb:_makeVandalTemplateParameter() |
||
return |
return require('Module:Vandal-m')._main{ |
||
⚫ | |||
title="vandal-m", |
|||
⚫ | |||
} |
} |
||
end |
end |
||
Line 747: | Line 746: | ||
alt = self._imageAlt, |
alt = self._imageAlt, |
||
link = self._imageLink, |
link = self._imageLink, |
||
caption = self.imageCaption |
caption = self.imageCaption, |
||
class = 'autoconfirmed-show' |
|||
} |
} |
||
end |
end |
||
Line 843: | Line 843: | ||
-- protection from some other action, then don't bother displaying anything |
-- protection from some other action, then don't bother displaying anything |
||
-- for the other action (except categories). |
-- for the other action (except categories). |
||
if protectionObj.action == 'edit' or |
if not yesno(args.catonly) and (protectionObj.action == 'edit' or |
||
args.demolevel or |
args.demolevel or |
||
not getReachableNodes( |
not getReachableNodes( |
||
cfg.hierarchy, |
cfg.hierarchy, |
||
protectionObj.level |
protectionObj.level |
||
)[effectiveProtectionLevel('edit', protectionObj.title)] |
)[effectiveProtectionLevel('edit', protectionObj.title)]) |
||
then |
then |
||
-- Initialise the blurb object |
-- Initialise the blurb object |