Template:Location map/sandbox quick/doc
This is a documentation subpage for Template:Location map/sandbox quick. It contains usage information, categories and other content that is not part of the original template page. |
The Template:Location map/sandbox quick displays a location map as a composite image of an existing map, plus a marker and an optional label superimposed onto it, in a quick manner (MediaWiki depth 5). By default, the size of the map is defaulted as 240px wide. Otherwise, set width=200 or such.
Maps used here are not just images alone. Instead, maps are selected by mapper-template suffixes "XX" (to use each template "Location map XX"). Maps here use only squared or equirectangular projections. So, use {{Location_map}} to show curved latitude or longitude lines, to skew the location of the marker symbol, as in Module:Location map/data/Africa. That mapper for Africa uses sine/cosine factors to shift the marker x/y to fit the curved lines. Each mapper template sets its own map borders and decides if skewing x/y for curved lines.
Note:
- The image is always framed, so use {{Location map}} to show an unframed image.
- The coordinates are not checked. If the coordinates fall outside the map, then the marker will try to appear outside the map-image, overlaying the page text.
- For a map with no marker, set marksize=1.
- Do not use "px". Using width=200px causes maps to cover a page, use: width=200 (no "px").
- To create a map with more than one marker, refer below to: See also.
- To display a map that uses a non-equirectangular projection (i.e. has curved latitude or longitude lines), use skew factors for x/y as in Module:Location map/data/Africa or try Template:Location map+.
Contents
Usage
Parameter "location" refers to a map definition template. If location is Spain, the map image and coordinates are based on the values set in Module:Location map/data/Spain.
Decimal degree coordinates
{{Location map | location | lat = | long = | label = | label_size = | position = | background = | mark = | marksize = | width = | scale = | float = | border = | caption = | alt = | image = }}
Degree, Minute, Second coordinates
{{Location map | location | lat_deg = | lat_min = | lat_sec = | lat_dir = | lon_deg = | lon_min = | lon_sec = | lon_dir = | label = | label_size = | position = | background = | mark = | marksize = | width = | float = | border = | caption = | alt = | image = }}
Parameters
Parameter | Default | Description |
---|---|---|
{{{1}}} | the unnamed 1st parameter contains the location of the map definition (if Spain, then use values from Module:Location map/data/Spain) | |
lat | 0 | latitude (decimal format; enter negative numbers for southern latitude) |
lat_deg | 0 | latitude degrees |
lat_min | 0 | latitude minutes |
lat_sec | 0 | latitude seconds |
lat_dir | N | latitude: N = north (default), S = south |
long | 0 | longitude (decimal format; enter negative numbers for western longitude) |
lon_deg | 0 | longitude degrees |
lon_min | 0 | longitude minutes |
lon_sec | 0 | longitude seconds |
lon_dir | E | longitude: E = east (default), W = west |
label | {{PAGENAME}} | label text |
label_size | 90 | label font size as a percentage (<100 = smaller, >100 = larger) |
position, or pos | right | label position relative to the mark: left, right, top, bottom, none |
background | transparent | label background color (background-color: {};) |
mark | Red pog.svg | marker image file name ([[Image: {}]]) |
marksize | 8 | marker size in pixels, omit px ([[Image: {}px]] font-size: {}px;) |
width | auto-size | map width - omit "px" or will stretch across page (image: {}px width: ({}+2)px;) |
scale | 1.0 | map scale factor - relative to each user's preference setting for image-size (same as upright=x). |
float | right | position of map on page: left, right, center, none (float: {}; clear: {}; |
border | #CCCCCC | border color or none (border: {};) |
caption | "Marker text (location map name)" | map caption; for no caption enter "caption=" |
alt | empty | alt text for map; used by screen readers, see WP:ALT |
image | {{Location map {{{1}}}|image}} | Alternative map file name without "File:" ([[Image: {}]]), must use same border coordinates as the default map |
Available map templates
There are over 1000 map templates available:
- List of templates - Many of the items listed here are redirects and a few templates may not function as expected.
- 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.
- Location map/data/100x100
- Location map/data/100x100/doc
- Location map/data/AFC
- Location map/data/AFC/doc
- Location map/data/Aarhus
- Location map/data/Abkhazia
- Location map/data/Abkhazia/doc
- Location map/data/Abkhazia Gulripshi
- Location map/data/Abkhazia Gulripshi/doc
- Location map/data/Abruzzo
- Location map/data/Aegean
- Location map/data/Aegean Sea
- Location map/data/Afghanistan
- Location map/data/Afghanistan/doc
- Location map/data/Afghanistan Kabul
- Location map/data/Afghanistan Kabul/doc
- Location map/data/Africa
- Location map/data/Africa/doc
- Location map/data/Africa Zambezi River
- Location map/data/Africa Zambezi River/doc
- Location map/data/Afro-Eurasia
- Location map/data/Afro-Eurasia/doc
- Location map/data/Afro-Eurasia equirectangular
- Location map/data/Afro-Eurasia equirectangular/doc
- Location map/data/Agder
- Location map/data/Akershus
- Location map/data/Alabama
- Location map/data/Alaska
- Location map/data/Albania
- Location map/data/Albania/doc
- Location map/data/Alberta
- Location map/data/Alberta municipal districts
- Location map/data/Alberta municipal districts/doc
- Location map/data/Algeria
- Location map/data/Algeria/doc
- Location map/data/Alps
- Location map/data/Alps/doc
- Location map/data/Altiplano Cundiboyacense
- Location map/data/Amazon river watershed
- Location map/data/America
- Location map/data/America/doc
- Location map/data/American Samoa
- Location map/data/American Samoa central
- Location map/data/Andorra
- Location map/data/Andorra/doc
- Location map/data/Angola
- Location map/data/Angola/doc
- Location map/data/Anguilla
- Location map/data/Antarctic Peninsula
- Location map/data/Antarctic Peninsula/doc
- Location map/data/Antarctica
- Location map/data/Antarctica/doc
- Location map/data/Antigua
- Location map/data/Antigua/doc
- Location map/data/Antigua Guatemala
- Location map/data/Antigua Guatemala/doc
- Location map/data/Antigua and Barbuda
- Location map/data/Antigua and Barbuda/doc
- Location map/data/Antwerp premetro
- Location map/data/Apulia
- Location map/data/Arab world
- Location map/data/Arab world/doc
- Location map/data/Arctic
- Location map/data/Arctic/doc
- Location map/data/Argentina
- Location map/data/Argentina/doc
- Location map/data/Argentina Buenos Aires
- Location map/data/Argentina Buenos Aires/doc
- Location map/data/Argentina Buenos Aires City
- Location map/data/Argentina Buenos Aires City/doc
- Location map/data/Argentina Buenos Aires Province
- Location map/data/Argentina Buenos Aires Province/doc
- Location map/data/Argentina Chaco Province
- Location map/data/Argentina Chaco Province/doc
- Location map/data/Argentina Chubut
- Location map/data/Argentina Chubut/doc
- Location map/data/Argentina Chubut Province
- Location map/data/Argentina Chubut Province/doc
- Location map/data/Argentina Greater Buenos Aires
- Location map/data/Argentina Greater Buenos Aires/doc
- Location map/data/Argentina Neuquén Province
- Location map/data/Argentina Neuquén Province/doc
- Location map/data/Argentina Río Negro Province
- Location map/data/Argentina Río Negro Province/doc
- Location map/data/Argentina San Juan Province
- Location map/data/Argentina San Juan Province/doc
- Location map/data/Argentina Santa Cruz
- Location map/data/Argentina Santa Cruz/doc
- Location map/data/Argentina Tierra del Fuego and Staten Island
- Location map/data/Argentina Tierra del Fuego and Staten Island/doc
- Location map/data/Arizona
- Location map/data/Arkansas
- Location map/data/Armenia
- Location map/data/Armenia/doc
- Location map/data/Aruba
- Location map/data/Aruba/doc
- Location map/data/Aruba streets
- Location map/data/Aruba streets/doc
- Location map/data/Ascension Island
- Location map/data/Ashanti
- Location map/data/Asia
- Location map/data/Asia/doc
- Location map/data/Asia (equirectangular)
- Location map/data/Asia (equirectangular)/doc
- Location map/data/Asia Minor
- Location map/data/Asia Minor/doc
- Location map/data/Asia Southwest
- Location map/data/Asia Southwest/doc
- Location map/data/Atlanta
- Location map/data/Atlanta, Georgia
- Location map/data/Atlantic Ocean
- Location map/data/Atlantic Ocean/doc
- Location map/data/Aust-Agder
- Location map/data/Australia
- Location map/data/Australia/doc
- Location map/data/Australia Australian Capital Territory
- Location map/data/Australia Australian Capital Territory/doc
- Location map/data/Australia Cocos (Keeling) Islands
- Location map/data/Australia Cocos (Keeling) Islands/doc
- Location map/data/Australia Greater Adelaide
- Location map/data/Australia Greater Adelaide/doc
- Location map/data/Australia Heard and McDonald Islands
- Location map/data/Australia Heard and McDonald Islands/doc
- Location map/data/Australia Hobart
- Location map/data/Australia Hobart/doc
- Location map/data/Australia Jervis Bay Territory
- Location map/data/Australia Jervis Bay Territory/doc
- Location map/data/Australia Melbourne
- Location map/data/Australia New South Wales
- Location map/data/Australia New South Wales/doc
- Location map/data/Australia New South Wales LGAs
- Location map/data/Australia New South Wales LGAs/doc
- Location map/data/Australia Newcastle
- Location map/data/Australia Newcastle/doc
- Location map/data/Australia Norfolk Island
- Location map/data/Australia Norfolk Island/doc
- Location map/data/Australia Northern Territory
- Location map/data/Australia Northern Territory/doc
- Location map/data/Australia OOL
- Location map/data/Australia OOL/doc
- Location map/data/Australia Perth
- Location map/data/Australia Perth/doc
- Location map/data/Australia Queensland
- Location map/data/Australia Queensland/doc
- Location map/data/Australia Queensland SEQ
- Location map/data/Australia Rhodes ferry wharf
- Location map/data/Australia Rhodes ferry wharf/doc
- Location map/data/Australia Shark Bay
- Location map/data/Australia Shark Bay/doc
- Location map/data/Australia South Australia
- Location map/data/Australia South Australia/doc
- Location map/data/Australia South Australia City of Adelaide
- Location map/data/Australia South Australia City of Adelaide/doc
- Location map/data/Australia South Australia City of Playford
- Location map/data/Australia South Australia City of Playford/doc
- Location map/data/Australia South Australia City of Port Adelaide Enfield
- Location map/data/Australia South Australia City of Port Adelaide Enfield/doc
- Location map/data/Australia South Australia Riverland
- Location map/data/Australia South Australia Riverland/doc
- Location map/data/Australia South Australia Town of Gawler
- Location map/data/Australia South Australia Town of Gawler/doc
- Location map/data/Australia South Australia Wattle Range Council
- Location map/data/Australia South Australia Wattle Range Council/doc
- Location map/data/Australia South Australia Wudinna District Council
- Location map/data/Australia South Australia Wudinna District Council/doc
- Location map/data/Australia South Australia Yorke Peninsula Council
- Location map/data/Australia South Australia Yorke Peninsula Council/doc
- Location map/data/Australia Sydney
- Location map/data/Australia Sydney/doc
- Location map/data/Australia Sydney central
- Location map/data/Australia Sydney central/doc
- Location map/data/Australia Sydney satellite
- Location map/data/Australia Sydney satellite/doc
- Location map/data/Australia Tasmania
- Location map/data/Australia Tasmania/doc
- Location map/data/Australia Tasmania Brighton Council
- Location map/data/Australia Tasmania Brighton Council/doc
- Location map/data/Australia Victoria
- Location map/data/Australia Victoria/doc
- Location map/data/Australia Victoria Alpine Shire
- Location map/data/Australia Victoria Alpine Shire/doc
- Location map/data/Australia Victoria Bass Coast Shire
- Location map/data/Australia Victoria Bass Coast Shire/doc
- Location map/data/Australia Victoria Baw Baw Shire
- Location map/data/Australia Victoria Baw Baw Shire/doc
- Location map/data/Australia Victoria Borough of Queenscliffe
- Location map/data/Australia Victoria Borough of Queenscliffe/doc
- Location map/data/Australia Victoria City of Ballarat
- Location map/data/Australia Victoria City of Ballarat/doc
- Location map/data/Australia Victoria City of Greater Bendigo
- Location map/data/Australia Victoria City of Greater Bendigo/doc
- Location map/data/Australia Victoria City of Greater Geelong
- Location map/data/Australia Victoria City of Greater Geelong/doc
- Location map/data/Australia Victoria City of Greater Shepparton
- Location map/data/Australia Victoria City of Greater Shepparton/doc
- Location map/data/Australia Victoria City of Latrobe
- Location map/data/Australia Victoria City of Latrobe/doc
- Location map/data/Australia Victoria City of Warrnambool
- Location map/data/Australia Victoria City of Warrnambool/doc
- Location map/data/Australia Victoria City of Wodonga
- Location map/data/Australia Victoria City of Wodonga/doc
- Location map/data/Australia Victoria Colac Otway Shire
- Location map/data/Australia Victoria Colac Otway Shire/doc
- Location map/data/Australia Victoria Corangamite Shire
- Location map/data/Australia Victoria Corangamite Shire/doc
- Location map/data/Australia Victoria French Island
- Location map/data/Australia Victoria French Island/doc
- Location map/data/Australia Victoria Golden Plains Shire
- Location map/data/Australia Victoria Golden Plains Shire/doc
- Location map/data/Australia Victoria Melbourne inset
- Location map/data/Australia Victoria Melbourne inset/doc
- Location map/data/Australia Victoria Melbourne metropolitan area complete
- Location map/data/Australia Victoria Melbourne metropolitan area complete/doc
- Location map/data/Australia Victoria Pyrenees Shire
- Location map/data/Australia Victoria Pyrenees Shire/doc
- Location map/data/Australia Victoria Rural City of Ararat
- Location map/data/Australia Victoria Rural City of Ararat/doc
- Location map/data/Australia Victoria Rural City of Benalla
- Location map/data/Australia Victoria Rural City of Benalla/doc
- Location map/data/Australia Victoria Rural City of Horsham
- Location map/data/Australia Victoria Rural City of Horsham/doc
- Location map/data/Australia Victoria Rural City of Mildura
- Location map/data/Australia Victoria Rural City of Mildura/doc
- Location map/data/Australia Victoria Rural City of Swan Hill
- Location map/data/Australia Victoria Rural City of Swan Hill/doc
- Location map/data/Australia Victoria Rural City of Wangaratta
- Location map/data/Australia Victoria Rural City of Wangaratta/doc
- Location map/data/Australia Victoria Shire of Baw Baw
- Location map/data/Australia Victoria Shire of Baw Baw/doc
- Location map/data/Australia Victoria Shire of Buloke
- Location map/data/Australia Victoria Shire of Buloke/doc
- Location map/data/Australia Victoria Shire of Campaspe
- Location map/data/Australia Victoria Shire of Campaspe/doc
- Location map/data/Australia Victoria Shire of Central Goldfields
- Location map/data/Australia Victoria Shire of Central Goldfields/doc
- Location map/data/Australia Victoria Shire of East Gippsland
- Location map/data/Australia Victoria Shire of East Gippsland/doc
- Location map/data/Australia Victoria Shire of Gannawarra
- Location map/data/Australia Victoria Shire of Gannawarra/doc
- Location map/data/Australia Victoria Shire of Glenelg
- Location map/data/Australia Victoria Shire of Glenelg/doc
- Location map/data/Australia Victoria Shire of Hepburn
- Location map/data/Australia Victoria Shire of Hepburn/doc
- Location map/data/Australia Victoria Shire of Hindmarsh
- Location map/data/Australia Victoria Shire of Hindmarsh/doc
- Location map/data/Australia Victoria Shire of Indigo
- Location map/data/Australia Victoria Shire of Indigo/doc
- Location map/data/Australia Victoria Shire of Loddon
- Location map/data/Australia Victoria Shire of Loddon/doc
- Location map/data/Australia Victoria Shire of Macedon Ranges
- Location map/data/Australia Victoria Shire of Macedon Ranges/doc
- Location map/data/Australia Victoria Shire of Mansfield
- Location map/data/Australia Victoria Shire of Mansfield/doc
- Location map/data/Australia Victoria Shire of Mitchell
- Location map/data/Australia Victoria Shire of Mitchell/doc
- Location map/data/Australia Victoria Shire of Moira
- Location map/data/Australia Victoria Shire of Moira/doc
- Location map/data/Australia Victoria Shire of Moorabool
- Location map/data/Australia Victoria Shire of Moorabool/doc
- Location map/data/Australia Victoria Shire of Mount Alexander
- Location map/data/Australia Victoria Shire of Mount Alexander/doc
- Location map/data/Australia Victoria Shire of Moyne
- Location map/data/Australia Victoria Shire of Moyne/doc
- Location map/data/Australia Victoria Shire of Murrindindi
- Location map/data/Australia Victoria Shire of Murrindindi/doc
- Location map/data/Australia Victoria Shire of Northern Grampians
- Location map/data/Australia Victoria Shire of Northern Grampians/doc
- Location map/data/Australia Victoria Shire of Southern Grampians
- Location map/data/Australia Victoria Shire of Southern Grampians/doc
- Location map/data/Australia Victoria Shire of Strathbogie
- Location map/data/Australia Victoria Shire of Strathbogie/doc
- Location map/data/Australia Victoria Shire of Towong
- Location map/data/Australia Victoria Shire of Towong/doc
- Location map/data/Australia Victoria Shire of Wellington
- Location map/data/Australia Victoria Shire of Wellington/doc
- Location map/data/Australia Victoria Shire of West Wimmera
- Location map/data/Australia Victoria Shire of West Wimmera/doc
- Location map/data/Australia Victoria Shire of Yarriambiack
- Location map/data/Australia Victoria Shire of Yarriambiack/doc
- Location map/data/Australia Victoria South Gippsland Shire
- Location map/data/Australia Victoria South Gippsland Shire/doc
- Location map/data/Australia Victoria Surf Coast Shire
- Location map/data/Australia Victoria Surf Coast Shire/doc
- Location map/data/Australia Victoria metropolitan Melbourne
- Location map/data/Australia Victoria metropolitan Melbourne/doc
- Location map/data/Australia Western Australia
- Location map/data/Australia Western Australia/doc
- Location map/data/Australia Western Australia Bayswater City
- Location map/data/Australia Western Australia Bayswater City/doc
- Location map/data/Australia Western Australia metropolitan Perth
- Location map/data/Australia Western Australia metropolitan Perth/doc
- Location map/data/Australia and New Zealand
- Location map/data/Australia and New Zealand/doc
- Location map/data/Australian Capital Territory
- Location map/data/Austria
- Location map/data/Austria/doc
- Location map/data/Austria AHL
- Location map/data/Austria AHL/doc
- Location map/data/Austria Burgenland
- Location map/data/Austria Burgenland/doc
- Location map/data/Austria Carinthia
- Location map/data/Austria Carinthia/doc
- Location map/data/Austria EBEL
- Location map/data/Austria EBEL/doc
- Location map/data/Austria Lower Austria
- Location map/data/Austria Lower Austria/doc
- Location map/data/Austria Salzburg
- Location map/data/Austria Salzburg/doc
- Location map/data/Austria Styria
- Location map/data/Austria Styria/doc
- Location map/data/Austria Tyrol
- Location map/data/Austria Tyrol/doc
- Location map/data/Austria Upper Austria
- Location map/data/Austria Upper Austria/doc
- Location map/data/Austria Vienna
- Location map/data/Austria Vienna/doc
- Location map/data/Austria Vorarlberg
- Location map/data/Austria Vorarlberg/doc
- Location map/data/Azad Kashmir
- Location map/data/Azad Kashmir/doc
- Location map/data/Azerbaijan
- Location map/data/Azerbaijan/doc
- Location map/data/Azerbaijan Baku
Creating new map templates
- Find an appropriate blank map in equirectangular projection.
- Create a template named Template:Location map location (copy the content of any other map template into it and enter appropriate values).
Examples
This example shows the default marker (red circle), with the image width as auto-sized for each user preference setting (set in Special:Preferences).
{{Location map/sandbox quick | Croatia | lat = 44.44 | long = 15.05 | label = Pag | alt = Pag is on an island }}
This example shows a green circle ("Image:Green pog.svg"), with scale=0.75 to set the map width to 75% (3/4) of each user's image-size setting. The 2 lines are indented for position/mark, to show a way to emphasize the details about the label & marker.
{{Location map/sandbox quick | Croatia | lat_deg = 44 | lat_min = 26 | lon_deg = 15 | lon_min = 3 | label = Pag | position = right | mark = Green pog.svg <!--green dot--> | scale = 0.75 | float = right | alt = Pag is on an island. }}
This example sets the label color by "background = #FFFFDD" and sets the caption=xx for the caption below the map. The width=200 sets the image width to 200px for all readers, rather than scale=0.75 as set to 75% of each user's preference setting.
{{Location map/sandbox quick | Croatia | lat = 43.44 | long = 17.21 | label = Imotski | position = right | background = #FFFFDD | width = 200 | float = right | caption = Imotski in Croatia | alt = Imotski is in Croatia. }}
Map with enlarged marker and label
This example shows a much larger label (double size, label_size=200), with a larger marker set to marksize=14, and with the map width=200.
{{Location map/sandbox quick | Croatia | lat = 44.44 | long = 15.05 | label = Pag | label_size = 200 <!--200% larger--> | position = right | background = #FFFFDD | marksize = 14 | width = 200 | float = right | caption = Pag Island in Croatia | alt = Pag is on an island }}
Alternative style of map
{{Location map/sandbox quick | UK Scotland | lat_deg = 55 | lat_min = 07 | lat_sec = 16 | lat_dir = N | lon_deg = 03 | lon_min = 21 | lon_sec = 19 | lon_dir = W | label = Lockerbie | position = right | mark = Blue_pog.svg | marksize = 9 | float = right | caption = Lockerbie in Scotland | alt = Lockerbie is in southern Scotland. }}
{{Location map/sandbox quick | UK Scotland | lat_deg = 55 | lat_min = 07 | lat_sec = 16 | lat_dir = N | lon_deg = 03 | lon_min = 21 | lon_sec = 19 | lon_dir = W | label = Lockerbie | position = right | mark = Blue_pog.svg | marksize = 9 | float = right | caption = Lockerbie in Scotland | alt = Lockerbie is in southern Scotland. }}
Using Alternative map image=xx
{{Location map/sandbox quick | Nepal | lat_deg = 26 | lat_min = 28 | lat_sec = 53 | lat_dir = N | lon_deg = 87 | lon_min = 15 | lon_sec = 50 | lon_dir = E | label = Biratnagar | position = top | mark = Airplane silhouette.svg | marksize = 10 | caption = Location of Biratnagar Airport in Nepal | alt = Biratnagar Airport is located in southeastern Nepal }}
{{Location map/sandbox quick | Nepal | lat_deg = 26 | lat_min = 28 | lat_sec = 53 | lat_dir = N | lon_deg = 87 | lon_min = 15 | lon_sec = 50 | lon_dir = E | label = Biratnagar | position = top | mark = Airplane silhouette.svg | marksize = 10 | caption = Location of Biratnagar Airport in Nepal | alt = Biratnagar Airport is located in southeastern Nepal | image = Nepal relief location map.jpg }}
Design issues
Each of the mapper templates named as "Location_map_XX" (such as Module:Location map/data/Africa) contains a map-image name, latitude range, longitude range, or x/y skew factors, as the details hidden by data encapsulation (computer science). Some mapper templates treat latitude/longitude as straight lines (Mercator projections), whereas other mappers have skew factors for maps with curved lines. Hence, each of those templates is not a "fork" of {{Location map}} but instead, they are accessor functions which access the map-border coordinates or skew-factors as shared data, rather than being repeated data in each article using Module:Location map/data/Italy. If Italy officially changes its map borders, then only that one mapper template need be changed, and only those Italy-related articles will be reformatted. The total of 20,000+ articles using {Location_map} will NOT be reformatted when someone updates each particular "Location_map_XX" and so the impact on Wikipedia server work is reduced, as roughly 450 times faster, by having 450 separate mapper templates.
See also
Media related to Map pointers at Wikimedia Commons Media related to Location markers at Wikimedia Commons
- Template:Location map many - placing multiple markers/labels.
- Template:Location map+ - placing long list of markers/labels.
- Module:Location map/data/Africa - uses sine/cosine to skew x/y locations.
- {{Annotated image}}, allows text notes to overlap image, allows cropping
- {{Lageplan}}, related template to Location map with specific features
- {{Superimpose}}, supports simple layer superimposition.