FANDOM


-- <nowiki>
-- 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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.