Changes between Version 8 and Version 9 of De:TaggingPresets


Ignore:
Timestamp:
2014-10-29T14:04:13+01:00 (9 years ago)
Author:
Klumbumbus
Comment:

update

Legend:

Unmodified
Added
Removed
Modified
  • De:TaggingPresets

    v8 v9  
    1 [[TranslatedPages(revision=57,outdated=Die Syntax der Objektvorlagen wurde geändert und die Kopie des XML-Dokuments muss mit der Wikidokumentation zusammengeführt werden. Weiterhin sind einige Teile noch nicht übersetzt.)]]
     1[[TranslatedPages(revision=58,outdated=Die Syntax der Objektvorlagen wurde geändert und die Kopie des XML-Dokuments muss mit der Wikidokumentation zusammengeführt werden. Wenn dies geschehen ist, müssen die Änderungen hier übernommen werden und schließlich dieser Teil noch übersetzt werden.)]]
    22= Objektvorlagen =
    33
     
    3939== Veröffentlichen einer neuen Objektvorlage – XML Format Beschreibung ==
    4040
    41 Die Beschreibung einer Objektvorlage geschieht in einem einfachen XML Format. 
    42 
    43 Im Kommentarbereich von **[source:trunk/data/defaultpresets.xml defaultpresets.xml]** steht die **gültige Formatbeschreibung**.
     41Die Beschreibung einer Objektvorlage geschieht in einem einfachen XML Format.
     42
     43Siehe **[source:trunk/data/defaultpresets.xml defaultpresets.xml]** als Beispiel, welches alle Möglichkeiten abdeckt.
    4444
    4545Das vollständige XSD Schema ist im Namensraum URI (http://josm.openstreetmap.de/tagging-preset-1.0) sowie [source:trunk/data/tagging-preset.xsd im Quellverzeichnis] verfügbar.
     
    6767   Used to group items in sub menus. ''name'' is required, ''icon'' is optional attribute.
    6868 '''<item>'''::
    69    Every item is one annotation set to select from. ''name'' is required, ''icon'' is optional attribute.
     69   Every item is one annotation set to select from. ''name'' is required, ''type'' is recommended, ''icon'' is optional attribute.
    7070 '''<separator/>'''::
    7171   Insert a line separator into the menu.
     
    7676   Used to group some optional elements of an item. Possibly equivalent to <label text="Optional Attributes:"/>
    7777 '''<space />'''::
    78    Add some space (ie a newline) in the preset display. Possibly equivalent to <label text=" "/>
     78   Add some space (ie a newline) in the preset display.
    7979 '''<link>'''::
    8080   Specify a web link for this feature or to anything else of use. The ''href'' attribute is required.
     
    104104   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.
    105105 '''icon="iconname"'''::
    106    A name of an icon that is within any classpath in the subdirectory of /images/symbols. You can load plugin-jar's to provide those images as well. 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.
     106   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.
    107107 '''key="some_key"'''::
    108108   This specifies the property key that will be modified by the item.
     
    146146=== Format description from XML document (needs to be joined with above texts) ===
    147147
     148{{{
    148149item:
    149150  name: the text to display
     
    290291 - keyvalue!: positive if key and value matches, negative otherwise
    291292Note that for a match, at least one positive and no negative is required.
     293}}}
    292294
    293295=== Benutzung von Symbolen ===