| 18 | | 1. JOSM user-community created (and published) **Available presets**, which can be enabled through the [wikitr:/Help/Preferences/Map#TaggingPresets "Tagging Presets" tab in Preferences > Map Settings]. The full list of these Available presets, and how to publish a new one you create, appears below. |
| 19 | | 1. **Custom Tagging Presets** files, for cases where you want to use customized Presets but they are not published to JOSM as an Available preset. Customized presets can be added through the [wikitr:/Help/Preferences/Map#TaggingPresets "Tagging Presets" tab in Preferences > Map Settings] menu, either by URL, or by filename on your local filesystem. The format of a Custom Tagging Presets .xml file appears at [wikitr:/TaggingPresets TaggingPresets]. |
| | 18 | 1. JOSM user-community created (and published) **Available presets**, which can be enabled through the [wikitr:/Help/Preferences/TaggingPresetPreference Tagging Presets] register in Preferences. The full list of these Available presets, and how to publish a new one you create, appears below. |
| | 19 | 1. **Custom Tagging Presets** files, for cases where you want to use customized Presets but they are not published to JOSM as an Available preset. Customized presets can be added through the [wikitr:/Help/Preferences/TaggingPresetPreference Tagging Presets] register in Preferences, either by URL, or by filename on your local filesystem. The format of a Custom Tagging Presets .xml file appears at [wikitr:/TaggingPresets TaggingPresets]. |
| 36 | | * In order to add a new wiki based preset, simply create a new wiki page similar to the [#List existing wiki presets]. |
| 37 | | * i.e. go to https://josm.openstreetmap.de/wiki/Presets/MyPresetName (Change the URL so it matches the name of your preset. Change only the last part after `...Presets/`.) |
| 38 | | * click 'create this page' |
| 39 | | * add content similar to existing preset wikis, e.g. [wikitr:/Presets/OneClick] |
| 40 | | * don't forget to enclose your preset code by a code block (`#!preset` needs to be on a new line after `{{{`): |
| 41 | | * `{{{` |
| 42 | | * `#!preset` |
| 43 | | * `<?xml version="1.0" encoding="UTF-8"?>` |
| 44 | | * ... |
| 45 | | * `}}}` |
| 46 | | * save the wiki page |
| 47 | | * after a few minutes the new wiki preset will show up in the list and in JOSM automatically |
| 48 | | * for automatic version adjustment you have to use `[[revision]]_[[date]]` in your version variable: |
| 49 | | * {{{[[revision]]}}} - is the latest version number of the wiki page |
| 50 | | * {{{[[date]]}}} - is the date of the last edit of the wiki page |
| 51 | | * recommended usage: {{{version="1.[[revision]]_[[date]]"}}} (converts to e.g. {{{1.13_2019-02-24}}}) |
| | 38 | In order to add a new wiki based preset, simply create a new wiki page similar to the [#List existing wiki presets]. |
| | 39 | I. go to [wiki:Presets/MyPresetName https://josm.openstreetmap.de/wiki/Presets/MyPresetName] |
| | 40 | A. change the URL so it matches the name of your preset; change only the last part after `...Presets/`, (preferred is CamelCase) |
| | 41 | a. press `Enter` after adjusting the name |
| | 42 | 1. click 'create this page' |
| | 43 | 1. add content similar to existing preset wikis, e.g. [wikitr:/Presets/OneClick] |
| | 44 | 1. don't forget to enclose your preset code by a code block (`#!preset` needs to be on a **new line** after `{{{`): |
| | 45 | {{{ |
| | 46 | {{{ |
| | 47 | #!preset |
| | 48 | <?xml version="1.0" encoding="UTF-8"?> |
| | 49 | ... |
| | 50 | }}} |
| | 51 | }}} |
| | 52 | 1. save the wiki page |
| | 53 | 1. after a few minutes the new wiki preset will show up in the list and in JOSM automatically |
| | 54 | 1. for automatic version adjustment you have to use `[[revision]]_[[date]]` in your version variable: |
| | 55 | * `[[revision]]` - is the latest version number of the wiki page |
| | 56 | * `[[date]]` - is the date of the last edit of the wiki page |
| | 57 | * recommended usage: `version="1.[[revision]]_[[date]]"` (converts to e.g. `1.13_2019-02-24`) |
| 62 | | * Open the [wikitr:/Help/Action/Preferences Preferences] |
| 63 | | * Make sure [wikitr:/Help/ExpertMode Expert Mode] is enabled |
| 64 | | * Open the [wikitr:/Help/Preferences/Advanced Advanced Preferences] |
| 65 | | * Search for keys starting with: `mirror.https://josm.openstreetmap.de/josmfile?page_Presets/` (or `mirror.` for other external sources) |
| 66 | | * Select the preset you want to update |
| 67 | | * Click on Reset at the bottom of the window |
| 68 | | * Click on OK to save the changes (and to close the preference window) |
| 69 | | * Restart JOSM |
| | 71 | 1. Open the [wikitr:/Help/Action/Preferences Preferences] |
| | 72 | 1. Make sure [wikitr:/Help/ExpertMode Expert Mode] is enabled |
| | 73 | 1. Open the [wikitr:/Help/Preferences/Advanced Advanced Preferences] |
| | 74 | 1. Search for keys starting with: `mirror.https://josm.openstreetmap.de/josmfile?page_Presets/` (or `mirror.` for other external sources) |
| | 75 | 1. Select the preset you want to update |
| | 76 | 1. Click on Reset at the bottom of the window |
| | 77 | 1. Click on OK to save the changes (and to close the preference window) |
| | 78 | 1. Restart JOSM |