Template:Train station table/doc

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: ...and fill in the variables! For more entries, use this: (add above the line )

Top row (headings)

 * 1= (or first positional parameter):  (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, other options are   or

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):  (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 can be used instead of.