跳转到内容
主菜单
主菜单
移至侧栏
隐藏
首页|Wiki首页
Wymbot新手引导|新手入门
WymboTrip|旅行模块
指令一览|指令目录
旅行地点|旅行地点
物品来源速查|物品资料
Wums|wum图鉴
合成配方|合成配方
科研|科研
共创指南|参与编写
https://wum.hetonger.cn/|共创站首页
https://wum.hetonger.cn/game/|网页端
https://wum.hetonger.cn/command/|指令检索
搜索
搜索
外观
创建账号
登录
个人工具
创建账号
登录
查看“︁模块:地点介绍”︁的源代码
模块
讨论
English
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
页面信息
外观
移至侧栏
隐藏
←
模块:地点介绍
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
local C = require('模块:物品通用') local P = require('模块:地点通用') local D = require('模块:地点数据') local p = {} function p.main(frame) local c = P.context(frame) if not c.enabled then return '' end local intro = c.text('介绍', C.literal(c.name) .. '是wymboTrip的一个地点。') local result = D.get(c.name) local body if result.status == 'error' then body = C.diagnostic(result) elseif result.status == 'known' then local r = result.record local parts = { '在这里的每次旅行需要消耗' .. C.literal(r.cost) .. '啥币' } if type(r.hours) == 'number' then parts[#parts + 1] = '保底时长为' .. C.literal(r.hours) .. '小时' end if type(r.distance) == 'number' then parts[#parts + 1] = '发言基数为' .. C.literal(r.distance) end if type(r.experience) == 'number' then parts[#parts + 1] = '经验基数为' .. C.literal(r.experience) end body = table.concat(parts, ',') .. '。' else body = '他妈,这什么申必地方' end return P.finish(c, 'intro', intro .. '\n\n' .. body) end function p.overview(frame) local c = P.context(frame) if not c.enabled then return '' end local body = c.text('地点类型') if not body then return '' end return P.finish(c, 'overview', P.heading(c, '这啥地方?') .. body) end local function defaultRoute(result) local unlock = result.unlock or { status = 'none', text = '无需解锁' } if unlock.status == 'none' then return '无需解锁。' end return '解锁条件:' .. unlock.text .. '。' end function p.route(frame) local c = P.context(frame) if not c.enabled then return '' end local custom = c.text('怎么去', c.text('解锁方法')) local result if not custom then result = D.get(c.name) end local body = custom if not body and result.status == 'error' then body = C.diagnostic(result) elseif not body then body = defaultRoute(result) end return P.finish(c, 'route', P.heading(c, '怎么去?') .. body) end function p.drops(frame) local c = P.context(frame) if not c.enabled then return '' end local body = frame:expandTemplate({ title = '物品产出', args = { ['物品名'] = c.name .. '旅行', ['分类'] = '否', ['显示标题'] = '否' } }) if C.trim(body) == '' then return '' end return P.finish(c, 'drops', P.heading(c, '这里有啥?') .. body) end return p
此页面嵌入的页面:
模块:地点介绍/doc
(
查看源代码
)
返回
模块:地点介绍
。
搜索
搜索
查看“︁模块:地点介绍”︁的源代码
添加话题