Module:ItemsByStat: Difference between revisions

mNo edit summary
mNo edit summary
Line 24: Line 24:
p.tablefy = function(frame)
p.tablefy = function(frame)
local stat = frame.args[1]
local stat = frame.args[1]
local tabledata = selectByStat(stat)
local tableData = selectByStat(stat)
Item = tabledata[1]
local outString = ""
Value = tabledata[3]
return tableData[1][1]
output = ""
-- for i=1,#Item do
for i=1,#Item do
-- outString = outString.."Name: [["..Item[i].."]] Increased Weapon Damage: "..Value[i].."\n\n"
output = output.."Name: [["..Item[i].."]] Increased Weapon Damage: "..Value[i].."\n\n"
-- end
end
-- return outString
return output
end
end


return p
return p