Template:Train station table/sandbox
![]() | __EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Train station table (diff). |
This is a template for generating a platforms & services table, for use in a station article.
Usage
This is the basic syntax you need to get a complete table. Just copy and paste the code below: <syntaxhighlight lang="wikitext">
Stop | Platform | Line | Stopping pattern | Destination | Notes |
---|---|---|---|---|---|
</syntaxhighlight> ...and fill in the variables! For more entries, use this: <syntaxhighlight lang="wikitext">
</syntaxhighlight> (add above the line{{train station table|bottom}}
)
Parameters
Top row (headings)
- 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
- 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
- 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
Note that shortcut {{tst}}
can be used instead of {{Train station table}}
.
<syntaxhighlight lang="wikitext">
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 |
</syntaxhighlight>
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 |
See also
- {{Bus route table}}
TemplateData
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A template for generating a bus route table, for use in a station articles.
|