此模块的文档可以在模块:Langname/doc创建
local p= {} function p.parse (frame) P1 = frame.args.P1 or "" local lang = mw.language.fetchLanguageName( P1, mw.getContentLanguage():getCode() ) if ( lang == "" ) then return P1 else return lang end end return p