Difference between revisions of "Template:MapRegion"
From West Of Vipers Gate
m |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>[[File:{{PAGENAME}}.svg|thumb]] | <includeonly>[[File:{{PAGENAME}}.svg|thumb]] | ||
+ | <table style="margin: 5px auto;"> | ||
+ | <tr><th>Abstract</th></tr> | ||
+ | <tr><td>{{{abstract}}}</td></tr> | ||
+ | </table> | ||
== Map == | == Map == | ||
Line 8: | Line 12: | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
== Usage == | == Usage == | ||
− | <pre>{{MapRegion|colour=#E7F79C|background=BW - grasslands.png|coordinates_colour=white}}</pre> | + | <pre>{{MapRegion|colour=#E7F79C|background=BW - grasslands.png|coordinates_colour=white|abstract=Content}}</pre> |
<dl> | <dl> | ||
<dt>background</dt><dd>An image uploaded to this wiki</dd> | <dt>background</dt><dd>An image uploaded to this wiki</dd> | ||
Line 17: | Line 21: | ||
<dd>A css colour specifier, e.g. a hex code, or a colour name like 'beige'; | <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> | will be the colour of the coordinates. Defaults to white.</dd> | ||
+ | <dt>abstract</dt> | ||
+ | <dd>Descriptive summary in wikitext. Will be included in the map.</dd> | ||
</dl> | </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. | 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> | </noinclude> |
Latest revision as of 11:16, 10 March 2025
Usage
{{MapRegion|colour=#E7F79C|background=BW - grasslands.png|coordinates_colour=white|abstract=Content}}
- 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.
- abstract
- Descriptive summary in wikitext. Will be included in the map.
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.