Wikipedia:Map data

The subpages of this template can be used to store GeoJSON map data related to an article.

Why?

GeoJSON map data cannot be directly uploaded and stored in the File namespace. While map data should usually be stored on Commons (see mw:Help:Map data), until August 2018 only CC0 licences were not allowed. Because of this former restriction, this process was set up so that data with licences compatible with Wikipedia's CC-BY-SA-3.0 licencing (e.g. as CC-BY licences), they could be stored as subpages here on Wikipedia.

Storing data on Wikipedia subpages can allow the same data to be used in multiple articles with different features given prominent styling depending on the article title. For example, Wikipedia:Map data/Columbus Register of Historic Properties uses parser functions such as "stroke": {{#ifeq:{{PAGENAME}}|Old Oaks Historic District|"#ff0000"|"#666666"}}.

How

Create a subpage of this page. It should probably follow the convention used on Commons of /data source/title. At the start of the page, in a <noinclude>...</noinclude> section, include the {{information}} and licencing templates.

The user script User:Evad37/kmlToJson can be used to generate GeoJSON data from a KML file.

If parser functions are used, ensure that they are not used within quotation marks, e.g. use

"stroke": {{#ifeq:{{PAGENAME}}|Foo|"#ff0000"|"#666666"}}

rather than

"stroke": "{{#ifeq:{{PAGENAME}}|Foo|#ff0000|#666666}}"

Displaying the data

Use {{Mapbox}} or {{Maplink}} (with |raw={{Wikipedia:Map data/SUBPAGE}})

See also

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.