FR:Collaboration avec Wikipédia

From OpenStreetMap Wiki
Jump to: navigation, search
Langues disponibles — Collaboration with Wikipedia
Afrikaans Alemannisch aragonés asturianu azərbaycanca Bahasa Indonesia Bahasa Melayu Bân-lâm-gú Basa Jawa Baso Minangkabau bosanski brezhoneg català čeština dansk Deutsch eesti English español Esperanto estremeñu euskara français Frysk Gaeilge Gàidhlig galego Hausa hrvatski Igbo interlingua Interlingue isiXhosa isiZulu íslenska italiano Kiswahili Kreyòl ayisyen kréyòl gwadloupéyen kurdî latviešu Lëtzebuergesch lietuvių magyar Malagasy Malti Nederlands Nedersaksies norsk norsk nynorsk occitan Oromoo oʻzbekcha/ўзбекча Plattdüütsch polski português română shqip slovenčina slovenščina Soomaaliga suomi svenska Tiếng Việt Türkçe Vahcuengh vèneto Wolof Yorùbá Zazaki српски / srpski беларуская български қазақша македонски монгол русский тоҷикӣ українська Ελληνικά Հայերեն ქართული नेपाली मराठी हिन्दी অসমীয়া বাংলা ਪੰਜਾਬੀ ગુજરાતી ଓଡ଼ିଆ தமிழ் తెలుగు ಕನ್ನಡ മലയാളം සිංහල ไทย မြန်မာဘာသာ ລາວ ភាសាខ្មែរ ⵜⴰⵎⴰⵣⵉⵖⵜ አማርኛ 한국어 日本語 中文(简体)‎ 吴语 粵語 中文(繁體)‎ ייִדיש עברית اردو العربية پښتو سنڌي فارسی ދިވެހިބަސް

Wikipedia l'encyclopédie libre, a été une source d'inspiration pour de nombreux aspects de la conception de OpenStreetMap, mais il offre aussi beaucoup de possibilités de collaboration inter-projets.

  • There is obvious immediate potential for illustrating Wikipedia articles with rendered maps (This is the main area to focus on)
  • We already link from OSM wiki to Wikipedia
  • There is already a certain amount of linking from Wikipedia to OSM
  • We could also link to Wikipedia articles from within the OSM map data
  • There is an article about OpenStreetMap on Wikipedia

2009 starts the OpenStreetMap-Wikimedia cooperation. 1 server was installed with OSM stuff inside wikimedia cluster (toolserver). Most active is the mailing list maps-l and Toolserver-Wiki .

Pourquoi collaborer ?

OpenStreetMap stands to benefit. We increase awareness and drive user traffic to OSM. Ultimately we want people to use OpenStreetMap, but at this stage we are particularly interested in attracting more mappers and more developers.

Wikipedia stands to benefit. Linking to street maps is all very well, but a lot of articles about places can be enhanced by having map images embedded alongside the text. OpenStreetMap is the best way to do this, while still presenting only open licensed content on the page -- in fact, it's almost the only way.

Wikipedia WikiProject

There is an (inactive) WikiProject page on Wikipedia which should provide guidance to Wikipedians on how to create map images for use in wikipedia articles. Hopefully this process will be easy enough to be followed for many wikipedia articles.

That page also describes a number of useful templates within WikiPedia, e.g. for labelling OpenStreetMap map images, and also categories that relate to OpenStreetMap.

Note the project page is in addition to the actual Wikipedia article about OpenStreetMap.

Illustrating Wikipedia articles with rendered maps

This is the main area where there's lots of obvious potential. We should get onto Wikipedia and upload images to illustrate some of the articles describing places.

Wikipedians will take offense if we plaster lots of low quality images on there. Obviously we need to pick only areas where we have achieved a good level of mapping coverage, and where the rendering comes out well to produced maps which are actually useful. Note that we can upload quite large images, but it is preferred that an image looks good and is useful in its thumbnailed form, appearing on the article page itself. For maps this might mean the street name text should be readable in the thumbnail. That is actually quite a tricky restriction to work with (pick zoom level and thumbnail size carefully)

The image description page for any such image, must attribute the image to OpenStreetMap and link to our copyright page. This is also a good place to provide good links to openstreetmap. See #Linking from Wikipedia to OSM below.

Attribution requirement

Map images from OSM are covered by the OpenStreetMap License, and so require attribution. More general details can be found on the Legal FAQ.

Technical enhancement to Wikipedia

Wikipedia supports image uploads already, so we should get stuck in and start using this to illustrate articles, but as a future possibility, wikipedia could support a more intelligent embedded map feature powered by OpenStreetMap. We have several MediaWiki extensions available to download. The Simple image MediaWiki Extension, pointed via the wikimedia squid proxies, would be a reasonable recommendation.

