User:Vcohen/Templates for station layouts

From Wikipedia, the free encyclopedia

Description[edit]

Here are templates for these station layouts.

The icon files are in Category:Icons for station layouts

The templates are in Category:Station layout templates

To do:

  • create documentation

File names[edit]

Icon names: SLicon VT A1.png

  • SLicon is like BSicon (Station Layout)
  • V may be:
  • Vertical
  • Horizontal
  • T may be:
  • Track
  • P1 = platform part with edge leftwards (for V) or upwards (for H)
  • P2 = platform part with edge rightwards (for V) or downwards (for H)

(for side platforms use P1 or P2 only, for island platforms use both together)

  • A may be:
  • for Tracks with something on the end = 28
  • Arrow
  • Bar
  • AB
  • Z = long dashes
  • AZ
  • Solid
  • Dashed
  • for Tracks without anything on the end = 2
  • Narrow space (use twice to create wide space)
  • for Platforms (1 or 2) = 24
  • Solid
  • Dashed
  • Z = long dashes
  • 1 may be:
  • 1 = first element (upper for V, left for H)
  • 2 = vice versa

(not relevant for Tracks without anything on the end)

Usage[edit]

For a station
having two levels
the usage is:

  • SL top
  • SL head
  • SL row
  • ...
  • SL row
  • SL sep
  • SL head
  • SL row
  • ...
  • SL row
  • SL bottom

For a station
having one level
the usage is:

  • SL top
  • SL row
  • ...
  • SL row
  • SL bottom

The rules are:

  1. SL top and
    SL bottom
    must be present
    before all
    and after all.
  2. SL sep must be
    present between
    the levels of
    a bi-level station.
  3. SL head must be
    present before
    each level of
    a bi-level station.
  4. SL row is used
    several times
    to draw tracks
    and platforms.
  5. All templates
    in the category
    not listed above
    are for internal
    use only.

The first parameter of each template is V or H (vertical or horizontal).

The second parameter is:

  • for SL top and SL bottom - the number of station levels (1 or 2)
  • for SL head - the level title:
    • U - Upper level
    • L - Lower level
  • for SL row - the type of the row:
    • T - track
    • P1 - platform part with edge leftwards (for V) or upwards (for H)
    • P2 - platform part with edge rightwards (for V) or downwards (for H)
  • for SL multi - width measured in track widths (may be a fractional number);
    SL multi replaces SL row when a certain width is needed
    without images of tracks and platforms
  • for SL sep - no second parameter

The other parameters of SL row:

  • the third and fourth parameters are the line types:
    • S - a simple solid line (for both tracks and platforms)
    • D - a dashed line (for both tracks and platforms, meaning unusable
      track (e.g. disconnected, without third rail etc.) or platform not in use)
    • Z - long dashes (for both tracks platforms, meaning seldom used)
    • A - arrow (for tracks, meaning trains movement direction;
      put arrows on both ends for bi-directional tracks)
    • B - bar (for tracks, meaning terminal for all trains)
    • AB - arrow and bar together (for tracks)
    • AZ - arrow and long dashes together (for tracks)
    • N (for tracks; for the third parameter only; the fourth one must
      be omitted) - narrow space between tracks or platforms
      (e.g. removed track)
  • the fifth parameter is the text next to the track:
    • E - express track
    • L - local track
  • the sixth, seventh, eighth and ninth parameters
    are portions of free HTML (typically route bullets)

Some of these templates support named parameters:

  • size - for SL top, SL head, SL row, SL multi,
    and SL sep:
    • I - size for infobox
    • T - size for thumbnail
    • G - size for gallery
  • debug - for all templates except SL bottom:
    • B - drawing tables and divs with a border
  • style - for SL top - a CSS style, for example
    float:left;margin-right:1em;

SL row with the third parameter = N may be used:

  • to show a removed track
  • used twice together - to show a platform
    of another station or some other wide space

To draw a platform use:

  • for a side platform - one row of P1 or P2,
    depending on the platform's orientation
  • for an island platform - two rows of P1 and P2
    together

Examples[edit]

For infoboxes[edit]

