# வார்ப்புரு:Infobox map/doc



This provides a way to display a map in an . Optionally a location marker can be included.  

## Usage
### Parameter descriptions
| <code>map</code> | The name of the map to be displayed. This is the only required parameter. |  |
| --- | --- | --- |
| <code>map_width</code> | The width of the map image to be displayed. For example <code>map_width=220</code> and not <code>map_width=</code>. |  |
| <code>default_width</code> | When this template is used in another template, e.g. an infobox, the default width of the map image preferred by the infobox should be specified here. For example <code>map_width=220</code>. When used with location maps, this value may be modified by a certain value if specified in the location map template. The default value is . |  |
| <code>relief</code> | Selects a relief map when assigned any value. This only works when the geographical coordinates method is used and then only for a few maps. See Map display methods. |  |
| <code>map_alt</code> | Alt text for the map. A visually impaired reader who uses a screen reader will have access to this text. See WP:ALT. |  |
| <code>map_caption</code> | The caption that appears below the map if one is required. |  |
| <code>mark</code> | The image file that will be used to mark the location on the map. The default is . See below. |  |
| <code>mark_width</code> | The width of the marker image to be displayed. For example <code>mark_width=8</code> and not <code>mark_width=</code>. The default width is . |  |
| <code>label</code> | A text message that will be displayed next to the marker. |  |
| <code>label_position</code> | The position of a label with respect to the marker. Valid values are <code></code>, <code></code>, <code>top</code>, <code>bottom</code> and <code></code>. |  |
| -<code>background</code> | The background color for the label. If no value is assigned the background will be transparent. See Web colors. |  |
| <code>lat</code>
<code>long</code> | Specifies the latitude and longitude of the location when the geographical coordinates method is used. This value must be specified as a signed decimal degree. See below. |  |
| <code>x</code>
<code>y</code> | Specifies the position of the location marker. The coordinates of the marker in pixels based on a map width of 1000 pixels. The template will scale these values for proper display. See below. |  |
| <code>x%</code>
<code>y%</code> | Specifies the position of the location marker. <code>x%</code> specifies the percentage of the distance across the image from the edge and <code>y%</code> specifies the percentage of the distance down from the top edge. See below. | } |

## Map display methods
There are three methods which can display a mark to on a map. These examples use which uses this template as a back end.  

### Display any image
Another option allows the display of any image without a location mark.  

<pre>  
</pre>  

## Geographical coordinates
The template can be used to allow additional parameters for the entry of geographical coordinates. The template can be used with or without named parameters. If the unnamed option is used all parameters must be supplied but they can be void. The following markup can be used to allow the template user to enter coordinates. These parameters names are recommended by .  

<pre>  
| lat =  
| long = </pre>  

To display coordinates in the Infobox two methods can be used. The template can be used to display coordinates entered using the method discussed above. If the X,Y method is used to display a marker then the template can be used. For examples of coordinate entry see coordinate examples.