Template:Bus-routemap/doc
This is a documentation subpage for Template:Bus-routemap. It may contain usage information, categories and other content that is not part of the original template page. |
This is a universal template for bus and trolleybus Route Diagram Templates (RDT). It adds the following text (without the surrounding box) to an RDT:
It will also place the template in Category:Bus routemap templates or the appropriate country-based subcategory.
Usage
changeCountry is specified by any valid ISO 3166-1 code.
Additional codes
changeThe template also recognizes these unofficial codes:
Code | Location |
---|---|
AFR | Africa |
AA or ASA | Asia |
CT or CAT | Catalonia |
EU or EUR | Europe |
NIL | Northern Ireland |
UK | United Kingdom |
Optional parameters
changeWhen included, the second (optional) parameter should be the parent article of the diagram.
{{Bus-routemap|UK|Cambridgeshire Guided Busway}}
will change the first line of the template to:
Including the optional named parameter |type=
will change “a bus route in Country” to “a alternate text in Country”. For example,
{{Bus-routemap|UK|type=[[guided bus]] system}}
will change the first line of the template to:
and,
{{Bus-routemap|UK|Cambridgeshire Guided Busway|type=[[guided bus]] system}}
will change the first line of the template to:
The optional named parameter |the=
anything will omit the word “the” before the linked page. For example,
{{Bus-routemap|US|the=x|CMAX|type=[[bus rapid transit]] line}}
will change the first line of the template to:
The optional named parameter |display=
will replace the text of the article link. If display
is set to either I
or i
the article link will automatically be italicized.
The optional named parameter |place=
will change “a bus route in Country” to “a bus route in place, Country”. For example,
{{Bus-routemap|US|J Line (Los Angeles Metro)|display=J Line |place=[[Los Angeles]]}}
will change the first line of the template to:
Categories
changeBy default the template will be included in the appropriate category for that country. However, adding the parameter |cat=no
will exclude the template from all categories. Note that this parameter is not case sensitive: i.e. |cat=NO
produces the same result as |cat=no
.
Setting |cat=brt
will include the template in Category:Bus rapid transit routemap templates and change the first line of the template to:
The optional named parameter |catidx=
will add a sort key to the category.
See also
change