Module:User contrib/sandbox: Difference between revisions

Content deleted Content added
added url parameter
Partially undid revision 963861666 by WT79 The Engineer (talk) – seems to be glitching
Line 105:
local user_args = {}
local userlanguage = 'user'
if not args['url'] then
local if args['lang'] then language = 'the '.. args['lang'] ..' ' end
if local project = args['langproject'] thenor 'Wikipedia'
language local project_site = 'the '.. args['langprojsite'] or 'en.wikipedia.' org'
local user = 'user'
end
local projectusername = args['project'2] or 'Wikipedia'mw.title.getCurrentTitle().baseText
if not args['url'] then
local project_site = args['projsite'] or 'en.wikipedia.org'
local user = 'user'
local username = args[2] or mw.title.getCurrentTitle().baseText
local url = 'https://xtools.wmflabs.org/ec/'.. project_site .. '?username=' ..urlencode(username)
else
local url = args['url']
else
local url = 'https://xtools.wmflabs.org/ec/'.. project_site .. '?username=' ..urlencode(username)
end