Template:Infobox map/doc

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

Map display methods
Any image of a map showing the location of the protected area can be used. There are two methods which can display a location mark to on a map.

Geographical coordinates method
A marker can be superimposed if one of a set of special map templates. If a valid map name from one of these templates is supplied this template will attempt to use this method. To display a marker, the geographic coordinates must be supplied using the parameters, and. The marker will not be displayed if only the coord template is used. See the documentation for Location map. The parameters for this template map to a subset of the parameters for Location map.

A tool which generates lists of maps can be found here. All of the names begin with the words "Location map" followed by the area covered. The value you need to assign to the parameter,, is the area name. The map template for the for Alberta, Canada is Location map Canada Alberta. In this case specify. For example:



The label is optional. By default it is usually displayed to the left of the mark.

X,Y coordinate method
Any size map image can be displayed by setting  to a different value.



Old Faithful is located at  pixels from the left of the map image 1000 pixels wide and   pixels from the top. You can experiment by pasting this example code into a sandbox and substituting your own values.

Note that the mark will be centered over the location and that this differs from the output generated by Superimpose.

Display any map image
A third option allows the display of any map image without a location mark being added.



Geographical coordinates
The template decdeg 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 parameter 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 WikiProject Geographical coordinates.


 * lat = undefined°
 * long = undefined°

To display coordinates in the Infobox two methods can be used. The template Infobox coord 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 coord can be used. For examples of coordinate entry see coordinate examples.