Template:Location mark/doc

This template places a mark on an image, with an optional label. It is a simplified version of Location mark+.

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 thumbnail image.

If the geographic coordinates of the location are known and a location map template exists then one of the templates in the Location map family should be used. The See also section below lists alternative templates.

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

Place a mark on an image using the and   parameters
The values for the  and   parameters are the pixel coordinates of the location mark when the image is scaled to a width of 1000 pixels.


 * is the pixel offset for the mark from the left edge of an image 1000px wide.
 * is the pixel offset for the mark from the top edge of an image 1000px wide.

There are at least two ways of obtaining these values:


 * 1) Download the image from the image's file page to your computer. Open the image in a graphics editor, such as GIMP or XnView. Scale (resize) the image to a width of 1000px and then note the x, y coordinates when the cursor points to the desired location. Use these values directly.
 * 2) Download the image from the image's file page 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:


 * $1000·x'⁄w =

x$ and  $1000·y'⁄w =

y$


 * where $x'$ and $y'$ are the cursor coordinates, $w$ is the width of the image displayed on your computer and $x$ and $y$ are the values to assign to the  and   parameters.

Place a mark on an image using the and   parameters

 * x% specifies the percent of the distance across the image from the left edge.
 * y% specifies the percent of the distance down from the top edge.

Examples
The first two examples could be duplicated using Location map+.

Using mostly default values


Using background color for labels


Using an invisible mark
