Jump to content

User:Tinlinkin/NYCS time 2/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

This template formats the links for New York City Subway services and the time periods in which they operate. This template is not to be called directly from within articles.

Parameters

[edit]

An NYCS service template will call NYCS time 2. These are the parameters to be called:

  • [first unnamed parameter]: the name of the service
  • icon: the name of the service icon–this is the same value as the value used in Template:NYCS SSI
  • text: the text for describing the times of operation for the service
  • time: This parameter must be formatted as follows: time={{{time|}}}. See below.


The typical code is as follows:

{{NYCS time 2|A|icon=alltimes|text=all times|time={{{time|}}} }}

For a skip-stop service such as the Z, here is an example:

{{NYCS time 2|Z|icon=rushpeak|text=rush hours, peak direction|time={{{time|}}}}} skips to [[{{{skip}}} ({{{line}}})|{{{skip}}}]]


{{NYCS time 2|6|icon=alltimes|text=all times|dicon=rushpeak|dtext=weekdays until 8:45 p.m., peak direction|time={{{time|}}}}}

The following table shows the calls to the template using Template:NYCS Eighth south:

Parameter Output
Third Avenue BMT Canarsie Line, IRT Pelham Line, IRT White Plains Road Line
Syntax (using {{NYCS Eighth south}}) Result
{{ NYCS Eighth south }} A, ​C, and ​E
{{ NYCS Eighth south | time=show }} A all timesC all except late nightsE all times
{{ NYCS Eighth south | time=text }} A (all times)
C (all except late nights)
E (all times)
{{ NYCS Eighth south | time=full }} A all times (all times)
C all except late nights (all except late nights)
E all times (all times)
{{ NYCS Eighth south | time=bullets }} "A" train"C" train"E" train

For skip-stop services, the formatting is slightly different:

Syntax (using {{NYCS Z skip }}) Result
{{ NYCS Z skip |skip=Gates Avenue |line=BMT Jamaica Line }} Z
{{ NYCS Z skip | time=show |skip=Gates Avenue |line=BMT Jamaica Line }} Z rush hours, peak direction
{{ NYCS Z skip | time=text |skip=Gates Avenue |line=BMT Jamaica Line }} Z (rush hours, peak direction)
{{ NYCS Z skip | time=full |skip=Gates Avenue |line=BMT Jamaica Line }} Z rush hours, peak direction (rush hours, peak direction)
{{ NYCS Z skip | time=bullets |skip=Gates Avenue |line=BMT Jamaica Line }} "Z" train

See also

[edit]