Template:NYCS trains

From blackwiki
Jump to navigation Jump to search

{{NYCS {{{1}}}|time=|exclude=}}

Template documentation[view] [edit] [history] [purge]

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:
Script error: No such module "Template link general". gives B, ​D, ​F, <F>, and ​M
Script error: No such module "Template link general". gives G
Script error: No such module "Template link general". gives no regular service
Script error: No such module "Template link general". gives B, ​D, ​F, <F>, and ​M trains
Script error: No such module "Template link general". gives G train
Script error: No such module "Template link general". gives no regular service
Script error: No such module "Template link general". gives B, ​D, ​F, <F>, and ​M trains
Script error: No such module "Template link general". gives G train
Script error: No such module "Template link general". gives no regular service
Script error: No such module "Template link general". gives B, ​D, ​F, <F>, and ​M routes
Script error: No such module "Template link general". gives G route
Script error: No such module "Template link general". 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 plural 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

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.

Template parameters

ParameterDescriptionTypeStatus
11

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]].

Example
Sixth
Unknownoptional
22

Add "bold" to format the services in bold

Unknownoptional
Timetime

Display method. See [[Template:NYCS time 2/doc]] for options

Example
bullets
Unknownoptional
Excludeexclude

Exclude a service from being displayed in the given template

Example
B
Unknownoptional
Typetype

Add "routes" or "services" instead of "trains"

Example
route
Unknownoptional
Aposapos

Adds a possessive "train's" or "trains'"

Example
y
Unknownoptional