local p={} function p.getlang(frame) local name=frame.args[1] local namelang=frame.args[2] local this_wiki = mw.getContentLanguage() -- get a language object for this wiki local this_wiki_code = this_wiki:getCode() -- get this wiki's language code local this_wiki_name = mw.language.fetchLanguageName(this_wiki_code, this_wiki_code) local input_lang = mw.language.fetchLanguageName(name, this_wiki_code) local result="这个维基的语言为:"..this_wiki_name..",代码:"..this_wiki_code..",输入的语言为:"..input_lang..",代码:"..name return result end return p