打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

舰R百科是靠无数志愿编辑者持续地建设更新完善的。编辑非常简单,无需代码知识,请勇于更新页面!
编辑入门 | 资助百科 | 留言讨论页 | 微博@舰R百科 | 百科编辑讨论Q群:366818861

模块:建造时间与特殊获得方式:修订间差异

来自舰R百科
Donnyjie留言 | 贡献
创建页面,内容为“local data = mw.loadData("模块:数据库/建造时间与特殊获得方式") local shipAccess = data.shipAccess local p = { } p['建造时间'] = function(frame) local shipIndex = frame.args[1] if shipAccess[shipIndex][time] ~= "0:00:00" then return shipAccess[shipIndex][time] else return "不可建造" end end p['解锁日期'] = function(frame) local shipIndex = frame.args[1] if shipAccess[shipIndex][unlockDate] ~= nil then return shipAccess[s…”
 
Donnyjie留言 | 贡献
已保护“模块:建造时间与特殊获得方式”([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期))
 
(未显示同一用户的3个中间版本)
第6行: 第6行:
p['建造时间'] = function(frame)
p['建造时间'] = function(frame)
local shipIndex = frame.args[1]
local shipIndex = frame.args[1]
if shipAccess[shipIndex][time] ~= "0:00:00"
if shipAccess[shipIndex]['time'] ~= "0:00:00"
then return shipAccess[shipIndex][time]
then return shipAccess[shipIndex]['time']
else return "不可建造"
else return "不可建造"
end
end
第14行: 第14行:
p['解锁日期'] = function(frame)
p['解锁日期'] = function(frame)
local shipIndex = frame.args[1]
local shipIndex = frame.args[1]
if shipAccess[shipIndex][unlockDate] ~= nil
if shipAccess[shipIndex]['unlockDate'] ~= nil
then return shipAccess[shipIndex][unlockDate]
then return ',' .. shipAccess[shipIndex]['unlockDate'] .. '解锁'
else return ''
else return ''
end
end
第22行: 第22行:
p['特殊掉落'] = function(frame)
p['特殊掉落'] = function(frame)
local shipIndex = frame.args[1]
local shipIndex = frame.args[1]
if shipAccess[shipIndex][spDrop] ~= nil
if shipAccess[shipIndex]['spDrop'] ~= nil
then return shipAccess[shipIndex][spDrop]
then return shipAccess[shipIndex]['spDrop']
else return ''
else return ''
end
end
第30行: 第30行:
p['特殊方式'] = function(frame)
p['特殊方式'] = function(frame)
local shipIndex = frame.args[1]
local shipIndex = frame.args[1]
if shipAccess[shipIndex][spMethod] ~= nil
if shipAccess[shipIndex]['spMethod'] ~= nil
then return shipAccess[shipIndex][spMethod]
then return shipAccess[shipIndex]['spMethod']
else return ''
else return ''
end
end