Wikipedia:Mapframe maps in infoboxes

Mapframe maps in infoboxes
Example of a mapframe map in an infobox

This project page tracks the deployment of mapframe maps to infobox templates. The Infobox mapframe module assists in producing maps with limited or no additional inputs needed when an infobox is used in an article.

Background

Wikipedia:Requests for comment/Mapframe maps in infoboxes was held in mid-2020. See the RFC for complete details, but a summary of the closes is:

  1. Mapframe mapping capability, and standard parameters for displaying mapframe maps (i.e. use of Module:Infobox mapframe), should be added to infoboxes
  2. No consensus for mapframe maps to be on by default, nor a consensus on whether mapframes should be on by default if there are no other maps present.
  3. Map placement should be determined by local consensus at each infobox
  4. If users do not specify coordinates in a parameter, coordinates from Wikidata should be used
  5. Switcher functionality should not be enabled by default

There are various ways in which individual infobox templates can customise how mapframe maps are used, including:

Process

  1. Check the chosen infobox template for potential, such as:
  2. Examine the infobox talk page for any signs of map-related controversy
  3. If the latter check brings up anything, propose any changes first, and notify relevant wikiprojects
  4. Discuss any implementation nuances with infobox users/maintainers
    • Positioning inside the template
    • Whether to render wikidata coordinates / shapes by default
    • Whether to turn on mapframes by default, or to supply them when no other maps are present
    • If there are multiple coordinates parameters, the choice of which one is rendered by mapframe
    • Matching widths of maps and images
    • Marker icon
    • Mapping of length/area parameters
  5. Update the template sandbox, per normal template editing
  6. Update the template test cases to make sure mapframe rendering is tested, esp. if defaults are changed
  7. Check for manual transclusions which don't use an identifiable map parameter, but rather some free-form parameter, which in turn may have to be fixed manually (to avoid mapframe duplication)
    • If they exist and you can't attend to them all immediately, disable the mapframe by default on them with something like this in an onByDefault check:
    {{#invoke:String|match|s= {{{embedded|}}}{{{module|}}} |pattern= mapframe |ignore_errors= true}}
  8. Update the live template (ideally by copying the tested sandbox version verbatim)
  9. Update the documentation
  10. Update the tracking table below
  11. Update any manual invocations of infobox mapframe to new syntax
  12. Check Category:Pages with script errors for any fresh errors related to the change. Typical issues include:
    • coordinates present but not formatted with {{coord}} - make sure template specifies it as such and fix broken call sites
    • broken coordinates parameters
    A poor man's check for weirdness in coordinates parameters: with a hastemplate: keyword and an insource: keyword
    If you can't attend to all of the coordinates parameters breakages immediately, disable the mapframe rendering on them by wrapping the call in {{ifnoerror then show}}

Tracking

Column descriptions:

Mapframe maps
"check" if the infobox can show mapframe maps (without users filling out a complete {{maplink}} template or <mapframe> tag)
"check Standard" if the infobox uses {{#invoke:Infobox mapframe|auto}} for standard parameters, per Q1 of the RFC
Documentation
"check" If the documentation has been updated
"check Standard" if the documentation uses {{Infobox mapframe/doc/parameters}}
" Partly done" if there is incomplete documentation


Template:Infobox Mapframe
maps
DocumentationNotes Expected marker
aerial lift linecheck Standardcheck Standardcheck aerialway
aircraft occurrencecheck Standardcheck Standardcan't autodetect good zoom for oceans?
airportcheck Standardcheck Standardcheck airport
Albanian settlementcheck town or city
amusement parkcheck Standardcheck Standardcheck amusement park
ancient sitecheck Standardcheck StandardX mark ancient site/ruin, indigenous settlement
artworkcheck Standardcheck StandardCan not be turned on if pushpin map is specified. Coding could be simplified (the {{yesno}} isn't needed).X mark ?
artwork/wikidatacheck Standardcheck StandardX mark ?
Australian electorateProbably not too useful unless geoJSON maps of the boundaries are made/uploaded.check N/A
Australian placecheck StandardcheckWrapper of Infobox settlementcheck town or city
Australian roadcheck Standardcheck StandardMapframe documentation collapsed, as per the rest of the doccheck N/A
Belgium municipalityWrapper for Infobox settlementcheck town or city
bellcheck Standardcheck StandardX mark bell
BergWrapper for Infobox mountaincheck mountain
body of watercheck Standardcheck StandardX mark lake
brewerycheck Standardcheck Standardcheck beer
bridgecheckcheckcheck bridge
buildingcheck Standardcheck Standardno default marker is setcheck building, building-alt1
BurgWrapper for Infobox military installationX mark military base, fort or check airfield, castle
business parkcheck Standardcheck Standardcheck commercial
campgroundcheck Standardcheck Standardcheck campsite
Cape Verde settlementWrapper for Infobox settlementcheck town or city
casinocheck Standardcheck Standardcheck casino
castrumcheck Standardcheck StandardX mark military base, fort
cavecheck Standardcheck StandardX mark cave
cemeterycheck Standardcheck Standardcheck cemetery
churchcheck Standardcheck Standardcheck religious-christian
civil conflictcheckcheckX mark ?
civilian attackcheck Standardcheck StandardX mark ?
climbing areacheck Standardcheck StandardX mark ?
climbing routeX mark ?
concentration campcheck Standardcheck Standardcheck observation-tower check prison?
convention centercheck Standardcheck StandardX mark ?
countrycheck N/A
craterX mark crater
cycling championshipX mark ?
damcheck Standardcheck Standardcheck dam
desalination plantcheck Standardcheck StandardX mark ?
diplomatic missioncheck Standardcheck Standardcheck embassy
distillerycheck Standardcheck StandardX mark distillery
ecoregioncheck N/A
Egyptian tombX mark tomb or mausoleum
eventcheck Standardcheck Standard?
exchangeX mark ?
factorycheck Standardcheck Standardcheck industrial
farmcheckcheck StandardParameters standard, needs caption standardizedcheck farm
Flusscheck N/A
forestX mark forest
former subdivisioncheck N/A
frazionecheck town or city
French communeWrapper for Infobox settlement, with a custom hidden mapframe in image_map1X mark town or city
Gebirgsgruppecheck N/A
German placecheckcheckWrapper for Infobox settlement, with a custom hidden mapframe in image_map except if a custom template existscheck town or city
glacierX mark ?
golf facilitycheck Standardcheck Standardcheck golf
government agencycheck Standardcheck StandardX mark government building
Greece placecheck town or city
heritage railwaycheck rail or N/A
Hindu templePartial wrapper around {{Infobox religious building}}X mark religious-hindu, check place-of-worship
historic sitecheck Standardcheck Standardcheck [multiple options, some missing]
Holocaust event?
hospitalcheck Standardcheck Standardcheck hospital, doctor, dentist
housing projectcheck Standardcheck StandardX mark ?
Hungarian georegioncheck Standardcheck Standard
hutX mark hut
institutecheck Standardcheck StandardX mark ?
islandscheck Standardcheck Standardcheck N/A
Israel villagecheck town or city
Italian comunecheckAlways displayed collapsed if availablecheck town or city
kommunecheck town or city
launch padcheck Standardcheck StandardX mark ?
landformcheck Standardcheck Standardcheck [multiple]
languagecheck N/A
LDS Templecheck place-of-worship
librarycheck Standardcheck Standardcheck library
lighthousecheck Standardcheck Standardcheck lighthouse
London stationcheck rail, bus, or X mark transit station
military conflictcheck Standardcheck StandardLua module call; can't override global defaultsX mark military conflict/battle
military installationcheck Standardcheck StandardDefault zoom not helped by free-form site_areacheck castle or check observation-tower or X mark military base/fort
military memorialcheck Standardcheck Standardcheck monument
military operationX mark military conflict/battle
mill buildingX mark ?
mineX mark cave?
miningX mark cave?
MMA training associationX mark ?
monasterycheck Standardcheck Standardcheck multiple
monumentcheck Standardcheck Standardcheck monument
motorway servicescheck fuel
mountaincheck Standardcheck Standardcheck mountain, volcano
mountain passcheck Standardcheck StandardX mark ?
museumcheck Standardcheck Standardcheck museum
New York City Subway stationcheck rail or X mark transit station
NRHPcheck Standardcheck Standardcheck [multiple options, some missing]
nuclear weapons testcheckX mark ?
observatorycheck Standardcheck Standarduses {{Wikidata location map}}X mark observatory
oil fieldcheck oil-well
oil refinerycheck oil-well or industrial
oil spillcheckX mark ?
organizationcheck Standardcheck Standardprobably excessive by default despite the existence of coordinates, should be hiddencheck [multiple options, some missing]
parkcheck Standardcheck Standardcheck park
Pennsylvania historic sitecheck [multiple options, some missing]
piercheck harbor?
pipelinecheck N/A
portcheck Standardcheck Standardcheck harbor
port-of-entrycheckcheck entrance?
Portuguese subdivisioncheck town or city
power stationcheckcheckcheck power station, solar farm
power transmission linecheck N/A
prisoncheck Standardcheck Standardcheck prison
protected areacheck Standardcheck Standardcheck [multiple options, some missing]
public transit accidentcheck Standardcheck StandardX mark ?
pyramidX mark pyramid
racecoursecheck Standardcheck Standardcheck racetrack, racetrack-boat, racetrack-cycling, racetrack-horse
railway depotcheck Standardcheck Standardno default marker setcheck rail?
reactorX mark nuclear power plant
retail marketcheck Standardcheck StandardX mark marketplace/food hall
religious buildingcheck Standardcheck Standardcheck [multiple options, some missing]
residential collegeX mark ?
restaurantcheck Standardcheck Standardcheck restaurant
rivercheck Standardcheck Standardmapframe-coordinates not specified, other maps use mouth_coordinatescheck water
roadcheck Standardcheck StandardX mark car, bus?
road junctioncheck Standardcheck StandardX mark ?
Russian districtcheck N/A
Russian federal subjectcheck city or N/A
Russian inhabited localityX markX markWrapper for Infobox settlement, with a custom hidden mapframe in image_map1check town or city
schoolcheck Standardcheck Standardcheck school
school districtcheck school or N/A
Scottish islandcheck N/A
seamountcheck Standardcheck StandardParses frame-width from another parameter, custom logic for geomask=yescheck mountain
settlementcheck Standardcheck Standard(largest known use case)check town, city, or X mark indigenous settlement
shopping mallcheck Standardcheck Standardcheck shopping mall
Site of Special
Scientific Interest
check [multiple options, some missing]
ski areacheck skiing
ski jumping hillcheck skiing
Spanish missions
in the Americas
check religious-christian
sport supporter groupX mark ?
sports rivalryX mark ?
springcheck Standardcheck StandardX mark ?
stationcheck Standardcheck Standardchooses default marker based on d:Property:P31check rail, bus, or X mark transit station
streetcheck Standardcheck Standardno obvious marker icon availablecheck N/A
swimming poolcheck swimming
Switzerland municipalitycheckAlways displayed collapsed if availablecheck [multiple]
telescopeuses {{Wikidata location map}}X mark telescope
television stationcheck communications-tower
terrestrial impact siteX mark ?
Tibetan Buddhist monasterycheck place-of-worship
transmittercheck communications-tower
tunnelcheck Standardcheck Standardcheck tunnel
Turkey placeX mark ?
U.S. countycheck N/A
UK countrycheck N/A
UK placecheck town or city
universitycheck Standardcheck Standardcheck college
UNESCO World Heritage Sitecheck [multiple]
urban featurecheck Standardcheck Standardtype landmark too wide?check [multiple]
valleycheck Standardcheck StandardX mark natural?
venuecheck [multiple options, some missing]
volcanic hotspotX mark ?
waterfallcheck waterfall
waterlockcheck dam?
wildfireX mark fire
windmillcheck Standardcheck Standardcheck windmill
wineryX mark winery
zoocheck Standardcheck Standardcheck zoo, aquarium, or X mark aviary

See also