Plugin » Wikipedia

/pluginicon/wikipedia.jar/images/dialogs/wikipedia.png A plugin to support tagging objects with wikipedia=* and wikidata=* (for the WIWOSM project, among others).


  • Located in toggle dialog on the right (enable that via menu Windows » Wikipedia)
    • Obtain Wikipedia/Wikidata entries …
      • /pluginicon/wikipedia.jar/images/dialogs/wikipedia.png Coordinates: nearby (wrt. current view, using geolocated articles)
      • Wikidata: nearby Wikidata items (wrt. current view)
      • source:/trunk/images/data/sequence.svg Category: by category
      • source:/trunk/images/paste.svg Clipboard: from clipboard (newline separated)
    • Double click on item to search for object with article name (and center coordinate)
    • source:/trunk/images/pastetags.png Add Tag: adds a wikipedia tag corresponding to the selected article to the selected OSM objects
    • Right click on item
      • Open Article: opens selected entry in browser
      • source:/trunk/images/dialogs/autoscale/selection.png Zoom to selection
    • source:/trunk/images/dialogs/settings.png Language: sets Wikipedia language (see #Configuration)
  • Located in edit menu
    • /pluginicon/wikipedia.jar/images/dialogs/wikipedia.png Copy ... template: copies the corresponding template to the system clipboard instantiated with the coordinates of the first selected node (see #Configuration how to add custom template)
  • Located in data menu
    • Fetch Wikidata IDs: for the selected objects, looks up the Wikidata IDs based on the Wikipedia tag
    • Search Wikidata items: shows a dialog for querying Wikidata items (in the language set in #Configuration)
  • Located in Download window
    • Download from Sophox API tab
  • Demystifies Wikidata IDs in the tags dialog

Guide: tag all articles of a Wikipedia category

  1. Get familiar with WIWOSM
  2. Install the wikipedia plugin (see Help/Preferences/Plugins for details)
  3. Display Wikipedia dialog (menu Windows » Wikipedia)
  4. Set/check Wikipedia language: in Wikipedia dialog click source:/trunk/images/dialogs/settings.png
  5. Click source:/trunk/images/data/sequence.svg Category, enter a Wikipedia category to download the name of its articles
  6. Use Download from Overpass API to download interesting OSM data
  7. Inspect the list elements of the Wikipedia dialog
    • source:/trunk/images/misc/gray_check.svg indicates that the WIWOSM server already delivers some object/s (still, you might tag further objects)
    • source:/trunk/images/misc/green_check.svg indicates that the current dataset (but not the WIWOSM server) links some object/s to this article
    • indicates that no link to this article exists on the WIWOSM server nor in the current dataset.
  8. A double click on a list item in the Wikipedia dialog performs a JOSM search using the displayed article name (excluding parts in parentheses)
  9. Clicking on source:/trunk/images/pastetags.png Add Tag adds a corresponding wikipedia=[lang]:[article] tag to the selected objects


  • Wikipedia language: in toggle dialog on the right click source:/trunk/images/dialogs/settings.png
  • Copy templates (for edit menu)
    • Advanced preferences (only in expert mode)
    • Navigate to wikipedia.copytemplates entry, double click
    • Add entry using source:/trunk/images/dialogs/add.png
    • Insert keys name (name used in menu), id (unique identifier for toolbar), pattern (string with {lat} and {lon} as placeholders) accordingly. Example:
    • Click OK twice to close preference menu
    • Restart JOSM
Last modified 4 months ago Last modified on 2018-10-28T14:42:39+01:00

Attachments (6)

Download all attachments as: .zip