跳转到内容
主菜单
主菜单
移至侧栏
隐藏
首页|Wiki首页
Wymbot新手引导|新手入门
WymboTrip|旅行模块
指令一览|指令目录
旅行地点|旅行地点
物品来源速查|物品资料
Wums|wum图鉴
合成配方|合成配方
科研|科研
共创指南|参与编写
https://wum.hetonger.cn/|共创站首页
https://wum.hetonger.cn/game/|网页端
https://wum.hetonger.cn/command/|指令检索
搜索
搜索
外观
创建账号
登录
个人工具
创建账号
登录
查看“︁模块:物品产出”︁的源代码
模块
讨论
English
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
页面信息
外观
移至侧栏
隐藏
←
模块:物品产出
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
local C = require('模块:物品通用') local D = require('模块:物品数据') local p = {} local function numberCell(value, display) -- Missing values stay blank; an unknown probability is never sorted as zero. local key = type(value) == 'number' and tostring(value) or '' return 'data-sort-value="' .. key .. '" | ' .. (display or key) end function p.main(frame) local c = C.context(frame) if not c.enabled then return '' end local result = D.getOutputs(c.name) if result.status == 'pending' or result.status == 'none' then return '' end if result.status == 'error' then return C.finish(c, 'outputs', C.heading(c, '会掉什么?') .. C.diagnostic(result), { '物品数据异常的页面' }) end local rows = {} local showDetails = result.kind == 'travel' or result.kind == 'planting' for _, entry in ipairs(result.entries) do local cells = { C.link(entry.item) } if showDetails then cells[#cells + 1] = numberCell(entry.probabilityStatus == 'known' and entry.probability or nil, C.probability(entry)) cells[#cells + 1] = numberCell(entry.minQuantity) cells[#cells + 1] = numberCell(entry.maxQuantity) cells[#cells + 1] = C.literal(entry.note or '') end rows[#rows + 1] = '|-\n| ' .. table.concat(cells, ' || ') end local headers = '! 物品' if showDetails then headers = headers .. ' !! data-sort-type="number" | 掉落概率' .. ' !! data-sort-type="number" | 最小掉落数 !! data-sort-type="number" | 最大掉落数 !! 备注' end return C.finish(c, 'outputs', C.heading(c, result.kind == 'shop' and '可购买物品' or '会掉什么?') .. '{| class="wikitable' .. (showDetails and ' sortable' or '') .. ' wum-item-table"\n' .. headers .. '\n' .. table.concat(rows, '\n') .. '\n|}') end return p
此页面嵌入的页面:
模块:物品产出/doc
(
查看源代码
)
返回
模块:物品产出
。
搜索
搜索
查看“︁模块:物品产出”︁的源代码
添加话题