[[TranslatedPages(outdated=This page is outdated. The buttons in the panel have changed.)]] = Plugin » Wikipedia = [[Image(/pluginicon/wikipedia.jar/images/dialogs/wikipedia.png,48,link=,middle,margin-right=20)]] A plugin to support tagging objects with `wikipedia=*` and `wikidata=*` (for the [osmwiki:WIWOSM WIWOSM] project, among others). [[Image(wikipedia.png,link=)]] == Features == * Located in **[wikitr:/Help/ToggleDialogs Sidebar]** on the right (enable that via menu [wikitr:/Help/Menu/Windows Windows] » **Wikipedia**) * Obtain Wikipedia/Wikidata entries … * [[Image(/pluginicon/wikipedia.jar/images/dialogs/wikipedia.png,20,link=,middle)]] **Coordinates**: nearby (wrt. current view, using geolocated articles) * [[Image(wikidata.svg,20,link=,middle)]] **Wikidata**: nearby Wikidata items (wrt. current view) * [[JOSMImage(data/sequence,20,link=,middle)]] **Category**: by category * [[JOSMImage(paste,20,link=,middle)]] **Clipboard**: from clipboard (newline separated) * **Double click** on item to search for object with article name (and center coordinate) * [[JOSMImage(pastetags,20,link=,middle)]] **Add Tag**: adds a ''wikipedia'' tag corresponding to the selected article to the selected OSM objects * **Right click** on item * [[Image(https://raw.githubusercontent.com/JOSM/wikipedia/master/src/main/resources/images/browser.png,20,link=,middle)]] **Open Article**: opens selected entry in browser * [[JOSMImage(dialogs/autoscale/selection,20,link=,middle)]] **Zoom to selection** * [[JOSMImage(preference,20,link=,middle)]] **Language**: sets Wikipedia language (see [#Configuration Configuration] below) * Located in **[wikitr:/Help/Menu/Edit edit menu]** * [[Image(/pluginicon/wikipedia.jar/images/dialogs/wikipedia.png,20,link=,middle)]] **Copy ... template**: copies the corresponding template to the system clipboard instantiated with the coordinates of the first selected node (see [#Configuration Configuration] below how to add custom template) * Located in **[wikitr:/Help/Menu/Data data menu]** * [[Image(wikidata.svg,20,link=,middle)]] **Fetch Wikidata IDs**: for the selected objects, looks up the Wikidata IDs based on the Wikipedia tag * [[Image(wikidata.svg,20,link=,middle)]] **Search Wikidata items**: shows a dialog for querying Wikidata items (in the language set in [#Configuration Configuration]) * Located in **[wikitr:/Help/Action/Download Download dialog]** * [[Image(https://raw.githubusercontent.com/JOSM/wikipedia/master/src/main/resources/images/dialogs/sophox.png,20,link=,middle)]] **Download from Sophox API** tab * Demystifies Wikidata IDs in the [wikitr:/Help/Dialog/TagsMembership tags panel] == Guide: tag all articles of a Wikipedia category == 0. Get familiar with [osmwiki:WIWOSM WIWOSM] 1. Install the wikipedia plugin (see [wikitr:/Help/Preferences/Plugins Plugins] for details) 1. Display Wikipedia panel (menu Windows » Wikipedia) 1. Set/check Wikipedia language: in Wikipedia panel click [[JOSMImage(preference,20,link=,middle)]] 1. Click ''[[JOSMImage(data/sequence,20,link=,middle)]] Category'', enter a Wikipedia category to download the name of its articles 1. Use [wikitr:/Help/Action/Download#DownloadfromOverpassAPI Download from Overpass API] to download interesting OSM data 1. Inspect the list elements of the Wikipedia panel * [[Image(source:/trunk/nodist/images/misc/gray_check.svg,20,link=,middle)]] indicates that the [https://tools.wmflabs.org/admin/tool/wiwosm WIWOSM server] already delivers some object/s (still, you might tag further objects) * [[JOSMImage(misc/green_check,20,link=,middle)]] indicates that the current dataset (but not the WIWOSM server) links some object/s to this article * [[Image(blankmenu.png,20,link=,middle)]] indicates that no link to this article exists on the WIWOSM server nor in the current dataset. 1. A double click on a list item in the Wikipedia panel performs a JOSM search using the displayed article name (excluding parts in parentheses) 1. Clicking on ''[[JOSMImage(pastetags,20,link=,middle)]] Add Tag'' adds a corresponding `wikipedia=[lang]:[article]` tag to the selected objects == Configuration == #Configuration * Wikipedia **language**: in panel on the right click [[JOSMImage(preference,20,link=,middle)]] * **Copy templates** (for edit menu) * [wikitr:/Help/Preferences/Advanced Advanced preferences] (only in [wikitr:/Help/ExpertMode expert mode]) * Navigate to `wikipedia.copytemplates` entry, double click * Add entry using [[JOSMImage(dialogs/add,20,link=,middle)]] * Insert keys `name` (name used in menu), `id` (unique identifier for toolbar), `pattern` (string with `{lat}` and `{lon}` as placeholders) accordingly. Example: \\ [[Image(wikipedia.copytemplates.png,link=)]] * Click **OK** twice to close preference menu * Restart JOSM ---- Back to [wikitr:/Plugins Plugin Help] \\ Back to [wikitr:/Help Main Help]