Obviously these things need careful assessment by wikipedia people before they roll them out across wikipedia. Tim Starling, lead mediawiki developer and wikipedia administrator, saw a talk by User:Steve and was enthusiastic about these possibilities. That was before the MediaWiki extensions were developed, but also before WikiMiniAtlas came along.


At the German Wikipedia and others (no.wp, fr.wp and ru.wp) it is now possible for everyone to open an OSM iframe in each article which have a coordinate. See: Wikipedia:Help:OpenStreetMap and follow the mailing list maps-l mailing list. This feature shows Wikipedia articles on the OSM map. This data comes from Wikipedia-World-Project and you can use this map also as standalone WP-on-OSM map.


WIWOSM is a project to show for a wikipedia article geometric objects from OSM by using key:wikidata. key:wikipedia also still works.

Geohack pour OSM

With Geohack for OSM we link to many OSM-maps for one place. This page is accessible from Wikipedia over the normal geohack and over the OSM-Wiki.

Query-to- map

See Query-to-map. The next step would be the inclusion of an openlayers element with special paths into the mediawiki.

Quick links to OSM

See quick links to Google Maps, Yandex Maps and OpenStreetMap from Template:Coord in Russian Wikipedia.

Wikipedia-articles in the map

Wikipedia-articles in the map

OpenSeaMap links worldwide 1.7 mio. Wikipedia-articles directly in the map. Concerning to the browser options, articles will be displayed automatic in the corresponding language and writing system. Actually there are 285 languages. Optionally the articles can also be displayed as photo gallery (ichoose in the menue "Display" the display as "Thumbnails"). By mouse over you will get a popup with the title of the article and a informative picture. By click you jump directly to the corresponding Wikipedia-article.

Link from OSM wiki to Wikipedia

We already do this on many of our Places pages (pages linked from the Mapping projects page).

Many of them using Template:Place, which includes a Wikipedia link. In other cases we should just add a link in the text.

Use the [[W:Article name]] or [[W:lang:Article name]] syntax to add a Wikipedia link in OSM wiki, where lang: is the interwiki prefix (as supported from the English Wikipedia) for the target linguistic edition (needed if the Article name is in another edition than English Wikipedia).

You may change the text rendered for the link as: [[W:Article name|text of the link]] or [[W:lang:Article name|text of the link]].

You may also want to use the template {{W|lang|Article name}} or {{W|lang|Article name|text of the link}}.

Link from OSM wiki to Wikidata

Use {{Q|Q64}} (where Q64 is a wikidata item ID: Q64 = Berlin) to add a link to a Wikidata item, from an OSM wiki page. This renders as: Q64.

Linking from Wikipedia to OSM

The best place to link from Wikipedia to OSM is on image description pages for the map images we upload there. It's a good idea to link to the map, with a 'permalink' pointing at the relevant place on the map (URL with lat/lon/zoom)

The image description page must link to

To simplify setting up image descriptions there are various templates which you might like to use. See wikipedia:Wikipedia:WikiProject OpenStreetMap#Templates

sl.wikipedia has some templates set up too : List of streets in Ljubljana (using a template)

Some wikipedia articles, like rivers and long streets, may be enhanced by linking to the OSM object, for example wikipedia:Jukskei River.

The French and English wikipedias (and many others) now include a "coord" template inserted in the article (with the geographic coordinates and a suitable zoom parameter) that allows displaying links showing coordinates at the top of the article page. One of this link will bring you to a generic page allowing you to search the location on various mapping services (including OpenStreetmap), and another link showing a slippy map (rendered on Wikimedia tile servers) within a closable panel appearing directly on top of the article itself. Many articles now include the call to the "coord" template (usually inserted at the top, or preferably ar the bottom of the article). Other templates may be inserted to show other coordinates for other more specific locations discussed in the body of the article, that will link to the generic page for choosing your online mapping service.

