Module:Page/Item/sandbox

local cargo = require("Module:CargoUtil") local util_table = require("Module:TableUtil")

local p = {}

function p.test local rows = cargo.query{ tables='Item, ItemLoc', join = 'Item.iname = ItemLoc.iname', fields = 'Item.iname = iname', where = { 'name="3+★ Equipment 10-Summon Ticket"', 'lang="english"', 'server="gl"', }	}	local inames = util_table.concat(util_table.arrayFromField(rows, 'iname'), ', ') return p.main{inames} end

function p.main(frame) local args = require("Module:Arguments").getArgs(frame) return p._main(args) end

function p._main(args) local inames = mw.text.split(args[1], '%s*,%s*') inames = util_table.concat(inames, ', ', function(s) return ("%q"):format(s) end) mw.log(inames) end

return p