跳到内容

Module:沙盒/盐棋/Sandbox1:修订间差异

添加15字节 、​ 2022年5月8日 (星期日)
tempest, quon, lastend
(fix find)
(tempest, quon, lastend)
第88行: 第88行:
local function MobileTimeFilter(info)
local function MobileTimeFilter(info)
local searcher=function (x)
local searcher=function (x)
return {version=string.match(W.getCurrentFrame():expandTemplate{ title = ":版本更新日志" },
return x and {version=string.match(W.getCurrentFrame():expandTemplate{ title = ":版本更新日志" },
"(v%d%.%d%d?%.%d%d?)%s*|%s*" .. W.language.getContentLanguage():formatDate("Y%.n%.j","@"..x) .. "%D"),
"(v%d%.%d%d?%.%d%d?)%s*|%s*" .. W.language.getContentLanguage():formatDate("Y%.n%.j","@"..x) .. "%D"),
date=os.date("(%Y/%m/%d)", x)}--maybe change lang:formatDate?
date=os.date("(%Y/%m/%d)", x)}--maybe change lang:formatDate?
or nil
end
end
p.cfg["stamp"]=searcher(info["date"]) or postscript.MobileTime[info["id"]]
p.cfg["stamp"]=searcher(info["date"]) or postscript.MobileTime[info["id"]]
1,132

个编辑