| Map display parameters |
| Parameter |
Description |
| {{{1}}} |
Required. Use the name of the map as the first unnamed parameter. For example, specifying England will use the values for England in Module:Location map/data/England if it exists, or {{Location map England}} otherwise. See the examples below. |
| width |
Determines the width of the map in pixels. The default is 240. Do not include px, for example: width=300, not width=300px. |
| float |
Specifies the position of the map on the page. Valid values are left, right, center and none. The default is right. |
| border |
Specifies the color of the 1px map border. The default is lightgrey (see web colors). If set to none, no border will be generated. This parameter is seldom used. |
| caption |
The text of a caption to be displayed below the map. Specifying a caption will cause the map to be displayed with a frame. If caption is defined but is not assigned a value, the map will not be framed and no caption will be displayed. If caption is not defined, the map will not be framed and a default caption will be generated. The default caption is created from the label parameter (or the current page name if label not defined) and the name parameter from map definition template. See the examples below. |
| alt |
Alt text for map; used by screen readers, see WP:ALT. |
| relief |
Any non-blank value (1, yes, etc.) will cause the template to display the map specified in the map definition template as image1, which is usually a relief map. See the example at Location map+/relief. |
| AlternativeMap |
Allows the use of an alternative map. The image must have the same edge coordinates as the location map template. See the example at Location map+/AlternativeMap. |
| overlay_image |
Allows an overlay to be superimposed on the map. This parameter is seldom used. See the example at Location map+/overlay. |
| Label and mark parameters |
| Parameter |
Description |
label1 label2 ... |
The text of the label to display next to the mark. A wiki link can be used. The default if not specified is no label, just the marker. |
label1_size label2_size ... |
The font size to use for the label, given as a percentage of the normal font size (<100 = smaller, >100 = larger). The default is 90. Do not include %, for example: label_size=80, not label_size=80%. |
label1_width label2_width ... |
The width to use for the label, given as an em size; the default width is 6. Do not include em, for example: label_width=7, not label_width=7em. |
position1 position2 ... |
The position of the label relative to the mark. Valid values are left, right, top and bottom. The default is right. |
background1 background2 ... |
The background color to use for the label. See Web colors. The default is no background color, which shows the map image behind the label. |
mark1 mark2 ... |
The name of an image to display as the mark. The default is Red pog.svg ( ). See examples at Commons:Location markers and Commons:Category:Map icons. |
mark1size mark2size ... |
The size of the mark in pixels. The default is 8. Do not include px, for example: marksize=10, not marksize=10px. |
link1 link2 ... |
Specifies a wiki link which will be followed if the reader clicks on the mark. The name of the linked article is displayed when the mouse pointer hovers over the mark. |
coordinates1 coordinates2 ... |
Required. The coordinates using a {{coord}} template. See the Alternative syntax section below for alternatives. |