Changes between Version 165 and Version 166 of TaggingPresets
- Timestamp:
- 2020-04-12T16:27:30+02:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TaggingPresets
v165 v166 48 48 * '''xmlns="http://josm.openstreetmap.de/tagging-preset-1.0"''' 49 49 * '''author''' - the name of the author of the preset 50 * '''version''' - the version number of the file. For automatic version adjustment of presets managed in this wiki you have to use two internal variables: `[[revision]]` (the latest version number of the wiki page) and `[[date]]` (the date of the last edit), e.g. `1.[[revision]]_[[date]]`. 50 * '''version''' - the version number of the file. For automatic version adjustment of presets managed in this wiki you have to use two internal variables: `[[revision]]` (the latest version number of the wiki page) and `[[date]]` (the date of the last edit), e.g. `version="1.[[revision]]_[[date]]"`. 51 51 * '''description''' (i18n) - description what the file contains 52 52 * '''shortdescription''' (i18n) - very short overview description i.e. the "name" of the preset 53 53 * '''link''' (i18n) - web link to further details (optional) 54 54 * '''icon''' - icon for the whole preset 55 * '''baselanguage''' - when the base language is not English, specify it here (using non English preset texts preventsautomatic translation)56 57 (i18n) means the values may also be localized (e.g. de.description). 55 * '''baselanguage''' - when the base language is not English, specify it here (using non English preset texts will prevent automatic translation, once it is implemented (#11392)) 56 57 (i18n) means the values may also be localized (e.g. `de.description`). 58 58 \\ 59 59 … … 191 191 an expression (cf. search dialog) for objects of this role 192 192 regexp="true":: 193 set to `"true"` if the key of a role is a regular expression. This allows variable roles e.g. `<role key="level_-?\d+" text="Building level" regexp="true" requisite="optional" type="relation" />` allows the roles level_0 ,level_1,...193 set to `"true"` if the key of a role is a regular expression. This allows variable roles e.g. `<role key="level_-?\d+" text="Building level" regexp="true" requisite="optional" type="relation" />` allows the roles `level_0`, `level_1`,... 194 194 preset_name="exact_name":: 195 195 The exact name of the preset to link to. … … 208 208 A delimiter-separated list of texts to be displayed below each `display_value`. (Only if it is not possible to describe the entry in 2-3 words.) Instead of a comma separated list using `values`, `display_values` and `short_descriptions`, the following form is also supported: `<list_entry value="" display_value="" short_description="" icon="" icon_size="" />` 209 209 values_searchable="true|false":: 210 Whether to search in `<combo>` or `<multiselect>` (display_)values when searching for presets. 210 Whether to search in `<combo>` or `<multiselect>` `(display_)values` when searching for presets. 211 211 \\ 212 212 … … 248 248 - `{special:everything}` prints all available values, available for formatting of both primitives and waypoints. 249 249 - `{special:id}` prints the ID of an osm primitive 250 - `{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. 250 - `{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. 251 251 \\ 252 252 … … 267 267 The translation for the internal preset is done at [https://translations.launchpad.net/josm/trunk Launchpad] (and will probably change to another service in the future, since the Launchpad web interface often produces timeout errors, see #8645). 268 268 269 The translation of external presets on this website is, so far, only possible inline within the preset source code, see #11392. 270 269 271 == Icon handling == 270 272 See [wikitr:/Styles#Iconhandling Styles].
