Template:RailRouteData

From MinecraftOnline
Jump to navigation Jump to search

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.
  • coords is a list of coordinates in format x y z or x 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
Coordinates

-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 point and ending at another as defined inside the brackets - they do not need to join to the main line at the correct position (in terms of coords input), but one of their endpoints should originate from the main line. *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.