![]() | 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
function main (args1, args2, switch)
local template = args2['_']
args2._ = nil
if switch then
args1, args2 = args2, args1
end
if not template then
return require('Module:Error').error({'Error: no template name given.'})
end
for k,v in pairs(args1) do
args2[k] = v
end
return frame:expandTemplate{title = template, args = args2}
end
function gen (switch)
return function (frame)
return main(frame:getParent().args, frame.args, switch)
end
end
return {
default = gen(false),
force = gen(true)
}