{{SL top|H|2|size=I}}
{{SL head|H|U|size=I}}
{{SL row|H|T|A|S||{{rint|newyork|B|size=20}}|{{rint|newyork|D|size=20}}|size=I}}
{{SL row|H|P1|S|S|size=I}}
{{SL row|H|P2|S|S|size=I}}
{{SL row|H|T|S|A|L|size=I}}
{{SL sep|H|size=I}}
{{SL head|H|L|size=I}}
{{SL row|H|T|A|S|L|size=I}}
{{SL row|H|P1|S|S|size=I}}
{{SL row|H|P2|S|S|size=I}}
{{SL row|H|T|S|A|E|size=I}}
{{SL bottom|H|2}}
{{SL top|V|2|size=I}}
{{SL head|V|U|size=I}}
{{SL row|V|T|S|A||{{rint|newyork|B|size=20}}|{{rint|newyork|D|size=20}}|size=I}}
{{SL row|V|P1|S|S|size=I}}
{{SL row|V|P2|S|S|size=I}}
{{SL row|V|T|A|S|L|size=I}}
{{SL sep|V|size=I}}
{{SL head|V|L|size=I}}
{{SL row|V|T|S|A|L|size=I}}
{{SL row|V|P1|S|S|size=I}}
{{SL row|V|P2|S|S|size=I}}
{{SL row|V|T|A|S|E|size=I}}
{{SL bottom|V|2}}
{{SL top|H|1|size=I}}
{{SL row|H|T|A|S|L|size=I}}
{{SL row|H|P1|S|S|size=I}}
{{SL row|H|P2|S|S|size=I}}
{{SL row|H|T|S|A|L|size=I}}
{{SL bottom|H|1}}
{{SL top|V|1|size=I}}
{{SL row|V|T|S|A|L|size=I}}
{{SL row|V|P1|S|S|size=I}}
{{SL row|V|P2|S|S|size=I}}
{{SL row|V|T|A|S|L|size=I}}
{{SL bottom|V|1}}

For thumbnails[edit]

{{SL top|H|2|size=T}}
{{SL head|H|U|size=T}}
{{SL row|H|T|A|S||{{rint|newyork|B|size=17}}|{{rint|newyork|D|size=17}}|size=T}}
{{SL row|H|P1|S|S|size=T}}
{{SL row|H|P2|S|S|size=T}}
{{SL row|H|T|S|A|L|size=T}}
{{SL sep|H|size=T}}
{{SL head|H|L|size=T}}
{{SL row|H|T|A|S|L|size=T}}
{{SL row|H|P1|S|S|size=T}}
{{SL row|H|P2|S|S|size=T}}
{{SL row|H|T|S|A|E|size=T}}
{{SL bottom|H|2}}
{{SL top|V|2|size=T}}
{{SL head|V|U|size=T}}
{{SL row|V|T|S|A||{{rint|newyork|B|size=17}}|{{rint|newyork|D|size=17}}|size=T}}
{{SL row|V|P1|S|S|size=T}}
{{SL row|V|P2|S|S|size=T}}
{{SL row|V|T|A|S|L|size=T}}
{{SL sep|V|size=T}}
{{SL head|V|L|size=T}}
{{SL row|V|T|S|A|L|size=T}}
{{SL row|V|P1|S|S|size=T}}
{{SL row|V|P2|S|S|size=T}}
{{SL row|V|T|A|S|E|size=T}}
{{SL bottom|V|2}}
{{SL top|H|1|size=T}}
{{SL row|H|T|A|S|L|size=T}}
{{SL row|H|P1|S|S|size=T}}
{{SL row|H|P2|S|S|size=T}}
{{SL row|H|T|S|A|L|size=T}}
{{SL bottom|H|1}}
{{SL top|V|1|size=T}}
{{SL row|V|T|S|A|L|size=T}}
{{SL row|V|P1|S|S|size=T}}
{{SL row|V|P2|S|S|size=T}}
{{SL row|V|T|A|S|L|size=T}}
{{SL bottom|V|1}}

For galleries[edit]

