Jump to content
Discussions

User:F-sharp/Map documentation

From Undertale Wiki

Testing out DataMap template calls. The documentation shown in the support page is kinda lacking in that department, so I'm hoping to fix that.

Parameters are specified in this GitHub blob. I'll do my best to document each one.

filter

Filters out markers not specified in the template call.

{{Map:Ruins|filter = plot}} gives...

Loading scripts

Comma separated. No spaces.

{{Map:Ruins|filter = plot,signs}} gives...

Loading scripts

max-width

Specifies the maximum width, in pixels, of the map window.

{{Map:Snowdin|max-width = 300}} gives...

Loading scripts

class

Haven't figured this one out yet.

layout

Only accepts mini as the argument, which reduces the size of the map window.

{{Map:Waterfall|layout = mini}} gives...

Loading scripts

marker

Pre-expands the marker specified in the template call, as if it had been clicked.

{{Map:Hotland|marker = calls-undernet-status-update-10}} gives...

Loading scripts

over-marker

Positions and zooms the map to the marker specified in the template call.

{{Map:CORE|over-marker = sublocations-core-branch}} gives...

Loading scripts

open-marker

Seems to function identically to marker.

{{Map:New Home|open-marker = enemies-sans-genocide-route}} gives...

Loading scripts

Specifying markers

Markers are specified by id, which can be located in the source code. The easiest way to get the marker ID is to open the marker on the map window and clicking the chain icon on the upper-right to copy the link to the marker.

The ID is made up of the following segments, separated by hyphens:

  • The marker type, viewable in the source code.
  • The marker name. It resembles the title of the marker shown when opening it. However, letters are converted to lowercase, and spaces and apostrophes are replaced with hyphens. Special characters, such as parentheses, are not included.
  • The marker number. If the title of the marker is the same as another, a number is appended to the end of the ID.