模块:EquipmentInfoList:修订间差异

来自70DNF
跳转到导航 跳转到搜索
AdminAPT留言 | 贡献
无编辑摘要
AdminAPT留言 | 贡献
无编辑摘要
第7行: 第7行:
     res_table = {}
     res_table = {}
     local data_table = mw.text.split(data_str, "\n", true)
     local data_table = mw.text.split(data_str, "\n", true)
     table.insert(res_table, string.format('!style="width:1.5em;"|%s!!可兑换道具!!style="width:5.0em;"|库存!!style="width:6.0em;"|单价\n', selectall_str))
     table.insert(res_table, string.format('!style="width:1.5em;"|!!可兑换道具!!style="width:5.0em;"|库存!!style="width:6.0em;"|单价\n' ))
      
      

2025年12月22日 (一) 06:39的版本

此模块的文档可以在模块:EquipmentInfoList/doc创建

local p = {}

function p.list(frame)
    local args = (frame == mw.getCurrentFrame() and frame.args) or frame
    local token_name = mw.text.trim(args["token_alias"] or "")
    local data_str = mw.text.trim(args["data"] or "")
    res_table = {}
    local data_table = mw.text.split(data_str, "\n", true)
    table.insert(res_table, string.format('!style="width:1.5em;"|!!可兑换道具!!style="width:5.0em;"|库存!!style="width:6.0em;"|单价\n' ))
	
    
    -- table.insert(res_table, )
    -- table.insert(res_table, string.format('!style="width:1.5em;"|%s!!可兑换道具!!style="width:5.0em;"|库存!!style="width:6.0em;"|单价\n', selectall_str))
    return table.concat(res_table)
end

return p