Module:Station

local p = {}

local stations = mw.loadData('Module:Station/data')

function p._getStation(stationName) return stations[stationName] or "n/a" end

function p.desc(frame) local stationName = frame.args[1] local station = p._getStation(stationName) return station.desc or "" end

function p.type(frame) local stationName = frame.args[1] local station = p._getStation(stationName) return station.type or "" end

function p.weight(frame) local stationName = frame.args[1] local station = p._getStation(stationName) return station.weight or "" end

function p.effects(frame) local stationName= frame.args[1] local station = p._getStation(stationName) return station.effects or "" end

return p