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

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


Adding an optional second parameter will include the railway name as a link, for example,

{{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:

and,

{{railway-routemap|CAN|Yellow Line (Montreal Metro)|type=[[subway]]}}

will change the first line of the template to:

Africa
Asia & Oceania
Europe
North America