[[TranslatedPages]] = Presets = [[JOSMImage(dialogs/propertiesdialog,48,link=,margin-right=20,margin-bottom=10,middle,left)]] ''If you want to learn installation steps for presets, see [[JOSMImage(dialogs/propertiesdialog)]] [wikitr:/Help/Preferences/TaggingPresetPreference Tagging Presets] register in [[JOSMImage(preference)]] [wikitr:/Help/Action/Preferences Preferences]'' \\ ''If you want to extend presets with your own see - [wikitr:/TaggingPresets TaggingPresets]'' [[PageOutline(2-10,Table of contents)]] \\ == What are presets? == **Presets** in JOSM are menu-driven shortcuts to tag common object types in OpenStreetMap. They provide you with a user friendly interface to edit one or more objects at a time, suggest additional keys and values you may wish to add to those objects, and most importantly, prevent you from having to enter keys and values by hand. There are three types of Presets available to you in JOSM. Adding or removing any of these items requires restarting JOSM. 1. The **Internal Preset** list, defined in [source:/trunk/resources/data/defaultpresets.xml defaultpresets.xml], is the default set of presets available in the JOSM [wikitr:/Help/Menu/Presets Presets] menu. Changes to the Internal Presets requires modification of the JOSM source code. 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. 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]. == JOSM Available presets == [[Styles(en|presets|short description|author|description|version|More details)]] == Publish a new Available presets item ==#PublishanewAvailablepresetsitem [=#Createnewpresets] {{{#!comment Deprecated #Createnewpresets target is called from some PresetsSource and DevelopersGuide/DefaultPresets pages }}} See [wikitr:/TaggingPresets] for the syntax of customized preset files. Be sure to validate a preset file before publishing it! {{{ #!comment Note for translators: - The reference below to change the source of this page should not be modified, so it tells the reader to modify the English page. }}} === JOSM wiki Available preset (preferred method) === In order to add a new wiki based preset, simply create a new wiki page similar to the [#List existing wiki presets]. I. go to [wiki:Presets/MyPresetName https://josm.openstreetmap.de/wiki/Presets/MyPresetName] A. change the URL so it matches the name of your preset; change only the last part after `...Presets/`, (preferred is CamelCase) a. press `Enter` after adjusting the name 1. click 'create this page' 1. add content similar to existing preset wikis, e.g. [wikitr:/Presets/OneClick] 1. don't forget to enclose your preset code by a code block (`#!preset` needs to be on a **new line** after `{{{`): 1. `{{{` 1. `#!preset` 1. `` 1. ... 1. `}}}` 1. save the wiki page 1. after a few minutes the new wiki preset will show up in the list and in JOSM automatically 1. for automatic version adjustment you have to use `[[revision]]_[[date]]` in your version variable: * `[[revision]]` - is the latest version number of the wiki page * `[[date]]` - is the date of the last edit of the wiki page * recommended usage: `version="1.[[revision]]_[[date]]"` (converts to e.g. `1.13_2019-02-24`) * this is required for an automatic update within JOSM === Externally hosted Available preset === A new externally hosted preset URLs can be published by editing [wikitr:/PresetsSource this page]. \\ **Note**: Only URLs with file-extension (e.g. *.mapcss, *.xml, *.zip, *.php) are supported. === Icon handling in Available presets ===#IconHandling * See [wikitr:/Styles#Icons] for a description how attached files and icons are handled. * Empty image paths like `icon=""` are not allowed. == Updating Available presets in JOSM == Once a preset was updated in the wiki (or another external source) it takes up to 10 days until the preset gets updated in JOSM automatically. To immediately force an update you can do the following steps: 1. Open the [wikitr:/Help/Action/Preferences Preferences] 1. Make sure [wikitr:/Help/ExpertMode Expert Mode] is enabled 1. Open the [wikitr:/Help/Preferences/Advanced Advanced Preferences] 1. Search for keys starting with: `mirror.https://josm.openstreetmap.de/josmfile?page_Presets/` (or `mirror.` for other external sources) 1. Select the preset you want to update 1. Click on Reset at the bottom of the window 1. Click on OK to save the changes (and to close the preference window) 1. Restart JOSM or: 1. Remove the content of your [wikitr:/Help/Action/About#InstallationDetails ] folder 1. Restart JOSM == Available presets managed in the JOSM wiki ==#List [[TitleIndex(Presets/)]] ---- Back to [wikitr:/Help/Menu/Presets Presets Menu] \\ Back to [wikitr:/Help Main Help]