{{SL top|H|2|size=G}}
{{SL head|H|U|size=G}}
{{SL row|H|T|A|S||{{rint|newyork|B|size=10}}|{{rint|newyork|D|size=10}}|size=G}}
{{SL row|H|P1|S|S|size=G}}
{{SL row|H|P2|S|S|size=G}}
{{SL row|H|T|S|A|L|size=G}}
{{SL sep|H|size=G}}
{{SL head|H|L|size=G}}
{{SL row|H|T|A|S|L|size=G}}
{{SL row|H|P1|S|S|size=G}}
{{SL row|H|P2|S|S|size=G}}
{{SL row|H|T|S|A|E|size=G}}
{{SL bottom|H|2}}
{{SL top|V|2|size=G}}
{{SL head|V|U|size=G}}
{{SL row|V|T|S|A||{{rint|newyork|B|size=10}}|{{rint|newyork|D|size=10}}|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|A|S|L|size=G}}
{{SL sep|V|size=G}}
{{SL head|V|L|size=G}}
{{SL row|V|T|S|A|L|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|A|S|E|size=G}}
{{SL bottom|V|2}}
{{SL top|H|1|size=G}}
{{SL row|H|T|A|S|L|size=G}}
{{SL row|H|P1|S|S|size=G}}
{{SL row|H|P2|S|S|size=G}}
{{SL row|H|T|S|A|L|size=G}}
{{SL bottom|H|1}}
{{SL top|V|1|size=G}}
{{SL row|V|T|S|A|L|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|A|S|L|size=G}}
{{SL bottom|V|1}}

for my other page ->

{{SL top|V|2|size=G}}
{{SL head|V|U|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|S|A|L|size=G}}
{{SL row|V|T|A|S|L|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL sep|V|size=G}}
{{SL head|V|L|size=G}}
{{SL row|V|P2|D|D|size=G}}
{{SL row|V|T|S|A|size=G}}
{{SL row|V|T|A|S|size=G}}
{{SL row|V|P1|D|D|size=G}}
{{SL bottom|V|2}}
{{SL top|V|2|size=G}}
{{SL head|V|U|size=G}}
{{SL row|V|T|A|A|size=G}}
{{SL sep|V|size=G}}
{{SL head|V|L|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|S|A|size=G}}
{{SL row|V|T|D|D|size=G}}
{{SL row|V|T|D|D|size=G}}
{{SL row|V|T|A|S|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL bottom|V|2}}

Replacements for existing galleries in articles[edit]

One level[edit]

Old gallery with images:

New templates:

{{SL top|V|1|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|S|A|size=G}}
{{SL row|V|T|A|S|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL bottom|V|1}}
{{SL top|V|1|size=G}}
{{SL row|V|T|S|A|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|A|S|size=G}}
{{SL bottom|V|1}}
{{SL top|V|1|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|S|A|L|size=G}}
{{SL row|V|T|A|A|E|size=G}}
{{SL row|V|T|A|S|L|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL bottom|V|1}}
{{SL top|V|1|size=G}}
{{SL row|V|T|S|A|L|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|A|A|E|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|A|S|L|size=G}}
{{SL bottom|V|1}}
Station with 2 tracks and 2 side platforms Station with 2 tracks and one island platform Local station with 3 tracks Express station with 3 tracks
{{SL top|V|1|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|S|A|L|size=G}}
{{SL row|V|T|S|A|E|size=G}}
{{SL row|V|T|A|S|E|size=G}}
{{SL row|V|T|A|S|L|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL bottom|V|1}}
{{SL top|V|1|size=G}}
{{SL row|V|T|S|A|L|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|S|A|E|size=G}}
{{SL row|V|T|A|S|E|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|A|S|L|size=G}}
{{SL bottom|V|1}}
{{SL top|V|1|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|S|A|L|size=G}}
{{SL row|V|T|S|A|E|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|A|S|E|size=G}}
{{SL row|V|T|A|S|L|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL bottom|V|1}}
{{SL top|V|1|size=G}}
{{SL row|V|T|S|A||{{rint|newyork|B|V|size=10}}|{{rint|newyork|Q|V|size=10}}|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|S|A||{{rint|newyork|R|V|size=10}}|size=G}}
{{SL row|V|T|S|A||{{rint|newyork|D|V|size=10}}|{{rint|newyork|N|V|size=10}}|size=G}}
{{SL row|V|T|A|S||{{rint|newyork|D|V|size=10}}|{{rint|newyork|N|V|size=10}}|size=G}}
{{SL row|V|T|A|S||{{rint|newyork|R|V|size=10}}|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|A|S||{{rint|newyork|B|V|size=10}}|{{rint|newyork|Q|V|size=10}}|size=G}}
{{SL bottom|V|1}}
Local station with 4 tracks Express station with 4 tracks (typical configuration) Express station with 4 tracks (with connection to a major railway station) The DeKalb Avenue station (only weekday services are shown)

Two levels[edit]

Old gallery with images:

New templates:

