Template

LinesOverlay

From Dogcraft Wiki

No edit summary
No edit summary
Line 14: Line 14:
line yellow 248,-139 244,-136 245,-130 253,-126 279,-126 304,-119 312,-111 315,-99 315,-56 318,-47 323,-43 328,-41 353,-41 361,-38 363,-34 365,-29 365,-13 367,-7 373,-2 383,0 389,6
line yellow 248,-139 244,-136 245,-130 253,-126 279,-126 304,-119 312,-111 315,-99 315,-56 318,-47 323,-43 328,-41 353,-41 361,-38 363,-34 365,-29 365,-13 367,-7 373,-2 383,0 389,6
}}
}}
This template creates lines and icons based on lists of coordinates.
This template creates lines and icons based on lists of coordinates.<br>
There are 5 types of icons available:
There are 5 types of icons available:<br>
- station: an icon of a train for SRN rail stations
- station: an icon of a train for SRN rail stations<br>
- port: an icon of an anchor for CSC ports
- port: an icon of an anchor for CSC ports<br>
- shelter: an icon of a horse for RHN shelters
- shelter: an icon of a horse for RHN shelters<br>
- portal: an icon of a doorway/archway for nether portals or NTN builds
- portal: an icon of a doorway/archway for nether portals or NTN builds<br>
- icon: an arbitrary fontawesome icon
- icon: an arbitrary fontawesome icon<br>
All these are created by a line starting with the icon type followed by a space and then a set of coordinates noted as x,z (eg: 500,-200)
All these are created by a line starting with the icon type followed by a space and then a set of coordinates noted as x,z (eg: 500,-200)<br>
For type icon after the coordinates (separated with a single space) put the fa classes. (multiple classes are separated by single spaces)
For type icon after the coordinates (separated with a single space) put the fa classes. (multiple classes are separated by single spaces)<br>


Lines are created from any line starting with "line" followed by a css color value (separated by a single space), an optional width value (separated from the color with a single colon ':') and a list of coordinates noted as x,z and separated by single spaces (eg: 200,500 200,120 180,100). Lines are drawn from the coordinates in segments, from one point to the next.
Lines are created from any line starting with "line" followed by a css color value (separated by a single space), an optional width value (separated from the color with a single colon ':') and a list of coordinates noted as x,z and separated by single spaces (eg: 200,500 200,120 180,100). Lines are drawn from the coordinates in segments, from one point to the next.<br>


A custom coordinate offset and maximum size of the output can be specified in a line starting with "info". This accepts 2 sets of 'coordinates' separated by a single space.
A custom coordinate offset and maximum size of the output can be specified in a line starting with "info". This accepts 2 sets of 'coordinates' separated by a single space.<br>
The first set of coordinates provides an offset by setting the top-left corner of the output to the given coordinates.
The first set of coordinates provides an offset by setting the top-left corner of the output to the given coordinates.<br>
The second set of coordinates provides the maximum width and height and with that also the aspect ratio of the output.
The second set of coordinates provides the maximum width and height and with that also the aspect ratio of the output.<br>
Eg: "info 500,-1000 1000,500" will set the top-left corner to be at coordinates x:500, z:-1000 and will set the max width to 1000, the max height to 500 and the aspect-ratio to 1000/500 = 2/1.
Eg: "info 500,-1000 1000,500" will set the top-left corner to be at coordinates x:500, z:-1000 and will set the max width to 1000, the max height to 500 and the aspect-ratio to 1000/500 = 2/1.<br>
</noinclude>
</noinclude>

Revision as of 11:46, 21 March 2024



This template creates lines and icons based on lists of coordinates.
There are 5 types of icons available:
- station: an icon of a train for SRN rail stations
- port: an icon of an anchor for CSC ports
- shelter: an icon of a horse for RHN shelters
- portal: an icon of a doorway/archway for nether portals or NTN builds
- icon: an arbitrary fontawesome icon
All these are created by a line starting with the icon type followed by a space and then a set of coordinates noted as x,z (eg: 500,-200)
For type icon after the coordinates (separated with a single space) put the fa classes. (multiple classes are separated by single spaces)

Lines are created from any line starting with "line" followed by a css color value (separated by a single space), an optional width value (separated from the color with a single colon ':') and a list of coordinates noted as x,z and separated by single spaces (eg: 200,500 200,120 180,100). Lines are drawn from the coordinates in segments, from one point to the next.

A custom coordinate offset and maximum size of the output can be specified in a line starting with "info". This accepts 2 sets of 'coordinates' separated by a single space.
The first set of coordinates provides an offset by setting the top-left corner of the output to the given coordinates.
The second set of coordinates provides the maximum width and height and with that also the aspect ratio of the output.
Eg: "info 500,-1000 1000,500" will set the top-left corner to be at coordinates x:500, z:-1000 and will set the max width to 1000, the max height to 500 and the aspect-ratio to 1000/500 = 2/1.

This page was last modified on 21 March 2024, at 11:46. (59 days ago)