Module:Memory Archive:修订间差异

删除147字节 、​ 2024年6月27日 (星期四)
不再硬编码曲目索引模板的参数名
(frame不应为全局变量)
(不再硬编码曲目索引模板的参数名)
 
(未显示同一用户的1个中间版本)
第45行: 第45行:
local categoryNames = {'流行/推荐', '搭档', '原创', '综合', '音乐游戏'}
local categoryNames = {'流行/推荐', '搭档', '原创', '综合', '音乐游戏'}
local final={
local final={}
['曲包']='[[Memory Archive]]',
   for i, v in pairs(frame.args) do
['曲包封面']='[[文件:Pack single.png|75px]]',
     final[i]=v
name='Memory Archive曲目索引',
   end
color='#84daff'
}


    function expand(t)
    function expand(t)
第71行: 第69行:
first=false
first=false
end
end
-- 鉴于自动展开 Template:仅 会爆炸这里手动展开
if #songs[i].mobile ~= 0 then
if #songs[i].mobile ~= 0 then
if not first then list = list .. dot end
if not first then list = list .. dot end
1,409

个编辑