MyWiki:Mapframe maps in infoboxes
Jump to navigation
Jump to search
| Mapframe maps in infoboxes | |
|---|---|
| Lua error in Module:Infobox_mapframe at line 51: attempt to index field 'wikibase' (a nil value). 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
[edit source]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:
- Mapframe mapping capability, and standard parameters for displaying mapframe maps (i.e. use of Module:Infobox mapframe), should be added to infoboxes
- 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.
- Map placement should be determined by local consensus at each infobox
- If users do not specify coordinates in a parameter, coordinates from Wikidata should be used
- 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
|mapframe=no or 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 Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P17) or Lua error in Module:Wd at line 633: attempt to index field 'wikibase' (a nil value). (P131), if such values are present on the page's Wikidata item
Process
[edit source]- Check the chosen infobox template for potential, such as:
- presence of other map-related features in the infobox template and in the articles that use it, such as {{Coord}}, {{Location map}}, {{OSM Location map}}, {{Maplink}}, image maps etc
- how often the infobox already has infobox mapframe transcluded manually, such as with these search engine queries:
- Examine the infobox talk page for any signs of map-related controversy
- If the latter check brings up anything, propose any changes first, and notify relevant wikiprojects
- 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
- Update the template sandbox, per normal template editing
- For instructions on how to add to infoboxes, see Module:Infobox mapframe#Automatic maps in infoboxes
- See also Template:Infobox mapframe#Examples
- Update the template test cases to make sure mapframe rendering is tested, esp. if defaults are changed
- 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}}
- Update the live template (ideally by copying the tested sandbox version verbatim)
- Update the documentation
- Update the tracking table below
- Update any manual invocations of infobox mapframe to new syntax
- 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 aninsource: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
[edit source]Column descriptions:
- Mapframe maps
- "
" 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
- "
" If the documentation has been updated - "check Standard" if the documentation uses {{Infobox mapframe/doc/parameters}}
- "File:Yellow check.svg Partly done" if there is incomplete documentation
| Error creating thumbnail: | This list is incomplete; you can help by adding missing items. |
| Template:Infobox | Mapframe maps |
Documentation | Notes | Expected marker |
|---|---|---|---|---|
| aerial lift line | check Standard | check Standard | ||
| aircraft occurrence | check Standard | check Standard | can't autodetect good zoom for oceans | ? |
| airport | check Standard | check Standard | ||
| Albanian settlement | ||||
| amusement park | check Standard | check Standard | ||
| ancient site | check Standard | check Standard | ☒ ancient site/ruin, indigenous settlement | |
| artwork | check Standard | check Standard | Can not be turned on if pushpin map is specified. Coding could be simplified (the {{yesno}} isn't needed). | ☒ ? |
| artwork/wikidata | check Standard | check Standard | ☒ ? | |
| Australian electorate | Probably not too useful unless geoJSON maps of the boundaries are made/uploaded. | |||
| Australian place | check Standard | Wrapper of Infobox settlement | ||
| Australian road | check Standard | check Standard | Mapframe documentation collapsed, as per the rest of the doc | |
| Belgium municipality | Wrapper for Infobox settlement | |||
| bell | check Standard | check Standard | ☒ bell | |
| Berg | Wrapper for Infobox mountain | |||
| body of water | check Standard | check Standard | ☒ lake | |
| brewery | check Standard | check Standard | ||
| bridge | ||||
| building | check Standard | check Standard | no default marker is set | |
| Burg | Wrapper for Infobox military installation | ☒ military base, fort or | ||
| business park | check Standard | check Standard | ||
| campground | check Standard | check Standard | ||
| Cape Verde settlement | Wrapper for Infobox settlement | |||
| casino | check Standard | check Standard | ||
| castrum | check Standard | check Standard | ☒ military base, fort | |
| cave | check Standard | check Standard | ☒ cave | |
| cemetery | check Standard | check Standard | ||
| church | check Standard | check Standard | ||
| civil conflict | ☒ ? | |||
| civilian attack | check Standard | check Standard | ☒ ? | |
| climbing area | check Standard | check Standard | ☒ ? | |
| climbing route | ☒ ? | |||
| concentration camp | check Standard | check Standard | ||
| convention center | check Standard | check Standard | ☒ ? | |
| country | ||||
| crater | ☒ crater | |||
| cycling championship | ☒ ? | |||
| dam | check Standard | check Standard | ||
| desalination plant | check Standard | check Standard | ☒ ? | |
| diplomatic mission | check Standard | check Standard | ||
| distillery | check Standard | check Standard | ☒ distillery | |
| ecoregion | ||||
| Egyptian tomb | ☒ tomb or mausoleum | |||
| event | check Standard | check Standard | ? | |
| exchange | ☒ ? | |||
| factory | check Standard | check Standard | ||
| farm | check Standard | Parameters standard, needs caption standardized | ||
| Fluss | ||||
| forest | ☒ forest | |||
| former subdivision | ||||
| frazione | ||||
| French commune | Wrapper for Infobox settlement, with a custom hidden mapframe in image_map1 | ☒ town or city | ||
| Gebirgsgruppe | ||||
| German place | Wrapper for Infobox settlement, with a custom hidden mapframe in image_map except if a custom template exists | |||
| glacier | ☒ ? | |||
| golf facility | check Standard | check Standard | ||
| government agency | check Standard | check Standard | ☒ government building | |
| Greece place | ||||
| heritage railway | ||||
| Hindu temple | Partial wrapper around {{Infobox religious building}} | ☒ religious-hindu, | ||
| historic site | check Standard | check Standard | check [multiple options, some missing] | |
| Holocaust event | ? | |||
| hospital | check Standard | check Standard | ||
| housing project | check Standard | check Standard | ☒ ? | |
| Hungarian georegion | check Standard | check Standard | ||
| hut | ☒ hut | |||
| institute | check Standard | check Standard | ☒ ? | |
| islands | check Standard | check Standard | ||
| Israel village | ||||
| Italian comune | Always displayed collapsed if available | |||
| kommune | ||||
| launch pad | check Standard | check Standard | ☒ ? | |
| landform | check Standard | check Standard | ||
| language | ||||
| LDS Temple | ||||
| library | check Standard | check Standard | ||
| lighthouse | check Standard | check Standard | ||
| London station | ||||
| military conflict | check Standard | check Standard | Lua module call; can't override global defaults | ☒ military conflict/battle |
| military installation | check Standard | check Standard | Default zoom not helped by free-form site_area | |
| military memorial | check Standard | check Standard | ||
| military operation | ☒ military conflict/battle | |||
| mill building | ☒ ? | |||
| mine | ☒ cave? | |||
| mining | ☒ cave? | |||
| MMA training association | ☒ ? | |||
| monastery | check Standard | check Standard | ||
| monument | check Standard | check Standard | ||
| motorway services | ||||
| mountain | check Standard | check Standard | ||
| mountain pass | check Standard | check Standard | ☒ ? | |
| museum | check Standard | check Standard | ||
| New York City Subway station | ||||
| NRHP | check Standard | check Standard | check [multiple options, some missing] | |
| nuclear weapons test | ☒ ? | |||
| observatory | check Standard | check Standard | uses {{Wikidata location map}} | ☒ observatory |
| oil field | ||||
| oil refinery | ||||
| oil spill | ☒ ? | |||
| organization | check Standard | check Standard | probably excessive by default despite the existence of coordinates, should be hidden | check [multiple options, some missing] |
| park | check Standard | check Standard | ||
| Pennsylvania historic site | check [multiple options, some missing] | |||
| pier | ||||
| pipeline | ||||
| port | check Standard | check Standard | ||
| port-of-entry | ||||
| Portuguese subdivision | ||||
| power station | ||||
| power transmission line | ||||
| prison | check Standard | check Standard | ||
| protected area | check Standard | check Standard | check [multiple options, some missing] | |
| public transit accident | check Standard | check Standard | ☒ ? | |
| pyramid | ☒ pyramid | |||
| racecourse | check Standard | check Standard | ||
| railway depot | check Standard | check Standard | no default marker set | |
| reactor | ☒ nuclear power plant | |||
| retail market | check Standard | check Standard | ☒ marketplace/food hall | |
| religious building | check Standard | check Standard | check [multiple options, some missing] | |
| residential college | ☒ ? | |||
| restaurant | check Standard | check Standard | ||
| river | check Standard | check Standard | mapframe-coordinates not specified, other maps use mouth_coordinates | |
| road | check Standard | check Standard | ☒ car, bus? | |
| road junction | check Standard | check Standard | ☒ ? | |
| Russian district | ||||
| Russian federal subject | ||||
| Russian inhabited locality | ☒ | ☒ | Wrapper for Infobox settlement, with a custom hidden mapframe in image_map1 | |
| school | check Standard | check Standard | ||
| school district | ||||
| Scottish island | ||||
| seamount | check Standard | check Standard | Parses frame-width from another parameter, custom logic for geomask=yes | |
| settlement | check Standard | check Standard | (largest known use case) | |
| shopping mall | check Standard | check Standard | ||
| Site of Special Scientific Interest |
check [multiple options, some missing] | |||
| ski area | ||||
| ski jumping hill | ||||
| Spanish missions in the Americas |
||||
| sport supporter group | ☒ ? | |||
| sports rivalry | ☒ ? | |||
| spring | check Standard | check Standard | ☒ ? | |
| station | check Standard | check Standard | chooses default marker based on d:Property:P31 | |
| street | check Standard | check Standard | no obvious marker icon available | |
| swimming pool | ||||
| Switzerland municipality | Always displayed collapsed if available | |||
| telescope | uses {{Wikidata location map}} | ☒ telescope | ||
| television station | ||||
| terrestrial impact site | ☒ ? | |||
| Tibetan Buddhist monastery | ||||
| transmitter | ||||
| tunnel | check Standard | check Standard | ||
| Turkey place | ☒ ? | |||
| U.S. county | ||||
| UK country | ||||
| UK place | ||||
| university | check Standard | check Standard | ||
| UNESCO World Heritage Site | ||||
| urban feature | check Standard | check Standard | type landmark too wide? | |
| valley | check Standard | check Standard | ☒ natural? | |
| venue | check [multiple options, some missing] | |||
| volcanic hotspot | ☒ ? | |||
| waterfall | ||||
| waterlock | ||||
| wildfire | ☒ fire | |||
| windmill | check Standard | check Standard | ||
| winery | ☒ winery | |||
| zoo | check Standard | check Standard |