Module:Checkuser Explained

local p =

local getArgs = function(fr) return require('Module:Arguments').getArgs(fr,)endlocal noping = function(name) return require('Module:No ping')._mainend

local middot = ' · 'local spi = 'Wikipedia:Sockpuppet investigations'local extlink = function(url, text) return '[' .. tostring(url) .. (text and ' ' .. text or '') .. ']'endlocal link = function(page, param, text) return extlink(mw.uri.fullUrl(page, param), text)end

function p.user(frame) local args = getArgs(frame) return p._user(args['User'] or args[1], args['master name'], args['master'])end

function p._user(sock, mastername, master) if not sock then return ('No username provided.' .. '' ) end local span = mw.html.create('span'):attr('class', 'plainlinks cuEntry') local curtitle = mw.title.getCurrentTitle local links = span = span:wikitext(table.concat(' ')) return tostring(span) .. '__NOINDEX__'end

function p.ip(frame) local args = getArgs(frame) return p._ip(args['User'] or args[1], args['master name'])end

function p._ip(ip, mastername) if not ip then return ('No username provided.' .. '' ) end local span = mw.html.create('span'):attr('class', 'plainlinks neverexpand cuEntry') local curtitle = mw.title.getCurrentTitle local links = span = span:wikitext(table.concat(' ')) return tostring(span)end

return p