Wikipedia:Mapframe maps in infoboxes

{{infobox|above=Mapframe maps in infoboxes|image1={{Infobox mapframe|id=Q100|zoom=9|point=none}}|caption1=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.

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
  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:

  • Either on or off by default (with a parameter like {{para|mapframe}} {{tt|no}} or {{tt|yes}} to override the default)
  • Default symbol, colour, zoom
  • Using or not using Wikidata coordinates (when local values for coordinates are not provided)
  • Showing a default geomask like {{Q|P17}} or {{Q|P131}}, if such values are present on the page's Wikidata item

For instructions on how to add to infoboxes, see Module:Infobox mapframe#Automatic maps in infoboxes. See also Template:Infobox mapframe#Examples.

Process

  1. Check the chosen infobox template for potential, such as:
  2. * presence of other map parameters
  3. * how often the infobox already has infobox mapframe transcluded manually, such as with a search engine query with hastemplate: and similar search terms, [https://en.wikipedia.org/w/index.php?go=Go&search=hastemplate%3A%22Infobox+military+installation%22+hastemplate%3A%22Infobox+mapframe%22&title=Special%3ASearch&ns0=1 like this] or [https://en.wikipedia.org/w/index.php?search=hastemplate%3A%22Infobox+military+installation%22+insource%3A%2F%5C%7B%5C%7Binfobox+mapframe%2F&title=Special%3ASearch&profile=advanced&fulltext=1&ns0=1 like this]
  4. Examine the infobox talk page for any signs of map-related controversy
  5. If the latter check brings up anything, propose any changes first, and notify relevant wikiprojects
  6. Discuss any implementation nuances with infobox users/maintainers
  7. * Positioning inside the template
  8. * Whether to render wikidata coordinates / shapes by default
  9. * If there are multiple coordinates parameters, the choice of which one is rendered by mapframe
  10. * Matching widths of maps and images
  11. * Marker icon
  12. * Mapping of length/area parameters
  13. Update the template sandbox, per normal template editing
  14. Update the template test cases to make sure mapframe rendering is tested, esp. if defaults are changed
  15. 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)
  16. * 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}}

  1. Update the live template
  2. Update the documentation
  3. Update the tracking table below
  4. Update any manual invocations of infobox mapframe to new syntax
  5. Check :Category:Pages with script errors for any fresh errors related to the change. Typical issues include:
  6. * coordinates present but not formatted with {{tl|coord}} - make sure template specifies it as such and fix broken call sites
  7. * broken coordinates parameters

Tracking

Column descriptions:

;Mapframe maps

:"{{tick}}" if the infobox can show mapframe maps (without users filling out a complete {{Tl|maplink}} template or {{Tag|mapframe|o}} tag)

