[[TranslatedPages]] [[PageOutline(2-10,Table of Contents)]] ''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 use presets or need complete reference of presets see [wikitr:/Presets Presets]'' ---- = Tagging Presets = JOSM supports distributed tagging presets. This is a XML config file that describes a GUI for entering tags (or properties, annotations, sometimes called map features). The presets can be placed anywhere in the web or at the users local file system. JOSM can be configured to use custom local or remote Presets. == Develop a new preset == The tagging preset description is in a very simple XML format. Details see [#XML below]. See the **[source:/trunk/resources/data/defaultpresets.xml defaultpresets.xml]** for an example covering most of the possibilities listed below. Example: [[Image(Change 1 object.png,right,link=,margin-left=15)]] {{{ #!preset }}} \\ == XML Format description ==#XML The full XSD schema is available at the namespace URI (https://josm.openstreetmap.de/tagging-preset-1.0) as well as [source:/trunk/resources/data/tagging-preset.xsd the source repository]. === Tags === ==== The document prologue ==== :: Has to be the main tag of the file. Supports following attributes * '''xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"''' * '''author''' - the name of the author of the preset * '''version''' - the version number of the file. For automatic version adjustment of presets managed in this wiki you have to use two internal variables: `[[revision]]` (the latest version number of the wiki page) and `[[date]]` (the date of the last edit), e.g. `version="1.[[revision]]_[[date]]"`. * '''description''' (i18n) - description what the file contains * '''shortdescription''' (i18n) - very short overview description i.e. the "name" of the preset * '''link''' (i18n) - web link to further details (optional) * '''icon''' - icon for the whole preset * '''baselanguage''' - when the base language is not English, specify it here (using non English preset texts will prevent automatic translation, once it is implemented (#11392)) (i18n) means the values may also be localized (e.g. `de.description`). \\ ==== Comments ==== :: The document can contain embedded comments. \\ ==== Preset group creation ==== :: Used to group items in sub menus. `name` is required, `icon` is optional attribute. :: Every item is one annotation set to select from. `name` is required, `type` and `preset_name_label` are recommended, `icon` and `name_template` are optional attributes. :: Insert a line separator into the menu. \\ ==== Preset window layout ====