![]() | 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 p = {}
local args = {}
function p.main()
local houoff;
local minoff;
local sign2;
local args1;
local arg1;
args[1] = "6.5"
if mw.ustring.match (args[1], '[%+%-±−]?%d%.%d+') == args[1] then -- eg: +5.5
houoff = mw.ustring.match (args[1], '%d')
args1 = mw.ustring.match (args[1], '%d.%d+')
minoff = args1*100
sign2 = mw.ustring.match (args[1],'[%+%-±−]?')
minoff = minoff-(houoff*100)
minoff = minoff*0.6
args[1] = table.concat ({houoff,':',minoff})
end
return table.concat ({args[1],' ',args1*100})
end
return p