Changes between Version 61 and Version 62 of TaggingPresets


Ignore:
Timestamp:
2014-10-29T15:02:16+01:00 (11 years ago)
Author:
Klumbumbus
Comment:

layout

Legend:

Unmodified
Added
Removed
Modified
  • TaggingPresets

    v61 v62  
    11[[TranslatedPages(outdated=The preset syntax has changed and the copy from XML files needs to be joined with normal description)]]
     2[[PageOutline(2-10,Table of Contents)]]
    23= Tagging Presets =
    34JOSM supports distributed tagging presets. This is a XML config file that describes a GUI for entering tags (or properties, annotations, sometimes called map features). The XML files can be placed anywhere in the web or at the users local file system. Presets can be added by the users at a central page [wiki:Presets].
     
    5051
    5152=== Tags ===
    52 The document prolog:
     53==== The document prolog ====
    5354 '''<presets>'''::
    5455   Has to be the main tag of the file. Supports following attributes
     
    6061   * '''link''' (i18n) - web link to further details
    6162   * '''icon''' - informational icon for the preset
    62 Comments:
     63==== Comments ====
    6364 '''<!-- this is an example comment -->'''::
    6465  The document can contain embedded comments.
    65 Menu creation:
     66==== Menu creation ====
    6667 '''<group>'''::
    6768   Used to group items in sub menus. ''name'' is required, ''icon'' is optional attribute.
     
    7071 '''<separator/>'''::
    7172   Insert a line separator into the menu.
    72 Create instructions for the user:
     73==== Create instructions for the user ====
    7374 '''<label>'''::
    7475   Labels are static texts for display. ''text'' is a required attribute.
     
    7980 '''<link>'''::
    8081   Specify a web link for this feature or to anything else of use. The ''href'' attribute is required.
    81 Attribute entry and selection dialog boxes:
     82==== Attribute entry and selection dialog boxes ====
    8283 '''<text>'''::
    8384   A text edit field to enter any arbitrary string from the user. ''key'' is mandatory, ''text'', ''default'', ''match'' and ''required'' is optional
     
    9091 '''<check>'''::
    9192   A checkbox which the user can only select or deselect. The ''key'' attribute is mandatory. ''text'', ''default'', ''match'' and ''required'' is optional.
    92 Set a key value pair:
     93==== Set a key value pair ====
    9394 '''<key>'''::
    9495   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. ''match'' is optional.
    95 Templates
     96==== Templates ====
    9697 '''<chunk>'''::
    9798   A template of elements for later (repeated) use. The ''id'' attribute is mandatory.