Changes between Version 30 and Version 31 of De:TaggingPresets


Ignore:
Timestamp:
2025-01-08T17:54:59+01:00 (17 months ago)
Author:
stoecker
Comment:

Update to 197, improve missing parts

Legend:

Unmodified
Added
Removed
Modified
  • De:TaggingPresets

    v30 v31  
    1 [[TranslatedPages(revision=123,outdated=Der Abschnitt 'XML Format Beschreibung' muss noch übersetzt werden.)]]
     1[[TranslatedPages(revision=197,outdated=XML-Anteil unvollständig übersetzt)]]
    22[[PageOutline(2-10,Inhaltsverzeichnis)]]
     3
     4''Wenn Sie die Installationsschritte für Voreinstellungen lernen wollen, sehen Sie sich die [[JOSMImage(dialogs/propertiesdialog)]] [wikitr:/Help/Preferences/TaggingPresetPreference Objektvorlagen-Übersicht] in den [[JOSMImage(preference)]] [wikitr:/Help/Action/Preferences Einstellungen]'' an \\
     5''Wenn Sie Objektvorlagen verwenden wollen oder eine vollständige Referenz der Vorlagen benötigen, siehe [wikitr:/Presets Objektvorlagen]''
     6
    37= Objektvorlagen =
    48
    5 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.
    6 
    7 == Installieren einer Objektvorlage ==
    8 Entweder:
    9 * Klicke im Hauptmenü [Help/Menu/Presets Vorlagen] auf "Vorlagen Einstellungen".
    10 * Öffne den [wiki:De:Help/Action/Preferences Einstellungen Dialog], klicke auf [[JOSMImage(preferences/map,20)]] Karteneinstellungen und selektiere den dritten Reiter [Help/Preferences/Map#TaggingPresets "Objektvorlagen"].
     9JOSM unterstützt verteilte Objektvorlagen. Dies ist eine XML-Konfigurationsdatei, die eine grafische Benutzeroberfläche für die Eingabe von Merkmalen (oder Eigenschaften, Anmerkungen, manchmal auch Kartenmerkmale genannt) beschreibt.
     10
     11Die Voreinstellungen können an beliebiger Stelle im Web oder im lokalen Dateisystem des Benutzers abgelegt werden. JOSM kann für die Verwendung benutzerdefinierter lokaler oder entfernter Voreinstellungen konfiguriert werden.
    1112
    1213== Eine neue Objektvorlage erstellen ==
    1314Die Beschreibung einer Objektvorlage geschieht in einem einfachen XML Format. Details siehe [#XML unten].
    1415
    15 Siehe **[source:trunk/resources/data/defaultpresets.xml defaultpresets.xml]** als Beispiel, welches die meisten der unten aufgelisteten Möglichkeiten abdeckt.
    16 
    17 Das vollständige XSD Schema ist im Namensraum URI (http://josm.openstreetmap.de/tagging-preset-1.0) sowie [source:trunk/resources/data/tagging-preset.xsd im Quellverzeichnis] verfügbar.
    18 
    19 Um eine Vorlage der Liste der verfügbaren Vorlagen hinzuzufügen, siehe [wiki:De:Presets#Createnewpresets JOSM Objektvorlagen]
     16Siehe **[source:/trunk/resources/data/defaultpresets.xml defaultpresets.xml]** als Beispiel, welches die meisten der unten aufgelisteten Möglichkeiten abdeckt.
    2017
    2118Beispiel:
    22 [[Image(wiki:TaggingPresets:Change 1 object.png,align=right)]]
     19[[Image(wiki:TaggingPresets:Change 1 object.png,right,link=,margin-left=15)]]
    2320
    2421{{{
    25 #!xml
     22#!preset
     23<?xml version="1.0" encoding="UTF-8"?>
    2624<presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0">
    2725  <item name="Oneway highway" type="way">
     
    4240}}}
    4341
    44 Das Tool [http://visualtags.hotosm.org/ HOT Visual Tag Chooser] erlaubt dem Nutzer Objektvorlagen mithilfe eines Webinterfaces zu erstellen oder zu bearbeiten.
     42\\
    4543
    4644== XML Format Beschreibung ==#XML
    47 === Tags ===
    48 ==== The document prolog ====
     45
     46Das vollständige XSD Schema ist im Namensraum URI (http://josm.openstreetmap.de/tagging-preset-1.0) sowie [source:trunk/resources/data/tagging-preset.xsd im Quellverzeichnis] verfügbar.
     47
     48=== Merkmale ===
     49==== Anfang des Dokuments ====
    4950 <presets>::
    50   Has to be the main tag of the file. Supports following attributes
    51   * '''xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"'''
    52   * '''author''' - the name of the author of the preset
    53   * '''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).
    54   * '''description''' (i18n) - description what the file contains
    55   * '''shortdescription''' (i18n) - very short overview description i.e. the "name" of the preset
    56   * '''link''' (i18n) - web link to further details (optional)
    57   * '''icon''' - informational icon for the whole preset. (This is nedded to display the icon in the table at [[Presets]].)
    58   * '''baselanguage''' - when the base language is not English, specify it here (using non English preset texts prevents automatic translation)
    59 
    60   (i18n) means the values may also be localized (e.g. de.description).
    61 [[BR]]
    62 ==== Comments ====
    63  <!-- this is an example comment -->::
    64   The document can contain embedded comments.
    65 [[BR]]
    66 ==== Menu creation ====
     51  Muss das Hauptmerkmal der Datei sein. Unterstützt folgende Attribute
     52  * **xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"**
     53  * **author** - Der Name des Autors der Vorlage
     54  * **version** - die Versionsnummer der Datei. Für die automatische Versionsanpassung von Vorlagen, die in diesem Wiki verwaltet werden, müssen Sie zwei interne Variablen verwenden: `[[revision]]` (die letzte Versionsnummer der Wikiseite) und `[[date]]` (das Datum der letzten Bearbeitung), z.B. `version="1.[[revision]]_[[date]]"`.
     55  * **description** (i18n) - Beschreibung, was die Datei enthält
     56  * **shortdescription** (i18n) - sehr kurze Übersichtsbeschreibung, z.B. der "Name" der Vorlage
     57  * **link** (i18n) - Webseite für weitere Details (optional)
     58  * **icon** - Bild für die gesamte Vorlage
     59  * **baselanguage** - wenn die Basissprache nicht Englisch ist, geben Sie diese hier an (die Verwendung von nicht englischen Vorlagen-Texten wird die automatische Übersetzung verhindern, sobald sie implementiert ist (#11392))
     60
     61 (i18n) bedeutet, dass die Werte auch lokalisiert werden können (z. B. `de.description`).
     62\\
     63
     64==== Kommentare ====
     65 <!-- Dies ist ein Beispielkommentar -->::
     66   Das Dokument kann eingebettete Kommentare enthalten.
     67\\
     68
     69==== Erstellung von Vorlagengruppen ====
    6770 <group>::
    68   Used to group items in sub menus. `name` is required, `icon` is optional attribute.
     71   Wird verwendet, um Elemente in Untermenüs zu gruppieren. `name=""` ist erforderlich, `icon=""` ist ein optionales Attribut.
    6972 <item>::
    70   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.
    71  <separator/>::
    72   Insert a line separator into the menu.
    73 [[BR]]
    74 ==== Preset window layout ====
    75  <label>::
    76   Labels are static texts for display. `text` is a required attribute, `icon` and `icon_size` are optional.
     73   Jedes Element ist ein Anmerkungssatz, aus dem ausgewählt werden kann. `name=""` ist erforderlich, `type=""` und `preset_name_label=""` werden empfohlen, `icon=""`, `name_template=""` und `match_expression=""` sind optionale Attribute.
     74 <separator />::
     75   Einen Zeilentrenner in das Menü einfügen.
     76\\
     77
     78==== Gestaltung des Vorlagenfensters ====
     79 <label />::
     80   Beschriftungen sind statische Texte für die Anzeige. `text=""` ist ein erforderliches Attribut, `icon=""` und `icon_size=""` sind optional.
    7781 <space />::
    78   Add some space (ie a newline).
     82   Etwas Freiraum (z.B. eine Leerzeile) einfügen.
    7983 <optional>::
    80   Used to group some optional elements of an item. The `text` attribute is optional. If used without `text` then this is equivalent to <space /><label text="Optional Attributes:"/><space />
     84   Dient zur Gruppierung einiger optionaler Elemente eines Eintrags. Das Attribut `text=""` ist optional. Wird es ohne `text=""` verwendet, entspricht dies `<space /><label text="Optionale Merkmale:" /><space />`
    8185 <item_separator />::
    82   Add a horizontal separator line between items.
    83  <link>::
    84   Specify a web link for this feature or to anything else of use. The `href` attribute is required.
     86   Eine horizontale Trennlinie zwischen den Einträgen einfügen.
     87 <link />::
     88   Einen Weblink für diese Funktion oder für etwas anderes Nützliches angeben. Entweder ist das Attribut `wiki=""` (das auf eine OSM-Wiki-Seite verweist, z.B. `"Tag:leisure=park"`) oder das Attribut `href=""` (vollständige URL) sind erforderlich. Wenn das Attribut `wiki=""` verwendet wird, verweist der Link auf die Wikiseite der Sprache, auf die JOSM eingestellt ist. Existiert diese nicht, wird die englische Seite angezeigt. Wenn `wiki=""` verwendet wird, darf die OSM-Wiki-Seite nicht URL-kodiert sein, z.B. darf sie nicht `"Tag:leisure%3Dpark"` heißen, sondern muss stattdessen `"Tag:leisure=park"` lauten.
    8589 <checkgroup>::
    86   To group checks. The `columns` attribute is required.
     90   Um Ankreuzfelder zu gruppieren. Das Attribut `columns=""` ist erforderlich.
    8791 <roles>::
    88   This is required around <role> and adds the heading ("Availible roles role count elements") to the table which is generated by several <role>.
    89  <role>::
    90   To specify possible roles of members in relations. The `key` attribute is required, `text`, `requisite`, `count`, `type` and `member_expression` are optional.
    91  <preset_link>::
    92   Adds a link to an other preset. The `preset_name` attribute is required.
    93 [[BR]]
    94 ==== Set a fixed key value pair ====
    95  <key>::
    96   This tag will always set a key to a specific value. `key` is required and if `value` is present, the key will be set. If `value` attribute is ommited, the key is removed. The `match` attribute is optional.
    97 [[BR]]
    98 ==== Attribute entry and selection dialog boxes ====
    99  <text>::
    100   A text edit field to enter any arbitrary string from the user. `key` is mandatory, `text`, `default`, `use_last_as_default`, `auto_increment`, `length`, `alternative_autocomplete_keys` and `match` is optional
    101  <combo>::
    102   Displays a multiple choice combo box. `key` and `values` are mandatory, `text`, `default`, `editable`, `delimiter`, `values_from`, `display_values`, `short_descriptions`, `use_last_as_default`, `values_searchable`, `length`, `values_no_i18n`, `values_sort` and `match` is optional.\\
    103   If editable is true (default), combo boxes can be edited as if they were text fields (additional to the drop down menu). Non editable combo boxes can only contain one of the specified values.
    104  <multiselect>::
    105   Displays a list from which zero or more items can be chosen. `key` and `values` are mandatory, and `text`, `default`, `delimiter`, `values_from`, `rows`, `display_values`, `short_descriptions`, `use_last_as_default`, `values_searchable`, `values_no_i18n`, `values_sort` and `match` are optional. The selected values will be concatenated with the specified delimiter (default: semicolon) and written to the tag value. If a tag value has already been set when the preset dialog is opened, the multiselect will attempt to mark the appropriate items in the list as select. If the tag value cannot be represented by a combination of choices in the list, then the list will be disabled so that the user cannot accidentally overwrite a custom value. In contrast to the "combo" element, the "multiselect" expects the list of values, descriptions etc. to use the specified delimiter, i.e. by default you will have to use a semicolon. You can specify delimiter="," but then a comma will also be used in the tag value.
    106  <list_entry>::
    107   Used in <combo> and <multiselect>. More information see `short_descriptions`. The attributes are `value`, `display_value`, `short_description`, `icon` and `icon_size`.
    108  <check>::
    109   A checkbox which the user can only select or deselect (or set as unset). The `key` attribute is mandatory. `text`, `default`, `match`, `value_on` , `value_off` and `disable_off` are optional.
    110 [[BR]]
     92   Dies wird zum Gruppieren von `<role/>` benötigt und fügt die Überschrift („Verfügbare Rollen  Rolle  Anzahl  Elemente“) zu der Tabelle hinzu, die durch mehrere Angaben von `<role/>` erzeugt wird.
     93 <role />::
     94  Zur Angabe möglicher Rollen von Mitgliedern in Relationen. Das Attribut `key=""` ist erforderlich, `text=""`, `requisite=""`, `count=""`, `type=""`, `member_expression=""` und `regexp=""` sind optional.
     95 <preset_link />::
     96   To specify possible roles of members in relations. The `key=""` attribute is required, `text=""`, `requisite=""`, `count=""`, `type=""`, `member_expression=""` and `regexp=""` are optional.
     97 <preset_link />::
     98   Fügt einen Link zu einer anderen Vorlage mit einer Beschriftung darüber hinzu. Das Attribut `preset_name=""` ist erforderlich, `text=""` zum Überschreiben der Beschriftung (Standard ist `„Bearbeite auch ...“`) und `text_context=""` sind optional. Eine Folge von `<preset_link />` ohne `text=""` oder einem identischen `text=""` werden unter einer Beschriftung gruppiert. \\
     99   **Achtung** bei Vorlagen mit identischem **`name=""`**, da es nicht vorhersehbar ist, zu welcher Vorlage der Link führt, siehe #12716. \\
     100   Das gleiche Merkmale in beiden Vorlagen zu haben, funktioniert nicht, siehe #18992. \\
     101   Die Verwendung von `<preset_link />` in Vorlagen, die über den [wikitr:/Help/Dialog/RelationEditor Relationseditor] geöffnet werden, führt zu Fehlern, siehe #20044.
     102\\
     103
     104==== Ein festes Merkmalspaar festlegen ====
     105 <key />::
     106   Mit diesem Element wird ein Merkmal immer auf einen bestimmten Wert gesetzt. `key=""` ist erforderlich und wenn `value=""` vorhanden ist, wird das Merkmal gesetzt. Wenn das Attribut `value=""` weggelassen wird, wird das Merkmal entfernt. Das Attribut `match=""` ist optional.
     107\\
     108
     109==== Attribute entry and selection dialog boxes ====#EntrySelectionBoxes
     110 <text />::
     111   A text edit field to enter any arbitrary string from the user. `key=""` is mandatory, `text=""`, `default=""`, `use_last_as_default=""`, `auto_increment=""`, `length=""`, `alternative_autocomplete_keys=""`, `match=""`, `icon=""` and `icon_size=""` (both since r17605) are optional.
     112 <combo />::
     113   Displays a multiple choice combo box. `key=""` and `values=""` are mandatory, `text=""`, `default=""`, `editable=""`, `delimiter=""`, `values_from=""`, `display_values=""`, `short_descriptions=""`, `use_last_as_default=""`, `values_searchable=""`, `length=""`, `values_no_i18n=""`, `values_sort=""`, `match=""`, `icon=""` and `icon_size=""` (both since r17605) are optional.\\
     114   If `editable=""` is `true` (default), combo boxes can be edited as if they were text fields (additional to the drop down menu). Non editable combo boxes can only contain one of the specified values.\\
     115   If the key is `colour` or `colour:*` or `*:colour`, a color preview and color picker is added on the right (see #8352).
     116 [=#multiselect]
     117 <multiselect />::
     118   Displays a list from which zero or more items can be chosen. `key=""` and `values=""` are mandatory, and `text=""`, `default=""`, `delimiter=""`, `values_from=""`, `rows=""`, `display_values=""`, `short_descriptions=""`, `use_last_as_default=""`, `values_searchable=""`, `values_no_i18n=""`, `values_sort=""`, `match=""`, `icon=""` and `icon_size=""` (both since r17605) are optional. The selected values will be concatenated with the specified delimiter (default: semicolon, `;`) and written to the tag value. If a tag value has already been set when the preset dialog is opened, the `<multiselect />` will attempt to mark the appropriate items in the list as select. If the tag value cannot be represented by a combination of choices in the list, then the list will be disabled so that the user cannot accidentally overwrite a custom value. In contrast to the `<combo />` element, the `<multiselect />` expects the list of values, descriptions etc. to use the specified delimiter, i.e. by default you will have to use a semicolon. You can specify `delimiter=","` but then a comma will also be used in the tag value.
     119 <list_entry />::
     120   Used in `<combo>` and `<multiselect>`. More information see `short_descriptions=""`, [#short_description below]. The attributes are `value=""`, `display_value=""`, `short_description=""`, `icon=""` and `icon_size=""`.
     121 <check />::
     122   A checkbox which the user can select, deselect or set as unset. The `key=""` attribute is mandatory. `text=""`, `default=""`, `match=""`, `value_on=""` , `value_off=""`, `disable_off=""`, `icon=""` and `icon_size=""` (both since r15437) are optional.
     123\\
     124
    111125==== Templates ====
    112126 <chunk>::
    113   To define a template of elements for later (repeated) use. The `id` attribute is mandatory.
     127   To define a template of elements for later (repeated) use. The `id=""` attribute is mandatory.
    114128 <reference>::
    115   To include an earlier defined template. The `ref` attribute is mandatory.
    116 [[BR]]
     129   To include an earlier defined template. The `ref=""` attribute is mandatory.
     130\\
     131
    117132=== Attributes ===
    118133The attributes of the tags have the following meaning:
    119134 name="a_name"::
    120   Specify a name for an item. This name will be used in the GUI to display the tagging preset.
     135   Specify a name for an item. This name will be used in the GUI to display the tagging preset.
    121136 name_context="context"::
    122   Translation context for name attribute to separate equals words with different meaning (not required for in-file translations).
     137   Translation context for name attribute to separate equals words with different meaning (not required for in-file translations).
    123138 type="data_type"::
    124   When specified, only objects of the given type will be changed at all by this tagging preset. Can be "node", "relation", "way", "closedway" or any comma separated combination of them. Also used in the <role> tag to specify which object types are allowed for a specific relation member.
     139   When specified, only objects of the given type will work with this tagging preset. Can be `"node"`, `"way"`, `"closedway"`, `"multipolygon"`, `"relation"` or any comma separated combination of them. Note that `"multipolygon"` is not included in `"relation"`, so if the preset should apply for multipolygons and other relation types, you need to specify both: `"multipolygon,relation"`. Also used in the `<role>` tag to specify which object types are allowed for a specific relation member.
    125140 icon="iconname"::
    126   A name or link to an icon. The image will be used as icon to display in the selection list and when adding the preset to the toolbar. Icons can also be used in <item>, <label> and <list_entry>. The icon should be quadratic in size. See [[Styles#Iconhandling]] how icons can be specified.
     141   A name or link to an icon. The image will be used as icon to display in the selection list and when adding the preset to the toolbar. Icons can also be used in  `<item>`, `<label />`, plus all [#EntrySelectionBoxes attribute entry and selection dialog boxes] (since r17605, before it was only `<list_entry />` and `<check />`).  It is placed in front of `<text />` The icon should be quadratic in size. See [wikitr:/Styles#Iconhandling Icon handling] how icons can be specified.
    127142 icon_size="a number"::
    128   The maximal size of an icon in px. If no value is given, default is 16 for <label> and the default icon size for <list_entry /> (in <combo> and <multiselect>).
     143   The maximal size of an icon in px. If no value is given, default is 16 for `<label />` and the default icon size for `<list_entry />` (in `<combo>` and `<multiselect>`).
    129144 key="some_key"::
    130   This specifies the property key that will be modified by the item. In case of <role> it is the role name used in a relation.
     145   This specifies the property key that will be modified by the item. In case of `<role>` it is the role name used in a relation.
    131146 text="Any text"::
    132   The description, that will be displayed before (after in case of <check>) the gui element. Also used for <label> and <optional>.
     147   The description, that will be displayed before the gui element, (in case of `<check />` after the gui element and the optional icon). Also used for `<label>` and `<optional>`.
    133148 text_context="context"::
    134   Translation context for text attribute to separate equals words with different meaning (not required for in-file translations).
     149   Translation context for text attribute to separate equals words with different meaning (not required for in-file translations).
    135150 default="default_value"::
    136   The default value for the item. If not specified, the current value of the key is chosen as default (if applicable). In case of <check> whether the checkbox is ticked on or off by default (default is "off"). In case of <text>, <combo> and <multiselct> defaults to "".
     151   An explicitly declared default value for the item. This value is ''only'' applied through a preset when the object the preset is applied to has ''zero keys''.
     152  If no value for default is specified, no value is set to the key. Used in `<check />`, `<text />`, `<combo />` and `<multiselect />`. For `<check />` only the values `"on"` and `"off"` are valid.
    137153 values="entry1,entry2,entry3"::
    138   A list of entries (for the <combo> box and <multiselect>). The list has to be separated by commas (for the combo box) or by the specified delimiter (for the multiselect). If a value contains the delimiter, the delimiter may be escaped with a backslash. If a value contains a backslash, it must also be escaped with a backslash.
     154   A list of entries (for the `<combo />` box and `<multiselect />`). The list has to be separated by commas (for the combo box) or by the specified delimiter (for the multiselect). If a value contains the delimiter, the delimiter may be escaped with a backslash. If a value contains a backslash, it must also be escaped with a backslash.
    139155 values_from="JAVA code"::
    140   To use instead of "values" if the list of values has to be obtained with a Java method of this form: public static String[] getValues(); The value must be: "full.package.name.ClassName#methodName".
     156   To use instead of `values=""` if the list of values has to be obtained with a Java method of this form: `public static String[] getValues()`; The value must be: "full.package.name.ClassName#methodName".
    141157 values_no_i18n="true|false"::
    142   Disables internationalisation for value to avoid mistakes, see #11696. Default is "false". Used in <combo> and <multiselect>. (nützlich z.B. für Öffnungszeiten oder brand-Namen)
    143  values_sort="false"::
    144   Values of <combo> and <multiselect> are sorted alphabetic in every language. With this attribute you can disable the alphabetic sorting if the values should keep the given order, see #5509 and #11926. (In the JOSM internal preset this is used for the keys "smoothness" and "trail_visibility".) Default is "true". Users can globaly disable sorting with the preference key `taggingpreset.sortvalues`.
     158   Disables internationalisation for values to avoid mistakes, see #11696. Default is `"false"`. Used in `<combo />` and `<multiselect />`. (Useful e.g. for keys `opening hours` or `brand`.) Not needed with keys with only numbers as values like `layer` or `level` which are already excluded from translation.
     159 values_sort="true|false"::
     160   Values of `<combo />` and `<multiselect />` are sorted alphabetic in every language. With this attribute you can disable the alphabetic sorting if the values should keep the given order, see #5509 and #11926. (In the JOSM internal preset this is used e.g. for the keys `tracktype`, `direction`, `network`, `smoothness`, `visibility` or `trail_visibility`.) Default is `"true"`.\\
     161  Users can globally disable sorting with the preference key `taggingpreset.sortvalues`.
    145162 values_context="context"::
    146   Translation context for name attribute to separate equals words with different meaning (not required for in-file translations).
     163   Translation context for values attribute to separate equals words with different meaning (not required for in-file translations).
    147164 display_values="Entry1,Entry2,Entry3"::
    148   A list of entries that is displayed to the user. Must be the same number and order of entries as `values` and `editable` must be false or not specified. For the delimiter character and escaping, see the remarks at `values`. Used in <combo> and <multiselect>.
     165   A list of entries that is displayed to the user. Must be the same number and order of entries as `values=""` and `editable=""` must be `"false"` or not specified. For the delimiter character and escaping, see the remarks at `values=""`. Used in `<combo />` and `<multiselect />`.
    149166 value="foobar"::
    150   Specify a value to be entered in the <key> tag.
     167   Specify a value to be entered in the `<key>` tag.
    151168 value_on="foobar"::
    152   Specify the true value to be entered in the <key> tag of a checked <check> (default is "yes").
     169   Specify the true value to be entered in the `<key>` tag of a checked `<check />` (default is `"yes"`).
    153170 value_off="foobar"::
    154   Specify the false value to be entered in the <key> tag of a unchecked <check> (default is "no").
     171   Specify the false value to be entered in the `<key>` tag of a unchecked `<check />` (default is `"no"`).
    155172 disable_off="true"::
    156   Whether the off value of a <check> is disabled in the dialog, i.e., only unset or yes are provided.
     173   Whether the off value of a `<check />` is disabled in the dialog, i.e., only unset or `"yes"` are provided.
    157174 editable="false"::
    158   The combo box is readonly, which means that the user can only select an item in the list. Default is "true", which means, the user can add other values as text.
     175   The combo box is read only, which means that the user can only select an item in the list. Default is `"true"`, which means, the user can add other values as text. (Feature was not working properly for a long time but should work again since r18221, see #6157.)
    159176 use_last_as_default="true|false|force"::
    160   For <combo>, <multiselect> or <text> fields the last value is used as default. Using "force" enforces this behaviour also for already tagged objects. Default is "false".
     177   For `<combo />`, `<multiselect />` or `<text />` fields the last used value is used as default. Using `"force"` enforces this behavior also for already tagged objects. Default is `"false"`.
    161178 rows="count"::
    162   Specify the number of rows to display in <multiselect> entry (if not set, it is auto determined by java or the look and feel and results in e.g. 8).
     179   Specify the number of rows to display in `<multiselect />` entry (if not set, it is auto determined by java or the look and feel and results in e.g. 8).
    163180 name_template="template", name_template_filter="search expression"::
    164   Custom name formatter for osm primitives matching this preset. See [[NameTemplate]] for details.
     181   Custom name formatter for osm primitives matching this preset. See [#name_templatedetails name template details] below.
    165182 match="none|key|key!|keyvalue|keyvalue!"::
    166   Allows to change the matching process, i.e., determining whether the tags of an OSM object fit into this preset. If a preset fits then it is linked in the [wiki:Help/Dialog/TagsMembership Tags/Membership dialog].
    167   * none: neutral, i.e., do not consider this item for matching
    168   * key: positive if key matches, neutral otherwise
    169   * key!: positive if key matches, negative otherwise
    170   * keyvalue: positive if key and value matches, neutral otherwise
    171   * keyvalue!: positive if key and value matches, negative otherwise
    172 
    173   Note that for a match, at least one positive and no negative is required. Default is "keyvalue!" for <key> and "none" for <text>, <combo>, <multiselect> and <check>.
     183   Allows to change the matching process, i.e., determining whether the tags of an OSM object fit into this preset. If a preset fits then it is linked in the [wikitr:/Help/Dialog/TagsMembership Tags/Membership dialog].
     184   * `none`: neutral, i.e., do not consider this item for matching
     185   * `key`: positive if key matches, neutral otherwise
     186   * `key!`: positive if key matches, negative otherwise
     187   * `keyvalue`: positive if key and value matches, neutral otherwise
     188   * `keyvalue!`: positive if key and value matches, negative otherwise \\
     189  **Note**: For a match, at least one positive and no negative is required. Default is `"keyvalue!"` for `<key>` and `"none"` for `<text />`, `<combo />`, `<multiselect />` and `<check />`.
     190 match_expression="search expression"::
     191   additional criteria for matching primitives, specified in [wikitr:/Help/Action/Search JOSM search] syntax. ''(since r17662)'' \\
     192   Quotes (`"`) need to be written as `&quot;`. \\
     193   For instance, a preset with `match_expression="foo=bar"` requires OSM objects to have the tag `foo=bar`. You may want to use the `match_expression=""` to exclude certain OSM objects, e.g. when a more specific preset is present.
    174194 id="unique_identifier"::
    175   the unique identifier for this chunk
     195   the unique identifier for this `<chunk>`
    176196 ref="unique_identifier"::
    177   the unique identifier of the (already defined) template to include
     197   the unique identifier of the (already defined) template to include
    178198 columns="a number"::
    179   the number of columns of grouped checks
     199   the number of columns of grouped `<check />`
    180200 requisite="optional|required"::
    181   If a relation member is optional or required. Default is "optional".
     201   If a relation member is optional or required. Default is `"optional"`.
    182202 count="a number"::
    183   How often can a role occur (if not given unlimited number is assumed)
    184  member_expression="an expression"::
    185   an expression (cf. search dialog) for objects of this role
     203   How often can a role occur (if not given unlimited number is assumed)
     204 member_expression="search expression"::
     205   an expression, in [wikitr:/Help/Action/Search JOSM search] syntax, for objects of this role \\
     206   Quotes (`"`) need to be written as `&quot;`.
     207 regexp="true"::
     208   set to `"true"` if the key of a role is a regular expression. \\
     209   This allows variable roles e.g. `<role key="level_-?\d+" text="Building level" regexp="true" requisite="optional" type="relation" />` allows the roles `level_0`, `level_1`,...
    186210 preset_name="exact_name"::
    187   The exact name of the preset to link to.
     211   The exact name of the preset to link to.
    188212 preset_name_label="false|true"::
    189   Whether to insert "[preset name]" label in dialog (defaults to "false" for backward-compatibility on external presets).
     213   Whether to insert "[preset name]" label in dialog (defaults to `"false"` for backward-compatibility on external presets).
    190214 length="a number"::
    191   The length of a <text> or <combo> box (number of characters allowed).
     215   The length of a `<text />` or `<combo />` box (number of characters allowed).
    192216 alternative_autocomplete_keys="some_key(s)"::
    193   A comma separated list of alternative keys to use for autocompletion of <text>.
     217   A comma separated list of alternative keys to use for auto completion of `<text>`.
    194218 auto_increment="-2,-1,+1,+2"::
    195   May contain a comma separated list of integer increments or decrements, e.g. "-2,-1,+1,+2". A button will be shown next to the <text> field for each value, allowing the user to select auto-increment with the given stepping. Auto-increment only happens if the user selects it. There is also a button to deselect auto-increment. Default is no auto-increment. Mutually exclusive with `use_last_as_default`.
     219   May contain a comma separated list of integer increments or decrements, e.g. `"-2,-1,+1,+2"`. A button will be shown next to the `<text />` field for each value, allowing the user to select auto-increment with the given stepping. Auto-increment only happens if the user selects it. There is also a button to deselect auto-increment. Default is no auto-increment. Mutually exclusive with `use_last_as_default=""`.
    196220 delimiter="special character"::
    197   The character that separates values. In case of <combo> the default is comma. In case of <multiselect> the default is semicolon and this will also be used to separate selected values in the tag. More information see <multiselect>.
    198  short_descriptions=""Entry1,Entry2,Entry3"::
    199   A delimiter-separated list of texts to be displayed below each `display_value`. (Only if it is not possible to describe the entry in 2-3 words.) Instead of comma separated list instead using values, display_values and short_descriptions, the following form is also supported: <list_entry value="" display_value="" short_description="" icon="" icon_size="" />
     221   The character that separates values. In case of `<combo />` the default is ''comma'' (`,`). In case of `<multiselect />` the default is ''semicolon'' (`;`) and this will also be used to separate selected values in the tag. More information see `<multiselect />`, [#multiselect above].
     222 [=#short_description]
     223 short_descriptions="Entry1,Entry2,Entry3"::
     224   A delimiter-separated list of texts to be displayed below each `display_value=""`. (Only if it is not possible to describe the entry in 2-3 words.) Instead of a comma separated list  using `values=""`, `display_values=""` and `short_descriptions=""`, the following form is also supported: \\
     225   `<list_entry value="" display_value="" short_description="" icon="" icon_size="" />`
    200226 values_searchable="true|false"::
    201   Whether to search in <combo> or <multiselect> (display_)values when searching for presets.
     227   Whether to search in `values=""` and `display_values=""`, respectively, `value=""` and `display_value=""` of `<combo />` or `<multiselect />` searching for presets.
     228 value_template="template"::
     229   A template to generate the value automatically based on other tag values of the object. The same syntax as in `name_template=""` is used, [#NameTemplateSyntax see below]. ''(since r17639)'' \\
     230   For instance, `"Bus {ref}: {from} → {to}"` can be used to generate the name of a bus route relation. \\
     231  **Note**: There are some minor problems with this attribute, see #20851 and #20861.
     232\\
     233
     234===== name_template and value_template details ===== #name_templatedetails
     235Name templates can be used to define custom formatting for OSM primitives or GPX waypoints (for example in the Relations or Selection panels).
     236
     237{{{
     238#!xml
     239<?xml version="1.0" encoding="UTF-8"?>
     240<presets>
     241        <item name="Public transportation" type="relation"
     242                name_template="Bus({operator} {ref} ?{'{from} - {via} - {to}' | '{from} - {to}' | '{from}' | '{to}'})"
     243                name_template_filter="type=route route=bus">
     244        </item>
     245</presets>
     246}}}
     247
     248**Samples**
     249||= Template =||= Tags =||= Result =||
     250|| `House number {addr:housenumber}` || `addr:housenumber=10` || House number 10
     251|| `?{ 'House number {addr:housenumber} at {addr:street}' | 'House number {addr:housenumber}'  }` || `addr:housenumber=10` || House number 10
     252|| || `addr:housenumber=10 addr:street=Abbey road` || House number 10 at Abbey road
     253|| `?{ admin_level = 2 'NUTS 1' | admin_level = 4 'NUTS 2' | admin_level = 6 'NUTS 3' |  'Admin level {admin_level}'}` ||  `admin_level=4` || NUTS 2
     254|| || `admin_level=5` || Admin level 5
     255|| `{admin_level} - {name} !{parent() type=boundary '?{'(part of {admin_level} - {name})' | ''}'}` || `admin_level=6 name=Vysocina`, member of relation `admin_level=4 name=Jihovychod` || 6 - Vysocina (part of 4 - Jihovychod)
     256|| ||  `admin_level=2 name=Czech republic` (no parents) || 2 - Czech republic
     257\\
     258
     259====== Syntax ======#NameTemplateSyntax
     260* `{tag}` - insert the value of the tag.
     261* `?{condition1 'value1' | condition2 'value2' | 'value3'}` - use ''value1'' if ''condition1'' is satisfied, else use ''value2'' if ''condition2'' is satisfied, finally use ''value3'' if no condition is satisfied. Condition can be either explicit - in [wikitr:/Help/Action/Search JOSM search] syntax - or implicit:  The value is used when all tags referenced inside exist.
     262* `!{search_expression 'template'}` - search_expression is evaluated and first matching primitive is used as context for template. Useful for example to get tags of parent relation.
     263* `\` - use a backslash to escape special characters '{', '}', '?', '!'.  E.g. `What is this\? It is a {type}\!`.
     264\\
     265
     266====== Available values ======
     267For formatting of OSM primitives, the value of any tag can be used. Use the tag `{special:everything}` to display all available tags, eg. on your gpx waypoints.
     268
     269You can also use these virtual tags:
     270- `{special:everything}` prints all available values, available for formatting of both primitives and waypoints.
     271- `{special:id}` prints the ID of the osm primitive.
     272- `{special:localName}` prints the localized name, that is the value of `name:lang` for your language if it is available, or the value of `name` if it is not.
     273\\
    202274
    203275=== Deprecated Attributes ===
     
    205277
    206278 delete_if_empty="true"::
    207   was removed in [5155]. You can simply remove this attribute if still used in your preset.
     279   was removed in r5155. You can simply remove this attribute if still used in your preset.
    208280 required="true"::
    209   replaced by `match` since [5155]
     281   replaced by `match=""` since r5155
     282\\
    210283
    211284== Übersetzung ==
    212 Um Übersetzungen zu unterstützen, können alle textlichen Elemente ("name", "text", "display_values") auch übersetzt werden. (Z.B. "de.name" würde den deutschen Name darstellen, wenn die deutsche Sprache in JOSM ausgewählt ist.)
    213 
    214 JOSM-intern ([source:josm/trunk/resources/data/defaultpresets.xml intere Objektvorlage]) werden alle "name", "text" und "display_values" übersetzt, wenn keine spezielle Übersetzung in der XML-Datei angegeben ist. Wenn kein "display_values" angegeben ist, wird "values" als "display_values" behandelt und stattdessen übersetzt. Wenn Übersetzungen von gleichen Wörtern aber mit verschiedener Bedeutung kollidieren könnten, sollte ein Übersetzungs-Zusammenhang angegeben werden. Nutze "name_context", "text_context" oder "values_context" dafür. Der Zusammenhang ("..._context") sollte eine aussagekräftige kurze Beschreibung sein, um Übersetzern zu helfen. Die Übersetzung für die interne Objektvorlage wird auf [https://translations.launchpad.net/josm/trunk Launchpad] durchgeführt (und wird künftig möglicherweise zu einem anderen Service wechseln, da das Launchpad Webinterface oft timeout-Fehler produziert, siehe #8645).
     285Um Übersetzungen zu unterstützen, können alle textlichen Elemente (`name=""`, `text=""` and `display_values=""`) auch übersetzt werden. (Z.B. "de.name" würde den deutschen Namen darstellen, wenn die deutsche Sprache in JOSM ausgewählt ist.) Im XML-Code der Objektvorlage muss der englische Begriff an erster Stelle stehen, bevor mögliche Übersetzungen hinzugefügt werden können.
     286
     287== Interne Vorlagen ==
     288
     289Die Übersetzung für die interne Voreinstellung erfolgt auf [https://translations.launchpad.net/josm/trunk Launchpad].
     290
     291In der [source:josm/trunk/resources/data/defaultpresets.xml internen Vorlage] werden alle `name=""`, `text=""` und `display_values=""` über den oben genannten Dienst übersetzt, solange keine spezifische Übersetzung in der XML-Datei angegeben wurde. Wenn keine `display_values=""` angegeben werden, dann wird `values=""` als `display_values=""` behandelt und stattdessen übersetzt.
     292
     293Wenn ein und dasselbe englische Wort in verschiedenen Kontexten unterschiedliche Übersetzungen hat, muss der spezifische Übersetzungskontext angegeben werden. Zu diesem Zweck wird `name_context=""`, `text_context=""` oder `values_context=""` verwendet. Der Kontext sollte eine aussagekräftige Kurzbeschreibung sein, um den Übersetzern zu helfen.
    215294
    216295== Benutzung von Symbolen ==
    217 Siehe [wiki:De:Styles#Iconhandling Styles].
     296Siehe [wikitr:/Styles#Iconhandling Stile].
    218297
    219298== Ähnliche Seiten ==
    220 * [wiki:De:Presets JOSM Objektvorlagen]
    221 * [wiki:Help/Menu/Presets Preset Menü (en)]
    222 * [wiki:Help/Preferences/Map#TaggingPresets Objektvorlageneinstellungen (en)]
     299* [wikitr:/Help/Menu/Presets Vorlagenmenü]