Changes between Version 26 and Version 27 of Help/Plugin/Wikipedia
- Timestamp:
- 2020-01-14T02:22:27+01:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Plugin/Wikipedia
v26 v27 2 2 = Plugin » Wikipedia = 3 3 4 [[Image(/pluginicon/wikipedia.jar/images/dialogs/wikipedia.png)]] A plugin to support tagging objects with `wikipedia=*` and `wikidata=*` (for the [ https://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] project, among others).4 [[Image(/pluginicon/wikipedia.jar/images/dialogs/wikipedia.png,middle)]] A plugin to support tagging objects with `wikipedia=*` and `wikidata=*` (for the [osmwiki:WIWOSM WIWOSM] project, among others). 5 5 6 6 [[Image(wikipedia.png)]] 7 7 8 8 == Features == 9 * Located in **[ [Help/ToggleDialogs|toggle dialog]]** on the right (enable that via menu **Windows** » **Wikipedia**)9 * Located in **[wikitr:/Help/ToggleDialogs toggle dialog]** on the right (enable that via menu **Windows** » **Wikipedia**) 10 10 * Obtain Wikipedia/Wikidata entries … 11 * **[[Image(/pluginicon/wikipedia.jar/images/dialogs/wikipedia.png,18)]] Coordinates**: nearby (wrt. current view, using geolocated articles) 12 * **[[Image(wikidata.svg,18)]] Wikidata**: nearby Wikidata items (wrt. current view) 13 * **[[Image(source:/trunk/images/data/sequence.svg,18)]] Category**: by category 14 * **[[Image(source:/trunk/images/paste.svg,18)]] Clipboard**: from clipboard (newline separated) 11 * **[[Image(/pluginicon/wikipedia.jar/images/dialogs/wikipedia.png,18,middle)]] Coordinates**: nearby (wrt. current view, using geolocated articles) 12 * **[[Image(wikidata.svg,18,middle)]] Wikidata**: nearby Wikidata items (wrt. current view) 13 * **[[Image(source:/trunk/images/data/sequence.svg,18,middle)]] Category**: by category 14 * **[[Image(source:/trunk/images/paste.svg,18,middle)]] Clipboard**: from clipboard (newline separated) 15 15 * **Double click** on item to search for object with article name (and center coordinate) 16 * **[[Image(source:/trunk/images/pastetags.png,18)]] Add Tag**: adds a ''wikipedia'' tag corresponding to the selected article to the selected OSM objects 16 * **[[Image(source:/trunk/images/pastetags.png,18,middle)]] Add Tag**: adds a ''wikipedia'' tag corresponding to the selected article to the selected OSM objects 17 17 * **Right click** on item 18 * **[[Image(https://raw.githubusercontent.com/JOSM/wikipedia/master/src/main/resources/images/browser.png,18)]] Open Article**: opens selected entry in browser 19 * **[[Image(source:/trunk/images/dialogs/autoscale/selection.png,18)]] Zoom to selection** 20 * **[[Image(source:/trunk/images/dialogs/settings.png,18)]] Language**: sets Wikipedia language (see [#Configuration ])21 * Located in **[ [Menu/Edit|edit menu]]**18 * **[[Image(https://raw.githubusercontent.com/JOSM/wikipedia/master/src/main/resources/images/browser.png,18,middle)]] Open Article**: opens selected entry in browser 19 * **[[Image(source:/trunk/images/dialogs/autoscale/selection.png,18,middle)]] Zoom to selection** 20 * **[[Image(source:/trunk/images/dialogs/settings.png,18,middle)]] Language**: sets Wikipedia language (see [#Configuration Configuration] below) 21 * Located in **[wikitr:/Menu/Edit edit menu]** 22 22 * **[[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) 23 23 * Located in **[[Menu/Data|data menu]]** … … 30 30 31 31 == Guide: tag all articles of a Wikipedia category == 32 0. Get familiar with [ https://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM]33 1. Install the wikipedia plugin (see [ [Help/Preferences/Plugins]] for details)32 0. Get familiar with [osmwiki:WIWOSM WIWOSM] 33 1. Install the wikipedia plugin (see [wikitr:/Help/Preferences/Plugins Plugins] for details) 34 34 3. Display Wikipedia dialog (menu Windows » Wikipedia) 35 4. Set/check Wikipedia language: in Wikipedia dialog click [[Image(source:/trunk/images/dialogs/settings.png,18)]] 36 5. Click ''[[Image(source:/trunk/images/data/sequence.svg,18)]] Category'', enter a Wikipedia category to download the name of its articles 37 6. Use [ [Help/Action/Download#DownloadfromOverpassAPI|Download from Overpass API]] to download interesting OSM data35 4. Set/check Wikipedia language: in Wikipedia dialog click [[Image(source:/trunk/images/dialogs/settings.png,18,middle)]] 36 5. Click ''[[Image(source:/trunk/images/data/sequence.svg,18,middle)]] Category'', enter a Wikipedia category to download the name of its articles 37 6. Use [wikitr:/Help/Action/Download#DownloadfromOverpassAPI Download from Overpass API] to download interesting OSM data 38 38 7. Inspect the list elements of the Wikipedia dialog 39 * [[Image(source:/trunk/images/misc/gray_check.svg,16)]] indicates that the [http://tools erver.org/~kolossos/openlayers/WIWOSM server] already delivers some object/s (still, you might tag further objects)40 * [[Image(source:/trunk/images/misc/green_check.svg,16)]] indicates that the current dataset (but not the WIWOSM server) links some object/s to this article 41 * [[Image(blankmenu.png,16)]] indicates that no link to this article exists on the WIWOSM server nor in the current dataset. 39 * [[Image(source:/trunk/images_nodist/misc/gray_check.svg,16,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 * [[Image(source:/trunk/images/misc/green_check.svg,16,middle)]] indicates that the current dataset (but not the WIWOSM server) links some object/s to this article 41 * [[Image(blankmenu.png,16,middle)]] indicates that no link to this article exists on the WIWOSM server nor in the current dataset. 42 42 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) 43 9. Clicking on ''[[Image(source:/trunk/images/pastetags.png,18)]] Add Tag'' adds a corresponding `wikipedia=[lang]:[article]` tag to the selected objects 43 9. Clicking on ''[[Image(source:/trunk/images/pastetags.png,18,middle)]] Add Tag'' adds a corresponding `wikipedia=[lang]:[article]` tag to the selected objects 44 44 45 45 46 46 == Configuration == 47 * Wikipedia **language**: in toggle dialog on the right click [[Image(source:/trunk/images/dialogs/settings.png,18)]] 47 * Wikipedia **language**: in toggle dialog on the right click [[Image(source:/trunk/images/dialogs/settings.png,18,middle)]] 48 48 * **Copy templates** (for edit menu) 49 * [ [Help/Preferences/Advanced|Advanced preferences]](only in [[Help/ExpertMode|expert mode]])49 * [wikitr:/Help/Preferences/Advanced Advanced preferences] (only in [wikitr:/Help/ExpertMode expert mode]) 50 50 * Navigate to `wikipedia.copytemplates` entry, double click 51 * Add entry using [[Image(source:/trunk/images/dialogs/add.png,18)]] 51 * Add entry using [[Image(source:/trunk/images/dialogs/add.png,18,middle)]] 52 52 * 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)]] 53 53 * Click **OK** twice to close preference menu
