Difference between revisions of "Template:MapRegion"
From West Of Vipers Gate
m |
m |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | [[File:{{PAGENAME}}.svg|thumb]] | + | <includeonly>[[File:{{PAGENAME}}.svg|thumb]] |
== Map == | == Map == | ||
− | <span style="background: {{{colour|white}}};"> | + | <span style="background: {{{colour|white}}}; color: {{{coordinates_colour|black}}};">label</span> |
− | [[File:{{{background}}}|200x200px| | + | [[File:{{{background}}}|left|200x200px|thumb|background]] |
+ | [[Category:Regions]] | ||
+ | </includeonly><noinclude> | ||
+ | == Usage == | ||
+ | <pre>{{MapRegion|colour=#E7F79C|background=BW - grasslands.png|coordinates_colour=white}}</pre> | ||
+ | <dl> | ||
+ | <dt>background</dt><dd>An image uploaded to this wiki</dd> | ||
+ | <dt>colour</dt> | ||
+ | <dd>A css colour specifier, e.g. a hex code, or a colour name like 'beige'; | ||
+ | will be the colour behind the background picture.</dd> | ||
+ | <dt>coordinates_colour</dt> | ||
+ | <dd>A css colour specifier, e.g. a hex code, or a colour name like 'beige'; | ||
+ | will be the colour of the coordinates. Defaults to white.</dd> | ||
+ | </dl> | ||
− | + | A Region page should have a Tiles subpage (e.g. [[Sprawling Grasses/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 fail to load into the map-tiler properly. | |
− | [[ | + | </noinclude> |
− | </ |
Latest revision as of 00:25, 30 December 2023
Usage
{{MapRegion|colour=#E7F79C|background=BW - grasslands.png|coordinates_colour=white}}
- background
- An image uploaded to this wiki
- colour
- A css colour specifier, e.g. a hex code, or a colour name like 'beige'; will be the colour behind the background picture.
- coordinates_colour
- A css colour specifier, e.g. a hex code, or a colour name like 'beige'; will be the colour of the coordinates. Defaults to white.
A Region page should have a Tiles subpage (e.g. Sprawling Grasses/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 fail to load into the map-tiler properly.