[[TranslatedPages(revision=119,outdated=Der Abschnitt 'XML Format Beschreibung' muss noch übersetzt werden.)]] [[PageOutline(2-10,Inhaltsverzeichnis)]] = Objektvorlagen = JOSM unterstützt verteilte Objektvorlagen. Eine XML-Konfigurationsdatei, um die Eingabe von Tags (oder Eigenschaften, Anmerkungen) mit einem Dialog zu beschreiben. Die XML-Dateien können überall im Netz oder lokal im Dateisystem gespeichert werden. Objektvorlagen können durch den Benutzer auf der zentralen Seite [wiki:De:Presets JOSM Objektvorlagen] hinzugefügt werden. == Installieren einer Objektvorlage == Entweder: * Klicke im Hauptmenü [Help/Menu/Presets Vorlagen] auf "Vorlagen Einstellungen". * Öffne den [wiki:De:Help/Action/Preferences Einstellungen Dialog], klicke auf [[Image(source:trunk/images/preferences/map.png,20)]] Karteneinstellungen und selektiere den dritten Reiter [Help/Preferences/Map#TaggingPresets "Objektvorlagen"]. == Eine neue Objektvorlage erstellen == Die Beschreibung einer Objektvorlage geschieht in einem einfachen XML Format. Details siehe [#XML unten]. Siehe **[source:trunk/data/defaultpresets.xml defaultpresets.xml]** als Beispiel, welches die meisten der unten aufgelisteten Möglichkeiten abdeckt. Das vollständige XSD Schema ist im Namensraum URI (http://josm.openstreetmap.de/tagging-preset-1.0) sowie [source:trunk/data/tagging-preset.xsd im Quellverzeichnis] verfügbar. Um eine Vorlage der Liste der verfügbaren Vorlagen hinzuzufügen, siehe [wiki:De:Presets#Createnewpresets JOSM Objektvorlagen] Beispiel: [[Image(wiki:TaggingPresets:Change 1 object.png,align=right)]] {{{ #!xml }}} Das Tool [http://visualtags.hotosm.org/ HOT Visual Tag Chooser] erlaubt dem Nutzer Objektvorlagen mithilfe eines Webinterfaces zu erstellen oder zu bearbeiten. == XML Format Beschreibung ==#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]].) * '''baselanguage''' - when the base language is not English, specify it here (using non English preset texts prevents automatic translation) (i18n) means the values may also be localized (e.g. de.description). [[BR]] ==== Comments ==== :: The document can contain embedded comments. [[BR]] ==== 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. [[BR]] ==== Preset window layout ====