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 are center or right

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}}
[2776] Perth Underground station platforms
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

  1. ^ a b c d Yanchep Line timetable Transperth 21 September 2014

See also

edit
TemplateData

A template for generating a bus route table, for use in a station articles.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
table row type1

use "top" to generate a headings row, "bottom" to close the table, or omit this parameter for regular table rows

Stringsuggested
stop IDstop

id code for the platform

Unknownsuggested
platformplatform

platform number

Unknownsuggested
rows stop & platform cells spanpspan sspan

number of rows the stop & platform cells span – if value=1, omit this parameter. If used, 'stop' and 'platform' should be omitted from the other rows they spans.

Numbersuggested
lineline

railway line

Unknownsuggested
rows line cell spanslspan

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.

Numberoptional
stopping patternpattern stop_pattern

stopping pattern(s)

Unknownsuggested
destinationdest

destination

Unknownsuggested
notesnotes

Any notes – e.g. days which a stopping pattern operates.

Unknownsuggested
rows notes cell spansnspan

number of rows the notes cell spans – if value=1, omit this parameter. If used, set 'notes' to "none" for the other rows it spans.

Numberoptional
captioncaption

A caption for the table; REQUIRES 'table row type' to be set to "top"

Unknownoptional
caption alignmentcalign

Alignment for the caption; default if not specified is "left", other options are "center" or "right"; REQUIRES 'table row type' to be set to "top" and 'caption' to be defined

Unknownoptional
keykey

key/legend/other content to display at bottom of table; REQUIRES 'table row type' to be set to "bottom"

Unknownoptional