Template:MapPath
From West Of Vipers Gate
Revision as of 19:51, 31 December 2023 by Israfil (talk | contribs) (Created page with "<includeonly>== Map == <span style="background: {{{colour|white}}};">Colour</span> <span>Stroke width: {{{stroke_width|5}}}</span> Category:Paths </includeonly><noinclud...")
Usage
{{MapPath|colour=#E7F79C|stroke_width=5|starts_from=se|ends_to=nw}}
- colour
- A css colour specifier, e.g. a hex code, or a colour name like 'beige'
- stroke_width
- How wide the path should be when displayed on the map; unitless, default is 5.
- starts_from
- One of nw, sw, s, se, ne, n
- ends_to
- One of nw, sw, s, se, ne, n
A Path page should have a Tiles subpage (e.g. Northern River/Tiles) listing the coordinates of tiles in the region. The tiles should be given in one line, in a list delimited by semicolons, each coordinate in the form 'nw,sw', that is a comma separated pair of the northwest coordinate and southwest coordinate. Spaces are ignored and may be used but other whitespace may break fail to load into the map-tiler properly.
starts_from indicates the path should start from the given edge of the first tile, rather than the centre. Similarly, ends_to indicates the path should end at the given edge of the last tile, rather than the centre. Both are optional; when not present the centre will be used.