Module:UserLinks: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
m
45 revisions imported from wikipedia:Module:UserLinks
(Allow linking to contribs of a /64 for IPv6 addresses)
m (45 revisions imported from wikipedia:Module:UserLinks)
 
(5 intermediate revisions by 2 users not shown)
Line 82:
function linkFunctions.c64(snippets)
-- Contributions
local first64 = snippets.username:match('^%x+:%x+:%x+:%x+:')
return makeWikilink(
or snippets.username:match('^%x+:%x+:%x+:')
or snippets.username:match('^%x+:%x+:')
or snippets.username:match('^%x+:')
return first64 and makeWikilink(
snippets.interwiki,
-1,
'Contribs/' .. snippets.usernamefirst64 .. ':/64',
'(/64)'
) or ''
end
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu