![]() | 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()
string.gsub(args[1], "january","01")
string.gsub(args[1], "february","02")
string.gsub(args[1], "march","03")
string.gsub(args[1], "april","04")
string.gsub(args[1], "may","05")
string.gsub(args[1], "june","06")
string.gsub(args[1], "july","07")
string.gsub(args[1], "august","08")
string.gsub(args[1], "september","09")
string.gsub(args[1], "october","10")
string.gsub(args[1], "november","11")
string.gsub(args[1], "december","12")
string.gsub(args[1], ",","")
string.gsub(args[1], " ","-")
string.gsub(args[1], "sunday","")
string.gsub(args[1], "monday","")
string.gsub(args[1], "tuesday","")
string.gsub(args[1], "wednesday","")
string.gsub(args[1], "thursday","")
string.gsub(args[1], "friday","")
string.gsub(args[1], "saterday","")
return args[1]
end
return p