Module:UserLinks: Difference between revisions
m
1 revision imported from wikipedia:Module:UserLinks
(username removed) m (1 revision imported from loginwiki:Module:UserLinks: Updating template with latest edits from loginwiki) |
m (1 revision imported from wikipedia:Module:UserLinks) |
||
(One intermediate revision by one other user not shown) | |||
Line 58:
snippets.username
)
end▼
function linkFunctions.np(snippets)
-- User page (no ping)
return '<span class="plainlinks">' .. makeFullUrlLink(
snippets.interwiki,
2,
snippets.username,
'',
snippets.username
) .. '</span>'
end
Line 340 ⟶ 351:
end
function linkFunctions.nuke(snippets)
-- Mass delete/Special:Nuke
snippets.interwiki,
-1,
'Nuke/' .. snippets.username,
message('display-nuke')
)
end▼
function linkFunctions.gender(snippets)
-- Gender
return mw.getCurrentFrame():callParserFunction(
'GENDER',
snippets.username,
'he',
'she',
'they'
)
end▼
----------------------------------------------------------------------------
-- End of link functions
Line 698 ⟶ 730:
local options = {}
options.isDemo = yesno(args.demo) or false
options.noPing = yesno(args.noPing) or yesno(args.noping) or yesno(args.np) or false
options.toolbarStyle = yesno(args.small) and 'font-size: 90%;' or nil
options.sup = yesno(args.sup, true)
Line 723 ⟶ 756:
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.
Line 786 ⟶ 819:
return links[code]
end
▲ end
▲ end
▲ return t1[1] < t2[1]
▲ end
return p
|