Module:Common: Difference between revisions

Add another potential currencyID property in getCostString
m (Shorten Museum Donation requirements string)
(Add another potential currencyID property in getCostString)
Line 200: Line 200:
if type(costs.currencies) == 'table' and not Shared.tableIsEmpty(costs.currencies) then
if type(costs.currencies) == 'table' and not Shared.tableIsEmpty(costs.currencies) then
for i, currCost in ipairs(costs.currencies) do
for i, currCost in ipairs(costs.currencies) do
local currID = currCost.id or currCost.currencyID
local currID = currCost.id or currCost.currencyID or currCost.currency
if currCost.min ~= nil then
if currCost.min ~= nil then
-- Cost is a range
-- Cost is a range