Template:UK-railway-routemap
This is a route-map template for a UK railway.
- For a key to symbols, see {{railway line legend}}.
- For information on using this template, see Template:Routemap.
- For pictograms used, see Commons:BSicon/Catalogue.
Note: Per consensus and convention, most route-map templates are used in a single article in order to separate their complex and fragile syntax from normal article wikitext. See these discussions [1],[2] for more information.
Usage
This template should be added to all Route Diagram Templates of United Kingdom railways. It adds the following text (without the surrounding box) to an RDT:
It will automatically include the diagram in Category:Templates for railway lines of the United Kingdom.
Adding an optional parameter will include the railway name as a link, for example,
{{UK-railway-routemap|Stockton and Darlington Railway}}
will change the first line of the template to:
Adding an optinal second parameter will change the displayed text of the link, making it a piped link, for example,
>{{UK-railway-routemap|"Little" North Western Railway|North Western Railway}}
will change the first line of the template to:
The optional named parameter |type=
will change “a UK railway” to “a UK alternate text”. For example,
{{UK-railway-routemap|type=[[miniature railway]]}}
will change the first line of the template to:
and,
{{UK-railway-routemap|Ffestiniog Railway|type=[[narrow gauge]] railway}}
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,
{{UK-railway-routemap|the=x|Bristol Temple Meads|type=[[railway station]]}}
will change the first line of the template to:
The optional named parameter |place=
will change “a UK railway” to “a alternate text railway”. For example,
{{UK-railway-routemap|place=Isle of Wight}}
will change the first line of the template to:
and,
{{UK-railway-routemap|the=no|Tramlink|place=[[South London]]|type=[[light rail]] line}}
will change the first line of the template to:
Categories
By default the template will be included in Category:Templates for railway lines of the United Kingdom. However, adding the parameter |cat=
provides a shortcut for other categories:
|cat= |
Category | Text |
---|---|---|
no | none | … a UK railway. |
L or LON or London | Category:Templates for railway lines of London | … a London-area railway. |
N or NI | Category:Templates for railway lines of Northern Ireland | … a Northern Ireland railway. |
S or Scotland | Category:Templates for railway lines of Scotland | … a Scottish railway line and/or company. |
W or Wales | Category:Templates for railway lines of Wales | … a Welsh railway line and/or company. |
T or TfL | Category:Templates for Transport for London | … a Transport for London service or facility. |
B or bus | Category:Templates for bus routes of the United Kingdom | … a (place) bus route or line. |
STN or station | Category:United Kingdom station layout templates* | … a (place) railway station. |
* in addition to Category:Templates for railway lines of the United Kingdom
Note that this parameter is not case sensitive: i.e. |cat=NO
produces the same result as |cat=no
.
The optional named parameter |catidx=
will add a sort key to the category.
See also
- General
- {{Railway-routemap}}
- {{Bus-routemap}}
- {{Road-routemap}}
- {{Trail-routemap}}
- {{Waterway-routemap}}
- Specific
- {{UK-railway-routemap}} United Kingdom
- {{UK-waterway-routemap}} United Kingdom rivers and canals
- {{US-railway-routemap}} United States
- {{NYCS-routemap}} New York City Subway