Difference between revisions of "Template:MapSubregion"

From West Of Vipers Gate
testwiki>Daniel
m
 
m
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
== Map ==
 
== Map ==
<span style="background: {{{colour|white}}};">Base colour</span>
+
<span style="background: {{{colour|white}}}; color: {{{coordinates_colour|black}}};">label</span>
  
 
[[File:{{{background}}}|left|200x200px|thumb|background]]
 
[[File:{{{background}}}|left|200x200px|thumb|background]]
Line 13: Line 13:
 
   <dt>Region</dt><dd>The first parameter should be the name of a (proper) [[:Category:Regions|Region]]</dd>
 
   <dt>Region</dt><dd>The first parameter should be the name of a (proper) [[:Category:Regions|Region]]</dd>
 
   <dt>background</dt><dd>An image uploaded to this wiki</dd>
 
   <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'</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>
 
</dl>
  
A Subregion page should have a Tiles subpage (e.g. [[Deadlands/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.
+
A Subregion page should have a Tiles subpage (e.g. [[Deadlands/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 00:27, 30 December 2023

Usage

{{MapSubregion|Glades of Leamingbury|colour=#ADDEA5|background=tmp.png}}
Region
The first parameter should be the name of a (proper) Region
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 Subregion page should have a Tiles subpage (e.g. Deadlands/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.