Module:LoadJson:修订间差异

来自Arcaea中文维基
(创建页面,内容为“local p function p.Songlist() return mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate{ title = 'Songlist' } ) end function p.Packlist() return mw.text.json…”)
 
无编辑摘要
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
local p
local p={}


function p.Songlist()
function p.Songlist()
return mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate{ title = 'Songlist' } )
return mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate{ title = 'Songlist' } )
end
function p.SonglistNS()
return mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate{ title = 'Songlist NS' } )
end
end


第11行: 第15行:
function p.unlocks()
function p.unlocks()
return mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate{ title = 'unlocks' } )
return mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate{ title = 'unlocks' } )
end
function p.ChartConstant()
return mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate{ title = 'ChartConstant.json' } )
end
end


return p
return p

2022年7月8日 (五) 18:43的最新版本

可在Module:LoadJson/doc创建此模块的帮助文档

local p={}

function p.Songlist()
	return mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate{ title = 'Songlist' } )
end

function p.SonglistNS()
	return mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate{ title = 'Songlist NS' } )
end

function p.Packlist()
	return mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate{ title = 'Packlist' } )
end

function p.unlocks()
	return mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate{ title = 'unlocks' } )
end

function p.ChartConstant()
	return mw.text.jsonDecode(mw.getCurrentFrame():expandTemplate{ title = 'ChartConstant.json' } )
end

return p