"; } return $block; } Wikipedia integration | blog.openstreetbrowser.org

Wikipedia integration

Finally, I re-implemented a feature of the old OpenStreetBrowser which I was especially proud of (although it's rather easy to implement): The Wikipedia integration.

Many OpenStreetMap features have links to Wikipedia articles and images. In the detailed view, OpenStreetBrowser will show the first paragraph and the first image of this article - in your preferred language (to be exact, the "data" language - you can set it in the Options). It loads the list of availble translations from the Wikipedia article itself.

Also, if any images can be found, these will be displayed.

The following tags will be parsed:

  • wikipedia: Language code and title of a wikipedia article, e.g. "en:London Bridge".
  • xxx:wikipedia, where xxx is an arbitrary string (e.g. "subject", "artist", "building") describing an aspect of the map feature. Example: If a memorial remembers a person or an event, you could use subject:wikipedia. The main "wikipedia" tag should only point to the article which describes this object.
  • wikipedia:language code, e.g. wikipedia:en. These tags are deprecated, and should not be used. Also, please don't point to translations of the Wikipedia article, Wikipedia has this information anyway. Don't duplicate this effort (which is deemed to become out of date).
  • image: A reference to a wikimedia commons image (either via "File:foo.jpg" or the complete URL to the description page) or an URL of an image.
  • wikimedia_commons: A reference to a wikimedia commons image or a category (all images will be shown).
  • wikidata: A reference to a wikidata entry, which itself points to a wikipedia article and wikimedia commons images.
  • xxx:wikidata: Like xxx:wikipedia, a reference to something related to this object. Only Wikipedia articles will be shown from such references, not images.

Additionally, there's a "Wikipedia" category under "Special", which shows all map features with a Wikipedia / Wikimedia Commons link. It can also be used as QA tool for OpenStreetMap, as potential tagging errors are highlighted.

Example (the place Vienna in three languages):


Vienna (german)

Vienna (english)

Vienna (russian)

Comments

(No subject)

I really don't know what would I do without your posts here - so much useful information! The only updates I need - I get from here. Thanks a lot for your work here!

(No subject)

These labels are expostulated, and ought not be utilized. Likewise, kindly don't point to interpretations of the Wikipedia article, Wikipedia has this data at any rate. Do My Homework Cheap Try not to copy this exertion which is regarded to end up noticeably outdated.

Can you help

This is a really cool feature and I would like to do it on my site. We get a lot of info from wiki. Can you help?

Matt @ Party Bus

How can I do this?

This is a really cool feature and I would like to do it on my site. We get a lot of info from wiki. Can you help?

Matt @

amazing update.

Wikipedia integration is great improvement. Keep going.

That's awesome, I guess

That's awesome, I guess that's one of the best features. Are the translations available simultaneously? Or do I need to set the language first and then change it? Cause I'm afraid I'll have to check 3 languages at the same time, as my article is gonna be on Linguistics (Germanic group of languages).
Thanks,
Huston from descriptive essays formats and tips page.

Thanks :-) As soon as you set

Thanks :-) As soon as you set the "Data Language", the translation should be updated. A reload of OpenStreetBrowser is not necessary. In fact it would be easy to add a language selector to all available languages ... Do you think, this would help?

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.