| 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: |
| | 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. go to https://josm.openstreetmap.de/wiki/Presets/MyPresetName |
| | 38 | A. change the URL so it matches the name of your preset; change only the last part after `...Presets/`, (preferred is CamelCase) |
| | 39 | a. press `Enter` after adjusting the name |
| | 40 | 1. click 'create this page' |
| | 41 | 1. add content similar to existing preset wikis, e.g. [wikitr:/Presets/OneClick] |
| | 42 | 1. don't forget to enclose your preset code by a code block (`#!preset` needs to be on a **new line** after `{{{`): |
| | 43 | 1. `{{{` |
| | 44 | 1. `#!preset` |
| | 45 | 1. `<?xml version="1.0" encoding="UTF-8"?>` |
| | 46 | 1. ... |
| | 47 | 1. `}}}` |
| | 48 | 1. save the wiki page |
| | 49 | 1. after a few minutes the new wiki preset will show up in the list and in JOSM automatically |
| | 50 | 1. for automatic version adjustment you have to use `[[revision]]_[[date]]` in your version variable: |
| 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 |
| | 66 | 1. Open the [wikitr:/Help/Action/Preferences Preferences] |
| | 67 | 1. Make sure [wikitr:/Help/ExpertMode Expert Mode] is enabled |
| | 68 | 1. Open the [wikitr:/Help/Preferences/Advanced Advanced Preferences] |
| | 69 | 1. Search for keys starting with: `mirror.https://josm.openstreetmap.de/josmfile?page_Presets/` (or `mirror.` for other external sources) |
| | 70 | 1. Select the preset you want to update |
| | 71 | 1. Click on Reset at the bottom of the window |
| | 72 | 1. Click on OK to save the changes (and to close the preference window) |
| | 73 | 1. Restart JOSM |