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



This template places one or more marks on an image, with optional labels. The helper template can be used one or more times to generate the marks with labels. For labels only, the template can place each colored label, of any font size, onto the image.  

Other templates are more capable of superimposing one image on another. This template centers a mark over a location on any image using coordinate values that are relative. The size of the composite image can changed without changing the relative positions of the markers. The composite image can be displayed as a simple image, a bordered image or a image.  

If the geographic coordinates of the locations are known and a location map template exists, then one of the templates in the {Location_map} family should be used instead. The See-also section, below, lists alternative templates.  

## Usage


## Parameters
**Parameters for Location map+**

| <code>image</code> | Required. The name of an image file. |  |
| --- | --- | --- |
| <code>overlay</code> | The name of an image file to superimpose on the image. It should be the same size and have a transparent background. |  |
| <code>width</code> | Determines the width of the image in pixels. The default is . For example <code>width=240</code> and not <code>width=</code>. |  |
| <code>caption</code> | The caption text displays below the image if the option is used. See the examples. |  |
| <code>alt</code> | Alt text for the map. See WP:ALT. If no <code>alt</code> text is provided the <code>caption</code> text will be used. |  |
| <code>type</code> | Determines the display format. Valid values are <code></code>, and <code></code>. The <code></code> option generates output similar to <code></code>, while the <code></code> option generates output similar to <code></code>. If no valid value is assigned, the output will not be framed or bordered. See below and this page. |  |
| <code>float</code> | Determines the position of the image on the page. Valid values are <code></code>, <code></code>, <code></code> and <code></code>. The default is <code></code>''. |  |
| <code>marks</code> | Places one or more marks on the image using the template . See below. | } |

**Parameters for Location mark~**

| <code>width</code> | The width of the image. The default is . *Must* be the same as the width of the image. |  |
| --- | --- | --- |
| <code>label</code> | Optional. The text of the label to display next to the mark. The text can be wiki linked. |  |
| <code>position</code> | 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>''. If is assigned then the template will place the label either to the or the depending on the location of the mark. |  |
| <code>font_size</code> | The font size to use for the label as a percentage. The default is 90%. For example <code>font_size=80<code>. |  |
| <code>background</code> | The background color to use for the label text. See Web colors. By default the background color is inherited from the image behind the label. |  |
| <code>mark</code> | The name of an image to display as the mark. The default is . Go here and here for some examples. |  |
| <code>mark_width</code> | The width of the mark in pixels. The default is . For example <code>mark_width=7</code> and not <code>mark_width=</code>. Labels do not work well with large mark images. This template is not intended to generate overlays. See . |  |
| <code>mark_link</code> | Specifies a wiki link which will be followed if the reader clicks on the mark. The name of the linked article will be displayed as a tool tip when the mouse pointer hovers over the mark. |  |
| <code>mark_alt</code> | Alt text for the mark image. See WP:ALT. If no <code>mark_alt</code> text is provided the <code>label</code> text will be used. |  |
| <code>x</code>
<code>y</code> | Specifies the position of the marker on the image. The coordinates of the marker in pixels based on a map with a 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 marker on the image. <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. | } |

**Parameters for Location mark label**

| <code>label</code> | Text of the label to display, which can be wiki-linked. |  |
| --- | --- | --- |
| <code>lwidth</code> | Width of the label to display, before wrapping (default: lwidth=18em). |  |
| <code>lheight</code> | Line-height of the label to display, for interline spacing (default: lheight=111%). |  |
| <code>position</code> | 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>''. If is assigned then the template will place the label either to the or the depending on the location of the mark. |  |
| <code>size</code> | Font size to use for the label. Default is 90%. Example: <code>size=80<code>. |  |
| <code>color</code> | The foreground color to use for the label text. See Web colors. Default: black. Examples: color=purple, or color=#0099EE (green-blue). |  |
| <code>bg</code> | The background color to use for the label text. See Web colors. By default, the background color is inherited from the image behind the label. Examples: bg=darkorange, or bg=#0099EE (green-blue). |  |
| <code>mark</code> | The name of an image to display as the mark. The default is . Go here and here for some examples. |  |
| <code>mark_width</code> | Width of the mark in pixels. The default is 0 (suppressed). For example <code>mark_width=7</code>. |  |
| <code>mark_link</code> | Specifies a wiki link which will be followed if the reader clicks on the mark. |  |
| <code>mark_alt</code> | Alt text for a mark. See WP:ALT. Defaults to <code>label</code>. |  |
| <code>x</code> or <code>x%</code> | Location -to- of label along horizontal axis. See below. |  |
| <code>y</code> or <code>y%</code> | Location top-to-bottom of label along vertical axis. See below. | } |

## Mark placement parameters
There are two ways to generate a marker on a map.  

### Place a mark on an image using the <code>x</code> and <code>y</code> parameters
The values for the <code>x</code> and <code>y</code> parameters are the pixel coordinates of the location mark when the image is scaled to a width of 1000 pixels.  

:<code>x</code> is the pixel offset for the mark from the edge of an image wide.  
:<code>y</code> is the pixel offset for the mark from the top edge of an image wide.  

There are at least two ways of obtaining these values:  

1. Download the image from the image's to your computer. Open the image in a graphics editor, such as GIMP or XnView. Scale (resize) the image to a width of and then note the x, y coordinates when the cursor points to to the desired location. Use these values directly.
1. Download the image from the image's to your computer. Open the image in any image viewer that displays the coordinates of the cursor position, such as Paint from Microsoft. Note the x, y coordinates when the cursor points to the location. Then:

::&nbsp; and&nbsp;  

::where and are the cursor coordinates, is the width of the image displayed on your computer and and are the values to assign to the <code>x</code> and <code>y</code> parameters.  

### Place a mark on an image using the <code>x%</code> and <code>y%</code> parameters
:x% specifies the percent of the distance across the image from the edge.  
:y% specifies the percent of the distance down from the top edge.  

## The **<code>type</code>** parameter
<div>  
</div>  

## Examples
The first two examples could be duplicated using .  

### Using mostly default values

<pre>  

</pre>  

### Using background color for labels

<pre>  

</pre>  

### Using an invisible mark

<pre>  

</pre>