模块:SkillDetail
此模块的文档可以在模块:SkillDetail/doc创建
local p={}
local getArgs = require('Module:Arguments').getArgs
function p.set(frame)
local args = getArgs(frame, {wrappers = 'Template:持有技能',removeBlanks = false})
local id=frame.args['id']
local data = {id}
for ak2,av2 in ipairs(args)
do
data[ak2+1]=av2
end
local data =mw.text.jsonEncode(data)
frame:expandTemplate{ title = '持有技能/set', args = {data,id } }
end
return p