Template:Infobox mapframe/doc
|  | This is a documentation subpage for Template:Infobox mapframe
(see that page for the template itself). It contains usage information, categories, and other content that is not part of the original template page. | 
|  | This template is used on approximately 91,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. | 
|  | This template uses Lua: | 
| File:Wikidata-logo.svg | This template uses the Wikidata property: Script error: No such module "Uses Wikidata". | 
| File:Openstreetmap logo.svg | This template uses the OpenStreetMap tag: | 
| Related pages | 
|---|
This template generates a mapframe map, suitable for infoboxes, with minimal user input. This template only works with single features (points, lines, or shapes); use {{maplink}} if more advanced options, such as displaying multiple features, are required.
If coordinates are not supplied, they will be fetched from the page's Wikidata item. In such cases, if |point= is not set, then a point feature marker is displayed at those coordinates unless the Wikidata item has an 
- REDIRECT Template:Wikidata entity link
| This page is a redirect. The following categories are used to track and monitor this redirect: Error: missing redirect parameter (help). Error: missing redirect parameter (help).When appropriate, protection levels are automatically sensed, described and categorized. | 
specified.
- See Category:Infobox mapframe without OSM relation ID on Wikidata for pages which have items without
- REDIRECT Template:Wikidata entity link
| This page is a redirect. The following categories are used to track and monitor this redirect: Error: missing redirect parameter (help). Error: missing redirect parameter (help).When appropriate, protection levels are automatically sensed, described and categorized. | 
- Troubleshooting shapes guidance is found at Module talk:mapframe/FAQ
Usage
Note: When in mainspace, parameter |id= is not required (except to use a different page's data)
Basic
{{Infobox mapframe}}When used without parameters, or with only |id=, the map will display either a shape, line, or point feature, depending on the data available on Wikidata and OpenStreetMap.
- If the Wikidata item does not specify a
- REDIRECT Template:Wikidata entity link
| This page is a redirect. The following categories are used to track and monitor this redirect: Error: missing redirect parameter (help). Error: missing redirect parameter (help).When appropriate, protection levels are automatically sensed, described and categorized. | 
value, then a point marker will be displayed by default in addition any OSM shape or line feature.
- If the Wikidata items does not specify a
- REDIRECT Template:Wikidata entity link
| This page is a redirect. The following categories are used to track and monitor this redirect: Error: missing redirect parameter (help). Error: missing redirect parameter (help).When appropriate, protection levels are automatically sensed, described and categorized. | 
or a
- REDIRECT Template:Wikidata entity link
| This page is a redirect. The following categories are used to track and monitor this redirect: Error: missing redirect parameter (help). Error: missing redirect parameter (help).When appropriate, protection levels are automatically sensed, described and categorized. | 
value, then no map will be displayed
| Basic usage examples | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Point feature (Wikidata coordinates): {{Infobox mapframe |id=Q7270550}}Lua error in Module:Infobox_mapframe at line 40: attempt to index field 'wikibase' (a nil value). Line feature: {{Infobox mapframe |id=Q1318331}}Lua error in Module:Infobox_mapframe at line 40: attempt to index field 'wikibase' (a nil value). Shape feature: {{Infobox mapframe |id=Q61}}Lua error in Module:Infobox_mapframe at line 40: attempt to index field 'wikibase' (a nil value). Template:Cob Using specified coordinates instead of WikidataPoint feature only, no shapes or lines: {{Infobox mapframe |coord=}}Point feature and shape/line feature if available: {{Infobox mapframe |wikidata=yes |coord=}}Specify coordinates using the  
 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||