Parameters edit

  • frame = if it equals 1, a frame is created. Default value: 1.
  • infobox = if it equals 1, the size is ideal for an infobox.
  • align = to align the map frame. Possible values: right, left or center. Default value: right.
  • caption = optional caption of the map (ignored if frame = 0 or if infobox = 1).
  • list = show a legend with the list of points. If it equals 1, a single column list is inserted; if equals 2, a two-columns list is inserted.
  • width = width of the map in px. Default value: 350 (260 if infobox = 1).
  • height = height of the map in px. Default value: 300 (260 if infobox = 1).
  • group = name (not numerical) to identify the map.
  • centre_lat, centre_lon = coordinates of the centre. If they are not omitted, the centre coordinates are calculated.
  • zoom = scale of the OSM map; the value is between 0 (world) e 18. For a single point the default value is 10 (13 if infobox = 1).
  • autozoom = if it equals y, the scale is calculated to show all points; if it equals n an automatic mapframe zoom is used. For a single point the default zoom value is 10. Default value: y.
  • color = default color for all points. Default value: #B80000.
  • symbol = default symbol for all points (see map below). Use -number to show numbers or -letter to show letters. Default value: -number.
Points
  • lat1, lat2, ... = latitude
  • lon1, lon2, ... = longitude
  • color1, color2, ... = color
  • name1, name2, ... = name
  • desc1, desc2, ... = description with links and images.
  • symbol1, symbol2, ... = symbol (see map below). Use -number to show numbers or -letter to show letters. Default value: -number.
  • size1, size2, ... = size. Values: small, medium, large. Default value: medium.
Data
  • data = GeoJSON data

Examples edit

Map
Map caption
{{Mapframe
|caption = Map caption
|symbol1 = village
|lat1 = 41.740548
|lon1 = 12.233389
|name1 = Name
|group = a
}}
Map
{{Mapframe
|lat1 = 43.786922
|lon1 = 12.077667
|name1 = Sorgente del [[Tevere]]
|symbol1 = museum
|lat2 = 41.740548
|lon2 = 12.233389
|name2 = Foce del [[Tevere]] a [[Roma]]
|color2 = #008000
|symbol2 = restaurant
|lat3 = 48.856667
|lon3 = 2.351944
|name3 = [[Parigi]]
|color3 = #0000b8
|symbol3 = library
|gruppo = b
}}
Map

1 Point 1

2 Point 2

3 Point 3

{{Mapframe
|list=1
|group = esempio-elenco
|lat1 = 43.786922
|lon1 = 12.077667
|name1 = Point 1
|lat2 = 41.740548
|lon2 = 12.233389
|name2 = Point 2
|lat3 = 48.856667
|lon3 = 2.351944
|name3 = Point 3
}}
Map
Louvre
{{Mapframe
|caption = Louvre
|centre_lat = 48.8610
|centre_lon = 2.3359
|zoom = 15
|data = {
  "type": "ExternalData",
  "service": "geoshape",
  "ids": "Q19675"
}
}}
{{Mapframe
|caption = [[w:Autostrada A11 (Italy)|Autostrada A11 (Italy)]]
|width = 400
|centre_lat = 43.8187
|centre_lon = 10.7682
|zoom = 9
|data = {
  "type": "ExternalData",
  "service": "geoline",
  "ids": "Q781975",
  "properties": {
    "stroke": "#07852c",
    "stroke-width": 8
  }
}
}}

Map with available symbols edit

Map






















No description.

Template parameters

ParameterDescriptionTypeStatus
Frameframe

Check to add a frame, uncheck to remove the frame (if typing in wikitext, write 1 for frame and 0 for frameless)

Default
1
Auto value
1
Booleansuggested
Infoboxinfobox

Check to adjust the map size to fit in an infobox (if typing in wikitext, write 1)

Auto value
0
Booleanoptional
Alignalign

Align the mapframe within the article content, similar to an image

Suggested values
right center left
Default
right
Auto value
Stringsuggested
Captioncaption

Add a caption to the map, similar to an image. If frameless or formatted for an infobox, this value will be ignored.

Contentsuggested
Listlist

Display a legend with a list of points. If value is "1" the legend is shown in a single column. If value is "2" a two-columns list is shown.

Suggested values
1 2
Numbersuggested
Widthwidth

Width of the map in pixels. Do not write "px" after. If formatted for infobox, it will automatically be set to 260.

Default
350
Numbersuggested
HeightHeight

Height of the map in pixels. Do not write "px" after. If formatted for infobox, it will automatically be set to 260.

Default
300
Numbersuggested
Groupgroup

Name (not numerical) to identify the map

Unknownoptional
Center latitudecentre_lat

Latitude of center coordinate

Unknownrequired
Center longitudecentre_lon

Longitude of the center coordinate

Unknownrequired
Zoomzoom

Scale of the map. Value is between 0 (world scale) and 18 (very zoomed in). If infobox is selected, then default is 13.

Suggested values
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Default
10
Numbersuggested
Autozoomautozoom

If it equals "y" the scale is automatically calculated to show all points included on the map. If it equals "n" an automatic zoom is used.

Suggested values
y n
Default
y
Unknownoptional
Colorcolor

The default color for all the points or markers added to the map. Must be hex value with # included.

Default
#B80000
Unknownoptional
lat1lat1

Latitude of the first marker

Unknownoptional
lat2lat2

Latitude of the second marker

Unknownoptional
lat3lat3

Latitude of the third marker

Unknownoptional
lat4lat4

Latitude of the fourth marker, more can be added lat5, lat6, etc...

Unknownoptional
lon1lon1

Longitude of the first marker

Unknownoptional
lon2lon2

Longitude of the second marker

Unknownoptional
lon3lon3

Longitude of the third marker

