打开/关闭搜索
搜索
打开/关闭菜单
28
6680
50
1.4万
OGAS数据中枢
导航
首页
最近更改
随机页面
特殊页面
上传文件
少女前线
简介
战术人形
装备图鉴
BGM
任务
少前2:追放
逆向坍塌:面包房行动
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
注册
登录
查看“︁Module:少女前线图鉴图”︁的源代码
来自OGAS数据中枢
更多操作
←
Module:少女前线图鉴图
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
管理员
您可以查看和复制此页面的源代码。
local p = {} local cache = {} local function exists(name) local ok, t = pcall(mw.title.new, "File:" .. name) if not ok or not t then return false end return t.fileExists == true end -- 把图鉴里引用的缩略图名(Pic_XXX_S.jpg)解析成本站真实存在的文件: -- 先看原名,再退回 <base>.png / <base>_N.png。 function p.file(frame) local raw = frame.args[1] if not raw then return '' end local name = mw.text.trim(raw) if name == '' then return '' end if cache[name] ~= nil then return cache[name] end local out = name if not exists(name) then local base = name:gsub('_S%.[%a]+$', '') local cands = { base .. '.png', base .. '_N.png' } for _, c in ipairs(cands) do if exists(c) then out = c break end end end cache[name] = out return out end return p
该页面嵌入的页面:
Module:少女前线图鉴图/doc
(
查看源代码
)
返回
Module:少女前线图鉴图
。
查看“︁Module:少女前线图鉴图”︁的源代码
来自OGAS数据中枢