首页
历史
最近更改
特殊页面
社群首页
设置
关于Vocawiki
免责声明
Vocawiki
搜索
用户菜单
创建账号
登录
查看“︁Module:VOCALOID殿堂曲/Stats”︁的源代码
←
Module:VOCALOID殿堂曲/Stats
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
local module = {} local getArgs = require('Module:Arguments').getArgs function module.count(page) local title = mw.title.new(page) local content = title:getContent() if not content then return end local count = 0 for i in string.gmatch(content, "t?T?emple ?_?Song") do count = count + 1 end return count end function module.main(frame) local args = getArgs(frame) local prefix = args['prefix'] local startYear = args['startYear'] local includeSelf = args['includeSelf'] local i = startYear local total = 0 if includeSelf then local count = module.count(prefix) if count then total = count end end while true do local count = module.count(string.format("%s/%d年投稿", prefix, i)) if not count then break end total = total + count i = i + 1 end return tostring(total) end return module
该页面使用的模板:
Module:VOCALOID殿堂曲/Stats/doc
(
查看源代码
)
返回
Module:VOCALOID殿堂曲/Stats
。