|
|
Line 133: |
Line 133: |
|
create = 'Padlock-skyblue.svg' |
|
create = 'Padlock-skyblue.svg' |
|
} |
|
} |
|
|
|
⚫ |
function banner: renderImage() |
|
⚫ |
|
|
⚫ |
if self.reason == 'office' or self.reason == 'reset' then |
|
⚫ |
image = cfg.images.office |
|
⚫ |
elseif self.title.namespace == 10 or self.title.namespace == 828 then |
|
⚫ |
-- We are in the template or module namespaces. |
|
⚫ |
if self.protectionLevel == 'templateeditor' then |
|
⚫ |
image = cfg.images.template |
|
⚫ |
elseif self.protectionLevel == 'sysop' then |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
elseif self.action == 'create' then |
|
⚫ |
image = cfg.images.create |
|
⚫ |
elseif self.action == 'move' |
|
⚫ |
|
|
⚫ |
self.protectionLevel == 'templateeditor' |
|
⚫ |
or self.protectionLevel == 'sysop' |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
elseif self.action == 'edit' then |
|
⚫ |
if self.protectionLevel == 'sysop' then |
|
⚫ |
|
|
⚫ |
elseif self.protectionLevel == 'autoconfirmed' then |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
elseif self.action == 'autoreview' then |
|
⚫ |
if self.protectionLevel == 'autoconfirmed' then |
|
⚫ |
|
|
⚫ |
elseif self.protectionLevel == 'reviewer' then |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
image = 'Transparent.gif' |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
|
|
|
|
|
cfg.categories = { |
|
cfg.categories = { |
Line 327: |
Line 289: |
|
|
|
|
|
return obj |
|
return obj |
|
⚫ |
|
|
|
|
|
⚫ |
function banner: fetchImageName() |
|
⚫ |
|
|
⚫ |
if self.reason == 'office' or self.reason == 'reset' then |
|
⚫ |
image = cfg.images.office |
|
⚫ |
elseif self.title.namespace == 10 or self.title.namespace == 828 then |
|
⚫ |
-- We are in the template or module namespaces. |
|
⚫ |
if self.protectionLevel == 'templateeditor' then |
|
⚫ |
image = cfg.images.template |
|
⚫ |
elseif self.protectionLevel == 'sysop' then |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
elseif self.action == 'create' then |
|
⚫ |
image = cfg.images.create |
|
⚫ |
elseif self.action == 'move' |
|
⚫ |
|
|
⚫ |
self.protectionLevel == 'templateeditor' |
|
⚫ |
or self.protectionLevel == 'sysop' |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
elseif self.action == 'edit' then |
|
⚫ |
if self.protectionLevel == 'sysop' then |
|
⚫ |
|
|
⚫ |
elseif self.protectionLevel == 'autoconfirmed' then |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
elseif self.action == 'autoreview' then |
|
⚫ |
if self.protectionLevel == 'autoconfirmed' then |
|
⚫ |
|
|
⚫ |
elseif self.protectionLevel == 'reviewer' then |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
image = 'Transparent.gif' |
|
⚫ |
|
|
⚫ |
|
|
end |
|
end |
|
|
|
|