打开/关闭菜单
切换首选项菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模块:PlayStatus:修订间差异

来自此界与彼端
无编辑摘要
无编辑摘要
 
(未显示同一用户的17个中间版本)
第1行: 第1行:
local getArgs = require('Module:Arguments').getArgs
local p = {}
local p = {}


function p.getPlayStatus(type)
function p.getPlayStatus(frame)
mw.logObject(type)
local args = getArgs(frame)
if (type == 'DEEP') then  
local statusType = args[1]
if (statusType == 'DEEP') then  
return '深度'
return '深度'
else if (type == 'FINISH') then
elseif (statusType == 'FINISH') then
return '通关'
return '通关'
else if (type == 'ABANDON') then
elseif (statusType == 'ABANDON') then
return '弃坑'
return '弃坑'
else
else
return '未定义'..type
return '[[分类:脚本错误的页面]]'
end
end
end
end
end
end
function p.getPlayStatusTip(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
return p

2025年3月13日 (四) 12:24的最新版本

此模块的文档可以在模块: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

function p.getPlayStatusTip(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