Unknownoptional
lon4lon4

Longitude of the fourth marker, more can be added lon5, lon6, etc...

Unknownoptional
color1color1

Color of the first marker

Unknownoptional
color2color2

Color of the second marker

Unknownoptional
color3color3

Color of the third marker

Unknownoptional
color4color4

Color of the fourth marker, more can be added color5, color6, etc.

Unknownoptional
name1name1

Name of the first marker

Unknownoptional
name2name2

Name of the second marker

Unknownoptional
name3name3

Name of the third marker

Unknownoptional
name4name4

Name of the fourth marker, can add more name5, name6, etc.

Unknownoptional
desc1desc1

Description of first marker, can include links and images.

Stringoptional
desc2desc2

Description of second marker, can include links and images.

Stringoptional
desc3desc3

Description of third marker, can include links and images.

Stringoptional
desc4desc4

Description of fourth marker, can include links and images. Can add more desc5, desc6, etc.

Stringoptional
symbol1symbol1

Icon to show in first marker. Choose -number to show consecutive numbers for makers or -letter to show letters.

Suggested values
aerialway airfield airport alcohol-shop america-football art-gallery bakery bank bar baseball beer bicycle building bus cafe camera campsite car cemetery chemist cinema circle circle-stroked city clothing-store college commercial cricket cross dam danger dentist disability dog-park embassy emergency-telephone entrance farm fast-food ferry fire-station fuel garden gift golf grocery hairdresser harbor heart heliport hospital ice-cream industrial land-use laundry library lighthouse lodging logging london-underground marker marker-stroked minefield mobilephone monument museum music oil-well park parking parking-garage pharmacy pitch place-of-worship playground police polling-place post prison rail rail-above rail-light rail-metro rail-underground religious-christian religious-jewish religious-muslim restaurant roadblock rocket school scooter shop skiing slaughterhouse soccer square square-stroked star star-stroked suitcase swimming telephone tennis theatre toilets town town-hall triangle triangle-stroked village warehouse waste-basket water wetland zoo
Default
-number
Stringoptional
symbol2symbol2

Icon to show in second marker. Choose -number to show consecutive numbers for makers or -letter to show letters.

Suggested values
aerialway airfield airport alcohol-shop america-football art-gallery bakery bank bar baseball beer bicycle building bus cafe camera campsite car cemetery chemist cinema circle circle-stroked city clothing-store college commercial cricket cross dam danger dentist disability dog-park embassy emergency-telephone entrance farm fast-food ferry fire-station fuel garden gift golf grocery hairdresser harbor heart heliport hospital ice-cream industrial land-use laundry library lighthouse lodging logging london-underground marker marker-stroked minefield mobilephone monument museum music oil-well park parking parking-garage pharmacy pitch place-of-worship playground police polling-place post prison rail rail-above rail-light rail-metro rail-underground religious-christian religious-jewish religious-muslim restaurant roadblock rocket school scooter shop skiing slaughterhouse soccer square square-stroked star star-stroked suitcase swimming telephone tennis theatre toilets town town-hall triangle triangle-stroked village warehouse waste-basket water wetland zoo
Default
-number
Stringoptional
symbol3symbol3

Icon to show in third marker. Choose -number to show consecutive numbers for makers or -letter to show letters.

Suggested values
aerialway airfield airport alcohol-shop america-football art-gallery bakery bank bar baseball beer bicycle building bus cafe camera campsite car cemetery chemist cinema circle circle-stroked city clothing-store college commercial cricket cross dam danger dentist disability dog-park embassy emergency-telephone entrance farm fast-food ferry fire-station fuel garden gift golf grocery hairdresser harbor heart heliport hospital ice-cream industrial land-use laundry library lighthouse lodging logging london-underground marker marker-stroked minefield mobilephone monument museum music oil-well park parking parking-garage pharmacy pitch place-of-worship playground police polling-place post prison rail rail-above rail-light rail-metro rail-underground religious-christian religious-jewish religious-muslim restaurant roadblock rocket school scooter shop skiing slaughterhouse soccer square square-stroked star star-stroked suitcase swimming telephone tennis theatre toilets town town-hall triangle triangle-stroked village warehouse waste-basket water wetland zoo
Default
-number
Stringoptional
symbol4symbol4

Icon to show in fourth marker. Choose -number to show consecutive numbers for makers or -letter to show letters.

Suggested values
aerialway airfield airport alcohol-shop america-football art-gallery bakery bank bar baseball beer bicycle building bus cafe camera campsite car cemetery chemist cinema circle circle-stroked city clothing-store college commercial cricket cross dam danger dentist disability dog-park embassy emergency-telephone entrance farm fast-food ferry fire-station fuel garden gift golf grocery hairdresser harbor heart heliport hospital ice-cream industrial land-use laundry library lighthouse lodging logging london-underground marker marker-stroked minefield mobilephone monument museum music oil-well park parking parking-garage pharmacy pitch place-of-worship playground police polling-place post prison rail rail-above rail-light rail-metro rail-underground religious-christian religious-jewish religious-muslim restaurant roadblock rocket school scooter shop skiing slaughterhouse soccer square square-stroked star star-stroked suitcase swimming telephone tennis theatre toilets town town-hall triangle triangle-stroked village warehouse waste-basket water wetland zoo
Default
-number
Stringoptional
size1size1

Size of the first marker

Suggested values
small medium large
Default
medium
Stringoptional
size2size2

Size of the second marker

Suggested values
small medium large
Default
medium
Stringoptional
size3size3

Size of the third marker

Suggested values
small medium large
Default
medium
Stringoptional
size4size4

Size of the fourth marker

Suggested values
small medium large
Default
medium
Stringoptional
Datadata

Add additional GeoJSON data, for example to add a geoshape

Unknownoptional