Wikipedia:Maplink
Maplink (or Mapframe) is a tool for creating interactive maps on Wikimedia projects.
Creating a map
{{Maplink|frame=yes|frame-width=230|frame-height=180|frame-coordinates={{Coord|40.428722|-79.976389}}|stroke-width=2|zoom=10|type=shape-inverse|stroke-color=#525252|id=Q1342|title=Pittsburgh|text=Example of a {{tl|Maplink}} map}}
{{mapbox|frame-coordinates={{Coord|40.428722|-79.976389}}|stroke-width=2|zoom=10|type=shape-inverse|stroke-color=#525252|id=Q1342|title=Pittsburgh|text=Example of a Mapbox map}}
In order to create an interactive map in an article, you need to have one of the below forms of data:
- coordinates, either supplied or from Wikidata
- a Wikidata ID for a shape or linear element
- data stored in GeoJSON format in a data file
- raw GeoJSON, preferably transcluded from another page
=Templates to choose from=
- {{tl|Maplink}} {{ndash}} Automated, using OpenStreetMap maps
- {{tl|Mapbox}} {{ndash}} Derivation just displaying a link to a map
- {{tl|Infobox mapframe}} {{ndash}} Version with simpler code intended for infobox use
- You may not need a template {{ndash}} if you are adding a map into one of these supported infoboxes
Once you have chosen a template, follow its documentation for help with adjustments and implementation. Each template has similar yet specific parameters. If you have issues or want to report a bug, visit Module talk:Mapframe (you may need to report issues with OpenStreetMap at [https://help.openstreetmap.org/ their forum], and more technical issues on [https://phabricator.wikimedia.org/ Phabricator]).
Tutorials
See also
- Wikipedia:Maps for Wikipedia, a list of mapping tools available on Wikipedia
- Wikipedia:Why mapframe maps?, an essay about mapframe advantages
- Wikipedia:Mapframe maps in infoboxes, a project page tracking implementation status
- mw:Help:VisualEditor/Maps, documentation for users using the visual editor to edit maps
- mw:Help:Extension:Kartographer, documentation for users editing maplinks in Wikitext.