Changes between Version 16 and Version 17 of De:TaggingPresets
- Timestamp:
- 2014-11-13T23:22:19+01:00 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
De:TaggingPresets
v16 v17 1 [[TranslatedPages(revision=10 4,outdated=Die Abschnitte 'XML Format Beschreibung' und 'Übersetzung' müssen noch übersetzt werden. Außerdem sollte das Beispiel geändert werden weil es für OSM ungewöhnliche Schlüssel-Wert-Kombinationen nutzt und Straßen normalerweise NICHT Einbahnstraßen sind.)]]1 [[TranslatedPages(revision=106,outdated=Die Abschnitte 'XML Format Beschreibung' und 'Übersetzung' müssen noch übersetzt werden. Außerdem sollte das Beispiel geändert werden weil es für OSM ungewöhnliche Schlüssel-Wert-Kombinationen nutzt und Straßen normalerweise NICHT Einbahnstraßen sind.)]] 2 2 [[PageOutline(2-10,Inhaltsverzeichnis)]] 3 3 = Objektvorlagen = … … 61 61 ==== Menu creation ==== 62 62 <group>:: 63 Used to group items in sub menus. ''name''is required,''icon''is optional attribute.63 Used to group items in sub menus. `name` is required, `icon` is optional attribute. 64 64 <item>:: 65 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.65 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. 66 66 <separator/>:: 67 67 Insert a line separator into the menu. … … 69 69 ==== Preset window layout ==== 70 70 <label>:: 71 Labels are static texts for display. ''text''is a required attribute,''icon'' and ''icon_size''are optional.71 Labels are static texts for display. `text` is a required attribute, `icon` and `icon_size` are optional. 72 72 <space />:: 73 73 Add some space (ie a newline). 74 74 <optional>:: 75 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 />75 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 /> 76 76 <item_separator />:: 77 77 Add a horizontal separator line between items. 78 78 <link>:: 79 Specify a web link for this feature or to anything else of use. The ''href''attribute is required.79 Specify a web link for this feature or to anything else of use. The `href` attribute is required. 80 80 <checkgroup>:: 81 To group checks. The ''columns''attribute is required.81 To group checks. The `columns` attribute is required. 82 82 <roles>:: 83 83 This is required around <role> and adds the heading ("Availible roles role count elements") to the table which is generated by several <role>. 84 84 <role>:: 85 To specify possible roles of members in relations. The ''key''attribute is required,''text'', ''requisite'', ''count'', ''type'' and ''member_expression''are optional.85 To specify possible roles of members in relations. The `key` attribute is required, `text`, `requisite`, `count`, `type` and `member_expression` are optional. 86 86 <preset_link>:: 87 Adds a link to an other preset. The ''preset_name''attribute is required.87 Adds a link to an other preset. The `preset_name` attribute is required. 88 88 [[BR]] 89 89 ==== Set a fixed key value pair ==== 90 90 <key>:: 91 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.91 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. 92 92 [[BR]] 93 93 ==== Attribute entry and selection dialog boxes ==== 94 94 <text>:: 95 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 optional95 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 96 96 <combo>:: 97 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'' and ''match''is optional.\\97 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` and `match` is optional.\\ 98 98 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. 99 99 <multiselect>:: 100 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'' 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.100 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` 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. 101 101 <list_entry>:: 102 Used in <combo> and <multiselect>. More information see ''short_descriptions''. The attributes are''value'', ''display_value'', ''short_description'', ''icon'' and ''icon_size''.102 Used in <combo> and <multiselect>. More information see `short_descriptions`. The attributes are `value`, `display_value`, `short_description`, `icon` and `icon_size`. 103 103 <check>:: 104 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.104 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. 105 105 [[BR]] 106 106 ==== Templates ==== 107 107 <chunk>:: 108 To define a template of elements for later (repeated) use. The ''id''attribute is mandatory.108 To define a template of elements for later (repeated) use. The `id` attribute is mandatory. 109 109 <reference>:: 110 To include an earlier defined template. The ''ref''attribute is mandatory.110 To include an earlier defined template. The `ref` attribute is mandatory. 111 111 [[BR]] 112 112 === Attributes === … … 137 137 Translation context for name attribute to separate equals words with different meaning (not required for in-file translations). 138 138 display_values="Entry1,Entry2,Entry3":: 139 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>.139 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>. 140 140 value="foobar":: 141 141 Specify a value to be entered in the <key> tag. … … 152 152 rows="count":: 153 153 Specify the number of rows to display in <multiselect> entry (default -1). 154 name_template="template", name_template_filter="search expression" '''::154 name_template="template", name_template_filter="search expression":: 155 155 Custom name formatter for osm primitives matching this preset. See [[NameTemplate]] for details. 156 156 match="none|key|key!|keyvalue|keyvalue!":: … … 169 169 columns="a number":: 170 170 the number of columns of grouped checks 171 requisite="optional|required" '''::171 requisite="optional|required":: 172 172 If a relation member is optional or required. Default is "optional". 173 173 count="a number":: 174 174 How often can a role occur (if not given unlimited number is assumed) 175 member_expression="an expression" '''::175 member_expression="an expression":: 176 176 an expression (cf. search dialog) for objects of this role 177 177 preset_name="exact_name":: … … 181 181 length="a number":: 182 182 The length of a <text> or <combo> box (number of characters allowed). 183 alternative_autocomplete_keys="some_key(s)" '''::183 alternative_autocomplete_keys="some_key(s)":: 184 184 A comma separated list of alternative keys to use for autocompletion of <text>. 185 185 auto_increment="-2,-1,+1,+2":: 186 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''.186 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`. 187 187 delimiter="special character":: 188 188 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>. 189 189 short_descriptions=""Entry1,Entry2,Entry3":: 190 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="" />190 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="" /> 191 191 values_searchable="true|false":: 192 192 Whether to search in <combo> or <multiselect> (display_)values when searching for presets.
