Module:UserLinks/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 53:
-- User page
return makeWikilink(
snippets.interwiki,
2,
snippets.username,
snippets.username
)
end
function linkFunctions.np(snippets)
-- User page (no ping)
return makeFullUrllink(
snippets.interwiki,
2,
Line 698 ⟶ 708:
local options = {}
options.isDemo = yesno(args.demo) or false
options.noPing = yesno(args.noPing) or false
options.toolbarStyle = yesno(args.small) and 'font-size: 90%;' or nil
options.sup = yesno(args.sup, true)
Line 723 ⟶ 734:
function p.export(codes, links, options)
-- Make the user link.
local userLink = options.noPing and links.np or links.u
 
-- If we weren't passed any link codes, just return the user link.