Module:Sandbox/User:Californ1a/PriceChecker: Difference between revisions
Module:Sandbox/User:Californ1a/PriceChecker (edit)
Revision as of 06:35, 5 December 2024
, 5 Decemberno edit summary
Californ1a (talk | contribs) (Created page with "local p = {} -- Utility function to clean up number strings by removing commas local function cleanNumberString(value) if type(value) == "string" then return value:gsub(",", "") end return value end -- Non-dynamic module, no inputs function p.main() -- Returns only directly needed parameters for the row, -- other parameters are determined by subqueries of chained pages local query = { '-Sold item::~*', '?=Name',...") |
Californ1a (talk | contribs) mNo edit summary |
||
Line 3:
-- Utility function to clean up number strings by removing commas
local function cleanNumberString(value)
if type(value) ==
if value == 'N/A' then
return value:gsub(",", "")▼
return -1
end
return value
Line 33 ⟶ 36:
local infoboxValue = item.InfoboxValue
if string.find(infoboxValue
infoboxValue =
else
infoboxValue =
end
local
for _, shopValue in ipairs(shopValues) do
▲ end
end
-- Add the item to the output if any shopValue mismatched InfoboxValue
if
table.insert(out, item)
end
|