Difference between revisions of "Template:MapLocation"
From West Of Vipers Gate
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 9: | Line 13: | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
== Usage == | == Usage == | ||
− | <pre>{{MapLocation|0,0|Adderwall Mountains|colour=#B28000|background=tmp.png|context_tiles=0,0; 1,0; 0,1; 1,1}}</pre> | + | <pre>{{MapLocation|0,0|Adderwall Mountains|colour=#B28000|background=tmp.png|abstract=Content|context_tiles=0,0; 1,0; 0,1; 1,1}}</pre> |
<dl> | <dl> | ||
<dt>Coordinates</dt><dd>The first parameter should be the coordinates of the Location</dd> | <dt>Coordinates</dt><dd>The first parameter should be the coordinates of the Location</dd> | ||
Line 20: | Line 24: | ||
<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> | ||
<dt>context_tiles</dt><dd> | <dt>context_tiles</dt><dd> | ||
Coordinates of tiles to give context in a generated submap. 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.</dd> | Coordinates of tiles to give context in a generated submap. 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.</dd> | ||
</dl> | </dl> | ||
</noinclude> | </noinclude> |
Latest revision as of 11:53, 10 March 2025
Usage
{{MapLocation|0,0|Adderwall Mountains|colour=#B28000|background=tmp.png|abstract=Content|context_tiles=0,0; 1,0; 0,1; 1,1}}
- Coordinates
- The first parameter should be the coordinates of the Location
- Region
- The second parameter should be the name of the Region containing the Location
- 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.
- context_tiles
- Coordinates of tiles to give context in a generated submap. 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.