Anonymous user
Module:Protection banner: Difference between revisions
rm some locals that only get used once
Enwikipedia>Jackmcbarn (make the Protection class be in charge of the title, and some other tweaks) |
Enwikipedia>Jackmcbarn (rm some locals that only get used once) |
||
Line 278:
--]]
local cats = cfg.protectionCategories
for i = 1, 2^noActive do
local key = {}
Line 297 ⟶ 296:
local attempt = cats[key]
if attempt then
end
end
end
function Protection:makeExpiryCategory()
local
if not self.expiry
and cfg.expiryCheckActions[self.action]
and self.reason -- the old {{pp-protected}} didn't check for expiry
and not cfg.reasonsWithoutExpiryCheck[self.reason]
then
end
end
function Protection:makeErrorCategory()
local
if not self:isProtected()
or type(
then
end
end
function Protection:makeTemplateCategory()
local
if self.level == 'templateeditor'
and (
(
or (
)
then
end
end
Line 363 ⟶ 349:
function Blurb.makeFullUrl(page, query, display)
local url = mw.uri.fullUrl(page, query)▼
'[%s %s]',
▲ return string.format('[%s %s]', url, display)
display
▲ )
end
Line 384 ⟶ 372:
-- Private methods --
function Blurb:_getExpandedMessage(
end
|