[[TranslatedPages]] = Plugin » Wikipedia = [[Image(/pluginicon/wikipedia.jar/images/dialogs/wikipedia.png)]] A plugin to support tagging objects with `wikipedia=*` (mainly for the [https://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] project). [[Image(wikipedia.png)]] == Recommended Usage == 0. Get familiar with [https://wiki.openstreetmap.org/wiki/WIWOSM WIWOSM] 1. Install the plugins wikipedia, [https://wiki.openstreetmap.org/wiki/JOSM/Plugins/mirrored_download mirrored_download] (see [[Help/Preferences/Plugins]] for details) 2. Restart JOSM 3. Display Wikipedia dialog (menu Windows » Wikipedia) 4. Set/check Wikipedia language: in Wikipedia dialog click [[Image(source:/trunk/images/dialogs/settings.png,18)]] 5. Click ''[[Image(source:/trunk/images/dialogs/refresh.png,18)]] Category'', enter a Wikipedia category to download the name of its articles 6. Use the mirrored_download plugin to download interesting OSM data 7. Inspect the list elements of the Wikipedia dialog * [[Image(source:/trunk/images_nodist/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) * [[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 * [[Image(source:/trunk/images_nodist/blankmenu.png,16)]] 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 ''[[Image(source:/trunk/images/pastetags.png,18)]] Add Tag'' adds a corresponding `wikipedia=[lang]:[article]` tag to the selected objects == Features == * Located in **toggle dialog** on the right (enable that via menu **Windows** » **Wikipedia**) * Obtain Wikipedia entries … * **[[Image(source:/trunk/images/dialogs/refresh.png,18)]] Coordinates**: nearby (wrt. current view, using geolocated articles) * **[[Image(source:/trunk/images/dialogs/refresh.png,18)]] Category**: by category * **[[Image(source:/trunk/images/paste.png,18)]] Clipboard**: from clipboard (newline separated) * **Double click** on item to search for object with article name (and center coordinate) * **[[Image(source:/trunk/images/pastetags.png,18)]] Add Tag**: adds a ''wikipedia'' tag corresponding to the selected article to the selected OSM objects * **[[Image(https://trac.openstreetmap.org/export/29333/subversion/applications/editors/josm/plugins/wikipedia/images/browser.png,18)]] Open Article**: opens selected entry in browser * **[[Image(source:/trunk/images/dialogs/settings.png,18)]] Language**: sets Wikipedia language (see [#Configuration]) * Located in **[[Menu/Edit|edit menu]]** * **[[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) == Configuration == * Wikipedia **language**: in toggle dialog on the right click [[Image(source:/trunk/images/dialogs/settings.png,18)]] * **Copy templates** (for edit menu) * [[Help/Preferences/Advanced|Advanced preferences]] (only in [[Help/ExpertMode|expert mode]]) * Navigate to `wikipedia.copytemplates` entry, double click * Add entry using [[Image(source:/trunk/images/dialogs/add.png,18)]] * 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)]] * Click **OK** twice to close preference menu * Restart JOSM