Changes between Version 16 and Version 17 of De:TaggingPresets


Ignore:
Timestamp:
2014-11-13T23:22:19+01:00 (11 years ago)
Author:
Klumbumbus
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • De:TaggingPresets

    v16 v17  
    1 [[TranslatedPages(revision=104,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.)]]
    22[[PageOutline(2-10,Inhaltsverzeichnis)]]
    33= Objektvorlagen =
     
    6161==== Menu creation ====
    6262 <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.
    6464 <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.
    6666 <separator/>::
    6767  Insert a line separator into the menu.
     
    6969==== Preset window layout ====
    7070 <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.
    7272 <space />::
    7373  Add some space (ie a newline).
    7474 <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 />
    7676 <item_separator />::
    7777  Add a horizontal separator line between items.
    7878 <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.
    8080 <checkgroup>::
    81   To group checks. The ''columns'' attribute is required.
     81  To group checks. The `columns` attribute is required.
    8282 <roles>::
    8383  This is required around <role> and adds the heading ("Availible roles role count elements") to the table which is generated by several <role>.
    8484 <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.
    8686 <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.
    8888[[BR]]
    8989==== Set a fixed key value pair ====
    9090 <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.
    9292[[BR]]
    9393==== Attribute entry and selection dialog boxes ====
    9494 <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 optional
     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 optional
    9696 <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.\\
    9898  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.
    9999 <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.
    101101 <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`.
    103103 <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.
    105105[[BR]]
    106106==== Templates ====
    107107 <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.
    109109 <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.
    111111[[BR]]
    112112=== Attributes ===
     
    137137  Translation context for name attribute to separate equals words with different meaning (not required for in-file translations).
    138138 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>.
    140140 value="foobar"::
    141141  Specify a value to be entered in the <key> tag.
     
    152152 rows="count"::
    153153  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"::
    155155  Custom name formatter for osm primitives matching this preset. See [[NameTemplate]] for details.
    156156 match="none|key|key!|keyvalue|keyvalue!"::
     
    169169 columns="a number"::
    170170  the number of columns of grouped checks
    171  requisite="optional|required"'''::
     171 requisite="optional|required"::
    172172  If a relation member is optional or required. Default is "optional".
    173173 count="a number"::
    174174  How often can a role occur (if not given unlimited number is assumed)
    175  member_expression="an expression"'''::
     175 member_expression="an expression"::
    176176  an expression (cf. search dialog) for objects of this role
    177177 preset_name="exact_name"::
     
    181181 length="a number"::
    182182  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)"::
    184184  A comma separated list of alternative keys to use for autocompletion of <text>.
    185185 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`.
    187187 delimiter="special character"::
    188188  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>.
    189189 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="" />
    191191 values_searchable="true|false"::
    192192  Whether to search in <combo> or <multiselect> (display_)values when searching for presets.