View source for Module:Ping
From Test Wiki
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
local function makeError(msg)
msg ='Error in [[Template:Ping]]: ' .. msg
return mw.text.tag('strong', {['class']='error'}, msg)
end
function p.ping(frame)
local origArgs = frame:getParent().args
local args = {}
local maxArg = 1
local usernames = 0
for k, v in pairs(origArgs) do
if type(k) == 'number' then
if mw.ustring.match(v,'%S') then
if k > maxArg then maxArg = k end
usernames = usernames + 1
local title = mw.title.new(v)
if not title then return makeError('Input contains forbidden characters.') end
args[k] = title.rootText
end
elseif v == '' and k:sub(0,5) == 'label' then
000
1:0
Template used on this page:
Return to Module:Ping.