2,509
次編輯
小無編輯摘要 |
小 (fix) |
||
行 1: | 行 1: | ||
local p = { single = { idx = -100, name = "Memory Archive" } } | local p = { single = { idx = -100, name = "Memory Archive" } } | ||
local plst = mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate { title = "packlist.json" }).packs | local plst = mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate { title = "packlist.json" }).packs | ||
local | local packName = mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate { title = "Transition.json" }).packName | ||
for i, v in ipairs(plst) do | for i, v in ipairs(plst) do | ||
local | local name = packName[v.id] or v.name_localized.en | ||
if v.pack_parent and v.id ~= 'epilogue' then | |||
if | name = p[v.pack_parent].name .. "|" .. name | ||
name = p[v.pack_parent].name .. "| | |||
end | end | ||
p[v.id] = { idx = i, name = name } | p[v.id] = { idx = i, name = name } | ||
end | end | ||
p.wacca.name = "WACCA Collaboration" | |||
return p | return p |
次編輯