Changes between Version 3 and Version 4 of Ru:TaggingPresets
- Timestamp:
- 2016-11-20T07:21:46+01:00 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ru:TaggingPresets
v3 v4 2 2 ''Если вы хотите использовать заготовки тегов или необходима ссылка на заготовку, смотрите [wiki:Presets Presets]''[[br]] 3 3 ''If you want to add the preset to the list of available presets see [[Extend JOSM#Custompresetsandpublication]]'' 4 [[TranslatedPages(revision=1,outdated=Перевод неполный)]] 4 [[TranslatedPages(revision=1,outdated=Перевод неполный и требует корректировки)]] 5 5 [[PageOutline(2-10,Table of Contents)]] 6 6 = Заготовки тегов = … … 110 110 Используется, чтобы вставить ранее определённый шаблон. Атрибут `ref` обязателен. 111 111 [[BR]] 112 === Attributes===113 Атрибуты тегов имеют следующие значения: :112 === Атрибуты === 113 Атрибуты тегов имеют следующие значения: 114 114 name="a_name":: 115 Specify a name for an item. This name will be used in the GUI to display the tagging preset.115 Указывается имя для элемента. Это имя будет использоваться в графическом интерфейсе для отображения заготовки тегов. 116 116 name_context="context":: 117 Translation context for name attribute to separate equals words with different meaning(not required for in-file translations).117 Пояснение имени атрибута для разделения одинаковых или похожих слов с различным значением (не требуется для переводов в-файле) (not required for in-file translations). 118 118 type="data_type":: 119 119 When specified, only objects of the given type will work with this tagging preset. Can be "node", "way", "closedway", "multipolygon", "relation" or any comma separated combination of them. Note that "multipolygon" is not included in "relation", so if the preset should apply for multipolygons and other relation types, you need to specify both: "multipolygon,relation". Also used in the <role> tag to specify which object types are allowed for a specific relation member. … … 121 121 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. Icons can also be used in <item>, <label> and <list_entry>. The icon should be quadratic in size. See [[Styles#Iconhandling]] how icons can be specified. 122 122 icon_size="a number":: 123 The maximal size of an icon in px. If no value is given, default is 16 for <label> and the default icon size for<list_entry /> (in<combo>and<multiselect>).123 Максимальный размер иконки в пикселях px. Если значение не задано, то используется значение по умолчанию 16px для <list_entry /> (в <combo> и <multiselect>). 124 124 key="some_key":: 125 This specifies the property key that will be modified by theitem.In case of<role>it is the role name used in a relation.125 Определяет свойство ключа, который будет изменен с помощью item. В случае <role> это имя роли используется в отношении. 126 126 text="Any text":: 127 The description, that will be displayed before (after in case of<check>)the gui element. Also used for<label>and<optional>.127 Описание, которое будет отображаться перед (после case в <check>) в графическом интерфейсе пользователя. Также используется для <label> и <optional>. 128 128 text_context="context":: 129 Translationcontextfor text attribute to separate equals words with different meaning (not required for in-file translations).129 Локализация пояснений ("context") для текстовых атрибутов. 130 130 default="default_value":: 131 The default value for the item. If not specified, the current value of the key is chosen as default (if applicable). In case of <check> whether the checkbox is ticked on or off by default (default is "off"). In case of<text>, <combo>and<multiselct>defaults to"".131 Значение по умолчанию для данного элемента. Если не указано, то текущее значение ключа выбирается по умолчанию (если это применимо). При использовании в <check> - установлен ли флажок или нет по умолчанию (по умолчанию "off"). При использовании в <text>, <combo> и <multiselct> по умолчанию "". 132 132 values="entry1,entry2,entry3":: 133 A list of entries (for the<combo>box and<multiselect>).The list has to be separated by commas (for the combo box) or by the specified delimiter (for the multiselect). If a value contains the delimiter, the delimiter may be escaped with a backslash. If a value contains a backslash, it must also be escaped with a backslash.133 Список значений для <combo> и <multiselect>). Значения должны быть разделены запятыми (для поля со списком) или указанным разделителем (для множественного выбора). If a value contains the delimiter, the delimiter may be escaped with a backslash. If a value contains a backslash, it must also be escaped with a backslash. 134 134 values_from="JAVA code":: 135 135 To use instead of "values" if the list of values has to be obtained with a Java method of this form: public static String[] getValues(); The value must be: "full.package.name.ClassName#methodName". 136 136 values_no_i18n="true|false":: 137 Disables internationalisation for value to avoid mistakes, see#11696.Default is"false".Used in<combo>and<multiselect>. (Useful e.g. for opening hours or brand names.)137 Отключит локализацию для значения, чтобы избежать ошибок. См. #11696. По умолчанию "false". Используется в <combo> и <multiselect>. ((Полезно, например, для часов работы или названия торговых марок..) 138 138 values_sort="false":: 139 Values of<combo>and<multiselect>are sorted alphabetic in every language. With this attribute you can disable the alphabetic sorting if the values should keep the given order, see#5509and#11926. (In the JOSM internal preset this is used for the keys "smoothness" and "trail_visibility".) Default is "true". Users can globaly disable sorting withthe preference key `taggingpreset.sortvalues`.139 Значения в <combo> и <multiselect> сортируются по алфавиту на всех языках. С помощью этого атрибута вы можете отключить алфавитную сортировку, если значения должны перечисляться в заданном порядке. См #5509 и #11926. (В JOSM согласно внутренним настройкам по умолчанию для "smoothness" и "trail_visibility".) По умолчанию "true". Пользователи могут глобально отключить сортировку с the preference key `taggingpreset.sortvalues`. 140 140 values_context="context":: 141 141 Translation context for values attribute to separate equals words with different meaning (not required for in-file translations). 142 142 display_values="Entry1,Entry2,Entry3":: 143 A list of entries that is displayed to the user. Must be the same number and order of entries as `values` and`editable`must be false or not specified. For the delimiter character and escaping, see the remarks at `values`. Used in<combo>and<multiselect>.143 Список значений отображаемых пользователю. Должно быть одинаковое количество и порядок записей в качестве `values` и `editable` должно быть false или не указано. Для символа разделителя используется тот же символ что и для `values`. Используется в <combo> и <multiselect>. 144 144 value="foobar":: 145 145 Specify a value to be entered in the <key> tag. … … 151 151 Whether the off value of a <check> is disabled in the dialog, i.e., only unset or yes are provided. 152 152 editable="false":: 153 Thecombo boxis readonly, which means that the user can only select an item in the list. Default is "true", which means, the user can add other values as text.153 Отключает возможность ввести произвольный текст в качестве значение тега в combo box. Default is "true", which means, the user can add other values as text. 154 154 use_last_as_default="true|false|force":: 155 For<combo>, <multiselect>or<text>fields the last value is used as default. Using"force"enforces this behaviour also for already tagged objects. Default is"false".155 Для <combo>, <multiselect> или <text> последние значения используются по умолчанию. С помощью "force" усиливает такое поведение также для уже обозначенных на карте объектов. По умолчанию это "false". 156 156 rows="count":: 157 Specify the number of rows to display in<multiselect>entry (if not set, it is auto determined by java or the look and feel and results in e.g. 8).157 Определяет максимальное количество строк для отображения записей в <multiselect> (если не обозначено, то автоматически определяется Java). 158 158 name_template="template", name_template_filter="search expression":: 159 159 Custom name formatter for osm primitives matching this preset. Смотрите ниже [[#name_templatedetails]] for details. … … 168 168 Note that for a match, at least one positive and no negative необходимо. Default is "keyvalue!" for <key> and "none" for <text>, <combo>, <multiselect> and <check>. 169 169 id="unique_identifier":: 170 the unique identifier for this chunk170 Уникальный идентификатор для chunck 171 171 ref="unique_identifier":: 172 the unique identifier of the (already defined) template to include172 Уникальный идентификатор (должен быть заранее определен) для включаемого шаблона 173 173 columns="a number":: 174 the number of columns of grouped checks174 Количество столбцов для групировки флажков 175 175 requisite="optional|required":: 176 If a relation member is optional or required. Default is"optional".176 Если член отношения необязателен или не требуется. По умолчанию "optional". 177 177 count="a number":: 178 178 How often can a role occur (if not given unlimited number is assumed) … … 180 180 an expression (cf. search dialog) for objects of this role 181 181 preset_name="exact_name":: 182 The exact name of the preset to link to.182 Точное название для заготовки в ссылке. 183 183 preset_name_label="false|true":: 184 Whether to insert "[preset name]" label in dialog (defaults to"false"for backward-compatibility on external presets).184 Whether to insert "[preset name]" метка в диалоговом окне (по умолчанию "false" для обеспечения обратной совместимости с внешними заготовками). 185 185 length="a number":: 186 The length of a<text>or<combo> box (numberof characters allowed).186 Длинна ячеки для <text> или <combo> box (number - количество символов). 187 187 alternative_autocomplete_keys="some_key(s)":: 188 A comma separated list of alternative keys to use for autocompletion of<text>.188 Разделенный запятыми список альтернативных ключей используемых для автоприращения <text>. 189 189 auto_increment="-2,-1,+1,+2":: 190 May contain a comma separated list of integer increments or decrements, e.g."-2,-1,+1,+2".A button will be shown next to the<text>field for each value, allowing the user to select auto-increment with the given stepping. Auto-increment only happens if the user selects it. There is also a button to deselect auto-increment. Default is no auto-increment. Mutually exclusive with`use_last_as_default`.190 Отображаемые значения для автоприращения разделенных запятыми с целым шагом или дискретно, например "-2,-1,+1,+2". Кнопка будет отображаться рядом с <text> полем для каждого значения. Существует также кнопка для отмены автоприращения. По умолчанию автоприращение отключено. Взаимоисключаемо с `use_last_as_default`. 191 191 delimiter="special character":: 192 The character that separates values. In case of<combo>the default is comma. In case of <multiselect> the default is semicolon and this will also be used to separate selected values in the tag. More information see <multiselect>.192 Символ для разделения значений ключа. В <combo> по умолчанию запятая. In case of <multiselect> the default is semicolon and this will also be used to separate selected values in the tag. More information see <multiselect>. 193 193 short_descriptions=""Entry1,Entry2,Entry3":: 194 A delimiter-separated list of texts to be displayed ниже each`display_value`. (Only if it is not possible to describe the entry in 2-3 words.) Instead of comma separated list instead using values, display_values and short_descriptions, the following form is also supported: <list_entry value="" display_value="" short_description="" icon="" icon_size="" />194 Список разделенных текстов, которые будут отображаться под каждым `display_value`. (Только если нет возможности описать значение ключа в два-три слова.) Instead of comma separated list instead using values, display_values and short_descriptions, the following form is also supported: <list_entry value="" display_value="" short_description="" icon="" icon_size="" /> 195 195 values_searchable="true|false":: 196 196 Whether to search in <combo> or <multiselect> (display_)values when searching for presets. 197 197 198 ===== name_template details=====198 ===== name_template детали ===== 199 199 200 200 **Name templates can be used to define custom formatting for OSM primitives or GPX waypoints** (для примера в Отношениях или the Selection). … … 211 211 }}} 212 212 213 ''' Samples'''213 '''Примеры''' 214 214 ||= Template =||= Tags =||= Result =|| 215 215 || `House number {addr:housenumber}` || `addr:housenumber=10` || House number 10 … … 221 221 || || `admin_level=2 name=Czech republic` (no parents) || 2 - Czech republic 222 222 223 ====== Syntax======224 * `{var}` - use value of variablevar225 * `?{condition1 'value1' | condition2 'value2 | 'value3'}` - use value1 if condition1 is satisfied, value3 is no condition is satisfied. Condition can be either explicit- the same expression as in search or filters is used -or implicit; the value is used when all variables used inside exist226 * `!{search_expression 'template'}` - search_expression is evaluated and first matching primitive is used as context for template. Useful for example to get tags of parent relation.227 228 ====== Available values======229 For formatting of OSM primitives , the value of any tag can be used. You can use`{special:everything}`to see what values are available for your gpx waypoints.230 231 Some additional variables are available via the special prefix:223 ====== Синтаксис ====== 224 * `{var}` - использование значениея переменной var 225 * `?{condition1 'value1' | condition2 'value2 | 'value3'}` - использовать значение1, если условие1 выполнено, value3 is no condition is satisfied. Состояние может быть либо явным - the same expression as in search or filters is used - или неявным; значение используется, когда все переменные, используемые внутри существуют 226 * `!{search_expression 'template'}` - search_expression is evaluated and first matching primitive is used as context for template. Полезно, например, чтобы получить теги родительского отношения. 227 228 ====== Доступные значения ====== 229 Для форматирования OSM примитивов , может быть использовано значение любого тега. Вы можете использовать `{special:everything}`, чтобы увидеть какие значения доступны для GPX путевых точек.. 230 231 Некоторые дополнительные переменные доступны через специальный префикс: 232 232 - `{special:everything}` prints all available values, available for formatting of both primitives and waypoints. 233 233 - `{special:id}` prints the ID of an osm primitive 234 234 - `{special:localName}` prints the localized name, that is the value of name:lang for your language if it is available or the value of the name tag if it doesn't. 235 235 236 === Deprecated Attributes===237 The following attributes are deprecated and no longer supported byJOSM:236 === Устаревшие атрибуты === 237 Следующие атрибуты являются устаревшими и больше не поддерживаются в JOSM: 238 238 239 239 delete_if_empty="true":: 240 was removed in[5155].You can simply remove this attribute if still used in your preset.240 Был удалён в [5155]. Вы можете просто удалить этот атрибут, если он до сих пор используется в вашей заготовке. 241 241 required="true":: 242 replaced by`match`since[5155]243 244 == Translation==245 To support translations, all textual elements("name", "text", "display_values")may also be localized. (E.g. "de.name" would represent the name in case German language support is loaded.)242 Заменён атрибутом `match` с [5155] 243 244 == Перевод == 245 Для поддержки переводов, все текстовые элементы ("name", "text", "display_values") также могут быть локализованы. (Т.е. "ru.name" будет загружаться в случае выбора русского языка в интерфейсе программы.) 246 246 247 247 In JOSM internally ([source:josm/trunk/data/defaultpresets.xml internal preset]) all "name", "text" and "display_values" are translated when no specific translation has been given in XML file. When no "display_values" are supplied, then "values" will be treated as "display_values" and translated instead. When translations of equal words but different meanings may conflict, a translation context should be specified. Use "name_context", "text_context" or "values_context" for this. The context should be a meaningful short description to help translators.
