模組:Langname
此模塊的文檔可以在模塊: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