Module:Lua banner: Difference between revisions
Abhishek.it (talk | contribs) m 1 revision imported |
Abhishek.it (talk | contribs) No edit summary Tag: Reverted |
||
| 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 [[ | 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 ~= " | 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] | ||