Module:Currency

-- -- Shows currency information based on ISO 4217 local p = {} local data = mw.loadData("Dev:Currency/data") local getArgs = require("Dev:Arguments").getArgs

local function getCurrencyInfo(currencyCode, currencyInfo) local currency = data[currencyCode:upper]

if currency and currency[currencyInfo] then return currency[currencyInfo] end end

function p.main(frame) local args = getArgs(frame) local currencyCode = args[1] local currencyInfo = args[2]

return getCurrencyInfo(currencyCode, currencyInfo) end

return p