![]() | 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
local p = {}
function p.main (frame)
local fArgs = frame.args -- Frame arguments
local pArgs = frame:getParent().args -- Parent arguments
local tArgs = {}
local template = fArgs['_t'] or pArgs['_t'] -- Get template name
local errorMsg = require('Module:Error').error
if template == '' or template == nil then return
errorMsg({'Error: no templater given'}) -- Template name is needed
end
for k,v in pairs(pArgs) do
tArgs[k] = v -- Add pArgs to tArgs
end
for k,v in pairs(fArgs) do
if k ~= '_t' then -- Do not count fArgs['_t'] as a parameter
tArgs[k] = v -- Add fArgs to tArgs
end
end
return frame:expandTemplate{title = template, args = tArgs} -- Call template
end
return p