Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a458bf3d7a2052f1

Jump to content

Template:Train station table/doc

From Wikipedia, the free encyclopedia

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. 1 2 3 4 Yanchep Line timetable Transperth 21 September 2014

See also

[edit]