Content deleted Content added
Restore |
Jackmcbarn (talk | contribs) sync |
||
Line 15:
local mTableTools -- [[Module:TableTools]]
local interwikiTable -- [[Module:InterwikiTable]], loaded with mw.loadData
-- Load shared helper functions
Line 26 ⟶ 25:
local makeFullUrlLink = mShared.makeFullUrlLink
local message = mShared.message
end▼
local p = {}
Line 85 ⟶ 78:
message('display-contributions')
)
▲ end
-- Contributions
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,
'Contribs/' .. first64 .. ':/64',
'(/64)'
) or ''
end
Line 137 ⟶ 144:
end
▲ 4,
function linkFunctions.bl(snippets)
-- Block log
Line 228 ⟶ 227:
'Log/delete/' .. snippets.username,
message('display-deletions')
▲ function linkFunctions.lta(snippets)
)
end
Line 320 ⟶ 311:
message('display-rfa')
)
return ssp▼
end
Line 418 ⟶ 363:
end
end
local function getExtraLinkFunctions()
-- Loads the table of extra link functions from the /extra module.
Line 444 ⟶ 390:
local function memoizeExtraLink(code, func)
local success, link = pcall(func, snippets)
if
links[code] = link
end
return
end
Line 466 ⟶ 409:
local linkFunction = linkFunctions[code]
local link
if linkFunction then
link = linkFunction(snippets)
links[code] = link
else
extraLinkFunctions = getExtraLinkFunctions()
Line 476 ⟶ 417:
local extraLinkFunction = extraLinkFunctions[code]
if type(extraLinkFunction) == 'function' then
end
end
end
if
return link
else
Line 510 ⟶ 451:
return links
end
--------------------------------------------------------------------------------
-- User data snippets
Line 897 ⟶ 839:
return table.concat(ret, '\n')
end
return p
|