| 6 | | [[Image(wikipedia.png)]] |
| 7 | | |
| 8 | | == Recommended Usage == |
| 9 | | 0. Get familiar with [https://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] |
| 10 | | 1. Install the plugins wikipedia, [https://wiki.openstreetmap.org/wiki/JOSM/Plugins/mirrored_download mirrored_download] (see [[Help/Preferences/Plugins]] for details) |
| 11 | | 2. Restart JOSM |
| 12 | | 3. Display Wikipedia dialog (menu Windows » Wikipedia) |
| 13 | | 4. Set/check Wikipedia language: in Wikipedia dialog click [[Image(source:/trunk/images/dialogs/settings.png,18)]] |
| 14 | | 5. Click ''[[Image(source:/trunk/images/dialogs/refresh.png,18)]] Category'', enter a Wikipedia category to download the name of its articles |
| 15 | | 6. Use the mirrored_download plugin to download interesting OSM data |
| 16 | | 7. Inspect the list elements of the Wikipedia dialog |
| 17 | | * [[Image(source:/trunk/images/misc/grey_check.png,16)]] indicates that the [http://toolserver.org/~kolossos/openlayers/ WIWOSM server] already delivers some object/s (still, you might tag further objects) |
| 18 | | * [[Image(source:/trunk/images/misc/green_check.png,16)]] indicates that the current dataset (but not the WIWOSM server) links some object/s to this article |
| 19 | | * [[Image(source:/trunk/images/blankmenu.png,16)]] indicates that no link to this article exists on the WIWOSM server nor in the current dataset. |
| 20 | | 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) |
| 21 | | 9. Clicking on ''[[Image(source:/trunk/images/pastetags.png,18)]] Add Tag'' adds a corresponding `wikipedia=[lang]:[article]` tag to the selected objects |
| | 6 | [[Image(wikipedia.png,link=)]] |
| 24 | | * Located in **toggle dialog** on the right (enable that via menu **Windows** » **Wikipedia**) |
| 25 | | * Obtain Wikipedia entries … |
| 26 | | * **[[Image(source:/trunk/images/dialogs/refresh.png,18)]] Coordinates**: nearby (wrt. current view, using geolocated articles) |
| 27 | | * **[[Image(source:/trunk/images/dialogs/refresh.png,18)]] Category**: by category |
| 28 | | * **[[Image(source:/trunk/images/paste.png,18)]] Clipboard**: from clipboard (newline separated) |
| | 9 | * Located in **[wikitr:/Help/ToggleDialogs Sidebar]** on the right (enable that via menu [wikitr:/Help/Menu/Windows Windows] » **Wikipedia**) |
| | 10 | * Obtain Wikipedia/Wikidata entries … |
| | 11 | * [[Image(/pluginicon/wikipedia.jar/images/dialogs/wikipedia.png,20,link=,middle)]] **Coordinates**: nearby (wrt. current view, using geolocated articles) |
| | 12 | * [[Image(wikidata.svg,20,link=,middle)]] **Wikidata**: nearby Wikidata items (wrt. current view) |
| | 13 | * [[JOSMImage(data/sequence,20,link=,middle)]] **Category**: by category |
| | 14 | * [[JOSMImage(paste,20,link=,middle)]] **Clipboard**: from clipboard (newline separated) |
| 30 | | * **[[Image(source:/trunk/images/pastetags.png,18)]] Add Tag**: adds a ''wikipedia'' tag corresponding to the selected article to the selected OSM objects |
| 31 | | * **[[Image(https://trac.openstreetmap.org/export/29333/subversion/applications/editors/josm/plugins/wikipedia/images/browser.png,18)]] Open Article**: opens selected entry in browser |
| 32 | | * **[[Image(source:/trunk/images/dialogs/settings.png,18)]] Language**: sets Wikipedia language (see [#Configuration]) |
| 33 | | * Located in **[[Menu/Edit|edit menu]]** |
| 34 | | * **[[Image(/pluginicon/wikipedia.jar/images/dialogs/wikipedia.png,18)]] 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) |
| | 16 | * [[JOSMImage(pastetags,20,link=,middle)]] **Add Tag**: adds a ''wikipedia'' tag corresponding to the selected article to the selected OSM objects |
| | 17 | * **Right click** on item |
| | 18 | * [[Image(https://raw.githubusercontent.com/JOSM/wikipedia/master/src/main/resources/images/browser.png,20,link=,middle)]] **Open Article**: opens selected entry in browser |
| | 19 | * [[JOSMImage(dialogs/autoscale/selection,20,link=,middle)]] **Zoom to selection** |
| | 20 | * [[JOSMImage(preference,20,link=,middle)]] **Language**: sets Wikipedia language (see [#Configuration Configuration] below) |
| | 21 | * Located in **[wikitr:/Help/Menu/Edit edit menu]** |
| | 22 | * [[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) |
| | 23 | * Located in **[wikitr:/Help/Menu/Data data menu]** |
| | 24 | * [[Image(wikidata.svg,20,link=,middle)]] **Fetch Wikidata IDs**: for the selected objects, looks up the Wikidata IDs based on the Wikipedia tag |
| | 25 | * [[Image(wikidata.svg,20,link=,middle)]] **Search Wikidata items**: shows a dialog for querying Wikidata items (in the language set in [#Configuration Configuration]) |
| | 26 | * Located in **[wikitr:/Help/Action/Download Download dialog]** |
| | 27 | * [[Image(https://raw.githubusercontent.com/JOSM/wikipedia/master/src/main/resources/images/dialogs/sophox.png,20,link=,middle)]] **Download from Sophox API** tab |
| | 28 | * Demystifies Wikidata IDs in the [wikitr:/Help/Dialog/TagsMembership tags panel] |
| 36 | | == Configuration == |
| 37 | | * Wikipedia **language**: in toggle dialog on the right click [[Image(source:/trunk/images/dialogs/settings.png,18)]] |
| | 30 | |
| | 31 | == Guide: tag all articles of a Wikipedia category == |
| | 32 | 0. Get familiar with [osmwiki:WIWOSM WIWOSM] |
| | 33 | 1. Install the wikipedia plugin (see [wikitr:/Help/Preferences/Plugins Plugins] for details) |
| | 34 | 1. Display Wikipedia panel (menu Windows » Wikipedia) |
| | 35 | 1. Set/check Wikipedia language: in Wikipedia panel click [[JOSMImage(preference,20,link=,middle)]] |
| | 36 | 1. Click ''[[JOSMImage(data/sequence,20,link=,middle)]] Category'', enter a Wikipedia category to download the name of its articles |
| | 37 | 1. Use [wikitr:/Help/Action/Download#DownloadfromOverpassAPI Download from Overpass API] to download interesting OSM data |
| | 38 | 1. Inspect the list elements of the Wikipedia panel |
| | 39 | * [[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) |
| | 40 | * [[JOSMImage(misc/green_check,20,link=,middle)]] indicates that the current dataset (but not the WIWOSM server) links some object/s to this article |
| | 41 | * [[Image(blankmenu.png,20,link=,middle)]] indicates that no link to this article exists on the WIWOSM server nor in the current dataset. |
| | 42 | 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) |
| | 43 | 1. Clicking on ''[[JOSMImage(pastetags,20,link=,middle)]] Add Tag'' adds a corresponding `wikipedia=[lang]:[article]` tag to the selected objects |
| | 44 | |
| | 45 | |
| | 46 | == Configuration == #Configuration |
| | 47 | * Wikipedia **language**: in panel on the right click [[JOSMImage(preference,20,link=,middle)]] |
| 39 | | * [[Help/Preferences/Advanced|Advanced preferences]] (only in [[Help/ExpertMode|expert mode]]) |
| 40 | | * Navigate to `wikipedia.copytemplates` entry, double click |
| 41 | | * Add entry using [[Image(source:/trunk/images/dialogs/add.png,18)]] |
| 42 | | * Insert keys `name` (name used in menu), `id` (unique identifier for toolbar), `pattern` (string with `{lat}` and `{lon}` as placeholders) accordingly. Example:[[BR]][[Image(wikipedia.copytemplates.png)]] |
| 43 | | * Click **OK** twice to close preference menu |
| 44 | | * Restart JOSM |
| | 49 | * [wikitr:/Help/Preferences/Advanced Advanced preferences] (only in [wikitr:/Help/ExpertMode expert mode]) |
| | 50 | * Navigate to `wikipedia.copytemplates` entry, double click |
| | 51 | * Add entry using [[JOSMImage(dialogs/add,20,link=,middle)]] |
| | 52 | * Insert keys `name` (name used in menu), `id` (unique identifier for toolbar), `pattern` (string with `{lat}` and `{lon}` as placeholders) accordingly. Example: \\ |
| | 53 | [[Image(wikipedia.copytemplates.png,link=)]] |
| | 54 | * Click **OK** twice to close preference menu |
| | 55 | * Restart JOSM |
| | 56 | |
| | 57 | ---- |
| | 58 | Back to [wikitr:/Plugins Plugin Help] \\ |
| | 59 | Back to [wikitr:/Help Main Help] |