الگو:Infobox map/Map display methods

Map display methods

There are three ways to generate a marker on a map.

Display a marker on a map using a template and geographic coordinates

A marker can be superimposed on a map using one of a set of special map templates. To display a marker the geographic coordinates must be specified using the parameters lat_d, long_d, etc. See the documentation for {{Location map}}. The parameters for this template map to a subset of the parameters used by {{Location map}}. A map template can be found using these sources:

List of templates - Many of the listed items are redirects and a few templates may not function as expected.
- 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.

All of the names begin with the words "Location map" followed by the area covered. The value you need to specify is the area name. The map template for the Canada is Location map Canada. In this case specify map=Canada.

الگو:Infobox park

{{Infobox park
| name = Four Corners, Canada
| map = Canada
| map_caption = Example using geographic coordinates
| lat_d = 60 | lat_m = 00 | lat_s = 00 | lat_NS = N
| long_d = 102 | long_m = 00 | long_s = 00 | long_EW = W
}}

Display a marker on any map image using the x and y parameters

The values for the x and y parameters are the pixel coordinates of the location mark when the image is scaled to a width of 1000 pixels.

x is the pixel offset for the mark from the left edge of an image 1000px wide.
y 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 گیمپ or اکس‌ان‌ویو. Scale (resize) the image to a width of 1000px and then note the x, y coordinates when the اشاره‌گر (واسط نگاره‌ای کاربر) points to 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 پینت from Microsoft. Note the x, y coordinates when the اشاره‌گر (واسط نگاره‌ای کاربر) 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 x and y parameters.

الگو:Infobox park

{{Infobox park
| name = Four Corners, Canada
| map = Canada location map.svg
| map_caption = Example using the x and y parameters
| x = 369
| y = 487
}}

Display a marker on any map image using the x% and y% 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.

In the following example the marker is 36.9% of the way across and 57.4% of the way down.

الگو:Infobox park

{{Infobox park
| name = Four Corners, Canada
| map = Relief map of Canada.png
| map_caption = Example using the x% and y% parameters
| x% = 36.9
| y% = 57.4
}}