local p = {}
function p.format11( frame )
local pframe = frame:getParent()
local config = frame.args -- arguments from the template definition
local args = pframe.args -- arguments from the page calling the template
local system = frame.args[1]
local code = frame.args[2]
if not system or not code then
return 'Need values for parameter 1 or 2'
end
local data = pcall('Module:HK-MTR stations/' .. system)
local station = data.stations[code]
local id = data.id[code]
return code .. id
end
return p