Module:UserLinks/extra and Module:UserLinks/extra/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
imported>Ahecht
add fa lr and mr
 
imported>DannyS712
move
 
Line 31: Line 31:
'COIBot'
'COIBot'
)
)
end
function linkFunctions.fa(snippets)
-- Former admin label
return message('display-formeradmin')
end
end


Line 70: Line 65:
},
},
'http'
'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
end
Line 98: Line 71:
-- New message on user talk page
-- New message on user talk page
return makeFullUrlLink(
return makeFullUrlLink(
snippets.interwiki,
snippets.interwiki .. 'Special:NewSection/',
3,
3,
snippets.username,
snippets.username,
{
{},
action = 'edit',
section = 'new',
},
'message'
'message'
)
)
Line 115: Line 85:
protocol = 'https',
protocol = 'https',
host = 'www.robtex.com',
host = 'www.robtex.com',
path = '/ip-lookup/' .. snippets.username .. '#dnsbl',
path = '/rbls/' .. snippets.username .. '.html',
},
},
'RBLs'
'RBLs'
Line 125: Line 95:
return makeUrlLink(
return makeUrlLink(
{
{
protocol = 'https',
protocol = 'http',
host = 'www.dnswatch.info',
host = 'www.dnswatch.info',
path = '/dns/dnslookup',
path = '/dns/dnslookup',
Line 152: Line 122:
return makeUrlLink(
return makeUrlLink(
{
{
protocol = 'https',
protocol = 'http',
host = 'www.stopforumspam.com',
host = 'www.stopforumspam.com',
path = '/search/' .. snippets.username,
path = '/search/' .. snippets.username,