Module:Checkuser and Module:Checkuser/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
update whois url |
m off-by-one |
||
Line 145: | Line 145: | ||
) |
) |
||
end |
end |
||
local actualip |
|||
local slash = string.find(ip, '/') |
|||
if not slash then |
|||
actualip = ip |
|||
else |
|||
actualip = string.sub(ip, 1, slash-1) |
|||
end |
|||
local span = mw.html.create('span'):attr('class', 'plainlinks neverexpand cuEntry') |
local span = mw.html.create('span'):attr('class', 'plainlinks neverexpand cuEntry') |
||
local curtitle = mw.title.getCurrentTitle() |
local curtitle = mw.title.getCurrentTitle() |
||
local links = { |
local links = { |
||
'[[User talk:' .. |
'[[User talk:' .. actualip .. '|talk]]' .. |
||
'<sup><span style="font-size: 120%;">' .. |
'<sup><span style="font-size: 120%;">' .. |
||
link('User talk:' .. |
link('User talk:' .. actualip, { |
||
action = 'edit', |
action = 'edit', |
||
section = 'new' |
section = 'new' |
||
}, '<span style="color: grey">+</span>') .. |
}, '<span style="color: grey">+</span>') .. |
||
'</span></sup>', |
'</span></sup>', |
||
link('User:' .. ip, { |
|||
action = 'edit', |
|||
preload = 'Template:Checkip/Preload', |
|||
['preloadparams[]'] = ( |
|||
mastername and |
|||
mastername or |
|||
'<!-- Insert sock master name here -->' |
|||
) |
|||
}, 'tag'), |
|||
'[[Special:Contributions/' .. ip .. '|contribs]]', |
'[[Special:Contributions/' .. ip .. '|contribs]]', |
||
link('Special:AbuseLog', { |
link('Special:AbuseLog', { |
||
wpSearchUser = ip |
wpSearchUser = actualip -- no support for searching ip range in abuse log yet |
||
}, 'filter log'), |
}, 'filter log'), |
||
extlink( |
extlink( |
||
tostring(mw.uri.new('https://whois-referral.toolforge.org/gateway.py'):extend({ |
tostring(mw.uri.new('https://whois-referral.toolforge.org/gateway.py'):extend({ |
||
lookup = 'true', |
lookup = 'true', |
||
ip = |
ip = actualip |
||
})), |
})), |
||
'WHOIS' |
'WHOIS' |
||
), |
), |
||
extlink( |
extlink( |
||
tostring(mw.uri.new('https://www.robtex.com/rbls/' .. |
tostring(mw.uri.new('https://www.robtex.com/rbls/' .. actualip .. '.html')), |
||
'RBLs' |
'RBLs' |
||
), |
), |
||
extlink( |
extlink( |
||
tostring(mw.uri.new('https://ipcheck.toolforge.org/index.php'):extend({ |
tostring(mw.uri.new('https://ipcheck.toolforge.org/index.php'):extend({ |
||
ip = |
ip = actualip |
||
})), |
})), |
||
'proxy check' |
'proxy check' |
||
Line 203: | Line 203: | ||
'</span>', |
'</span>', |
||
link('Special:Log/block', { |
link('Special:Log/block', { |
||
page = 'User:' .. ip |
page = 'User:' .. actualip -- no support for ip range in block log yet |
||
}, 'block log'), |
}, 'block log'), |
||
extlink( |
extlink( |