Changes between Version 182 and Version 183 of TaggingPresets


Ignore:
Timestamp:
2021-05-04T22:31:40+02:00 (5 years ago)
Author:
skyper
Comment:

add "match_expression" to item; wording

Legend:

Unmodified
Added
Removed
Modified
  • TaggingPresets

    v182 v183  
    7070  Used to group items in sub menus. `name` is required, `icon` is optional attribute.
    7171 <item>::
    72   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.
     72  Every item is one annotation set to select from. `name` is required, `type` and `preset_name_label` are recommended, `icon`, `name_template` and `match_expression` are optional attributes.
    7373 <separator />::
    7474  Insert a line separator into the menu.
     
    185185  * `keyvalue!`: positive if key and value matches, negative otherwise \\
    186186 **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 />`.
    187  match_expression=""::
    188   Additional criteria for matching primitives. Specified in [wikitr:/Help/Action/Search JOSM search] syntax. ''(since r17662)'' \\
     187 match_expression="an expression"::
     188  additional criteria for matching primitives, specified in [wikitr:/Help/Action/Search JOSM search] syntax. ''(since r17662)'' \\
    189189  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.
    190190 id="unique_identifier"::
     
    199199  How often can a role occur (if not given unlimited number is assumed)
    200200 member_expression="an expression"::
    201   an expression (cf. search dialog) for objects of this role
     201  an expression, in [wikitr:/Help/Action/Search JOSM search] syntax, for objects of this role
    202202 regexp="true"::
    203203  set to `"true"` if the key of a role is a regular expression. 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`,...