User:Tinlinkin/NYCS time 2/doc
This is a documentation subpage for User:Tinlinkin/NYCS time 2. It may contain usage information, categories and other content that is not part of the original user template page. |
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 C E |
{{ NYCS Eighth south | time=text }}
|
A (all times) C (all except late nights) E (all times) |
{{ NYCS Eighth south | time=full }}
|
A (all times) C (all except late nights) E (all times) |
{{ NYCS Eighth south | time=bullets }}
|
|
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 |
{{ 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) |
{{ NYCS Z skip | time=bullets |skip=Gates Avenue |line=BMT Jamaica Line }}
|
See also
[edit]- Wikipedia:WikiProject New York City Public Transportation/New York City Subway/Services and lines
- Wikipedia:WikiProject New York City Public Transportation