Module:Wikidata Infobox/i18n

< Module:Wikidata Infobox
Revision as of 10:59, 7 September 2022 by imported>LennardHofmann (Created page with 'local p = {} --- @param msgKey "editlink-alttext"|"newitem"|"noid"|"search-depicted"|"taxon-depicted"|"search"|"noclaims" --- @param fallbacklangs string[]: list of language codes --- @return string message, string msgLang function p.i18n( msgKey, fallbacklangs ) local message = mw.getCurrentFrame():expandTemplate{ title = 'Wikidata Infobox/i18n/getMsg', args = { msgKey } } return message, "en" end return p')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Wikidata Infobox/i18n/doc

local p = {}

--- @param msgKey "editlink-alttext"|"newitem"|"noid"|"search-depicted"|"taxon-depicted"|"search"|"noclaims"
--- @param fallbacklangs string[]: list of language codes
--- @return string message, string msgLang
function p.i18n( msgKey, fallbacklangs )
	local message = mw.getCurrentFrame():expandTemplate{
		title = 'Wikidata Infobox/i18n/getMsg', args = { msgKey }
	}
	return message, "en"
end

return p