Difference between revisions of "Template:MapSubregion"

From West Of Vipers Gate
m
 
Line 1: Line 1:
 
<includeonly>[[File:{{{1}}}.svg|thumb]]
 
<includeonly>[[File:{{{1}}}.svg|thumb]]
 +
<table style="margin: 5px auto;">
 +
  <tr><th>Abstract</th></tr>
 +
  <tr><td>{{{abstract}}}</td></tr>
 +
</table>
  
 
== Map ==
 
== Map ==
Line 9: Line 13:
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
== Usage ==
 
== Usage ==
<pre>{{MapSubregion|Glades of Leamingbury|colour=#ADDEA5|background=tmp.png}}</pre>
+
<pre>{{MapSubregion|Glades of Leamingbury|colour=#ADDEA5|background=tmp.png|abstract=Content}}</pre>
 
<dl>
 
<dl>
 
   <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>
Line 19: Line 23:
 
     <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 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.
 
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 11:17, 10 March 2025

Usage

{{MapSubregion|Glades of Leamingbury|colour=#ADDEA5|background=tmp.png|abstract=Content}}
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.
abstract
Descriptive summary in wikitext. Will be included in the map.

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.