:"{{Tick|color=blue}} Standard" if the infobox uses {{Code|{{((}}#invoke:Infobox mapframe{{!}}auto{{))}}}} for standard parameters, per Q1 of the RFC

;Documentation

:"{{tick}}" If the documentation has been updated

:"{{Tick|color=blue}} Standard" if the documentation uses {{Tl|Infobox mapframe/doc/parameters}}

:"{{Partly done}}" if there is incomplete documentation

{{Incomplete list}}

class="wikitable sortable"

! Template:Infobox

! Mapframe
maps

! Documentation !! Notes

! Expected marker

aerial lift line{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} aerialway
airport{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} airport
Albanian settlement{{tick}} town or city
amusement park{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} amusement park
ancient site{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{cross}} ancient site/ruin, indigenous settlement
artwork{{Tick|color=blue}} Standard{{Tick|color=blue}} StandardCan not be turned on if pushpin map is specified. Coding could be simplified (the {{tl|yesno}} isn't needed).{{cross}} ?
artwork/wikidata{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{Cross}} ?
Australian electorateProbably not too useful unless geoJSON maps of the boundaries are made/uploaded.{{tick}} N/A
Australian place{{tick}}{{tick}}Under discussion re possible conversion to wrapper of Infobox settlement (October 2020).{{tick}} town or city
Australian road{{Tick|color=blue}} Standard{{Tick|color=blue}} StandardMapframe documentation collapsed, as per the rest of the doc{{tick}} N/A
Belgium municipalityWrapper for Infobox settlement{{tick}} town or city
bell{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{cross}} bell
BergWrapper for Infobox mountain{{tick}} mountain
body of water{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{cross}} lake
brewery{{tick}}{{tick}}{{tick}} beer
bridge{{tick}}{{tick}}{{tick}} bridge
building{{tick}}{{tick}}{{tick}} building, building-alt1
BurgWrapper for Infobox military installation{{cross}} military base, fort or {{tick}} airfield, castle
business park{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} commercial
campground{{tick}} campsite
Cape Verde settlementWrapper for Infobox settlement{{tick}} town or city
casino{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} casino
castrum{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{cross}} military base, fort
cave{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{cross}} cave
cemetery{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} cemetery
church{{tick}} religious-christian
civil conflict{{tick}}{{tick}}{{cross}} ?
civilian attack{{cross}} ?
climbing area{{cross}} ?
climbing route{{cross}} ?
concentration camp{{tick}} prison? or {{cross}} military base?
convention center{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{cross}} ?
country{{tick}} N/A
crater{{cross}} crater
cycling championship{{cross}} ?
dam{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} dam
desalination plant{{tick}}{{tick}}{{cross}} ?
diplomatic mission{{tick}}{{tick}} embassy
distillery{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{cross}} distillery
ecoregion{{tick}} N/A
Egyptian tomb{{cross}} tomb or mausoleum
exchange{{cross}} ?
factory{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} industrial
farm{{tick}}Parameters standard, needs caption standardized{{tick}} farm
Fluss{{tick}} N/A
forest{{cross}} forest
former subdivision{{tick}} N/A
frazione{{tick}} town or city
French commune{{cross}} town or city
Gebirgsgruppe{{tick}} N/A
German place{{tick}}{{tick}}{{tick}} town or city
glacier{{cross}} ?
golf facility{{tick}} golf
government agency{{cross}} government building
Greece place{{tick}} town or city
heritage railway{{tick}} rail or N/A
Hindu templePartial wrapper around {{tl|Infobox religious building}}{{cross}} religious-hindu, {{tick}} place-of-worship
historic site{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{yellow tick}} [multiple options, some missing]
Holocaust event{{?}}
hospital{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} hospital, doctor, dentist
housing project{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{cross}} ?
Hungarian georegion{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard
hut{{Cross}} hut
institute{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{cross}} ?
islands{{tick}} N/A
Israel village{{tick}} town or city
Italian comune{{tick}}Always displayed collapsed if available{{tick}} town or city
kommune{{tick}} town or city
landform{{tick}} [multiple]
language{{tick}} N/A
LDS Temple{{tick}} place-of-worship
library{{tick}}{{tick}}{{tick}} library
lighthouse{{tick}}{{tick}}{{tick}} lighthouse
London station{{tick}} rail, bus, or {{cross}} transit station
military conflict{{cross}} military conflict/battle
military installation{{Tick|color=blue}} Standard{{Tick|color=blue}} StandardDefault zoom not helped by free-form site_area{{tick}} castle or {{Cross}} military base/fort
military memorial{{tick}} monument
military operation{{cross}} military conflict/battle
mill building{{Cross}} ?
mine{{Cross}} cave?
mining{{Cross}} cave?
MMA training association{{Cross}} ?
monastery{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} multiple
monument{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} monument
motorway services{{tick}} fuel
mountain{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} mountain, volcano
mountain pass{{cross}} ?
museum{{tick}}{{tick}}{{tick}} museum
New York City Subway station{{tick}} rail or {{cross}} transit station
NRHP{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{yellow tick}} [multiple options, some missing]
nuclear weapons test{{tick}}{{cross}} ?
observatory{{cross}} observatory
oil field{{tick}} oil-well
oil refinery{{tick}} oil-well or industrial
oil spill{{tick}}{{cross}} ?
park{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} park
Pennsylvania historic site{{yellow tick}} [multiple options, some missing]
pier{{tick}} harbor?
pipeline{{tick}} N/A
port{{tick}}does not use #invoke: / auto{{tick}} harbor
port-of-entry{{tick}}{{tick}} entrance?
Portuguese subdivision{{tick}} town or city
power station{{tick}}{{tick}}{{tick}} power station, solar farm
power transmission line{{tick}} N/A
prison{{tick}}{{tick}}Uses {{#invoke:Infobox mapframe|auto}}{{tick}} prison
protected area{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{yellow tick}} [multiple options, some missing]
public transit accident{{tick}}{{Partly done}}Parameters listed in TemplateData but not properly documented{{cross}} ?
pyramid{{cross}} pyramid
racecourse{{tick}} racetrack, racetrack-boat, racetrack-cycling, racetrack-horse
railway depot{{tick}}{{Partly done}}Parameters listed but not properly documented{{tick}} rail?
reactor{{Cross}} nuclear power plant
retail market{{tick}}{{Cross}} marketplace/food hall
religious building{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{yellow tick}} [multiple options, some missing]
residential college{{cross}} ?
restaurant{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} restaurant
river{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} water
road junction{{tick}}{{cross}} ?
Russian district{{tick}} N/A
Russian federal subject{{tick}} city or N/A
Russian inhabited locality{{cross}}{{cross}}Wrapper for Infobox settlement{{tick}} town or city
school{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} school
school district{{tick}} school or N/A
Scottish island{{tick}} N/A
settlement{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard2020 RFC{{tick}} town, city, or {{cross}} indigenous settlement
shopping mall{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} shopping mall
Site of Special
Scientific Interest
{{yellow tick}} [multiple options, some missing]
ski area{{tick}} skiing
ski jumping hill{{tick}} skiing
Spanish missions
in the Americas
{{tick}} religious-christian
sport supporter group{{cross}} ?
sports rivalry{{Cross}} ?
spring{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{cross}} ?
station{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} rail, bus, or {{cross}} transit station
street{{Tick|color=blue}} Standard{{Tick|color=blue}} Standardno obvious marker icon available{{tick}} N/A
swimming pool{{tick}} swimming
Switzerland municipality{{tick}}Always displayed collapsed if available{{tick}} [multiple]
television station|{{tick}} communications-tower
terrestrial impact site{{Cross}} ?
Tibetan Buddhist monastery{{tick}} place-of-worship
transmitter{{tick}} communications-tower
tunnel{{tick}} tunnel
Turkey place{{cross}} ?
U.S. county{{tick}} N/A
UK country{{tick}} N/A
UK place{{tick}} town or city
university{{Tick|color=blue}} Standard{{Tick|color=blue}} Standardhas a temporary onByDefault check for embedded mapframes{{tick}} college
UNESCO World Heritage Site{{tick}} [multiple]
urban feature{{Tick|color=blue}} Standard{{Tick|color=blue}} Standardtype landmark too wide?{{tick}} [multiple]
valley{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{cross}} natural?
venue{{yellow tick}} [multiple options, some missing]
volcanic hotspot{{cross}} ?
waterfall{{tick}} waterfall
waterlock{{tick}} dam?
wildfire{{cross}} fire
windmill{{tick}}{{tick}}{{tick}} windmill
winery{{cross}} winery
zoo{{Tick|color=blue}} Standard{{Tick|color=blue}} Standard{{tick}} zoo, aquarium, or {{Cross}} aviary

See also