Module:Sandbox/Epicgenius/NYC bus link
require('strict');
local getArgs = require('Module:Arguments').getArgs
local p = {}
function p.getLink(frame)
local args = getArgs(frame);
local city;
if 'NYC' == args.city then
city = 'New York City bus';
elseif 'LI' == args.city then
city = 'Long Island bus';
end
local result = {};
for _, name in ipairs (args) do
table.insert (result, table.concat ({'', name, ''}))
end
return table.concat (result, ', ');
end
return p;