Template:RailRouteData
Computer-readable source code format for FRS rail route data.
For a list of pages using this template, see Category:Rail route data.
Template Format
{{RailRouteData |routename = (optional - defaults to page name) |colour1 = (required) |colour2 = (optional) |coords = (required) }}
Empty Template
{{RailRouteData |routename = |colour1 = |colour2 = |coords = }}
colour1
is a hex colour code (e.g. #bb7520 - note the presence of the # symbol), which determines the colour of the rail route when displayed on the map.- At the moment, rail routes are plotted as
colour1
/white dashed lines that are twice the thickness of boat routes. colour2
is currently not in use.
- At the moment, rail routes are plotted as
coords
is a list of coordinates in formatx y z
orx z
(with y being defaulted to 64), separated by newlines, that defines the path taken by the rail route. Branches that form part of the same rail network can be added by enclosing newline-separated coordinates in the same format in brackets - please see the example for further information.
Example
{{RailRouteData |routename = Obernai Line Extract |colour1 = #ff0000 |colour2 = |coords = -9038 52 -17300 -9765 52 -17300 -9765 52 -17589 -9765 63 -17600 -9765 63 -17638 (-9749 116 -6816 -9756 116 -6816 -9756 30 -6816 -10128 30 -6816 -10138 40 -6816 -10648 40 -6816 -10648 40 -6815 -10648 64 -6781 -10648 64 -6786) (-9749 116 -9060 -9734 116 -9060 -9734 30 -9060 -7773 30 -9060 -7773 30 -8860 -4566 30 -8860) }}
Produces the formatted page:
Route Name | Primary Colour | Secondary Colour |
---|---|---|
Obernai Line Extract | #ff0000 |
-9038 52 -17300 -9765 52 -17300 -9765 52 -17589 -9765 63 -17600 -9765 63 -17638 (-9749 116 -6816 -9756 116 -6816 -9756 30 -6816 -10128 30 -6816 -10138 40 -6816 -10648 40 -6816 -10648 40 -6815 -10648 64 -6781 -10648 64 -6786) (-9749 116 -9060 -9734 116 -9060 -9734 30 -9060 -7773 30 -9060 -7773 30 -8860 -4566 30 -8860)
Explanation of Coords
There is one "main line"*, and two branches. The two branches are arbitrary "secondary/tertiary etc." lines starting at one set of coords and ending at another as defined inside the brackets. *arbitrary main as all branches of a network are treated as one unified network on the map.
Data extracted and simplified from Obernai Line Railway Data.