{{NYCS {{{1}}}|time=|exclude=}}
![]() | This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Usage
This template formats the services that operate on a New York City Subway line. It calls one of service templates and adds the word train or trains after it, according to the number of services that the called template returns. For example:
- direct calls to service templates:
- {{NYCS Sixth}} gives B, D, F, <F>, and M
- {{NYCS Crosstown}} gives G
- {{NYCS none}} gives no regular service
- calls to {{NYCS trains}}:
- {{NYCS trains|Sixth}} gives B, D, F, <F>, and M trains
- {{NYCS trains|Crosstown}} gives G train
- {{NYCS trains|none}} gives no regular service
- calls to {{NYCS trains}} with bold parameter:
- {{NYCS trains|Sixth|bold}} gives B, D, F, <F>, and M trains
- {{NYCS trains|Crosstown|bold}} gives G train
- {{NYCS trains|none|bold}} gives no regular service
- calls to {{NYCS trains}} with type parameter:
- {{NYCS trains|Sixth|type=route}} gives B, D, F, <F>, and M routes
- {{NYCS trains|Crosstown|type=route}} gives G route
- {{NYCS trains|none|type=route}} gives no regular service
Syntax
{{ NYCS trains |1=<service template>|2=bold|time=...|exclude=... }}
- 1: service template name, not including the NYCS prefix (see examples above; it's the only required parameter)
- 2: the word bold or omitted; if present, the output is formatted in bold, except for the word train/trains. If the route name given is a long name like "no regular service", it does not bold the route.
- apos: adds a possessive, singular
train's
or pluraltrains'
- time: this parameter is passed as is to the called template
- exclude: this parameter is passed as is to the called template
- type: if omitted, the template adds the word train/trains;
- if is equal to route or routes, the template adds the word route/routes;
- if is equal to service or services, the template adds the word service/services
See also
This template formats the services that operate on a New York City Subway line. It is used to call a New York City Subway service template and adds the word "train" or "trains" afterward, according to the number of services that the called template returns.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | Name of the service template, without the "NYCS" prefix. These templates can be found in the subcategories of [[:Category:New York City Subway line templates]].
| Unknown | optional |
2 | 2 | Add "bold" to format the services in bold | Unknown | optional |
time | time | Display method. See [[Template:NYCS time 2/doc]] for options
| Unknown | optional |
exclude | exclude | Exclude a service from being displayed in the given template
| Unknown | optional |
type | type | Add "routes" or "services" instead of "trains"
| Unknown | optional |
apos | apos | Adds a possessive "train's" or "trains'"
| Unknown | optional |