Module:Category Arcaea:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第6行: | 第6行: | ||
if string.find(name, 'Songs') then return '[[分类:曲目封面图片]]' end | if string.find(name, 'Songs') then return '[[分类:曲目封面图片]]' end | ||
if string.find(name, 'Pack') then return '[[分类:曲包封面图片]]' end | if string.find(name, 'Pack') then return '[[分类:曲包封面图片]]' end | ||
if string.find(name, 'icon') and string.find(name, 'Partner') then return '[[分类:搭档图标图片]]' end | |||
if string.find(name, 'Partner') then return '[[分类:搭档图片]]' end | if string.find(name, 'Partner') then return '[[分类:搭档图片]]' end | ||
if string.find(name, 'Background') then return '[[分类:游玩背景图片]]' end | if string.find(name, 'Background') then return '[[分类:游玩背景图片]]' end | ||
if string.find(name, 'New') or string.find(name, 'new') then return '[[分类:官方宣传图片]]' end | if string.find(name, 'New') or string.find(name, 'new') then return '[[分类:官方宣传图片]]' end |
2021年6月26日 (六) 13:42的版本
可在Module:Category Arcaea/doc创建此模块的帮助文档
local getArgs = require('Module:Arguments').getArgs
local p = {}
function p.main(frame)
local name = getArgs(frame)[1]
if string.find(name, 'Songs') then return '[[分类:曲目封面图片]]' end
if string.find(name, 'Pack') then return '[[分类:曲包封面图片]]' end
if string.find(name, 'icon') and string.find(name, 'Partner') then return '[[分类:搭档图标图片]]' end
if string.find(name, 'Partner') then return '[[分类:搭档图片]]' end
if string.find(name, 'Background') then return '[[分类:游玩背景图片]]' end
if string.find(name, 'New') or string.find(name, 'new') then return '[[分类:官方宣传图片]]' end
if string.find(name, 'Icon button') then return '[[分类:条目图标图片]]' end
if string.find(name, 'Story') then return '[[分类:故事模式图片]]' end
end
return p