Module:ExchangeLite

--[=[

--]=] -- -- -- Lightweight version of Module:Exchange

local p = {} local pageTemplate = {'Module:Exchange/', true} local mw = mw

local function loadData(item) pageTemplate[2] = item local page = table.concat(pageTemplate) return mw.loadData(page) end

-- usage: -- local exg = require('Module:ExchangeLite') -- local price = exg.load({args={'Fire rune', 'price' }}) function p.load(frame) local args = frame.args return loadData(args[1])[args[2]] end

function p.price(item) return loadData(item).price end

return p