<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://escforumwiki.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ALocation_mark%2Fdoc</id>
	<title>Template:Location mark/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://escforumwiki.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ALocation_mark%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://escforumwiki.com/index.php?title=Template:Location_mark/doc&amp;action=history"/>
	<updated>2026-04-08T22:53:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://escforumwiki.com/index.php?title=Template:Location_mark/doc&amp;diff=12170&amp;oldid=prev</id>
		<title>Santos: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://escforumwiki.com/index.php?title=Template:Location_mark/doc&amp;diff=12170&amp;oldid=prev"/>
		<updated>2013-01-16T17:56:21Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Categories and interwikis go at the bottom of this page. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template places a mark on an image, with an optional label. It is a simplified version of {{tl|Location mark+}}.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
If the geographic coordinates of the location are known and a [[Template:Location map+#Available map templates|location map template]] exists then one of the templates in the Location map family should be used. The [[#See also|See also]] section below lists alternative templates.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
{{Location mark&lt;br /&gt;
| image = Usa edcp location map.svg&lt;br /&gt;
| width = 300&lt;br /&gt;
| float = right&lt;br /&gt;
| caption = A location in the U.S.&lt;br /&gt;
| alt = Map of the U.S.&lt;br /&gt;
| type = thumb&lt;br /&gt;
| label = Four Corners&lt;br /&gt;
| label_alt = alt Four Corners&lt;br /&gt;
| label_link = Four Corners&lt;br /&gt;
| position = bottom&lt;br /&gt;
| background = #fefee9&lt;br /&gt;
| mark = Green pog.svg&lt;br /&gt;
| mark_width = 7&lt;br /&gt;
| x = 275&lt;br /&gt;
| y = 326&lt;br /&gt;
}}&lt;br /&gt;
{|&lt;br /&gt;
|- valign=top&lt;br /&gt;
|&amp;lt;pre style=&amp;quot;width:15em; margin-right:2em;&amp;quot;&amp;gt;&lt;br /&gt;
{{Location mark&lt;br /&gt;
| image = &lt;br /&gt;
| overlay = &lt;br /&gt;
| width = &lt;br /&gt;
| caption = &lt;br /&gt;
| alt = &lt;br /&gt;
| float = &lt;br /&gt;
| type = &lt;br /&gt;
| label = &lt;br /&gt;
| position = &lt;br /&gt;
| font_size = &lt;br /&gt;
| background = &lt;br /&gt;
| mark = &lt;br /&gt;
| mark_width = &lt;br /&gt;
| mark_alt = &lt;br /&gt;
| mark_link = &lt;br /&gt;
| x = &lt;br /&gt;
| y = &lt;br /&gt;
}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;font-size:90%; width:100%;&amp;quot;&lt;br /&gt;
|+ Parameters for Location map+&lt;br /&gt;
! Parameter&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;image&amp;lt;/code&amp;gt;&lt;br /&gt;
| Required. The name of an image file.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;overlay&amp;lt;/code&amp;gt;&lt;br /&gt;
| The name of an image file to superimpose on the image. It should be the same size and have a transparent background.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;width&amp;lt;/code&amp;gt;&lt;br /&gt;
| Determines the width of the image in [[pixel]]s. The default is 220px. For example &amp;lt;code&amp;gt;width=240&amp;lt;/code&amp;gt; and not &amp;lt;code&amp;gt;width=240px&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;caption&amp;lt;/code&amp;gt;&lt;br /&gt;
| The caption text displays below the image if the thumbnail option is used. See the [[#Examples|examples]].&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;alt&amp;lt;/code&amp;gt;&lt;br /&gt;
| Alt text for the map. See [[WP:ALT]]. If no &amp;lt;code&amp;gt;alt&amp;lt;/code&amp;gt; text is provided the &amp;lt;code&amp;gt;caption&amp;lt;/code&amp;gt; text will be used.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt;&lt;br /&gt;
| Determines the display format. Valid values are &amp;lt;code&amp;gt;thumb&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;border&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;thumb&amp;lt;/code&amp;gt; option generates output similar to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[File:|name|thumb]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, while the &amp;lt;code&amp;gt;border&amp;lt;/code&amp;gt; option generates output similar to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[File:|name|border]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. If no valid value is assigned, the output will not be framed or bordered. See [[#The type parameter|below]] and [[wp:Extended image syntax#Type|this page]].&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;float&amp;lt;/code&amp;gt;&lt;br /&gt;
| Determines the position of the image on the page. Valid values are &amp;lt;code&amp;gt;left&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;right&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;center&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;none&amp;lt;/code&amp;gt;. The default is &amp;lt;code&amp;gt;right&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;label&amp;lt;/code&amp;gt;&lt;br /&gt;
| Optional. The text of the label to display next to the mark. The text can be [[Wiki markup|wiki linked]].&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;position&amp;lt;/code&amp;gt;&lt;br /&gt;
| The position of the label relative to the mark. Valid values are &amp;lt;code&amp;gt;left&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;right&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;top&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;bottom&amp;lt;/code&amp;gt;. The default is &amp;lt;code&amp;gt;right&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;. If none is assigned then the template will place the label either to the right or the left depending on the location of the mark.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;font_size&amp;lt;/code&amp;gt;&lt;br /&gt;
|  The font size to use for the label as a percentage. The default is 90%. For example &amp;lt;code&amp;gt;font_size=80&amp;lt;code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;background&amp;lt;/code&amp;gt;&lt;br /&gt;
| 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.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;mark&amp;lt;/code&amp;gt;&lt;br /&gt;
| The name of an image to display as the mark. The default is [[:File:Red pog.svg|Red pog.svg]]. Go [[commons:Location markers|here]] and [[commons:Category:map icons|here]] for some examples.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;mark_width&amp;lt;/code&amp;gt;&lt;br /&gt;
| The width of the mark in [[pixel]]s. The default is 8px. For example &amp;lt;code&amp;gt;mark_width=7&amp;lt;/code&amp;gt; and not &amp;lt;code&amp;gt;mark_width=7px&amp;lt;/code&amp;gt;. Labels do not work well with large mark images. This template is not intended to generate overlays. See {{tl|Superimpose}}.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;mark_link&amp;lt;/code&amp;gt;&lt;br /&gt;
| Specifies a [[Wiki markup|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.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;mark_alt&amp;lt;/code&amp;gt;&lt;br /&gt;
| Alt text for the mark image. See [[WP:ALT]]. If no &amp;lt;code&amp;gt;mark_alt&amp;lt;/code&amp;gt; text is provided the &amp;lt;code&amp;gt;label&amp;lt;/code&amp;gt; text will be used.&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; || 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 [[#Place a mark on an image using the x and y parameters|below]].&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;code&amp;gt;x%&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;code&amp;gt;y%&amp;lt;/code&amp;gt; || Specifies the position of the marker on the image. &amp;lt;code&amp;gt;x%&amp;lt;/code&amp;gt; specifies the percentage of the distance across the image from the left edge and &amp;lt;code&amp;gt;y%&amp;lt;/code&amp;gt; specifies the percentage of the distance down from the top edge.  See [[#Place a mark on an image using the x% and y% parameters|below]].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Mark placement parameters ==&lt;br /&gt;
There are two ways to generate a marker on a map.&lt;br /&gt;
&lt;br /&gt;
=== Place a mark on an image using the &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; parameters ===&lt;br /&gt;
The values for the &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; parameters are the pixel coordinates of the location mark when the image is scaled to a width of 1000 pixels. &lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; is the pixel offset for the mark from the left edge of an image 1000px wide.&lt;br /&gt;
:&amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; is the pixel offset for the mark from the top edge of an image 1000px wide.&lt;br /&gt;
&lt;br /&gt;
There are at least two ways of obtaining these values:&lt;br /&gt;
&lt;br /&gt;
#Download the image from the image&amp;#039;s [[Help:file page|file page]] to your computer. Open the image in a [[graphics software|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 [[mouse cursor|cursor]] points to to the desired location. Use these values directly.&lt;br /&gt;
#Download the image from the image&amp;#039;s [[Help:file page|file page]] to your computer. Open the image in any [[image viewer]] that displays the coordinates of the cursor position, such as [[Paint (software)|Paint]] from Microsoft. Note the x, y coordinates when the [[mouse cursor|cursor]] points to the location. Then:&lt;br /&gt;
&lt;br /&gt;
::{{math|size=14pt|{{sfrac|1000{{·}}x&amp;#039;|w}} {{=}} {{math|size=13pt|x}}}}&amp;amp;nbsp; and&amp;amp;nbsp; {{math|size=14pt|{{sfrac|1000{{·}}y&amp;#039;|w}} {{=}} {{math|size=13pt|y}}}}&lt;br /&gt;
&lt;br /&gt;
::where {{math|size=13pt|x&amp;#039;}} and {{math|size=13pt|y&amp;#039;}} are the cursor coordinates, {{math|size=13pt|w}} is the width of the image displayed on your computer and {{math|size=13pt|x}} and {{math|size=13pt|y}} are the values to assign to the &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; parameters.&lt;br /&gt;
&lt;br /&gt;
=== Place a mark on an image using the &amp;lt;code&amp;gt;x%&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y%&amp;lt;/code&amp;gt; parameters ===&lt;br /&gt;
:x% specifies the percent of the distance across the image from the left edge.&lt;br /&gt;
:y% specifies the percent of the distance down from the top edge.&lt;br /&gt;
&lt;br /&gt;
== The &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;type&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; parameter ==&lt;br /&gt;
&amp;lt;div class=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
{| style=&amp;quot;float: none;&amp;quot;&lt;br /&gt;
! &amp;lt;code&amp;gt;type=&amp;lt;/code&amp;gt;&lt;br /&gt;
! &amp;lt;code&amp;gt;type=border&amp;lt;/code&amp;gt;&lt;br /&gt;
! &amp;lt;code&amp;gt;type=thumb&amp;lt;/code&amp;gt;&lt;br /&gt;
|- valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-left: 10em;&amp;quot; &lt;br /&gt;
| width = &amp;quot;280px&amp;quot; | {{Location mark&lt;br /&gt;
| width = 200&lt;br /&gt;
| image = Scottish infobox template map.png&lt;br /&gt;
| caption = Rattray Head in Scotland&lt;br /&gt;
| float = none&lt;br /&gt;
| type = &lt;br /&gt;
| width = 200&lt;br /&gt;
| label = &amp;#039;&amp;#039;&amp;#039;Rattray Head&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| position = left&lt;br /&gt;
| mark_width = 7&lt;br /&gt;
| x = 850 | y = 714&lt;br /&gt;
}}&lt;br /&gt;
| width = &amp;quot;280px&amp;quot; | {{Location mark&lt;br /&gt;
| width = 200&lt;br /&gt;
| image = Scottish infobox template map.png&lt;br /&gt;
| caption = Rattray Head in Scotland&lt;br /&gt;
| float = none&lt;br /&gt;
| type = border&lt;br /&gt;
| marks = &lt;br /&gt;
| label = &amp;#039;&amp;#039;&amp;#039;Rattray Head&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| position = left&lt;br /&gt;
| mark_width = 7&lt;br /&gt;
| x = 850 | y = 714&lt;br /&gt;
}}&lt;br /&gt;
| width = &amp;quot;280px&amp;quot; | {{Location mark&lt;br /&gt;
| width = 200&lt;br /&gt;
| image = Scottish infobox template map.png&lt;br /&gt;
| caption = Rattray Head in Scotland&lt;br /&gt;
| float = none &lt;br /&gt;
| type = thumb&lt;br /&gt;
| width = 200&lt;br /&gt;
| label = &amp;#039;&amp;#039;&amp;#039;Rattray Head&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| position = left&lt;br /&gt;
| mark_width = 7&lt;br /&gt;
| x = 850 | y = 714&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
The first two examples could be duplicated using {{tl|Location map+}}.&lt;br /&gt;
&lt;br /&gt;
=== Using mostly default values ===&lt;br /&gt;
{{Location mark&lt;br /&gt;
| width = &lt;br /&gt;
| image = Scotland relief location map.jpg&lt;br /&gt;
| caption = Scotland&lt;br /&gt;
| float = &lt;br /&gt;
| type = &lt;br /&gt;
| width = &lt;br /&gt;
| label = &amp;#039;&amp;#039;&amp;#039;Cape Wrath&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| position = &lt;br /&gt;
| x = 452 | y = 480&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;pre style=&amp;quot;width: 50em;&amp;quot;&amp;gt;&lt;br /&gt;
{{Location mark&lt;br /&gt;
| width = &lt;br /&gt;
| image = Scotland relief location map.jpg&lt;br /&gt;
| caption = Scotland&lt;br /&gt;
| float = &lt;br /&gt;
| type = &lt;br /&gt;
| width = &lt;br /&gt;
| label = &amp;#039;&amp;#039;&amp;#039;Cape Wrath&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| position = &lt;br /&gt;
| x = 452 | y = 480&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{clear}}&lt;br /&gt;
&lt;br /&gt;
=== Using background color for labels ===&lt;br /&gt;
{{Location mark&lt;br /&gt;
| image = North Rhine-Westphalia location map 05.svg&lt;br /&gt;
| width = 300&lt;br /&gt;
| caption = Location of Düsseldorf in [[North Rhine-Westphalia]]&lt;br /&gt;
| type = thumb&lt;br /&gt;
| width = 300&lt;br /&gt;
| label = Düsseldorf&lt;br /&gt;
| position = left&lt;br /&gt;
| background = #a7cb9d&lt;br /&gt;
| x = 267 | y = 574&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;pre style=&amp;quot;width: 50em;&amp;quot;&amp;gt;&lt;br /&gt;
{{Location mark&lt;br /&gt;
| image = North Rhine-Westphalia location map 05.svg&lt;br /&gt;
| width = 300&lt;br /&gt;
| caption = Location of Düsseldorf in [[North Rhine-Westphalia]]&lt;br /&gt;
| type = thumb&lt;br /&gt;
| width = 300&lt;br /&gt;
| label = Düsseldorf&lt;br /&gt;
| position = left&lt;br /&gt;
| background = #a7cb9d&lt;br /&gt;
| x = 267 | y = 574&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{clear}}&lt;br /&gt;
&lt;br /&gt;
=== Using an invisible mark ===&lt;br /&gt;
{{Location mark&lt;br /&gt;
| image = Take five.jpg&lt;br /&gt;
| caption = A cute chick&lt;br /&gt;
| type = thumb&lt;br /&gt;
| label = Rachel&lt;br /&gt;
| position = top&lt;br /&gt;
| background = #ae9074&lt;br /&gt;
| mark = Blanksvg.svg&lt;br /&gt;
| x = 433 | y = 295&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;pre style=&amp;quot;width: 50em;&amp;quot;&amp;gt;&lt;br /&gt;
{{Location mark&lt;br /&gt;
| image = Take five.jpg&lt;br /&gt;
| caption = A cute chick&lt;br /&gt;
| type = thumb&lt;br /&gt;
| label = Rachel&lt;br /&gt;
| position = top&lt;br /&gt;
| background = #ae9074&lt;br /&gt;
| mark = Blanksvg.svg&lt;br /&gt;
| x = 433 | y = 295&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{clear}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{tl|Location mark+}}&lt;br /&gt;
* {{tl|Location map}}&lt;br /&gt;
* {{tl|Location map+}}&lt;br /&gt;
* {{tl|Superimpose}}&lt;br /&gt;
* {{tl|Superimpose2}}&lt;br /&gt;
* {{tl|Overlay}}&lt;br /&gt;
* {{tl|Annotated image}}&lt;br /&gt;
* {{tl|Image label}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Add categories and interwikis below this line --&amp;gt;&lt;br /&gt;
[[Category:Graphic templates]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Santos</name></author>
	</entry>
</feed>