Module:Currency: Difference between revisions
Jump to navigation
Jump to search
Mediawiki>Magiczocker01 mNo edit summary |
m (1 revision imported) |
(No difference)
|
Revision as of 02:23, 30 April 2021
Documentation for this module may be created at Module:Currency/doc
-- <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) return getCurrencyInfo(frame.args[1], frame.args[2]) end return p