Changes between Version 5 and Version 6 of De:TaggingPresets


Ignore:
Timestamp:
2014-10-29T01:38:41+01:00 (7 years ago)
Author:
Klumbumbus
Comment:

update

Legend:

Unmodified
Added
Removed
Modified
  • De:TaggingPresets

    v5 v6  
    1 [[TranslatedPages(revision=48,outdated=Die Syntax der Objektvorlagen wurde geändert - deshalb benötigt diese Seite eine Bearbeitung\, partielle Übersetzung)]]
     1[[TranslatedPages(revision=54,outdated=Die Syntax der Objektvorlagen wurde geändert - deshalb benötigt diese Seite eine Bearbeitung\, partielle Übersetzung)]]
    22= Objektvorlagen =
    33
     
    4343Im Kommentarbereich von **[source:trunk/data/defaultpresets.xml defaultpresets.xml]** steht die **gültige Formatbeschreibung**.
    4444
     45Das 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.
     46
    4547----
    4648
     
    5759   * '''shortdescription''' (i18n) - short overview description
    5860   * '''link''' (i18n) - web link to further details
     61   * '''icon''' - informational icon for the preset
    5962Comments:
    6063 '''<!-- this is an example comment -->'''::
     
    7275 '''<optional>'''::
    7376   Used to group some optional elements of an item. Possibly equivalent to <label text="Optional Attributes:"/>
    74  '''<space/>'''::
     77 '''<space />'''::
    7578   Add some space (ie a newline) in the preset display. Possibly equivalent to <label text=" "/>
    7679 '''<link>'''::
     
    128131 '''rows="count"'''::
    129132   Specify the number of rows in multiselect entry.
     133 '''name_template="template", name_template_filter="search expression"'''::
     134   Custom name formatter for osm primitives matching this preset. See [[NameTemplate]] for details.
     135 '''match="none|key|key!|keyvalue|keyvalue!"'''::
     136    Allows to change the matching process, i.e., determining whether the tags of an OSM object fit into this preset.
     137    * none: neutral, i.e., do not consider this item for matching
     138    * key: positive if key matches, neutral otherwise
     139    * key!: positive if key matches, negative otherwise
     140    * keyvalue: positive if key and value matches, neutral otherwise
     141    * keyvalue!: positive if key and value matches, negative otherwise
     142   Note that 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>.
    130143
    131144To 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.
    132145
    133146=== Benutzung von Symbolen ===
    134 There are 3 different ways to source icons:
    135 
    136  * Icons distributed with JOSM can be entered directly with the path (relative to JOSM's internal image directory). Hunt through [source:trunk/data/defaultpresets.xml this page] for the names of existing icons.
    137  * New icons can be directly referenced using a http-link. These are downloaded and cached internally.
    138  * Since JOSM version 2289 Zip-Files are supported.
    139   * The zip file must contain at least one file with extension xml.
    140   * Icon names and path are relative to the topmost zip directory.
    141   * If there are multiple XML files, a file with "preset" in the name is preferred (to allow packaging styles and presets in one archive).
     147Siehe [wiki:De:Styles#Iconhandling Styles].
    142148
    143149== Ähnliche Seiten ==