سانچو:Location map/sandbox quick/doc
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/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/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/Andorra
- Location map/data/Andorra/doc
- Location map/data/Angola
- Location map/data/Angola/doc
- 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/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/Ascension Island/doc
- 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/Atlantic Ocean
- Location map/data/Atlantic Ocean/doc
- 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 Greater Adelaide
- Location map/data/Australia Heard and McDonald Islands
- Location map/data/Australia Hobart
- Location map/data/Australia Jervis Bay Territory
- Location map/data/Australia Melbourne
- Location map/data/Australia New South Wales
- Location map/data/Australia New South Wales LGAs
- Location map/data/Australia Newcastle
- Location map/data/Australia Norfolk Island
- Location map/data/Australia Northern Territory
- Location map/data/Australia OOL
- Location map/data/Australia Perth
- Location map/data/Australia Queensland
- Location map/data/Australia Rhodes ferry wharf
- Location map/data/Australia Shark Bay
- Location map/data/Australia South Australia
- Location map/data/Australia South Australia City of Adelaide
- Location map/data/Australia South Australia City of Playford
- Location map/data/Australia South Australia City of Port Adelaide Enfield
- Location map/data/Australia South Australia Riverland
- Location map/data/Australia South Australia Town of Gawler
- Location map/data/Australia South Australia Wattle Range Council
- Location map/data/Australia South Australia Wudinna District Council
- Location map/data/Australia South Australia Yorke Peninsula Council
- Location map/data/Australia Sydney
- Location map/data/Australia Sydney central
- Location map/data/Australia Sydney satellite
- Location map/data/Australia Tasmania
- Location map/data/Australia Tasmania Brighton Council
- Location map/data/Australia Victoria
- Location map/data/Australia Victoria Alpine Shire
- Location map/data/Australia Victoria Bass Coast Shire
- Location map/data/Australia Victoria Baw Baw Shire
- Location map/data/Australia Victoria Borough of Queenscliffe
- Location map/data/Australia Victoria City of Ballarat
- Location map/data/Australia Victoria City of Greater Bendigo
- Location map/data/Australia Victoria City of Greater Geelong
- Location map/data/Australia Victoria City of Greater Shepparton
- Location map/data/Australia Victoria City of Latrobe
- Location map/data/Australia Victoria City of Warrnambool
- Location map/data/Australia Victoria City of Wodonga
- Location map/data/Australia Victoria Colac Otway Shire
- Location map/data/Australia Victoria Corangamite Shire
- Location map/data/Australia Victoria French Island
- Location map/data/Australia Victoria Golden Plains Shire
- Location map/data/Australia Victoria Melbourne inset
- Location map/data/Australia Victoria Melbourne metropolitan area complete
- Location map/data/Australia Victoria Pyrenees Shire
- Location map/data/Australia Victoria Rural City of Ararat
- Location map/data/Australia Victoria Rural City of Benalla
- Location map/data/Australia Victoria Rural City of Horsham
- Location map/data/Australia Victoria Rural City of Mildura
- Location map/data/Australia Victoria Rural City of Swan Hill
- Location map/data/Australia Victoria Rural City of Wangaratta
- Location map/data/Australia Victoria Shire of Baw Baw
- Location map/data/Australia Victoria Shire of Buloke
- Location map/data/Australia Victoria Shire of Campaspe
- Location map/data/Australia Victoria Shire of Central Goldfields
- Location map/data/Australia Victoria Shire of East Gippsland
- Location map/data/Australia Victoria Shire of Gannawarra
- Location map/data/Australia Victoria Shire of Glenelg
- Location map/data/Australia Victoria Shire of Hepburn
- Location map/data/Australia Victoria Shire of Hindmarsh
- Location map/data/Australia Victoria Shire of Indigo
- Location map/data/Australia Victoria Shire of Loddon
- Location map/data/Australia Victoria Shire of Macedon Ranges
- Location map/data/Australia Victoria Shire of Mansfield
- Location map/data/Australia Victoria Shire of Mitchell
- Location map/data/Australia Victoria Shire of Moira
- Location map/data/Australia Victoria Shire of Moorabool
- Location map/data/Australia Victoria Shire of Mount Alexander
- Location map/data/Australia Victoria Shire of Moyne
- Location map/data/Australia Victoria Shire of Murrindindi
- Location map/data/Australia Victoria Shire of Northern Grampians
- Location map/data/Australia Victoria Shire of Southern Grampians
- Location map/data/Australia Victoria Shire of Strathbogie
- Location map/data/Australia Victoria Shire of Towong
- Location map/data/Australia Victoria Shire of Wellington
- Location map/data/Australia Victoria Shire of West Wimmera
- Location map/data/Australia Victoria Shire of Yarriambiack
- Location map/data/Australia Victoria South Gippsland Shire
- Location map/data/Australia Victoria Surf Coast Shire
- Location map/data/Australia Victoria metropolitan Melbourne
- Location map/data/Australia Western Australia
- Location map/data/Australia Western Australia Bayswater City
- Location map/data/Australia Western Australia metropolitan Perth
- Location map/data/Australia and New Zealand
- Location map/data/Australia and New Zealand/doc
- Location map/data/Australian Capital Territory
- Location map/data/Australian Capital Territory/doc
- Location map/data/Austria
- Location map/data/Austria AHL
- Location map/data/Austria Burgenland
- Location map/data/Austria Carinthia
- Location map/data/Austria EBEL
- Location map/data/Austria Lower Austria
- Location map/data/Austria Salzburg
- Location map/data/Austria Styria
- Location map/data/Austria Tyrol
- Location map/data/Austria Upper Austria
- Location map/data/Austria Vienna
- Location map/data/Austria Vorarlberg
- Location map/data/Austria vienna
- Location map/data/Azad Kashmir
- Location map/data/Azerbaijan
- Location map/data/Azerbaijan Baku
- Location map/data/Azerbaijan Baku Old City streets
- Location map/data/BRT Bandai-bashi Line
- Location map/data/Baden-Württemberg
- Location map/data/Bahamas
- Location map/data/Bahrain
- Location map/data/Bahrain Manama
- Location map/data/Baku, Azerbaijan
- Location map/data/Balkans
- Location map/data/Balochistan Pakistan
- Location map/data/Balochistan Pakistan/doc
- Location map/data/Baltic Sea
- Location map/data/Baltic states
- Location map/data/Bangkok Metropolitan Region
- Location map/data/Bangladesh
- Location map/data/Bangladesh Dhaka
- Location map/data/Bantayan Island
- Location map/data/Barbados
- Location map/data/Bavaria
- Location map/data/Beijing
- Location map/data/Belarus
- Location map/data/Belgium
- Location map/data/Belgium Antwerp premetro
- Location map/data/Belgium Brussels
- Location map/data/Belize
- Location map/data/Benelux
- Location map/data/Benin
- Location map/data/Berlin
- Location map/data/Bhutan
- Location map/data/Bhutan Bumthang
- Location map/data/Bhutan Chukha
- Location map/data/Bhutan Dagana
- Location map/data/Bhutan Gasa
- Location map/data/Bhutan Haa
- Location map/data/Bhutan Lhuntse
- Location map/data/Bhutan Mongar
- Location map/data/Bhutan Paro
- Location map/data/Bhutan Pemagatshel
- Location map/data/Bhutan Punakha
- Location map/data/Bhutan Samdrup Jongkhar
- Location map/data/Bhutan Samtse
- Location map/data/Bhutan Sarpang
- Location map/data/Bhutan Thimphu
- Location map/data/Bhutan Trashigang
- Location map/data/Bhutan Trashiyangtse
- Location map/data/Bhutan Trongsa
- Location map/data/Bhutan Tsirang
- Location map/data/Bhutan Wangdue Phodrang
- Location map/data/Bhutan Zhemgang
- Location map/data/Bihar
- Location map/data/Black Sea
- Location map/data/Bogotá savanna
- Location map/data/Bolivia
- Location map/data/Bolivia Cochabamba
- Location map/data/Bonaire
- Location map/data/Borneo
- Location map/data/Bosnia
- Location map/data/Bosnia and Herzegovina
- Location map/data/Boston Metro
- Location map/data/Botswana
- Location map/data/Brandenburg
- Location map/data/Brazil
- Location map/data/Brazil Brasília
- Location map/data/Brazil Minas Gerais state
- Location map/data/Brazil Rio Grande do Sul Paleorrota
- Location map/data/Brazil Rio de Janeiro
- Location map/data/Brazil Rio de Janeiro City
- Location map/data/Brazil Rio de Janeiro Copacabana
- Location map/data/Brazil Santa Maria paleontological sites
- Location map/data/Brazil Sao Paulo
- Location map/data/Brazil São Paulo City
- Location map/data/Brazil São Paulo State
- Location map/data/British Columbia
- Location map/data/British Columbia Vancouver
- Location map/data/British Columbia Vancouver Downtown
- Location map/data/British Columbia geo
- Location map/data/British Isles
- Location map/data/British Isles Oceans
- Location map/data/Brunei
- Location map/data/Budapest
- Location map/data/Bulgaria
- Location map/data/Bulgaria Kardzhali Province
- Location map/data/Bulgaria Plovdiv city centre
- Location map/data/Bulgaria Plovdiv old town
- Location map/data/Bulgaria Sofia
- Location map/data/Burkina Faso
- Location map/data/Burma
- Location map/data/Burma Sagaing
- Location map/data/Burundi
- Location map/data/CONCACAF
- Location map/data/Calabarzon
- Location map/data/Calgary
- Location map/data/Cambodia
- Location map/data/Cambodia islands North
- Location map/data/Cambodia islands South
- Location map/data/Cameroon
- Location map/data/Camotes
- Location map/data/Canada
- Location map/data/CanadaGeo
- Location map/data/CanadaTerrain
- Location map/data/Canada Alberta
- Location map/data/Canada Baffin Island
- Location map/data/Canada British Columbia
- Location map/data/Canada British Columbia geo
- Location map/data/Canada Calgary
- Location map/data/Canada Central Quebec
- Location map/data/Canada Eastern Quebec
- Location map/data/Canada Edmonton
- Location map/data/Canada Greater Montreal
- Location map/data/Canada Kananaskis parks
- Location map/data/Canada Lac-Saint-Jean Quebec
- Location map/data/Canada Lethbridge
- Location map/data/Canada Manitoba
- Location map/data/Canada Montreal
- Location map/data/Canada New Brunswick
- Location map/data/Canada Newfoundland
- Location map/data/Canada Newfoundland and Labrador
- Location map/data/Canada Northwest Territories
- Location map/data/Canada Nova Scotia
- Location map/data/Canada Nunavut
- Location map/data/Canada Ontario
- Location map/data/Canada Ontario Peterborough North
- Location map/data/Canada Ontario Quebec
- Location map/data/Canada Ontario York
- Location map/data/Canada Ottawa
- Location map/data/Canada PEI
- Location map/data/Canada Prince Edward Island
- Location map/data/Canada Quebec
- Location map/data/Canada Quebec (conic)
- Location map/data/Canada Quebec Central
- Location map/data/Canada Quebec City
- Location map/data/Canada Quebec Côte-Nord Region
- Location map/data/Canada Quebec Eastern
- Location map/data/Canada Quebec Lac-Saint-Jean
- Location map/data/Canada Quebec Southern
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
سنواريوDefault width, float, label position, and caption (decimal coordinates)
سنواريوMap with the default caption (degrees/minutes)
سنواريو
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. }}
Map with a custom caption and text background
سنواريو
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
سنواريووڪيميڊيا العام تي Map pointers بابت زمرا وڪيميڊيا العام تي Location markers بابت مواد
- 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.