Module:Routelist row: Difference between revisions

Content deleted Content added
Sync with sandbox: Make route column row header
Jackmcbarn (talk | contribs)
m make this work with non-ASCII characters
Line 109:
routeKey = string.format('%04d', route) -- This invocation is equivalent to the {{0000expr}} template. It zero-pads the given route number up to 4 digits.
else
local num, suffix = string.match(route, "(%d+)(%a.+)")
if not suffix then error(route) end
routeKey = string.format('%04d', num) .. suffix
end