Module:ItemsByStat: Difference between revisions

No edit summary
No edit summary
Line 23: Line 23:
local stat = frame.args[1]
local stat = frame.args[1]
local tabledata = selectByStat(stat)
local tabledata = selectByStat(stat)
Item = tabledata[1]
Value = tabledata[2]
output = ""
output = ""
for i,x in pairs(tabledata) do
for i=1,#Item do
output = output.."Name: "..x[1].."\n"
output = output.."Name: "..Item[i].." Value: "..Value[i].."\n"
end
end
return output
return output