This is a universal template for all trail or footpath Route Diagram Templates (RDT). It adds the following text (without the surrounding box) to an RDT:

This is a route-map template for a trail in country.

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 [i],[ii] for more information.

It will also place the template in Category:Trail routemap templates.

Usage

edit

Country is specified by any valid ISO 3166-1 code.

Additional codes

edit

The template also recognizes these unofficial codes:

CodeLocation
Continents
AFRAfrica
AA or ASAAsia
EU or EUREurope
NA or NAANorth America
OC or OCAOceania
SAA or SAMSouth America
Countries & regions
CT or CATCatalonia
KOKorea
NILNorthern Ireland‎
UKUnited Kingdom‎

Optional parameters

edit

When included, the second (optional) parameter should be the parent article of the diagram.

{{Trail-routemap|UK|West Highland Way}}

will change the first line of the template to:

This is a route-map template for the West Highland Way, a trail in the United Kingdom.


Including the optional named parameter |type= will change “a trail in Country” to “a alternate text in Country”. For example,

{{Trail-routemap|UK|type=[[National Trails|National Trail]]}}

will change the first line of the template to:

This is a route-map template for a National Trail in the United Kingdom.

and,

{{Trail-routemap|UK|West Highland Way|type=[[Scotland's Great Trails]]}}

will change the first line of the template to:

This is a route-map template for the West Highland Way, a Scotland's Great Trails in the United Kingdom.


The optional named parameter |the=anything will omit the word “the” before the linked page. For example,

{{Trail-routemap|UK|the=x|Hadrian's Wall Path|type=[[National Trail]]}}

will change the first line of the template to:

This is a route-map template for Hadrian's Wall Path, a National Trail in the United Kingdom.


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 trail in Country” to “a trail in place, Country”. For example,

{{Trail-routemap|UK|Ridgeway (London)|display=Ridgeway |place=[[London]]}}

will change the first line of the template to:

This is a route-map template for the Ridgeway, a trail in London, the United Kingdom.

Categories

edit

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.

The optional named parameter |catidx= will add a sort key to the category.

See also

edit
General
Specific