Template:DW/Map
Template page
More actions
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Template loop detected: Template:DW/Map/doc
The above text is transcluded from Template:DW/Map/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:DW/Map/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:DW/Map/doc. (View all subpages of this page.)
This template displays the map, loaded from maps.runescape.wiki/dw/tiles.
Usage
This template can be used by entering the following on an item, object, or NPC's page.
{{Map
|entity
|width =
|height =
|center =
|zoom =
}}
Parameters
| Parameter | Description | Example |
|---|---|---|
| entity | The name of the item, object, or NPC. This name will retrieve the name from Module:Map/entity.json. |
{{Map|chests}} calls the Module:Map/chests.json page and retrieves the location parameters. |
| width | The width of the map, followed by px. 250px is the standard used for single-entity spawns in a page. Use discretion when incorporating the with parameter if there are multiple points on the map. If multiple points are spread apart, consider ignoring this parameter. | 250px is used for Dust-covered Sketchbook. {{Map|Dust-covered Sketchbook|width=250px|height=250px}}
|
| height | The height of the map, followed by px. 250px is the standard used for single-entity spawns in a page. Use discretion when incorporating the with parameter if there are multiple points on the map. If multiple points are spread apart, consider ignoring this parameter. | 250px is used for Dust-covered Sketchbook. {{Map|Dust-covered Sketchbook|width=250px|height=250px}}
|
| center | The center of the map in x,y format. For single-item spawns, go to its page, and the x,y values in the .json page will be used, where center=x is the y value, and center=y is the .json x value. For multiple points, use the multiple-point centroid formula to calculate the approximate center value. The default value for center is 50400,151200. |
The Bloodblight Cape's location is: "x": 125281, "y": 170452. Inputting the center values in {{Map}} will be: {{Map|Bloodblight Cape|center=170452,125281}} For Ancient Tomes in What Remains is Written, the centroid for all five points is 214719.23,-32169.32, but make sure to flip these values for the center parameter: {{Map|Ancient Tomes|center=-32169.32,214719.23}}
|
| zoom | The zoom level from 1 (default) to 4. |
Zoom 1 = Template:Map Zoom 2 = Template:Map Zoom 3 = Template:Map Zoom 4 = Template:Map |
<templatedata> { "params": { "entity": { "type": "wiki-page-name",
"required": true,
"suggested": true }, "width": { "type": "content", "suggested": true }, "height": { "type": "content", "suggested": true }, "center": { "type": "wiki-page-name",
"suggested": true
}, "zoom": { "type": "number",
"suggested": true
} }, "paramOrder": [ "entity", "width", "height", "center", "zoom" ] } </templatedata>