Logged on users on Wikipedia may also configure their account to avoid the generic selection page and display directly the map on the mapping service of their choice (there are plugins available for this that users may activate in their own Wikipedia account preferences), or create their own personal extension (using javascript stored in their own personal subpages, and named according to their selected skin (such as "Special:Userpage/Vector.js" or "Special:Userpage/Monobook.js").

Link to Wikipedia articles from within the OSM map data

We can link features of the map (especially "Place" nodes) to Wikipedia articles.

See key:wikidata. Key:wikipedia also works.

How these links might be rendered/used, is a something people can decide on their own external projects/websites. The obvious use would be 'pins' with links on a Slippy Map. For Wikipedia it would be interesting to draw the real OSM-objects (that were linked to Wikipedia-article) in a map inside the Wikipedia-article.

Other usages will be translations by using Wikipedia Interwikilinks or to exchange other data.

A tool to create such links is JOSM/Plugins/RemoteControl/Add-tags.

You can also link to Wikimedia Commons, the free media repository, using media:commons.

Using pictures from Wikimedia Commons for tag description/Map Features page on this wiki

Auto importing of images from Wikimedia Commons is enabled on this wiki. With the usual [[File:Example.jpg|thumb|example description text]] you can use any image from the Wikimedia's "Commons" repository, then it gets used within the wiki – complete with remote image description details. You can use pictures from Wikipedia if the license is Public Domain or CC-BY as well as CC-BY-SA. Simply reference the name of an image if it is in commons. Other images can be uploaded explicitly, but you must copy the license text and the original author's name onto our wiki image description page. A link to the original picture is also required.

Note: The license of the OSM-Wiki is CC-BY-SA, and we have more strict community acceptance criteria regarding map images. You are NOT allowed to use pictures with GNU-License like GFDL or GPL. In this case you can contact the author and ask if he wants to make his picture available in CC-BY-SA for OSM. You should probably not use any map image from Wikimedia, even where they are pronounced CC-BY-SA on Wikipedia, because this community applies more strict criteria regarding derivative works.

As well, images found in Wikipedia but not in Wikimedia Commons may be ineligible for Wikimedia Commons due to their licence: Wikimedia Commons is more restrictive than Wikipedia in frequent cases, notably because English Wikipedia allows "fair use" of trademarks according to the US law (and permitted only to illustrate the directly related articles in English Wikipedia for simple citation purpose), but this is not permitted in Wikimedia Commons. These Wikipedia images are not accessible directly from this OSM wiki (and should not be reimported on this OSM wiki or in Wikimedia Commons, without first checking their actual licence or getting a permission from the legitimate rights owner to republish it under CC-BY-SA on Wikimedia Commons or on this OSM wiki).

Importing geodata from Wikipedia

Wikipedia articles are often geocoded, and it has been suggested a number of times that we should import data from wikipedia (for example, using the pages on villages in a particular country to add place=village nodes). However, it is believed that a proportion of wikipedia's coordinate data is derived from Google Maps, and so isn't actually available under the stated license. For this reason, it is an established principle in OpenStreetMap that we don't import geodata from wikipedia.

There seems a high potential to use the interwikilinks of Wikipedia to translate geographical objects in different languages. Also other data like the population of a city could be checked with help of Wikipedia. For such a usage there should be no legal problems.

Vérification des données

Find malformed or not found wikipedia tags

The rule is that the value of a wikipedia=* tag must not be a full URL (starting by http:// or https://), it must not contain the domain name and leading path (/wiki/), and it must not be URL-encoded (it should not contain any underscore, or UTF-8 encoded bytes represented by %nn hexadecimal values).

It must be prefixed by a language code (the supported codes are those used on Wikipedia for its interwiki links, and in a few remaining cases this code does not match a standard BCP47 language code used as suffixes for tags like name:*=* : not all possible language supported in BCP47 are supported for Wikipedia linguistic edition codes, because there's currently no defined Wikipedia edition for that language). Many (but not all) of these Wikiepdia language codes are 2 or 3 lowercase ASCII letters. The language code must be followed by a colon (:) and then by the actual name of the article, without substitution of spaces as underscores (don't copy the final part of the URL, use the effective name of the article page, normally shown at the top of the rendered page (sometimes, for technical reasons, the effective article name is different from the title displayed because the article name cannot contain a few reserved characters, and the title displayed has been replaced by a special template to change the displayed title ; these cases are extremely exceptional on Wikipedia and are usually signaled by a small notice below the display titled).

If the article is on the English edition of Wikipedia, use the "en:" language prefix explicitly before the article name (often the article may be found on English Wikipedia with the supplied name, but there's no warranty that it will match the actual location, as the language code may have been forgotten and could bring to a desambiguation page at best, or to an article speaking about a location elsewhere in the world with the same name).

The value may also supply an optional anchor pointing to a location within the article page, by appending an hash character (#) followed by the effective title of a section heading (here also there must be no underscores - use regular spaces instead -, and the heading must not be anchor-encoded). Alternatively, you may also specify an anchor matching the value of an HTML id attribute (in that case use the identifier as it is encoded within the article rendered in HTML): this may be useful if there are several identical subheadings in a long Wikipedia article (in the Wikipedia article, make sure this supplied id is readable, unique within the rendered page, and that it does not contain any space or underscore ; these additional anchor identifiers should preferably only contain letters, digits, and punctuations).

Identifying users

  • To identify yourself as an OSM editor on Wikipedia, place {{User OSM}} on your Wikipedia user page.
  • To identify yourself as a Wikipedia editor on OSM, place {{Wikipedia user}} on your OSM wiki user page, with the Wikipedia's language and your Wikipedia username, thus: {{Wikipedia user|en|Pigsonthewing}}.
  • To find other Wikipedia editors on this OSM wiki, see Category:Wikipedians.

Voir aussi