Module:Category handler: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
pt>CaiusSPQR m (Tradução) |
m (Protected "Module:Category handler": High-risk Lua module ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
||
Line 15:
-- Load required modules
local yesno = require('
-- Lazily load things we don't always need
Line 141:
return self._data.currentTitleMatchesBlacklist
else
mShared = mShared or require('
return mShared.matchesBlacklist(
self.title.prefixedText,
mw.loadData('
)
end
Line 161:
else
if not mappings then
mShared = mShared or require('
mappings = mShared.getParamMappings(true) -- gets mappings with mw.loadData
end
Line 179:
end
if not mappings then
mShared = mShared or require('
mappings = mShared.getParamMappings(true) -- gets mappings with mw.loadData
end
Line 244:
function p._main(args, data)
data = data or mw.loadData('
local handler = CategoryHandler.new(data, args)
if handler:isSuppressed() then
Line 253:
function p.main(frame, data)
data = data or mw.loadData('
local args = require('
wrappers = data.wrappers,
valueFunc = function (k, v)
|