{{SL top|V|2|size=G}}
{{SL head|V|U|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|S|A|L|size=G}}
{{SL row|V|T|A|S|L|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL sep|V|size=G}}
{{SL head|V|L|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|S|A|E|size=G}}
{{SL row|V|T|A|S|E|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL bottom|V|2}}
{{SL top|H|2|size=G}}
{{SL head|H|U|size=G}}
{{SL row|H|T|A|S||{{rint|newyork|E|H|size=10}}|size=G}}
{{SL row|H|P1|S|S|size=G}}
{{SL row|H|P2|S|S|size=G}}
{{SL row|H|T|S|A||{{rint|newyork|E|H|size=10}}|size=G}}
{{SL sep|H|size=G}}
{{SL head|H|L|size=G}}
{{SL row|H|T|A|S||{{rint|newyork|J|H|size=10}}|{{rint|newyork|Z|H|size=10}}|size=G}}
{{SL row|H|P1|S|S|size=G}}
{{SL row|H|P2|S|S|size=G}}
{{SL row|H|T|S|A||{{rint|newyork|J|H|size=10}}|{{rint|newyork|Z|H|size=10}}|size=G}}
{{SL bottom|H|2}}
{{SL top|V|2|size=G}}
{{SL head|V|U|size=G}}
{{SL row|V|T|A|S|L|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|A|S|E|size=G}}
{{SL sep|V|size=G}}
{{SL head|V|L|size=G}}
{{SL row|V|T|S|A|E|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|S|A|L|size=G}}
{{SL bottom|V|2}}
The 59th Street and
86th Street stations of the
IRT Lexington Avenue Line
with express and local
trains on different levels
The Sutphin Boulevard
– Archer Avenue – JFK
Airport
station with two
lines on different levels
The 125th Street (IRT
Lexington Avenue Line)

station with trains
of different directions
on different levels

Transfer stations[edit]

Old gallery with images:

South Ferry – Whitehall Street is a complex formed by two
stations connected with a passageway inside fare control
Hoyt–Schermerhorn Streets
is a station serving two lines
A typical express station
serving two or three services

New templates:

{{SL top|V|1|size=G}}
{{SL row|V|T|A|AB|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|A|AB|size=G}}
{{SL bottom|V|1}}
{{SL top|V|1|size=G}}
{{SL row|V|T|S|A|L|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|A|A|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|A|S|L|size=G}}
{{SL bottom|V|1}}
{{SL top|H|1|size=G}}
{{SL row|H|T|D|D|size=G}}
{{SL row|H|P1|D|D|size=G}}
{{SL row|H|P2|D|D|size=G}}
{{SL row|H|T|A|S||{{rint|newyork|A|H|size=10}}|{{rint|newyork|C|H|size=10}}|size=G}}
{{SL row|H|P1|S|S|size=G}}
{{SL row|H|P2|S|S|size=G}}
{{SL row|H|T|A|S||{{rint|newyork|G|H|size=10}}|size=G}}
{{SL row|H|T|S|A||{{rint|newyork|G|H|size=10}}|size=G}}
{{SL row|H|P1|S|S|size=G}}
{{SL row|H|P2|S|S|size=G}}
{{SL row|H|T|S|A||{{rint|newyork|A|H|size=10}}|{{rint|newyork|C|H|size=10}}|size=G}}
{{SL row|H|P1|D|D|size=G}}
{{SL row|H|P2|D|D|size=G}}
{{SL row|H|T|D|D|size=G}}
{{SL bottom|H|1}}
{{SL top|V|1|size=G}}
{{SL row|V|T|S|A|L|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|S|A|E|size=G}}
{{SL row|V|T|A|S|E|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|A|S|L|size=G}}
{{SL bottom|V|1}}
South Ferry – Whitehall Street is a complex
formed by two stations connected
with a passageway inside fare control
Hoyt–Schermerhorn
Streets
is a station
serving two lines
A typical express
station serving two
or three services

Terminals[edit]

Old gallery with images:

New templates:

{{SL top|V|1|size=G}}
{{SL row|V|T|B|A|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|AB|S|size=G}}
{{SL bottom|V|1}}
{{SL top|V|1|size=G}}
{{SL row|V|T|AB|A|size=G}}
{{SL row|V|P1|S|S|size=G}}
{{SL row|V|P2|S|S|size=G}}
{{SL row|V|T|AB|A|size=G}}
{{SL bottom|V|1}}

Files[edit]