模块:换行处理:修订间差异
来自Gal中文百科
更多操作
创建页面,内容为“local p = {} function p.hello( frame ) return "Hello, world!" end return p” |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
local p = {} | local p = {} | ||
function p. | function p.text( frame ) | ||
return "Hello, world!" | local args = frame.args | ||
return "Hello, world!"..args[1] | |||
end | end | ||
return p | return p | ||
2024年4月3日 (三) 09:23的版本
第5行Lua错误:attempt to concatenate field '?' (a nil value) 脚本错误:函数“img”不存在。
local p = {}
function p.text( frame )
local args = frame.args
return "Hello, world!"..args[1]
end
return p