ഫലകം:Mapframe/doc

Schoolwiki സംരംഭത്തിൽ നിന്ന്

Parameters

  • 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

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

Map






















<templatedata> { "params": { "frame": { "label": "Frame", "description": "Check to add a frame, uncheck to remove the frame (if typing in wikitext, write 1 for frame and 0 for frameless)", "type": "boolean", "default": "1", "autovalue": "1", "suggested": true }, "infobox": { "label": "Infobox", "description": "Check to adjust the map size to fit in an infobox (if typing in wikitext, write 1)", "type": "boolean", "autovalue": "0" }, "align": { "label": "Align", "description": "Align the mapframe within the article content, similar to an image", "type": "string", "suggestedvalues": [ "right", "center", "left" ], "default": "right", "autovalue": "", "suggested": true }, "caption": { "label": "Caption", "description": "Add a caption to the map, similar to an image. If frameless or formatted for an infobox, this value will be ignored.", "type": "content", "suggested": true }, "list": { "label": "List", "description": "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.", "type": "number", "suggestedvalues": [ "1", "2" ], "suggested": true }, "width": { "label": "Width", "description": "Width of the map in pixels. Do not write \"px\" after. If formatted for infobox, it will automatically be set to 260.", "type": "number", "default": "350", "suggested": true }, "Height": { "description": "Height of the map in pixels. Do not write \"px\" after. If formatted for infobox, it will automatically be set to 260.", "type": "number", "default": "300", "suggested": true }, "group": { "label": "Group", "description": "Name (not numerical) to identify the map" }, "centre_lat": { "label": "Center latitude", "description": "Latitude of center coordinate", "required": true }, "centre_lon": { "label": "Center longitude", "description": "Longitude of the center coordinate", "required": true }, "zoom": { "label": "Zoom", "description": "Scale of the map. Value is between 0 (world scale) and 18 (very zoomed in). If infobox is selected, then default is 13.", "type": "number", "suggestedvalues": [ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18" ], "default": "10", "suggested": true }, "autozoom": { "label": "Autozoom", "description": "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.", "suggestedvalues": [ "y", "n" ], "default": "y" }, "color": { "label": "Color", "description": "The default color for all the points or markers added to the map. Must be hex value with # included.", "default": "#B80000" }, "lat1": { "description": "Latitude of the first marker" }, "lat2": { "description": "Latitude of the second marker" }, "lat3": { "description": "Latitude of the third marker" }, "lat4": { "description": "Latitude of the fourth marker, more can be added lat5, lat6, etc..." }, "lon1": { "description": "Longitude of the first marker" }, "lon2": { "description": "Longitude of the second marker" }, "lon3": { "description": "Longitude of the third marker" }, "lon4": { "description": "Longitude of the fourth marker, more can be added lon5, lon6, etc..." }, "color1": { "description": "Color of the first marker" }, "color2": { "description": "Color of the second marker" }, "color3": { "description": "Color of the third marker" }, "color4": { "description": "Color of the fourth marker, more can be added color5, color6, etc." }, "name1": { "description": "Name of the first marker" }, "name2": { "description": "Name of the second marker" }, "name3": { "description": "Name of the third marker" }, "name4": { "description": "Name of the fourth marker, can add more name5, name6, etc." }, "desc1": { "description": "Description of first marker, can include links and images.", "type": "string" }, "desc2": { "description": "Description of second marker, can include links and images.", "type": "string" }, "desc3": { "description": "Description of third marker, can include links and images.", "type": "string" }, "desc4": { "description": "Description of fourth marker, can include links and images. Can add more desc5, desc6, etc.", "type": "string" }, "symbol1": { "description": "Icon to show in first marker. Choose -number to show consecutive numbers for makers or -letter to show letters.", "type": "string", "suggestedvalues": [ "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" }, "symbol2": { "description": "Icon to show in second marker. Choose -number to show consecutive numbers for makers or -letter to show letters.", "type": "string", "suggestedvalues": [ "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" }, "symbol3": { "description": "Icon to show in third marker. Choose -number to show consecutive numbers for makers or -letter to show letters.", "type": "string", "suggestedvalues": [ "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" }, "symbol4": { "description": "Icon to show in fourth marker. Choose -number to show consecutive numbers for makers or -letter to show letters.", "type": "string", "suggestedvalues": [ "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" }, "size1": { "description": "Size of the first marker", "type": "string", "suggestedvalues": [ "small", "medium", "large" ], "default": "medium" }, "size2": { "description": "Size of the second marker", "type": "string", "suggestedvalues": [ "small", "medium", "large" ], "default": "medium" }, "size3": { "description": "Size of the third marker", "type": "string", "suggestedvalues": [ "small", "medium", "large" ], "default": "medium" }, "size4": { "description": "Size of the fourth marker", "type": "string", "suggestedvalues": [ "small", "medium", "large" ], "default": "medium" }, "data": { "label": "Data", "description": "Add additional GeoJSON data, for example to add a geoshape" } }, "paramOrder": [ "frame", "infobox", "align", "caption", "list", "width", "Height", "group", "centre_lat", "centre_lon", "zoom", "autozoom", "color", "lat1", "lat2", "lat3", "lat4", "lon1", "lon2", "lon3", "lon4", "color1", "color2", "color3", "color4", "name1", "name2", "name3", "name4", "desc1", "desc2", "desc3", "desc4", "symbol1", "symbol2", "symbol3", "symbol4", "size1", "size2", "size3", "size4", "data" ] } </templatedata>

"https://schoolwiki.in/index.php?title=ഫലകം:Mapframe/doc&oldid=2507753" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്