Module:Global lock

require('Module:No globals')

local p = {}

function p.multi_lock(frame) local text = '' local users = {} local params = {} local wpTarget = '' for k, v in pairs(frame:getParent.args) do		if v and (v ~= '') then if 'string' == type (k) then params[k] = v			else users[k] = v			end end end for k, v in pairs(users) do wpTarget = wpTarget .. mw.uri.encode(v) .. '%0A' params[1] = v text = text .. '\n* ' .. frame:expandTemplate {title='LockHide', args=params} end text = '[ Lock all]:' .. text return text end

return p