Module:Sandbox/User:Alsang/PriceChecker: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
-- other parameters are determined by subqueries of chained pages |
-- other parameters are determined by subqueries of chained pages |
||
local query = { |
local query = { |
||
'[[-Sold item::+]]', |
'[[-Sold item.Shop sell price::+]]', |
||
'?=Name', |
'?=Name', |
||
'?-Sold item.Shop sell price=ShopValue', |
'?-Sold item.Shop sell price=ShopValue', |
||
Line 21: | Line 21: | ||
local add = true |
local add = true |
||
if type(s)=='string' then |
if type(s)=='string' then |
||
if i==tonumber(s) then |
if i==tonumber(s) or not(tonumber(s)) then |
||
add = false |
add = false |
||
end |
end |
||
elseif type(s)=='table' then |
elseif type(s)=='table' then |
||
for _,shop in ipairs(s) do |
for _,shop in ipairs(s) do |
||
if i==tonumber(shop) then |
if i==tonumber(shop) or not(tonumber(shop)) then |
||
add = false |
add = false |
||
end |
end |