User:F-sharp/Map documentation
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.
Filters out markers not specified in the template call.
{{Map:Ruins|filter = plot}} gives...
Comma separated. No spaces.
{{Map:Ruins|filter = plot,signs}} gives...
Specifies the maximum width, in pixels, of the map window.
{{Map:Snowdin|max-width = 300}} gives...
Haven't figured this one out yet.
Only accepts mini as the argument, which reduces the size of the map window.
{{Map:Waterfall|layout = mini}} gives...
Pre-expands the marker specified in the template call, as if it had been clicked.
{{Map:Hotland|marker = calls-undernet-status-update-10}} gives...
Positions and zooms the map to the marker specified in the template call.
{{Map:CORE|over-marker = sublocations-core-branch}} gives...
Seems to function identically to marker.
{{Map:New Home|open-marker = enemies-sans-genocide-route}} gives...
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.