Changes between Version 5 and Version 6 of De:TaggingPresets
- Timestamp:
- 2014-10-29T01:38:41+01:00 (11 years ago)
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)]] 2 2 = Objektvorlagen = 3 3 … … 43 43 Im Kommentarbereich von **[source:trunk/data/defaultpresets.xml defaultpresets.xml]** steht die **gültige Formatbeschreibung**. 44 44 45 Das 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 45 47 ---- 46 48 … … 57 59 * '''shortdescription''' (i18n) - short overview description 58 60 * '''link''' (i18n) - web link to further details 61 * '''icon''' - informational icon for the preset 59 62 Comments: 60 63 '''<!-- this is an example comment -->''':: … … 72 75 '''<optional>''':: 73 76 Used to group some optional elements of an item. Possibly equivalent to <label text="Optional Attributes:"/> 74 '''<space/>''':: 77 '''<space />''':: 75 78 Add some space (ie a newline) in the preset display. Possibly equivalent to <label text=" "/> 76 79 '''<link>''':: … … 128 131 '''rows="count"''':: 129 132 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>. 130 143 131 144 To 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. 132 145 133 146 === 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). 147 Siehe [wiki:De:Styles#Iconhandling Styles]. 142 148 143 149 == Ähnliche Seiten ==
