Module:Userlinks: Difference between revisions
From Test Wiki
m 1 revision imported |
mNo edit summary |
||
Line 82: | Line 82: | ||
function linkFunctions.c64(snippets) | function linkFunctions.c64(snippets) | ||
-- Contributions | -- Contributions | ||
return makeWikilink( | local first64 = snippets.username:match('^%x+:%x+:%x+:%x+:') | ||
or snippets.username:match('^%x+:%x+:%x+:') | |||
or snippets.username:match('^%x+:%x+:') | |||
or snippets.username:match('^%x+:') | |||
return first64 and makeWikilink( | |||
snippets.interwiki, | snippets.interwiki, | ||
-1, | -1, | ||
'Contribs/' .. | 'Contribs/' .. first64 .. ':/64', | ||
'(/64)' | '(/64)' | ||
) | ) or '' | ||
end | end | ||