Template:Music map

From RuneRealm Wiki
Jump to navigation Jump to search
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