Module:Packlist index:修订间差异

添加32字节 、​ 2022年9月20日 (星期二)
cover up
(创建页面,内容为“local p = { single = { idx = -100, name = "Memory Archive" } } local plst = mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate { title = "packlist" }).packs local special = { base = true, omatsuri = true, observer = true } for i, v in ipairs(plst) do local co = v.custom_banner and not special[v.id] local name = v.name_localized.en if co then name = name .. " Collaboration" end if (p[v.pack_parent or ""] or p.single).name:find " Collaboration" then nam…”)
 
(cover up)
第7行: 第7行:
if co then name = name .. " Collaboration" end
if co then name = name .. " Collaboration" end
if (p[v.pack_parent or ""] or p.single).name:find " Collaboration" then
if (p[v.pack_parent or ""] or p.single).name:find " Collaboration" then
name = p[v.pack_parent].name .. " - " .. name
name = p[v.pack_parent].name .. "|" .. p[v.pack_parent].name .. " - " .. name
end
end
p[v.id] = { idx = i, name = name }
p[v.id] = { idx = i, name = name }
end
end
return p
return p
1,124

个编辑