Template:Train station table/doc
This is a documentation subpage for Template:Train station table. It may contain usage information, categories and other content that is not part of the original template page. |
This is a template for generating a platforms & services table, for use in a station article.
Usage
[edit]This is the basic syntax you need to get a complete table. Just copy and paste the code below:
{{Train station table|top}}
{{Train station table
|stop=
|platform=
|line=
|pattern=
|dest=
|notes=}}
{{train station table|bottom}}
...and fill in the variables! For more entries, use this:
{{Train station table
|stop=
|platform=
|line=
|pattern=
|dest=
|notes=}}
(add above the line {{train station table|bottom}}
)
Parameters
[edit]Top row (headings)
[edit]- 1= (or first positional parameter):
top
(required to generate the headings) - caption= a caption to display above the table. Optional – may be omitted if directly below a ==Heading== (or ===Sub-heading=== etc.) that serves as a caption.
- calign= alignment of the caption. Optional – default if not specified is
left
, other options arecenter
orright
Regular rows
[edit]- stop= id code for the platform
- platform= platform number
- pspan= number of rows the stop and platform cells span – if value=1, omit this parameter. If used, stop= and platform= should be omitted from the other rows it spans.
- Alias: sspan=
- line= railway line
- lspan= number of rows the line cell spans – if value=1, omit this parameter. If used, line= should be omitted from the other rows it spans.
- pattern= stopping pattern(s)
- Alias: stop_pattern=
- dest= destination
- notes= Any notes – e.g. days of operation for a stopping pattern
- nspan= number of rows the notes cell spans – if value=1, omit this parameter. If used, set notes=none for the other rows it spans.
End of table
[edit]- 1= (or first positional parameter):
bottom
(required to close the table) - key= A key or legend can be specified here. Optional – may be used if symbols, abbreviations, colours, or other ambiguous markings are used in the table; or to otherwise specify content for the footer of the table, such as sources.
Example
[edit]Note that shortcut {{tst}}
can be used instead of {{Train station table}}
.
{{tst|top|caption=[2776] Perth Underground station platforms}}
{{tst
|stop=99601 |platform=1 |pspan=3
|line=[[Yanchep line|Yanchep]] |lspan=3
|stop_pattern=All stations
|dest=[[Butler railway station|Butler]]
|notes=}}
{{tst
|pattern=K
|dest=[[Clarkson railway station, Perth|Clarkson]]
|notes=Pattern K only operates on weekdays.<ref name=YanchepLineTimetable>[https://www.transperth.wa.gov.au/timetablepdfs/Yanchep%20Line%2020240715.pdf Yanchep Line timetable] Transperth 21 September 2014</ref>}}
{{tst
|pattern=W
|dest=[[Whitfords railway station|Whitfords]]
|notes=Pattern W only operates on weekdays.<ref name=YanchepLineTimetable />}}
{{tst
|stop=99602 |platform=2 |pspan=3
|line=[[Mandurah line|Mandurah]] |lspan=3
|pattern= All stations
|dest=[[Mandurah railway station|Mandurah]]}}
{{tst
|pattern=K
|dest=[[Rockingham railway station, Perth|Rockingham]]
|notes=Pattern K only operates on weekdays.<ref name=YanchepLineTimetable />}}
{{tst
|pattern=W
|dest=[[Cockburn Central railway station|Cockburn Central]]
|notes=Pattern W only operates on weekdays.<ref name=YanchepLineTimetable />}}
{{tst|bottom|key=A key or legend could go here}}
Stop | Platform | Line | Stopping pattern | Destination | Notes |
---|---|---|---|---|---|
99601 | 1 | Yanchep | All stations | Butler | |
K | Clarkson | Pattern K only operates on weekdays.[1] | |||
W | Whitfords | Pattern W only operates on weekdays.[1] | |||
99602 | 2 | Mandurah | All stations | Mandurah | |
K | Rockingham | Pattern K only operates on weekdays.[1] | |||
W | Cockburn Central | Pattern W only operates on weekdays.[1] | |||
A key or legend could go here |
References
- ^ a b c d Yanchep Line timetable Transperth 21 September 2014
See also
[edit]- {{Bus route table}}
TemplateData
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A template for generating a bus route table, for use in a station articles.
|