Changes between Version 26 and Version 27 of TaggingPresets


Ignore:
Timestamp:
2010-09-10T18:01:00+02:00 (15 years ago)
Author:
stoecker
Comment:

Updated

Legend:

Unmodified
Added
Removed
Modified
  • TaggingPresets

    v26 v27  
    1919And this is the code that created the example :
    2020{{{
    21 <presets>
     21<presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0">
    2222  <item name="Highway">
    2323    <label text="Inserting a highway in UK" />
     
    3838== XML Format description ==
    3939
    40 The tagging preset description is in a very simple XML format. The format is not validated.
     40The tagging preset description is in a very simple XML format.
    4141
    4242=== Tags ===
    4343The following tags are used:
    4444 '''<presets>'''::
    45    Has to be the main tag of the file. No Attributes are recognized.
     45   Has to be the main tag of the file. Supports following attributes
     46   * '''xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"'''
     47   * '''author''' - the name of the author
     48   * '''version''' - a version of the file
     49   * '''description''' (i18n) - description what the file contains
     50   * '''shortdescription''' (i18n) - short overview description
     51   * '''link''' (i18n) - web link to further details
    4652 '''<group>'''::
    4753   Used to group items in sub menus. ''name'' is required, ''icon'' is optional attribute.
     
    6975   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
    7076   ''value'' attribute is ommited, the key is removed.
    71  '''
    7277
    7378=== Attributes ===
     
    7580 '''name="a_name"'''::
    7681   Specify a name for an item. This name will be used in the GUI to display the tagging preset.
     82 '''name_context="context"'''::
     83   Translation context for name attribute to separate equals words with different meaning (not required for in-file translations).
    7784 '''type="data_type"'''::
    7885   When specified, only objects of the given type will be changed at all by this tagging preset. Can be "node", "relation", "way" or any comma separated combination of them.
     
    8390 '''text="Any text"'''::
    8491   The description, that will be displayed before (after in case of <check>) the gui element.
     92 '''text_context="context"'''::
     93   Translation context for text attribute to separate equals words with different meaning (not required for in-file translations).
    8594 '''default="default_value"'''::
    8695   The default value for the item. If not specified, the current value of the key is chosen as default (if applicable).
     
    8998 '''values="entry1,entry2,entry3"'''::
    9099   A comma separated list of entries (for the combo box). It is not possible to specify an entry that contain a comma.
     100 '''values_context="context"'''::
     101   Translation context for name attribute to separate equals words with different meaning (not required for in-file translations).
    91102 '''display_values="Entry1,Entry2,Entry3"'''::
    92103   A comma separated list of entries that is displayed to the user. Must be the same number of entries as values and '''readonly''' must be true or not specified.