Module:UserLinks/sandbox: Difference between revisions

Content deleted Content added
use mw.language:getCode instead of making users specify the language code in a message
Jackmcbarn (talk | contribs)
sync
Line 78:
snippets.interwiki,
-1,
'ContributionsContribs/' .. snippets.username,
message('display-contributions')
)
Line 572:
-- The language code for use with toolserver or labs tools. It is always
-- present, even if the "lang" argument is absent. The default value is
-- the "snippet-lang-default" message.
-- the current wiki's language code.
return getSnippet('lang') or mw.language.getContentLanguage():getCodemessage('snippet-lang-default')
end