Module:UserLinks/extra: Difference between revisions

Content deleted Content added
m Changed protection level for "Module:UserLinks/extra": Highly visible template, 20000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
add fa lr and mr
 
(6 intermediate revisions by 4 users not shown)
Line 31:
'COIBot'
)
end
 
function linkFunctions.fa(snippets)
-- Former admin label
return message('display-formeradmin')
end
 
Line 47 ⟶ 52:
function linkFunctions.http(snippets)
-- To see if an IP is serving a web page
 
local host = snippets.username
if not host:match('^%d+%.%d+%.%d+%.%d+$') then
if host:match('^[%x:]+$') then
-- It's IPv6, use RFC 3986 IP-Literal syntax
host = '[' .. host .. ']'
else
-- It's neither IPv4 nor IPv6, return nothing
return ''
end
end
 
return makeUrlLink(
{
protocol = 'http',
host = snippets.usernamehost
},
'http'
)
end
 
function linkFunctions.lr(snippets)
-- Local rights
return makeFullUrlLink(
snippets.interwiki,
-1,
'Log',
{page = 'User:' .. snippets.username},
message('display-localrights')
)
end
function linkFunctions.mr(snippets)
-- Meta user rights
return makeFullUrlLink(
'meta',
-1,
'Log',
{page = 'User:' .. snippets.username .. '@enwiki'},
message('display-metarights')
)
end
Line 76 ⟶ 115:
protocol = 'https',
host = 'www.robtex.com',
path = '/rblsip-lookup/' .. snippets.username .. '.html#dnsbl',
},
'RBLs'
Line 86 ⟶ 125:
return makeUrlLink(
{
protocol = 'httphttps',
host = 'www.dnswatch.info',
path = '/dns/dnslookup',
Line 113 ⟶ 152:
return makeUrlLink(
{
protocol = 'httphttps',
host = 'www.stopforumspam.com',
path = '/search/' .. snippets.username,
Line 151 ⟶ 190:
{
protocol = 'https',
host = 'wwwtools.robtexwmflabs.comorg',
path = '/ipwhois/' gateway.. snippets.username .. '.htmlpy',
fragmentquery = 'whois'{
lookup = 'true',
ip = snippets.username,
},
},
'WHOIS'