Template:Location map many/doc
Template:Location map many creates a location map as a composite image of an existing map, with multiple (up to 9) markers and optional labels superimposed onto it. This template functions in the style of Template:Location_map, but allows 9 markers and labels (rather than just one marker).
For an unlimited list of markers/labels, see: Template:Location map+, which specifies points as a coded template list of markers/labels.
Usage
[edit]The first unnamed parameter (shown as {{{1}}} below) specifies a map definition template. If {{{1}}} is Spain, the map image and coordinates are based on the values defined in Template:Location map Spain.
{{Location map many | {{{1}}} | width = | float = | border = | caption = | alt = | relief = | AlternativeMap = | <!--first label/marker--> | label1 = <!-- or: label --> | label1_size = <!-- or: label_size --> | position1 = <!-- or: position, pos1, pos --> | background1 = <!-- or: background, bg1, bg --> | mark1 = <!-- or: mark --> | mark1size = <!-- or: marksize --> | link1 = <!-- or: link --> | lat1_deg = <!-- or: lat_deg --> | lat1_min = <!-- or: lat_min --> | lat1_sec = <!-- or: lat_sec --> | lat1_dir = <!-- or: lat_dir --> | lon1_deg = <!-- or: lon_deg --> | lon1_min = <!-- or: lon_min --> | lon1_sec = <!-- or: lon_sec --> | lon1_dir = <!-- or: lon_dir --> | <!--second label/marker--> | label2 = | label2_size = | position2 = <!-- or: pos2 --> | background2 = <!-- or: bg2 --> | mark2 = | mark2size = | link2 = | lat2_deg = | lat2_min = | lat2_sec = | lat2_dir = | lon2_deg = | lon2_min = | lon2_sec = | lon2_dir = | <!--repeat as needed up to 9--> }} |
Parameters
[edit]Map display parameters | |
---|---|
Parameter | Description |
{{{1}}}
|
Required. Use the name of the map as the first unnamed parameter. For example, specify England to use the values in {{Location map England}}. See the examples below. |
width
|
Determines the width of the map in pixels. The default is 240. Do not include px , for example: width=300 , not width=300px .
|
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.
|
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 defined but is not assigned a value, the map will not be framed and no caption will be displayed. If caption is not defined, the map will not be framed and a default caption will be generated. The default caption is created from the label parameter (or the current page name if label not defined) and the name parameter from map definition template. See the examples below.
|
alt
|
Alt text for map; used by screen readers, see WP:ALT. |
relief
|
Any non-blank value (1, yes, etc.) will cause the template to display the map specified in the map definition template as image1 , which is usually a relief map. See the example at Location map+/relief.
|
AlternativeMap
|
Allows the use of an alternative map. The image must have the same edge coordinates as the location map template. See the example at Location map+/AlternativeMap. |
overlay_image
|
Allows an overlay to be superimposed on the map. This parameter is seldom used. See the example at Location map+/overlay. |
Label and mark parameters | |
Parameter | Description |
label1 ... label9
|
The text of the label to display next to the mark. A wiki link can be used. The default if not specified is no label, just the marker. |
label1_size ... label9_size
|
The font size to use for the label, given as a percentage of the normal font size (<100 = smaller, >100 = larger). The default is 90. Do not include % , for example: label_size=80 , not label_size=80% .
|
position1 ... position9
|
The position of the label relative to the mark. Valid values are left , right , top and bottom . The default is right .
|
background1 ... background9
|
The background color to use for the label. See Web colors. The default is no background color, which shows the map image behind the label. |
mark1 ... mark9
|
The name of an image to display as the mark. The default is Red pog.svg (![]() |
mark1size ... mark9size
|
The size of the mark in pixels. The default is 8. Do not include px , for example: marksize=10 , not marksize=10px .
|
link1 ... link9
|
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. |
lat1_deg ... lat9_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. |
lat1_min ... lat9_min
|
The minutes of latitude. |
lat1_sec ... lat9_sec
|
The seconds of latitude. Usually not necessary. |
lat1_dir ... lat9_dir
|
N if north (default value) or S for south of the Equator. Other values will be disregarded. Not required if using signed decimal degrees (i.e. negative numbers for southern latitude). |
lon1_deg ... lon9_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. |
lon1_min ... lon9_min
|
The minutes of longitude. |
lon1_sec ... lon9_sec
|
The seconds of longitude. Usually not necessary. |
lon1_dir ... lon9_dir
|
E for east (default value) or W for west of the Prime Meridian. Other values will be disregarded. Not required if using signed decimal degrees (i.e. negative numbers for western longitude). |
Note: For brevity, parameters "pos" & "bg" are aliases (for "position" & "background"), with pos2, bg2, pos3, bg3, etc.
Markers
[edit]When a marker's mark#size=0, then that marker is skipped and only the related label is displayed, without the marker.
Each mark, mark2, mark3 (etc.) can be another image-symbol, such as Diamond_sheer_red_20.gif (marksize=20) to show a red diamond on the image: or use: Cercle_rouge_100%.svg to show a red circle
or a larger black diamond: Diamond_sheer_black_37.gif as sized with a larger marksize=37 or similar number to resize the diamond somewhat:
- See Wikimedia pointer symbols: commons:Category:Map pointers.
Advisory messages
[edit]The degrees of latitude/longitude are validated, to show error messages, but location minutes can be set very large to place markers outside the map (with no warnings). Due to the numerous details of specifying 9 markers/labels, the latitude and longitude are checked to lie within the actual map limits specified in Template:Location_map_<parameter1>. Each marker/label is checked and can list a warning message (under the map), such as:
- Latitude#4 (45.68) < map min(53.74).
Processing continues, with that marker actually placed off-map, and all latitude/longitude parameters are checked, for a total of 18 possible advisory messages. Only degrees of latitude/longitude are checked, so a value of 63 minutes would be valid to indicate 1 extra degree + 3 minutes, and setting lon_min=200 could still place a marker off-map (right-side) with no warning message. Also, large markers or long labels can spill over the edges of a map, allowing markers to point inward from outside the map. In such cases, a map could be centered by itself on the page ("float=center") to avoid overlapping the edge markers onto any surrounding article text.
Available maps
[edit]Partial list of live templates named Template:Location_map_<locname> (without "Template:" prefix here, A-F):
Special:Prefixindex/Template:Location_map_
Creating new maps
[edit]- Find an appropriate blank map in equirectangular projection (otherwise, coordinates will drift off, typically further north)
- Create a template named "Template:Location_map_locname" (copy the content of any other map template into it and enter appropriate values).
- Set default parameter values (using those parameter names), such as setting "mark" with image-file name and "marksize" for pixels wide/tall, or set default label font size ("label_size = 78" percent).
- Parameter names not used by "Template:Location_map" will be ignored by it, and only used for multiple-markers (such as defaulting "label2_size = 78" percent, or "mark2size=7" pixels).
Examples
[edit]Please note: These examples are not necessarily labeled correctly. They have been adjusted so that they do not show error messages. Better, more accurate examples are welcome. There is a very limited selection of maps available on Commons; see Category:Location map templates.
Map with label "Pag" and "Anytown" (degrees)
[edit]{{Location map many | USA | width = 280 | float = right | label = Pag | marksize = 8 | pos = right | bg = yellow | lat_deg = 44 | lat_min = 26 | lon_deg = -115 | lon_min = 3 | label2 = Anytown_Anywhere | mark2 = Rouge-Admin JollyRoger.svg | mark2size = 45 | pos2 = top | bg2 = white | lat2_deg = 46 | lat2_min = 30 | lon2_deg = -117 | lon2_min = 30 }}
Map with 3 labels (decimal)
[edit]{{Location map many | USA | width = 260 | float = right | label = Pag | pos = right | marksize = 8 | lat_deg = 44.44 | lon_deg = -115.05 | label2 = Anytown | pos2 = bottom | bg2 = yellow | mark2size = 8 | lat2_deg = 45.86 | lon2_deg = -117.50 | label3 = Anytown2 | pos3 = top | bg3 = lightgreen | lat3_deg = 46.23 | lon3_deg = -118.43 }}
Example map with red triangle
[edit]{{Location map many | USA | AlternativeMap = LocationJamaica.svg | float = right | width = 250 | caption = Site of '''Hispaniola''' | label = Hispaniola | position = left | background = #CCDDFF | marksize = 1 | lat_deg = 38.2 | lon_deg = -69.3 | label2 = | mark2 =Diamond_sheer_red_37.png | mark2size = 42 | lat2_deg = 52.2 | lon2_deg = -73.9 | label3 = Cuba | pos3 = left | mark3size = 1 | lat3_deg = 59.2 | lon3_deg = -68.0 }}
Map with some labels outside map
[edit]{{Location map many | USA | width = 260 | float = right | label = Pag | position=right | marksize = 8 | lat_deg = 44.44 | lon_deg = 15.05 | label2 = Anytown | pos2 = bottom | bg2 = yellow | marksize = 8 | lat2_deg = 47.40 | lon2_deg = -112.80 | label3 = Anytown2 | pos3 = top | bg3 = lightgreen | lat3_deg = 41.98 | lon3_deg = -118.43 | label4 = North Croatia | pos4 = left | bg4 = lightgreen | mark4size = 0 | lat4_deg = 46.22 | lon4_deg = -117.7 }}
Map with 9 markers (decimal)
[edit]{{Location map many | USA | width = 260 | float = right | label = Pag | position = right | lat_deg = 44.44 | lon_deg = -115.05 | label2 = Anytown | label2_size = 110 | pos2 = bottom | background2 = yellow | lat2_deg = 45.86 | lon2_deg = -117.50 | label3 = Anytown2 | label3_size = 290 | pos3 = top | background3 = green | lat3_deg = 46.23 | lon3_deg = -118.43 | mark4 =Diamond_sheer_black_20.png | mark4size = 19 | label4 = 44.0 (latitude) | lat4_deg = 44.00 | lon4_deg = -113.5 | mark5 =Diamond_sheer_black_20.png | mark5size = 20 | label5 = 44.5 | lat5_deg = 44.50 | lon5_deg = -113.5 | mark6 =Diamond_sheer_black_20.png | mark6size = 20 | label6 = 45.0 | lat6_deg = 45.00 | lon6_deg = -113.5 | mark7 =Diamond_sheer_black_20.png | mark7size = 20 | label7 = 45.5 | lat7_deg = 45.50 | lon7_deg = -113.5 | mark8 =Diamond_sheer_black_20.png | mark8size = 20 | label8 = 46.0 | lat8_deg = 46.00 | lon8_deg = -113.5 | label9 = ''CROATIA'' | label9_size = 165 | mark9size = <!--label only-->1 | lat9_deg = 42.60 | lon9_deg = -114.4 }}
Map with a custom label and text background
[edit]{{Location map many | Croatia | width = 280 | float = right | caption = Imotski in Croatia | label = Imotski | position = right | background = #FFFFDD | lat_deg = 43.44 | lon_deg = -117.21 }}
Map with enlarged marker and label
[edit]{{Location map many | Croatia | width = 260 | float = right | caption = Pag Island in Croatia | label = Pag | label_size = 200 | position = right | marksize = 14 | background = #FFFFDD | lat_deg = 44.44 | lon_deg = -115.05 }}
Map with no caption
[edit]{{Location map many | USA | width = 150 | float = right | caption = | label = Brčko | position = left | lat_deg = 44.87 | lon_deg = -118.81 }}
Western Hemisphere
[edit]{{Location map many | UK England | width = 180 | float = right | caption = Lockerbie in Scotland | label = Lockerbie | position = right | lat_deg = 55 | lat_min=07 | lat_sec=16 | lat_dir=N | lon_deg = 3 | lon_min=21 | lon_sec=19 | lon_dir=W }}
Country that crosses 180° meridian
[edit]{{Location map many | USA | width = 400 | float = right | label = Uelen | position = left | background = #FFFFDD | lat_deg = 46 | lat_min = 09 | <!--lat_dir = N--> | lon_deg = -129 | lon_min = 48 | <!--lon_dir = W--> }}
Marker examples
[edit]![Location map many/doc is located in United States](https://upload.wikimedia.org/wikipedia/commons/thumb/2/20/Usa_edcp_location_map.svg/430px-Usa_edcp_location_map.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/7/76/Pfeil_oben.svg/7px-Pfeil_oben.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Pfeil_unten.svg/7px-Pfeil_unten.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Pfeil_rechts.svg/8px-Pfeil_rechts.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/8/85/Pfeil_links.svg/8px-Pfeil_links.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Pfeil_rechts_oben.svg/8px-Pfeil_rechts_oben.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/6/61/Pfeil_rechts_unten.svg/8px-Pfeil_rechts_unten.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/f5/Pfeil_links_oben.svg/8px-Pfeil_links_oben.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/4b/Pfeil_links_unten.svg/8px-Pfeil_links_unten.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/40/Point_carte.svg/8px-Point_carte.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Square_city_locator.png/8px-Square_city_locator.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/Solid_red.svg/8px-Solid_red.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Solid_blue.svg/8px-Solid_blue.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/7/72/Fadenkreuz.svg/8px-Fadenkreuz.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Crosshairs_Red.svg/8px-Crosshairs_Red.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Purple_pog.svg/8px-Purple_pog.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/9/9d/Yellow_pog.svg/8px-Yellow_pog.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Map-Pin.png/8px-Map-Pin.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/9/96/Dot-yellow.svg/8px-Dot-yellow.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/f3/Blue-circle.png/8px-Blue-circle.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/9/98/Flashspot.gif/8px-Flashspot.gif)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/3/35/Location_dot_blue.svg/8px-Location_dot_blue.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/c/c0/Location_dot_black.svg/8px-Location_dot_black.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/Arrows_12x12_nw.svg/8px-Arrows_12x12_nw.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Arrows_12x12_ne.svg/8px-Arrows_12x12_ne.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Fire.svg/8px-Fire.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/0/0e/Black_triangle2.svg/8px-Black_triangle2.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/5/54/Blue_Fire.svg/8px-Blue_Fire.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/6/63/City_locator_Montagne.svg/8px-City_locator_Montagne.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Cercle_rouge_100%25.svg/8px-Cercle_rouge_100%25.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/5/5d/White_flag_icon.svg/6px-White_flag_icon.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/Legenda_miejsce_bitwy.svg/8px-Legenda_miejsce_bitwy.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/5/57/X_solid_black_17.gif/8px-X_solid_black_17.gif)
![Location map many/doc is located in United States](https://upload.wikimedia.org/wikipedia/commons/thumb/2/20/Usa_edcp_location_map.svg/420px-Usa_edcp_location_map.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/City_locator_0.svg/8px-City_locator_0.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/3/30/City_locator_1.svg/8px-City_locator_1.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/City_locator_2.svg/8px-City_locator_2.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/City_locator_6.svg/8px-City_locator_6.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/a/ad/City_locator_7.svg/8px-City_locator_7.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/8/83/City_locator_8.svg/8px-City_locator_8.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/City_locator_9.svg/8px-City_locator_9.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/7/71/City_locator_10.svg/8px-City_locator_10.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/City_locator_11.svg/8px-City_locator_11.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/0/00/City_locator_13.svg/8px-City_locator_13.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/2/26/City_locator_21.svg/8px-City_locator_21.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/8/88/City_locator_29.svg/8px-City_locator_29.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/8/8b/Point_rouge_croix_frontier_vert_green.svg/8px-Point_rouge_croix_frontier_vert_green.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/6/64/Wikipedia-Marker-4.png/8px-Wikipedia-Marker-4.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/StarArrowOR.svg/8px-StarArrowOR.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/9/97/Castle.svg/8px-Castle.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Crime_symbol_handgun_czeska80px.png/8px-Crime_symbol_handgun_czeska80px.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/7/71/Gwiazda_LnM.svg/8px-Gwiazda_LnM.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/b/b8/Nuclear_plant.svg/8px-Nuclear_plant.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Quake_pointer.svg/8px-Quake_pointer.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Rotonda_S7.svg/8px-Rotonda_S7.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7a/Wikipedia-Marker-isle.svg/8px-Wikipedia-Marker-isle.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Red_pog.svg/8px-Red_pog.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/a/ab/Green_pog.svg/8px-Green_pog.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/d/d7/Blue_pog.svg/8px-Blue_pog.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Location_dot_dark_red.svg/8px-Location_dot_dark_red.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Black_pog.svg/8px-Black_pog.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/3/3e/Unesco_Cultural_Heritage_logo.svg/8px-Unesco_Cultural_Heritage_logo.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/8/8c/Mining_symbol.svg/8px-Mining_symbol.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/Zoo_icon.jpg/8px-Zoo_icon.jpg)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/8/8b/Vattenfall_blue.svg/8px-Vattenfall_blue.svg.png)
![](https://upload.wikimedia.org/wikipedia/commons/thumb/d/df/SymbolAirport.svg/8px-SymbolAirport.svg.png)
- See Wikimedia pointer symbols: commons:Category:Map pointers.
Implementation notes
[edit]The map with markers/labels is implemented as nested HTML divisions. The map-image is in an HTML division, containing each point as a percent-locator division containing a marker-image sub-division plus a label sub-division. Each point is calculated (for a percent-locator division) with X or Y coordinate "XX.X%" or "YY.Y%" as follows:
- The div-tag is "<div style="position: absolute; z-index: 2; top: XX.X%; left: YY.Y%; ...>"
- For placing latitude, the calculation is:
- XX.X% = 100 * (top - (lat_deg + latmin/60 +latsec/3600) ) / (top - bottom)
- If lat_deg is empty, the combined decimal latitude is used from "lat".
- If lat_dir is "S" (south), the latitude is multiplied by -1.
- (Note latitude is positioned in reverse, from top of map downward.)
- For placing longitude, the calculation is:
- YY.Y% = 100 * ( (lon_deg + lonmin/60 +lonsec/3600) - left ) / (right - left)
- If lon_deg is empty, the combined decimal longitude is used as "long".
- If lon_dir is "W" (west), the longitude is multiplied by -1.
- The div-tag is ended as "height: 0; width: 0; margin: 0; padding: 0;">".
- Within that division the marker/label sub-divisions are coded as:
- <div style="position: relative text-align: center; ...">.
- For label position, the options are shifted as:
- when position=left, adds "left: -6.5em; text-align: right;"
- when position=right, adds "left: 0.5em; text-align: left;"
- when position=top, adds "top:-2.65em; left:-3em; text-align: center;"
- when position=bottom, adds "top:-0.15em; left: -3em; text-align: center;" to div-tag.
See also
[edit]- Template:Location map - placing one marker/label by latitude/longitude.
- Template:Location map+ - placing unlimited list of markers/labels.
- Commons:Category:Map pointers - list of the many Wikimedia Commons pointer symbols.