Module:Lua banner: Difference between revisions

m Reverted edits by Abhishek.it (talk) to last revision by Shia.k
Tag: Rollback
No edit summary
 
Line 47: Line 47:
boxArgs.text = 'This module depends on the following other modules:' .. moduleList
boxArgs.text = 'This module depends on the following other modules:' .. moduleList
else
else
boxArgs.text = 'This template  uses [[Wikipedia:Lua|Lua]]:\n' .. moduleList
boxArgs.text = 'This template  uses [[Chabadpedia:Lua|Lua]]:\n' .. moduleList
end
end
end
end
Line 109: Line 109:
if currentProt == nil then currentProt = 0 else currentProt = protLevels[currentProt] end
if currentProt == nil then currentProt = 0 else currentProt = protLevels[currentProt] end
for i, module in ipairs(modules) do
for i, module in ipairs(modules) do
if module ~= "WP:libraryUtil" then
if module ~= "CP:libraryUtil" then
local moduleTitle = mw.title.new(module)
local moduleTitle = mw.title.new(module)
local moduleProt = moduleTitle and moduleTitle.protectionLevels["edit"][1]
local moduleProt = moduleTitle and moduleTitle.protectionLevels["edit"][1]