1,132
个编辑
小 (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"]] |
个编辑