Optional parameters
When included, the second (optional) parameter should be the parent article of the diagram.
{{Railway-routemap|UK|Stockton and Darlington Railway}}
will change the first line of the template to:
Including the optional named parameter |type=
will change “a railway in Country” to “a alternate text in Country”. For example,
{{Railway-routemap|FRA|type=high-speed rail line}}
will change the first line of the template to:
This is a route-map template for a high-speed rail line in France.
and,
{{Railway-routemap|CAN|Yellow Line (Montreal Metro)|type=[[Rapid transit|subway]]}}
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,
{{Railway-routemap|NL|the=x|Centraal Station|type=[[railway terminal]]}}
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. This is useful for named train services. For example,
{{Railway-routemap|US|Heartland Flyer|display=''Heartland Flyer''|type=[[Amtrak]] train service}}
and
{{Railway-routemap|US|Heartland Flyer|display=i|type=[[Amtrak]] train service}}
will both change the first line of the template to:
The optional named parameter |place=
will change “a railway in Country” to “a railway in place, Country”. For example,
{{Railway-routemap|IN|place=[[Bangalore]]}}
will change the first line of the template to:
Categories
By 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=s
or =stn
or =station
will also add the template to either Category:Station layout templates or the appropriate sub-category, and change the first line of the template to:
This is a route-map template for a station in country.
Setting |cat=seg
or =segment
will also add the template to Category:Route diagram template segments, and change the first line of the template to:
For Australia (ISO 3166-1 country code AU or AUS), setting the category to one of the state abbreviations will include the template in the appropriate sub-category:
More information |cat=, State ...
Close
This parameter is also not case sensitive.
The optional named parameter |catidx=
will add a sort key to the category.