模块:Langname

来自中文乐谱库

此模块的文档可以在模块:Langname/doc创建

脚本错误:Lua错误:无法创建进程:proc_open(/dev/null): failed to open stream: Operation not permitted

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