Template:Location map+/doc

< Template:Location map+
Map of England showing the locations of towns and battles. Bosworth is in the centre, northwest of London.
Berwick
London
York
Plymouth
Poole
Wem
Northumberland
Shrewsbury
Milford Haven
Battle icon active (crossed swords).svg Battle of Bosworth Field Battle icon (crossed swords).svg other battles

This template places one or more location marks on a map, with optional labels. It is in the same family of templates as the Location map template and the documentation for that template might be helpful.

This template uses a helper template, Location map~, one or more times to generate a mark for each location.

Usage

{{Location map+
| {{{1}}}
| caption = 
| alt = 
| width = 
| float = 
| border = 
| overlay_image = 
| AlternativeMap = 
| places = 
}}
{{Location map~
| {{{1}}}
| label = 
| position = 
| label_size = 
| background = 
| mark = 
| marksize = 
| link = 
| lat_deg = 
| lat_min = 
| lat_sec = 
| lat_dir = 
| lon_deg = 
| lon_min = 
| lon_sec = 
| lon_dir = 
}}

Parameters

Paraneters for Location map+
Parameter Description
{{{1}}} Required. Use the name of the map as the first unnamed parameter. For example, to use Location map England specify England. See the examples.
caption The text of a caption to be displayed below the map. Specifying a caption will cause the map to be displayed with a frame. If caption is not defined, a default caption will be generated and the map will not be framed. If caption is defined but is not assigned a value the map will not be framed and no caption will be displayed. See the examples.
alt Alt text for the map. See WP:ALT.
width Determines the width of the map in pixels. The default is 240px. For example width=250 and not width=250px.
float Specifies the position of the map on the page. Valid values are left, right, center and none. The default is right.
border Specifies the color of the 1px map border. The default is lightgrey. See Web colors. If set to none, no border will be generated. This parameter is seldom used.
overlay_image Allows an overlay to be superimposed on the map. See this example. This parameter is seldom used.
AlternativeMap Allows the use of an alternative map. The image must have the same edge coordinates as the location map template. See this example.
places Specifies one or more place markers using Location map~.
Paraneters for Location map~
Parameter Description
{{{1}}} Required. Use the name of the map as the first unnamed parameter. For example to use Location map England specify England. See the examples.
label The text of the label to display next to the mark. A wiki link can be used.
position The position of the label relative to the mark. Valid values are left, right, top and bottom. The default is right.
label_size The font size to use for the label as a percentage. The default is 90%. For example label_size=80.
background The background color to use for the label. See Web colors. By default the background color is inherited from the image behind the label.
mark The name of an image to display as the mark. The default is Red pog.svg. Go here and here for some examples.
marksize The size of the mark in pixels. The default is 8px. For example marksize=6 and not marksize=6px.
link Specifies a wiki link which will be followed if the reader clicks on the mark. The name of the linked article is displayed when the mouse pointer hovers over the mark.
lat_deg Required. The degrees of latitude. This value can be specified using decimal degrees and when this format is used minutes and seconds should not be specified.
lat_min The minutes of latitude.
lat_sec The seconds of latitude. Usually not necessary.
lat_dir N if north of the equator, S if south of the equator. Other values will be disregarded. Not required if signed decimal decrees are used.
lon_deg Required. The degrees of longitude. This value can be specified using decimal degrees and when this format is used minutes and seconds should not be specified.
lon_min The minutes of longitude.
lon_sec The seconds of longitude. Usually not necessary.
lon_dir E if East of the prime meridian, W if west of the prime meridian. Other values will be disregarded. Not required if signed decimal decrees are used.

Available map templates

Location map templates can be found using these sources:

List of templates - 1050 templates available when the list was generated.
Category:Location map templates - 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.

Examples

This example does not designate the caption parameter. It demonstrates the use of the defaults. Notice that the default caption is the page name followed by the map name in parenthesis and that the label position is automatically adjusted if it is too close to an edge.

Location map+/doc is located in Australia
Sydney
Melbourne
Location map+/doc (Australia)
{{Location map+ | Australia
| float = right
| places =
  {{Location map~ | Australia
    | label = Sydney
    | lat_deg = -33.86
    | lon_deg = 151.21 }}
  {{Location map~ | Australia
    | label = Melbourne
    | lat_deg = -37.81
    | lon_deg = 144.96 }}
}}

This example uses a designated but empty caption. It demonstrates coordinates using decimal degrees and a 10px mark with a link.

Location map+/doc is located in France
Paris
Marseille
{{Location map+ | France
| width = 200
| float = right
| caption =
| places =
  {{Location map~ | France
    | label = Paris
    | position = top
    | link = Paris
    | lat_deg = 48.8567
    | lon_deg = 2.3508 }}
  {{Location map~ | France
    | label = Marseille
    | position = top
    | link = Marseille
    | lat_deg = 43.2964
    | lon_deg = 5.3610 }}
}}

This example uses caption with an assigned value. It demonstrates coordinates in degree, minute, second format, a relief map, label background color and linked labels.

Some cites in the United States
{{Location map+ | USA2
| width = 300
| float = right
| caption = Some cites in the United States
| relief = 1
| places =
  {{Location map~| USA2
    | label = [[New York City|New York]]
    | position = 
    | background = white
    | mark = Cyan pog.svg
    | lat_deg = 40
    | lat_min = 43
    | lat_dir = N
    | lon_deg = 74
    | lon_min = 0
    | lon_dir = W
    | alt = alt text for New York City
    | link = New York City }}
  {{Location map~| USA2
    | label = [[San Francisco]]
    | position = 
    | background = white
    | mark = Purple pog.svg
    | lat_deg = 37
    | lat_min = 46
    | lat_dir = N
    | lon_deg = 122
    | lon_min = 25
    | lon_dir = W
    | alt = alt text for San Francisco
    | link = San Francisco }}
}}

Also see the examples on the Location map page as well as here and here.

Related pages