Template:Music map

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:38, 17 October 2024 (Created page with "<includeonly><div id="musicMap">{{#if:{{{nopreprocess|}}}| {{#invoke:Music map|main}} |{{#tag:mapframe |{{#invoke:Music map|main}} |width={{{width|500}}} |height={{{height|500}}} |x={{{x|3200}}} |y={{{y|3200}}} |zoom={{{zoom|1}}} |mapid=-1 |align={{{align|center}}} |frameless=1 |group=1 }} }}{{#var:tracklist}}</div></includeonly><noinclude>{{/doc}}</noinclude>"). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation
This documentation is transcluded from Template:Music map/doc. [edit] [history] [purge]
Template:Music map invokes function main in Module:Music map using Lua.

This template takes a list of unnamed parameters that specify polygons on the world map, prefixed by the music track name. For relevant music tracks, the popup text when clicking on the track's polygon will omit the (music track) page suffix. Example:

{{Music map|width=300|height=300|x=3232|y=3232|align=right|zoom=0
|categories=[[Is members only::false]]
}}
-1-2

This template may also take a nopreprocess parameter if the output should not be processed into a map.

The template also has an optional smw parameter which can be set to hist to obtain the historical map data where available, or onlyhist to only obtain the historical data, and ignore all current maps.

Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

Generate a map with tiles for each music track's unlock location(s).

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Categoriescategories

Which categories to filter on

Example
[[Is members only::false]]
Unknownoptional
Map widthwidth

The width of the map

Default
500
Numberoptional
Map heightheight

The height of the map

Default
500
Numberoptional
Center-Xx

X coordinate to center map on

Default
3200
Numberoptional
Center-Yy

Y coordinate to center map on

Default
3200
Numberoptional
Zoom levelzoom

Default zoom level

Default
1
Numberoptional
Alignalign

How to align the map

Default
center
Stringoptional
SMWsmw

Which SMW property to retrieve; empty is the default location JSON.

Example
hist
Stringoptional