![]() | Please do not delete this module or its doc page. |
Parameters
(floor#)
- Sets the name of a floor
(floor#)_(part#)_(param)
- Sets a parameter for a row of a floor where (param)
is:
name
- The name of the row, e.g. "Westbound track"desc
- The description for the row- Services
dir
- The direction of the service(s) for the track (right
orleft
)service
- The service running on the trackservice(service#)
- Additional services running on the trackdest
- The destination for the servicedest(service#)
- Destinations for the additional servicesnote
- Note about the servicesnote(service#)
- Notes about the additional services
- Platform
platform
- The type of platformaccessible
- Set if the platform isaccessible
note
- Note about the platform
-- Keep Here
local getArgs = require('Module:Arguments').getArgs
local p = {}
function p.main(frame)
local args = getArgs(frame);
args[1] = args[1]:lower();
args[1] = string.gsub(args[1], "january","01");
args[1] = string.gsub(args[1], "february","02");
args[1] = string.gsub(args[1], "march","03");
args[1] = string.gsub(args[1], "april","04");
args[1] = string.gsub(args[1], "may","05");
args[1] = string.gsub(args[1], "june","06");
args[1] = string.gsub(args[1], "july","07");
args[1] = string.gsub(args[1], "august","08");
args[1] = string.gsub(args[1], "september","09");
args[1] = string.gsub(args[1], "october","10");
args[1] = string.gsub(args[1], "november","11");
args[1] = string.gsub(args[1], "december","12");
args[1] = string.gsub(args[1], ",","");
args[1] = string.gsub(args[1], " ","-");
args[1] = string.gsub(args[1], "sunday","");
args[1] = string.gsub(args[1], "monday","");
args[1] = string.gsub(args[1], "tuesday","");
args[1] = string.gsub(args[1], "wednesday","");
args[1] = string.gsub(args[1], "thursday","");
args[1] = string.gsub(args[1], "friday","");
args[1] = string.gsub(args[1], "saterday","");
return args[1];
end
return p