# வார்ப்புரு:Location map+/doc

## Parameters

**Parameters for Location map+**  
| <tt>}</tt> | Required. Use the name of the map as the first unnamed parameter. For example, specify *England* to use the values in . See the examples below. |  |
| --- | --- | --- |
| <tt>width</tt> | Determines the width of the map in pixels, overriding any default values. Do not include <code>px</code>, for example: <code>width=300</code>, not <code>width=</code>. |  |
| <tt>default_width</tt> | Determines the default width of the map in pixels, intended for use by templates e.g. place infoboxes. The default value is 240. Do not include <code>px</code>. This value will be multiplied by the <code>defaultscale</code> parameter specified in individual map templates, if it exists, in order to achieve an appropriate size for vertical maps. For example if <code>default_width=200</code> is given, a map of Thailand will be displayed with a width of 200 * 0.57 = 114 pixels (as specified in Template:Location map Thailand). |  |
| <tt>float</tt> | Specifies the position of the map on the page. Valid values are <code></code>, <code></code>, <code></code> and <code></code>. The default is <code></code>. |  |
| <tt></tt> | Specifies the color of the map . The default is *lightgrey* (see web colors). If set to <code></code>, no will be generated. This parameter is seldom used. |  |
| <tt>caption</tt> | The text of a caption to be displayed below the map. Specifying a caption will cause the map to be displayed with a . If <code>caption</code> is defined but is not assigned a value, the map will not be framed and no caption will be displayed. If <code>caption</code> is not defined, the map will not be framed and a default caption will be generated. The default caption is created from the <tt>label</tt> parameter (or the current page name if label not defined) and the <tt>name</tt> parameter from map definition template. See the examples below. |  |
| <tt>alt</tt> | Alt text for map; used by screen readers, see WP:ALT. |  |
| <tt>relief</tt> | Any non-blank value (1, yes, etc.) will cause the template to display the map specified in the map definition template as <tt>image1</tt>, which is usually a relief map. See the example at Location map+/relief. |  |
| <tt>AlternativeMap</tt> | 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. |  |
| <tt>overlay_image</tt> | Allows an overlay to be superimposed on the map. This parameter is seldom used. See the example at Location map+/overlay. |  |
| <tt>places</tt> | Specifies one or more place markers using <code>Location map~<code>. | } |  
**Parameters for Location map~**  
| <tt>}</tt> | Required. Use the name of the map as the first unnamed parameter. For example, specify *England* to use the values in . See the examples below. |
| --- | --- |
| <tt>label</tt> | 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. |
| <tt>label_size</tt> | 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 <code>%</code>, for example: <code>label_size=80</code>, not <code>label_size=80%</code>. |
| <tt>position</tt> | The position of the label relative to the mark. Valid values are <code></code>, <code></code>, <code>top</code> and <code>bottom</code>. The default is <code></code>''. |
| <tt>background</tt> | 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. |
| <tt>mark</tt> | The name of an image to display as the mark. The default is . See examples at Commons:Location markers and Commons:Category:Map icons. |
| <tt>marksize</tt> | The size of the mark in pixels. The default is 8. Do not include <code>px</code>, for example: <code>marksize=10</code>, not <code>marksize=</code>. |
| <tt>link</tt> | 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. |
| <tt>lat_deg</tt> | Required. The degrees of latitude. This value can be specified using decimal degrees and when this format is used minutes and seconds should not be specified.
}}  
== Available map templates ==  
Location map templates can be found using these sources:  
:List of templates - 1050 templates available when the list was generated.
::Category:Location map templates - templates sorted by category.
:Special:WhatLinksHere/Template:Location map/Info - a search that might help.
:Special:Prefixindex/Template:Location map - another search that might help.  
== Examples ==  
This example does not designate the <code>caption</code> parameter. It demonstrates the use of the defaults. Notice that the default caption is the page name followed by the map name in parenthesis and that the label position is automatically adjusted if it is too close to an edge.  
<pre>
</pre>  
This example uses a designated but empty <code>caption</code>. It demonstrates coordinates using decimal degrees and a mark with a link.  
<pre>  
</pre>  
This example uses <code>caption</code> with an assigned value. It demonstrates coordinates in degree, minute, second format, a relief map, label background color and linked labels.  
Also see the examples on the Location map page, as well as:
* Template:Location map+/relief, an example using the *relief* parameter
* Template:Location map+/AlternativeMap, an example using the *AlternativeMap* parameter
* Template:Location map+/overlay, an example using the *overlay_image* parameter |