Template talk:Location map+
Contents
Previous Contributors
(cur | prev) 21:44, 16 June 2017 Plastikspork (talk | contribs) . . (107 bytes) (-211) . . (TFD closed as no consensus (XFDcloser))
(cur | prev) 08:17, 8 June 2017 Jc86035 (talk | contribs) . . (318 bytes) (+211) . . (Nominated for deletion; see Wikipedia:Templates for discussion/Log/2017 June 8#Template:Location map+. (TW))
(cur | prev) 00:37, 11 September 2014 Jackmcbarn (talk | contribs) . . (107 bytes) (+6) . . (use /multi)
(cur | prev) 19:26, 13 March 2014 Jackmcbarn (talk | contribs) . . (101 bytes) (+5) . . (new function name)
(cur | prev) 23:15, 11 March 2014 Jackmcbarn (talk | contribs) . . (96 bytes) (-8) . . (use live code)
(cur | prev) 23:14, 11 March 2014 Jackmcbarn (talk | contribs) . . (104 bytes) (-2,562) . . (replace with lua)
(cur | prev) 12:53, 3 December 2013 MSGJ (talk | contribs) . . (2,666 bytes) (-62) . . (Undid revision 584150921 by Mr. Stradivarius (talk), per request)
(cur | prev) 02:21, 2 December 2013 Mr. Stradivarius (talk | contribs) . . (2,728 bytes) (+62) . . (prevent labels from appearing outside the map area per protected edit request by User:Hydrox)
(cur | prev) 11:34, 19 October 2013 WOSlinker (talk | contribs) m . . (2,666 bytes) (0) . . (Changed protection level of Template:Location map+: allow template editors to modify ([Edit=Protected template] (indefinite) [Move=Protected template] (indefinite)))
(cur | prev) 23:28, 11 July 2013 Kaldari (talk | contribs) . . (2,666 bytes) (-12) . . (This z-index isn't needed since the normal stacking order is always going to put this overlay on top of the earlier map image)
(cur | prev) 13:42, 4 November 2012 Mr. Stradivarius (talk | contribs) . . (2,678 bytes) (-124) . . (Update width-handling code per talk page)
(cur | prev) 01:00, 10 July 2012 Anomie (talk | contribs) . . (2,802 bytes) (+420) . . (sync with sandbox per request on Template talk:Location map)
(cur | prev) 13:38, 15 May 2012 Thumperward (talk | contribs) . . (2,382 bytes) (-5) . . (additional fixes per talk)
(cur | prev) 09:56, 15 May 2012 Thumperward (talk | contribs) . . (2,387 bytes) (+7) . . (fix css declaration, per talk#)
(cur | prev) 08:56, 22 June 2011 Thumperward (talk | contribs) . . (2,380 bytes) (+1) . . (fix slight breakage due to changing the default float. if this doesn't fix it I'll revert straight away)
(cur | prev) 01:17, 27 April 2011 Plastikspork (talk | contribs) . . (2,379 bytes) (+564) . . (Code update from User:Droll at Template talk:Location map)
(cur | prev) 04:55, 22 February 2011 Plastikspork (talk | contribs) . . (1,815 bytes) (+39) . . (float center)
(cur | prev) 16:23, 15 January 2011 Plastikspork (talk | contribs) . . (1,776 bytes) (+226) . . (Okay, it works, see Croatian War of Independence)
(cur | prev) 16:21, 15 January 2011 Plastikspork (talk | contribs) . . (1,550 bytes) (-226) . . (Undid revision 408036773 by Plastikspork (talk) testing ...)
(cur | prev) 16:18, 15 January 2011 Plastikspork (talk | contribs) . . (1,776 bytes) (+226) . . (link to basemap for licensing reasons)
(cur | prev) 21:13, 8 January 2011 Plastikspork (talk | contribs) . . (1,550 bytes) (+164) . . (Add optional overlay_image)
(cur | prev) 00:59, 14 October 2010 Plastikspork (talk | contribs) . . (1,386 bytes) (+107) . . (Sync with Template: Location map)
(cur | prev) 00:26, 14 October 2010 Plastikspork (talk | contribs) m . . (1,279 bytes) (+1) . . (Per discussion at Template talk:Location map, suppress width when there is no caption)
(cur | prev) 23:45, 30 July 2010 Plastikspork (talk | contribs) m . . (1,278 bytes) (0) . . (Protected Template:Location map+: Highly visible template ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
(cur | prev) 23:18, 30 July 2010 Plastikspork (talk | contribs) . . (1,278 bytes) (+63) . . (Update width handling)
(cur | prev) 03:47, 9 July 2009 Eubulides (talk | contribs) . . (1,215 bytes) (+15) . . (Add support for alt text.)
(cur | prev) 18:06, 16 January 2009 Obersachse (talk | contribs) . . (1,200 bytes) (-31) . . (Undid revision 264502774 by Obersachsebot (talk))
(cur | prev) 18:03, 16 January 2009 Obersachsebot (talk | contribs) m . . (1,231 bytes) (+31) . . (robot Adding: nl:Sjabloon:Positiekaart+)
(cur | prev) 06:58, 22 December 2008 Funandtrvl (talk | contribs) m . . (1,200 bytes) (+29) . . (Cat. sort)
(cur | prev) 18:14, 6 December 2008 Obersachse (talk | contribs) m . . (1,171 bytes) (-159) . . (revert)
(cur | prev) 18:09, 6 December 2008 Obersachsebot (talk | contribs) m . . (1,330 bytes) (+159) . . (robot Adding: de, dsb, hsb, pl, ru)
(cur | prev) 16:22, 2 December 2008 J.delanoy (talk | contribs) m . . (1,171 bytes) (-63) . . (Reverted edits by J.delanoy (talk) to last version by Hemmingsen)
(cur | prev) 16:21, 2 December 2008 J.delanoy (talk | contribs) m . . (1,234 bytes) (+63) . . (Reverted to revision 156021009 by Wikid77. (TW))
(cur | prev) 07:40, 29 November 2008 Hemmingsen (talk | contribs) m . . (1,171 bytes) (-222) . . (moving both categories and interwikis to /doc subpage)
(cur | prev) 18:02, 27 November 2008 Obersachsebot (talk | contribs) m . . (1,393 bytes) (+159) . . (robot Adding: de, dsb, hsb, pl, ru)
(cur | prev) 06:10, 27 November 2008 Hemmingsen (talk | contribs) m . . (1,234 bytes) (-159) . . (Undid revision 253183855 by 84.180.80.38 (talk) - interwiki links go on the /doc subpage)
(cur | prev) 13:42, 21 November 2008 84.180.80.38 (talk) . . (1,393 bytes) (+159) . . (robot Adding: de, dsb, hsb, pl, ru)
(cur | prev) 09:35, 6 September 2007 Wikid77 (talk | contribs) . . (1,234 bytes) (+63) . . (put "Category:Mapping templates" and "Category:Graphic templates")
The below content is licensed according to Creative Commons Attribution-ShareAlike License contrary to the public domain logo at the foot of the page. It originally appeared on http://en.wikipedia.org. The original article might still be accessible here. You may be able to find a list of the article's previous contributors on the talk page. |
40px | This template is used on many pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
{{#invoke:Message box|tmbox}}
{{#invoke:Location map|mark}} {{#invoke:Location map|mark}} {{#invoke:Location map|mark}} {{#invoke:Location map|mark}} {{#invoke:Location map|mark}} {{#invoke:Location map|mark}} {{#invoke:Location map|mark}} {{#invoke:Location map|mark}} {{#invoke:Location map|mark}} {{#invoke:Location map|mark}} {{#invoke:Location map|mark}} {{#invoke:Location map|mark}}{{#invoke:Location map|mark}}
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}}} | width = | float = | border = | caption = | alt = | relief = | AlternativeMap = | overlay_image = | places = }} |
{{Location map~ | {{{1}}} | label = | label_size = | position = | background = | mark = | marksize = | link = | lat_deg = | lat_min = | lat_sec = | lat_dir = | lon_deg = | lon_min = | lon_sec = | lon_dir = }} |
Parameters
Parameter | Description |
---|---|
{{{1}}} | Required. Use the name of the map as the first unnamed parameter. For example, specifying England will use the values for England in Module:Location map/data/England if it exists, or {{Location map England}} otherwise. See the examples below. |
width | Determines the width of the map in pixels, overriding any default values. Do not include px , for example: width=300 , not width=300px .
|
default_width | Determines the default width of the map in pixels, intended for use by templates e.g. place infoboxes. The default value is 240. Do not include px . This value will be multiplied by the defaultscale parameter specified in individual map templates, if it exists, in order to achieve an appropriate size for vertical maps. For example, if default_width=200 is given, a map of Thailand will be displayed with a width of 200 * 0.57 = 114 pixels (as specified in Template:Location map Thailand).
|
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. |
places | Specifies one or more place markers using Location map~<code>.
|
Parameter | Description |
---|---|
{{{1}}} | Required. Use the name of the map as the first unnamed parameter. For example, specifying England will use the values for England in Module:Location map/data/England if it exists, or {{Location map England}} otherwise. See the examples below. |
label | 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. |
label_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 <code>%, for example: label_size=80 , not label_size=80% . If set to 0, the label is only displayed when the user hovers over the mark.
|
position | The position of the label relative to the mark. Valid values are left , right , top and bottom . The default is right .
|
background | 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. |
mark | The name of an image to display as the mark. The default is Red pog.svg (8px). See examples at Commons:Location markers and Commons:Category:Map icons. |
marksize | The size of the mark in pixels. The default is 8. Do not include px , for example: marksize=10 , not marksize=10px .
|
link | Specifies a wiki link which will be followed if the reader clicks on the mark. Do not include [[]] , for example: link=Yellowstone National Park , not link=[[Yellowstone National Park]] .
|
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.[Note 1] |
lat_min | The minutes of latitude.[Note 1] |
lat_sec | The seconds of latitude. Usually not necessary.[Note 1] |
lat_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). |
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.[Note 1] |
lon_min | The minutes of longitude.[Note 1] |
lon_sec | The seconds of longitude. Usually not necessary.[Note 1] |
lon_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). |
Notes:
Available maps
Location maps can be found using these sources:
- Special:PrefixIndex/Module:Location map/data/ - Checked before a map template is searched for. New maps should be created here rather than creating new templates.
- 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+ | Australia | 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+ | France | caption = | places = {{Location map~ | France | label = Paris | position = top | marksize = 10 | link = Paris | lat_deg = 48.8567 | lon_deg = 2.3508 }} {{Location map~ | France | label = Marseille | position = top | marksize = 10 | 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.
{{Location map+ | USA | width = 300 | caption = Some cites in the United States | relief = 1 | places = {{Location map~ | USA | label = [[New York City|New York]] | position = | background = white | mark = Cyan pog.svg | alt = alt text for New York City | link = New York City | lat_deg = 40 | lat_min = 43 | lat_dir = N | lon_deg = 74 | lon_min = 0 | lon_dir = W }} {{Location map~| USA | label = [[San Francisco]] | position = | background = white | mark = Purple pog.svg | alt = alt text for San Francisco | link = San Francisco | lat_deg = 37 | lat_min = 46 | lat_dir = N | lon_deg = 122 | lon_min = 25 | lon_dir = W }} }}
Also see the examples on the Location map page, as well as:
- Template:Location map+/relief, an example using the relief parameter
- Template:Location map+/AlternativeMap, an example using the AlternativeMap parameter
- Template:Location map+/overlay, an example using the overlay_image parameter
Template data
See the monthly error report for this template.
TemplateData for Location map+
<templatedata> { "description": "This template places one or more location marks on a map.", "params": { "1": { "label": "Map name", "type": "string", "required": true, "description": "The name of the map to be used" }, "width": { "label": "Map width", "type": "number", "description": "Determines the width of the map in pixels, overriding any default values. Do not include \"px\", for example: \"300\", not \"300px\"." }, "default_width": { "label": "Default width", "type": "number", "description": "Determines the default width of the map in pixels, intended for use by templates such as infoboxes. The default value is 240. Do not include \"px\". This value will be multiplied by the defaultscale parameter specified in individual map templates, if it exists, in order to achieve an appropriate size for vertical maps." }, "float": { "label": "Position", "type": "string", "description": "Specifies the position of the map on the page. Valid values are left, right, center and none. The default is right." }, "border": { "label": "Border color", "type": "string", "description": "Specifies the color of the map border. If set to none, no border will be generated. " }, "caption": { "label": "Map caption", "type": "string", "description": "The text of a caption to be displayed below the map. 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." }, "alt": { "label": "Alt text", "type": "string", "description": "Alt text for map; used by screen readers." }, "relief": { "label": "Alternative map from template", "type": "string", "description": "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." }, "AlternativeMap": { "label": "Alternative map not from template", "type": "string", "description": "Allows the use of an alternative map. The image must have the same edge coordinates as the map template." }, "overlay_image": { "label": "Overlay image", "type": "string", "description": "Allows an overlay to be superimposed on the map. This parameter is seldom used." }, "places": { "label": "Place markers",
"type": "string",
"required": true, "description": "Specifies one or more place markers using Location map~." } } } </templatedata>
See also
- Template:Location map for displaying one mark using latitude and longitude.
- Template:Location map many for displaying up to nine marks using latitude and longitude.
The above documentation is transcluded from Template:Location map+/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |
(cur | prev) 14:17, 19 June 2007 Obersachse (talk | contribs) m . . (1,223 bytes) (-2) . . (AlternativeMap)
(cur | prev) 13:59, 19 June 2007 Obersachse (talk | contribs) . . (1,225 bytes) (+1,225)