Module:LangToWiki

From Wikimedia Foundation Governance Wiki
Revision as of 20:00, 16 October 2022 by Pols12 (talk | contribs) (Created page with "local p = {} local Title = require('Module:Titlelib') --[[ Returns the interwiki prefix matching with the requested language code as first argument, or false if no interwiki match with that language. Args: 1: language code ]] function p.main(frame) return Title.langToWiki(frame.args[1]) end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:LangToWiki/doc

local p = {}

local Title = require('Module:Titlelib')

--[[ Returns the interwiki prefix matching with the requested language code as
first argument, or false if no interwiki match with that language.

Args:
	1: language code
]]
function p.main(frame)
	return Title.langToWiki(frame.args[1])
end

return p