Editing Module:Sandbox/User:Alsang/PriceChecker

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
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.Shop sell price::+]]',
'[[-Sold item::+]]',
'?=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) or not(tonumber(s)) then
if i==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) or not(tonumber(shop)) then
if i==tonumber(shop) then
add = false
add = false
end
end
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see Brighter Shores:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template

This page is a member of a hidden category: