Module:Lua banner/sandbox: Difference between revisions

m
→‎top: clean up, replaced: WP: → BP:
m (→‎top: clean up, replaced: Wikipedia: → Bharatpedia:)
m (→‎top: clean up, replaced: WP: → BP:)
 
Line 110: Line 110:
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 ~= "BP:libraryUtil" then
local moduleProt = mw.title.new(module).protectionLevels["edit"][1]
local moduleProt = mw.title.new(module).protectionLevels["edit"][1]
if moduleProt == nil then moduleProt = 0 else moduleProt = protLevels[moduleProt] end
if moduleProt == nil then moduleProt = 0 else moduleProt = protLevels[moduleProt] end
Bots, trusted
7,437

edits