Module:Sandbox/User:Alsang/PriceChecker: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Created page with "local p = {} -- non dynamic module, no inputs function p.main() -- returns only directly needed parameter needed for the row, -- other parameters are determined by subqueries of chained pages local query = { '-Sold item::~*', '?=Name', '?-Sold item.Shop sell price=ShopValue', '?Value=InfoboxValue', 'limit = 500' } local results = mw.smw.ask(query) local out = {} for _,item in ipairs(results) do if not(tonumber(item.ShopValue)==tonumber(item.Inf...") |
No edit summary |
||
Line 22: | Line 22: | ||
end |
end |
||
return table.concat(out, ' |
return table.concat(out, '<br>') |
||
end |
end |