[[TranslatedPages(outdated=The preset syntax has changed and the copy from XML files needs to be joined with normal description. Also the example should be changed because it uses key-value pairs which are uncommon in OSM and highways are usually NOT oneway.)]] [[PageOutline(2-10,Table of Contents)]] = 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 XML files can be placed anywhere in the web or at the users local file system. Presets can be added by the users at a central page [wiki:Presets]. == Installing presets == Either: * Click on main menu [Help/Menu/Presets Presets] and click on "Preset Preferences". * Open the [Help/Action/Preferences preferences window], click [[Image(source:trunk/images/preferences/map.png,20)]] map settings and select third tab [Help/Preferences/Map#TaggingPresets "Tagging Presets"]. == Develop a new preset == The tagging preset description is in a very simple XML format. Details see [#XML below]. See the **[source:trunk/data/defaultpresets.xml defaultpresets.xml]** for an example covering most of the possibilities listed below. The full XSD schema is available at the namespace URI (http://josm.openstreetmap.de/tagging-preset-1.0) as well as [source:trunk/data/tagging-preset.xsd the source repository]. To add the preset to the list of available presets see [[Presets#Createnewpresets]]. Example: [[Image(tagging_screenshot.png,align=right)]] {{{ #!xml }}} == XML Format description (outdated!) ==#XML === Tags === ==== The document prolog ==== '''''':: 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 automatical version adjustment of presets managed in this wiki you can use two internal variables: `[[revision]]` (the latest version number of the wiki page) and `[[date]]` (the date of the last edit). * '''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''' - informational icon for the whole preset. (This is nedded to display the icon in the table at [[Presets]].) (i18n) means the values may also be localized (e.g. de.link). ==== Comments ==== '''''':: The document can contain embedded comments. ==== Menu 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 ==== '''