更多操作
无编辑摘要 |
无编辑摘要 |
||
第1行: | 第1行: | ||
local getArgs = require('Module:Arguments').getArgs | |||
local p = {} | local p = {} | ||
function p.getPlayStatus(frame) | function p.getPlayStatus(frame) | ||
local args = frame | local args = getArgs(frame) | ||
local statusType = args[1] | local statusType = args[1] | ||
if (statusType == 'DEEP') then | if (statusType == 'DEEP') then | ||
第11行: | 第13行: | ||
return '弃坑' | return '弃坑' | ||
else | else | ||
return '' | return '[[分类:脚本错误的页面]]' | ||
end | end | ||
end | end | ||
return p | return p |
2025年3月12日 (三) 15:28的版本
此模块的文档可以在模块:PlayStatus/doc创建
local getArgs = require('Module:Arguments').getArgs
local p = {}
function p.getPlayStatus(frame)
local args = getArgs(frame)
local statusType = args[1]
if (statusType == 'DEEP') then
return '深度'
elseif (statusType == 'FINISH') then
return '通关'
elseif (statusType == 'ABANDON') then
return '弃坑'
else
return '[[分类:脚本错误的页面]]'
end
end
return p