模块:Translate:修订间差异
来自Limbo Wiki
小无编辑摘要 |
小无编辑摘要 |
||
第6行: | 第6行: | ||
end | end | ||
function p. | function p.split(frame) | ||
a = mw.text.split(frame.args[1],"\n",true); | a = mw.text.split(frame.args[1],"\n",true); | ||
b = tonumber(frame.args[2]); | b = tonumber(frame.args[2]); |
2022年3月26日 (六) 03:07的版本
此模块的文档可以在模块:Translate/doc创建
local p = {}; function p.get(frame) a = frame:expandTemplate{title = ":Config:Translate/" .. frame.args[1]}; return a; end function p.split(frame) a = mw.text.split(frame.args[1],"\n",true); b = tonumber(frame.args[2]); return a[b]; end return p;