Changes between Version 77 and Version 78 of TaggingPresets


Ignore:
Timestamp:
2014-10-30T14:34:29+01:00 (11 years ago)
Author:
Klumbumbus
Comment:

joined "role" and "roles"

Legend:

Unmodified
Added
Removed
Modified
  • TaggingPresets

    v77 v78  
    7777 '''<checkgroup>'''::
    7878   To group checks. The ''columns'' attribute is required.
     79 '''<roles>'''::
     80   This is required around <role> and adds the heading ("Availible roles role count elements") to the table which is generated by several <role>.
     81 '''<role>'''::
     82   To specify possible roles of members in relations. The ''key'' attribute is required, ''text'', ''requisite'', ''count'', ''type'' and ''member_expression'' are optional.
    7983==== Set a fixed key value pair ====
    8084 '''<key>'''::
     
    104108   Translation context for name attribute to separate equals words with different meaning (not required for in-file translations).
    105109 '''type="data_type"'''::
    106    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.
     110   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.
    107111 '''icon="iconname"'''::
    108112   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. The icon should be quadratic in size. See [[Styles#Iconhandling]] how icons can be specified.
    109113 '''key="some_key"'''::
    110    This specifies the property key that will be modified by the item.
     114   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.
    111115 '''text="Any text"'''::
    112116   The description, that will be displayed before (after in case of <check>) the gui element.
     
    149153 '''columns="a number"'''::
    150154   the number of columns of grouped checks
     155 '''requisite="optional|required"'''::
     156   If a relation member is optional or required. Default is "optional".
     157 '''count="a number"'''::
     158   How often can a role occur (if not given unlimited number is assumed)
     159 '''member_expression="an expression"'''::
     160   an expression (cf. search dialog) for objects of this role
    151161
    152162To support translations, all textual elements may be used in translated form. E.g. "de.name" would represent the name in case German language support is loaded.
     
    246256  disable_off: whether the off value is disabled in the dialog, i.e., only unset or yes are provided
    247257
    248 role: type to specify possible roles in relations
    249   key: the role name used in relation
    250   text: fixed label to display
    251   requisite: optional/required (default is "optional")
    252   count: how often can the role occur (if not given unlimited number is assumed)
    253   type: the data types - way,node,relation,closedway (separated by comma)
    254   member_expression: an expression (cf. search dialog) for objects of this role
    255 
    256258The fields "name", "text", "display_values" may also be localized (e.g. de.name).
    257259When translations of equal words but different meanings may conflict, a translation