Module:UserLinks: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
m
caps fix
(add capability to link to a single link, use a custom error function, and generate html errors for invalid link types)
m (caps fix)
Line 179:
local linktype = args[1]
if not linktype then
return err('Nono link type specified', 'UserLinks transclusions with invalid link types')
end
return getLink(linktype)
Line 228:
-- If the username is absent or blank, return an error and a tracking category.
if args.user == '' or (not args.user and (not args.User or args.User == '')) then
return err('Nono username detected', 'UserLinks transclusions without usernames')
end
-- Generate the user data strings.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu