This page is semi-protected against editing.

Template:OpenStreetMap

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Description
This map was created from OpenStreetMap project data, collected by the community. This map may be incomplete, and may contain errors. Don't rely solely on it for navigation.
Date (see file history)
Source openstreetmap.org
Creator
OpenStreetMap contributors
Permission
(Reusing this file)

OpenStreetMap data is available under the Open Database License (details). Map tiles are licensed under the Creative Commons Attribution-ShareAlike 2.0 license (CC-BY-SA 2.0).

Openstreetmap logo.svg This work contains information from OpenStreetMap, which is made available under the Open Database License (ODbL).

The ODbL does not require any particular license for maps produced from ODbL data. Prior to 1 August 2020, map tiles produced by the OpenStreetMap Foundation were licensed under the CC-BY-SA-2.0 license. Maps produced by other people may be subject to other licences.

w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 2.0 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Georeferencing Georeference the map in Wikimaps Warper If inappropriate please set warp_status = skip to hide.
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:OpenStreetMap/doc.

No description yet available.

Usage

{{OpenStreetMap
 |name           =
 |location       =
 |description    =
 |top            =
 |bottom         =
 |left           =
 |right          =
 |date           =
 |authors        =
 |other_versions =
 |warp_status    =
 |warp_url       =
 |odbl           =
 |other_fields   =
 |image          =
}}

  • This template can be used without any parameter, but it also supports setting the description=, source=, date=, authors=, location= and the other_versions=. If source is not used the parameter name has to be used.
  • The parameters top=, bottom=, left=, and right= can be used to store the border coordinates of the map. This information can be useful for various mapping templates that are used in various Wikimedia projects.
  • To upload a file using this template to commons two methods are available (2017).
    • To enter an unmodified map: use the raw upload form inserting the template as the only item in the summary section
    • When you have made significant additions to the map: use the UploadWizard inserting the template in Describe the file

Template parameters

ParameterDescriptionDefaultStatus
nameused as part of the file source (Source parameter of {{Information}} template)emptyoptional
locationused as part of the file description (Description parameter of Information template) if no description presentemptyoptional
descriptionif present, used as is for the file description in favor of a description derived from the locationemptyoptional
topthe latitude of the top of the map image. If present along with bottom, left and right, "bounding box" information is displayed in the "georeferenced data" section.emptyoptional
bottomthe latitude of the bottom of the map imageemptyoptional
leftthe longitude of the left hand edge of the map imageemptyoptional
rightthe longitude of the right hand edge of the map imageemptyoptional
dateemptyoptional
authorsadditional information about authorship of the image (beyond the OpenStreetMap community which will already be credited)emptyoptional
other_versions
other versions
emptyoptional
warp_statusemptyoptional
warp_urlemptyoptional
odblBefore 12 September 2012, OpenStreetMap was only available under the Creative Commons Attribution-ShareAlike 2.0 Generic license. Please set the parameter to no for files based on OpenStreetMap data downloaded before that date.

After 1 August 2020, Standard style map tiles on openstreetmap.org are considered ODbL Produced Works and are published without the additional CC-BY-SA-2.0 license. Please set the parameter to "only" for OpenStreetMap standard style tiles produced after that date.

If not specified, this parameter will be derived from the date.
emptyoptional
other_fields
other fields
emptyoptional
imageimage generationCan be used for simple descriptions about the generation of that map. See Image generation.
Can also be used like other fields to pass the more complicated {{Igen|+|....}}. .
emptyoptional
Template data
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

[Edit template data]

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
authors

additional information about authorship of the image (beyond the OpenStreetMap community which will already be credited)

Unknownoptional
bottom

the latitude of the bottom of the map image

Unknownoptional
date

Unknownoptional
description

if present, used as is for the file description in favor of a description derived from the location

Unknownoptional
image generationimage

Can be used for '''simple''' descriptions about the generation of that map. See [[Template:Map#Image generation|Image generation]].<br />Can also be used like <code>other fields</code> to pass the more complicated <code>{{Igen|+|....}}</code>. .

Unknownoptional
left

the longitude of the left hand edge of the map image

Unknownoptional
location

used as part of the file description (Description parameter of Information template) if no description present

Unknownoptional
name

used as part of the file source (Source parameter of {{Information}} template)

Unknownoptional
odbl

Before 12 September 2012, OpenStreetMap was only available under the Creative Commons Attribution-ShareAlike 2.0 Generic license (https://creativecommons.org/licenses/by-sa/2.0/). Please set the parameter to “no” for files based on OpenStreetMap data downloaded before that date.

After 1 August 2020, Standard style map tiles on openstreetmap.org are considered ODbL Produced Works and are published without the additional CC-BY-SA-2.0 license. Please set the parameter to "only" for OpenStreetMap standard style tiles produced after that date.

If not specified, this parameter will be derived from the date.

Unknownoptional
other_fields other fields

Unknownoptional
other_versions other versions

Unknownoptional
right

the longitude of the right hand edge of the map image

Unknownoptional
top

the latitude of the top of the map image. If present along with bottom, left and right, "bounding box" information is displayed in the "georeferenced data" section.

Unknownoptional
warp_status

Unknownoptional
warp_url

Unknownoptional

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: all users

Relies on:

Example

{{OpenStreetMap|
| name           = Bhopal
| location       = Bhopal
| description    = Map of Bhopal, India
| top            = 23.3404
| bottom         = 23.1432
| left           = 77.2796
| right          = 77.5176
| date           = 2012-09-12
| authors        = 
| other_versions = 
}}

renders as:

Description
Map of Bhopal, India
This map of Bhopal was created from OpenStreetMap project data, collected by the community. This map may be incomplete, and may contain errors. Don't rely solely on it for navigation.
Date
Source You may find a page on the OpenStreetMap wiki page for Bhopal
Creator
OpenStreetMap contributors
Permission
(Reusing this file)

OpenStreetMap data is available under the Open Database License (details). Map tiles are licensed under the Creative Commons Attribution-ShareAlike 2.0 license (CC-BY-SA 2.0).

Openstreetmap logo.svg This work contains information from OpenStreetMap, which is made available under the Open Database License (ODbL).

The ODbL does not require any particular license for maps produced from ODbL data. Prior to 1 August 2020, map tiles produced by the OpenStreetMap Foundation were licensed under the CC-BY-SA-2.0 license. Maps produced by other people may be subject to other licences.

w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 2.0 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
 Geotemporal data
Bounding box
N: 23.3404°N
W: 77.2796°E LibreOffice 3.4 tango icon lc arrowshapes.quad-arrow.png E: 77.5176°E
S: 23.1432°N
Georeferencing Georeference the map in Wikimaps Warper If inappropriate please set warp_status = skip to hide.

Localization

čeština  dansk  Deutsch  English  español  français  hrvatski  italiano  magyar  polski  português  sicilianu  svenska  Türkçe  беларуская (тарашкевіца)  македонски  русский  українська  বাংলা  한국어  日本語  中文 

This template makes use of {{Autotranslate}} and the translate extension. The layout of the template can be found under Template:OpenStreetMap/layout.