قالب:NYCS trains
{{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. Remember that you can conduct experiments, and should test all improvements, in either 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 قالب:NYCS Sixth
- {{NYCS Crosstown}} gives قالب:NYCS Crosstown
- {{NYCS none}} gives قالب:NYCS none
- calls to {{NYCS trains}}:
- {{NYCS trains|Sixth}} gives قالب:NYCS Sixth trains
- {{NYCS trains|Crosstown}} gives قالب:NYCS Crosstown trains
- {{NYCS trains|none}} gives قالب:NYCS none trains
- calls to {{NYCS trains}} with bold parameter:
- {{NYCS trains|Sixth|bold}} gives قالب:NYCS Sixth trains
- {{NYCS trains|Crosstown|bold}} gives قالب:NYCS Crosstown trains
- {{NYCS trains|none|bold}} gives قالب:NYCS none trains
- calls to {{NYCS trains}} with type parameter:
- {{NYCS trains|Sixth|type=route}} gives قالب:NYCS Sixth routes
- {{NYCS trains|Crosstown|type=route}} gives قالب:NYCS Crosstown routes
- {{NYCS trains|none|type=route}} gives قالب:NYCS none routes
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
- 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
- Wikipedia:WikiProject New York City Public Transportation
- Wikipedia:WikiProject New York City Public Transportation/New York City Subway/Services and lines
The above documentation is transcluded from قالب:NYCS trains/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |