Template:Map: Difference between revisions

From Brighter Shores Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
(Set a default style height to prevent flickering of the box height. If Leaflet loads before the height, it can incorrectly calculate the map's default position.)
Line 1: Line 1:
<div class="map" id="map"></div><span class="map-template-data" style="display: none;"><nowiki>{"location":"</nowiki>{{{location}}}<nowiki>"}</nowiki></span><noinclude>{{/doc}}</noinclude>
<div class="map" id="map" style="height: {{{height|300px}}}></div><span class="map-template-data" style="display: none;"><nowiki>{"location":"</nowiki>{{{location}}}<nowiki>"}</nowiki></span><noinclude>{{/doc}}</noinclude>

Revision as of 04:16, 23 November 2024

Template documentation
This documentation is transcluded from Template:Map/doc. [edit] [history] [purge]

This template displays an interactive map.

See the Brighter Shores:Map Project for more details!

Displays an interactive map.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Typetype

'Episode', 'Room' or 'Entity'

Example
Room
Stringrequired
Targettarget

Name of the room, episode or object to display. You can specify multiple items by separating them with a semi-colon (no spaces), or specify everything by using the string 'All'

Example
'Sea Road', 'Sea Road;Little Square', 'All'
Stringrequired
Heightheight

Height of the map, if not the default of 300px.

Example
500px
Stringoptional
Widthwidth

Width of the map, if not the default of 300px.

Example
500px
Stringoptional