跳到内容

Module:Unlock:修订间差异

删除50字节 、​ 2022年9月18日 (星期日)
oops
(emm)
(oops)
第44行: 第44行:


function p.single(frame)
function p.single(frame)
local id = frame.args.id or slstIdx[mw.title.getCurrentTitle().text]
local id = slstIdx[frame.args[1]]
local stringify = function(songv)
local stringify = function(songv)
local r = {}
local r = {}
第52行: 第52行:
--- unlocks song k/v :
--- unlocks song k/v :
for songk, songv in unlocksIt(unlocks) do
for songk, songv in unlocksIt(unlocks) do
if id == songk then return mw.getCurrentFrame():expandTemplate { title = "解禁方法", args = {
if id == songk then return frame:expandTemplate { title = "解禁方法", args = {
["PST解禁方法"] = stringify(songv[1]),
["PST解禁方法"] = stringify(songv[1]),
["PRS解禁方法"] = stringify(songv[2]),
["PRS解禁方法"] = stringify(songv[2]),
1,133

个编辑