You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -297,7 +297,7 @@ An example of this file is located in [examples/timetables.txt](examples/timetab
297
297
|`friday`| A binary value that indicates whether this timetable should include service on Fridays. Valid options are `0` and `1`. |
298
298
|`saturday`| A binary value that indicates whether this timetable should include service on Saturdays. Valid options are `0` and `1`. |
299
299
|`sunday`| A binary value that indicates whether this timetable should include service on Sundays. Valid options are `0` and `1`. |
300
-
|`timetable_label`| A short text label describing the timetable, for instance "Route 4 Northbound Mon-Fri". Optional, defaults to route name. |
300
+
|`timetable_label`| A short text label describing the timetable, for instance "Route 4 Northbound Mon-Fri". Optional, defaults to route name and first and last stops. |
301
301
|`service_notes`| Text shown on the timetable about the service represented. Optional. |
302
302
|`orientation`| Determines if the top row should be a list of trips or stops. Valid options are `vertical`, `horizontal` or `hourly`. `vertical` shows stops across the top row with each row being a list of stop times for each trip. `horizontal` shows trips across the top row with each row being stop times for a specific stop. `hourly` is for routes that run the same time each hour and will print a simplified schedule showing minutes after the hour for each stop. `horizontal` orientation is best for routes with lots of stops and fewer trips while `vertical` orientation is best for routes with lots of trips and a smaller number of stops. Default is `vertical`|
303
303
|`timetable_page_id`| The timetable page to include this timetable on |
-var summary =`This table shows schedules for a selection of key stops on the route for ${getTimetableLabel(timetable)}${timetable.dayList}.`;
33
+
-if (timetable.orientation='vertical') {
34
+
- summary +=' Stops and their schedule times are listed in the columns.';
35
+
- } elseif (timetable.orientation='horizontal') {
36
+
- summary +=' Schedule times are listed in rows, starting with the stop name in the first cell of the row.';
37
+
- } elseif (timetable.orientation='hourly') {
38
+
- summary +=' Schedule times are listed in rows, starting with the stop name in the first cell of the row and the minutes after the hour in the second row.';
0 commit comments